2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.61 for jasper 1.701.0-gs5.
5
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
@%:@ This configure script is free software; the Free Software Foundation
8
@%:@ gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
23
case `(set -o) 2>/dev/null` in
24
*posix*) set -o posix ;;
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
40
# The user is always right.
41
if test "${PATH_SEPARATOR+set}" != set; then
42
echo "#! /bin/sh" >conf$$.sh
43
echo "exit 0" >>conf$$.sh
45
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53
# Support unset when possible.
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62
# We need space, tab and new line, in precisely that order. Quoting is
63
# there to prevent editors from complaining about space-tab.
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
# splitting by setting IFS to empty value.)
70
# Find who we are. Look in the path if we contain no directory separator.
72
*[\\/]* ) as_myself=$0 ;;
73
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77
test -z "$as_dir" && as_dir=.
78
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
85
# in which case we are not to be found in the path.
86
if test "x$as_myself" = x; then
89
if test ! -f "$as_myself"; then
90
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94
# Work around bugs in pre-3.0 UWIN ksh.
95
for as_var in ENV MAIL MAILPATH
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
eval $as_var=C; export $as_var
111
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115
# Required to use basename.
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
test "X`expr 00001 : '.*\(...\)'`" = X001; then
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130
# Name of the executable.
131
as_me=`$as_basename -- "$0" ||
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
X"$0" : 'X\(//\)$' \| \
134
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136
sed '/^.*\/\([^/][^/]*\)\/*$/{
154
if test "x$CONFIG_SHELL" = x; then
155
if (eval ":") 2>/dev/null; then
161
if test $as_have_required = yes && (eval ":
171
as_func_ret_success () {
174
as_func_ret_failure () {
179
if as_func_success; then
183
echo as_func_success failed.
186
if as_func_failure; then
188
echo as_func_failure succeeded.
191
if as_func_ret_success; then
195
echo as_func_ret_success failed.
198
if as_func_ret_failure; then
200
echo as_func_ret_failure succeeded.
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
echo positional parameters were not saved.
210
test \$exitcode = 0) || { (exit 1); exit 1; }
215
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
test -z "$as_dir" && as_dir=.
228
for as_base in sh bash ksh sh5; do
229
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236
for as_shell in $as_candidate_shells $SHELL; do
237
# Try only shells that exist, to save several forks.
238
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
{ ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
# is contrary to our usage. Disable this feature.
245
alias -g '${1+"$@"}'='"$@"'
248
case `(set -o) 2>/dev/null` in
249
*posix*) set -o posix ;;
258
CONFIG_SHELL=$as_shell
260
if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
286
as_func_ret_success () {
289
as_func_ret_failure () {
294
if as_func_success; then
298
echo as_func_success failed.
301
if as_func_failure; then
303
echo as_func_failure succeeded.
306
if as_func_ret_success; then
310
echo as_func_ret_success failed.
313
if as_func_ret_failure; then
315
echo as_func_ret_failure succeeded.
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
echo positional parameters were not saved.
325
test $exitcode = 0) || { (exit 1); exit 1; }
330
test "x$as_lineno_1" != "x$as_lineno_2" &&
331
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342
if test "x$CONFIG_SHELL" != x; then
343
for as_var in BASH_ENV ENV
344
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
if test $as_have_required = no; then
352
echo This script requires a shell more modern than all the
353
echo shells that I found on your system. Please install a
354
echo modern shell, or manually run the script under such a
355
echo shell if you do have one.
356
{ (exit 1); exit 1; }
366
(eval "as_func_return () {
375
as_func_ret_success () {
378
as_func_ret_failure () {
383
if as_func_success; then
387
echo as_func_success failed.
390
if as_func_failure; then
392
echo as_func_failure succeeded.
395
if as_func_ret_success; then
399
echo as_func_ret_success failed.
402
if as_func_ret_failure; then
404
echo as_func_ret_failure succeeded.
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
echo positional parameters were not saved.
414
test \$exitcode = 0") || {
415
echo No shell found that supports shell functions.
416
echo Please tell autoconf@gnu.org about your system,
417
echo including any error possibly output before this
425
test "x$as_lineno_1" != "x$as_lineno_2" &&
426
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429
# uniformly replaced by the line number. The first 'sed' inserts a
430
# line-number line after each line using $LINENO; the second 'sed'
431
# does the real work. The second script uses 'N' to pair each
432
# line-number line with the line containing $LINENO, and appends
433
# trailing '-' during substitution so that $LINENO is not a special
435
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436
# scripts with optimization help from Paolo Bonzini. Blame Lee
437
# E. McMahon (1931-1989) for sed's syntax. :-)
449
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453
chmod +x "$as_me.lineno" ||
454
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
{ (exit 1); exit 1; }; }
457
# Don't try to exec as it changes $[0], causing all sort of problems
458
# (the dirname of $[0] is not the place where we might find the
459
# original and so on. Autoconf is especially sensitive to this).
461
# Exit status is that of the last command.
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472
ECHO_C= ECHO_N= ECHO_T=
476
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
test "X`expr 00001 : '.*\(...\)'`" = X001; then
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
rm -f conf$$.dir/conf$$.file
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
500
# ... but there are two gotchas:
501
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
# In both cases, we have to default to `cp -p'.
504
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506
elif ln conf$$.file conf$$ 2>/dev/null; then
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
514
if mkdir -p . 2>/dev/null; then
517
test -d ./-p && rmdir ./-p
521
if test -x / >/dev/null 2>&1; then
524
if ls -dL / >/dev/null 2>&1; then
531
if test -d "$1"; then
537
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
???[sx]*):;;*)false;;esac;fi
542
as_executable_p=$as_test_x
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
# Check that we are running under the correct shell.
554
SHELL=${CONFIG_SHELL-/bin/sh}
558
# Remove one level of quotation (which was required for Make).
559
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564
if test "X$1" = X--no-reexec; then
565
# Discard the --no-reexec flag, and continue.
567
elif test "X$1" = X--fallback-echo; then
568
# Avoid inline document here, it may be left over
570
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571
# Yippee, $echo works!
574
# Restart under the correct shell.
575
exec $SHELL "$0" --no-reexec ${1+"$@"}
578
if test "X$1" = X--fallback-echo; then
579
# used as fallback echo
587
# The HP-UX ksh and POSIX shell print the target directory to stdout
589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591
if test -z "$ECHO"; then
592
if test "X${echo_test_string+set}" != Xset; then
593
# find a string as large as possible, as long as the shell can cope with it
594
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597
echo_test_string=`eval $cmd` &&
598
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607
test "X$echo_testing_string" = "X$echo_test_string"; then
610
# The Solaris, AIX, and Digital Unix default echo programs unquote
611
# backslashes. This makes it impossible to quote backslashes using
612
# echo "$something" | sed 's/\\/\\\\/g'
614
# So, first we look for a working echo in the user's PATH.
616
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617
for dir in $PATH /usr/ucb; do
619
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622
test "X$echo_testing_string" = "X$echo_test_string"; then
629
if test "X$echo" = Xecho; then
630
# We didn't find a better echo, so look for alternatives.
631
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633
test "X$echo_testing_string" = "X$echo_test_string"; then
634
# This shell has a builtin print -r that does the trick.
636
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637
test "X$CONFIG_SHELL" != X/bin/ksh; then
638
# If we have ksh, try running configure again with it.
639
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640
export ORIGINAL_CONFIG_SHELL
641
CONFIG_SHELL=/bin/ksh
643
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649
test "X$echo_testing_string" = "X$echo_test_string"; then
652
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653
test "X$echo_testing_string" = 'X\t' &&
654
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655
test "X$echo_testing_string" = "X$echo_test_string"; then
656
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658
SHELL="$CONFIG_SHELL"
660
echo="$CONFIG_SHELL $0 --fallback-echo"
661
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662
test "X$echo_testing_string" = 'X\t' &&
663
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664
test "X$echo_testing_string" = "X$echo_test_string"; then
665
echo="$CONFIG_SHELL $0 --fallback-echo"
667
# maybe with a smaller string...
670
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678
if test "$prev" != 'sed 50q "$0"'; then
679
echo_test_string=`eval $prev`
680
export echo_test_string
681
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683
# Oops. We lost completely, so just stick with echo.
692
# Copy echo and quote the copy suitably for passing to libtool from
693
# the Makefile, instead of quoting the original, which is used later.
695
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702
tagnames=${tagnames+${tagnames},}CXX
704
tagnames=${tagnames+${tagnames},}F77
706
exec 7<&0 </dev/null 6>&1
709
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710
# so uname gets run too.
711
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
ac_default_prefix=/usr/local
718
ac_config_libobj_dir=.
724
SHELL=${CONFIG_SHELL-/bin/sh}
726
# Identity of this package.
727
PACKAGE_NAME='jasper'
728
PACKAGE_TARNAME='jasper'
729
PACKAGE_VERSION='1.701.0-gs5'
730
PACKAGE_STRING='jasper 1.701.0-gs5'
733
ac_unique_file="README"
734
# Factoring default headers for most tests.
735
ac_includes_default="\
737
#ifdef HAVE_SYS_TYPES_H
738
# include <sys/types.h>
740
#ifdef HAVE_SYS_STAT_H
741
# include <sys/stat.h>
747
# ifdef HAVE_STDLIB_H
752
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757
#ifdef HAVE_STRINGS_H
758
# include <strings.h>
760
#ifdef HAVE_INTTYPES_H
761
# include <inttypes.h>
779
program_transform_name
833
INSTALL_STRIP_PROGRAM
903
ac_precious_vars='build_alias
921
# Initialize some variables set by options.
923
ac_init_version=false
924
# The variables have the same names as the options, with
925
# dashes changed to underlines.
933
program_transform_name=s,x,x,
941
# Installation directory options.
942
# These are left unexpanded so users can "make install exec_prefix=/foo"
943
# and all the variables that are supposed to be based on exec_prefix
944
# by default will actually change.
945
# Use braces instead of parens because sh, perl, etc. also accept them.
946
# (The list follows the same order as the GNU Coding Standards.)
947
bindir='${exec_prefix}/bin'
948
sbindir='${exec_prefix}/sbin'
949
libexecdir='${exec_prefix}/libexec'
950
datarootdir='${prefix}/share'
951
datadir='${datarootdir}'
952
sysconfdir='${prefix}/etc'
953
sharedstatedir='${prefix}/com'
954
localstatedir='${prefix}/var'
955
includedir='${prefix}/include'
956
oldincludedir='/usr/include'
957
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
958
infodir='${datarootdir}/info'
963
libdir='${exec_prefix}/lib'
964
localedir='${datarootdir}/locale'
965
mandir='${datarootdir}/man'
971
# If the previous option needs an argument, assign it.
972
if test -n "$ac_prev"; then
973
eval $ac_prev=\$ac_option
979
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983
# Accept the important Cygnus configure options, so we can diagnose typos.
985
case $ac_dashdash$ac_option in
989
-bindir | --bindir | --bindi | --bind | --bin | --bi)
991
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994
-build | --build | --buil | --bui | --bu)
995
ac_prev=build_alias ;;
996
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
997
build_alias=$ac_optarg ;;
999
-cache-file | --cache-file | --cache-fil | --cache-fi \
1000
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001
ac_prev=cache_file ;;
1002
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004
cache_file=$ac_optarg ;;
1006
--config-cache | -C)
1007
cache_file=config.cache ;;
1009
-datadir | --datadir | --datadi | --datad)
1011
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1012
datadir=$ac_optarg ;;
1014
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015
| --dataroo | --dataro | --datar)
1016
ac_prev=datarootdir ;;
1017
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019
datarootdir=$ac_optarg ;;
1021
-disable-* | --disable-*)
1022
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023
# Reject names that are not valid shell variable names.
1024
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026
{ (exit 1); exit 1; }; }
1027
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028
eval enable_$ac_feature=no ;;
1030
-docdir | --docdir | --docdi | --doc | --do)
1032
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033
docdir=$ac_optarg ;;
1035
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038
dvidir=$ac_optarg ;;
1040
-enable-* | --enable-*)
1041
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042
# Reject names that are not valid shell variable names.
1043
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1044
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1045
{ (exit 1); exit 1; }; }
1046
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1047
eval enable_$ac_feature=\$ac_optarg ;;
1049
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051
| --exec | --exe | --ex)
1052
ac_prev=exec_prefix ;;
1053
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055
| --exec=* | --exe=* | --ex=*)
1056
exec_prefix=$ac_optarg ;;
1058
-gas | --gas | --ga | --g)
1059
# Obsolete; use --with-gas.
1062
-help | --help | --hel | --he | -h)
1063
ac_init_help=long ;;
1064
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065
ac_init_help=recursive ;;
1066
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067
ac_init_help=short ;;
1069
-host | --host | --hos | --ho)
1070
ac_prev=host_alias ;;
1071
-host=* | --host=* | --hos=* | --ho=*)
1072
host_alias=$ac_optarg ;;
1074
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078
htmldir=$ac_optarg ;;
1080
-includedir | --includedir | --includedi | --included | --include \
1081
| --includ | --inclu | --incl | --inc)
1082
ac_prev=includedir ;;
1083
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084
| --includ=* | --inclu=* | --incl=* | --inc=*)
1085
includedir=$ac_optarg ;;
1087
-infodir | --infodir | --infodi | --infod | --info | --inf)
1089
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090
infodir=$ac_optarg ;;
1092
-libdir | --libdir | --libdi | --libd)
1094
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1095
libdir=$ac_optarg ;;
1097
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098
| --libexe | --libex | --libe)
1099
ac_prev=libexecdir ;;
1100
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101
| --libexe=* | --libex=* | --libe=*)
1102
libexecdir=$ac_optarg ;;
1104
-localedir | --localedir | --localedi | --localed | --locale)
1105
ac_prev=localedir ;;
1106
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107
localedir=$ac_optarg ;;
1109
-localstatedir | --localstatedir | --localstatedi | --localstated \
1110
| --localstate | --localstat | --localsta | --localst | --locals)
1111
ac_prev=localstatedir ;;
1112
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114
localstatedir=$ac_optarg ;;
1116
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119
mandir=$ac_optarg ;;
1121
-nfp | --nfp | --nf)
1122
# Obsolete; use --without-fp.
1125
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126
| --no-cr | --no-c | -n)
1129
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135
| --oldin | --oldi | --old | --ol | --o)
1136
ac_prev=oldincludedir ;;
1137
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140
oldincludedir=$ac_optarg ;;
1142
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145
prefix=$ac_optarg ;;
1147
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1148
| --program-pre | --program-pr | --program-p)
1149
ac_prev=program_prefix ;;
1150
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1151
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152
program_prefix=$ac_optarg ;;
1154
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1155
| --program-suf | --program-su | --program-s)
1156
ac_prev=program_suffix ;;
1157
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1158
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159
program_suffix=$ac_optarg ;;
1161
-program-transform-name | --program-transform-name \
1162
| --program-transform-nam | --program-transform-na \
1163
| --program-transform-n | --program-transform- \
1164
| --program-transform | --program-transfor \
1165
| --program-transfo | --program-transf \
1166
| --program-trans | --program-tran \
1167
| --progr-tra | --program-tr | --program-t)
1168
ac_prev=program_transform_name ;;
1169
-program-transform-name=* | --program-transform-name=* \
1170
| --program-transform-nam=* | --program-transform-na=* \
1171
| --program-transform-n=* | --program-transform-=* \
1172
| --program-transform=* | --program-transfor=* \
1173
| --program-transfo=* | --program-transf=* \
1174
| --program-trans=* | --program-tran=* \
1175
| --progr-tra=* | --program-tr=* | --program-t=*)
1176
program_transform_name=$ac_optarg ;;
1178
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181
pdfdir=$ac_optarg ;;
1183
-psdir | --psdir | --psdi | --psd | --ps)
1185
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189
| -silent | --silent | --silen | --sile | --sil)
1192
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196
sbindir=$ac_optarg ;;
1198
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1199
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200
| --sharedst | --shareds | --shared | --share | --shar \
1202
ac_prev=sharedstatedir ;;
1203
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207
sharedstatedir=$ac_optarg ;;
1209
-site | --site | --sit)
1211
-site=* | --site=* | --sit=*)
1214
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217
srcdir=$ac_optarg ;;
1219
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220
| --syscon | --sysco | --sysc | --sys | --sy)
1221
ac_prev=sysconfdir ;;
1222
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224
sysconfdir=$ac_optarg ;;
1226
-target | --target | --targe | --targ | --tar | --ta | --t)
1227
ac_prev=target_alias ;;
1228
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229
target_alias=$ac_optarg ;;
1231
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1234
-version | --version | --versio | --versi | --vers | -V)
1235
ac_init_version=: ;;
1238
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239
# Reject names that are not valid shell variable names.
1240
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1242
{ (exit 1); exit 1; }; }
1243
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1244
eval with_$ac_package=\$ac_optarg ;;
1246
-without-* | --without-*)
1247
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248
# Reject names that are not valid shell variable names.
1249
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1251
{ (exit 1); exit 1; }; }
1252
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1253
eval with_$ac_package=no ;;
1256
# Obsolete; use --with-x.
1259
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260
| --x-incl | --x-inc | --x-in | --x-i)
1261
ac_prev=x_includes ;;
1262
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264
x_includes=$ac_optarg ;;
1266
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1267
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268
ac_prev=x_libraries ;;
1269
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271
x_libraries=$ac_optarg ;;
1273
-*) { echo "$as_me: error: unrecognized option: $ac_option
1274
Try \`$0 --help' for more information." >&2
1275
{ (exit 1); exit 1; }; }
1279
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280
# Reject names that are not valid shell variable names.
1281
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1282
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1283
{ (exit 1); exit 1; }; }
1284
eval $ac_envvar=\$ac_optarg
1285
export $ac_envvar ;;
1288
# FIXME: should be removed in autoconf 3.0.
1289
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1298
if test -n "$ac_prev"; then
1299
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300
{ echo "$as_me: error: missing argument to $ac_option" >&2
1301
{ (exit 1); exit 1; }; }
1304
# Be sure to have absolute directory names.
1305
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306
datadir sysconfdir sharedstatedir localstatedir includedir \
1307
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308
libdir localedir mandir
1310
eval ac_val=\$$ac_var
1312
[\\/$]* | ?:[\\/]* ) continue;;
1313
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1316
{ (exit 1); exit 1; }; }
1319
# There might be people who depend on the old broken behavior: `$host'
1320
# used to hold the argument of --host etc.
1321
# FIXME: To remove some day.
1324
target=$target_alias
1326
# FIXME: To remove some day.
1327
if test "x$host_alias" != x; then
1328
if test "x$build_alias" = x; then
1329
cross_compiling=maybe
1330
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1331
If a cross compiler is detected then cross compile mode will be used." >&2
1332
elif test "x$build_alias" != "x$host_alias"; then
1338
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
test "$silent" = yes && exec 6>/dev/null
1343
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344
ac_ls_di=`ls -di .` &&
1345
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346
{ echo "$as_me: error: Working directory cannot be determined" >&2
1347
{ (exit 1); exit 1; }; }
1348
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1350
{ (exit 1); exit 1; }; }
1353
# Find the source files, if location was not specified.
1354
if test -z "$srcdir"; then
1355
ac_srcdir_defaulted=yes
1356
# Try the directory containing this script, then the parent directory.
1357
ac_confdir=`$as_dirname -- "$0" ||
1358
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359
X"$0" : 'X\(//\)[^/]' \| \
1360
X"$0" : 'X\(//\)$' \| \
1361
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1363
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381
if test ! -r "$srcdir/$ac_unique_file"; then
1385
ac_srcdir_defaulted=no
1387
if test ! -r "$srcdir/$ac_unique_file"; then
1388
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1390
{ (exit 1); exit 1; }; }
1392
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1395
{ (exit 1); exit 1; }; }
1397
# When building in place, set srcdir=.
1398
if test "$ac_abs_confdir" = "$ac_pwd"; then
1401
# Remove unnecessary trailing slashes from srcdir.
1402
# Double slashes in file names in object file debugging info
1403
# mess up M-x gdb in Emacs.
1405
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407
for ac_var in $ac_precious_vars; do
1408
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409
eval ac_env_${ac_var}_value=\$${ac_var}
1410
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415
# Report the --help message.
1417
if test "$ac_init_help" = "long"; then
1418
# Omit some internal or obsolete options to make the list less imposing.
1419
# This message is too long to be a string in the A/UX 3.1 sh.
1421
\`configure' configures jasper 1.701.0-gs5 to adapt to many kinds of systems.
1423
Usage: $0 [OPTION]... [VAR=VALUE]...
1425
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426
VAR=VALUE. See below for descriptions of some of the useful variables.
1428
Defaults for the options are specified in brackets.
1431
-h, --help display this help and exit
1432
--help=short display options specific to this package
1433
--help=recursive display the short help of all the included packages
1434
-V, --version display version information and exit
1435
-q, --quiet, --silent do not print \`checking...' messages
1436
--cache-file=FILE cache test results in FILE [disabled]
1437
-C, --config-cache alias for \`--cache-file=config.cache'
1438
-n, --no-create do not create output files
1439
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1441
Installation directories:
1442
--prefix=PREFIX install architecture-independent files in PREFIX
1443
[$ac_default_prefix]
1444
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1447
By default, \`make install' will install all the files in
1448
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1449
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450
for instance \`--prefix=\$HOME'.
1452
For better control, use the options below.
1454
Fine tuning of the installation directories:
1455
--bindir=DIR user executables [EPREFIX/bin]
1456
--sbindir=DIR system admin executables [EPREFIX/sbin]
1457
--libexecdir=DIR program executables [EPREFIX/libexec]
1458
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1459
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1460
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1461
--libdir=DIR object code libraries [EPREFIX/lib]
1462
--includedir=DIR C header files [PREFIX/include]
1463
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1464
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1465
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1466
--infodir=DIR info documentation [DATAROOTDIR/info]
1467
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1468
--mandir=DIR man documentation [DATAROOTDIR/man]
1469
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/jasper@:>@
1470
--htmldir=DIR html documentation [DOCDIR]
1471
--dvidir=DIR dvi documentation [DOCDIR]
1472
--pdfdir=DIR pdf documentation [DOCDIR]
1473
--psdir=DIR ps documentation [DOCDIR]
1479
--program-prefix=PREFIX prepend PREFIX to installed program names
1480
--program-suffix=SUFFIX append SUFFIX to installed program names
1481
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1484
--x-includes=DIR X include files are in DIR
1485
--x-libraries=DIR X library files are in DIR
1488
--build=BUILD configure for building on BUILD [guessed]
1489
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1490
--target=TARGET configure for building compilers for TARGET [HOST]
1494
if test -n "$ac_init_help"; then
1495
case $ac_init_help in
1496
short | recursive ) echo "Configuration of jasper 1.701.0-gs5:";;
1501
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1502
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1503
--disable-dependency-tracking speeds up one-time build
1504
--enable-dependency-tracking do not reject slow dependency extractors
1505
--enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=no@:>@
1506
--enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1507
--enable-fast-install@<:@=PKGS@:>@
1508
optimize for fast installation @<:@default=yes@:>@
1509
--disable-libtool-lock avoid locking (might break parallel builds)
1510
--disable-libjpeg Force the IJG JPEG library to be ignored
1511
--disable-opengl Disable use of OpenGL.
1512
--enable-dmalloc use special memory allocator for debugging
1513
--enable-debug add extra code for debugging
1516
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1519
--with-pic try to use only PIC/non-PIC objects @<:@default=use
1521
--with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1522
--with-x use the X Window System
1523
--with-glut-include-dir=DIR Set GLUT include directory.
1524
--with-glut-lib-dir=DIR Set GLUT library directory.
1526
Some influential environment variables:
1527
CC C compiler command
1528
CFLAGS C compiler flags
1529
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530
nonstandard directory <lib dir>
1531
LIBS libraries to pass to the linker, e.g. -l<library>
1532
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1533
you have headers in a nonstandard directory <include dir>
1535
CXX C++ compiler command
1536
CXXFLAGS C++ compiler flags
1537
CXXCPP C++ preprocessor
1538
F77 Fortran 77 compiler command
1539
FFLAGS Fortran 77 compiler flags
1540
XMKMF Path to xmkmf, Makefile generator for X Window System
1542
Use these variables to override the choices made by `configure' or to help
1543
it to find libraries and programs with nonstandard names/locations.
1549
if test "$ac_init_help" = "recursive"; then
1550
# If there are subdirs, report their specific --help.
1551
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552
test -d "$ac_dir" || continue
1556
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1559
# A ".." for each directory in $ac_dir_suffix.
1560
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1561
case $ac_top_builddir_sub in
1562
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566
ac_abs_top_builddir=$ac_pwd
1567
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568
# for backward compatibility:
1569
ac_top_builddir=$ac_top_build_prefix
1572
.) # We are building in place.
1574
ac_top_srcdir=$ac_top_builddir_sub
1575
ac_abs_top_srcdir=$ac_pwd ;;
1576
[\\/]* | ?:[\\/]* ) # Absolute name.
1577
ac_srcdir=$srcdir$ac_dir_suffix;
1578
ac_top_srcdir=$srcdir
1579
ac_abs_top_srcdir=$srcdir ;;
1581
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582
ac_top_srcdir=$ac_top_build_prefix$srcdir
1583
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587
cd "$ac_dir" || { ac_status=$?; continue; }
1588
# Check for guested configure.
1589
if test -f "$ac_srcdir/configure.gnu"; then
1591
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592
elif test -f "$ac_srcdir/configure"; then
1594
$SHELL "$ac_srcdir/configure" --help=recursive
1596
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598
cd "$ac_pwd" || { ac_status=$?; break; }
1602
test -n "$ac_init_help" && exit $ac_status
1603
if $ac_init_version; then
1605
jasper configure 1.701.0-gs5
1606
generated by GNU Autoconf 2.61
1608
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1609
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1610
This configure script is free software; the Free Software Foundation
1611
gives unlimited permission to copy, distribute and modify it.
1615
cat >config.log <<_ACEOF
1616
This file contains any messages produced by compilers while
1617
running configure, to aid debugging if configure makes a mistake.
1619
It was created by jasper $as_me 1.701.0-gs5, which was
1620
generated by GNU Autoconf 2.61. Invocation command line was
1628
@%:@@%:@ --------- @%:@@%:@
1629
@%:@@%:@ Platform. @%:@@%:@
1630
@%:@@%:@ --------- @%:@@%:@
1632
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1633
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1634
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1635
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1636
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1638
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1639
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1641
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1642
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1643
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1644
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1645
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1646
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1647
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1651
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655
test -z "$as_dir" && as_dir=.
1656
echo "PATH: $as_dir"
1665
@%:@@%:@ ----------- @%:@@%:@
1666
@%:@@%:@ Core tests. @%:@@%:@
1667
@%:@@%:@ ----------- @%:@@%:@
1672
# Keep a trace of the command line.
1673
# Strip out --no-create and --no-recursion so they do not pile up.
1674
# Strip out --silent because we don't want to record it for future runs.
1675
# Also quote any args containing shell meta-characters.
1676
# Make two passes to allow for proper duplicate-argument suppression.
1680
ac_must_keep_next=false
1686
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1687
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1688
| -silent | --silent | --silen | --sile | --sil)
1691
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1694
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1696
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1697
if test $ac_must_keep_next = true; then
1698
ac_must_keep_next=false # Got value, back to normal.
1701
*=* | --config-cache | -C | -disable-* | --disable-* \
1702
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1703
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1704
| -with-* | --with-* | -without-* | --without-* | --x)
1705
case "$ac_configure_args0 " in
1706
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1709
-* ) ac_must_keep_next=true ;;
1712
ac_configure_args="$ac_configure_args '$ac_arg'"
1717
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1718
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1720
# When interrupted or exit'd, cleanup temporary files, and complete
1721
# config.log. We remove comments because anyway the quotes in there
1722
# would cause problems or look ugly.
1723
# WARNING: Use '\'' to represent an apostrophe within the trap.
1724
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1725
trap 'exit_status=$?
1726
# Save into config.log some information that might help in debugging.
1731
@%:@@%:@ ---------------- @%:@@%:@
1732
@%:@@%:@ Cache variables. @%:@@%:@
1733
@%:@@%:@ ---------------- @%:@@%:@
1736
# The following way of writing the cache mishandles newlines in values,
1738
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1739
eval ac_val=\$$ac_var
1743
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1744
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1747
_ | IFS | as_nl) ;; #(
1748
*) $as_unset $ac_var ;;
1753
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1754
*${as_nl}ac_space=\ *)
1756
"s/'\''/'\''\\\\'\'''\''/g;
1757
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1760
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1768
@%:@@%:@ ----------------- @%:@@%:@
1769
@%:@@%:@ Output variables. @%:@@%:@
1770
@%:@@%:@ ----------------- @%:@@%:@
1773
for ac_var in $ac_subst_vars
1775
eval ac_val=\$$ac_var
1777
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779
echo "$ac_var='\''$ac_val'\''"
1783
if test -n "$ac_subst_files"; then
1785
@%:@@%:@ ------------------- @%:@@%:@
1786
@%:@@%:@ File substitutions. @%:@@%:@
1787
@%:@@%:@ ------------------- @%:@@%:@
1790
for ac_var in $ac_subst_files
1792
eval ac_val=\$$ac_var
1794
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1796
echo "$ac_var='\''$ac_val'\''"
1801
if test -s confdefs.h; then
1803
@%:@@%:@ ----------- @%:@@%:@
1804
@%:@@%:@ confdefs.h. @%:@@%:@
1805
@%:@@%:@ ----------- @%:@@%:@
1811
test "$ac_signal" != 0 &&
1812
echo "$as_me: caught signal $ac_signal"
1813
echo "$as_me: exit $exit_status"
1815
rm -f core *.core core.conftest.* &&
1816
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1819
for ac_signal in 1 2 13 15; do
1820
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1824
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1825
rm -f -r conftest* confdefs.h
1827
# Predefined preprocessor variables.
1829
cat >>confdefs.h <<_ACEOF
1830
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1834
cat >>confdefs.h <<_ACEOF
1835
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1839
cat >>confdefs.h <<_ACEOF
1840
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1844
cat >>confdefs.h <<_ACEOF
1845
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1849
cat >>confdefs.h <<_ACEOF
1850
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1854
# Let the site file select an alternate cache file if it wants to.
1855
# Prefer explicitly selected file to automatically selected ones.
1856
if test -n "$CONFIG_SITE"; then
1857
set x "$CONFIG_SITE"
1858
elif test "x$prefix" != xNONE; then
1859
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1861
set x "$ac_default_prefix/share/config.site" \
1862
"$ac_default_prefix/etc/config.site"
1867
if test -r "$ac_site_file"; then
1868
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1869
echo "$as_me: loading site script $ac_site_file" >&6;}
1870
sed 's/^/| /' "$ac_site_file" >&5
1875
if test -r "$cache_file"; then
1876
# Some versions of bash will fail to source /dev/null (special
1877
# files actually), so we avoid doing that.
1878
if test -f "$cache_file"; then
1879
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1880
echo "$as_me: loading cache $cache_file" >&6;}
1882
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1883
*) . "./$cache_file";;
1887
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1888
echo "$as_me: creating cache $cache_file" >&6;}
1892
# Check that the precious variables saved in the cache have kept the same
1894
ac_cache_corrupted=false
1895
for ac_var in $ac_precious_vars; do
1896
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1897
eval ac_new_set=\$ac_env_${ac_var}_set
1898
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1899
eval ac_new_val=\$ac_env_${ac_var}_value
1900
case $ac_old_set,$ac_new_set in
1902
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1903
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1904
ac_cache_corrupted=: ;;
1906
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1907
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1908
ac_cache_corrupted=: ;;
1911
if test "x$ac_old_val" != "x$ac_new_val"; then
1912
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1913
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1914
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1915
echo "$as_me: former value: $ac_old_val" >&2;}
1916
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1917
echo "$as_me: current value: $ac_new_val" >&2;}
1918
ac_cache_corrupted=:
1921
# Pass precious variables to config.status.
1922
if test "$ac_new_set" = set; then
1924
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1925
*) ac_arg=$ac_var=$ac_new_val ;;
1927
case " $ac_configure_args " in
1928
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1929
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1933
if $ac_cache_corrupted; then
1934
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1935
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1936
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1937
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1938
{ (exit 1); exit 1; }; }
1966
ac_cpp='$CPP $CPPFLAGS'
1967
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975
for ac_dir in acaux "$srcdir"/acaux; do
1976
if test -f "$ac_dir/install-sh"; then
1978
ac_install_sh="$ac_aux_dir/install-sh -c"
1980
elif test -f "$ac_dir/install.sh"; then
1982
ac_install_sh="$ac_aux_dir/install.sh -c"
1984
elif test -f "$ac_dir/shtool"; then
1986
ac_install_sh="$ac_aux_dir/shtool install -c"
1990
if test -z "$ac_aux_dir"; then
1991
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in acaux \"$srcdir\"/acaux" >&5
1992
echo "$as_me: error: cannot find install-sh or install.sh in acaux \"$srcdir\"/acaux" >&2;}
1993
{ (exit 1); exit 1; }; }
1996
# These three variables are undocumented and unsupported,
1997
# and are intended to be withdrawn in a future Autoconf release.
1998
# They can cause serious problems if a builder's source tree is in a directory
1999
# whose full name contains unusual characters.
2000
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2001
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2002
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2006
# Detect the canonical host and target build environment.
2007
# Note: This precedes automake initialization to avoid warnings.
2008
# Make sure we can run config.sub.
2009
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2010
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2011
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2012
{ (exit 1); exit 1; }; }
2014
{ echo "$as_me:$LINENO: checking build system type" >&5
2015
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2016
if test "${ac_cv_build+set}" = set; then
2017
echo $ECHO_N "(cached) $ECHO_C" >&6
2019
ac_build_alias=$build_alias
2020
test "x$ac_build_alias" = x &&
2021
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2022
test "x$ac_build_alias" = x &&
2023
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2024
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2025
{ (exit 1); exit 1; }; }
2026
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2027
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2028
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2029
{ (exit 1); exit 1; }; }
2032
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2033
echo "${ECHO_T}$ac_cv_build" >&6; }
2034
case $ac_cv_build in
2036
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2037
echo "$as_me: error: invalid value of canonical build" >&2;}
2038
{ (exit 1); exit 1; }; };;
2041
ac_save_IFS=$IFS; IFS='-'
2047
# Remember, the first character of IFS is used to create $*,
2048
# except with old shells:
2051
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2054
{ echo "$as_me:$LINENO: checking host system type" >&5
2055
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2056
if test "${ac_cv_host+set}" = set; then
2057
echo $ECHO_N "(cached) $ECHO_C" >&6
2059
if test "x$host_alias" = x; then
2060
ac_cv_host=$ac_cv_build
2062
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2063
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2064
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2065
{ (exit 1); exit 1; }; }
2069
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2070
echo "${ECHO_T}$ac_cv_host" >&6; }
2073
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2074
echo "$as_me: error: invalid value of canonical host" >&2;}
2075
{ (exit 1); exit 1; }; };;
2078
ac_save_IFS=$IFS; IFS='-'
2084
# Remember, the first character of IFS is used to create $*,
2085
# except with old shells:
2088
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2091
{ echo "$as_me:$LINENO: checking target system type" >&5
2092
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2093
if test "${ac_cv_target+set}" = set; then
2094
echo $ECHO_N "(cached) $ECHO_C" >&6
2096
if test "x$target_alias" = x; then
2097
ac_cv_target=$ac_cv_host
2099
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2100
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2101
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2102
{ (exit 1); exit 1; }; }
2106
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2107
echo "${ECHO_T}$ac_cv_target" >&6; }
2108
case $ac_cv_target in
2110
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2111
echo "$as_me: error: invalid value of canonical target" >&2;}
2112
{ (exit 1); exit 1; }; };;
2114
target=$ac_cv_target
2115
ac_save_IFS=$IFS; IFS='-'
2121
# Remember, the first character of IFS is used to create $*,
2122
# except with old shells:
2125
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2128
# The aliases save the names the user supplied, while $host etc.
2129
# will get canonicalized.
2130
test -n "$target_alias" &&
2131
test "$program_prefix$program_suffix$program_transform_name" = \
2133
program_prefix=${target_alias}-
2135
# Initialize automake.
2136
am__api_version='1.10'
2138
# Find a good install program. We prefer a C program (faster),
2139
# so one script is as good as another. But avoid the broken or
2140
# incompatible versions:
2141
# SysV /etc/install, /usr/sbin/install
2142
# SunOS /usr/etc/install
2143
# IRIX /sbin/install
2145
# AmigaOS /C/install, which installs bootblocks on floppy discs
2146
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2147
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2148
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2149
# OS/2's system install, which has a completely different semantic
2150
# ./install, which can be erroneously created by make from ./install.sh.
2151
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2152
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2153
if test -z "$INSTALL"; then
2154
if test "${ac_cv_path_install+set}" = set; then
2155
echo $ECHO_N "(cached) $ECHO_C" >&6
2157
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161
test -z "$as_dir" && as_dir=.
2162
# Account for people who put trailing slashes in PATH elements.
2164
./ | .// | /cC/* | \
2165
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2166
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2169
# OSF1 and SCO ODT 3.0 have their own names for install.
2170
# Don't use installbsd from OSF since it installs stuff as root
2172
for ac_prog in ginstall scoinst install; do
2173
for ac_exec_ext in '' $ac_executable_extensions; do
2174
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2175
if test $ac_prog = install &&
2176
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2177
# AIX install. It has an incompatible calling convention.
2179
elif test $ac_prog = install &&
2180
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2181
# program-specific install script used by HP pwplus--don't use.
2184
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2197
if test "${ac_cv_path_install+set}" = set; then
2198
INSTALL=$ac_cv_path_install
2200
# As a last resort, use the slow shell script. Don't cache a
2201
# value for INSTALL within a source directory, because that will
2202
# break other packages using the cache if that directory is
2203
# removed, or if the value is a relative name.
2204
INSTALL=$ac_install_sh
2207
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2208
echo "${ECHO_T}$INSTALL" >&6; }
2210
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2211
# It thinks the first close brace ends the variable substitution.
2212
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2214
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2216
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2218
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2219
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2222
echo timestamp > conftest.file
2223
# Do `set' in a subshell so we don't clobber the current shell's
2224
# arguments. Must try -L first in case configure is actually a
2225
# symlink; some systems play weird games with the mod time of symlinks
2226
# (eg FreeBSD returns the mod time of the symlink's containing
2229
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2230
if test "$*" = "X"; then
2232
set X `ls -t $srcdir/configure conftest.file`
2235
if test "$*" != "X $srcdir/configure conftest.file" \
2236
&& test "$*" != "X conftest.file $srcdir/configure"; then
2238
# If neither matched, then we have a broken ls. This can happen
2239
# if, for instance, CONFIG_SHELL is bash and it inherits a
2240
# broken ls alias from the environment. This has actually
2241
# happened. Such a system could not be considered "sane".
2242
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2243
alias in your environment" >&5
2244
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2245
alias in your environment" >&2;}
2246
{ (exit 1); exit 1; }; }
2249
test "$2" = conftest.file
2255
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2256
Check your system clock" >&5
2257
echo "$as_me: error: newly created file is older than distributed files!
2258
Check your system clock" >&2;}
2259
{ (exit 1); exit 1; }; }
2261
{ echo "$as_me:$LINENO: result: yes" >&5
2262
echo "${ECHO_T}yes" >&6; }
2263
test "$program_prefix" != NONE &&
2264
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2265
# Use a double $ so make ignores it.
2266
test "$program_suffix" != NONE &&
2267
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2268
# Double any \ or $. echo might interpret backslashes.
2269
# By default was `s,x,x', remove it if useless.
2270
cat <<\_ACEOF >conftest.sed
2271
s/[\\$]/&&/g;s/;s,x,x,$//
2273
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2276
# expand $ac_aux_dir to an absolute path
2277
am_aux_dir=`cd $ac_aux_dir && pwd`
2279
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2280
# Use eval to expand $SHELL
2281
if eval "$MISSING --run true"; then
2282
am_missing_run="$MISSING --run "
2285
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2286
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2289
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2290
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2291
if test -z "$MKDIR_P"; then
2292
if test "${ac_cv_path_mkdir+set}" = set; then
2293
echo $ECHO_N "(cached) $ECHO_C" >&6
2295
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2299
test -z "$as_dir" && as_dir=.
2300
for ac_prog in mkdir gmkdir; do
2301
for ac_exec_ext in '' $ac_executable_extensions; do
2302
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2303
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2304
'mkdir (GNU coreutils) '* | \
2305
'mkdir (coreutils) '* | \
2306
'mkdir (fileutils) '4.1*)
2307
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2317
if test "${ac_cv_path_mkdir+set}" = set; then
2318
MKDIR_P="$ac_cv_path_mkdir -p"
2320
# As a last resort, use the slow shell script. Don't cache a
2321
# value for MKDIR_P within a source directory, because that will
2322
# break other packages using the cache if that directory is
2323
# removed, or if the value is a relative name.
2324
test -d ./--version && rmdir ./--version
2325
MKDIR_P="$ac_install_sh -d"
2328
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2329
echo "${ECHO_T}$MKDIR_P" >&6; }
2333
[\\/$]* | ?:[\\/]*) ;;
2334
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2337
for ac_prog in gawk mawk nawk awk
2339
# Extract the first word of "$ac_prog", so it can be a program name with args.
2340
set dummy $ac_prog; ac_word=$2
2341
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2342
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2343
if test "${ac_cv_prog_AWK+set}" = set; then
2344
echo $ECHO_N "(cached) $ECHO_C" >&6
2346
if test -n "$AWK"; then
2347
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2349
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353
test -z "$as_dir" && as_dir=.
2354
for ac_exec_ext in '' $ac_executable_extensions; do
2355
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356
ac_cv_prog_AWK="$ac_prog"
2357
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367
if test -n "$AWK"; then
2368
{ echo "$as_me:$LINENO: result: $AWK" >&5
2369
echo "${ECHO_T}$AWK" >&6; }
2371
{ echo "$as_me:$LINENO: result: no" >&5
2372
echo "${ECHO_T}no" >&6; }
2376
test -n "$AWK" && break
2379
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2380
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2381
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2382
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2383
echo $ECHO_N "(cached) $ECHO_C" >&6
2385
cat >conftest.make <<\_ACEOF
2388
@echo '@@@%%%=$(MAKE)=@@@%%%'
2390
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2391
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2393
eval ac_cv_prog_make_${ac_make}_set=yes;;
2395
eval ac_cv_prog_make_${ac_make}_set=no;;
2399
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2400
{ echo "$as_me:$LINENO: result: yes" >&5
2401
echo "${ECHO_T}yes" >&6; }
2404
{ echo "$as_me:$LINENO: result: no" >&5
2405
echo "${ECHO_T}no" >&6; }
2406
SET_MAKE="MAKE=${MAKE-make}"
2409
rm -rf .tst 2>/dev/null
2410
mkdir .tst 2>/dev/null
2411
if test -d .tst; then
2416
rmdir .tst 2>/dev/null
2418
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2419
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2420
# is not polluted with repeated "-I."
2421
am__isrc=' -I$(srcdir)'
2422
# test to see if srcdir already configured
2423
if test -f $srcdir/config.status; then
2424
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2425
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2426
{ (exit 1); exit 1; }; }
2430
# test whether we have cygpath
2431
if test -z "$CYGPATH_W"; then
2432
if (cygpath --version) >/dev/null 2>/dev/null; then
2433
CYGPATH_W='cygpath -w'
2440
# Define the identity of the package.
2442
VERSION='1.701.0-gs5'
2445
cat >>confdefs.h <<_ACEOF
2446
@%:@define PACKAGE "$PACKAGE"
2450
cat >>confdefs.h <<_ACEOF
2451
@%:@define VERSION "$VERSION"
2454
# Some tools Automake needs.
2456
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2459
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2462
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2465
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2468
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2470
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2472
# Installed binaries are usually stripped using `strip' when the user
2473
# run `make install-strip'. However `strip' might not be the right
2474
# tool to use in cross-compilation environments, therefore Automake
2475
# will honor the `STRIP' environment variable to overrule this program.
2476
if test "$cross_compiling" != no; then
2477
if test -n "$ac_tool_prefix"; then
2478
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2479
set dummy ${ac_tool_prefix}strip; ac_word=$2
2480
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2481
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482
if test "${ac_cv_prog_STRIP+set}" = set; then
2483
echo $ECHO_N "(cached) $ECHO_C" >&6
2485
if test -n "$STRIP"; then
2486
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2488
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492
test -z "$as_dir" && as_dir=.
2493
for ac_exec_ext in '' $ac_executable_extensions; do
2494
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2496
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505
STRIP=$ac_cv_prog_STRIP
2506
if test -n "$STRIP"; then
2507
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2508
echo "${ECHO_T}$STRIP" >&6; }
2510
{ echo "$as_me:$LINENO: result: no" >&5
2511
echo "${ECHO_T}no" >&6; }
2516
if test -z "$ac_cv_prog_STRIP"; then
2518
# Extract the first word of "strip", so it can be a program name with args.
2519
set dummy strip; ac_word=$2
2520
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2521
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2523
echo $ECHO_N "(cached) $ECHO_C" >&6
2525
if test -n "$ac_ct_STRIP"; then
2526
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532
test -z "$as_dir" && as_dir=.
2533
for ac_exec_ext in '' $ac_executable_extensions; do
2534
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535
ac_cv_prog_ac_ct_STRIP="strip"
2536
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2546
if test -n "$ac_ct_STRIP"; then
2547
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2548
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2550
{ echo "$as_me:$LINENO: result: no" >&5
2551
echo "${ECHO_T}no" >&6; }
2554
if test "x$ac_ct_STRIP" = x; then
2557
case $cross_compiling:$ac_tool_warned in
2559
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2560
whose name does not start with the host triplet. If you think this
2561
configuration is useful to you, please write to autoconf@gnu.org." >&5
2562
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2563
whose name does not start with the host triplet. If you think this
2564
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2565
ac_tool_warned=yes ;;
2570
STRIP="$ac_cv_prog_STRIP"
2574
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2576
# We need awk for the "check" target. The system "awk" is bad on
2578
# Always define AMTAR for backward compatibility.
2580
AMTAR=${AMTAR-"${am_missing_run}tar"}
2582
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2589
# Initialize version information parameters.
2591
JAS_MINOR_VERSION=701
2592
JAS_MICRO_VERSION=0-gs5
2593
JAS_VERSION=1.701.0-gs5
2598
cat >>confdefs.h <<_ACEOF
2599
@%:@define JAS_VERSION "$JAS_VERSION"
2605
# Initialize version information for libtool.
2615
# Indicate a configure-based build is being used.
2616
cat >>confdefs.h <<\_ACEOF
2617
@%:@define JAS_CONFIGURE 1
2621
############################################################
2622
# Configuration header file.
2623
############################################################
2644
############################################################
2645
# Checks for programs.
2646
############################################################
2648
for ac_prog in gawk mawk nawk awk
2650
# Extract the first word of "$ac_prog", so it can be a program name with args.
2651
set dummy $ac_prog; ac_word=$2
2652
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2653
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2654
if test "${ac_cv_prog_AWK+set}" = set; then
2655
echo $ECHO_N "(cached) $ECHO_C" >&6
2657
if test -n "$AWK"; then
2658
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2660
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664
test -z "$as_dir" && as_dir=.
2665
for ac_exec_ext in '' $ac_executable_extensions; do
2666
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667
ac_cv_prog_AWK="$ac_prog"
2668
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678
if test -n "$AWK"; then
2679
{ echo "$as_me:$LINENO: result: $AWK" >&5
2680
echo "${ECHO_T}$AWK" >&6; }
2682
{ echo "$as_me:$LINENO: result: no" >&5
2683
echo "${ECHO_T}no" >&6; }
2687
test -n "$AWK" && break
2691
ac_cpp='$CPP $CPPFLAGS'
2692
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695
if test -n "$ac_tool_prefix"; then
2696
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2697
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2698
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2699
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2700
if test "${ac_cv_prog_CC+set}" = set; then
2701
echo $ECHO_N "(cached) $ECHO_C" >&6
2703
if test -n "$CC"; then
2704
ac_cv_prog_CC="$CC" # Let the user override the test.
2706
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710
test -z "$as_dir" && as_dir=.
2711
for ac_exec_ext in '' $ac_executable_extensions; do
2712
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2714
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724
if test -n "$CC"; then
2725
{ echo "$as_me:$LINENO: result: $CC" >&5
2726
echo "${ECHO_T}$CC" >&6; }
2728
{ echo "$as_me:$LINENO: result: no" >&5
2729
echo "${ECHO_T}no" >&6; }
2734
if test -z "$ac_cv_prog_CC"; then
2736
# Extract the first word of "gcc", so it can be a program name with args.
2737
set dummy gcc; ac_word=$2
2738
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2739
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2740
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2741
echo $ECHO_N "(cached) $ECHO_C" >&6
2743
if test -n "$ac_ct_CC"; then
2744
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750
test -z "$as_dir" && as_dir=.
2751
for ac_exec_ext in '' $ac_executable_extensions; do
2752
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753
ac_cv_prog_ac_ct_CC="gcc"
2754
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2763
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2764
if test -n "$ac_ct_CC"; then
2765
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2766
echo "${ECHO_T}$ac_ct_CC" >&6; }
2768
{ echo "$as_me:$LINENO: result: no" >&5
2769
echo "${ECHO_T}no" >&6; }
2772
if test "x$ac_ct_CC" = x; then
2775
case $cross_compiling:$ac_tool_warned in
2777
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2778
whose name does not start with the host triplet. If you think this
2779
configuration is useful to you, please write to autoconf@gnu.org." >&5
2780
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2781
whose name does not start with the host triplet. If you think this
2782
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2783
ac_tool_warned=yes ;;
2791
if test -z "$CC"; then
2792
if test -n "$ac_tool_prefix"; then
2793
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2794
set dummy ${ac_tool_prefix}cc; ac_word=$2
2795
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2796
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2797
if test "${ac_cv_prog_CC+set}" = set; then
2798
echo $ECHO_N "(cached) $ECHO_C" >&6
2800
if test -n "$CC"; then
2801
ac_cv_prog_CC="$CC" # Let the user override the test.
2803
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807
test -z "$as_dir" && as_dir=.
2808
for ac_exec_ext in '' $ac_executable_extensions; do
2809
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810
ac_cv_prog_CC="${ac_tool_prefix}cc"
2811
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821
if test -n "$CC"; then
2822
{ echo "$as_me:$LINENO: result: $CC" >&5
2823
echo "${ECHO_T}$CC" >&6; }
2825
{ echo "$as_me:$LINENO: result: no" >&5
2826
echo "${ECHO_T}no" >&6; }
2832
if test -z "$CC"; then
2833
# Extract the first word of "cc", so it can be a program name with args.
2834
set dummy cc; ac_word=$2
2835
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2836
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2837
if test "${ac_cv_prog_CC+set}" = set; then
2838
echo $ECHO_N "(cached) $ECHO_C" >&6
2840
if test -n "$CC"; then
2841
ac_cv_prog_CC="$CC" # Let the user override the test.
2844
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848
test -z "$as_dir" && as_dir=.
2849
for ac_exec_ext in '' $ac_executable_extensions; do
2850
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2852
ac_prog_rejected=yes
2856
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863
if test $ac_prog_rejected = yes; then
2864
# We found a bogon in the path, so make sure we never use it.
2865
set dummy $ac_cv_prog_CC
2867
if test $@%:@ != 0; then
2868
# We chose a different compiler from the bogus one.
2869
# However, it has the same basename, so the bogon will be chosen
2870
# first if we set CC to just the basename; use the full file name.
2872
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2878
if test -n "$CC"; then
2879
{ echo "$as_me:$LINENO: result: $CC" >&5
2880
echo "${ECHO_T}$CC" >&6; }
2882
{ echo "$as_me:$LINENO: result: no" >&5
2883
echo "${ECHO_T}no" >&6; }
2888
if test -z "$CC"; then
2889
if test -n "$ac_tool_prefix"; then
2890
for ac_prog in cl.exe
2892
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2893
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2894
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2895
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2896
if test "${ac_cv_prog_CC+set}" = set; then
2897
echo $ECHO_N "(cached) $ECHO_C" >&6
2899
if test -n "$CC"; then
2900
ac_cv_prog_CC="$CC" # Let the user override the test.
2902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906
test -z "$as_dir" && as_dir=.
2907
for ac_exec_ext in '' $ac_executable_extensions; do
2908
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2910
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920
if test -n "$CC"; then
2921
{ echo "$as_me:$LINENO: result: $CC" >&5
2922
echo "${ECHO_T}$CC" >&6; }
2924
{ echo "$as_me:$LINENO: result: no" >&5
2925
echo "${ECHO_T}no" >&6; }
2929
test -n "$CC" && break
2932
if test -z "$CC"; then
2934
for ac_prog in cl.exe
2936
# Extract the first word of "$ac_prog", so it can be a program name with args.
2937
set dummy $ac_prog; ac_word=$2
2938
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2939
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2940
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2941
echo $ECHO_N "(cached) $ECHO_C" >&6
2943
if test -n "$ac_ct_CC"; then
2944
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2946
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950
test -z "$as_dir" && as_dir=.
2951
for ac_exec_ext in '' $ac_executable_extensions; do
2952
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953
ac_cv_prog_ac_ct_CC="$ac_prog"
2954
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2964
if test -n "$ac_ct_CC"; then
2965
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2966
echo "${ECHO_T}$ac_ct_CC" >&6; }
2968
{ echo "$as_me:$LINENO: result: no" >&5
2969
echo "${ECHO_T}no" >&6; }
2973
test -n "$ac_ct_CC" && break
2976
if test "x$ac_ct_CC" = x; then
2979
case $cross_compiling:$ac_tool_warned in
2981
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2982
whose name does not start with the host triplet. If you think this
2983
configuration is useful to you, please write to autoconf@gnu.org." >&5
2984
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2985
whose name does not start with the host triplet. If you think this
2986
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2987
ac_tool_warned=yes ;;
2996
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2997
See \`config.log' for more details." >&5
2998
echo "$as_me: error: no acceptable C compiler found in \$PATH
2999
See \`config.log' for more details." >&2;}
3000
{ (exit 1); exit 1; }; }
3002
# Provide some information about the compiler.
3003
echo "$as_me:$LINENO: checking for C compiler version" >&5
3004
ac_compiler=`set X $ac_compile; echo $2`
3005
{ (ac_try="$ac_compiler --version >&5"
3007
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008
*) ac_try_echo=$ac_try;;
3010
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011
(eval "$ac_compiler --version >&5") 2>&5
3013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014
(exit $ac_status); }
3015
{ (ac_try="$ac_compiler -v >&5"
3017
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018
*) ac_try_echo=$ac_try;;
3020
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021
(eval "$ac_compiler -v >&5") 2>&5
3023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024
(exit $ac_status); }
3025
{ (ac_try="$ac_compiler -V >&5"
3027
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028
*) ac_try_echo=$ac_try;;
3030
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031
(eval "$ac_compiler -V >&5") 2>&5
3033
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034
(exit $ac_status); }
3036
cat >conftest.$ac_ext <<_ACEOF
3039
cat confdefs.h >>conftest.$ac_ext
3040
cat >>conftest.$ac_ext <<_ACEOF
3041
/* end confdefs.h. */
3051
ac_clean_files_save=$ac_clean_files
3052
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3053
# Try to create an executable without -o first, disregard a.out.
3054
# It will help us diagnose broken compilers, and finding out an intuition
3056
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3057
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3058
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3060
# List of possible output files, starting from the most likely.
3061
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3062
# only as a last resort. b.out is created by i960 compilers.
3063
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3065
# The IRIX 6 linker writes into existing files which may not be
3066
# executable, retaining their permissions. Remove them first so a
3067
# subsequent execution test works.
3069
for ac_file in $ac_files
3072
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3073
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3078
if { (ac_try="$ac_link_default"
3080
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081
*) ac_try_echo=$ac_try;;
3083
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084
(eval "$ac_link_default") 2>&5
3086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087
(exit $ac_status); }; then
3088
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3089
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3090
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3091
# so that the user can short-circuit this test for compilers unknown to
3093
for ac_file in $ac_files ''
3095
test -f "$ac_file" || continue
3097
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3100
# We found the default executable, but exeext='' is most
3104
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3106
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3108
# We set ac_cv_exeext here because the later test for it is not
3109
# safe: cross compilers may not add the suffix if given an `-o'
3110
# argument, so we may need to know it at that point already.
3111
# Even if this section looks crufty: it has the advantage of
3118
test "$ac_cv_exeext" = no && ac_cv_exeext=
3124
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3125
echo "${ECHO_T}$ac_file" >&6; }
3126
if test -z "$ac_file"; then
3127
echo "$as_me: failed program was:" >&5
3128
sed 's/^/| /' conftest.$ac_ext >&5
3130
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3131
See \`config.log' for more details." >&5
3132
echo "$as_me: error: C compiler cannot create executables
3133
See \`config.log' for more details." >&2;}
3134
{ (exit 77); exit 77; }; }
3137
ac_exeext=$ac_cv_exeext
3139
# Check that the compiler produces executables we can run. If not, either
3140
# the compiler is broken, or we cross compile.
3141
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3142
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3143
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3144
# If not cross compiling, check that we can run a simple program.
3145
if test "$cross_compiling" != yes; then
3146
if { ac_try='./$ac_file'
3147
{ (case "(($ac_try" in
3148
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149
*) ac_try_echo=$ac_try;;
3151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152
(eval "$ac_try") 2>&5
3154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155
(exit $ac_status); }; }; then
3158
if test "$cross_compiling" = maybe; then
3161
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3162
If you meant to cross compile, use \`--host'.
3163
See \`config.log' for more details." >&5
3164
echo "$as_me: error: cannot run C compiled programs.
3165
If you meant to cross compile, use \`--host'.
3166
See \`config.log' for more details." >&2;}
3167
{ (exit 1); exit 1; }; }
3171
{ echo "$as_me:$LINENO: result: yes" >&5
3172
echo "${ECHO_T}yes" >&6; }
3174
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3175
ac_clean_files=$ac_clean_files_save
3176
# Check that the compiler produces executables we can run. If not, either
3177
# the compiler is broken, or we cross compile.
3178
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3179
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3180
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3181
echo "${ECHO_T}$cross_compiling" >&6; }
3183
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3184
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3185
if { (ac_try="$ac_link"
3187
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188
*) ac_try_echo=$ac_try;;
3190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191
(eval "$ac_link") 2>&5
3193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194
(exit $ac_status); }; then
3195
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3196
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3197
# work properly (i.e., refer to `conftest.exe'), while it won't with
3199
for ac_file in conftest.exe conftest conftest.*; do
3200
test -f "$ac_file" || continue
3202
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3203
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3209
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3210
See \`config.log' for more details." >&5
3211
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3212
See \`config.log' for more details." >&2;}
3213
{ (exit 1); exit 1; }; }
3216
rm -f conftest$ac_cv_exeext
3217
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3218
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3220
rm -f conftest.$ac_ext
3221
EXEEXT=$ac_cv_exeext
3223
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3224
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3225
if test "${ac_cv_objext+set}" = set; then
3226
echo $ECHO_N "(cached) $ECHO_C" >&6
3228
cat >conftest.$ac_ext <<_ACEOF
3231
cat confdefs.h >>conftest.$ac_ext
3232
cat >>conftest.$ac_ext <<_ACEOF
3233
/* end confdefs.h. */
3243
rm -f conftest.o conftest.obj
3244
if { (ac_try="$ac_compile"
3246
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247
*) ac_try_echo=$ac_try;;
3249
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250
(eval "$ac_compile") 2>&5
3252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253
(exit $ac_status); }; then
3254
for ac_file in conftest.o conftest.obj conftest.*; do
3255
test -f "$ac_file" || continue;
3257
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3258
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3263
echo "$as_me: failed program was:" >&5
3264
sed 's/^/| /' conftest.$ac_ext >&5
3266
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3267
See \`config.log' for more details." >&5
3268
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3269
See \`config.log' for more details." >&2;}
3270
{ (exit 1); exit 1; }; }
3273
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3275
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3276
echo "${ECHO_T}$ac_cv_objext" >&6; }
3277
OBJEXT=$ac_cv_objext
3279
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3280
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3281
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3282
echo $ECHO_N "(cached) $ECHO_C" >&6
3284
cat >conftest.$ac_ext <<_ACEOF
3287
cat confdefs.h >>conftest.$ac_ext
3288
cat >>conftest.$ac_ext <<_ACEOF
3289
/* end confdefs.h. */
3302
rm -f conftest.$ac_objext
3303
if { (ac_try="$ac_compile"
3305
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306
*) ac_try_echo=$ac_try;;
3308
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3309
(eval "$ac_compile") 2>conftest.er1
3311
grep -v '^ *+' conftest.er1 >conftest.err
3313
cat conftest.err >&5
3314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315
(exit $ac_status); } && {
3316
test -z "$ac_c_werror_flag" ||
3317
test ! -s conftest.err
3318
} && test -s conftest.$ac_objext; then
3321
echo "$as_me: failed program was:" >&5
3322
sed 's/^/| /' conftest.$ac_ext >&5
3327
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3331
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3332
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3333
GCC=`test $ac_compiler_gnu = yes && echo yes`
3334
ac_test_CFLAGS=${CFLAGS+set}
3335
ac_save_CFLAGS=$CFLAGS
3336
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3337
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3338
if test "${ac_cv_prog_cc_g+set}" = set; then
3339
echo $ECHO_N "(cached) $ECHO_C" >&6
3341
ac_save_c_werror_flag=$ac_c_werror_flag
3342
ac_c_werror_flag=yes
3345
cat >conftest.$ac_ext <<_ACEOF
3348
cat confdefs.h >>conftest.$ac_ext
3349
cat >>conftest.$ac_ext <<_ACEOF
3350
/* end confdefs.h. */
3360
rm -f conftest.$ac_objext
3361
if { (ac_try="$ac_compile"
3363
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364
*) ac_try_echo=$ac_try;;
3366
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367
(eval "$ac_compile") 2>conftest.er1
3369
grep -v '^ *+' conftest.er1 >conftest.err
3371
cat conftest.err >&5
3372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373
(exit $ac_status); } && {
3374
test -z "$ac_c_werror_flag" ||
3375
test ! -s conftest.err
3376
} && test -s conftest.$ac_objext; then
3379
echo "$as_me: failed program was:" >&5
3380
sed 's/^/| /' conftest.$ac_ext >&5
3383
cat >conftest.$ac_ext <<_ACEOF
3386
cat confdefs.h >>conftest.$ac_ext
3387
cat >>conftest.$ac_ext <<_ACEOF
3388
/* end confdefs.h. */
3398
rm -f conftest.$ac_objext
3399
if { (ac_try="$ac_compile"
3401
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402
*) ac_try_echo=$ac_try;;
3404
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405
(eval "$ac_compile") 2>conftest.er1
3407
grep -v '^ *+' conftest.er1 >conftest.err
3409
cat conftest.err >&5
3410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411
(exit $ac_status); } && {
3412
test -z "$ac_c_werror_flag" ||
3413
test ! -s conftest.err
3414
} && test -s conftest.$ac_objext; then
3417
echo "$as_me: failed program was:" >&5
3418
sed 's/^/| /' conftest.$ac_ext >&5
3420
ac_c_werror_flag=$ac_save_c_werror_flag
3422
cat >conftest.$ac_ext <<_ACEOF
3425
cat confdefs.h >>conftest.$ac_ext
3426
cat >>conftest.$ac_ext <<_ACEOF
3427
/* end confdefs.h. */
3437
rm -f conftest.$ac_objext
3438
if { (ac_try="$ac_compile"
3440
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441
*) ac_try_echo=$ac_try;;
3443
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444
(eval "$ac_compile") 2>conftest.er1
3446
grep -v '^ *+' conftest.er1 >conftest.err
3448
cat conftest.err >&5
3449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450
(exit $ac_status); } && {
3451
test -z "$ac_c_werror_flag" ||
3452
test ! -s conftest.err
3453
} && test -s conftest.$ac_objext; then
3456
echo "$as_me: failed program was:" >&5
3457
sed 's/^/| /' conftest.$ac_ext >&5
3462
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469
ac_c_werror_flag=$ac_save_c_werror_flag
3471
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3472
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3473
if test "$ac_test_CFLAGS" = set; then
3474
CFLAGS=$ac_save_CFLAGS
3475
elif test $ac_cv_prog_cc_g = yes; then
3476
if test "$GCC" = yes; then
3482
if test "$GCC" = yes; then
3488
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3489
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3490
if test "${ac_cv_prog_cc_c89+set}" = set; then
3491
echo $ECHO_N "(cached) $ECHO_C" >&6
3493
ac_cv_prog_cc_c89=no
3495
cat >conftest.$ac_ext <<_ACEOF
3498
cat confdefs.h >>conftest.$ac_ext
3499
cat >>conftest.$ac_ext <<_ACEOF
3500
/* end confdefs.h. */
3503
#include <sys/types.h>
3504
#include <sys/stat.h>
3505
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3506
struct buf { int x; };
3507
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3508
static char *e (p, i)
3514
static char *f (char * (*g) (char **, int), char **p, ...)
3519
s = g (p, va_arg (v,int));
3524
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3525
function prototypes and stuff, but not '\xHH' hex character constants.
3526
These don't provoke an error unfortunately, instead are silently treated
3527
as 'x'. The following induces an error, until -std is added to get
3528
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3529
array size at least. It's necessary to write '\x00'==0 to get something
3530
that's true only with -std. */
3531
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3533
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3534
inside strings and character constants. */
3536
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3538
int test (int i, double x);
3539
struct s1 {int (*f) (int a);};
3540
struct s2 {int (*f) (double a);};
3541
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3547
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3552
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3553
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3555
CC="$ac_save_CC $ac_arg"
3556
rm -f conftest.$ac_objext
3557
if { (ac_try="$ac_compile"
3559
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560
*) ac_try_echo=$ac_try;;
3562
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563
(eval "$ac_compile") 2>conftest.er1
3565
grep -v '^ *+' conftest.er1 >conftest.err
3567
cat conftest.err >&5
3568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569
(exit $ac_status); } && {
3570
test -z "$ac_c_werror_flag" ||
3571
test ! -s conftest.err
3572
} && test -s conftest.$ac_objext; then
3573
ac_cv_prog_cc_c89=$ac_arg
3575
echo "$as_me: failed program was:" >&5
3576
sed 's/^/| /' conftest.$ac_ext >&5
3581
rm -f core conftest.err conftest.$ac_objext
3582
test "x$ac_cv_prog_cc_c89" != "xno" && break
3584
rm -f conftest.$ac_ext
3589
case "x$ac_cv_prog_cc_c89" in
3591
{ echo "$as_me:$LINENO: result: none needed" >&5
3592
echo "${ECHO_T}none needed" >&6; } ;;
3594
{ echo "$as_me:$LINENO: result: unsupported" >&5
3595
echo "${ECHO_T}unsupported" >&6; } ;;
3597
CC="$CC $ac_cv_prog_cc_c89"
3598
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3599
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3604
ac_cpp='$CPP $CPPFLAGS'
3605
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3608
DEPDIR="${am__leading_dot}deps"
3610
ac_config_commands="$ac_config_commands depfiles"
3613
am_make=${MAKE-make}
3614
cat > confinc << 'END'
3619
# If we don't find an include directive, just comment out the code.
3620
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3621
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3625
# First try GNU make style include.
3626
echo "include confinc" > confmf
3627
# We grep out `Entering directory' and `Leaving directory'
3628
# messages which can occur if `w' ends up in MAKEFLAGS.
3629
# In particular we don't look at `^make:' because GNU make might
3630
# be invoked under some other name (usually "gmake"), in which
3631
# case it prints its new name instead of `make'.
3632
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3637
# Now try BSD make style include.
3638
if test "$am__include" = "#"; then
3639
echo '.include "confinc"' > confmf
3640
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3641
am__include=.include
3648
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3649
echo "${ECHO_T}$_am_result" >&6; }
3650
rm -f confinc confmf
3652
# Check whether --enable-dependency-tracking was given.
3653
if test "${enable_dependency_tracking+set}" = set; then
3654
enableval=$enable_dependency_tracking;
3657
if test "x$enable_dependency_tracking" != xno; then
3658
am_depcomp="$ac_aux_dir/depcomp"
3661
if test "x$enable_dependency_tracking" != xno; then
3671
depcc="$CC" am_compiler_list=
3673
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3674
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3675
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3676
echo $ECHO_N "(cached) $ECHO_C" >&6
3678
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3679
# We make a subdir and do the tests there. Otherwise we can end up
3680
# making bogus files that we don't know about and never remove. For
3681
# instance it was reported that on HP-UX the gcc test will end up
3682
# making a dummy file named `D' -- because `-MD' means `put the output
3685
# Copy depcomp to subdir because otherwise we won't find it if we're
3686
# using a relative directory.
3687
cp "$am_depcomp" conftest.dir
3689
# We will build objects and dependencies in a subdirectory because
3690
# it helps to detect inapplicable dependency modes. For instance
3691
# both Tru64's cc and ICC support -MD to output dependencies as a
3692
# side effect of compilation, but ICC will put the dependencies in
3693
# the current directory while Tru64 will put them in the object
3697
am_cv_CC_dependencies_compiler_type=none
3698
if test "$am_compiler_list" = ""; then
3699
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3701
for depmode in $am_compiler_list; do
3702
# Setup a source with many dependencies, because some compilers
3703
# like to wrap large dependency lists on column 80 (with \), and
3704
# we should not choose a depcomp mode which is confused by this.
3706
# We need to recreate these files for each test, as the compiler may
3707
# overwrite some of them when testing with obscure command lines.
3708
# This happens at least with the AIX C compiler.
3710
for i in 1 2 3 4 5 6; do
3711
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3712
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3713
# Solaris 8's {/usr,}/bin/sh.
3714
touch sub/conftst$i.h
3716
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3720
# after this tag, mechanisms are not by side-effect, so they'll
3721
# only be used when explicitly requested
3722
if test "x$enable_dependency_tracking" = xyes; then
3730
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3731
# mode. It turns out that the SunPro C++ compiler does not properly
3732
# handle `-M -o', and we need to detect this.
3733
if depmode=$depmode \
3734
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3735
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3736
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3737
>/dev/null 2>conftest.err &&
3738
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3739
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3740
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3741
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3742
# icc doesn't choke on unknown options, it will just issue warnings
3743
# or remarks (even with -Werror). So we grep stderr for any message
3744
# that says an option was ignored or not supported.
3745
# When given -MP, icc 7.0 and 7.1 complain thusly:
3746
# icc: Command line warning: ignoring option '-M'; no argument required
3747
# The diagnosis changed in icc 8.0:
3748
# icc: Command line remark: option '-MP' not supported
3749
if (grep 'ignoring option' conftest.err ||
3750
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3751
am_cv_CC_dependencies_compiler_type=$depmode
3760
am_cv_CC_dependencies_compiler_type=none
3764
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3765
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3766
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3769
test "x$enable_dependency_tracking" != xno \
3770
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3772
am__fastdepCC_FALSE='#'
3774
am__fastdepCC_TRUE='#'
3775
am__fastdepCC_FALSE=
3780
ac_cpp='$CPP $CPPFLAGS'
3781
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3785
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3786
# On Suns, sometimes $CPP names a directory.
3787
if test -n "$CPP" && test -d "$CPP"; then
3790
if test -z "$CPP"; then
3791
if test "${ac_cv_prog_CPP+set}" = set; then
3792
echo $ECHO_N "(cached) $ECHO_C" >&6
3794
# Double quotes because CPP needs to be expanded
3795
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3798
for ac_c_preproc_warn_flag in '' yes
3800
# Use a header file that comes with gcc, so configuring glibc
3801
# with a fresh cross-compiler works.
3802
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803
# <limits.h> exists even on freestanding compilers.
3804
# On the NeXT, cc -E runs the code through the compiler's parser,
3805
# not just through cpp. "Syntax error" is here to catch this case.
3806
cat >conftest.$ac_ext <<_ACEOF
3809
cat confdefs.h >>conftest.$ac_ext
3810
cat >>conftest.$ac_ext <<_ACEOF
3811
/* end confdefs.h. */
3813
@%:@ include <limits.h>
3815
@%:@ include <assert.h>
3819
if { (ac_try="$ac_cpp conftest.$ac_ext"
3821
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822
*) ac_try_echo=$ac_try;;
3824
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3827
grep -v '^ *+' conftest.er1 >conftest.err
3829
cat conftest.err >&5
3830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831
(exit $ac_status); } >/dev/null && {
3832
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3833
test ! -s conftest.err
3837
echo "$as_me: failed program was:" >&5
3838
sed 's/^/| /' conftest.$ac_ext >&5
3840
# Broken: fails on valid input.
3844
rm -f conftest.err conftest.$ac_ext
3846
# OK, works on sane cases. Now check whether nonexistent headers
3847
# can be detected and how.
3848
cat >conftest.$ac_ext <<_ACEOF
3851
cat confdefs.h >>conftest.$ac_ext
3852
cat >>conftest.$ac_ext <<_ACEOF
3853
/* end confdefs.h. */
3854
@%:@include <ac_nonexistent.h>
3856
if { (ac_try="$ac_cpp conftest.$ac_ext"
3858
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859
*) ac_try_echo=$ac_try;;
3861
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3864
grep -v '^ *+' conftest.er1 >conftest.err
3866
cat conftest.err >&5
3867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868
(exit $ac_status); } >/dev/null && {
3869
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3870
test ! -s conftest.err
3872
# Broken: success on invalid input.
3875
echo "$as_me: failed program was:" >&5
3876
sed 's/^/| /' conftest.$ac_ext >&5
3878
# Passes both tests.
3883
rm -f conftest.err conftest.$ac_ext
3886
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3887
rm -f conftest.err conftest.$ac_ext
3888
if $ac_preproc_ok; then
3900
{ echo "$as_me:$LINENO: result: $CPP" >&5
3901
echo "${ECHO_T}$CPP" >&6; }
3903
for ac_c_preproc_warn_flag in '' yes
3905
# Use a header file that comes with gcc, so configuring glibc
3906
# with a fresh cross-compiler works.
3907
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3908
# <limits.h> exists even on freestanding compilers.
3909
# On the NeXT, cc -E runs the code through the compiler's parser,
3910
# not just through cpp. "Syntax error" is here to catch this case.
3911
cat >conftest.$ac_ext <<_ACEOF
3914
cat confdefs.h >>conftest.$ac_ext
3915
cat >>conftest.$ac_ext <<_ACEOF
3916
/* end confdefs.h. */
3918
@%:@ include <limits.h>
3920
@%:@ include <assert.h>
3924
if { (ac_try="$ac_cpp conftest.$ac_ext"
3926
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927
*) ac_try_echo=$ac_try;;
3929
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3932
grep -v '^ *+' conftest.er1 >conftest.err
3934
cat conftest.err >&5
3935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936
(exit $ac_status); } >/dev/null && {
3937
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3938
test ! -s conftest.err
3942
echo "$as_me: failed program was:" >&5
3943
sed 's/^/| /' conftest.$ac_ext >&5
3945
# Broken: fails on valid input.
3949
rm -f conftest.err conftest.$ac_ext
3951
# OK, works on sane cases. Now check whether nonexistent headers
3952
# can be detected and how.
3953
cat >conftest.$ac_ext <<_ACEOF
3956
cat confdefs.h >>conftest.$ac_ext
3957
cat >>conftest.$ac_ext <<_ACEOF
3958
/* end confdefs.h. */
3959
@%:@include <ac_nonexistent.h>
3961
if { (ac_try="$ac_cpp conftest.$ac_ext"
3963
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964
*) ac_try_echo=$ac_try;;
3966
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3969
grep -v '^ *+' conftest.er1 >conftest.err
3971
cat conftest.err >&5
3972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973
(exit $ac_status); } >/dev/null && {
3974
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3975
test ! -s conftest.err
3977
# Broken: success on invalid input.
3980
echo "$as_me: failed program was:" >&5
3981
sed 's/^/| /' conftest.$ac_ext >&5
3983
# Passes both tests.
3988
rm -f conftest.err conftest.$ac_ext
3991
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3992
rm -f conftest.err conftest.$ac_ext
3993
if $ac_preproc_ok; then
3996
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3997
See \`config.log' for more details." >&5
3998
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3999
See \`config.log' for more details." >&2;}
4000
{ (exit 1); exit 1; }; }
4004
ac_cpp='$CPP $CPPFLAGS'
4005
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009
# Find a good install program. We prefer a C program (faster),
4010
# so one script is as good as another. But avoid the broken or
4011
# incompatible versions:
4012
# SysV /etc/install, /usr/sbin/install
4013
# SunOS /usr/etc/install
4014
# IRIX /sbin/install
4016
# AmigaOS /C/install, which installs bootblocks on floppy discs
4017
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4018
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4019
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4020
# OS/2's system install, which has a completely different semantic
4021
# ./install, which can be erroneously created by make from ./install.sh.
4022
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4023
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4024
if test -z "$INSTALL"; then
4025
if test "${ac_cv_path_install+set}" = set; then
4026
echo $ECHO_N "(cached) $ECHO_C" >&6
4028
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032
test -z "$as_dir" && as_dir=.
4033
# Account for people who put trailing slashes in PATH elements.
4035
./ | .// | /cC/* | \
4036
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4037
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4040
# OSF1 and SCO ODT 3.0 have their own names for install.
4041
# Don't use installbsd from OSF since it installs stuff as root
4043
for ac_prog in ginstall scoinst install; do
4044
for ac_exec_ext in '' $ac_executable_extensions; do
4045
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4046
if test $ac_prog = install &&
4047
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4048
# AIX install. It has an incompatible calling convention.
4050
elif test $ac_prog = install &&
4051
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4052
# program-specific install script used by HP pwplus--don't use.
4055
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4068
if test "${ac_cv_path_install+set}" = set; then
4069
INSTALL=$ac_cv_path_install
4071
# As a last resort, use the slow shell script. Don't cache a
4072
# value for INSTALL within a source directory, because that will
4073
# break other packages using the cache if that directory is
4074
# removed, or if the value is a relative name.
4075
INSTALL=$ac_install_sh
4078
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4079
echo "${ECHO_T}$INSTALL" >&6; }
4081
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4082
# It thinks the first close brace ends the variable substitution.
4083
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4085
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4087
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4089
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4090
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4092
if test "$LN_S" = "ln -s"; then
4093
{ echo "$as_me:$LINENO: result: yes" >&5
4094
echo "${ECHO_T}yes" >&6; }
4096
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4097
echo "${ECHO_T}no, using $LN_S" >&6; }
4100
if test -n "$ac_tool_prefix"; then
4101
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4102
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4103
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4104
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4105
if test "${ac_cv_prog_RANLIB+set}" = set; then
4106
echo $ECHO_N "(cached) $ECHO_C" >&6
4108
if test -n "$RANLIB"; then
4109
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4111
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115
test -z "$as_dir" && as_dir=.
4116
for ac_exec_ext in '' $ac_executable_extensions; do
4117
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4118
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4119
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128
RANLIB=$ac_cv_prog_RANLIB
4129
if test -n "$RANLIB"; then
4130
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
4131
echo "${ECHO_T}$RANLIB" >&6; }
4133
{ echo "$as_me:$LINENO: result: no" >&5
4134
echo "${ECHO_T}no" >&6; }
4139
if test -z "$ac_cv_prog_RANLIB"; then
4140
ac_ct_RANLIB=$RANLIB
4141
# Extract the first word of "ranlib", so it can be a program name with args.
4142
set dummy ranlib; ac_word=$2
4143
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4144
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4145
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4146
echo $ECHO_N "(cached) $ECHO_C" >&6
4148
if test -n "$ac_ct_RANLIB"; then
4149
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4151
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155
test -z "$as_dir" && as_dir=.
4156
for ac_exec_ext in '' $ac_executable_extensions; do
4157
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158
ac_cv_prog_ac_ct_RANLIB="ranlib"
4159
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4168
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4169
if test -n "$ac_ct_RANLIB"; then
4170
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4171
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4173
{ echo "$as_me:$LINENO: result: no" >&5
4174
echo "${ECHO_T}no" >&6; }
4177
if test "x$ac_ct_RANLIB" = x; then
4180
case $cross_compiling:$ac_tool_warned in
4182
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4183
whose name does not start with the host triplet. If you think this
4184
configuration is useful to you, please write to autoconf@gnu.org." >&5
4185
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4186
whose name does not start with the host triplet. If you think this
4187
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4188
ac_tool_warned=yes ;;
4190
RANLIB=$ac_ct_RANLIB
4193
RANLIB="$ac_cv_prog_RANLIB"
4197
# Check whether --enable-shared was given.
4198
if test "${enable_shared+set}" = set; then
4199
enableval=$enable_shared; p=${PACKAGE-default}
4201
yes) enable_shared=yes ;;
4202
no) enable_shared=no ;;
4205
# Look at the argument we got. We use all the common list separators.
4206
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4207
for pkg in $enableval; do
4209
if test "X$pkg" = "X$p"; then
4222
# Check whether --enable-static was given.
4223
if test "${enable_static+set}" = set; then
4224
enableval=$enable_static; p=${PACKAGE-default}
4226
yes) enable_static=yes ;;
4227
no) enable_static=no ;;
4230
# Look at the argument we got. We use all the common list separators.
4231
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4232
for pkg in $enableval; do
4234
if test "X$pkg" = "X$p"; then
4246
# Check whether --enable-fast-install was given.
4247
if test "${enable_fast_install+set}" = set; then
4248
enableval=$enable_fast_install; p=${PACKAGE-default}
4250
yes) enable_fast_install=yes ;;
4251
no) enable_fast_install=no ;;
4253
enable_fast_install=no
4254
# Look at the argument we got. We use all the common list separators.
4255
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4256
for pkg in $enableval; do
4258
if test "X$pkg" = "X$p"; then
4259
enable_fast_install=yes
4266
enable_fast_install=yes
4270
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4271
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4272
if test "${lt_cv_path_SED+set}" = set; then
4273
echo $ECHO_N "(cached) $ECHO_C" >&6
4275
# Loop through the user's path and test for sed and gsed.
4276
# Then use that list of sed's as ones to test for truncation.
4277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281
test -z "$as_dir" && as_dir=.
4282
for lt_ac_prog in sed gsed; do
4283
for ac_exec_ext in '' $ac_executable_extensions; do
4284
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4285
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4293
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4294
# along with /bin/sed that truncates output.
4295
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4296
test ! -f $lt_ac_sed && continue
4297
cat /dev/null > conftest.in
4299
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4300
# Check for GNU sed and select it if it is found.
4301
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4302
lt_cv_path_SED=$lt_ac_sed
4306
cat conftest.in conftest.in >conftest.tmp
4307
mv conftest.tmp conftest.in
4308
cp conftest.in conftest.nl
4310
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4311
cmp -s conftest.out conftest.nl || break
4312
# 10000 chars as input seems more than enough
4313
test $lt_ac_count -gt 10 && break
4314
lt_ac_count=`expr $lt_ac_count + 1`
4315
if test $lt_ac_count -gt $lt_ac_max; then
4316
lt_ac_max=$lt_ac_count
4317
lt_cv_path_SED=$lt_ac_sed
4326
{ echo "$as_me:$LINENO: result: $SED" >&5
4327
echo "${ECHO_T}$SED" >&6; }
4329
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4330
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4331
if test "${ac_cv_path_GREP+set}" = set; then
4332
echo $ECHO_N "(cached) $ECHO_C" >&6
4334
# Extract the first word of "grep ggrep" to use in msg output
4335
if test -z "$GREP"; then
4336
set dummy grep ggrep; ac_prog_name=$2
4337
if test "${ac_cv_path_GREP+set}" = set; then
4338
echo $ECHO_N "(cached) $ECHO_C" >&6
4340
ac_path_GREP_found=false
4341
# Loop through the user's path and test for each of PROGNAME-LIST
4342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4346
test -z "$as_dir" && as_dir=.
4347
for ac_prog in grep ggrep; do
4348
for ac_exec_ext in '' $ac_executable_extensions; do
4349
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4350
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4351
# Check for GNU ac_path_GREP and select it if it is found.
4352
# Check for GNU $ac_path_GREP
4353
case `"$ac_path_GREP" --version 2>&1` in
4355
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4358
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4361
cat "conftest.in" "conftest.in" >"conftest.tmp"
4362
mv "conftest.tmp" "conftest.in"
4363
cp "conftest.in" "conftest.nl"
4364
echo 'GREP' >> "conftest.nl"
4365
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4366
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4367
ac_count=`expr $ac_count + 1`
4368
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4369
# Best one so far, save it but keep looking for a better one
4370
ac_cv_path_GREP="$ac_path_GREP"
4371
ac_path_GREP_max=$ac_count
4373
# 10*(2^10) chars as input seems more than enough
4374
test $ac_count -gt 10 && break
4376
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4380
$ac_path_GREP_found && break 3
4390
GREP="$ac_cv_path_GREP"
4391
if test -z "$GREP"; then
4392
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4393
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4394
{ (exit 1); exit 1; }; }
4398
ac_cv_path_GREP=$GREP
4403
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4404
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4405
GREP="$ac_cv_path_GREP"
4408
{ echo "$as_me:$LINENO: checking for egrep" >&5
4409
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4410
if test "${ac_cv_path_EGREP+set}" = set; then
4411
echo $ECHO_N "(cached) $ECHO_C" >&6
4413
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4414
then ac_cv_path_EGREP="$GREP -E"
4416
# Extract the first word of "egrep" to use in msg output
4417
if test -z "$EGREP"; then
4418
set dummy egrep; ac_prog_name=$2
4419
if test "${ac_cv_path_EGREP+set}" = set; then
4420
echo $ECHO_N "(cached) $ECHO_C" >&6
4422
ac_path_EGREP_found=false
4423
# Loop through the user's path and test for each of PROGNAME-LIST
4424
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4428
test -z "$as_dir" && as_dir=.
4429
for ac_prog in egrep; do
4430
for ac_exec_ext in '' $ac_executable_extensions; do
4431
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4432
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4433
# Check for GNU ac_path_EGREP and select it if it is found.
4434
# Check for GNU $ac_path_EGREP
4435
case `"$ac_path_EGREP" --version 2>&1` in
4437
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4440
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4443
cat "conftest.in" "conftest.in" >"conftest.tmp"
4444
mv "conftest.tmp" "conftest.in"
4445
cp "conftest.in" "conftest.nl"
4446
echo 'EGREP' >> "conftest.nl"
4447
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4448
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4449
ac_count=`expr $ac_count + 1`
4450
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4451
# Best one so far, save it but keep looking for a better one
4452
ac_cv_path_EGREP="$ac_path_EGREP"
4453
ac_path_EGREP_max=$ac_count
4455
# 10*(2^10) chars as input seems more than enough
4456
test $ac_count -gt 10 && break
4458
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4462
$ac_path_EGREP_found && break 3
4472
EGREP="$ac_cv_path_EGREP"
4473
if test -z "$EGREP"; then
4474
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4475
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4476
{ (exit 1); exit 1; }; }
4480
ac_cv_path_EGREP=$EGREP
4486
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4487
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4488
EGREP="$ac_cv_path_EGREP"
4492
# Check whether --with-gnu-ld was given.
4493
if test "${with_gnu_ld+set}" = set; then
4494
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4500
if test "$GCC" = yes; then
4501
# Check if gcc -print-prog-name=ld gives a path.
4502
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4503
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4506
# gcc leaves a trailing carriage return which upsets mingw
4507
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4509
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4512
# Accept absolute paths.
4514
re_direlt='/[^/][^/]*/\.\./'
4515
# Canonicalize the pathname of ld
4516
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4517
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4518
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4520
test -z "$LD" && LD="$ac_prog"
4523
# If it fails, then pretend we aren't using GCC.
4527
# If it is relative, then search for the first ld in PATH.
4531
elif test "$with_gnu_ld" = yes; then
4532
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
4533
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4535
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4536
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4538
if test "${lt_cv_path_LD+set}" = set; then
4539
echo $ECHO_N "(cached) $ECHO_C" >&6
4541
if test -z "$LD"; then
4542
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4543
for ac_dir in $PATH; do
4545
test -z "$ac_dir" && ac_dir=.
4546
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4547
lt_cv_path_LD="$ac_dir/$ac_prog"
4548
# Check to see if the program is GNU ld. I'd rather use --version,
4549
# but apparently some variants of GNU ld only accept -v.
4550
# Break only if it was the GNU/non-GNU ld that we prefer.
4551
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4552
*GNU* | *'with BFD'*)
4553
test "$with_gnu_ld" != no && break
4556
test "$with_gnu_ld" != yes && break
4563
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4568
if test -n "$LD"; then
4569
{ echo "$as_me:$LINENO: result: $LD" >&5
4570
echo "${ECHO_T}$LD" >&6; }
4572
{ echo "$as_me:$LINENO: result: no" >&5
4573
echo "${ECHO_T}no" >&6; }
4575
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4576
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4577
{ (exit 1); exit 1; }; }
4578
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4579
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4580
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4581
echo $ECHO_N "(cached) $ECHO_C" >&6
4583
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4584
case `$LD -v 2>&1 </dev/null` in
4585
*GNU* | *'with BFD'*)
4586
lt_cv_prog_gnu_ld=yes
4589
lt_cv_prog_gnu_ld=no
4593
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4594
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4595
with_gnu_ld=$lt_cv_prog_gnu_ld
4598
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4599
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4600
if test "${lt_cv_ld_reload_flag+set}" = set; then
4601
echo $ECHO_N "(cached) $ECHO_C" >&6
4603
lt_cv_ld_reload_flag='-r'
4605
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4606
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4607
reload_flag=$lt_cv_ld_reload_flag
4608
case $reload_flag in
4610
*) reload_flag=" $reload_flag" ;;
4612
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4615
if test "$GCC" = yes; then
4616
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4618
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4623
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4624
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4625
if test "${lt_cv_path_NM+set}" = set; then
4626
echo $ECHO_N "(cached) $ECHO_C" >&6
4628
if test -n "$NM"; then
4629
# Let the user override the test.
4632
lt_nm_to_check="${ac_tool_prefix}nm"
4633
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4634
lt_nm_to_check="$lt_nm_to_check nm"
4636
for lt_tmp_nm in $lt_nm_to_check; do
4637
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4638
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4640
test -z "$ac_dir" && ac_dir=.
4641
tmp_nm="$ac_dir/$lt_tmp_nm"
4642
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4643
# Check to see if the nm accepts a BSD-compat flag.
4644
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4645
# nm: unknown option "B" ignored
4646
# Tru64's nm complains that /dev/null is an invalid object file
4647
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4648
*/dev/null* | *'Invalid file or object type'*)
4649
lt_cv_path_NM="$tmp_nm -B"
4653
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4655
lt_cv_path_NM="$tmp_nm -p"
4659
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4660
continue # so that we can try to find one that supports BSD flags
4669
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4672
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4673
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4676
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4677
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4678
if test "${lt_cv_deplibs_check_method+set}" = set; then
4679
echo $ECHO_N "(cached) $ECHO_C" >&6
4681
lt_cv_file_magic_cmd='$MAGIC_CMD'
4682
lt_cv_file_magic_test_file=
4683
lt_cv_deplibs_check_method='unknown'
4684
# Need to set the preceding variable on all platforms that support
4685
# interlibrary dependencies.
4686
# 'none' -- dependencies not supported.
4687
# `unknown' -- same as none, but documents that we really don't know.
4688
# 'pass_all' -- all dependencies passed with no checks.
4689
# 'test_compile' -- check by making test program.
4690
# 'file_magic [[regex]]' -- check by looking for files in library path
4691
# which responds to the $file_magic_cmd with a given extended regex.
4692
# If you have `file' or equivalent on your system and you're not sure
4693
# whether `pass_all' will *always* work, you probably want this one.
4697
lt_cv_deplibs_check_method=pass_all
4701
lt_cv_deplibs_check_method=pass_all
4705
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4706
lt_cv_file_magic_cmd='/usr/bin/file -L'
4707
lt_cv_file_magic_test_file=/shlib/libc.so
4711
# func_win32_libid is a shell function defined in ltmain.sh
4712
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4713
lt_cv_file_magic_cmd='func_win32_libid'
4717
# Base MSYS/MinGW do not provide the 'file' command needed by
4718
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4719
# unless we find 'file', for example because we are cross-compiling.
4720
if ( file / ) >/dev/null 2>&1; then
4721
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4722
lt_cv_file_magic_cmd='func_win32_libid'
4724
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4725
lt_cv_file_magic_cmd='$OBJDUMP -f'
4729
darwin* | rhapsody*)
4730
lt_cv_deplibs_check_method=pass_all
4733
freebsd* | dragonfly*)
4734
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4737
# Not sure whether the presence of OpenBSD here was a mistake.
4738
# Let's accept both of them until this is cleared up.
4739
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4740
lt_cv_file_magic_cmd=/usr/bin/file
4741
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4745
lt_cv_deplibs_check_method=pass_all
4750
lt_cv_deplibs_check_method=pass_all
4753
hpux10.20* | hpux11*)
4754
lt_cv_file_magic_cmd=/usr/bin/file
4757
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4758
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4761
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]'
4762
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4765
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4766
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4772
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4773
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4776
irix5* | irix6* | nonstopux*)
4778
*-32|*"-32 ") libmagic=32-bit;;
4779
*-n32|*"-n32 ") libmagic=N32;;
4780
*-64|*"-64 ") libmagic=64-bit;;
4781
*) libmagic=never-match;;
4783
lt_cv_deplibs_check_method=pass_all
4786
# This must be Linux ELF.
4787
linux* | k*bsd*-gnu)
4788
lt_cv_deplibs_check_method=pass_all
4791
netbsd* | netbsdelf*-gnu)
4792
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4793
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4795
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4800
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4801
lt_cv_file_magic_cmd=/usr/bin/file
4802
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4806
lt_cv_deplibs_check_method=unknown
4810
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4811
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4813
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4817
osf3* | osf4* | osf5*)
4818
lt_cv_deplibs_check_method=pass_all
4822
lt_cv_deplibs_check_method=pass_all
4826
lt_cv_deplibs_check_method=pass_all
4830
case $host_vendor in
4832
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]'
4833
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4836
lt_cv_deplibs_check_method=pass_all
4839
lt_cv_file_magic_cmd='/bin/file'
4840
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4843
lt_cv_file_magic_cmd='/bin/file'
4844
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4845
lt_cv_file_magic_test_file=/lib/libc.so
4848
lt_cv_deplibs_check_method=pass_all
4851
lt_cv_deplibs_check_method=pass_all
4856
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4857
lt_cv_deplibs_check_method=pass_all
4862
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4863
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4864
file_magic_cmd=$lt_cv_file_magic_cmd
4865
deplibs_check_method=$lt_cv_deplibs_check_method
4866
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4871
# If no C compiler was specified, use CC.
4874
# If no C compiler flags were specified, use CFLAGS.
4875
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4877
# Allow CC to be a program name with arguments.
4881
# Check whether --enable-libtool-lock was given.
4882
if test "${enable_libtool_lock+set}" = set; then
4883
enableval=$enable_libtool_lock;
4886
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4888
# Some flags need to be propagated to the compiler or linker for good
4892
# Find out which ABI we are using.
4893
echo 'int i;' > conftest.$ac_ext
4894
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895
(eval $ac_compile) 2>&5
4897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898
(exit $ac_status); }; then
4899
case `/usr/bin/file conftest.$ac_objext` in
4911
# Find out which ABI we are using.
4912
echo '#line __oline__ "configure"' > conftest.$ac_ext
4913
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914
(eval $ac_compile) 2>&5
4916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917
(exit $ac_status); }; then
4918
if test "$lt_cv_prog_gnu_ld" = yes; then
4919
case `/usr/bin/file conftest.$ac_objext` in
4921
LD="${LD-ld} -melf32bsmip"
4924
LD="${LD-ld} -melf32bmipn32"
4927
LD="${LD-ld} -melf64bmip"
4931
case `/usr/bin/file conftest.$ac_objext` in
4947
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4948
s390*-*linux*|sparc*-*linux*)
4949
# Find out which ABI we are using.
4950
echo 'int i;' > conftest.$ac_ext
4951
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952
(eval $ac_compile) 2>&5
4954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955
(exit $ac_status); }; then
4956
case `/usr/bin/file conftest.o` in
4959
x86_64-*kfreebsd*-gnu)
4960
LD="${LD-ld} -m elf_i386_fbsd"
4963
LD="${LD-ld} -m elf_i386"
4965
ppc64-*linux*|powerpc64-*linux*)
4966
LD="${LD-ld} -m elf32ppclinux"
4969
LD="${LD-ld} -m elf_s390"
4972
LD="${LD-ld} -m elf32_sparc"
4978
x86_64-*kfreebsd*-gnu)
4979
LD="${LD-ld} -m elf_x86_64_fbsd"
4982
LD="${LD-ld} -m elf_x86_64"
4984
ppc*-*linux*|powerpc*-*linux*)
4985
LD="${LD-ld} -m elf64ppc"
4988
LD="${LD-ld} -m elf64_s390"
4991
LD="${LD-ld} -m elf64_sparc"
5001
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5002
SAVE_CFLAGS="$CFLAGS"
5003
CFLAGS="$CFLAGS -belf"
5004
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5005
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5006
if test "${lt_cv_cc_needs_belf+set}" = set; then
5007
echo $ECHO_N "(cached) $ECHO_C" >&6
5010
ac_cpp='$CPP $CPPFLAGS'
5011
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015
cat >conftest.$ac_ext <<_ACEOF
5018
cat confdefs.h >>conftest.$ac_ext
5019
cat >>conftest.$ac_ext <<_ACEOF
5020
/* end confdefs.h. */
5030
rm -f conftest.$ac_objext conftest$ac_exeext
5031
if { (ac_try="$ac_link"
5033
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034
*) ac_try_echo=$ac_try;;
5036
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5037
(eval "$ac_link") 2>conftest.er1
5039
grep -v '^ *+' conftest.er1 >conftest.err
5041
cat conftest.err >&5
5042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043
(exit $ac_status); } && {
5044
test -z "$ac_c_werror_flag" ||
5045
test ! -s conftest.err
5046
} && test -s conftest$ac_exeext &&
5047
$as_test_x conftest$ac_exeext; then
5048
lt_cv_cc_needs_belf=yes
5050
echo "$as_me: failed program was:" >&5
5051
sed 's/^/| /' conftest.$ac_ext >&5
5053
lt_cv_cc_needs_belf=no
5056
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5057
conftest$ac_exeext conftest.$ac_ext
5059
ac_cpp='$CPP $CPPFLAGS'
5060
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5066
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5067
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5068
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5069
CFLAGS="$SAVE_CFLAGS"
5073
# Find out which ABI we are using.
5074
echo 'int i;' > conftest.$ac_ext
5075
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5076
(eval $ac_compile) 2>&5
5078
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079
(exit $ac_status); }; then
5080
case `/usr/bin/file conftest.o` in
5082
case $lt_cv_prog_gnu_ld in
5083
yes*) LD="${LD-ld} -m elf64_sparc" ;;
5084
*) LD="${LD-ld} -64" ;;
5095
need_locks="$enable_libtool_lock"
5099
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5100
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5101
if test "${ac_cv_header_stdc+set}" = set; then
5102
echo $ECHO_N "(cached) $ECHO_C" >&6
5104
cat >conftest.$ac_ext <<_ACEOF
5107
cat confdefs.h >>conftest.$ac_ext
5108
cat >>conftest.$ac_ext <<_ACEOF
5109
/* end confdefs.h. */
5123
rm -f conftest.$ac_objext
5124
if { (ac_try="$ac_compile"
5126
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127
*) ac_try_echo=$ac_try;;
5129
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5130
(eval "$ac_compile") 2>conftest.er1
5132
grep -v '^ *+' conftest.er1 >conftest.err
5134
cat conftest.err >&5
5135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136
(exit $ac_status); } && {
5137
test -z "$ac_c_werror_flag" ||
5138
test ! -s conftest.err
5139
} && test -s conftest.$ac_objext; then
5140
ac_cv_header_stdc=yes
5142
echo "$as_me: failed program was:" >&5
5143
sed 's/^/| /' conftest.$ac_ext >&5
5145
ac_cv_header_stdc=no
5148
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150
if test $ac_cv_header_stdc = yes; then
5151
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5152
cat >conftest.$ac_ext <<_ACEOF
5155
cat confdefs.h >>conftest.$ac_ext
5156
cat >>conftest.$ac_ext <<_ACEOF
5157
/* end confdefs.h. */
5161
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5162
$EGREP "memchr" >/dev/null 2>&1; then
5165
ac_cv_header_stdc=no
5171
if test $ac_cv_header_stdc = yes; then
5172
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5173
cat >conftest.$ac_ext <<_ACEOF
5176
cat confdefs.h >>conftest.$ac_ext
5177
cat >>conftest.$ac_ext <<_ACEOF
5178
/* end confdefs.h. */
5182
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5183
$EGREP "free" >/dev/null 2>&1; then
5186
ac_cv_header_stdc=no
5192
if test $ac_cv_header_stdc = yes; then
5193
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5194
if test "$cross_compiling" = yes; then
5197
cat >conftest.$ac_ext <<_ACEOF
5200
cat confdefs.h >>conftest.$ac_ext
5201
cat >>conftest.$ac_ext <<_ACEOF
5202
/* end confdefs.h. */
5205
#if ((' ' & 0x0FF) == 0x020)
5206
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5207
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5209
# define ISLOWER(c) \
5210
(('a' <= (c) && (c) <= 'i') \
5211
|| ('j' <= (c) && (c) <= 'r') \
5212
|| ('s' <= (c) && (c) <= 'z'))
5213
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5216
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5221
for (i = 0; i < 256; i++)
5222
if (XOR (islower (i), ISLOWER (i))
5223
|| toupper (i) != TOUPPER (i))
5228
rm -f conftest$ac_exeext
5229
if { (ac_try="$ac_link"
5231
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232
*) ac_try_echo=$ac_try;;
5234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235
(eval "$ac_link") 2>&5
5237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5239
{ (case "(($ac_try" in
5240
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241
*) ac_try_echo=$ac_try;;
5243
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244
(eval "$ac_try") 2>&5
5246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247
(exit $ac_status); }; }; then
5250
echo "$as_me: program exited with status $ac_status" >&5
5251
echo "$as_me: failed program was:" >&5
5252
sed 's/^/| /' conftest.$ac_ext >&5
5255
ac_cv_header_stdc=no
5257
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5263
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5264
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5265
if test $ac_cv_header_stdc = yes; then
5267
cat >>confdefs.h <<\_ACEOF
5268
@%:@define STDC_HEADERS 1
5273
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5283
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5284
inttypes.h stdint.h unistd.h
5286
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5287
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5288
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5289
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5290
echo $ECHO_N "(cached) $ECHO_C" >&6
5292
cat >conftest.$ac_ext <<_ACEOF
5295
cat confdefs.h >>conftest.$ac_ext
5296
cat >>conftest.$ac_ext <<_ACEOF
5297
/* end confdefs.h. */
5298
$ac_includes_default
5300
@%:@include <$ac_header>
5302
rm -f conftest.$ac_objext
5303
if { (ac_try="$ac_compile"
5305
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306
*) ac_try_echo=$ac_try;;
5308
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309
(eval "$ac_compile") 2>conftest.er1
5311
grep -v '^ *+' conftest.er1 >conftest.err
5313
cat conftest.err >&5
5314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315
(exit $ac_status); } && {
5316
test -z "$ac_c_werror_flag" ||
5317
test ! -s conftest.err
5318
} && test -s conftest.$ac_objext; then
5319
eval "$as_ac_Header=yes"
5321
echo "$as_me: failed program was:" >&5
5322
sed 's/^/| /' conftest.$ac_ext >&5
5324
eval "$as_ac_Header=no"
5327
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329
ac_res=`eval echo '${'$as_ac_Header'}'`
5330
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5331
echo "${ECHO_T}$ac_res" >&6; }
5332
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5333
cat >>confdefs.h <<_ACEOF
5334
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5343
for ac_header in dlfcn.h
5345
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5346
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5347
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5348
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5349
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5350
echo $ECHO_N "(cached) $ECHO_C" >&6
5352
ac_res=`eval echo '${'$as_ac_Header'}'`
5353
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5354
echo "${ECHO_T}$ac_res" >&6; }
5356
# Is the header compilable?
5357
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5358
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5359
cat >conftest.$ac_ext <<_ACEOF
5362
cat confdefs.h >>conftest.$ac_ext
5363
cat >>conftest.$ac_ext <<_ACEOF
5364
/* end confdefs.h. */
5365
$ac_includes_default
5366
@%:@include <$ac_header>
5368
rm -f conftest.$ac_objext
5369
if { (ac_try="$ac_compile"
5371
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372
*) ac_try_echo=$ac_try;;
5374
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375
(eval "$ac_compile") 2>conftest.er1
5377
grep -v '^ *+' conftest.er1 >conftest.err
5379
cat conftest.err >&5
5380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381
(exit $ac_status); } && {
5382
test -z "$ac_c_werror_flag" ||
5383
test ! -s conftest.err
5384
} && test -s conftest.$ac_objext; then
5385
ac_header_compiler=yes
5387
echo "$as_me: failed program was:" >&5
5388
sed 's/^/| /' conftest.$ac_ext >&5
5390
ac_header_compiler=no
5393
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5395
echo "${ECHO_T}$ac_header_compiler" >&6; }
5397
# Is the header present?
5398
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5399
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5400
cat >conftest.$ac_ext <<_ACEOF
5403
cat confdefs.h >>conftest.$ac_ext
5404
cat >>conftest.$ac_ext <<_ACEOF
5405
/* end confdefs.h. */
5406
@%:@include <$ac_header>
5408
if { (ac_try="$ac_cpp conftest.$ac_ext"
5410
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411
*) ac_try_echo=$ac_try;;
5413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5416
grep -v '^ *+' conftest.er1 >conftest.err
5418
cat conftest.err >&5
5419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420
(exit $ac_status); } >/dev/null && {
5421
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5422
test ! -s conftest.err
5424
ac_header_preproc=yes
5426
echo "$as_me: failed program was:" >&5
5427
sed 's/^/| /' conftest.$ac_ext >&5
5429
ac_header_preproc=no
5432
rm -f conftest.err conftest.$ac_ext
5433
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5434
echo "${ECHO_T}$ac_header_preproc" >&6; }
5436
# So? What about this header?
5437
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5439
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5440
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5441
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5442
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5443
ac_header_preproc=yes
5446
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5447
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5448
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5449
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5450
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5451
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5452
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5453
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5454
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5455
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5456
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5457
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5461
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5462
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5463
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5464
echo $ECHO_N "(cached) $ECHO_C" >&6
5466
eval "$as_ac_Header=\$ac_header_preproc"
5468
ac_res=`eval echo '${'$as_ac_Header'}'`
5469
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5470
echo "${ECHO_T}$ac_res" >&6; }
5473
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5474
cat >>confdefs.h <<_ACEOF
5475
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5483
ac_cpp='$CXXCPP $CPPFLAGS'
5484
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5485
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5486
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5487
if test -z "$CXX"; then
5488
if test -n "$CCC"; then
5491
if test -n "$ac_tool_prefix"; then
5492
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5494
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5495
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5496
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5497
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5498
if test "${ac_cv_prog_CXX+set}" = set; then
5499
echo $ECHO_N "(cached) $ECHO_C" >&6
5501
if test -n "$CXX"; then
5502
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5504
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508
test -z "$as_dir" && as_dir=.
5509
for ac_exec_ext in '' $ac_executable_extensions; do
5510
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5512
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522
if test -n "$CXX"; then
5523
{ echo "$as_me:$LINENO: result: $CXX" >&5
5524
echo "${ECHO_T}$CXX" >&6; }
5526
{ echo "$as_me:$LINENO: result: no" >&5
5527
echo "${ECHO_T}no" >&6; }
5531
test -n "$CXX" && break
5534
if test -z "$CXX"; then
5536
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5538
# Extract the first word of "$ac_prog", so it can be a program name with args.
5539
set dummy $ac_prog; ac_word=$2
5540
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5541
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5542
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5543
echo $ECHO_N "(cached) $ECHO_C" >&6
5545
if test -n "$ac_ct_CXX"; then
5546
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5548
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552
test -z "$as_dir" && as_dir=.
5553
for ac_exec_ext in '' $ac_executable_extensions; do
5554
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555
ac_cv_prog_ac_ct_CXX="$ac_prog"
5556
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5566
if test -n "$ac_ct_CXX"; then
5567
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5568
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5570
{ echo "$as_me:$LINENO: result: no" >&5
5571
echo "${ECHO_T}no" >&6; }
5575
test -n "$ac_ct_CXX" && break
5578
if test "x$ac_ct_CXX" = x; then
5581
case $cross_compiling:$ac_tool_warned in
5583
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5584
whose name does not start with the host triplet. If you think this
5585
configuration is useful to you, please write to autoconf@gnu.org." >&5
5586
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5587
whose name does not start with the host triplet. If you think this
5588
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5589
ac_tool_warned=yes ;;
5597
# Provide some information about the compiler.
5598
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5599
ac_compiler=`set X $ac_compile; echo $2`
5600
{ (ac_try="$ac_compiler --version >&5"
5602
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603
*) ac_try_echo=$ac_try;;
5605
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606
(eval "$ac_compiler --version >&5") 2>&5
5608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609
(exit $ac_status); }
5610
{ (ac_try="$ac_compiler -v >&5"
5612
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613
*) ac_try_echo=$ac_try;;
5615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5616
(eval "$ac_compiler -v >&5") 2>&5
5618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619
(exit $ac_status); }
5620
{ (ac_try="$ac_compiler -V >&5"
5622
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623
*) ac_try_echo=$ac_try;;
5625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626
(eval "$ac_compiler -V >&5") 2>&5
5628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629
(exit $ac_status); }
5631
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5632
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5633
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5634
echo $ECHO_N "(cached) $ECHO_C" >&6
5636
cat >conftest.$ac_ext <<_ACEOF
5639
cat confdefs.h >>conftest.$ac_ext
5640
cat >>conftest.$ac_ext <<_ACEOF
5641
/* end confdefs.h. */
5654
rm -f conftest.$ac_objext
5655
if { (ac_try="$ac_compile"
5657
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658
*) ac_try_echo=$ac_try;;
5660
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661
(eval "$ac_compile") 2>conftest.er1
5663
grep -v '^ *+' conftest.er1 >conftest.err
5665
cat conftest.err >&5
5666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667
(exit $ac_status); } && {
5668
test -z "$ac_cxx_werror_flag" ||
5669
test ! -s conftest.err
5670
} && test -s conftest.$ac_objext; then
5673
echo "$as_me: failed program was:" >&5
5674
sed 's/^/| /' conftest.$ac_ext >&5
5679
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5683
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5684
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5685
GXX=`test $ac_compiler_gnu = yes && echo yes`
5686
ac_test_CXXFLAGS=${CXXFLAGS+set}
5687
ac_save_CXXFLAGS=$CXXFLAGS
5688
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5689
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5690
if test "${ac_cv_prog_cxx_g+set}" = set; then
5691
echo $ECHO_N "(cached) $ECHO_C" >&6
5693
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5694
ac_cxx_werror_flag=yes
5697
cat >conftest.$ac_ext <<_ACEOF
5700
cat confdefs.h >>conftest.$ac_ext
5701
cat >>conftest.$ac_ext <<_ACEOF
5702
/* end confdefs.h. */
5712
rm -f conftest.$ac_objext
5713
if { (ac_try="$ac_compile"
5715
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716
*) ac_try_echo=$ac_try;;
5718
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719
(eval "$ac_compile") 2>conftest.er1
5721
grep -v '^ *+' conftest.er1 >conftest.err
5723
cat conftest.err >&5
5724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725
(exit $ac_status); } && {
5726
test -z "$ac_cxx_werror_flag" ||
5727
test ! -s conftest.err
5728
} && test -s conftest.$ac_objext; then
5729
ac_cv_prog_cxx_g=yes
5731
echo "$as_me: failed program was:" >&5
5732
sed 's/^/| /' conftest.$ac_ext >&5
5735
cat >conftest.$ac_ext <<_ACEOF
5738
cat confdefs.h >>conftest.$ac_ext
5739
cat >>conftest.$ac_ext <<_ACEOF
5740
/* end confdefs.h. */
5750
rm -f conftest.$ac_objext
5751
if { (ac_try="$ac_compile"
5753
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5754
*) ac_try_echo=$ac_try;;
5756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5757
(eval "$ac_compile") 2>conftest.er1
5759
grep -v '^ *+' conftest.er1 >conftest.err
5761
cat conftest.err >&5
5762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763
(exit $ac_status); } && {
5764
test -z "$ac_cxx_werror_flag" ||
5765
test ! -s conftest.err
5766
} && test -s conftest.$ac_objext; then
5769
echo "$as_me: failed program was:" >&5
5770
sed 's/^/| /' conftest.$ac_ext >&5
5772
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5774
cat >conftest.$ac_ext <<_ACEOF
5777
cat confdefs.h >>conftest.$ac_ext
5778
cat >>conftest.$ac_ext <<_ACEOF
5779
/* end confdefs.h. */
5789
rm -f conftest.$ac_objext
5790
if { (ac_try="$ac_compile"
5792
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793
*) ac_try_echo=$ac_try;;
5795
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796
(eval "$ac_compile") 2>conftest.er1
5798
grep -v '^ *+' conftest.er1 >conftest.err
5800
cat conftest.err >&5
5801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802
(exit $ac_status); } && {
5803
test -z "$ac_cxx_werror_flag" ||
5804
test ! -s conftest.err
5805
} && test -s conftest.$ac_objext; then
5806
ac_cv_prog_cxx_g=yes
5808
echo "$as_me: failed program was:" >&5
5809
sed 's/^/| /' conftest.$ac_ext >&5
5814
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5823
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5824
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5825
if test "$ac_test_CXXFLAGS" = set; then
5826
CXXFLAGS=$ac_save_CXXFLAGS
5827
elif test $ac_cv_prog_cxx_g = yes; then
5828
if test "$GXX" = yes; then
5834
if test "$GXX" = yes; then
5841
ac_cpp='$CXXCPP $CPPFLAGS'
5842
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5843
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5844
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5846
depcc="$CXX" am_compiler_list=
5848
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5849
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5850
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5851
echo $ECHO_N "(cached) $ECHO_C" >&6
5853
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5854
# We make a subdir and do the tests there. Otherwise we can end up
5855
# making bogus files that we don't know about and never remove. For
5856
# instance it was reported that on HP-UX the gcc test will end up
5857
# making a dummy file named `D' -- because `-MD' means `put the output
5860
# Copy depcomp to subdir because otherwise we won't find it if we're
5861
# using a relative directory.
5862
cp "$am_depcomp" conftest.dir
5864
# We will build objects and dependencies in a subdirectory because
5865
# it helps to detect inapplicable dependency modes. For instance
5866
# both Tru64's cc and ICC support -MD to output dependencies as a
5867
# side effect of compilation, but ICC will put the dependencies in
5868
# the current directory while Tru64 will put them in the object
5872
am_cv_CXX_dependencies_compiler_type=none
5873
if test "$am_compiler_list" = ""; then
5874
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5876
for depmode in $am_compiler_list; do
5877
# Setup a source with many dependencies, because some compilers
5878
# like to wrap large dependency lists on column 80 (with \), and
5879
# we should not choose a depcomp mode which is confused by this.
5881
# We need to recreate these files for each test, as the compiler may
5882
# overwrite some of them when testing with obscure command lines.
5883
# This happens at least with the AIX C compiler.
5885
for i in 1 2 3 4 5 6; do
5886
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5887
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5888
# Solaris 8's {/usr,}/bin/sh.
5889
touch sub/conftst$i.h
5891
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5895
# after this tag, mechanisms are not by side-effect, so they'll
5896
# only be used when explicitly requested
5897
if test "x$enable_dependency_tracking" = xyes; then
5905
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5906
# mode. It turns out that the SunPro C++ compiler does not properly
5907
# handle `-M -o', and we need to detect this.
5908
if depmode=$depmode \
5909
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5910
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5911
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5912
>/dev/null 2>conftest.err &&
5913
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5914
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5915
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5916
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5917
# icc doesn't choke on unknown options, it will just issue warnings
5918
# or remarks (even with -Werror). So we grep stderr for any message
5919
# that says an option was ignored or not supported.
5920
# When given -MP, icc 7.0 and 7.1 complain thusly:
5921
# icc: Command line warning: ignoring option '-M'; no argument required
5922
# The diagnosis changed in icc 8.0:
5923
# icc: Command line remark: option '-MP' not supported
5924
if (grep 'ignoring option' conftest.err ||
5925
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5926
am_cv_CXX_dependencies_compiler_type=$depmode
5935
am_cv_CXX_dependencies_compiler_type=none
5939
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5940
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5941
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5944
test "x$enable_dependency_tracking" != xno \
5945
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5946
am__fastdepCXX_TRUE=
5947
am__fastdepCXX_FALSE='#'
5949
am__fastdepCXX_TRUE='#'
5950
am__fastdepCXX_FALSE=
5956
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5957
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5958
(test "X$CXX" != "Xg++"))) ; then
5960
ac_cpp='$CXXCPP $CPPFLAGS'
5961
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5962
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5964
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5965
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5966
if test -z "$CXXCPP"; then
5967
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5968
echo $ECHO_N "(cached) $ECHO_C" >&6
5970
# Double quotes because CXXCPP needs to be expanded
5971
for CXXCPP in "$CXX -E" "/lib/cpp"
5974
for ac_cxx_preproc_warn_flag in '' yes
5976
# Use a header file that comes with gcc, so configuring glibc
5977
# with a fresh cross-compiler works.
5978
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5979
# <limits.h> exists even on freestanding compilers.
5980
# On the NeXT, cc -E runs the code through the compiler's parser,
5981
# not just through cpp. "Syntax error" is here to catch this case.
5982
cat >conftest.$ac_ext <<_ACEOF
5985
cat confdefs.h >>conftest.$ac_ext
5986
cat >>conftest.$ac_ext <<_ACEOF
5987
/* end confdefs.h. */
5989
@%:@ include <limits.h>
5991
@%:@ include <assert.h>
5995
if { (ac_try="$ac_cpp conftest.$ac_ext"
5997
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998
*) ac_try_echo=$ac_try;;
6000
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6003
grep -v '^ *+' conftest.er1 >conftest.err
6005
cat conftest.err >&5
6006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007
(exit $ac_status); } >/dev/null && {
6008
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6009
test ! -s conftest.err
6013
echo "$as_me: failed program was:" >&5
6014
sed 's/^/| /' conftest.$ac_ext >&5
6016
# Broken: fails on valid input.
6020
rm -f conftest.err conftest.$ac_ext
6022
# OK, works on sane cases. Now check whether nonexistent headers
6023
# can be detected and how.
6024
cat >conftest.$ac_ext <<_ACEOF
6027
cat confdefs.h >>conftest.$ac_ext
6028
cat >>conftest.$ac_ext <<_ACEOF
6029
/* end confdefs.h. */
6030
@%:@include <ac_nonexistent.h>
6032
if { (ac_try="$ac_cpp conftest.$ac_ext"
6034
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035
*) ac_try_echo=$ac_try;;
6037
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6040
grep -v '^ *+' conftest.er1 >conftest.err
6042
cat conftest.err >&5
6043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044
(exit $ac_status); } >/dev/null && {
6045
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6046
test ! -s conftest.err
6048
# Broken: success on invalid input.
6051
echo "$as_me: failed program was:" >&5
6052
sed 's/^/| /' conftest.$ac_ext >&5
6054
# Passes both tests.
6059
rm -f conftest.err conftest.$ac_ext
6062
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6063
rm -f conftest.err conftest.$ac_ext
6064
if $ac_preproc_ok; then
6069
ac_cv_prog_CXXCPP=$CXXCPP
6072
CXXCPP=$ac_cv_prog_CXXCPP
6074
ac_cv_prog_CXXCPP=$CXXCPP
6076
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6077
echo "${ECHO_T}$CXXCPP" >&6; }
6079
for ac_cxx_preproc_warn_flag in '' yes
6081
# Use a header file that comes with gcc, so configuring glibc
6082
# with a fresh cross-compiler works.
6083
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6084
# <limits.h> exists even on freestanding compilers.
6085
# On the NeXT, cc -E runs the code through the compiler's parser,
6086
# not just through cpp. "Syntax error" is here to catch this case.
6087
cat >conftest.$ac_ext <<_ACEOF
6090
cat confdefs.h >>conftest.$ac_ext
6091
cat >>conftest.$ac_ext <<_ACEOF
6092
/* end confdefs.h. */
6094
@%:@ include <limits.h>
6096
@%:@ include <assert.h>
6100
if { (ac_try="$ac_cpp conftest.$ac_ext"
6102
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103
*) ac_try_echo=$ac_try;;
6105
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6108
grep -v '^ *+' conftest.er1 >conftest.err
6110
cat conftest.err >&5
6111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112
(exit $ac_status); } >/dev/null && {
6113
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6114
test ! -s conftest.err
6118
echo "$as_me: failed program was:" >&5
6119
sed 's/^/| /' conftest.$ac_ext >&5
6121
# Broken: fails on valid input.
6125
rm -f conftest.err conftest.$ac_ext
6127
# OK, works on sane cases. Now check whether nonexistent headers
6128
# can be detected and how.
6129
cat >conftest.$ac_ext <<_ACEOF
6132
cat confdefs.h >>conftest.$ac_ext
6133
cat >>conftest.$ac_ext <<_ACEOF
6134
/* end confdefs.h. */
6135
@%:@include <ac_nonexistent.h>
6137
if { (ac_try="$ac_cpp conftest.$ac_ext"
6139
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140
*) ac_try_echo=$ac_try;;
6142
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6145
grep -v '^ *+' conftest.er1 >conftest.err
6147
cat conftest.err >&5
6148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149
(exit $ac_status); } >/dev/null && {
6150
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6151
test ! -s conftest.err
6153
# Broken: success on invalid input.
6156
echo "$as_me: failed program was:" >&5
6157
sed 's/^/| /' conftest.$ac_ext >&5
6159
# Passes both tests.
6164
rm -f conftest.err conftest.$ac_ext
6167
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6168
rm -f conftest.err conftest.$ac_ext
6169
if $ac_preproc_ok; then
6172
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6173
See \`config.log' for more details." >&5
6174
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6175
See \`config.log' for more details." >&2;}
6176
{ (exit 1); exit 1; }; }
6180
ac_cpp='$CXXCPP $CPPFLAGS'
6181
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6182
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6183
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6189
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6190
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6192
if test -n "$ac_tool_prefix"; then
6193
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6195
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6196
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6197
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6198
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6199
if test "${ac_cv_prog_F77+set}" = set; then
6200
echo $ECHO_N "(cached) $ECHO_C" >&6
6202
if test -n "$F77"; then
6203
ac_cv_prog_F77="$F77" # Let the user override the test.
6205
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209
test -z "$as_dir" && as_dir=.
6210
for ac_exec_ext in '' $ac_executable_extensions; do
6211
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6212
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6213
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6223
if test -n "$F77"; then
6224
{ echo "$as_me:$LINENO: result: $F77" >&5
6225
echo "${ECHO_T}$F77" >&6; }
6227
{ echo "$as_me:$LINENO: result: no" >&5
6228
echo "${ECHO_T}no" >&6; }
6232
test -n "$F77" && break
6235
if test -z "$F77"; then
6237
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6239
# Extract the first word of "$ac_prog", so it can be a program name with args.
6240
set dummy $ac_prog; ac_word=$2
6241
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6242
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6243
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6244
echo $ECHO_N "(cached) $ECHO_C" >&6
6246
if test -n "$ac_ct_F77"; then
6247
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6249
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253
test -z "$as_dir" && as_dir=.
6254
for ac_exec_ext in '' $ac_executable_extensions; do
6255
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6256
ac_cv_prog_ac_ct_F77="$ac_prog"
6257
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6267
if test -n "$ac_ct_F77"; then
6268
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6269
echo "${ECHO_T}$ac_ct_F77" >&6; }
6271
{ echo "$as_me:$LINENO: result: no" >&5
6272
echo "${ECHO_T}no" >&6; }
6276
test -n "$ac_ct_F77" && break
6279
if test "x$ac_ct_F77" = x; then
6282
case $cross_compiling:$ac_tool_warned in
6284
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6285
whose name does not start with the host triplet. If you think this
6286
configuration is useful to you, please write to autoconf@gnu.org." >&5
6287
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6288
whose name does not start with the host triplet. If you think this
6289
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6290
ac_tool_warned=yes ;;
6297
# Provide some information about the compiler.
6298
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6299
ac_compiler=`set X $ac_compile; echo $2`
6300
{ (ac_try="$ac_compiler --version >&5"
6302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303
*) ac_try_echo=$ac_try;;
6305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306
(eval "$ac_compiler --version >&5") 2>&5
6308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309
(exit $ac_status); }
6310
{ (ac_try="$ac_compiler -v >&5"
6312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313
*) ac_try_echo=$ac_try;;
6315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316
(eval "$ac_compiler -v >&5") 2>&5
6318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319
(exit $ac_status); }
6320
{ (ac_try="$ac_compiler -V >&5"
6322
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323
*) ac_try_echo=$ac_try;;
6325
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326
(eval "$ac_compiler -V >&5") 2>&5
6328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329
(exit $ac_status); }
6332
# If we don't use `.F' as extension, the preprocessor is not run on the
6333
# input file. (Note that this only needs to work for GNU compilers.)
6336
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6337
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6338
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6339
echo $ECHO_N "(cached) $ECHO_C" >&6
6341
cat >conftest.$ac_ext <<_ACEOF
6349
rm -f conftest.$ac_objext
6350
if { (ac_try="$ac_compile"
6352
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353
*) ac_try_echo=$ac_try;;
6355
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356
(eval "$ac_compile") 2>conftest.er1
6358
grep -v '^ *+' conftest.er1 >conftest.err
6360
cat conftest.err >&5
6361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362
(exit $ac_status); } && {
6363
test -z "$ac_f77_werror_flag" ||
6364
test ! -s conftest.err
6365
} && test -s conftest.$ac_objext; then
6368
echo "$as_me: failed program was:" >&5
6369
sed 's/^/| /' conftest.$ac_ext >&5
6374
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6378
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6379
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6381
ac_test_FFLAGS=${FFLAGS+set}
6382
ac_save_FFLAGS=$FFLAGS
6384
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6385
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6386
if test "${ac_cv_prog_f77_g+set}" = set; then
6387
echo $ECHO_N "(cached) $ECHO_C" >&6
6390
cat >conftest.$ac_ext <<_ACEOF
6395
rm -f conftest.$ac_objext
6396
if { (ac_try="$ac_compile"
6398
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399
*) ac_try_echo=$ac_try;;
6401
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402
(eval "$ac_compile") 2>conftest.er1
6404
grep -v '^ *+' conftest.er1 >conftest.err
6406
cat conftest.err >&5
6407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408
(exit $ac_status); } && {
6409
test -z "$ac_f77_werror_flag" ||
6410
test ! -s conftest.err
6411
} && test -s conftest.$ac_objext; then
6412
ac_cv_prog_f77_g=yes
6414
echo "$as_me: failed program was:" >&5
6415
sed 's/^/| /' conftest.$ac_ext >&5
6420
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6424
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6425
if test "$ac_test_FFLAGS" = set; then
6426
FFLAGS=$ac_save_FFLAGS
6427
elif test $ac_cv_prog_f77_g = yes; then
6428
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6434
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6441
G77=`test $ac_compiler_gnu = yes && echo yes`
6443
ac_cpp='$CPP $CPPFLAGS'
6444
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6445
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6446
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6450
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6452
# find the maximum length of command line arguments
6453
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6454
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6455
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6456
echo $ECHO_N "(cached) $ECHO_C" >&6
6463
# On DJGPP, this test can blow up pretty badly due to problems in libc
6464
# (any single argument exceeding 2000 bytes causes a buffer overrun
6465
# during glob expansion). Even if it were fixed, the result of this
6466
# check would be larger than it should be.
6467
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6471
# Under GNU Hurd, this test is not required because there is
6472
# no limit to the length of command line arguments.
6473
# Libtool will interpret -1 as no limit whatsoever
6474
lt_cv_sys_max_cmd_len=-1;
6478
# On Win9x/ME, this test blows up -- it succeeds, but takes
6479
# about 5 minutes as the teststring grows exponentially.
6480
# Worse, since 9x/ME are not pre-emptively multitasking,
6481
# you end up with a "frozen" computer, even though with patience
6482
# the test eventually succeeds (with a max line length of 256k).
6483
# Instead, let's just punt: use the minimum linelength reported by
6484
# all of the supported platforms: 8192 (on NT/2K/XP).
6485
lt_cv_sys_max_cmd_len=8192;
6489
# On AmigaOS with pdksh, this test takes hours, literally.
6490
# So we just punt and use a minimum line length of 8192.
6491
lt_cv_sys_max_cmd_len=8192;
6494
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6495
# This has been around since 386BSD, at least. Likely further.
6496
if test -x /sbin/sysctl; then
6497
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6498
elif test -x /usr/sbin/sysctl; then
6499
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6501
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6503
# And add a safety zone
6504
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6505
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6509
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6510
lt_cv_sys_max_cmd_len=196608
6514
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6515
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6516
# nice to cause kernel panics so lets avoid the loop below.
6517
# First set a reasonable default.
6518
lt_cv_sys_max_cmd_len=16384
6520
if test -x /sbin/sysconfig; then
6521
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6522
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6527
lt_cv_sys_max_cmd_len=102400
6529
sysv5* | sco5v6* | sysv4.2uw2*)
6530
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6531
if test -n "$kargmax"; then
6532
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6534
lt_cv_sys_max_cmd_len=32768
6538
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6539
if test -n "$lt_cv_sys_max_cmd_len"; then
6540
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6541
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6543
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6544
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6545
= "XX$teststring") >/dev/null 2>&1 &&
6546
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6547
lt_cv_sys_max_cmd_len=$new_result &&
6548
test $i != 17 # 1/2 MB should be enough
6551
teststring=$teststring$teststring
6554
# Add a significant safety factor because C++ compilers can tack on massive
6555
# amounts of additional arguments before passing them to the linker.
6556
# It appears as though 1/2 is a usable value.
6557
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6564
if test -n $lt_cv_sys_max_cmd_len ; then
6565
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6566
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6568
{ echo "$as_me:$LINENO: result: none" >&5
6569
echo "${ECHO_T}none" >&6; }
6576
# Check for command to grab the raw symbol name followed by C symbol from nm.
6577
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6578
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6579
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6580
echo $ECHO_N "(cached) $ECHO_C" >&6
6583
# These are sane defaults that work on at least a few old systems.
6584
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6586
# Character class describing NM global symbol codes.
6587
symcode='[BCDEGRST]'
6589
# Regexp to match symbols that can be accessed directly from C.
6590
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6592
# Transform an extracted symbol line into a proper C declaration
6593
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6595
# Transform an extracted symbol line into symbol name and symbol address
6596
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'"
6598
# Define system-specific variables.
6603
cygwin* | mingw* | pw32*)
6604
symcode='[ABCDGISTW]'
6606
hpux*) # Its linker distinguishes data from code symbols
6607
if test "$host_cpu" = ia64; then
6608
symcode='[ABCDEGRST]'
6610
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6611
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'"
6613
linux* | k*bsd*-gnu)
6614
if test "$host_cpu" = ia64; then
6615
symcode='[ABCDGIRSTW]'
6616
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6617
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'"
6621
symcode='[BCDEGRST]'
6624
symcode='[BCDEGQRST]'
6635
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6643
# Handle CRLF in mingw tool chain
6647
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6651
# If we're using GNU nm, then use its standard symbol codes.
6652
case `$NM -V 2>&1` in
6653
*GNU* | *'with BFD'*)
6654
symcode='[ABCDGIRSTW]' ;;
6657
# Try without a prefix undercore, then with it.
6658
for ac_symprfx in "" "_"; do
6660
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6661
symxfrm="\\1 $ac_symprfx\\2 \\2"
6663
# Write the raw and C identifiers.
6664
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6666
# Check to see that the pipe works correctly.
6670
cat > conftest.$ac_ext <<EOF
6675
void nm_test_func(){}
6679
int main(){nm_test_var='a';nm_test_func();return(0);}
6682
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683
(eval $ac_compile) 2>&5
6685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686
(exit $ac_status); }; then
6687
# Now try to grab the symbols.
6689
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6690
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693
(exit $ac_status); } && test -s "$nlist"; then
6694
# Try sorting and uniquifying the output.
6695
if sort "$nlist" | uniq > "$nlist"T; then
6696
mv -f "$nlist"T "$nlist"
6701
# Make sure that we snagged all the symbols we need.
6702
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6703
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6704
cat <<EOF > conftest.$ac_ext
6710
# Now generate the symbol file.
6711
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6713
cat <<EOF >> conftest.$ac_ext
6714
#if defined (__STDC__) && __STDC__
6715
# define lt_ptr_t void *
6717
# define lt_ptr_t char *
6721
/* The mapping between symbol names and symbols. */
6726
lt_preloaded_symbols[] =
6729
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6730
cat <<\EOF >> conftest.$ac_ext
6738
# Now try linking the two files.
6739
mv conftest.$ac_objext conftstm.$ac_objext
6740
lt_save_LIBS="$LIBS"
6741
lt_save_CFLAGS="$CFLAGS"
6742
LIBS="conftstm.$ac_objext"
6743
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6744
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6745
(eval $ac_link) 2>&5
6747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6751
LIBS="$lt_save_LIBS"
6752
CFLAGS="$lt_save_CFLAGS"
6754
echo "cannot find nm_test_func in $nlist" >&5
6757
echo "cannot find nm_test_var in $nlist" >&5
6760
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6763
echo "$progname: failed program was:" >&5
6764
cat conftest.$ac_ext >&5
6766
rm -f conftest* conftst*
6768
# Do not use the global_symbol_pipe unless it works.
6769
if test "$pipe_works" = yes; then
6772
lt_cv_sys_global_symbol_pipe=
6778
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6779
lt_cv_sys_global_symbol_to_cdecl=
6781
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6782
{ echo "$as_me:$LINENO: result: failed" >&5
6783
echo "${ECHO_T}failed" >&6; }
6785
{ echo "$as_me:$LINENO: result: ok" >&5
6786
echo "${ECHO_T}ok" >&6; }
6789
{ echo "$as_me:$LINENO: checking for objdir" >&5
6790
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6791
if test "${lt_cv_objdir+set}" = set; then
6792
echo $ECHO_N "(cached) $ECHO_C" >&6
6794
rm -f .libs 2>/dev/null
6795
mkdir .libs 2>/dev/null
6796
if test -d .libs; then
6799
# MS-DOS does not allow filenames that begin with a dot.
6802
rmdir .libs 2>/dev/null
6804
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6805
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6806
objdir=$lt_cv_objdir
6814
# AIX sometimes has problems with the GCC collect2 program. For some
6815
# reason, if we set the COLLECT_NAMES environment variable, the problems
6816
# vanish in a puff of smoke.
6817
if test "X${COLLECT_NAMES+set}" != Xset; then
6819
export COLLECT_NAMES
6824
# Sed substitution that helps us do robust quoting. It backslashifies
6825
# metacharacters that are still active within double-quoted strings.
6826
Xsed='sed -e 1s/^X//'
6827
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6829
# Same as above, but do not quote variable references.
6830
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6832
# Sed substitution to delay expansion of an escaped shell variable in a
6833
# double_quote_subst'ed string.
6834
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6836
# Sed substitution to avoid accidental globbing in evaled expressions
6837
no_glob_subst='s/\*/\\\*/g'
6843
default_ofile=libtool
6844
can_build_shared=yes
6846
# All known linkers require a `.a' archive for static linking (except MSVC,
6847
# which needs '.lib').
6849
ltmain="$ac_aux_dir/ltmain.sh"
6850
ofile="$default_ofile"
6851
with_gnu_ld="$lt_cv_prog_gnu_ld"
6853
if test -n "$ac_tool_prefix"; then
6854
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6855
set dummy ${ac_tool_prefix}ar; ac_word=$2
6856
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6857
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858
if test "${ac_cv_prog_AR+set}" = set; then
6859
echo $ECHO_N "(cached) $ECHO_C" >&6
6861
if test -n "$AR"; then
6862
ac_cv_prog_AR="$AR" # Let the user override the test.
6864
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868
test -z "$as_dir" && as_dir=.
6869
for ac_exec_ext in '' $ac_executable_extensions; do
6870
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871
ac_cv_prog_AR="${ac_tool_prefix}ar"
6872
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882
if test -n "$AR"; then
6883
{ echo "$as_me:$LINENO: result: $AR" >&5
6884
echo "${ECHO_T}$AR" >&6; }
6886
{ echo "$as_me:$LINENO: result: no" >&5
6887
echo "${ECHO_T}no" >&6; }
6892
if test -z "$ac_cv_prog_AR"; then
6894
# Extract the first word of "ar", so it can be a program name with args.
6895
set dummy ar; ac_word=$2
6896
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6897
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6899
echo $ECHO_N "(cached) $ECHO_C" >&6
6901
if test -n "$ac_ct_AR"; then
6902
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6904
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908
test -z "$as_dir" && as_dir=.
6909
for ac_exec_ext in '' $ac_executable_extensions; do
6910
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6911
ac_cv_prog_ac_ct_AR="ar"
6912
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6922
if test -n "$ac_ct_AR"; then
6923
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6924
echo "${ECHO_T}$ac_ct_AR" >&6; }
6926
{ echo "$as_me:$LINENO: result: no" >&5
6927
echo "${ECHO_T}no" >&6; }
6930
if test "x$ac_ct_AR" = x; then
6933
case $cross_compiling:$ac_tool_warned in
6935
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6936
whose name does not start with the host triplet. If you think this
6937
configuration is useful to you, please write to autoconf@gnu.org." >&5
6938
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6939
whose name does not start with the host triplet. If you think this
6940
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6941
ac_tool_warned=yes ;;
6949
if test -n "$ac_tool_prefix"; then
6950
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6951
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6952
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6953
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6954
if test "${ac_cv_prog_RANLIB+set}" = set; then
6955
echo $ECHO_N "(cached) $ECHO_C" >&6
6957
if test -n "$RANLIB"; then
6958
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6960
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964
test -z "$as_dir" && as_dir=.
6965
for ac_exec_ext in '' $ac_executable_extensions; do
6966
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6967
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6968
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977
RANLIB=$ac_cv_prog_RANLIB
6978
if test -n "$RANLIB"; then
6979
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
6980
echo "${ECHO_T}$RANLIB" >&6; }
6982
{ echo "$as_me:$LINENO: result: no" >&5
6983
echo "${ECHO_T}no" >&6; }
6988
if test -z "$ac_cv_prog_RANLIB"; then
6989
ac_ct_RANLIB=$RANLIB
6990
# Extract the first word of "ranlib", so it can be a program name with args.
6991
set dummy ranlib; ac_word=$2
6992
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6993
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6995
echo $ECHO_N "(cached) $ECHO_C" >&6
6997
if test -n "$ac_ct_RANLIB"; then
6998
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004
test -z "$as_dir" && as_dir=.
7005
for ac_exec_ext in '' $ac_executable_extensions; do
7006
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7007
ac_cv_prog_ac_ct_RANLIB="ranlib"
7008
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7018
if test -n "$ac_ct_RANLIB"; then
7019
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7020
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7022
{ echo "$as_me:$LINENO: result: no" >&5
7023
echo "${ECHO_T}no" >&6; }
7026
if test "x$ac_ct_RANLIB" = x; then
7029
case $cross_compiling:$ac_tool_warned in
7031
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7032
whose name does not start with the host triplet. If you think this
7033
configuration is useful to you, please write to autoconf@gnu.org." >&5
7034
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7035
whose name does not start with the host triplet. If you think this
7036
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7037
ac_tool_warned=yes ;;
7039
RANLIB=$ac_ct_RANLIB
7042
RANLIB="$ac_cv_prog_RANLIB"
7045
if test -n "$ac_tool_prefix"; then
7046
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7047
set dummy ${ac_tool_prefix}strip; ac_word=$2
7048
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7049
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050
if test "${ac_cv_prog_STRIP+set}" = set; then
7051
echo $ECHO_N "(cached) $ECHO_C" >&6
7053
if test -n "$STRIP"; then
7054
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060
test -z "$as_dir" && as_dir=.
7061
for ac_exec_ext in '' $ac_executable_extensions; do
7062
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7064
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073
STRIP=$ac_cv_prog_STRIP
7074
if test -n "$STRIP"; then
7075
{ echo "$as_me:$LINENO: result: $STRIP" >&5
7076
echo "${ECHO_T}$STRIP" >&6; }
7078
{ echo "$as_me:$LINENO: result: no" >&5
7079
echo "${ECHO_T}no" >&6; }
7084
if test -z "$ac_cv_prog_STRIP"; then
7086
# Extract the first word of "strip", so it can be a program name with args.
7087
set dummy strip; ac_word=$2
7088
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7089
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7090
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7091
echo $ECHO_N "(cached) $ECHO_C" >&6
7093
if test -n "$ac_ct_STRIP"; then
7094
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100
test -z "$as_dir" && as_dir=.
7101
for ac_exec_ext in '' $ac_executable_extensions; do
7102
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7103
ac_cv_prog_ac_ct_STRIP="strip"
7104
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7114
if test -n "$ac_ct_STRIP"; then
7115
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7116
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7118
{ echo "$as_me:$LINENO: result: no" >&5
7119
echo "${ECHO_T}no" >&6; }
7122
if test "x$ac_ct_STRIP" = x; then
7125
case $cross_compiling:$ac_tool_warned in
7127
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7128
whose name does not start with the host triplet. If you think this
7129
configuration is useful to you, please write to autoconf@gnu.org." >&5
7130
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7131
whose name does not start with the host triplet. If you think this
7132
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7133
ac_tool_warned=yes ;;
7138
STRIP="$ac_cv_prog_STRIP"
7143
old_CFLAGS="$CFLAGS"
7145
# Set sane defaults for various variables
7146
test -z "$AR" && AR=ar
7147
test -z "$AR_FLAGS" && AR_FLAGS=cru
7148
test -z "$AS" && AS=as
7149
test -z "$CC" && CC=cc
7150
test -z "$LTCC" && LTCC=$CC
7151
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7152
test -z "$DLLTOOL" && DLLTOOL=dlltool
7153
test -z "$LD" && LD=ld
7154
test -z "$LN_S" && LN_S="ln -s"
7155
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7156
test -z "$NM" && NM=nm
7157
test -z "$SED" && SED=sed
7158
test -z "$OBJDUMP" && OBJDUMP=objdump
7159
test -z "$RANLIB" && RANLIB=:
7160
test -z "$STRIP" && STRIP=:
7161
test -z "$ac_objext" && ac_objext=o
7163
# Determine commands to create old-style static archives.
7164
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7165
old_postinstall_cmds='chmod 644 $oldlib'
7166
old_postuninstall_cmds=
7168
if test -n "$RANLIB"; then
7171
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7174
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7177
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7180
for cc_temp in $compiler""; do
7182
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7183
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7188
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7191
# Only perform the check for file, if the check method requires it
7192
case $deplibs_check_method in
7194
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7195
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7196
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7197
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7198
echo $ECHO_N "(cached) $ECHO_C" >&6
7202
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7205
lt_save_MAGIC_CMD="$MAGIC_CMD"
7206
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7207
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7208
for ac_dir in $ac_dummy; do
7210
test -z "$ac_dir" && ac_dir=.
7211
if test -f $ac_dir/${ac_tool_prefix}file; then
7212
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7213
if test -n "$file_magic_test_file"; then
7214
case $deplibs_check_method in
7216
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7217
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7218
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7219
$EGREP "$file_magic_regex" > /dev/null; then
7224
*** Warning: the command libtool uses to detect shared libraries,
7225
*** $file_magic_cmd, produces output that libtool cannot recognize.
7226
*** The result is that libtool may fail to recognize shared libraries
7227
*** as such. This will affect the creation of libtool libraries that
7228
*** depend on shared libraries, but programs linked with such libtool
7229
*** libraries will work regardless of this problem. Nevertheless, you
7230
*** may want to report the problem to your system manager and/or to
7231
*** bug-libtool@gnu.org
7241
MAGIC_CMD="$lt_save_MAGIC_CMD"
7246
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7247
if test -n "$MAGIC_CMD"; then
7248
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7249
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7251
{ echo "$as_me:$LINENO: result: no" >&5
7252
echo "${ECHO_T}no" >&6; }
7255
if test -z "$lt_cv_path_MAGIC_CMD"; then
7256
if test -n "$ac_tool_prefix"; then
7257
{ echo "$as_me:$LINENO: checking for file" >&5
7258
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7259
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7260
echo $ECHO_N "(cached) $ECHO_C" >&6
7264
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7267
lt_save_MAGIC_CMD="$MAGIC_CMD"
7268
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7269
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7270
for ac_dir in $ac_dummy; do
7272
test -z "$ac_dir" && ac_dir=.
7273
if test -f $ac_dir/file; then
7274
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7275
if test -n "$file_magic_test_file"; then
7276
case $deplibs_check_method in
7278
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7279
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7280
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7281
$EGREP "$file_magic_regex" > /dev/null; then
7286
*** Warning: the command libtool uses to detect shared libraries,
7287
*** $file_magic_cmd, produces output that libtool cannot recognize.
7288
*** The result is that libtool may fail to recognize shared libraries
7289
*** as such. This will affect the creation of libtool libraries that
7290
*** depend on shared libraries, but programs linked with such libtool
7291
*** libraries will work regardless of this problem. Nevertheless, you
7292
*** may want to report the problem to your system manager and/or to
7293
*** bug-libtool@gnu.org
7303
MAGIC_CMD="$lt_save_MAGIC_CMD"
7308
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7309
if test -n "$MAGIC_CMD"; then
7310
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7311
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7313
{ echo "$as_me:$LINENO: result: no" >&5
7314
echo "${ECHO_T}no" >&6; }
7329
# Check whether --enable-libtool-lock was given.
7330
if test "${enable_libtool_lock+set}" = set; then
7331
enableval=$enable_libtool_lock;
7334
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7337
# Check whether --with-pic was given.
7338
if test "${with_pic+set}" = set; then
7339
withval=$with_pic; pic_mode="$withval"
7344
test -z "$pic_mode" && pic_mode=default
7346
# Use C for the default configuration in the libtool script
7350
ac_cpp='$CPP $CPPFLAGS'
7351
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7352
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7353
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7356
# Source file extension for C test sources.
7359
# Object file extension for compiled C test sources.
7363
# Code to be used in simple compile tests
7364
lt_simple_compile_test_code="int some_variable = 0;"
7366
# Code to be used in simple link tests
7367
lt_simple_link_test_code='int main(){return(0);}'
7370
# If no C compiler was specified, use CC.
7373
# If no C compiler flags were specified, use CFLAGS.
7374
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7376
# Allow CC to be a program name with arguments.
7380
# save warnings/boilerplate of simple test code
7381
ac_outfile=conftest.$ac_objext
7382
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7383
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7384
_lt_compiler_boilerplate=`cat conftest.err`
7387
ac_outfile=conftest.$ac_objext
7388
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7389
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7390
_lt_linker_boilerplate=`cat conftest.err`
7395
## There is no encapsulation within the following macros, do not change
7396
## the running order or otherwise move them around unless you know exactly
7397
## what you are doing...
7399
lt_prog_compiler_no_builtin_flag=
7401
if test "$GCC" = yes; then
7402
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7405
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7406
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7407
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7408
echo $ECHO_N "(cached) $ECHO_C" >&6
7410
lt_cv_prog_compiler_rtti_exceptions=no
7411
ac_outfile=conftest.$ac_objext
7412
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7413
lt_compiler_flag="-fno-rtti -fno-exceptions"
7414
# Insert the option either (1) after the last *FLAGS variable, or
7415
# (2) before a word containing "conftest.", or (3) at the end.
7416
# Note that $ac_compile itself does not contain backslashes and begins
7417
# with a dollar sign (not a hyphen), so the echo should work correctly.
7418
# The option is referenced via a variable to avoid confusing sed.
7419
lt_compile=`echo "$ac_compile" | $SED \
7420
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7421
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7422
-e 's:$: $lt_compiler_flag:'`
7423
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7424
(eval "$lt_compile" 2>conftest.err)
7426
cat conftest.err >&5
7427
echo "$as_me:__oline__: \$? = $ac_status" >&5
7428
if (exit $ac_status) && test -s "$ac_outfile"; then
7429
# The compiler can only warn and ignore the option if not recognized
7430
# So say no if there are warnings other than the usual output.
7431
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7432
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7433
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7434
lt_cv_prog_compiler_rtti_exceptions=yes
7440
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7441
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7443
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7444
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7451
lt_prog_compiler_wl=
7452
lt_prog_compiler_pic=
7453
lt_prog_compiler_static=
7455
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7456
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7458
if test "$GCC" = yes; then
7459
lt_prog_compiler_wl='-Wl,'
7460
lt_prog_compiler_static='-static'
7464
# All AIX code is PIC.
7465
if test "$host_cpu" = ia64; then
7466
# AIX 5 now supports IA64 processor
7467
lt_prog_compiler_static='-Bstatic'
7472
# FIXME: we need at least 68020 code to build shared libraries, but
7473
# adding the `-m68020' flag to GCC prevents building anything better,
7475
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7478
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7479
# PIC is the default for these OSes.
7482
mingw* | cygwin* | pw32* | os2*)
7483
# This hack is so that the source file can tell whether it is being
7484
# built for inclusion in a dll (and should export symbols for example).
7485
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7486
# (--disable-auto-import) libraries
7487
lt_prog_compiler_pic='-DDLL_EXPORT'
7490
darwin* | rhapsody*)
7491
# PIC is the default on this platform
7492
# Common symbols not allowed in MH_DYLIB files
7493
lt_prog_compiler_pic='-fno-common'
7497
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7498
# Instead, we relocate shared libraries at runtime.
7502
# Just because we use GCC doesn't mean we suddenly get shared libraries
7503
# on systems that don't support them.
7504
lt_prog_compiler_can_build_shared=no
7509
if test -d /usr/nec; then
7510
lt_prog_compiler_pic=-Kconform_pic
7515
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7522
lt_prog_compiler_pic='-fPIC'
7528
lt_prog_compiler_pic='-fPIC'
7532
# PORTME Check for flag to pass linker flags through the system compiler.
7535
lt_prog_compiler_wl='-Wl,'
7536
if test "$host_cpu" = ia64; then
7537
# AIX 5 now supports IA64 processor
7538
lt_prog_compiler_static='-Bstatic'
7540
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7544
# PIC is the default on this platform
7545
# Common symbols not allowed in MH_DYLIB files
7546
case $cc_basename in
7548
lt_prog_compiler_pic='-qnocommon'
7549
lt_prog_compiler_wl='-Wl,'
7554
mingw* | cygwin* | pw32* | os2*)
7555
# This hack is so that the source file can tell whether it is being
7556
# built for inclusion in a dll (and should export symbols for example).
7557
lt_prog_compiler_pic='-DDLL_EXPORT'
7560
hpux9* | hpux10* | hpux11*)
7561
lt_prog_compiler_wl='-Wl,'
7562
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7569
lt_prog_compiler_pic='+Z'
7572
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7573
lt_prog_compiler_static='${wl}-a ${wl}archive'
7576
irix5* | irix6* | nonstopux*)
7577
lt_prog_compiler_wl='-Wl,'
7578
# PIC (with -KPIC) is the default.
7579
lt_prog_compiler_static='-non_shared'
7583
lt_prog_compiler_pic='-KPIC'
7584
lt_prog_compiler_static='-Bstatic'
7587
linux* | k*bsd*-gnu)
7588
case $cc_basename in
7590
lt_prog_compiler_wl='-Wl,'
7591
lt_prog_compiler_pic='-KPIC'
7592
lt_prog_compiler_static='-static'
7594
pgcc* | pgf77* | pgf90* | pgf95*)
7595
# Portland Group compilers (*not* the Pentium gcc compiler,
7596
# which looks to be a dead project)
7597
lt_prog_compiler_wl='-Wl,'
7598
lt_prog_compiler_pic='-fpic'
7599
lt_prog_compiler_static='-Bstatic'
7602
lt_prog_compiler_wl='-Wl,'
7603
# All Alpha code is PIC.
7604
lt_prog_compiler_static='-non_shared'
7607
case `$CC -V 2>&1 | sed 5q` in
7610
lt_prog_compiler_pic='-KPIC'
7611
lt_prog_compiler_static='-Bstatic'
7612
lt_prog_compiler_wl='-Wl,'
7615
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7616
lt_prog_compiler_pic='-KPIC'
7617
lt_prog_compiler_static='-Bstatic'
7618
lt_prog_compiler_wl=''
7625
osf3* | osf4* | osf5*)
7626
lt_prog_compiler_wl='-Wl,'
7627
# All OSF/1 code is PIC.
7628
lt_prog_compiler_static='-non_shared'
7632
lt_prog_compiler_static='-non_shared'
7636
lt_prog_compiler_pic='-KPIC'
7637
lt_prog_compiler_static='-Bstatic'
7638
case $cc_basename in
7640
lt_prog_compiler_wl='-Qoption ld ';;
7642
lt_prog_compiler_wl='-Wl,';;
7647
lt_prog_compiler_wl='-Qoption ld '
7648
lt_prog_compiler_pic='-PIC'
7649
lt_prog_compiler_static='-Bstatic'
7652
sysv4 | sysv4.2uw2* | sysv4.3*)
7653
lt_prog_compiler_wl='-Wl,'
7654
lt_prog_compiler_pic='-KPIC'
7655
lt_prog_compiler_static='-Bstatic'
7659
if test -d /usr/nec ;then
7660
lt_prog_compiler_pic='-Kconform_pic'
7661
lt_prog_compiler_static='-Bstatic'
7665
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7666
lt_prog_compiler_wl='-Wl,'
7667
lt_prog_compiler_pic='-KPIC'
7668
lt_prog_compiler_static='-Bstatic'
7672
lt_prog_compiler_wl='-Wl,'
7673
lt_prog_compiler_can_build_shared=no
7677
lt_prog_compiler_pic='-pic'
7678
lt_prog_compiler_static='-Bstatic'
7682
lt_prog_compiler_can_build_shared=no
7687
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7688
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7691
# Check to make sure the PIC flag actually works.
7693
if test -n "$lt_prog_compiler_pic"; then
7695
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7696
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7697
if test "${lt_prog_compiler_pic_works+set}" = set; then
7698
echo $ECHO_N "(cached) $ECHO_C" >&6
7700
lt_prog_compiler_pic_works=no
7701
ac_outfile=conftest.$ac_objext
7702
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7703
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7704
# Insert the option either (1) after the last *FLAGS variable, or
7705
# (2) before a word containing "conftest.", or (3) at the end.
7706
# Note that $ac_compile itself does not contain backslashes and begins
7707
# with a dollar sign (not a hyphen), so the echo should work correctly.
7708
# The option is referenced via a variable to avoid confusing sed.
7709
lt_compile=`echo "$ac_compile" | $SED \
7710
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7711
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7712
-e 's:$: $lt_compiler_flag:'`
7713
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7714
(eval "$lt_compile" 2>conftest.err)
7716
cat conftest.err >&5
7717
echo "$as_me:__oline__: \$? = $ac_status" >&5
7718
if (exit $ac_status) && test -s "$ac_outfile"; then
7719
# The compiler can only warn and ignore the option if not recognized
7720
# So say no if there are warnings other than the usual output.
7721
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7722
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7723
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7724
lt_prog_compiler_pic_works=yes
7730
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7731
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7733
if test x"$lt_prog_compiler_pic_works" = xyes; then
7734
case $lt_prog_compiler_pic in
7736
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7739
lt_prog_compiler_pic=
7740
lt_prog_compiler_can_build_shared=no
7745
# For platforms which do not support PIC, -DPIC is meaningless:
7747
lt_prog_compiler_pic=
7750
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7755
# Check to make sure the static flag actually works.
7757
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7758
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7759
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7760
if test "${lt_prog_compiler_static_works+set}" = set; then
7761
echo $ECHO_N "(cached) $ECHO_C" >&6
7763
lt_prog_compiler_static_works=no
7764
save_LDFLAGS="$LDFLAGS"
7765
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7766
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7767
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7768
# The linker can only warn and ignore the option if not recognized
7769
# So say no if there are warnings
7770
if test -s conftest.err; then
7771
# Append any errors to the config.log.
7772
cat conftest.err 1>&5
7773
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7774
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7775
if diff conftest.exp conftest.er2 >/dev/null; then
7776
lt_prog_compiler_static_works=yes
7779
lt_prog_compiler_static_works=yes
7783
LDFLAGS="$save_LDFLAGS"
7786
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7787
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7789
if test x"$lt_prog_compiler_static_works" = xyes; then
7792
lt_prog_compiler_static=
7796
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7797
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7798
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7799
echo $ECHO_N "(cached) $ECHO_C" >&6
7801
lt_cv_prog_compiler_c_o=no
7802
$rm -r conftest 2>/dev/null
7806
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7808
lt_compiler_flag="-o out/conftest2.$ac_objext"
7809
# Insert the option either (1) after the last *FLAGS variable, or
7810
# (2) before a word containing "conftest.", or (3) at the end.
7811
# Note that $ac_compile itself does not contain backslashes and begins
7812
# with a dollar sign (not a hyphen), so the echo should work correctly.
7813
lt_compile=`echo "$ac_compile" | $SED \
7814
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7815
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7816
-e 's:$: $lt_compiler_flag:'`
7817
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7818
(eval "$lt_compile" 2>out/conftest.err)
7820
cat out/conftest.err >&5
7821
echo "$as_me:__oline__: \$? = $ac_status" >&5
7822
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7824
# The compiler can only warn and ignore the option if not recognized
7825
# So say no if there are warnings
7826
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7827
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7828
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7829
lt_cv_prog_compiler_c_o=yes
7834
# SGI C++ compiler will create directory out/ii_files/ for
7835
# template instantiation
7836
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7837
$rm out/* && rmdir out
7843
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7844
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7847
hard_links="nottested"
7848
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7849
# do not overwrite the value of need_locks provided by the user
7850
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7851
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7854
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7856
ln conftest.a conftest.b 2>&5 || hard_links=no
7857
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7858
{ echo "$as_me:$LINENO: result: $hard_links" >&5
7859
echo "${ECHO_T}$hard_links" >&6; }
7860
if test "$hard_links" = no; then
7861
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7862
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7869
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7870
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7873
allow_undefined_flag=
7874
enable_shared_with_static_runtimes=no
7876
archive_expsym_cmds=
7877
old_archive_From_new_cmds=
7878
old_archive_from_expsyms_cmds=
7879
export_dynamic_flag_spec=
7880
whole_archive_flag_spec=
7881
thread_safe_flag_spec=
7882
hardcode_libdir_flag_spec=
7883
hardcode_libdir_flag_spec_ld=
7884
hardcode_libdir_separator=
7887
hardcode_shlibpath_var=unsupported
7888
link_all_deplibs=unknown
7889
hardcode_automatic=no
7892
always_export_symbols=no
7893
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7894
# include_expsyms should be a list of space-separated symbols to be *always*
7895
# included in the symbol list
7897
# exclude_expsyms can be an extended regexp of symbols to exclude
7898
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7899
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7900
# as well as any symbol that contains `d'.
7901
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7902
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7903
# platforms (ab)use it in PIC code, but their linkers get confused if
7904
# the symbol is explicitly referenced. Since portable code cannot
7905
# rely on this symbol name, it's probably fine to never include it in
7906
# preloaded symbol tables.
7907
extract_expsyms_cmds=
7908
# Just being paranoid about ensuring that cc_basename is set.
7909
for cc_temp in $compiler""; do
7911
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7912
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7917
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7920
cygwin* | mingw* | pw32*)
7921
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7922
# When not using gcc, we currently assume that we are using
7923
# Microsoft Visual C++.
7924
if test "$GCC" != yes; then
7929
# we just hope/assume this is gcc and not c89 (= MSVC++)
7938
if test "$with_gnu_ld" = yes; then
7939
# If archive_cmds runs LD, not CC, wlarc should be empty
7942
# Set some defaults for GNU ld with shared library support. These
7943
# are reset later if shared libraries are not supported. Putting them
7944
# here allows them to be overridden if necessary.
7945
runpath_var=LD_RUN_PATH
7946
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7947
export_dynamic_flag_spec='${wl}--export-dynamic'
7948
# ancient GNU ld didn't support --whole-archive et. al.
7949
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7950
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7952
whole_archive_flag_spec=
7954
supports_anon_versioning=no
7955
case `$LD -v 2>/dev/null` in
7956
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7957
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7958
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7959
*\ 2.11.*) ;; # other 2.11 versions
7960
*) supports_anon_versioning=yes ;;
7963
# See if GNU ld supports shared libraries.
7965
aix3* | aix4* | aix5*)
7966
# On AIX/PPC, the GNU linker is very broken
7967
if test "$host_cpu" != ia64; then
7971
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7972
*** to be unable to reliably create shared libraries on AIX.
7973
*** Therefore, libtool is disabling shared libraries support. If you
7974
*** really care for shared libraries, you may want to modify your PATH
7975
*** so that a non-GNU linker is found, and then restart.
7982
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)'
7983
hardcode_libdir_flag_spec='-L$libdir'
7984
hardcode_minus_L=yes
7986
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7987
# that the semantics of dynamic libraries on AmigaOS, at least up
7988
# to version 4, is to share data among multiple programs linked
7989
# with the same dynamic library. Since this doesn't match the
7990
# behavior of shared libraries on other platforms, we can't use
7996
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7997
allow_undefined_flag=unsupported
7998
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7999
# support --undefined. This deserves some investigation. FIXME
8000
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8006
cygwin* | mingw* | pw32*)
8007
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8008
# as there is no search path for DLLs.
8009
hardcode_libdir_flag_spec='-L$libdir'
8010
allow_undefined_flag=unsupported
8011
always_export_symbols=no
8012
enable_shared_with_static_runtimes=yes
8013
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8015
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8016
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8017
# If the export-symbols file already is a .def file (1st line
8018
# is EXPORTS), use it as is; otherwise, prepend...
8019
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8020
cp $export_symbols $output_objdir/$soname.def;
8022
echo EXPORTS > $output_objdir/$soname.def;
8023
cat $export_symbols >> $output_objdir/$soname.def;
8025
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8033
hardcode_shlibpath_var=no
8034
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8035
export_dynamic_flag_spec='${wl}-E'
8036
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8037
# Instead, shared libraries are loaded at an image base (0x10000000 by
8038
# default) and relocated if they conflict, which is a slow very memory
8039
# consuming and fragmenting process. To avoid this, we pick a random,
8040
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8041
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8042
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8043
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'
8046
gnu* | linux* | k*bsd*-gnu)
8047
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8049
case $cc_basename,$host_cpu in
8050
pgcc*) # Portland Group C compiler
8051
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'
8052
tmp_addflag=' $pic_flag'
8054
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8055
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'
8056
tmp_addflag=' $pic_flag -Mnomain' ;;
8057
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8058
tmp_addflag=' -i_dynamic' ;;
8059
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8060
tmp_addflag=' -i_dynamic -nofor_main' ;;
8061
ifc* | ifort*) # Intel Fortran compiler
8062
tmp_addflag=' -nofor_main' ;;
8064
case `$CC -V 2>&1 | sed 5q` in
8065
*Sun\ C*) # Sun C 5.9
8066
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'
8067
tmp_sharedflag='-G' ;;
8068
*Sun\ F*) # Sun Fortran 8.3
8069
tmp_sharedflag='-G' ;;
8071
tmp_sharedflag='-shared' ;;
8073
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8075
if test $supports_anon_versioning = yes; then
8076
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8077
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8078
$echo "local: *; };" >> $output_objdir/$libname.ver~
8079
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8087
netbsd* | netbsdelf*-gnu)
8088
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8089
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8092
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8093
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8098
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8102
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8103
*** create shared libraries on Solaris systems. Therefore, libtool
8104
*** is disabling shared libraries support. We urge you to upgrade GNU
8105
*** binutils to release 2.9.1 or newer. Another option is to modify
8106
*** your PATH or compiler configuration so that the native linker is
8107
*** used, and then restart.
8110
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8111
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8112
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8118
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8119
case `$LD -v 2>&1` in
8120
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8124
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8125
*** reliably create shared libraries on SCO systems. Therefore, libtool
8126
*** is disabling shared libraries support. We urge you to upgrade GNU
8127
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8128
*** your PATH or compiler configuration so that the native linker is
8129
*** used, and then restart.
8134
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8135
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8136
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8137
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8146
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8149
hardcode_shlibpath_var=no
8153
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8154
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8155
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8162
if test "$ld_shlibs" = no; then
8164
hardcode_libdir_flag_spec=
8165
export_dynamic_flag_spec=
8166
whole_archive_flag_spec=
8169
# PORTME fill in a description of your system's linker (not GNU ld)
8172
allow_undefined_flag=unsupported
8173
always_export_symbols=yes
8174
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'
8175
# Note: this linker hardcodes the directories in LIBPATH if there
8176
# are no directories specified by -L.
8177
hardcode_minus_L=yes
8178
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8179
# Neither direct hardcoding nor static linking is supported with a
8181
hardcode_direct=unsupported
8186
if test "$host_cpu" = ia64; then
8187
# On IA64, the linker does run time linking by default, so we don't
8188
# have to do anything special.
8189
aix_use_runtimelinking=no
8190
exp_sym_flag='-Bexport'
8193
# If we're using GNU nm, then we don't want the "-C" option.
8194
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8195
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8196
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'
8198
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'
8200
aix_use_runtimelinking=no
8202
# Test if we are trying to use run time linking or normal
8203
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8204
# need to do runtime linking.
8205
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8206
for ld_flag in $LDFLAGS; do
8207
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8208
aix_use_runtimelinking=yes
8215
exp_sym_flag='-bexport'
8216
no_entry_flag='-bnoentry'
8219
# When large executables or shared objects are built, AIX ld can
8220
# have problems creating the table of contents. If linking a library
8221
# or program results in "error TOC overflow" add -mminimal-toc to
8222
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8223
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8227
hardcode_libdir_separator=':'
8228
link_all_deplibs=yes
8230
if test "$GCC" = yes; then
8231
case $host_os in aix4.[012]|aix4.[012].*)
8232
# We only want to do this on AIX 4.2 and lower, the check
8233
# below for broken collect2 doesn't work under 4.3+
8234
collect2name=`${CC} -print-prog-name=collect2`
8235
if test -f "$collect2name" && \
8236
strings "$collect2name" | grep resolve_lib_name >/dev/null
8238
# We have reworked collect2
8241
# We have old collect2
8242
hardcode_direct=unsupported
8243
# It fails to find uninstalled libraries when the uninstalled
8244
# path is not listed in the libpath. Setting hardcode_minus_L
8245
# to unsupported forces relinking
8246
hardcode_minus_L=yes
8247
hardcode_libdir_flag_spec='-L$libdir'
8248
hardcode_libdir_separator=
8252
shared_flag='-shared'
8253
if test "$aix_use_runtimelinking" = yes; then
8254
shared_flag="$shared_flag "'${wl}-G'
8258
if test "$host_cpu" = ia64; then
8259
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8260
# chokes on -Wl,-G. The following line is correct:
8263
if test "$aix_use_runtimelinking" = yes; then
8264
shared_flag='${wl}-G'
8266
shared_flag='${wl}-bM:SRE'
8271
# It seems that -bexpall does not export symbols beginning with
8272
# underscore (_), so it is better to generate a list of symbols to export.
8273
always_export_symbols=yes
8274
if test "$aix_use_runtimelinking" = yes; then
8275
# Warning - without using the other runtime loading flags (-brtl),
8276
# -berok will link without error, but may produce a broken library.
8277
allow_undefined_flag='-berok'
8278
# Determine the default libpath from the value encoded in an empty executable.
8279
cat >conftest.$ac_ext <<_ACEOF
8282
cat confdefs.h >>conftest.$ac_ext
8283
cat >>conftest.$ac_ext <<_ACEOF
8284
/* end confdefs.h. */
8294
rm -f conftest.$ac_objext conftest$ac_exeext
8295
if { (ac_try="$ac_link"
8297
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298
*) ac_try_echo=$ac_try;;
8300
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301
(eval "$ac_link") 2>conftest.er1
8303
grep -v '^ *+' conftest.er1 >conftest.err
8305
cat conftest.err >&5
8306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307
(exit $ac_status); } && {
8308
test -z "$ac_c_werror_flag" ||
8309
test ! -s conftest.err
8310
} && test -s conftest$ac_exeext &&
8311
$as_test_x conftest$ac_exeext; then
8313
lt_aix_libpath_sed='
8314
/Import File Strings/,/^$/ {
8320
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8321
# Check for a 64-bit object if we didn't find anything.
8322
if test -z "$aix_libpath"; then
8323
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8326
echo "$as_me: failed program was:" >&5
8327
sed 's/^/| /' conftest.$ac_ext >&5
8332
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8333
conftest$ac_exeext conftest.$ac_ext
8334
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8336
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8337
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"
8339
if test "$host_cpu" = ia64; then
8340
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8341
allow_undefined_flag="-z nodefs"
8342
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"
8344
# Determine the default libpath from the value encoded in an empty executable.
8345
cat >conftest.$ac_ext <<_ACEOF
8348
cat confdefs.h >>conftest.$ac_ext
8349
cat >>conftest.$ac_ext <<_ACEOF
8350
/* end confdefs.h. */
8360
rm -f conftest.$ac_objext conftest$ac_exeext
8361
if { (ac_try="$ac_link"
8363
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364
*) ac_try_echo=$ac_try;;
8366
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367
(eval "$ac_link") 2>conftest.er1
8369
grep -v '^ *+' conftest.er1 >conftest.err
8371
cat conftest.err >&5
8372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373
(exit $ac_status); } && {
8374
test -z "$ac_c_werror_flag" ||
8375
test ! -s conftest.err
8376
} && test -s conftest$ac_exeext &&
8377
$as_test_x conftest$ac_exeext; then
8379
lt_aix_libpath_sed='
8380
/Import File Strings/,/^$/ {
8386
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8387
# Check for a 64-bit object if we didn't find anything.
8388
if test -z "$aix_libpath"; then
8389
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8392
echo "$as_me: failed program was:" >&5
8393
sed 's/^/| /' conftest.$ac_ext >&5
8398
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8399
conftest$ac_exeext conftest.$ac_ext
8400
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8402
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8403
# Warning - without using the other run time loading flags,
8404
# -berok will link without error, but may produce a broken library.
8405
no_undefined_flag=' ${wl}-bernotok'
8406
allow_undefined_flag=' ${wl}-berok'
8407
# Exported symbols can be pulled into shared objects from archives
8408
whole_archive_flag_spec='$convenience'
8409
archive_cmds_need_lc=yes
8410
# This is similar to how AIX traditionally builds its shared libraries.
8411
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'
8417
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)'
8418
hardcode_libdir_flag_spec='-L$libdir'
8419
hardcode_minus_L=yes
8420
# see comment about different semantics on the GNU ld section
8425
export_dynamic_flag_spec=-rdynamic
8428
cygwin* | mingw* | pw32*)
8429
# When not using gcc, we currently assume that we are using
8430
# Microsoft Visual C++.
8431
# hardcode_libdir_flag_spec is actually meaningless, as there is
8432
# no search path for DLLs.
8433
hardcode_libdir_flag_spec=' '
8434
allow_undefined_flag=unsupported
8435
# Tell ltmain to make .lib files, not .a files.
8437
# Tell ltmain to make .dll files, not .so files.
8439
# FIXME: Setting linknames here is a bad hack.
8440
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8441
# The linker will automatically build a .lib file if we build a DLL.
8442
old_archive_From_new_cmds='true'
8443
# FIXME: Should let the user specify the lib program.
8444
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8445
fix_srcfile_path='`cygpath -w "$srcfile"`'
8446
enable_shared_with_static_runtimes=yes
8449
darwin* | rhapsody*)
8451
rhapsody* | darwin1.[012])
8452
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8455
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8456
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8458
case ${MACOSX_DEPLOYMENT_TARGET} in
8460
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8463
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8469
archive_cmds_need_lc=no
8471
hardcode_automatic=yes
8472
hardcode_shlibpath_var=unsupported
8473
whole_archive_flag_spec=''
8474
link_all_deplibs=yes
8475
if test "$GCC" = yes ; then
8476
output_verbose_link_cmd='echo'
8477
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8478
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8479
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8480
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8481
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}'
8483
case $cc_basename in
8485
output_verbose_link_cmd='echo'
8486
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8487
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8488
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8489
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}'
8490
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}'
8500
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8501
hardcode_libdir_flag_spec='-L$libdir'
8502
hardcode_shlibpath_var=no
8509
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8510
# support. Future versions do this automatically, but an explicit c++rt0.o
8511
# does not break anything, and helps significantly (at the cost of a little
8514
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8515
hardcode_libdir_flag_spec='-R$libdir'
8517
hardcode_shlibpath_var=no
8520
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8522
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8524
hardcode_minus_L=yes
8525
hardcode_shlibpath_var=no
8528
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8529
freebsd* | dragonfly*)
8530
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8531
hardcode_libdir_flag_spec='-R$libdir'
8533
hardcode_shlibpath_var=no
8537
if test "$GCC" = yes; then
8538
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'
8540
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'
8542
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8543
hardcode_libdir_separator=:
8546
# hardcode_minus_L: Not really in the search PATH,
8547
# but as the default location of the library.
8548
hardcode_minus_L=yes
8549
export_dynamic_flag_spec='${wl}-E'
8553
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8554
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8556
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8558
if test "$with_gnu_ld" = no; then
8559
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8560
hardcode_libdir_separator=:
8563
export_dynamic_flag_spec='${wl}-E'
8565
# hardcode_minus_L: Not really in the search PATH,
8566
# but as the default location of the library.
8567
hardcode_minus_L=yes
8572
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8575
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8578
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8581
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8587
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8590
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8593
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8597
if test "$with_gnu_ld" = no; then
8598
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8599
hardcode_libdir_separator=:
8603
hardcode_libdir_flag_spec_ld='+b $libdir'
8605
hardcode_shlibpath_var=no
8609
export_dynamic_flag_spec='${wl}-E'
8611
# hardcode_minus_L: Not really in the search PATH,
8612
# but as the default location of the library.
8613
hardcode_minus_L=yes
8619
irix5* | irix6* | nonstopux*)
8620
if test "$GCC" = yes; then
8621
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'
8623
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'
8624
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8626
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8627
hardcode_libdir_separator=:
8628
link_all_deplibs=yes
8631
netbsd* | netbsdelf*-gnu)
8632
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8633
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8635
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8637
hardcode_libdir_flag_spec='-R$libdir'
8639
hardcode_shlibpath_var=no
8643
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8645
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8646
hardcode_libdir_separator=:
8647
hardcode_shlibpath_var=no
8651
if test -f /usr/libexec/ld.so; then
8653
hardcode_shlibpath_var=no
8654
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8655
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8656
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8657
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8658
export_dynamic_flag_spec='${wl}-E'
8661
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8662
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8663
hardcode_libdir_flag_spec='-R$libdir'
8666
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8667
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8677
hardcode_libdir_flag_spec='-L$libdir'
8678
hardcode_minus_L=yes
8679
allow_undefined_flag=unsupported
8680
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'
8681
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8685
if test "$GCC" = yes; then
8686
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8687
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'
8689
allow_undefined_flag=' -expect_unresolved \*'
8690
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'
8692
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8693
hardcode_libdir_separator=:
8696
osf4* | osf5*) # as osf3* with the addition of -msym flag
8697
if test "$GCC" = yes; then
8698
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8699
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'
8700
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8702
allow_undefined_flag=' -expect_unresolved \*'
8703
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'
8704
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8705
$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'
8707
# Both c and cxx compiler support -rpath directly
8708
hardcode_libdir_flag_spec='-rpath $libdir'
8710
hardcode_libdir_separator=:
8714
no_undefined_flag=' -z text'
8715
if test "$GCC" = yes; then
8717
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8718
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8719
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8722
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8723
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8724
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8726
hardcode_libdir_flag_spec='-R$libdir'
8727
hardcode_shlibpath_var=no
8729
solaris2.[0-5] | solaris2.[0-5].*) ;;
8731
# The compiler driver will combine and reorder linker options,
8732
# but understands `-z linker_flag'. GCC discards it without `$wl',
8733
# but is careful enough not to reorder.
8734
# Supported since Solaris 2.6 (maybe 2.5.1?)
8735
if test "$GCC" = yes; then
8736
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8738
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8742
link_all_deplibs=yes
8746
if test "x$host_vendor" = xsequent; then
8747
# Use $CC to link under sequent, because it throws in some extra .o
8748
# files that make .init and .fini sections work.
8749
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8751
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8753
hardcode_libdir_flag_spec='-L$libdir'
8755
hardcode_minus_L=yes
8756
hardcode_shlibpath_var=no
8760
case $host_vendor in
8762
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8763
hardcode_direct=yes # is this really true???
8766
## LD is ld it makes a PLAMLIB
8767
## CC just makes a GrossModule.
8768
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8769
reload_cmds='$CC -r -o $output$reload_objs'
8773
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8774
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8777
runpath_var='LD_RUN_PATH'
8778
hardcode_shlibpath_var=no
8782
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8783
hardcode_shlibpath_var=no
8784
export_dynamic_flag_spec='-Bexport'
8788
if test -d /usr/nec; then
8789
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790
hardcode_shlibpath_var=no
8791
runpath_var=LD_RUN_PATH
8792
hardcode_runpath_var=yes
8797
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8798
no_undefined_flag='${wl}-z,text'
8799
archive_cmds_need_lc=no
8800
hardcode_shlibpath_var=no
8801
runpath_var='LD_RUN_PATH'
8803
if test "$GCC" = yes; then
8804
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8805
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8807
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8808
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8812
sysv5* | sco3.2v5* | sco5v6*)
8813
# Note: We can NOT use -z defs as we might desire, because we do not
8814
# link with -lc, and that would cause any symbols used from libc to
8815
# always be unresolved, which means just about no library would
8816
# ever link correctly. If we're not using GNU ld we use -z text
8817
# though, which does catch some bad symbols but isn't as heavy-handed
8819
no_undefined_flag='${wl}-z,text'
8820
allow_undefined_flag='${wl}-z,nodefs'
8821
archive_cmds_need_lc=no
8822
hardcode_shlibpath_var=no
8823
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8824
hardcode_libdir_separator=':'
8825
link_all_deplibs=yes
8826
export_dynamic_flag_spec='${wl}-Bexport'
8827
runpath_var='LD_RUN_PATH'
8829
if test "$GCC" = yes; then
8830
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8831
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8833
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8834
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8839
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8840
hardcode_libdir_flag_spec='-L$libdir'
8841
hardcode_shlibpath_var=no
8850
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8851
echo "${ECHO_T}$ld_shlibs" >&6; }
8852
test "$ld_shlibs" = no && can_build_shared=no
8855
# Do we need to explicitly link libc?
8857
case "x$archive_cmds_need_lc" in
8859
# Assume -lc should be added
8860
archive_cmds_need_lc=yes
8862
if test "$enable_shared" = yes && test "$GCC" = yes; then
8863
case $archive_cmds in
8865
# FIXME: we may have to deal with multi-command sequences.
8868
# Test whether the compiler implicitly links with -lc since on some
8869
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8870
# to ld, don't add -lc before -lgcc.
8871
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8872
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8874
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8876
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8877
(eval $ac_compile) 2>&5
8879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880
(exit $ac_status); } 2>conftest.err; then
8883
libobjs=conftest.$ac_objext
8885
wl=$lt_prog_compiler_wl
8886
pic_flag=$lt_prog_compiler_pic
8892
lt_save_allow_undefined_flag=$allow_undefined_flag
8893
allow_undefined_flag=
8894
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8895
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898
(exit $ac_status); }
8900
archive_cmds_need_lc=no
8902
archive_cmds_need_lc=yes
8904
allow_undefined_flag=$lt_save_allow_undefined_flag
8906
cat conftest.err 1>&5
8909
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8910
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8917
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8918
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8920
libname_spec='lib$name'
8928
shlibpath_overrides_runpath=unknown
8930
dynamic_linker="$host_os ld.so"
8931
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8933
if test "$GCC" = yes; then
8935
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8936
*) lt_awk_arg="/^libraries:/" ;;
8938
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8939
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8940
# if the path contains ";" then we assume it to be the separator
8941
# otherwise default to the standard path separator (i.e. ":") - it is
8942
# assumed that no part of a normal pathname contains ";" but that should
8943
# okay in the real world where ";" in dirpaths is itself problematic.
8944
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8946
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8948
# Ok, now we have the path, separated by spaces, we can step through it
8949
# and add multilib dir if necessary.
8950
lt_tmp_lt_search_path_spec=
8951
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8952
for lt_sys_path in $lt_search_path_spec; do
8953
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8954
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8956
test -d "$lt_sys_path" && \
8957
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8960
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8961
BEGIN {RS=" "; FS="/|\n";} {
8964
for (lt_i = NF; lt_i > 0; lt_i--) {
8965
if ($lt_i != "" && $lt_i != ".") {
8966
if ($lt_i == "..") {
8969
if (lt_count == 0) {
8970
lt_foo="/" $lt_i lt_foo;
8977
if (lt_foo != "") { lt_freq[lt_foo]++; }
8978
if (lt_freq[lt_foo] == 1) { print lt_foo; }
8980
sys_lib_search_path_spec=`echo $lt_search_path_spec`
8982
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8984
need_lib_prefix=unknown
8985
hardcode_into_libs=no
8987
# when you set need_version to no, make sure it does not cause -set_version
8988
# flags to be left without arguments
8989
need_version=unknown
8994
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8995
shlibpath_var=LIBPATH
8997
# AIX 3 has no versioning support, so we append a major version to the name.
8998
soname_spec='${libname}${release}${shared_ext}$major'
9005
hardcode_into_libs=yes
9006
if test "$host_cpu" = ia64; then
9007
# AIX 5 supports IA64
9008
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9009
shlibpath_var=LD_LIBRARY_PATH
9011
# With GCC up to 2.95.x, collect2 would create an import file
9012
# for dependence libraries. The import file would start with
9013
# the line `#! .'. This would cause the generated library to
9014
# depend on `.', always an invalid library. This was fixed in
9015
# development snapshots of GCC prior to 3.0.
9017
aix4 | aix4.[01] | aix4.[01].*)
9018
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9020
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9027
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9028
# soname into executable. Probably we can add versioning support to
9029
# collect2, so additional links can be useful in future.
9030
if test "$aix_use_runtimelinking" = yes; then
9031
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9032
# instead of lib<name>.a to let people know that these are not
9033
# typical AIX shared libraries.
9034
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036
# We preserve .a as extension for shared libraries through AIX4.2
9037
# and later when we are not doing run time linking.
9038
library_names_spec='${libname}${release}.a $libname.a'
9039
soname_spec='${libname}${release}${shared_ext}$major'
9041
shlibpath_var=LIBPATH
9046
library_names_spec='$libname.ixlibrary $libname.a'
9047
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9048
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'
9052
library_names_spec='${libname}${shared_ext}'
9053
dynamic_linker="$host_os ld.so"
9054
shlibpath_var=LIBRARY_PATH
9060
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9061
soname_spec='${libname}${release}${shared_ext}$major'
9062
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9063
shlibpath_var=LD_LIBRARY_PATH
9064
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9065
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9066
# the default ld.so.conf also contains /usr/contrib/lib and
9067
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9068
# libtool to hard-code these into programs
9071
cygwin* | mingw* | pw32*)
9072
version_type=windows
9077
case $GCC,$host_os in
9078
yes,cygwin* | yes,mingw* | yes,pw32*)
9079
library_names_spec='$libname.dll.a'
9080
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9081
postinstall_cmds='base_file=`basename \${file}`~
9082
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9083
dldir=$destdir/`dirname \$dlpath`~
9084
test -d \$dldir || mkdir -p \$dldir~
9085
$install_prog $dir/$dlname \$dldir/$dlname~
9086
chmod a+x \$dldir/$dlname'
9087
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9088
dlpath=$dir/\$dldll~
9090
shlibpath_overrides_runpath=yes
9094
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9095
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9096
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9099
# MinGW DLLs use traditional 'lib' prefix
9100
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9101
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9102
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9103
# It is most probably a Windows format PATH printed by
9104
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9105
# path with ; separators, and with drive letters. We can handle the
9106
# drive letters (cygwin fileutils understands them), so leave them,
9107
# especially as we might pass files found there to a mingw objdump,
9108
# which wouldn't understand a cygwinified path. Ahh.
9109
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9111
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9115
# pw32 DLLs use 'pw' prefix rather than 'lib'
9116
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9122
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9125
dynamic_linker='Win32 ld.exe'
9126
# FIXME: first we should search . and the directory the executable is in
9130
darwin* | rhapsody*)
9131
dynamic_linker="$host_os dyld"
9135
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9136
soname_spec='${libname}${release}${major}$shared_ext'
9137
shlibpath_overrides_runpath=yes
9138
shlibpath_var=DYLD_LIBRARY_PATH
9139
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9141
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9142
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9149
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9150
soname_spec='${libname}${release}${shared_ext}$major'
9151
shlibpath_var=LD_LIBRARY_PATH
9158
freebsd* | dragonfly*)
9159
# DragonFly does not have aout. When/if they implement a new
9160
# versioning mechanism, adjust this.
9161
if test -x /usr/bin/objformat; then
9162
objformat=`/usr/bin/objformat`
9165
freebsd[123]*) objformat=aout ;;
9169
version_type=freebsd-$objformat
9170
case $version_type in
9172
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9177
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9181
shlibpath_var=LD_LIBRARY_PATH
9184
shlibpath_overrides_runpath=yes
9186
freebsd3.[01]* | freebsdelf3.[01]*)
9187
shlibpath_overrides_runpath=yes
9188
hardcode_into_libs=yes
9190
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9191
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9192
shlibpath_overrides_runpath=no
9193
hardcode_into_libs=yes
9195
*) # from 4.6 on, and DragonFly
9196
shlibpath_overrides_runpath=yes
9197
hardcode_into_libs=yes
9206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9207
soname_spec='${libname}${release}${shared_ext}$major'
9208
shlibpath_var=LD_LIBRARY_PATH
9209
hardcode_into_libs=yes
9212
hpux9* | hpux10* | hpux11*)
9213
# Give a soname corresponding to the major version so that dld.sl refuses to
9214
# link against other versions.
9221
hardcode_into_libs=yes
9222
dynamic_linker="$host_os dld.so"
9223
shlibpath_var=LD_LIBRARY_PATH
9224
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9225
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226
soname_spec='${libname}${release}${shared_ext}$major'
9227
if test "X$HPUX_IA64_MODE" = X32; then
9228
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9230
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9232
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9236
hardcode_into_libs=yes
9237
dynamic_linker="$host_os dld.sl"
9238
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9239
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9240
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241
soname_spec='${libname}${release}${shared_ext}$major'
9242
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9243
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9247
dynamic_linker="$host_os dld.sl"
9248
shlibpath_var=SHLIB_PATH
9249
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9250
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251
soname_spec='${libname}${release}${shared_ext}$major'
9254
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9255
postinstall_cmds='chmod 555 $lib'
9262
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9263
soname_spec='${libname}${release}${shared_ext}$major'
9264
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9265
shlibpath_var=LD_LIBRARY_PATH
9266
shlibpath_overrides_runpath=no
9267
hardcode_into_libs=yes
9270
irix5* | irix6* | nonstopux*)
9272
nonstopux*) version_type=nonstopux ;;
9274
if test "$lt_cv_prog_gnu_ld" = yes; then
9282
soname_spec='${libname}${release}${shared_ext}$major'
9283
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9285
irix5* | nonstopux*)
9289
case $LD in # libtool.m4 will add one of these switches to LD
9290
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9291
libsuff= shlibsuff= libmagic=32-bit;;
9292
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9293
libsuff=32 shlibsuff=N32 libmagic=N32;;
9294
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9295
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9296
*) libsuff= shlibsuff= libmagic=never-match;;
9300
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9301
shlibpath_overrides_runpath=no
9302
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9303
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9304
hardcode_into_libs=yes
9307
# No shared lib support for Linux oldld, aout, or coff.
9308
linux*oldld* | linux*aout* | linux*coff*)
9312
# This must be Linux ELF.
9313
linux* | k*bsd*-gnu)
9317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9318
soname_spec='${libname}${release}${shared_ext}$major'
9319
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9320
shlibpath_var=LD_LIBRARY_PATH
9321
shlibpath_overrides_runpath=no
9322
# This implies no fast_install, which is unacceptable.
9323
# Some rework will be needed to allow for fast_install
9324
# before this can be enabled.
9325
hardcode_into_libs=yes
9327
# Append ld.so.conf contents to the search path
9328
if test -f /etc/ld.so.conf; then
9329
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' ' '`
9330
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9333
# We used to test for /lib/ld.so.1 and disable shared libraries on
9334
# powerpc, because MkLinux only supported shared libraries with the
9335
# GNU dynamic linker. Since this was broken with cross compilers,
9336
# most powerpc-linux boxes support dynamic linking these days and
9337
# people can always --disable-shared, the test was removed, and we
9338
# assume the GNU/Linux dynamic linker is in use.
9339
dynamic_linker='GNU/Linux ld.so'
9346
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9347
soname_spec='${libname}${release}${shared_ext}$major'
9348
shlibpath_var=LD_LIBRARY_PATH
9349
shlibpath_overrides_runpath=no
9350
hardcode_into_libs=yes
9351
dynamic_linker='NetBSD ld.elf_so'
9358
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9359
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9360
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9361
dynamic_linker='NetBSD (a.out) ld.so'
9363
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9364
soname_spec='${libname}${release}${shared_ext}$major'
9365
dynamic_linker='NetBSD ld.elf_so'
9367
shlibpath_var=LD_LIBRARY_PATH
9368
shlibpath_overrides_runpath=yes
9369
hardcode_into_libs=yes
9374
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375
shlibpath_var=LD_LIBRARY_PATH
9376
shlibpath_overrides_runpath=yes
9383
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384
soname_spec='${libname}${release}${shared_ext}$major'
9385
shlibpath_var=LD_LIBRARY_PATH
9386
shlibpath_overrides_runpath=yes
9391
sys_lib_dlsearch_path_spec="/usr/lib"
9393
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9395
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9396
*) need_version=no ;;
9398
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9399
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9400
shlibpath_var=LD_LIBRARY_PATH
9401
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9403
openbsd2.[89] | openbsd2.[89].*)
9404
shlibpath_overrides_runpath=no
9407
shlibpath_overrides_runpath=yes
9411
shlibpath_overrides_runpath=yes
9416
libname_spec='$name'
9419
library_names_spec='$libname${shared_ext} $libname.a'
9420
dynamic_linker='OS/2 ld.exe'
9421
shlibpath_var=LIBPATH
9424
osf3* | osf4* | osf5*)
9428
soname_spec='${libname}${release}${shared_ext}$major'
9429
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9430
shlibpath_var=LD_LIBRARY_PATH
9431
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9432
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9443
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9444
soname_spec='${libname}${release}${shared_ext}$major'
9445
shlibpath_var=LD_LIBRARY_PATH
9446
shlibpath_overrides_runpath=yes
9447
hardcode_into_libs=yes
9448
# ldd complains unless libraries are executable
9449
postinstall_cmds='chmod +x $lib'
9454
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9455
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9456
shlibpath_var=LD_LIBRARY_PATH
9457
shlibpath_overrides_runpath=yes
9458
if test "$with_gnu_ld" = yes; then
9466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9467
soname_spec='${libname}${release}${shared_ext}$major'
9468
shlibpath_var=LD_LIBRARY_PATH
9469
case $host_vendor in
9471
shlibpath_overrides_runpath=no
9473
export_dynamic_flag_spec='${wl}-Blargedynsym'
9474
runpath_var=LD_RUN_PATH
9482
shlibpath_overrides_runpath=no
9483
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9489
if test -d /usr/nec ;then
9491
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9492
soname_spec='$libname${shared_ext}.$major'
9493
shlibpath_var=LD_LIBRARY_PATH
9497
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9498
version_type=freebsd-elf
9501
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9502
soname_spec='${libname}${release}${shared_ext}$major'
9503
shlibpath_var=LD_LIBRARY_PATH
9504
hardcode_into_libs=yes
9505
if test "$with_gnu_ld" = yes; then
9506
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9507
shlibpath_overrides_runpath=no
9509
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9510
shlibpath_overrides_runpath=yes
9513
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9517
sys_lib_dlsearch_path_spec='/usr/lib'
9522
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523
soname_spec='${libname}${release}${shared_ext}$major'
9524
shlibpath_var=LD_LIBRARY_PATH
9531
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9532
echo "${ECHO_T}$dynamic_linker" >&6; }
9533
test "$dynamic_linker" = no && can_build_shared=no
9535
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9536
if test "$GCC" = yes; then
9537
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9540
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9541
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9543
if test -n "$hardcode_libdir_flag_spec" || \
9544
test -n "$runpath_var" || \
9545
test "X$hardcode_automatic" = "Xyes" ; then
9547
# We can hardcode non-existant directories.
9548
if test "$hardcode_direct" != no &&
9549
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9550
# have to relink, otherwise we might link with an installed library
9551
# when we should be linking with a yet-to-be-installed one
9552
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9553
test "$hardcode_minus_L" != no; then
9554
# Linking always hardcodes the temporary library directory.
9555
hardcode_action=relink
9557
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9558
hardcode_action=immediate
9561
# We cannot hardcode anything, or else we can only hardcode existing
9563
hardcode_action=unsupported
9565
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9566
echo "${ECHO_T}$hardcode_action" >&6; }
9568
if test "$hardcode_action" = relink; then
9569
# Fast installation is not supported
9570
enable_fast_install=no
9571
elif test "$shlibpath_overrides_runpath" = yes ||
9572
test "$enable_shared" = no; then
9573
# Fast installation is not necessary
9574
enable_fast_install=needless
9579
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9580
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9581
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9582
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9583
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9584
{ echo "$as_me:$LINENO: result: yes" >&5
9585
echo "${ECHO_T}yes" >&6; }
9587
# FIXME - insert some real tests, host_os isn't really good enough
9590
if test -n "$STRIP" ; then
9591
striplib="$STRIP -x"
9592
old_striplib="$STRIP -S"
9593
{ echo "$as_me:$LINENO: result: yes" >&5
9594
echo "${ECHO_T}yes" >&6; }
9596
{ echo "$as_me:$LINENO: result: no" >&5
9597
echo "${ECHO_T}no" >&6; }
9601
{ echo "$as_me:$LINENO: result: no" >&5
9602
echo "${ECHO_T}no" >&6; }
9607
if test "x$enable_dlopen" != xyes; then
9608
enable_dlopen=unknown
9609
enable_dlopen_self=unknown
9610
enable_dlopen_self_static=unknown
9617
lt_cv_dlopen="load_add_on"
9619
lt_cv_dlopen_self=yes
9623
lt_cv_dlopen="LoadLibrary"
9628
lt_cv_dlopen="dlopen"
9633
# if libdl is installed we need to link against it
9634
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9635
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9636
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9637
echo $ECHO_N "(cached) $ECHO_C" >&6
9639
ac_check_lib_save_LIBS=$LIBS
9641
cat >conftest.$ac_ext <<_ACEOF
9644
cat confdefs.h >>conftest.$ac_ext
9645
cat >>conftest.$ac_ext <<_ACEOF
9646
/* end confdefs.h. */
9648
/* Override any GCC internal prototype to avoid an error.
9649
Use char because int might match the return type of a GCC
9650
builtin and then its argument prototype would still apply. */
9663
rm -f conftest.$ac_objext conftest$ac_exeext
9664
if { (ac_try="$ac_link"
9666
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667
*) ac_try_echo=$ac_try;;
9669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670
(eval "$ac_link") 2>conftest.er1
9672
grep -v '^ *+' conftest.er1 >conftest.err
9674
cat conftest.err >&5
9675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676
(exit $ac_status); } && {
9677
test -z "$ac_c_werror_flag" ||
9678
test ! -s conftest.err
9679
} && test -s conftest$ac_exeext &&
9680
$as_test_x conftest$ac_exeext; then
9681
ac_cv_lib_dl_dlopen=yes
9683
echo "$as_me: failed program was:" >&5
9684
sed 's/^/| /' conftest.$ac_ext >&5
9686
ac_cv_lib_dl_dlopen=no
9689
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9690
conftest$ac_exeext conftest.$ac_ext
9691
LIBS=$ac_check_lib_save_LIBS
9693
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9694
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9695
if test $ac_cv_lib_dl_dlopen = yes; then
9696
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9701
lt_cv_dlopen_self=yes
9708
{ echo "$as_me:$LINENO: checking for shl_load" >&5
9709
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9710
if test "${ac_cv_func_shl_load+set}" = set; then
9711
echo $ECHO_N "(cached) $ECHO_C" >&6
9713
cat >conftest.$ac_ext <<_ACEOF
9716
cat confdefs.h >>conftest.$ac_ext
9717
cat >>conftest.$ac_ext <<_ACEOF
9718
/* end confdefs.h. */
9719
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9720
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9721
#define shl_load innocuous_shl_load
9723
/* System header to define __stub macros and hopefully few prototypes,
9724
which can conflict with char shl_load (); below.
9725
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9726
<limits.h> exists even on freestanding compilers. */
9729
# include <limits.h>
9731
# include <assert.h>
9736
/* Override any GCC internal prototype to avoid an error.
9737
Use char because int might match the return type of a GCC
9738
builtin and then its argument prototype would still apply. */
9743
/* The GNU C library defines this for functions which it implements
9744
to always fail with ENOSYS. Some functions are actually named
9745
something starting with __ and the normal name is an alias. */
9746
#if defined __stub_shl_load || defined __stub___shl_load
9758
rm -f conftest.$ac_objext conftest$ac_exeext
9759
if { (ac_try="$ac_link"
9761
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762
*) ac_try_echo=$ac_try;;
9764
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765
(eval "$ac_link") 2>conftest.er1
9767
grep -v '^ *+' conftest.er1 >conftest.err
9769
cat conftest.err >&5
9770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771
(exit $ac_status); } && {
9772
test -z "$ac_c_werror_flag" ||
9773
test ! -s conftest.err
9774
} && test -s conftest$ac_exeext &&
9775
$as_test_x conftest$ac_exeext; then
9776
ac_cv_func_shl_load=yes
9778
echo "$as_me: failed program was:" >&5
9779
sed 's/^/| /' conftest.$ac_ext >&5
9781
ac_cv_func_shl_load=no
9784
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9785
conftest$ac_exeext conftest.$ac_ext
9787
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9788
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9789
if test $ac_cv_func_shl_load = yes; then
9790
lt_cv_dlopen="shl_load"
9792
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9793
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9794
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9795
echo $ECHO_N "(cached) $ECHO_C" >&6
9797
ac_check_lib_save_LIBS=$LIBS
9799
cat >conftest.$ac_ext <<_ACEOF
9802
cat confdefs.h >>conftest.$ac_ext
9803
cat >>conftest.$ac_ext <<_ACEOF
9804
/* end confdefs.h. */
9806
/* Override any GCC internal prototype to avoid an error.
9807
Use char because int might match the return type of a GCC
9808
builtin and then its argument prototype would still apply. */
9821
rm -f conftest.$ac_objext conftest$ac_exeext
9822
if { (ac_try="$ac_link"
9824
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825
*) ac_try_echo=$ac_try;;
9827
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828
(eval "$ac_link") 2>conftest.er1
9830
grep -v '^ *+' conftest.er1 >conftest.err
9832
cat conftest.err >&5
9833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834
(exit $ac_status); } && {
9835
test -z "$ac_c_werror_flag" ||
9836
test ! -s conftest.err
9837
} && test -s conftest$ac_exeext &&
9838
$as_test_x conftest$ac_exeext; then
9839
ac_cv_lib_dld_shl_load=yes
9841
echo "$as_me: failed program was:" >&5
9842
sed 's/^/| /' conftest.$ac_ext >&5
9844
ac_cv_lib_dld_shl_load=no
9847
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9848
conftest$ac_exeext conftest.$ac_ext
9849
LIBS=$ac_check_lib_save_LIBS
9851
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9852
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9853
if test $ac_cv_lib_dld_shl_load = yes; then
9854
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9856
{ echo "$as_me:$LINENO: checking for dlopen" >&5
9857
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9858
if test "${ac_cv_func_dlopen+set}" = set; then
9859
echo $ECHO_N "(cached) $ECHO_C" >&6
9861
cat >conftest.$ac_ext <<_ACEOF
9864
cat confdefs.h >>conftest.$ac_ext
9865
cat >>conftest.$ac_ext <<_ACEOF
9866
/* end confdefs.h. */
9867
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9868
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9869
#define dlopen innocuous_dlopen
9871
/* System header to define __stub macros and hopefully few prototypes,
9872
which can conflict with char dlopen (); below.
9873
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9874
<limits.h> exists even on freestanding compilers. */
9877
# include <limits.h>
9879
# include <assert.h>
9884
/* Override any GCC internal prototype to avoid an error.
9885
Use char because int might match the return type of a GCC
9886
builtin and then its argument prototype would still apply. */
9891
/* The GNU C library defines this for functions which it implements
9892
to always fail with ENOSYS. Some functions are actually named
9893
something starting with __ and the normal name is an alias. */
9894
#if defined __stub_dlopen || defined __stub___dlopen
9906
rm -f conftest.$ac_objext conftest$ac_exeext
9907
if { (ac_try="$ac_link"
9909
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910
*) ac_try_echo=$ac_try;;
9912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913
(eval "$ac_link") 2>conftest.er1
9915
grep -v '^ *+' conftest.er1 >conftest.err
9917
cat conftest.err >&5
9918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919
(exit $ac_status); } && {
9920
test -z "$ac_c_werror_flag" ||
9921
test ! -s conftest.err
9922
} && test -s conftest$ac_exeext &&
9923
$as_test_x conftest$ac_exeext; then
9924
ac_cv_func_dlopen=yes
9926
echo "$as_me: failed program was:" >&5
9927
sed 's/^/| /' conftest.$ac_ext >&5
9929
ac_cv_func_dlopen=no
9932
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9933
conftest$ac_exeext conftest.$ac_ext
9935
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9936
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9937
if test $ac_cv_func_dlopen = yes; then
9938
lt_cv_dlopen="dlopen"
9940
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9941
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9942
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9943
echo $ECHO_N "(cached) $ECHO_C" >&6
9945
ac_check_lib_save_LIBS=$LIBS
9947
cat >conftest.$ac_ext <<_ACEOF
9950
cat confdefs.h >>conftest.$ac_ext
9951
cat >>conftest.$ac_ext <<_ACEOF
9952
/* end confdefs.h. */
9954
/* Override any GCC internal prototype to avoid an error.
9955
Use char because int might match the return type of a GCC
9956
builtin and then its argument prototype would still apply. */
9969
rm -f conftest.$ac_objext conftest$ac_exeext
9970
if { (ac_try="$ac_link"
9972
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973
*) ac_try_echo=$ac_try;;
9975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976
(eval "$ac_link") 2>conftest.er1
9978
grep -v '^ *+' conftest.er1 >conftest.err
9980
cat conftest.err >&5
9981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982
(exit $ac_status); } && {
9983
test -z "$ac_c_werror_flag" ||
9984
test ! -s conftest.err
9985
} && test -s conftest$ac_exeext &&
9986
$as_test_x conftest$ac_exeext; then
9987
ac_cv_lib_dl_dlopen=yes
9989
echo "$as_me: failed program was:" >&5
9990
sed 's/^/| /' conftest.$ac_ext >&5
9992
ac_cv_lib_dl_dlopen=no
9995
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9996
conftest$ac_exeext conftest.$ac_ext
9997
LIBS=$ac_check_lib_save_LIBS
9999
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10000
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10001
if test $ac_cv_lib_dl_dlopen = yes; then
10002
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10004
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10005
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10006
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10007
echo $ECHO_N "(cached) $ECHO_C" >&6
10009
ac_check_lib_save_LIBS=$LIBS
10010
LIBS="-lsvld $LIBS"
10011
cat >conftest.$ac_ext <<_ACEOF
10014
cat confdefs.h >>conftest.$ac_ext
10015
cat >>conftest.$ac_ext <<_ACEOF
10016
/* end confdefs.h. */
10018
/* Override any GCC internal prototype to avoid an error.
10019
Use char because int might match the return type of a GCC
10020
builtin and then its argument prototype would still apply. */
10033
rm -f conftest.$ac_objext conftest$ac_exeext
10034
if { (ac_try="$ac_link"
10035
case "(($ac_try" in
10036
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037
*) ac_try_echo=$ac_try;;
10039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040
(eval "$ac_link") 2>conftest.er1
10042
grep -v '^ *+' conftest.er1 >conftest.err
10044
cat conftest.err >&5
10045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046
(exit $ac_status); } && {
10047
test -z "$ac_c_werror_flag" ||
10048
test ! -s conftest.err
10049
} && test -s conftest$ac_exeext &&
10050
$as_test_x conftest$ac_exeext; then
10051
ac_cv_lib_svld_dlopen=yes
10053
echo "$as_me: failed program was:" >&5
10054
sed 's/^/| /' conftest.$ac_ext >&5
10056
ac_cv_lib_svld_dlopen=no
10059
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10060
conftest$ac_exeext conftest.$ac_ext
10061
LIBS=$ac_check_lib_save_LIBS
10063
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10064
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10065
if test $ac_cv_lib_svld_dlopen = yes; then
10066
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10068
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10069
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10070
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10071
echo $ECHO_N "(cached) $ECHO_C" >&6
10073
ac_check_lib_save_LIBS=$LIBS
10075
cat >conftest.$ac_ext <<_ACEOF
10078
cat confdefs.h >>conftest.$ac_ext
10079
cat >>conftest.$ac_ext <<_ACEOF
10080
/* end confdefs.h. */
10082
/* Override any GCC internal prototype to avoid an error.
10083
Use char because int might match the return type of a GCC
10084
builtin and then its argument prototype would still apply. */
10092
return dld_link ();
10097
rm -f conftest.$ac_objext conftest$ac_exeext
10098
if { (ac_try="$ac_link"
10099
case "(($ac_try" in
10100
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101
*) ac_try_echo=$ac_try;;
10103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104
(eval "$ac_link") 2>conftest.er1
10106
grep -v '^ *+' conftest.er1 >conftest.err
10108
cat conftest.err >&5
10109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110
(exit $ac_status); } && {
10111
test -z "$ac_c_werror_flag" ||
10112
test ! -s conftest.err
10113
} && test -s conftest$ac_exeext &&
10114
$as_test_x conftest$ac_exeext; then
10115
ac_cv_lib_dld_dld_link=yes
10117
echo "$as_me: failed program was:" >&5
10118
sed 's/^/| /' conftest.$ac_ext >&5
10120
ac_cv_lib_dld_dld_link=no
10123
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10124
conftest$ac_exeext conftest.$ac_ext
10125
LIBS=$ac_check_lib_save_LIBS
10127
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10128
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10129
if test $ac_cv_lib_dld_dld_link = yes; then
10130
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10151
if test "x$lt_cv_dlopen" != xno; then
10157
case $lt_cv_dlopen in
10159
save_CPPFLAGS="$CPPFLAGS"
10160
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10162
save_LDFLAGS="$LDFLAGS"
10163
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10166
LIBS="$lt_cv_dlopen_libs $LIBS"
10168
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10169
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10170
if test "${lt_cv_dlopen_self+set}" = set; then
10171
echo $ECHO_N "(cached) $ECHO_C" >&6
10173
if test "$cross_compiling" = yes; then :
10174
lt_cv_dlopen_self=cross
10176
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10177
lt_status=$lt_dlunknown
10178
cat > conftest.$ac_ext <<EOF
10179
#line __oline__ "configure"
10180
#include "confdefs.h"
10189
# define LT_DLGLOBAL RTLD_GLOBAL
10192
# define LT_DLGLOBAL DL_GLOBAL
10194
# define LT_DLGLOBAL 0
10198
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10199
find out it does not work in some platform. */
10200
#ifndef LT_DLLAZY_OR_NOW
10202
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10205
# define LT_DLLAZY_OR_NOW DL_LAZY
10208
# define LT_DLLAZY_OR_NOW RTLD_NOW
10211
# define LT_DLLAZY_OR_NOW DL_NOW
10213
# define LT_DLLAZY_OR_NOW 0
10221
extern "C" void exit (int);
10224
void fnord() { int i=42;}
10227
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10228
int status = $lt_dlunknown;
10232
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10233
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10234
/* dlclose (self); */
10242
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10243
(eval $ac_link) 2>&5
10245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10247
(./conftest; exit; ) >&5 2>/dev/null
10249
case x$lt_status in
10250
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10251
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10252
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10255
# compilation failed
10256
lt_cv_dlopen_self=no
10263
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10264
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10266
if test "x$lt_cv_dlopen_self" = xyes; then
10267
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10268
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10269
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10270
if test "${lt_cv_dlopen_self_static+set}" = set; then
10271
echo $ECHO_N "(cached) $ECHO_C" >&6
10273
if test "$cross_compiling" = yes; then :
10274
lt_cv_dlopen_self_static=cross
10276
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10277
lt_status=$lt_dlunknown
10278
cat > conftest.$ac_ext <<EOF
10279
#line __oline__ "configure"
10280
#include "confdefs.h"
10289
# define LT_DLGLOBAL RTLD_GLOBAL
10292
# define LT_DLGLOBAL DL_GLOBAL
10294
# define LT_DLGLOBAL 0
10298
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10299
find out it does not work in some platform. */
10300
#ifndef LT_DLLAZY_OR_NOW
10302
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10305
# define LT_DLLAZY_OR_NOW DL_LAZY
10308
# define LT_DLLAZY_OR_NOW RTLD_NOW
10311
# define LT_DLLAZY_OR_NOW DL_NOW
10313
# define LT_DLLAZY_OR_NOW 0
10321
extern "C" void exit (int);
10324
void fnord() { int i=42;}
10327
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10328
int status = $lt_dlunknown;
10332
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10333
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10334
/* dlclose (self); */
10342
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10343
(eval $ac_link) 2>&5
10345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10347
(./conftest; exit; ) >&5 2>/dev/null
10349
case x$lt_status in
10350
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10351
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10352
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10355
# compilation failed
10356
lt_cv_dlopen_self_static=no
10363
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10364
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10367
CPPFLAGS="$save_CPPFLAGS"
10368
LDFLAGS="$save_LDFLAGS"
10373
case $lt_cv_dlopen_self in
10374
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10375
*) enable_dlopen_self=unknown ;;
10378
case $lt_cv_dlopen_self_static in
10379
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10380
*) enable_dlopen_self_static=unknown ;;
10385
# Report which library types will actually be built
10386
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10387
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10388
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10389
echo "${ECHO_T}$can_build_shared" >&6; }
10391
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10392
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10393
test "$can_build_shared" = "no" && enable_shared=no
10395
# On AIX, shared libraries and static libraries use the same namespace, and
10396
# are all built from PIC.
10399
test "$enable_shared" = yes && enable_static=no
10400
if test -n "$RANLIB"; then
10401
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10402
postinstall_cmds='$RANLIB $lib'
10407
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10408
test "$enable_shared" = yes && enable_static=no
10412
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10413
echo "${ECHO_T}$enable_shared" >&6; }
10415
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10416
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10417
# Make sure either enable_shared or enable_static is yes.
10418
test "$enable_shared" = yes || enable_static=yes
10419
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10420
echo "${ECHO_T}$enable_static" >&6; }
10422
# The else clause should only fire when bootstrapping the
10423
# libtool distribution, otherwise you forgot to ship ltmain.sh
10424
# with your package, and you will get complaints that there are
10425
# no rules to generate ltmain.sh.
10426
if test -f "$ltmain"; then
10427
# See if we are running on zsh, and set the options which allow our commands through
10428
# without removal of \ escapes.
10429
if test -n "${ZSH_VERSION+set}" ; then
10430
setopt NO_GLOB_SUBST
10432
# Now quote all the things that may contain metacharacters while being
10433
# careful not to overquote the AC_SUBSTed values. We take copies of the
10434
# variables and quote the copies for generation of the libtool script.
10435
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10437
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10438
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10439
deplibs_check_method reload_flag reload_cmds need_locks \
10440
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10441
lt_cv_sys_global_symbol_to_c_name_address \
10442
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10443
old_postinstall_cmds old_postuninstall_cmds \
10447
lt_prog_compiler_wl \
10448
lt_prog_compiler_pic \
10449
lt_prog_compiler_static \
10450
lt_prog_compiler_no_builtin_flag \
10451
export_dynamic_flag_spec \
10452
thread_safe_flag_spec \
10453
whole_archive_flag_spec \
10454
enable_shared_with_static_runtimes \
10456
old_archive_from_new_cmds \
10461
compiler_lib_search_path \
10463
archive_expsym_cmds \
10465
postuninstall_cmds \
10466
old_archive_from_expsyms_cmds \
10467
allow_undefined_flag \
10468
no_undefined_flag \
10469
export_symbols_cmds \
10470
hardcode_libdir_flag_spec \
10471
hardcode_libdir_flag_spec_ld \
10472
hardcode_libdir_separator \
10473
hardcode_automatic \
10475
module_expsym_cmds \
10476
lt_cv_prog_compiler_c_o \
10479
include_expsyms; do
10482
old_archive_cmds | \
10483
old_archive_from_new_cmds | \
10485
archive_expsym_cmds | \
10487
module_expsym_cmds | \
10488
old_archive_from_expsyms_cmds | \
10489
export_symbols_cmds | \
10490
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10491
postinstall_cmds | postuninstall_cmds | \
10492
old_postinstall_cmds | old_postuninstall_cmds | \
10493
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10494
# Double-quote double-evaled strings.
10495
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10498
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10504
*'\$0 --fallback-echo"')
10505
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10509
cfgfile="${ofile}T"
10510
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10512
{ echo "$as_me:$LINENO: creating $ofile" >&5
10513
echo "$as_me: creating $ofile" >&6;}
10515
cat <<__EOF__ >> "$cfgfile"
10518
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10519
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10520
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10522
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10523
# Free Software Foundation, Inc.
10525
# This file is part of GNU Libtool:
10526
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10528
# This program is free software; you can redistribute it and/or modify
10529
# it under the terms of the GNU General Public License as published by
10530
# the Free Software Foundation; either version 2 of the License, or
10531
# (at your option) any later version.
10533
# This program is distributed in the hope that it will be useful, but
10534
# WITHOUT ANY WARRANTY; without even the implied warranty of
10535
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10536
# General Public License for more details.
10538
# You should have received a copy of the GNU General Public License
10539
# along with this program; if not, write to the Free Software
10540
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10542
# As a special exception to the GNU General Public License, if you
10543
# distribute this file as part of a program that contains a
10544
# configuration script generated by Autoconf, you may include it under
10545
# the same distribution terms that you use for the rest of that program.
10547
# A sed program that does not truncate output.
10550
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10551
Xsed="$SED -e 1s/^X//"
10553
# The HP-UX ksh and POSIX shell print the target directory to stdout
10554
# if CDPATH is set.
10555
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10557
# The names of the tagged configurations supported by this script.
10560
# ### BEGIN LIBTOOL CONFIG
10562
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10564
# Shell to use when invoking shell scripts.
10567
# Whether or not to build shared libraries.
10568
build_libtool_libs=$enable_shared
10570
# Whether or not to build static libraries.
10571
build_old_libs=$enable_static
10573
# Whether or not to add -lc for building shared libraries.
10574
build_libtool_need_lc=$archive_cmds_need_lc
10576
# Whether or not to disallow shared libs when runtime libs are static
10577
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10579
# Whether or not to optimize for fast installation.
10580
fast_install=$enable_fast_install
10583
host_alias=$host_alias
10587
# The build system.
10588
build_alias=$build_alias
10592
# An echo program that does not interpret backslashes.
10597
AR_FLAGS=$lt_AR_FLAGS
10602
# LTCC compiler flags.
10603
LTCFLAGS=$lt_LTCFLAGS
10605
# A language-specific compiler.
10608
# Is the compiler the GNU C compiler?
10614
# The linker used to build libraries.
10617
# Whether we need hard or soft links.
10620
# A BSD-compatible nm program.
10623
# A symbol stripping program
10626
# Used to examine libraries when file_magic_cmd begins "file"
10627
MAGIC_CMD=$MAGIC_CMD
10629
# Used on cygwin: DLL creation program.
10632
# Used on cygwin: object dumper.
10635
# Used on cygwin: assembler.
10638
# The name of the directory that contains temporary libtool files.
10641
# How to create reloadable object files.
10642
reload_flag=$lt_reload_flag
10643
reload_cmds=$lt_reload_cmds
10645
# How to pass a linker flag through the compiler.
10646
wl=$lt_lt_prog_compiler_wl
10648
# Object file suffix (normally "o").
10649
objext="$ac_objext"
10651
# Old archive suffix (normally "a").
10654
# Shared library suffix (normally ".so").
10655
shrext_cmds='$shrext_cmds'
10657
# Executable file suffix (normally "").
10660
# Additional compiler flags for building library objects.
10661
pic_flag=$lt_lt_prog_compiler_pic
10664
# What is the maximum length of a command?
10665
max_cmd_len=$lt_cv_sys_max_cmd_len
10667
# Does compiler simultaneously support -c and -o options?
10668
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10670
# Must we lock files when doing compilation?
10671
need_locks=$lt_need_locks
10673
# Do we need the lib prefix for modules?
10674
need_lib_prefix=$need_lib_prefix
10676
# Do we need a version for libraries?
10677
need_version=$need_version
10679
# Whether dlopen is supported.
10680
dlopen_support=$enable_dlopen
10682
# Whether dlopen of programs is supported.
10683
dlopen_self=$enable_dlopen_self
10685
# Whether dlopen of statically linked programs is supported.
10686
dlopen_self_static=$enable_dlopen_self_static
10688
# Compiler flag to prevent dynamic linking.
10689
link_static_flag=$lt_lt_prog_compiler_static
10691
# Compiler flag to turn off builtin functions.
10692
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10694
# Compiler flag to allow reflexive dlopens.
10695
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10697
# Compiler flag to generate shared objects directly from archives.
10698
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10700
# Compiler flag to generate thread-safe objects.
10701
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10703
# Library versioning type.
10704
version_type=$version_type
10706
# Format of library name prefix.
10707
libname_spec=$lt_libname_spec
10709
# List of archive names. First name is the real one, the rest are links.
10710
# The last name is the one that the linker finds with -lNAME.
10711
library_names_spec=$lt_library_names_spec
10713
# The coded name of the library, if different from the real name.
10714
soname_spec=$lt_soname_spec
10716
# Commands used to build and install an old-style archive.
10718
old_archive_cmds=$lt_old_archive_cmds
10719
old_postinstall_cmds=$lt_old_postinstall_cmds
10720
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10722
# Create an old-style archive from a shared archive.
10723
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10725
# Create a temporary old-style archive to link instead of a shared archive.
10726
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10728
# Commands used to build and install a shared archive.
10729
archive_cmds=$lt_archive_cmds
10730
archive_expsym_cmds=$lt_archive_expsym_cmds
10731
postinstall_cmds=$lt_postinstall_cmds
10732
postuninstall_cmds=$lt_postuninstall_cmds
10734
# Commands used to build a loadable module (assumed same as above if empty)
10735
module_cmds=$lt_module_cmds
10736
module_expsym_cmds=$lt_module_expsym_cmds
10738
# Commands to strip libraries.
10739
old_striplib=$lt_old_striplib
10740
striplib=$lt_striplib
10742
# Dependencies to place before the objects being linked to create a
10744
predep_objects=$lt_predep_objects
10746
# Dependencies to place after the objects being linked to create a
10748
postdep_objects=$lt_postdep_objects
10750
# Dependencies to place before the objects being linked to create a
10752
predeps=$lt_predeps
10754
# Dependencies to place after the objects being linked to create a
10756
postdeps=$lt_postdeps
10758
# The library search path used internally by the compiler when linking
10759
# a shared library.
10760
compiler_lib_search_path=$lt_compiler_lib_search_path
10762
# Method to check whether dependent libraries are shared objects.
10763
deplibs_check_method=$lt_deplibs_check_method
10765
# Command to use when deplibs_check_method == file_magic.
10766
file_magic_cmd=$lt_file_magic_cmd
10768
# Flag that allows shared libraries with undefined symbols to be built.
10769
allow_undefined_flag=$lt_allow_undefined_flag
10771
# Flag that forces no undefined symbols.
10772
no_undefined_flag=$lt_no_undefined_flag
10774
# Commands used to finish a libtool library installation in a directory.
10775
finish_cmds=$lt_finish_cmds
10777
# Same as above, but a single script fragment to be evaled but not shown.
10778
finish_eval=$lt_finish_eval
10780
# Take the output of nm and produce a listing of raw symbols and C names.
10781
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10783
# Transform the output of nm in a proper C declaration
10784
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10786
# Transform the output of nm in a C name address pair
10787
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10789
# This is the shared library runtime path variable.
10790
runpath_var=$runpath_var
10792
# This is the shared library path variable.
10793
shlibpath_var=$shlibpath_var
10795
# Is shlibpath searched before the hard-coded library search path?
10796
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10798
# How to hardcode a shared library path into an executable.
10799
hardcode_action=$hardcode_action
10801
# Whether we should hardcode library paths into libraries.
10802
hardcode_into_libs=$hardcode_into_libs
10804
# Flag to hardcode \$libdir into a binary during linking.
10805
# This must work even if \$libdir does not exist.
10806
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10808
# If ld is used when linking, flag to hardcode \$libdir into
10809
# a binary during linking. This must work even if \$libdir does
10811
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10813
# Whether we need a single -rpath flag with a separated argument.
10814
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10816
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10817
# resulting binary.
10818
hardcode_direct=$hardcode_direct
10820
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10821
# resulting binary.
10822
hardcode_minus_L=$hardcode_minus_L
10824
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10825
# the resulting binary.
10826
hardcode_shlibpath_var=$hardcode_shlibpath_var
10828
# Set to yes if building a shared library automatically hardcodes DIR into the library
10829
# and all subsequent libraries and executables linked against it.
10830
hardcode_automatic=$hardcode_automatic
10832
# Variables whose values should be saved in libtool wrapper scripts and
10833
# restored at relink time.
10834
variables_saved_for_relink="$variables_saved_for_relink"
10836
# Whether libtool must link a program against all its dependency libraries.
10837
link_all_deplibs=$link_all_deplibs
10839
# Compile-time system search path for libraries
10840
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10842
# Run-time system search path for libraries
10843
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10845
# Fix the shell variable \$srcfile for the compiler.
10846
fix_srcfile_path=$lt_fix_srcfile_path
10848
# Set to yes if exported symbols are required.
10849
always_export_symbols=$always_export_symbols
10851
# The commands to list exported symbols.
10852
export_symbols_cmds=$lt_export_symbols_cmds
10854
# The commands to extract the exported symbol list from a shared archive.
10855
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10857
# Symbols that should not be listed in the preloaded symbols.
10858
exclude_expsyms=$lt_exclude_expsyms
10860
# Symbols that must always be exported.
10861
include_expsyms=$lt_include_expsyms
10863
# ### END LIBTOOL CONFIG
10870
cat <<\EOF >> "$cfgfile"
10872
# AIX sometimes has problems with the GCC collect2 program. For some
10873
# reason, if we set the COLLECT_NAMES environment variable, the problems
10874
# vanish in a puff of smoke.
10875
if test "X${COLLECT_NAMES+set}" != Xset; then
10877
export COLLECT_NAMES
10883
# We use sed instead of cat because bash on DJGPP gets confused if
10884
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10885
# text mode, it properly converts lines to CR/LF. This bash problem
10886
# is reportedly fixed, but why not run on old versions too?
10887
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10889
mv -f "$cfgfile" "$ofile" || \
10890
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10894
# If there is no Makefile yet, we rely on a make rule to execute
10895
# `config.status --recheck' to rerun these tests and create the
10896
# libtool script then.
10897
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10898
if test -f "$ltmain_in"; then
10899
test -f Makefile && make "$ltmain"
10905
ac_cpp='$CPP $CPPFLAGS'
10906
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10907
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10908
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10913
# Check whether --with-tags was given.
10914
if test "${with_tags+set}" = set; then
10915
withval=$with_tags; tagnames="$withval"
10919
if test -f "$ltmain" && test -n "$tagnames"; then
10920
if test ! -f "${ofile}"; then
10921
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10922
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10925
if test -z "$LTCC"; then
10926
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10927
if test -z "$LTCC"; then
10928
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10929
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10931
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10932
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10935
if test -z "$LTCFLAGS"; then
10936
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10939
# Extract list of available tagged configurations in $ofile.
10940
# Note that this assumes the entire list is on one line.
10941
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10943
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10944
for tagname in $tagnames; do
10946
# Check whether tagname contains only valid characters
10947
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10949
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10950
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10951
{ (exit 1); exit 1; }; }
10955
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10957
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10958
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10959
{ (exit 1); exit 1; }; }
10962
# Update the list of available tags.
10963
if test -n "$tagname"; then
10964
echo appending configuration tag \"$tagname\" to $ofile
10968
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10969
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10970
(test "X$CXX" != "Xg++"))) ; then
10972
ac_cpp='$CXXCPP $CPPFLAGS'
10973
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10974
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10975
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10980
archive_cmds_need_lc_CXX=no
10981
allow_undefined_flag_CXX=
10982
always_export_symbols_CXX=no
10983
archive_expsym_cmds_CXX=
10984
export_dynamic_flag_spec_CXX=
10985
hardcode_direct_CXX=no
10986
hardcode_libdir_flag_spec_CXX=
10987
hardcode_libdir_flag_spec_ld_CXX=
10988
hardcode_libdir_separator_CXX=
10989
hardcode_minus_L_CXX=no
10990
hardcode_shlibpath_var_CXX=unsupported
10991
hardcode_automatic_CXX=no
10993
module_expsym_cmds_CXX=
10994
link_all_deplibs_CXX=unknown
10995
old_archive_cmds_CXX=$old_archive_cmds
10996
no_undefined_flag_CXX=
10997
whole_archive_flag_spec_CXX=
10998
enable_shared_with_static_runtimes_CXX=no
11000
# Dependencies to place before and after the object being linked:
11001
predep_objects_CXX=
11002
postdep_objects_CXX=
11005
compiler_lib_search_path_CXX=
11007
# Source file extension for C++ test sources.
11010
# Object file extension for compiled C++ test sources.
11014
# Code to be used in simple compile tests
11015
lt_simple_compile_test_code="int some_variable = 0;"
11017
# Code to be used in simple link tests
11018
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11020
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11022
# If no C compiler was specified, use CC.
11025
# If no C compiler flags were specified, use CFLAGS.
11026
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11028
# Allow CC to be a program name with arguments.
11032
# save warnings/boilerplate of simple test code
11033
ac_outfile=conftest.$ac_objext
11034
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11035
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11036
_lt_compiler_boilerplate=`cat conftest.err`
11039
ac_outfile=conftest.$ac_objext
11040
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11041
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11042
_lt_linker_boilerplate=`cat conftest.err`
11046
# Allow CC to be a program name with arguments.
11051
lt_save_with_gnu_ld=$with_gnu_ld
11052
lt_save_path_LD=$lt_cv_path_LD
11053
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11054
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11056
$as_unset lt_cv_prog_gnu_ld
11058
if test -n "${lt_cv_path_LDCXX+set}"; then
11059
lt_cv_path_LD=$lt_cv_path_LDCXX
11061
$as_unset lt_cv_path_LD
11063
test -z "${LDCXX+set}" || LD=$LDCXX
11067
for cc_temp in $compiler""; do
11069
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11070
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11075
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11078
# We don't want -fno-exception wen compiling C++ code, so set the
11079
# no_builtin_flag separately
11080
if test "$GXX" = yes; then
11081
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11083
lt_prog_compiler_no_builtin_flag_CXX=
11086
if test "$GXX" = yes; then
11087
# Set up default GNU C++ configuration
11090
# Check whether --with-gnu-ld was given.
11091
if test "${with_gnu_ld+set}" = set; then
11092
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11098
if test "$GCC" = yes; then
11099
# Check if gcc -print-prog-name=ld gives a path.
11100
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11101
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11104
# gcc leaves a trailing carriage return which upsets mingw
11105
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11107
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11110
# Accept absolute paths.
11112
re_direlt='/[^/][^/]*/\.\./'
11113
# Canonicalize the pathname of ld
11114
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11115
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11116
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11118
test -z "$LD" && LD="$ac_prog"
11121
# If it fails, then pretend we aren't using GCC.
11125
# If it is relative, then search for the first ld in PATH.
11126
with_gnu_ld=unknown
11129
elif test "$with_gnu_ld" = yes; then
11130
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11131
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11133
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11134
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11136
if test "${lt_cv_path_LD+set}" = set; then
11137
echo $ECHO_N "(cached) $ECHO_C" >&6
11139
if test -z "$LD"; then
11140
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11141
for ac_dir in $PATH; do
11143
test -z "$ac_dir" && ac_dir=.
11144
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11145
lt_cv_path_LD="$ac_dir/$ac_prog"
11146
# Check to see if the program is GNU ld. I'd rather use --version,
11147
# but apparently some variants of GNU ld only accept -v.
11148
# Break only if it was the GNU/non-GNU ld that we prefer.
11149
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11150
*GNU* | *'with BFD'*)
11151
test "$with_gnu_ld" != no && break
11154
test "$with_gnu_ld" != yes && break
11161
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11165
LD="$lt_cv_path_LD"
11166
if test -n "$LD"; then
11167
{ echo "$as_me:$LINENO: result: $LD" >&5
11168
echo "${ECHO_T}$LD" >&6; }
11170
{ echo "$as_me:$LINENO: result: no" >&5
11171
echo "${ECHO_T}no" >&6; }
11173
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11174
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11175
{ (exit 1); exit 1; }; }
11176
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11177
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11178
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11179
echo $ECHO_N "(cached) $ECHO_C" >&6
11181
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11182
case `$LD -v 2>&1 </dev/null` in
11183
*GNU* | *'with BFD'*)
11184
lt_cv_prog_gnu_ld=yes
11187
lt_cv_prog_gnu_ld=no
11191
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11192
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11193
with_gnu_ld=$lt_cv_prog_gnu_ld
11197
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11198
# archiving commands below assume that GNU ld is being used.
11199
if test "$with_gnu_ld" = yes; then
11200
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11201
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11203
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11204
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11206
# If archive_cmds runs LD, not CC, wlarc should be empty
11207
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11208
# investigate it a little bit more. (MM)
11211
# ancient GNU ld didn't support --whole-archive et. al.
11212
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11213
grep 'no-whole-archive' > /dev/null; then
11214
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11216
whole_archive_flag_spec_CXX=
11222
# A generic and very simple default shared library creation
11223
# command for GNU C++ for the case where it uses the native
11224
# linker, instead of GNU ld. If possible, this setting should
11225
# overridden to take advantage of the native linker features on
11226
# the platform it is being used on.
11227
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11230
# Commands to make compiler produce verbose output that lists
11231
# what "hidden" libraries, object files and flags are used when
11232
# linking a shared library.
11233
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11241
# PORTME: fill in a description of your system's C++ link characteristics
11242
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11243
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11247
# FIXME: insert proper C++ library support
11251
if test "$host_cpu" = ia64; then
11252
# On IA64, the linker does run time linking by default, so we don't
11253
# have to do anything special.
11254
aix_use_runtimelinking=no
11255
exp_sym_flag='-Bexport'
11258
aix_use_runtimelinking=no
11260
# Test if we are trying to use run time linking or normal
11261
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11262
# need to do runtime linking.
11263
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11264
for ld_flag in $LDFLAGS; do
11267
aix_use_runtimelinking=yes
11275
exp_sym_flag='-bexport'
11276
no_entry_flag='-bnoentry'
11279
# When large executables or shared objects are built, AIX ld can
11280
# have problems creating the table of contents. If linking a library
11281
# or program results in "error TOC overflow" add -mminimal-toc to
11282
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11283
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11285
archive_cmds_CXX=''
11286
hardcode_direct_CXX=yes
11287
hardcode_libdir_separator_CXX=':'
11288
link_all_deplibs_CXX=yes
11290
if test "$GXX" = yes; then
11291
case $host_os in aix4.[012]|aix4.[012].*)
11292
# We only want to do this on AIX 4.2 and lower, the check
11293
# below for broken collect2 doesn't work under 4.3+
11294
collect2name=`${CC} -print-prog-name=collect2`
11295
if test -f "$collect2name" && \
11296
strings "$collect2name" | grep resolve_lib_name >/dev/null
11298
# We have reworked collect2
11301
# We have old collect2
11302
hardcode_direct_CXX=unsupported
11303
# It fails to find uninstalled libraries when the uninstalled
11304
# path is not listed in the libpath. Setting hardcode_minus_L
11305
# to unsupported forces relinking
11306
hardcode_minus_L_CXX=yes
11307
hardcode_libdir_flag_spec_CXX='-L$libdir'
11308
hardcode_libdir_separator_CXX=
11312
shared_flag='-shared'
11313
if test "$aix_use_runtimelinking" = yes; then
11314
shared_flag="$shared_flag "'${wl}-G'
11318
if test "$host_cpu" = ia64; then
11319
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11320
# chokes on -Wl,-G. The following line is correct:
11323
if test "$aix_use_runtimelinking" = yes; then
11324
shared_flag='${wl}-G'
11326
shared_flag='${wl}-bM:SRE'
11331
# It seems that -bexpall does not export symbols beginning with
11332
# underscore (_), so it is better to generate a list of symbols to export.
11333
always_export_symbols_CXX=yes
11334
if test "$aix_use_runtimelinking" = yes; then
11335
# Warning - without using the other runtime loading flags (-brtl),
11336
# -berok will link without error, but may produce a broken library.
11337
allow_undefined_flag_CXX='-berok'
11338
# Determine the default libpath from the value encoded in an empty executable.
11339
cat >conftest.$ac_ext <<_ACEOF
11342
cat confdefs.h >>conftest.$ac_ext
11343
cat >>conftest.$ac_ext <<_ACEOF
11344
/* end confdefs.h. */
11354
rm -f conftest.$ac_objext conftest$ac_exeext
11355
if { (ac_try="$ac_link"
11356
case "(($ac_try" in
11357
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358
*) ac_try_echo=$ac_try;;
11360
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361
(eval "$ac_link") 2>conftest.er1
11363
grep -v '^ *+' conftest.er1 >conftest.err
11365
cat conftest.err >&5
11366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367
(exit $ac_status); } && {
11368
test -z "$ac_cxx_werror_flag" ||
11369
test ! -s conftest.err
11370
} && test -s conftest$ac_exeext &&
11371
$as_test_x conftest$ac_exeext; then
11373
lt_aix_libpath_sed='
11374
/Import File Strings/,/^$/ {
11380
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11381
# Check for a 64-bit object if we didn't find anything.
11382
if test -z "$aix_libpath"; then
11383
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11386
echo "$as_me: failed program was:" >&5
11387
sed 's/^/| /' conftest.$ac_ext >&5
11392
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11393
conftest$ac_exeext conftest.$ac_ext
11394
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11396
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11398
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11400
if test "$host_cpu" = ia64; then
11401
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11402
allow_undefined_flag_CXX="-z nodefs"
11403
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11405
# Determine the default libpath from the value encoded in an empty executable.
11406
cat >conftest.$ac_ext <<_ACEOF
11409
cat confdefs.h >>conftest.$ac_ext
11410
cat >>conftest.$ac_ext <<_ACEOF
11411
/* end confdefs.h. */
11421
rm -f conftest.$ac_objext conftest$ac_exeext
11422
if { (ac_try="$ac_link"
11423
case "(($ac_try" in
11424
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425
*) ac_try_echo=$ac_try;;
11427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428
(eval "$ac_link") 2>conftest.er1
11430
grep -v '^ *+' conftest.er1 >conftest.err
11432
cat conftest.err >&5
11433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434
(exit $ac_status); } && {
11435
test -z "$ac_cxx_werror_flag" ||
11436
test ! -s conftest.err
11437
} && test -s conftest$ac_exeext &&
11438
$as_test_x conftest$ac_exeext; then
11440
lt_aix_libpath_sed='
11441
/Import File Strings/,/^$/ {
11447
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11448
# Check for a 64-bit object if we didn't find anything.
11449
if test -z "$aix_libpath"; then
11450
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11453
echo "$as_me: failed program was:" >&5
11454
sed 's/^/| /' conftest.$ac_ext >&5
11459
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11460
conftest$ac_exeext conftest.$ac_ext
11461
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11463
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11464
# Warning - without using the other run time loading flags,
11465
# -berok will link without error, but may produce a broken library.
11466
no_undefined_flag_CXX=' ${wl}-bernotok'
11467
allow_undefined_flag_CXX=' ${wl}-berok'
11468
# Exported symbols can be pulled into shared objects from archives
11469
whole_archive_flag_spec_CXX='$convenience'
11470
archive_cmds_need_lc_CXX=yes
11471
# This is similar to how AIX traditionally builds its shared libraries.
11472
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11478
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11479
allow_undefined_flag_CXX=unsupported
11480
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11481
# support --undefined. This deserves some investigation. FIXME
11482
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11489
case $cc_basename in
11491
# FIXME: insert proper C++ library support
11497
cygwin* | mingw* | pw32*)
11498
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11499
# as there is no search path for DLLs.
11500
hardcode_libdir_flag_spec_CXX='-L$libdir'
11501
allow_undefined_flag_CXX=unsupported
11502
always_export_symbols_CXX=no
11503
enable_shared_with_static_runtimes_CXX=yes
11505
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11506
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11507
# If the export-symbols file already is a .def file (1st line
11508
# is EXPORTS), use it as is; otherwise, prepend...
11509
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11510
cp $export_symbols $output_objdir/$soname.def;
11512
echo EXPORTS > $output_objdir/$soname.def;
11513
cat $export_symbols >> $output_objdir/$soname.def;
11515
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11520
darwin* | rhapsody*)
11522
rhapsody* | darwin1.[012])
11523
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11526
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11527
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11529
case ${MACOSX_DEPLOYMENT_TARGET} in
11531
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11534
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11540
archive_cmds_need_lc_CXX=no
11541
hardcode_direct_CXX=no
11542
hardcode_automatic_CXX=yes
11543
hardcode_shlibpath_var_CXX=unsupported
11544
whole_archive_flag_spec_CXX=''
11545
link_all_deplibs_CXX=yes
11547
if test "$GXX" = yes ; then
11548
lt_int_apple_cc_single_mod=no
11549
output_verbose_link_cmd='echo'
11550
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11551
lt_int_apple_cc_single_mod=yes
11553
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11554
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11556
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11558
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11559
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11560
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11561
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11563
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11565
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11567
case $cc_basename in
11569
output_verbose_link_cmd='echo'
11570
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11571
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11572
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11573
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11574
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11584
case $cc_basename in
11586
# FIXME: insert proper C++ library support
11590
# Green Hills C++ Compiler
11591
# FIXME: insert proper C++ library support
11595
# FIXME: insert proper C++ library support
11601
# C++ shared libraries reported to be fairly broken before switch to ELF
11605
archive_cmds_need_lc_CXX=no
11607
freebsd* | dragonfly*)
11608
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11615
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11616
hardcode_libdir_separator_CXX=:
11617
export_dynamic_flag_spec_CXX='${wl}-E'
11618
hardcode_direct_CXX=yes
11619
hardcode_minus_L_CXX=yes # Not in the search PATH,
11620
# but as the default
11621
# location of the library.
11623
case $cc_basename in
11625
# FIXME: insert proper C++ library support
11629
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11630
# Commands to make compiler produce verbose output that lists
11631
# what "hidden" libraries, object files and flags are used when
11632
# linking a shared library.
11634
# There doesn't appear to be a way to prevent this compiler from
11635
# explicitly linking system object files so we need to strip them
11636
# from the output so that they don't get included in the library
11638
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11641
if test "$GXX" = yes; then
11642
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11644
# FIXME: insert proper C++ library support
11651
if test $with_gnu_ld = no; then
11652
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11653
hardcode_libdir_separator_CXX=:
11658
export_dynamic_flag_spec_CXX='${wl}-E'
11664
hardcode_direct_CXX=no
11665
hardcode_shlibpath_var_CXX=no
11668
hardcode_direct_CXX=yes
11669
hardcode_minus_L_CXX=yes # Not in the search PATH,
11670
# but as the default
11671
# location of the library.
11675
case $cc_basename in
11677
# FIXME: insert proper C++ library support
11683
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11686
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11689
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11692
# Commands to make compiler produce verbose output that lists
11693
# what "hidden" libraries, object files and flags are used when
11694
# linking a shared library.
11696
# There doesn't appear to be a way to prevent this compiler from
11697
# explicitly linking system object files so we need to strip them
11698
# from the output so that they don't get included in the library
11700
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11703
if test "$GXX" = yes; then
11704
if test $with_gnu_ld = no; then
11707
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11710
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11713
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11718
# FIXME: insert proper C++ library support
11725
hardcode_direct_CXX=no
11726
hardcode_shlibpath_var_CXX=no
11727
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11728
export_dynamic_flag_spec_CXX='${wl}-E'
11729
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11730
# Instead, shared libraries are loaded at an image base (0x10000000 by
11731
# default) and relocated if they conflict, which is a slow very memory
11732
# consuming and fragmenting process. To avoid this, we pick a random,
11733
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11734
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11735
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11736
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11739
case $cc_basename in
11742
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11744
# Archives containing C++ object files must be created using
11745
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11746
# necessary to make sure instantiated templates are included
11748
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11751
if test "$GXX" = yes; then
11752
if test "$with_gnu_ld" = no; then
11753
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11755
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11758
link_all_deplibs_CXX=yes
11761
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11762
hardcode_libdir_separator_CXX=:
11764
linux* | k*bsd*-gnu)
11765
case $cc_basename in
11767
# Kuck and Associates, Inc. (KAI) C++ Compiler
11769
# KCC will only create a shared library if the output file
11770
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11771
# to its proper name (with version) after linking.
11772
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11773
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11774
# Commands to make compiler produce verbose output that lists
11775
# what "hidden" libraries, object files and flags are used when
11776
# linking a shared library.
11778
# There doesn't appear to be a way to prevent this compiler from
11779
# explicitly linking system object files so we need to strip them
11780
# from the output so that they don't get included in the library
11782
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11784
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11785
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11787
# Archives containing C++ object files must be created using
11788
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11789
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11794
# version 8.0 and above of icpc choke on multiply defined symbols
11795
# if we add $predep_objects and $postdep_objects, however 7.1 and
11796
# earlier do not add the objects themselves.
11797
case `$CC -V 2>&1` in
11799
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11800
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11802
*) # Version 8.0 or newer
11805
ia64*) tmp_idyn=' -i_dynamic';;
11807
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11808
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11811
archive_cmds_need_lc_CXX=no
11812
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11813
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11814
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11817
# Portland Group C++ compiler
11818
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11819
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11821
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11822
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11823
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11827
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11828
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11830
runpath_var=LD_RUN_PATH
11831
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11832
hardcode_libdir_separator_CXX=:
11834
# Commands to make compiler produce verbose output that lists
11835
# what "hidden" libraries, object files and flags are used when
11836
# linking a shared library.
11838
# There doesn't appear to be a way to prevent this compiler from
11839
# explicitly linking system object files so we need to strip them
11840
# from the output so that they don't get included in the library
11842
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11845
case `$CC -V 2>&1 | sed 5q` in
11848
no_undefined_flag_CXX=' -zdefs'
11849
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11850
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11851
hardcode_libdir_flag_spec_CXX='-R$libdir'
11852
whole_archive_flag_spec_CXX='${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'
11854
# Not sure whether something based on
11855
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11857
output_verbose_link_cmd='echo'
11859
# Archives containing C++ object files must be created using
11860
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11861
# necessary to make sure instantiated templates are included
11863
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11870
# FIXME: insert proper C++ library support
11874
# FIXME: insert proper C++ library support
11878
case $cc_basename in
11880
# FIXME: insert proper C++ library support
11884
# FIXME: insert proper C++ library support
11889
netbsd* | netbsdelf*-gnu)
11890
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11891
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11893
hardcode_libdir_flag_spec_CXX='-R$libdir'
11894
hardcode_direct_CXX=yes
11895
hardcode_shlibpath_var_CXX=no
11897
# Workaround some broken pre-1.5 toolchains
11898
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11901
# C++ shared libraries are fairly broken
11905
if test -f /usr/libexec/ld.so; then
11906
hardcode_direct_CXX=yes
11907
hardcode_shlibpath_var_CXX=no
11908
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11909
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11910
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11911
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11912
export_dynamic_flag_spec_CXX='${wl}-E'
11913
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11915
output_verbose_link_cmd='echo'
11921
case $cc_basename in
11923
# Kuck and Associates, Inc. (KAI) C++ Compiler
11925
# KCC will only create a shared library if the output file
11926
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11927
# to its proper name (with version) after linking.
11928
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11930
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11931
hardcode_libdir_separator_CXX=:
11933
# Archives containing C++ object files must be created using
11934
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11935
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11939
# Rational C++ 2.4.1
11940
# FIXME: insert proper C++ library support
11944
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11945
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11947
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11948
hardcode_libdir_separator_CXX=:
11950
# Commands to make compiler produce verbose output that lists
11951
# what "hidden" libraries, object files and flags are used when
11952
# linking a shared library.
11954
# There doesn't appear to be a way to prevent this compiler from
11955
# explicitly linking system object files so we need to strip them
11956
# from the output so that they don't get included in the library
11958
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11961
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11962
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11963
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11965
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11966
hardcode_libdir_separator_CXX=:
11968
# Commands to make compiler produce verbose output that lists
11969
# what "hidden" libraries, object files and flags are used when
11970
# linking a shared library.
11971
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11974
# FIXME: insert proper C++ library support
11981
case $cc_basename in
11983
# Kuck and Associates, Inc. (KAI) C++ Compiler
11985
# KCC will only create a shared library if the output file
11986
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11987
# to its proper name (with version) after linking.
11988
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11990
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11991
hardcode_libdir_separator_CXX=:
11993
# Archives containing C++ object files must be created using
11994
# the KAI C++ compiler.
11995
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11998
# Rational C++ 2.4.1
11999
# FIXME: insert proper C++ library support
12003
allow_undefined_flag_CXX=' -expect_unresolved \*'
12004
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12005
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12006
echo "-hidden">> $lib.exp~
12007
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12010
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12011
hardcode_libdir_separator_CXX=:
12013
# Commands to make compiler produce verbose output that lists
12014
# what "hidden" libraries, object files and flags are used when
12015
# linking a shared library.
12017
# There doesn't appear to be a way to prevent this compiler from
12018
# explicitly linking system object files so we need to strip them
12019
# from the output so that they don't get included in the library
12021
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12024
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12025
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12026
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12028
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12029
hardcode_libdir_separator_CXX=:
12031
# Commands to make compiler produce verbose output that lists
12032
# what "hidden" libraries, object files and flags are used when
12033
# linking a shared library.
12034
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12037
# FIXME: insert proper C++ library support
12044
# FIXME: insert proper C++ library support
12048
case $cc_basename in
12051
# FIXME: insert proper C++ library support
12056
# FIXME: insert proper C++ library support
12060
# FIXME: insert proper C++ library support
12066
case $cc_basename in
12068
# Sun C++ 4.2, 5.x and Centerline C++
12069
archive_cmds_need_lc_CXX=yes
12070
no_undefined_flag_CXX=' -zdefs'
12071
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12072
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12073
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12075
hardcode_libdir_flag_spec_CXX='-R$libdir'
12076
hardcode_shlibpath_var_CXX=no
12078
solaris2.[0-5] | solaris2.[0-5].*) ;;
12080
# The compiler driver will combine and reorder linker options,
12081
# but understands `-z linker_flag'.
12082
# Supported since Solaris 2.6 (maybe 2.5.1?)
12083
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12086
link_all_deplibs_CXX=yes
12088
output_verbose_link_cmd='echo'
12090
# Archives containing C++ object files must be created using
12091
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12092
# necessary to make sure instantiated templates are included
12094
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12097
# Green Hills C++ Compiler
12098
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12100
# The C++ compiler must be used to create the archive.
12101
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12104
# GNU C++ compiler with Solaris linker
12105
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12106
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12107
if $CC --version | grep -v '^2\.7' > /dev/null; then
12108
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12109
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12110
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12112
# Commands to make compiler produce verbose output that lists
12113
# what "hidden" libraries, object files and flags are used when
12114
# linking a shared library.
12115
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12117
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12119
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12120
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12121
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12123
# Commands to make compiler produce verbose output that lists
12124
# what "hidden" libraries, object files and flags are used when
12125
# linking a shared library.
12126
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12129
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12131
solaris2.[0-5] | solaris2.[0-5].*) ;;
12133
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12140
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12141
no_undefined_flag_CXX='${wl}-z,text'
12142
archive_cmds_need_lc_CXX=no
12143
hardcode_shlibpath_var_CXX=no
12144
runpath_var='LD_RUN_PATH'
12146
case $cc_basename in
12148
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12149
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12152
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12153
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12157
sysv5* | sco3.2v5* | sco5v6*)
12158
# Note: We can NOT use -z defs as we might desire, because we do not
12159
# link with -lc, and that would cause any symbols used from libc to
12160
# always be unresolved, which means just about no library would
12161
# ever link correctly. If we're not using GNU ld we use -z text
12162
# though, which does catch some bad symbols but isn't as heavy-handed
12164
# For security reasons, it is highly recommended that you always
12165
# use absolute paths for naming shared libraries, and exclude the
12166
# DT_RUNPATH tag from executables and libraries. But doing so
12167
# requires that you compile everything twice, which is a pain.
12168
# So that behaviour is only enabled if SCOABSPATH is set to a
12169
# non-empty value in the environment. Most likely only useful for
12170
# creating official distributions of packages.
12171
# This is a hack until libtool officially supports absolute path
12172
# names for shared libraries.
12173
no_undefined_flag_CXX='${wl}-z,text'
12174
allow_undefined_flag_CXX='${wl}-z,nodefs'
12175
archive_cmds_need_lc_CXX=no
12176
hardcode_shlibpath_var_CXX=no
12177
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12178
hardcode_libdir_separator_CXX=':'
12179
link_all_deplibs_CXX=yes
12180
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12181
runpath_var='LD_RUN_PATH'
12183
case $cc_basename in
12185
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12186
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12189
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12190
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12195
case $cc_basename in
12197
# NonStop-UX NCC 3.20
12198
# FIXME: insert proper C++ library support
12202
# FIXME: insert proper C++ library support
12208
# FIXME: insert proper C++ library support
12212
# FIXME: insert proper C++ library support
12216
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12217
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12218
test "$ld_shlibs_CXX" = no && can_build_shared=no
12224
## There is no encapsulation within the following macros, do not change
12225
## the running order or otherwise move them around unless you know exactly
12226
## what you are doing...
12228
cat > conftest.$ac_ext <<EOF
12232
Foo (void) { a = 0; }
12238
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12239
(eval $ac_compile) 2>&5
12241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242
(exit $ac_status); }; then
12243
# Parse the compiler output and extract the necessary
12244
# objects, libraries and library flags.
12246
# Sentinel used to keep track of whether or not we are before
12247
# the conftest object file.
12248
pre_test_object_deps_done=no
12250
# The `*' in the case matches for architectures that use `case' in
12251
# $output_verbose_cmd can trigger glob expansion during the loop
12252
# eval without this substitution.
12253
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12255
for p in `eval $output_verbose_link_cmd`; do
12259
# Some compilers place space between "-{L,R}" and the path.
12260
# Remove the space.
12261
if test $p = "-L" \
12262
|| test $p = "-R"; then
12269
if test "$pre_test_object_deps_done" = no; then
12272
# Internal compiler library paths should come after those
12273
# provided the user. The postdeps already come after the
12274
# user supplied libs so there is no need to process them.
12275
if test -z "$compiler_lib_search_path_CXX"; then
12276
compiler_lib_search_path_CXX="${prev}${p}"
12278
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12281
# The "-l" case would never come before the object being
12282
# linked, so don't bother handling this case.
12285
if test -z "$postdeps_CXX"; then
12286
postdeps_CXX="${prev}${p}"
12288
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12294
# This assumes that the test object file only shows up
12295
# once in the compiler output.
12296
if test "$p" = "conftest.$objext"; then
12297
pre_test_object_deps_done=yes
12301
if test "$pre_test_object_deps_done" = no; then
12302
if test -z "$predep_objects_CXX"; then
12303
predep_objects_CXX="$p"
12305
predep_objects_CXX="$predep_objects_CXX $p"
12308
if test -z "$postdep_objects_CXX"; then
12309
postdep_objects_CXX="$p"
12311
postdep_objects_CXX="$postdep_objects_CXX $p"
12316
*) ;; # Ignore the rest.
12324
echo "libtool.m4: error: problem compiling CXX test program"
12327
$rm -f confest.$objext
12329
# PORTME: override above test on systems where it is broken
12332
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12333
# hack all around it, let's just trust "g++" to DTRT.
12334
predep_objects_CXX=
12335
postdep_objects_CXX=
12340
case `$CC -V 2>&1 | sed 5q` in
12344
# The more standards-conforming stlport4 library is
12345
# incompatible with the Cstd library. Avoid specifying
12346
# it if it's in CXXFLAGS. Ignore libCrun as
12347
# -library=stlport4 depends on it.
12348
case " $CXX $CXXFLAGS " in
12349
*" -library=stlport4 "*)
12350
solaris_use_stlport4=yes
12353
if test "$solaris_use_stlport4" != yes; then
12354
postdeps_CXX='-library=Cstd -library=Crun'
12361
case $cc_basename in
12363
# The more standards-conforming stlport4 library is
12364
# incompatible with the Cstd library. Avoid specifying
12365
# it if it's in CXXFLAGS. Ignore libCrun as
12366
# -library=stlport4 depends on it.
12367
case " $CXX $CXXFLAGS " in
12368
*" -library=stlport4 "*)
12369
solaris_use_stlport4=yes
12373
# Adding this requires a known-good setup of shared libraries for
12374
# Sun compiler versions before 5.6, else PIC objects from an old
12375
# archive will be linked into the output, leading to subtle bugs.
12376
if test "$solaris_use_stlport4" != yes; then
12377
postdeps_CXX='-library=Cstd -library=Crun'
12385
case " $postdeps_CXX " in
12386
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12389
lt_prog_compiler_wl_CXX=
12390
lt_prog_compiler_pic_CXX=
12391
lt_prog_compiler_static_CXX=
12393
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12394
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12396
# C++ specific cases for pic, static, wl, etc.
12397
if test "$GXX" = yes; then
12398
lt_prog_compiler_wl_CXX='-Wl,'
12399
lt_prog_compiler_static_CXX='-static'
12403
# All AIX code is PIC.
12404
if test "$host_cpu" = ia64; then
12405
# AIX 5 now supports IA64 processor
12406
lt_prog_compiler_static_CXX='-Bstatic'
12410
# FIXME: we need at least 68020 code to build shared libraries, but
12411
# adding the `-m68020' flag to GCC prevents building anything better,
12413
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12415
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12416
# PIC is the default for these OSes.
12418
mingw* | cygwin* | os2* | pw32*)
12419
# This hack is so that the source file can tell whether it is being
12420
# built for inclusion in a dll (and should export symbols for example).
12421
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12422
# (--disable-auto-import) libraries
12423
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12425
darwin* | rhapsody*)
12426
# PIC is the default on this platform
12427
# Common symbols not allowed in MH_DYLIB files
12428
lt_prog_compiler_pic_CXX='-fno-common'
12431
# DJGPP does not support shared libraries at all
12432
lt_prog_compiler_pic_CXX=
12435
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12436
# Instead, we relocate shared libraries at runtime.
12439
if test -d /usr/nec; then
12440
lt_prog_compiler_pic_CXX=-Kconform_pic
12444
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12445
# not for PA HP-UX.
12450
lt_prog_compiler_pic_CXX='-fPIC'
12455
lt_prog_compiler_pic_CXX='-fPIC'
12461
# All AIX code is PIC.
12462
if test "$host_cpu" = ia64; then
12463
# AIX 5 now supports IA64 processor
12464
lt_prog_compiler_static_CXX='-Bstatic'
12466
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12470
case $cc_basename in
12472
# Green Hills C++ Compiler
12473
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12478
# PIC is the default on this platform
12479
# Common symbols not allowed in MH_DYLIB files
12480
case $cc_basename in
12482
lt_prog_compiler_pic_CXX='-qnocommon'
12483
lt_prog_compiler_wl_CXX='-Wl,'
12488
case $cc_basename in
12490
lt_prog_compiler_pic_CXX='-KPIC'
12493
# Green Hills C++ Compiler
12494
lt_prog_compiler_pic_CXX='-pic'
12500
freebsd* | dragonfly*)
12501
# FreeBSD uses GNU C++
12503
hpux9* | hpux10* | hpux11*)
12504
case $cc_basename in
12506
lt_prog_compiler_wl_CXX='-Wl,'
12507
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12508
if test "$host_cpu" != ia64; then
12509
lt_prog_compiler_pic_CXX='+Z'
12513
lt_prog_compiler_wl_CXX='-Wl,'
12514
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12520
lt_prog_compiler_pic_CXX='+Z'
12529
# This is c89, which is MS Visual C++ (no shared libs)
12530
# Anyone wants to do a port?
12532
irix5* | irix6* | nonstopux*)
12533
case $cc_basename in
12535
lt_prog_compiler_wl_CXX='-Wl,'
12536
lt_prog_compiler_static_CXX='-non_shared'
12537
# CC pic flag -KPIC is the default.
12543
linux* | k*bsd*-gnu)
12544
case $cc_basename in
12547
lt_prog_compiler_wl_CXX='--backend -Wl,'
12548
lt_prog_compiler_pic_CXX='-fPIC'
12552
lt_prog_compiler_wl_CXX='-Wl,'
12553
lt_prog_compiler_pic_CXX='-KPIC'
12554
lt_prog_compiler_static_CXX='-static'
12557
# Portland Group C++ compiler.
12558
lt_prog_compiler_wl_CXX='-Wl,'
12559
lt_prog_compiler_pic_CXX='-fpic'
12560
lt_prog_compiler_static_CXX='-Bstatic'
12564
# Make sure the PIC flag is empty. It appears that all Alpha
12565
# Linux and Compaq Tru64 Unix objects are PIC.
12566
lt_prog_compiler_pic_CXX=
12567
lt_prog_compiler_static_CXX='-non_shared'
12570
case `$CC -V 2>&1 | sed 5q` in
12573
lt_prog_compiler_pic_CXX='-KPIC'
12574
lt_prog_compiler_static_CXX='-Bstatic'
12575
lt_prog_compiler_wl_CXX='-Qoption ld '
12586
case $cc_basename in
12588
lt_prog_compiler_pic_CXX='-W c,exportall'
12594
netbsd* | netbsdelf*-gnu)
12596
osf3* | osf4* | osf5*)
12597
case $cc_basename in
12599
lt_prog_compiler_wl_CXX='--backend -Wl,'
12602
# Rational C++ 2.4.1
12603
lt_prog_compiler_pic_CXX='-pic'
12606
# Digital/Compaq C++
12607
lt_prog_compiler_wl_CXX='-Wl,'
12608
# Make sure the PIC flag is empty. It appears that all Alpha
12609
# Linux and Compaq Tru64 Unix objects are PIC.
12610
lt_prog_compiler_pic_CXX=
12611
lt_prog_compiler_static_CXX='-non_shared'
12620
case $cc_basename in
12622
# Sun C++ 4.2, 5.x and Centerline C++
12623
lt_prog_compiler_pic_CXX='-KPIC'
12624
lt_prog_compiler_static_CXX='-Bstatic'
12625
lt_prog_compiler_wl_CXX='-Qoption ld '
12628
# Green Hills C++ Compiler
12629
lt_prog_compiler_pic_CXX='-PIC'
12636
case $cc_basename in
12639
lt_prog_compiler_pic_CXX='-pic'
12640
lt_prog_compiler_static_CXX='-Bstatic'
12644
lt_prog_compiler_pic_CXX='-pic'
12651
case $cc_basename in
12653
# NonStop-UX NCC 3.20
12654
lt_prog_compiler_pic_CXX='-KPIC'
12660
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12661
case $cc_basename in
12663
lt_prog_compiler_wl_CXX='-Wl,'
12664
lt_prog_compiler_pic_CXX='-KPIC'
12665
lt_prog_compiler_static_CXX='-Bstatic'
12672
lt_prog_compiler_can_build_shared_CXX=no
12677
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12678
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12681
# Check to make sure the PIC flag actually works.
12683
if test -n "$lt_prog_compiler_pic_CXX"; then
12685
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12686
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12687
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12688
echo $ECHO_N "(cached) $ECHO_C" >&6
12690
lt_prog_compiler_pic_works_CXX=no
12691
ac_outfile=conftest.$ac_objext
12692
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12693
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12694
# Insert the option either (1) after the last *FLAGS variable, or
12695
# (2) before a word containing "conftest.", or (3) at the end.
12696
# Note that $ac_compile itself does not contain backslashes and begins
12697
# with a dollar sign (not a hyphen), so the echo should work correctly.
12698
# The option is referenced via a variable to avoid confusing sed.
12699
lt_compile=`echo "$ac_compile" | $SED \
12700
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12701
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12702
-e 's:$: $lt_compiler_flag:'`
12703
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12704
(eval "$lt_compile" 2>conftest.err)
12706
cat conftest.err >&5
12707
echo "$as_me:__oline__: \$? = $ac_status" >&5
12708
if (exit $ac_status) && test -s "$ac_outfile"; then
12709
# The compiler can only warn and ignore the option if not recognized
12710
# So say no if there are warnings other than the usual output.
12711
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12712
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12713
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12714
lt_prog_compiler_pic_works_CXX=yes
12720
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12721
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12723
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12724
case $lt_prog_compiler_pic_CXX in
12726
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12729
lt_prog_compiler_pic_CXX=
12730
lt_prog_compiler_can_build_shared_CXX=no
12735
# For platforms which do not support PIC, -DPIC is meaningless:
12737
lt_prog_compiler_pic_CXX=
12740
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12745
# Check to make sure the static flag actually works.
12747
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12748
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12749
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12750
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12751
echo $ECHO_N "(cached) $ECHO_C" >&6
12753
lt_prog_compiler_static_works_CXX=no
12754
save_LDFLAGS="$LDFLAGS"
12755
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12756
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12757
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12758
# The linker can only warn and ignore the option if not recognized
12759
# So say no if there are warnings
12760
if test -s conftest.err; then
12761
# Append any errors to the config.log.
12762
cat conftest.err 1>&5
12763
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12764
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12765
if diff conftest.exp conftest.er2 >/dev/null; then
12766
lt_prog_compiler_static_works_CXX=yes
12769
lt_prog_compiler_static_works_CXX=yes
12773
LDFLAGS="$save_LDFLAGS"
12776
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12777
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12779
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12782
lt_prog_compiler_static_CXX=
12786
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12787
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12788
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12789
echo $ECHO_N "(cached) $ECHO_C" >&6
12791
lt_cv_prog_compiler_c_o_CXX=no
12792
$rm -r conftest 2>/dev/null
12796
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12798
lt_compiler_flag="-o out/conftest2.$ac_objext"
12799
# Insert the option either (1) after the last *FLAGS variable, or
12800
# (2) before a word containing "conftest.", or (3) at the end.
12801
# Note that $ac_compile itself does not contain backslashes and begins
12802
# with a dollar sign (not a hyphen), so the echo should work correctly.
12803
lt_compile=`echo "$ac_compile" | $SED \
12804
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12805
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12806
-e 's:$: $lt_compiler_flag:'`
12807
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12808
(eval "$lt_compile" 2>out/conftest.err)
12810
cat out/conftest.err >&5
12811
echo "$as_me:__oline__: \$? = $ac_status" >&5
12812
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12814
# The compiler can only warn and ignore the option if not recognized
12815
# So say no if there are warnings
12816
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12817
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12818
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12819
lt_cv_prog_compiler_c_o_CXX=yes
12824
# SGI C++ compiler will create directory out/ii_files/ for
12825
# template instantiation
12826
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12827
$rm out/* && rmdir out
12833
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12834
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12837
hard_links="nottested"
12838
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12839
# do not overwrite the value of need_locks provided by the user
12840
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12841
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12844
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12846
ln conftest.a conftest.b 2>&5 || hard_links=no
12847
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12848
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12849
echo "${ECHO_T}$hard_links" >&6; }
12850
if test "$hard_links" = no; then
12851
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12852
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12859
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12860
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12862
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12865
# If we're using GNU nm, then we don't want the "-C" option.
12866
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12867
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12868
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12870
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12874
export_symbols_cmds_CXX="$ltdll_cmds"
12877
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12879
linux* | k*bsd*-gnu)
12880
link_all_deplibs_CXX=no
12883
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12887
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12888
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12889
test "$ld_shlibs_CXX" = no && can_build_shared=no
12892
# Do we need to explicitly link libc?
12894
case "x$archive_cmds_need_lc_CXX" in
12896
# Assume -lc should be added
12897
archive_cmds_need_lc_CXX=yes
12899
if test "$enable_shared" = yes && test "$GCC" = yes; then
12900
case $archive_cmds_CXX in
12902
# FIXME: we may have to deal with multi-command sequences.
12905
# Test whether the compiler implicitly links with -lc since on some
12906
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12907
# to ld, don't add -lc before -lgcc.
12908
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12909
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12911
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12913
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12914
(eval $ac_compile) 2>&5
12916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917
(exit $ac_status); } 2>conftest.err; then
12920
libobjs=conftest.$ac_objext
12922
wl=$lt_prog_compiler_wl_CXX
12923
pic_flag=$lt_prog_compiler_pic_CXX
12929
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12930
allow_undefined_flag_CXX=
12931
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12932
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935
(exit $ac_status); }
12937
archive_cmds_need_lc_CXX=no
12939
archive_cmds_need_lc_CXX=yes
12941
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12943
cat conftest.err 1>&5
12946
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12947
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12954
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12955
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12956
library_names_spec=
12957
libname_spec='lib$name'
12961
postuninstall_cmds=
12965
shlibpath_overrides_runpath=unknown
12967
dynamic_linker="$host_os ld.so"
12968
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12970
need_lib_prefix=unknown
12971
hardcode_into_libs=no
12973
# when you set need_version to no, make sure it does not cause -set_version
12974
# flags to be left without arguments
12975
need_version=unknown
12980
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12981
shlibpath_var=LIBPATH
12983
# AIX 3 has no versioning support, so we append a major version to the name.
12984
soname_spec='${libname}${release}${shared_ext}$major'
12991
hardcode_into_libs=yes
12992
if test "$host_cpu" = ia64; then
12993
# AIX 5 supports IA64
12994
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12995
shlibpath_var=LD_LIBRARY_PATH
12997
# With GCC up to 2.95.x, collect2 would create an import file
12998
# for dependence libraries. The import file would start with
12999
# the line `#! .'. This would cause the generated library to
13000
# depend on `.', always an invalid library. This was fixed in
13001
# development snapshots of GCC prior to 3.0.
13003
aix4 | aix4.[01] | aix4.[01].*)
13004
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13006
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13009
can_build_shared=no
13013
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13014
# soname into executable. Probably we can add versioning support to
13015
# collect2, so additional links can be useful in future.
13016
if test "$aix_use_runtimelinking" = yes; then
13017
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13018
# instead of lib<name>.a to let people know that these are not
13019
# typical AIX shared libraries.
13020
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13022
# We preserve .a as extension for shared libraries through AIX4.2
13023
# and later when we are not doing run time linking.
13024
library_names_spec='${libname}${release}.a $libname.a'
13025
soname_spec='${libname}${release}${shared_ext}$major'
13027
shlibpath_var=LIBPATH
13032
library_names_spec='$libname.ixlibrary $libname.a'
13033
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13034
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'
13038
library_names_spec='${libname}${shared_ext}'
13039
dynamic_linker="$host_os ld.so"
13040
shlibpath_var=LIBRARY_PATH
13046
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13047
soname_spec='${libname}${release}${shared_ext}$major'
13048
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13049
shlibpath_var=LD_LIBRARY_PATH
13050
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13051
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13052
# the default ld.so.conf also contains /usr/contrib/lib and
13053
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13054
# libtool to hard-code these into programs
13057
cygwin* | mingw* | pw32*)
13058
version_type=windows
13063
case $GCC,$host_os in
13064
yes,cygwin* | yes,mingw* | yes,pw32*)
13065
library_names_spec='$libname.dll.a'
13066
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13067
postinstall_cmds='base_file=`basename \${file}`~
13068
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13069
dldir=$destdir/`dirname \$dlpath`~
13070
test -d \$dldir || mkdir -p \$dldir~
13071
$install_prog $dir/$dlname \$dldir/$dlname~
13072
chmod a+x \$dldir/$dlname'
13073
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13074
dlpath=$dir/\$dldll~
13076
shlibpath_overrides_runpath=yes
13080
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13081
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13082
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13085
# MinGW DLLs use traditional 'lib' prefix
13086
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13087
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13088
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13089
# It is most probably a Windows format PATH printed by
13090
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13091
# path with ; separators, and with drive letters. We can handle the
13092
# drive letters (cygwin fileutils understands them), so leave them,
13093
# especially as we might pass files found there to a mingw objdump,
13094
# which wouldn't understand a cygwinified path. Ahh.
13095
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13097
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13101
# pw32 DLLs use 'pw' prefix rather than 'lib'
13102
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13108
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13111
dynamic_linker='Win32 ld.exe'
13112
# FIXME: first we should search . and the directory the executable is in
13116
darwin* | rhapsody*)
13117
dynamic_linker="$host_os dyld"
13118
version_type=darwin
13121
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13122
soname_spec='${libname}${release}${major}$shared_ext'
13123
shlibpath_overrides_runpath=yes
13124
shlibpath_var=DYLD_LIBRARY_PATH
13125
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13127
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13134
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13135
soname_spec='${libname}${release}${shared_ext}$major'
13136
shlibpath_var=LD_LIBRARY_PATH
13143
freebsd* | dragonfly*)
13144
# DragonFly does not have aout. When/if they implement a new
13145
# versioning mechanism, adjust this.
13146
if test -x /usr/bin/objformat; then
13147
objformat=`/usr/bin/objformat`
13150
freebsd[123]*) objformat=aout ;;
13151
*) objformat=elf ;;
13154
version_type=freebsd-$objformat
13155
case $version_type in
13157
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13162
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13166
shlibpath_var=LD_LIBRARY_PATH
13169
shlibpath_overrides_runpath=yes
13171
freebsd3.[01]* | freebsdelf3.[01]*)
13172
shlibpath_overrides_runpath=yes
13173
hardcode_into_libs=yes
13175
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13176
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13177
shlibpath_overrides_runpath=no
13178
hardcode_into_libs=yes
13180
*) # from 4.6 on, and DragonFly
13181
shlibpath_overrides_runpath=yes
13182
hardcode_into_libs=yes
13191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13192
soname_spec='${libname}${release}${shared_ext}$major'
13193
shlibpath_var=LD_LIBRARY_PATH
13194
hardcode_into_libs=yes
13197
hpux9* | hpux10* | hpux11*)
13198
# Give a soname corresponding to the major version so that dld.sl refuses to
13199
# link against other versions.
13206
hardcode_into_libs=yes
13207
dynamic_linker="$host_os dld.so"
13208
shlibpath_var=LD_LIBRARY_PATH
13209
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13210
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13211
soname_spec='${libname}${release}${shared_ext}$major'
13212
if test "X$HPUX_IA64_MODE" = X32; then
13213
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13215
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13217
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13221
hardcode_into_libs=yes
13222
dynamic_linker="$host_os dld.sl"
13223
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13224
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13225
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13226
soname_spec='${libname}${release}${shared_ext}$major'
13227
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13228
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13232
dynamic_linker="$host_os dld.sl"
13233
shlibpath_var=SHLIB_PATH
13234
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13236
soname_spec='${libname}${release}${shared_ext}$major'
13239
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13240
postinstall_cmds='chmod 555 $lib'
13247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13248
soname_spec='${libname}${release}${shared_ext}$major'
13249
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13250
shlibpath_var=LD_LIBRARY_PATH
13251
shlibpath_overrides_runpath=no
13252
hardcode_into_libs=yes
13255
irix5* | irix6* | nonstopux*)
13257
nonstopux*) version_type=nonstopux ;;
13259
if test "$lt_cv_prog_gnu_ld" = yes; then
13267
soname_spec='${libname}${release}${shared_ext}$major'
13268
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13270
irix5* | nonstopux*)
13271
libsuff= shlibsuff=
13274
case $LD in # libtool.m4 will add one of these switches to LD
13275
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13276
libsuff= shlibsuff= libmagic=32-bit;;
13277
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13278
libsuff=32 shlibsuff=N32 libmagic=N32;;
13279
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13280
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13281
*) libsuff= shlibsuff= libmagic=never-match;;
13285
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13286
shlibpath_overrides_runpath=no
13287
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13288
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13289
hardcode_into_libs=yes
13292
# No shared lib support for Linux oldld, aout, or coff.
13293
linux*oldld* | linux*aout* | linux*coff*)
13297
# This must be Linux ELF.
13298
linux* | k*bsd*-gnu)
13302
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13303
soname_spec='${libname}${release}${shared_ext}$major'
13304
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13305
shlibpath_var=LD_LIBRARY_PATH
13306
shlibpath_overrides_runpath=no
13307
# This implies no fast_install, which is unacceptable.
13308
# Some rework will be needed to allow for fast_install
13309
# before this can be enabled.
13310
hardcode_into_libs=yes
13312
# Append ld.so.conf contents to the search path
13313
if test -f /etc/ld.so.conf; then
13314
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' ' '`
13315
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13318
# We used to test for /lib/ld.so.1 and disable shared libraries on
13319
# powerpc, because MkLinux only supported shared libraries with the
13320
# GNU dynamic linker. Since this was broken with cross compilers,
13321
# most powerpc-linux boxes support dynamic linking these days and
13322
# people can always --disable-shared, the test was removed, and we
13323
# assume the GNU/Linux dynamic linker is in use.
13324
dynamic_linker='GNU/Linux ld.so'
13331
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13332
soname_spec='${libname}${release}${shared_ext}$major'
13333
shlibpath_var=LD_LIBRARY_PATH
13334
shlibpath_overrides_runpath=no
13335
hardcode_into_libs=yes
13336
dynamic_linker='NetBSD ld.elf_so'
13343
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13344
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13345
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13346
dynamic_linker='NetBSD (a.out) ld.so'
13348
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13349
soname_spec='${libname}${release}${shared_ext}$major'
13350
dynamic_linker='NetBSD ld.elf_so'
13352
shlibpath_var=LD_LIBRARY_PATH
13353
shlibpath_overrides_runpath=yes
13354
hardcode_into_libs=yes
13359
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13360
shlibpath_var=LD_LIBRARY_PATH
13361
shlibpath_overrides_runpath=yes
13368
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13369
soname_spec='${libname}${release}${shared_ext}$major'
13370
shlibpath_var=LD_LIBRARY_PATH
13371
shlibpath_overrides_runpath=yes
13376
sys_lib_dlsearch_path_spec="/usr/lib"
13378
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13380
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13381
*) need_version=no ;;
13383
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13384
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13385
shlibpath_var=LD_LIBRARY_PATH
13386
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13388
openbsd2.[89] | openbsd2.[89].*)
13389
shlibpath_overrides_runpath=no
13392
shlibpath_overrides_runpath=yes
13396
shlibpath_overrides_runpath=yes
13401
libname_spec='$name'
13404
library_names_spec='$libname${shared_ext} $libname.a'
13405
dynamic_linker='OS/2 ld.exe'
13406
shlibpath_var=LIBPATH
13409
osf3* | osf4* | osf5*)
13413
soname_spec='${libname}${release}${shared_ext}$major'
13414
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13415
shlibpath_var=LD_LIBRARY_PATH
13416
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13417
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13428
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13429
soname_spec='${libname}${release}${shared_ext}$major'
13430
shlibpath_var=LD_LIBRARY_PATH
13431
shlibpath_overrides_runpath=yes
13432
hardcode_into_libs=yes
13433
# ldd complains unless libraries are executable
13434
postinstall_cmds='chmod +x $lib'
13439
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13440
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13441
shlibpath_var=LD_LIBRARY_PATH
13442
shlibpath_overrides_runpath=yes
13443
if test "$with_gnu_ld" = yes; then
13451
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13452
soname_spec='${libname}${release}${shared_ext}$major'
13453
shlibpath_var=LD_LIBRARY_PATH
13454
case $host_vendor in
13456
shlibpath_overrides_runpath=no
13458
export_dynamic_flag_spec='${wl}-Blargedynsym'
13459
runpath_var=LD_RUN_PATH
13467
shlibpath_overrides_runpath=no
13468
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13474
if test -d /usr/nec ;then
13476
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13477
soname_spec='$libname${shared_ext}.$major'
13478
shlibpath_var=LD_LIBRARY_PATH
13482
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13483
version_type=freebsd-elf
13486
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13487
soname_spec='${libname}${release}${shared_ext}$major'
13488
shlibpath_var=LD_LIBRARY_PATH
13489
hardcode_into_libs=yes
13490
if test "$with_gnu_ld" = yes; then
13491
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13492
shlibpath_overrides_runpath=no
13494
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13495
shlibpath_overrides_runpath=yes
13498
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13502
sys_lib_dlsearch_path_spec='/usr/lib'
13507
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13508
soname_spec='${libname}${release}${shared_ext}$major'
13509
shlibpath_var=LD_LIBRARY_PATH
13516
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13517
echo "${ECHO_T}$dynamic_linker" >&6; }
13518
test "$dynamic_linker" = no && can_build_shared=no
13520
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13521
if test "$GCC" = yes; then
13522
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13525
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13526
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13527
hardcode_action_CXX=
13528
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13529
test -n "$runpath_var_CXX" || \
13530
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13532
# We can hardcode non-existant directories.
13533
if test "$hardcode_direct_CXX" != no &&
13534
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13535
# have to relink, otherwise we might link with an installed library
13536
# when we should be linking with a yet-to-be-installed one
13537
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13538
test "$hardcode_minus_L_CXX" != no; then
13539
# Linking always hardcodes the temporary library directory.
13540
hardcode_action_CXX=relink
13542
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13543
hardcode_action_CXX=immediate
13546
# We cannot hardcode anything, or else we can only hardcode existing
13548
hardcode_action_CXX=unsupported
13550
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13551
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13553
if test "$hardcode_action_CXX" = relink; then
13554
# Fast installation is not supported
13555
enable_fast_install=no
13556
elif test "$shlibpath_overrides_runpath" = yes ||
13557
test "$enable_shared" = no; then
13558
# Fast installation is not necessary
13559
enable_fast_install=needless
13563
# The else clause should only fire when bootstrapping the
13564
# libtool distribution, otherwise you forgot to ship ltmain.sh
13565
# with your package, and you will get complaints that there are
13566
# no rules to generate ltmain.sh.
13567
if test -f "$ltmain"; then
13568
# See if we are running on zsh, and set the options which allow our commands through
13569
# without removal of \ escapes.
13570
if test -n "${ZSH_VERSION+set}" ; then
13571
setopt NO_GLOB_SUBST
13573
# Now quote all the things that may contain metacharacters while being
13574
# careful not to overquote the AC_SUBSTed values. We take copies of the
13575
# variables and quote the copies for generation of the libtool script.
13576
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13578
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13579
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13580
deplibs_check_method reload_flag reload_cmds need_locks \
13581
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13582
lt_cv_sys_global_symbol_to_c_name_address \
13583
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13584
old_postinstall_cmds old_postuninstall_cmds \
13588
lt_prog_compiler_wl_CXX \
13589
lt_prog_compiler_pic_CXX \
13590
lt_prog_compiler_static_CXX \
13591
lt_prog_compiler_no_builtin_flag_CXX \
13592
export_dynamic_flag_spec_CXX \
13593
thread_safe_flag_spec_CXX \
13594
whole_archive_flag_spec_CXX \
13595
enable_shared_with_static_runtimes_CXX \
13596
old_archive_cmds_CXX \
13597
old_archive_from_new_cmds_CXX \
13598
predep_objects_CXX \
13599
postdep_objects_CXX \
13602
compiler_lib_search_path_CXX \
13604
archive_expsym_cmds_CXX \
13605
postinstall_cmds_CXX \
13606
postuninstall_cmds_CXX \
13607
old_archive_from_expsyms_cmds_CXX \
13608
allow_undefined_flag_CXX \
13609
no_undefined_flag_CXX \
13610
export_symbols_cmds_CXX \
13611
hardcode_libdir_flag_spec_CXX \
13612
hardcode_libdir_flag_spec_ld_CXX \
13613
hardcode_libdir_separator_CXX \
13614
hardcode_automatic_CXX \
13616
module_expsym_cmds_CXX \
13617
lt_cv_prog_compiler_c_o_CXX \
13618
fix_srcfile_path_CXX \
13619
exclude_expsyms_CXX \
13620
include_expsyms_CXX; do
13623
old_archive_cmds_CXX | \
13624
old_archive_from_new_cmds_CXX | \
13625
archive_cmds_CXX | \
13626
archive_expsym_cmds_CXX | \
13627
module_cmds_CXX | \
13628
module_expsym_cmds_CXX | \
13629
old_archive_from_expsyms_cmds_CXX | \
13630
export_symbols_cmds_CXX | \
13631
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13632
postinstall_cmds | postuninstall_cmds | \
13633
old_postinstall_cmds | old_postuninstall_cmds | \
13634
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13635
# Double-quote double-evaled strings.
13636
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13639
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13645
*'\$0 --fallback-echo"')
13646
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13652
cat <<__EOF__ >> "$cfgfile"
13653
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13655
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13657
# Shell to use when invoking shell scripts.
13660
# Whether or not to build shared libraries.
13661
build_libtool_libs=$enable_shared
13663
# Whether or not to build static libraries.
13664
build_old_libs=$enable_static
13666
# Whether or not to add -lc for building shared libraries.
13667
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13669
# Whether or not to disallow shared libs when runtime libs are static
13670
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13672
# Whether or not to optimize for fast installation.
13673
fast_install=$enable_fast_install
13676
host_alias=$host_alias
13680
# The build system.
13681
build_alias=$build_alias
13685
# An echo program that does not interpret backslashes.
13690
AR_FLAGS=$lt_AR_FLAGS
13695
# LTCC compiler flags.
13696
LTCFLAGS=$lt_LTCFLAGS
13698
# A language-specific compiler.
13699
CC=$lt_compiler_CXX
13701
# Is the compiler the GNU C compiler?
13707
# The linker used to build libraries.
13710
# Whether we need hard or soft links.
13713
# A BSD-compatible nm program.
13716
# A symbol stripping program
13719
# Used to examine libraries when file_magic_cmd begins "file"
13720
MAGIC_CMD=$MAGIC_CMD
13722
# Used on cygwin: DLL creation program.
13725
# Used on cygwin: object dumper.
13728
# Used on cygwin: assembler.
13731
# The name of the directory that contains temporary libtool files.
13734
# How to create reloadable object files.
13735
reload_flag=$lt_reload_flag
13736
reload_cmds=$lt_reload_cmds
13738
# How to pass a linker flag through the compiler.
13739
wl=$lt_lt_prog_compiler_wl_CXX
13741
# Object file suffix (normally "o").
13742
objext="$ac_objext"
13744
# Old archive suffix (normally "a").
13747
# Shared library suffix (normally ".so").
13748
shrext_cmds='$shrext_cmds'
13750
# Executable file suffix (normally "").
13753
# Additional compiler flags for building library objects.
13754
pic_flag=$lt_lt_prog_compiler_pic_CXX
13757
# What is the maximum length of a command?
13758
max_cmd_len=$lt_cv_sys_max_cmd_len
13760
# Does compiler simultaneously support -c and -o options?
13761
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13763
# Must we lock files when doing compilation?
13764
need_locks=$lt_need_locks
13766
# Do we need the lib prefix for modules?
13767
need_lib_prefix=$need_lib_prefix
13769
# Do we need a version for libraries?
13770
need_version=$need_version
13772
# Whether dlopen is supported.
13773
dlopen_support=$enable_dlopen
13775
# Whether dlopen of programs is supported.
13776
dlopen_self=$enable_dlopen_self
13778
# Whether dlopen of statically linked programs is supported.
13779
dlopen_self_static=$enable_dlopen_self_static
13781
# Compiler flag to prevent dynamic linking.
13782
link_static_flag=$lt_lt_prog_compiler_static_CXX
13784
# Compiler flag to turn off builtin functions.
13785
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13787
# Compiler flag to allow reflexive dlopens.
13788
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13790
# Compiler flag to generate shared objects directly from archives.
13791
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13793
# Compiler flag to generate thread-safe objects.
13794
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13796
# Library versioning type.
13797
version_type=$version_type
13799
# Format of library name prefix.
13800
libname_spec=$lt_libname_spec
13802
# List of archive names. First name is the real one, the rest are links.
13803
# The last name is the one that the linker finds with -lNAME.
13804
library_names_spec=$lt_library_names_spec
13806
# The coded name of the library, if different from the real name.
13807
soname_spec=$lt_soname_spec
13809
# Commands used to build and install an old-style archive.
13811
old_archive_cmds=$lt_old_archive_cmds_CXX
13812
old_postinstall_cmds=$lt_old_postinstall_cmds
13813
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13815
# Create an old-style archive from a shared archive.
13816
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13818
# Create a temporary old-style archive to link instead of a shared archive.
13819
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13821
# Commands used to build and install a shared archive.
13822
archive_cmds=$lt_archive_cmds_CXX
13823
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13824
postinstall_cmds=$lt_postinstall_cmds
13825
postuninstall_cmds=$lt_postuninstall_cmds
13827
# Commands used to build a loadable module (assumed same as above if empty)
13828
module_cmds=$lt_module_cmds_CXX
13829
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13831
# Commands to strip libraries.
13832
old_striplib=$lt_old_striplib
13833
striplib=$lt_striplib
13835
# Dependencies to place before the objects being linked to create a
13837
predep_objects=$lt_predep_objects_CXX
13839
# Dependencies to place after the objects being linked to create a
13841
postdep_objects=$lt_postdep_objects_CXX
13843
# Dependencies to place before the objects being linked to create a
13845
predeps=$lt_predeps_CXX
13847
# Dependencies to place after the objects being linked to create a
13849
postdeps=$lt_postdeps_CXX
13851
# The library search path used internally by the compiler when linking
13852
# a shared library.
13853
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13855
# Method to check whether dependent libraries are shared objects.
13856
deplibs_check_method=$lt_deplibs_check_method
13858
# Command to use when deplibs_check_method == file_magic.
13859
file_magic_cmd=$lt_file_magic_cmd
13861
# Flag that allows shared libraries with undefined symbols to be built.
13862
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13864
# Flag that forces no undefined symbols.
13865
no_undefined_flag=$lt_no_undefined_flag_CXX
13867
# Commands used to finish a libtool library installation in a directory.
13868
finish_cmds=$lt_finish_cmds
13870
# Same as above, but a single script fragment to be evaled but not shown.
13871
finish_eval=$lt_finish_eval
13873
# Take the output of nm and produce a listing of raw symbols and C names.
13874
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13876
# Transform the output of nm in a proper C declaration
13877
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13879
# Transform the output of nm in a C name address pair
13880
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13882
# This is the shared library runtime path variable.
13883
runpath_var=$runpath_var
13885
# This is the shared library path variable.
13886
shlibpath_var=$shlibpath_var
13888
# Is shlibpath searched before the hard-coded library search path?
13889
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13891
# How to hardcode a shared library path into an executable.
13892
hardcode_action=$hardcode_action_CXX
13894
# Whether we should hardcode library paths into libraries.
13895
hardcode_into_libs=$hardcode_into_libs
13897
# Flag to hardcode \$libdir into a binary during linking.
13898
# This must work even if \$libdir does not exist.
13899
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13901
# If ld is used when linking, flag to hardcode \$libdir into
13902
# a binary during linking. This must work even if \$libdir does
13904
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13906
# Whether we need a single -rpath flag with a separated argument.
13907
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13909
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13910
# resulting binary.
13911
hardcode_direct=$hardcode_direct_CXX
13913
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13914
# resulting binary.
13915
hardcode_minus_L=$hardcode_minus_L_CXX
13917
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13918
# the resulting binary.
13919
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13921
# Set to yes if building a shared library automatically hardcodes DIR into the library
13922
# and all subsequent libraries and executables linked against it.
13923
hardcode_automatic=$hardcode_automatic_CXX
13925
# Variables whose values should be saved in libtool wrapper scripts and
13926
# restored at relink time.
13927
variables_saved_for_relink="$variables_saved_for_relink"
13929
# Whether libtool must link a program against all its dependency libraries.
13930
link_all_deplibs=$link_all_deplibs_CXX
13932
# Compile-time system search path for libraries
13933
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13935
# Run-time system search path for libraries
13936
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13938
# Fix the shell variable \$srcfile for the compiler.
13939
fix_srcfile_path=$lt_fix_srcfile_path
13941
# Set to yes if exported symbols are required.
13942
always_export_symbols=$always_export_symbols_CXX
13944
# The commands to list exported symbols.
13945
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13947
# The commands to extract the exported symbol list from a shared archive.
13948
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13950
# Symbols that should not be listed in the preloaded symbols.
13951
exclude_expsyms=$lt_exclude_expsyms_CXX
13953
# Symbols that must always be exported.
13954
include_expsyms=$lt_include_expsyms_CXX
13956
# ### END LIBTOOL TAG CONFIG: $tagname
13962
# If there is no Makefile yet, we rely on a make rule to execute
13963
# `config.status --recheck' to rerun these tests and create the
13964
# libtool script then.
13965
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13966
if test -f "$ltmain_in"; then
13967
test -f Makefile && make "$ltmain"
13973
ac_cpp='$CPP $CPPFLAGS'
13974
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13975
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13976
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13982
with_gnu_ldcxx=$with_gnu_ld
13983
with_gnu_ld=$lt_save_with_gnu_ld
13984
lt_cv_path_LDCXX=$lt_cv_path_LD
13985
lt_cv_path_LD=$lt_save_path_LD
13986
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13987
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13995
if test -n "$F77" && test "X$F77" != "Xno"; then
13998
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13999
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14000
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14003
archive_cmds_need_lc_F77=no
14004
allow_undefined_flag_F77=
14005
always_export_symbols_F77=no
14006
archive_expsym_cmds_F77=
14007
export_dynamic_flag_spec_F77=
14008
hardcode_direct_F77=no
14009
hardcode_libdir_flag_spec_F77=
14010
hardcode_libdir_flag_spec_ld_F77=
14011
hardcode_libdir_separator_F77=
14012
hardcode_minus_L_F77=no
14013
hardcode_automatic_F77=no
14015
module_expsym_cmds_F77=
14016
link_all_deplibs_F77=unknown
14017
old_archive_cmds_F77=$old_archive_cmds
14018
no_undefined_flag_F77=
14019
whole_archive_flag_spec_F77=
14020
enable_shared_with_static_runtimes_F77=no
14022
# Source file extension for f77 test sources.
14025
# Object file extension for compiled f77 test sources.
14029
# Code to be used in simple compile tests
14030
lt_simple_compile_test_code="\
14036
# Code to be used in simple link tests
14037
lt_simple_link_test_code="\
14042
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14044
# If no C compiler was specified, use CC.
14047
# If no C compiler flags were specified, use CFLAGS.
14048
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14050
# Allow CC to be a program name with arguments.
14054
# save warnings/boilerplate of simple test code
14055
ac_outfile=conftest.$ac_objext
14056
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14057
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14058
_lt_compiler_boilerplate=`cat conftest.err`
14061
ac_outfile=conftest.$ac_objext
14062
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14063
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14064
_lt_linker_boilerplate=`cat conftest.err`
14068
# Allow CC to be a program name with arguments.
14073
for cc_temp in $compiler""; do
14075
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14076
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14081
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14084
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14085
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14086
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14087
echo "${ECHO_T}$can_build_shared" >&6; }
14089
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14090
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14091
test "$can_build_shared" = "no" && enable_shared=no
14093
# On AIX, shared libraries and static libraries use the same namespace, and
14094
# are all built from PIC.
14097
test "$enable_shared" = yes && enable_static=no
14098
if test -n "$RANLIB"; then
14099
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14100
postinstall_cmds='$RANLIB $lib'
14104
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14105
test "$enable_shared" = yes && enable_static=no
14109
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14110
echo "${ECHO_T}$enable_shared" >&6; }
14112
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14113
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14114
# Make sure either enable_shared or enable_static is yes.
14115
test "$enable_shared" = yes || enable_static=yes
14116
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14117
echo "${ECHO_T}$enable_static" >&6; }
14122
lt_prog_compiler_wl_F77=
14123
lt_prog_compiler_pic_F77=
14124
lt_prog_compiler_static_F77=
14126
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14127
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14129
if test "$GCC" = yes; then
14130
lt_prog_compiler_wl_F77='-Wl,'
14131
lt_prog_compiler_static_F77='-static'
14135
# All AIX code is PIC.
14136
if test "$host_cpu" = ia64; then
14137
# AIX 5 now supports IA64 processor
14138
lt_prog_compiler_static_F77='-Bstatic'
14143
# FIXME: we need at least 68020 code to build shared libraries, but
14144
# adding the `-m68020' flag to GCC prevents building anything better,
14146
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14149
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14150
# PIC is the default for these OSes.
14153
mingw* | cygwin* | pw32* | os2*)
14154
# This hack is so that the source file can tell whether it is being
14155
# built for inclusion in a dll (and should export symbols for example).
14156
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14157
# (--disable-auto-import) libraries
14158
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14161
darwin* | rhapsody*)
14162
# PIC is the default on this platform
14163
# Common symbols not allowed in MH_DYLIB files
14164
lt_prog_compiler_pic_F77='-fno-common'
14168
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14169
# Instead, we relocate shared libraries at runtime.
14173
# Just because we use GCC doesn't mean we suddenly get shared libraries
14174
# on systems that don't support them.
14175
lt_prog_compiler_can_build_shared_F77=no
14180
if test -d /usr/nec; then
14181
lt_prog_compiler_pic_F77=-Kconform_pic
14186
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14187
# not for PA HP-UX.
14193
lt_prog_compiler_pic_F77='-fPIC'
14199
lt_prog_compiler_pic_F77='-fPIC'
14203
# PORTME Check for flag to pass linker flags through the system compiler.
14206
lt_prog_compiler_wl_F77='-Wl,'
14207
if test "$host_cpu" = ia64; then
14208
# AIX 5 now supports IA64 processor
14209
lt_prog_compiler_static_F77='-Bstatic'
14211
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14215
# PIC is the default on this platform
14216
# Common symbols not allowed in MH_DYLIB files
14217
case $cc_basename in
14219
lt_prog_compiler_pic_F77='-qnocommon'
14220
lt_prog_compiler_wl_F77='-Wl,'
14225
mingw* | cygwin* | pw32* | os2*)
14226
# This hack is so that the source file can tell whether it is being
14227
# built for inclusion in a dll (and should export symbols for example).
14228
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14231
hpux9* | hpux10* | hpux11*)
14232
lt_prog_compiler_wl_F77='-Wl,'
14233
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14234
# not for PA HP-UX.
14240
lt_prog_compiler_pic_F77='+Z'
14243
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14244
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14247
irix5* | irix6* | nonstopux*)
14248
lt_prog_compiler_wl_F77='-Wl,'
14249
# PIC (with -KPIC) is the default.
14250
lt_prog_compiler_static_F77='-non_shared'
14254
lt_prog_compiler_pic_F77='-KPIC'
14255
lt_prog_compiler_static_F77='-Bstatic'
14258
linux* | k*bsd*-gnu)
14259
case $cc_basename in
14261
lt_prog_compiler_wl_F77='-Wl,'
14262
lt_prog_compiler_pic_F77='-KPIC'
14263
lt_prog_compiler_static_F77='-static'
14265
pgcc* | pgf77* | pgf90* | pgf95*)
14266
# Portland Group compilers (*not* the Pentium gcc compiler,
14267
# which looks to be a dead project)
14268
lt_prog_compiler_wl_F77='-Wl,'
14269
lt_prog_compiler_pic_F77='-fpic'
14270
lt_prog_compiler_static_F77='-Bstatic'
14273
lt_prog_compiler_wl_F77='-Wl,'
14274
# All Alpha code is PIC.
14275
lt_prog_compiler_static_F77='-non_shared'
14278
case `$CC -V 2>&1 | sed 5q` in
14281
lt_prog_compiler_pic_F77='-KPIC'
14282
lt_prog_compiler_static_F77='-Bstatic'
14283
lt_prog_compiler_wl_F77='-Wl,'
14286
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14287
lt_prog_compiler_pic_F77='-KPIC'
14288
lt_prog_compiler_static_F77='-Bstatic'
14289
lt_prog_compiler_wl_F77=''
14296
osf3* | osf4* | osf5*)
14297
lt_prog_compiler_wl_F77='-Wl,'
14298
# All OSF/1 code is PIC.
14299
lt_prog_compiler_static_F77='-non_shared'
14303
lt_prog_compiler_static_F77='-non_shared'
14307
lt_prog_compiler_pic_F77='-KPIC'
14308
lt_prog_compiler_static_F77='-Bstatic'
14309
case $cc_basename in
14310
f77* | f90* | f95*)
14311
lt_prog_compiler_wl_F77='-Qoption ld ';;
14313
lt_prog_compiler_wl_F77='-Wl,';;
14318
lt_prog_compiler_wl_F77='-Qoption ld '
14319
lt_prog_compiler_pic_F77='-PIC'
14320
lt_prog_compiler_static_F77='-Bstatic'
14323
sysv4 | sysv4.2uw2* | sysv4.3*)
14324
lt_prog_compiler_wl_F77='-Wl,'
14325
lt_prog_compiler_pic_F77='-KPIC'
14326
lt_prog_compiler_static_F77='-Bstatic'
14330
if test -d /usr/nec ;then
14331
lt_prog_compiler_pic_F77='-Kconform_pic'
14332
lt_prog_compiler_static_F77='-Bstatic'
14336
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14337
lt_prog_compiler_wl_F77='-Wl,'
14338
lt_prog_compiler_pic_F77='-KPIC'
14339
lt_prog_compiler_static_F77='-Bstatic'
14343
lt_prog_compiler_wl_F77='-Wl,'
14344
lt_prog_compiler_can_build_shared_F77=no
14348
lt_prog_compiler_pic_F77='-pic'
14349
lt_prog_compiler_static_F77='-Bstatic'
14353
lt_prog_compiler_can_build_shared_F77=no
14358
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14359
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14362
# Check to make sure the PIC flag actually works.
14364
if test -n "$lt_prog_compiler_pic_F77"; then
14366
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14367
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14368
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14369
echo $ECHO_N "(cached) $ECHO_C" >&6
14371
lt_prog_compiler_pic_works_F77=no
14372
ac_outfile=conftest.$ac_objext
14373
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14374
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14375
# Insert the option either (1) after the last *FLAGS variable, or
14376
# (2) before a word containing "conftest.", or (3) at the end.
14377
# Note that $ac_compile itself does not contain backslashes and begins
14378
# with a dollar sign (not a hyphen), so the echo should work correctly.
14379
# The option is referenced via a variable to avoid confusing sed.
14380
lt_compile=`echo "$ac_compile" | $SED \
14381
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14382
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14383
-e 's:$: $lt_compiler_flag:'`
14384
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14385
(eval "$lt_compile" 2>conftest.err)
14387
cat conftest.err >&5
14388
echo "$as_me:__oline__: \$? = $ac_status" >&5
14389
if (exit $ac_status) && test -s "$ac_outfile"; then
14390
# The compiler can only warn and ignore the option if not recognized
14391
# So say no if there are warnings other than the usual output.
14392
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14393
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14394
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14395
lt_prog_compiler_pic_works_F77=yes
14401
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14402
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14404
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14405
case $lt_prog_compiler_pic_F77 in
14407
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14410
lt_prog_compiler_pic_F77=
14411
lt_prog_compiler_can_build_shared_F77=no
14416
# For platforms which do not support PIC, -DPIC is meaningless:
14418
lt_prog_compiler_pic_F77=
14421
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14426
# Check to make sure the static flag actually works.
14428
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14429
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14430
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14431
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14432
echo $ECHO_N "(cached) $ECHO_C" >&6
14434
lt_prog_compiler_static_works_F77=no
14435
save_LDFLAGS="$LDFLAGS"
14436
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14437
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14438
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14439
# The linker can only warn and ignore the option if not recognized
14440
# So say no if there are warnings
14441
if test -s conftest.err; then
14442
# Append any errors to the config.log.
14443
cat conftest.err 1>&5
14444
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14445
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14446
if diff conftest.exp conftest.er2 >/dev/null; then
14447
lt_prog_compiler_static_works_F77=yes
14450
lt_prog_compiler_static_works_F77=yes
14454
LDFLAGS="$save_LDFLAGS"
14457
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14458
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14460
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14463
lt_prog_compiler_static_F77=
14467
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14468
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14469
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14470
echo $ECHO_N "(cached) $ECHO_C" >&6
14472
lt_cv_prog_compiler_c_o_F77=no
14473
$rm -r conftest 2>/dev/null
14477
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14479
lt_compiler_flag="-o out/conftest2.$ac_objext"
14480
# Insert the option either (1) after the last *FLAGS variable, or
14481
# (2) before a word containing "conftest.", or (3) at the end.
14482
# Note that $ac_compile itself does not contain backslashes and begins
14483
# with a dollar sign (not a hyphen), so the echo should work correctly.
14484
lt_compile=`echo "$ac_compile" | $SED \
14485
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14486
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14487
-e 's:$: $lt_compiler_flag:'`
14488
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14489
(eval "$lt_compile" 2>out/conftest.err)
14491
cat out/conftest.err >&5
14492
echo "$as_me:__oline__: \$? = $ac_status" >&5
14493
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14495
# The compiler can only warn and ignore the option if not recognized
14496
# So say no if there are warnings
14497
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14498
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14499
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14500
lt_cv_prog_compiler_c_o_F77=yes
14505
# SGI C++ compiler will create directory out/ii_files/ for
14506
# template instantiation
14507
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14508
$rm out/* && rmdir out
14514
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14515
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14518
hard_links="nottested"
14519
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14520
# do not overwrite the value of need_locks provided by the user
14521
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14522
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14525
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14527
ln conftest.a conftest.b 2>&5 || hard_links=no
14528
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14529
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14530
echo "${ECHO_T}$hard_links" >&6; }
14531
if test "$hard_links" = no; then
14532
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14533
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14540
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14541
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14544
allow_undefined_flag_F77=
14545
enable_shared_with_static_runtimes_F77=no
14547
archive_expsym_cmds_F77=
14548
old_archive_From_new_cmds_F77=
14549
old_archive_from_expsyms_cmds_F77=
14550
export_dynamic_flag_spec_F77=
14551
whole_archive_flag_spec_F77=
14552
thread_safe_flag_spec_F77=
14553
hardcode_libdir_flag_spec_F77=
14554
hardcode_libdir_flag_spec_ld_F77=
14555
hardcode_libdir_separator_F77=
14556
hardcode_direct_F77=no
14557
hardcode_minus_L_F77=no
14558
hardcode_shlibpath_var_F77=unsupported
14559
link_all_deplibs_F77=unknown
14560
hardcode_automatic_F77=no
14562
module_expsym_cmds_F77=
14563
always_export_symbols_F77=no
14564
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14565
# include_expsyms should be a list of space-separated symbols to be *always*
14566
# included in the symbol list
14567
include_expsyms_F77=
14568
# exclude_expsyms can be an extended regexp of symbols to exclude
14569
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14570
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14571
# as well as any symbol that contains `d'.
14572
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14573
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14574
# platforms (ab)use it in PIC code, but their linkers get confused if
14575
# the symbol is explicitly referenced. Since portable code cannot
14576
# rely on this symbol name, it's probably fine to never include it in
14577
# preloaded symbol tables.
14578
extract_expsyms_cmds=
14579
# Just being paranoid about ensuring that cc_basename is set.
14580
for cc_temp in $compiler""; do
14582
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14583
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14588
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14591
cygwin* | mingw* | pw32*)
14592
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14593
# When not using gcc, we currently assume that we are using
14594
# Microsoft Visual C++.
14595
if test "$GCC" != yes; then
14600
# we just hope/assume this is gcc and not c89 (= MSVC++)
14609
if test "$with_gnu_ld" = yes; then
14610
# If archive_cmds runs LD, not CC, wlarc should be empty
14613
# Set some defaults for GNU ld with shared library support. These
14614
# are reset later if shared libraries are not supported. Putting them
14615
# here allows them to be overridden if necessary.
14616
runpath_var=LD_RUN_PATH
14617
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14618
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14619
# ancient GNU ld didn't support --whole-archive et. al.
14620
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14621
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14623
whole_archive_flag_spec_F77=
14625
supports_anon_versioning=no
14626
case `$LD -v 2>/dev/null` in
14627
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14628
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14629
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14630
*\ 2.11.*) ;; # other 2.11 versions
14631
*) supports_anon_versioning=yes ;;
14634
# See if GNU ld supports shared libraries.
14636
aix3* | aix4* | aix5*)
14637
# On AIX/PPC, the GNU linker is very broken
14638
if test "$host_cpu" != ia64; then
14642
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14643
*** to be unable to reliably create shared libraries on AIX.
14644
*** Therefore, libtool is disabling shared libraries support. If you
14645
*** really care for shared libraries, you may want to modify your PATH
14646
*** so that a non-GNU linker is found, and then restart.
14653
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14654
hardcode_libdir_flag_spec_F77='-L$libdir'
14655
hardcode_minus_L_F77=yes
14657
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14658
# that the semantics of dynamic libraries on AmigaOS, at least up
14659
# to version 4, is to share data among multiple programs linked
14660
# with the same dynamic library. Since this doesn't match the
14661
# behavior of shared libraries on other platforms, we can't use
14667
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14668
allow_undefined_flag_F77=unsupported
14669
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14670
# support --undefined. This deserves some investigation. FIXME
14671
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14677
cygwin* | mingw* | pw32*)
14678
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14679
# as there is no search path for DLLs.
14680
hardcode_libdir_flag_spec_F77='-L$libdir'
14681
allow_undefined_flag_F77=unsupported
14682
always_export_symbols_F77=no
14683
enable_shared_with_static_runtimes_F77=yes
14684
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14686
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14687
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14688
# If the export-symbols file already is a .def file (1st line
14689
# is EXPORTS), use it as is; otherwise, prepend...
14690
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14691
cp $export_symbols $output_objdir/$soname.def;
14693
echo EXPORTS > $output_objdir/$soname.def;
14694
cat $export_symbols >> $output_objdir/$soname.def;
14696
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14703
hardcode_direct_F77=no
14704
hardcode_shlibpath_var_F77=no
14705
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14706
export_dynamic_flag_spec_F77='${wl}-E'
14707
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14708
# Instead, shared libraries are loaded at an image base (0x10000000 by
14709
# default) and relocated if they conflict, which is a slow very memory
14710
# consuming and fragmenting process. To avoid this, we pick a random,
14711
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14712
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14713
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14714
archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14717
gnu* | linux* | k*bsd*-gnu)
14718
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14720
case $cc_basename,$host_cpu in
14721
pgcc*) # Portland Group C compiler
14722
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14723
tmp_addflag=' $pic_flag'
14725
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14726
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14727
tmp_addflag=' $pic_flag -Mnomain' ;;
14728
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14729
tmp_addflag=' -i_dynamic' ;;
14730
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14731
tmp_addflag=' -i_dynamic -nofor_main' ;;
14732
ifc* | ifort*) # Intel Fortran compiler
14733
tmp_addflag=' -nofor_main' ;;
14735
case `$CC -V 2>&1 | sed 5q` in
14736
*Sun\ C*) # Sun C 5.9
14737
whole_archive_flag_spec_F77='${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'
14738
tmp_sharedflag='-G' ;;
14739
*Sun\ F*) # Sun Fortran 8.3
14740
tmp_sharedflag='-G' ;;
14742
tmp_sharedflag='-shared' ;;
14744
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14746
if test $supports_anon_versioning = yes; then
14747
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14748
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14749
$echo "local: *; };" >> $output_objdir/$libname.ver~
14750
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14752
link_all_deplibs_F77=no
14758
netbsd* | netbsdelf*-gnu)
14759
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14760
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14763
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14764
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14769
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14773
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14774
*** create shared libraries on Solaris systems. Therefore, libtool
14775
*** is disabling shared libraries support. We urge you to upgrade GNU
14776
*** binutils to release 2.9.1 or newer. Another option is to modify
14777
*** your PATH or compiler configuration so that the native linker is
14778
*** used, and then restart.
14781
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14782
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14783
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14789
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14790
case `$LD -v 2>&1` in
14791
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14795
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14796
*** reliably create shared libraries on SCO systems. Therefore, libtool
14797
*** is disabling shared libraries support. We urge you to upgrade GNU
14798
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14799
*** your PATH or compiler configuration so that the native linker is
14800
*** used, and then restart.
14805
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14806
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14807
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14808
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14817
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14819
hardcode_direct_F77=yes
14820
hardcode_shlibpath_var_F77=no
14824
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14825
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14826
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14833
if test "$ld_shlibs_F77" = no; then
14835
hardcode_libdir_flag_spec_F77=
14836
export_dynamic_flag_spec_F77=
14837
whole_archive_flag_spec_F77=
14840
# PORTME fill in a description of your system's linker (not GNU ld)
14843
allow_undefined_flag_F77=unsupported
14844
always_export_symbols_F77=yes
14845
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14846
# Note: this linker hardcodes the directories in LIBPATH if there
14847
# are no directories specified by -L.
14848
hardcode_minus_L_F77=yes
14849
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14850
# Neither direct hardcoding nor static linking is supported with a
14852
hardcode_direct_F77=unsupported
14857
if test "$host_cpu" = ia64; then
14858
# On IA64, the linker does run time linking by default, so we don't
14859
# have to do anything special.
14860
aix_use_runtimelinking=no
14861
exp_sym_flag='-Bexport'
14864
# If we're using GNU nm, then we don't want the "-C" option.
14865
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14866
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14867
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14869
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14871
aix_use_runtimelinking=no
14873
# Test if we are trying to use run time linking or normal
14874
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14875
# need to do runtime linking.
14876
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14877
for ld_flag in $LDFLAGS; do
14878
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14879
aix_use_runtimelinking=yes
14886
exp_sym_flag='-bexport'
14887
no_entry_flag='-bnoentry'
14890
# When large executables or shared objects are built, AIX ld can
14891
# have problems creating the table of contents. If linking a library
14892
# or program results in "error TOC overflow" add -mminimal-toc to
14893
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14894
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14896
archive_cmds_F77=''
14897
hardcode_direct_F77=yes
14898
hardcode_libdir_separator_F77=':'
14899
link_all_deplibs_F77=yes
14901
if test "$GCC" = yes; then
14902
case $host_os in aix4.[012]|aix4.[012].*)
14903
# We only want to do this on AIX 4.2 and lower, the check
14904
# below for broken collect2 doesn't work under 4.3+
14905
collect2name=`${CC} -print-prog-name=collect2`
14906
if test -f "$collect2name" && \
14907
strings "$collect2name" | grep resolve_lib_name >/dev/null
14909
# We have reworked collect2
14912
# We have old collect2
14913
hardcode_direct_F77=unsupported
14914
# It fails to find uninstalled libraries when the uninstalled
14915
# path is not listed in the libpath. Setting hardcode_minus_L
14916
# to unsupported forces relinking
14917
hardcode_minus_L_F77=yes
14918
hardcode_libdir_flag_spec_F77='-L$libdir'
14919
hardcode_libdir_separator_F77=
14923
shared_flag='-shared'
14924
if test "$aix_use_runtimelinking" = yes; then
14925
shared_flag="$shared_flag "'${wl}-G'
14929
if test "$host_cpu" = ia64; then
14930
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14931
# chokes on -Wl,-G. The following line is correct:
14934
if test "$aix_use_runtimelinking" = yes; then
14935
shared_flag='${wl}-G'
14937
shared_flag='${wl}-bM:SRE'
14942
# It seems that -bexpall does not export symbols beginning with
14943
# underscore (_), so it is better to generate a list of symbols to export.
14944
always_export_symbols_F77=yes
14945
if test "$aix_use_runtimelinking" = yes; then
14946
# Warning - without using the other runtime loading flags (-brtl),
14947
# -berok will link without error, but may produce a broken library.
14948
allow_undefined_flag_F77='-berok'
14949
# Determine the default libpath from the value encoded in an empty executable.
14950
cat >conftest.$ac_ext <<_ACEOF
14955
rm -f conftest.$ac_objext conftest$ac_exeext
14956
if { (ac_try="$ac_link"
14957
case "(($ac_try" in
14958
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959
*) ac_try_echo=$ac_try;;
14961
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14962
(eval "$ac_link") 2>conftest.er1
14964
grep -v '^ *+' conftest.er1 >conftest.err
14966
cat conftest.err >&5
14967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968
(exit $ac_status); } && {
14969
test -z "$ac_f77_werror_flag" ||
14970
test ! -s conftest.err
14971
} && test -s conftest$ac_exeext &&
14972
$as_test_x conftest$ac_exeext; then
14974
lt_aix_libpath_sed='
14975
/Import File Strings/,/^$/ {
14981
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14982
# Check for a 64-bit object if we didn't find anything.
14983
if test -z "$aix_libpath"; then
14984
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14987
echo "$as_me: failed program was:" >&5
14988
sed 's/^/| /' conftest.$ac_ext >&5
14993
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14994
conftest$ac_exeext conftest.$ac_ext
14995
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14997
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14998
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15000
if test "$host_cpu" = ia64; then
15001
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15002
allow_undefined_flag_F77="-z nodefs"
15003
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15005
# Determine the default libpath from the value encoded in an empty executable.
15006
cat >conftest.$ac_ext <<_ACEOF
15011
rm -f conftest.$ac_objext conftest$ac_exeext
15012
if { (ac_try="$ac_link"
15013
case "(($ac_try" in
15014
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015
*) ac_try_echo=$ac_try;;
15017
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018
(eval "$ac_link") 2>conftest.er1
15020
grep -v '^ *+' conftest.er1 >conftest.err
15022
cat conftest.err >&5
15023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024
(exit $ac_status); } && {
15025
test -z "$ac_f77_werror_flag" ||
15026
test ! -s conftest.err
15027
} && test -s conftest$ac_exeext &&
15028
$as_test_x conftest$ac_exeext; then
15030
lt_aix_libpath_sed='
15031
/Import File Strings/,/^$/ {
15037
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15038
# Check for a 64-bit object if we didn't find anything.
15039
if test -z "$aix_libpath"; then
15040
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15043
echo "$as_me: failed program was:" >&5
15044
sed 's/^/| /' conftest.$ac_ext >&5
15049
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15050
conftest$ac_exeext conftest.$ac_ext
15051
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15053
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15054
# Warning - without using the other run time loading flags,
15055
# -berok will link without error, but may produce a broken library.
15056
no_undefined_flag_F77=' ${wl}-bernotok'
15057
allow_undefined_flag_F77=' ${wl}-berok'
15058
# Exported symbols can be pulled into shared objects from archives
15059
whole_archive_flag_spec_F77='$convenience'
15060
archive_cmds_need_lc_F77=yes
15061
# This is similar to how AIX traditionally builds its shared libraries.
15062
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15068
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15069
hardcode_libdir_flag_spec_F77='-L$libdir'
15070
hardcode_minus_L_F77=yes
15071
# see comment about different semantics on the GNU ld section
15076
export_dynamic_flag_spec_F77=-rdynamic
15079
cygwin* | mingw* | pw32*)
15080
# When not using gcc, we currently assume that we are using
15081
# Microsoft Visual C++.
15082
# hardcode_libdir_flag_spec is actually meaningless, as there is
15083
# no search path for DLLs.
15084
hardcode_libdir_flag_spec_F77=' '
15085
allow_undefined_flag_F77=unsupported
15086
# Tell ltmain to make .lib files, not .a files.
15088
# Tell ltmain to make .dll files, not .so files.
15090
# FIXME: Setting linknames here is a bad hack.
15091
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15092
# The linker will automatically build a .lib file if we build a DLL.
15093
old_archive_From_new_cmds_F77='true'
15094
# FIXME: Should let the user specify the lib program.
15095
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15096
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15097
enable_shared_with_static_runtimes_F77=yes
15100
darwin* | rhapsody*)
15102
rhapsody* | darwin1.[012])
15103
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15106
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15107
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15109
case ${MACOSX_DEPLOYMENT_TARGET} in
15111
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15114
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15120
archive_cmds_need_lc_F77=no
15121
hardcode_direct_F77=no
15122
hardcode_automatic_F77=yes
15123
hardcode_shlibpath_var_F77=unsupported
15124
whole_archive_flag_spec_F77=''
15125
link_all_deplibs_F77=yes
15126
if test "$GCC" = yes ; then
15127
output_verbose_link_cmd='echo'
15128
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15129
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15130
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15131
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15132
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15134
case $cc_basename in
15136
output_verbose_link_cmd='echo'
15137
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15138
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15139
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15140
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15141
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15151
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15152
hardcode_libdir_flag_spec_F77='-L$libdir'
15153
hardcode_shlibpath_var_F77=no
15160
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15161
# support. Future versions do this automatically, but an explicit c++rt0.o
15162
# does not break anything, and helps significantly (at the cost of a little
15165
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15166
hardcode_libdir_flag_spec_F77='-R$libdir'
15167
hardcode_direct_F77=yes
15168
hardcode_shlibpath_var_F77=no
15171
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15173
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15174
hardcode_direct_F77=yes
15175
hardcode_minus_L_F77=yes
15176
hardcode_shlibpath_var_F77=no
15179
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15180
freebsd* | dragonfly*)
15181
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15182
hardcode_libdir_flag_spec_F77='-R$libdir'
15183
hardcode_direct_F77=yes
15184
hardcode_shlibpath_var_F77=no
15188
if test "$GCC" = yes; then
15189
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15191
archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15193
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15194
hardcode_libdir_separator_F77=:
15195
hardcode_direct_F77=yes
15197
# hardcode_minus_L: Not really in the search PATH,
15198
# but as the default location of the library.
15199
hardcode_minus_L_F77=yes
15200
export_dynamic_flag_spec_F77='${wl}-E'
15204
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15205
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15207
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15209
if test "$with_gnu_ld" = no; then
15210
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15211
hardcode_libdir_separator_F77=:
15213
hardcode_direct_F77=yes
15214
export_dynamic_flag_spec_F77='${wl}-E'
15216
# hardcode_minus_L: Not really in the search PATH,
15217
# but as the default location of the library.
15218
hardcode_minus_L_F77=yes
15223
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15226
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15229
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15232
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15238
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15241
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15244
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15248
if test "$with_gnu_ld" = no; then
15249
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15250
hardcode_libdir_separator_F77=:
15254
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15255
hardcode_direct_F77=no
15256
hardcode_shlibpath_var_F77=no
15259
hardcode_direct_F77=yes
15260
export_dynamic_flag_spec_F77='${wl}-E'
15262
# hardcode_minus_L: Not really in the search PATH,
15263
# but as the default location of the library.
15264
hardcode_minus_L_F77=yes
15270
irix5* | irix6* | nonstopux*)
15271
if test "$GCC" = yes; then
15272
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15274
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15275
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15277
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15278
hardcode_libdir_separator_F77=:
15279
link_all_deplibs_F77=yes
15282
netbsd* | netbsdelf*-gnu)
15283
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15284
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15286
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15288
hardcode_libdir_flag_spec_F77='-R$libdir'
15289
hardcode_direct_F77=yes
15290
hardcode_shlibpath_var_F77=no
15294
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15295
hardcode_direct_F77=yes
15296
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15297
hardcode_libdir_separator_F77=:
15298
hardcode_shlibpath_var_F77=no
15302
if test -f /usr/libexec/ld.so; then
15303
hardcode_direct_F77=yes
15304
hardcode_shlibpath_var_F77=no
15305
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15306
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15307
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15308
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15309
export_dynamic_flag_spec_F77='${wl}-E'
15312
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15313
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15314
hardcode_libdir_flag_spec_F77='-R$libdir'
15317
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15318
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15328
hardcode_libdir_flag_spec_F77='-L$libdir'
15329
hardcode_minus_L_F77=yes
15330
allow_undefined_flag_F77=unsupported
15331
archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15332
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15336
if test "$GCC" = yes; then
15337
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15338
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15340
allow_undefined_flag_F77=' -expect_unresolved \*'
15341
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15343
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15344
hardcode_libdir_separator_F77=:
15347
osf4* | osf5*) # as osf3* with the addition of -msym flag
15348
if test "$GCC" = yes; then
15349
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15350
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15351
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15353
allow_undefined_flag_F77=' -expect_unresolved \*'
15354
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15355
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15356
$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'
15358
# Both c and cxx compiler support -rpath directly
15359
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15361
hardcode_libdir_separator_F77=:
15365
no_undefined_flag_F77=' -z text'
15366
if test "$GCC" = yes; then
15368
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15369
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15370
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15373
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15374
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15375
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15377
hardcode_libdir_flag_spec_F77='-R$libdir'
15378
hardcode_shlibpath_var_F77=no
15380
solaris2.[0-5] | solaris2.[0-5].*) ;;
15382
# The compiler driver will combine and reorder linker options,
15383
# but understands `-z linker_flag'. GCC discards it without `$wl',
15384
# but is careful enough not to reorder.
15385
# Supported since Solaris 2.6 (maybe 2.5.1?)
15386
if test "$GCC" = yes; then
15387
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15389
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15393
link_all_deplibs_F77=yes
15397
if test "x$host_vendor" = xsequent; then
15398
# Use $CC to link under sequent, because it throws in some extra .o
15399
# files that make .init and .fini sections work.
15400
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15402
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15404
hardcode_libdir_flag_spec_F77='-L$libdir'
15405
hardcode_direct_F77=yes
15406
hardcode_minus_L_F77=yes
15407
hardcode_shlibpath_var_F77=no
15411
case $host_vendor in
15413
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15414
hardcode_direct_F77=yes # is this really true???
15417
## LD is ld it makes a PLAMLIB
15418
## CC just makes a GrossModule.
15419
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15420
reload_cmds_F77='$CC -r -o $output$reload_objs'
15421
hardcode_direct_F77=no
15424
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15425
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15428
runpath_var='LD_RUN_PATH'
15429
hardcode_shlibpath_var_F77=no
15433
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15434
hardcode_shlibpath_var_F77=no
15435
export_dynamic_flag_spec_F77='-Bexport'
15439
if test -d /usr/nec; then
15440
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15441
hardcode_shlibpath_var_F77=no
15442
runpath_var=LD_RUN_PATH
15443
hardcode_runpath_var=yes
15448
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15449
no_undefined_flag_F77='${wl}-z,text'
15450
archive_cmds_need_lc_F77=no
15451
hardcode_shlibpath_var_F77=no
15452
runpath_var='LD_RUN_PATH'
15454
if test "$GCC" = yes; then
15455
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15456
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15458
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15459
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15463
sysv5* | sco3.2v5* | sco5v6*)
15464
# Note: We can NOT use -z defs as we might desire, because we do not
15465
# link with -lc, and that would cause any symbols used from libc to
15466
# always be unresolved, which means just about no library would
15467
# ever link correctly. If we're not using GNU ld we use -z text
15468
# though, which does catch some bad symbols but isn't as heavy-handed
15470
no_undefined_flag_F77='${wl}-z,text'
15471
allow_undefined_flag_F77='${wl}-z,nodefs'
15472
archive_cmds_need_lc_F77=no
15473
hardcode_shlibpath_var_F77=no
15474
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15475
hardcode_libdir_separator_F77=':'
15476
link_all_deplibs_F77=yes
15477
export_dynamic_flag_spec_F77='${wl}-Bexport'
15478
runpath_var='LD_RUN_PATH'
15480
if test "$GCC" = yes; then
15481
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15482
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15484
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15485
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15490
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15491
hardcode_libdir_flag_spec_F77='-L$libdir'
15492
hardcode_shlibpath_var_F77=no
15501
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15502
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15503
test "$ld_shlibs_F77" = no && can_build_shared=no
15506
# Do we need to explicitly link libc?
15508
case "x$archive_cmds_need_lc_F77" in
15510
# Assume -lc should be added
15511
archive_cmds_need_lc_F77=yes
15513
if test "$enable_shared" = yes && test "$GCC" = yes; then
15514
case $archive_cmds_F77 in
15516
# FIXME: we may have to deal with multi-command sequences.
15519
# Test whether the compiler implicitly links with -lc since on some
15520
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15521
# to ld, don't add -lc before -lgcc.
15522
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15523
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15525
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15527
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15528
(eval $ac_compile) 2>&5
15530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531
(exit $ac_status); } 2>conftest.err; then
15534
libobjs=conftest.$ac_objext
15536
wl=$lt_prog_compiler_wl_F77
15537
pic_flag=$lt_prog_compiler_pic_F77
15543
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15544
allow_undefined_flag_F77=
15545
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15546
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549
(exit $ac_status); }
15551
archive_cmds_need_lc_F77=no
15553
archive_cmds_need_lc_F77=yes
15555
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15557
cat conftest.err 1>&5
15560
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15561
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15568
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15569
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15570
library_names_spec=
15571
libname_spec='lib$name'
15575
postuninstall_cmds=
15579
shlibpath_overrides_runpath=unknown
15581
dynamic_linker="$host_os ld.so"
15582
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15584
need_lib_prefix=unknown
15585
hardcode_into_libs=no
15587
# when you set need_version to no, make sure it does not cause -set_version
15588
# flags to be left without arguments
15589
need_version=unknown
15594
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15595
shlibpath_var=LIBPATH
15597
# AIX 3 has no versioning support, so we append a major version to the name.
15598
soname_spec='${libname}${release}${shared_ext}$major'
15605
hardcode_into_libs=yes
15606
if test "$host_cpu" = ia64; then
15607
# AIX 5 supports IA64
15608
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15609
shlibpath_var=LD_LIBRARY_PATH
15611
# With GCC up to 2.95.x, collect2 would create an import file
15612
# for dependence libraries. The import file would start with
15613
# the line `#! .'. This would cause the generated library to
15614
# depend on `.', always an invalid library. This was fixed in
15615
# development snapshots of GCC prior to 3.0.
15617
aix4 | aix4.[01] | aix4.[01].*)
15618
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15620
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15623
can_build_shared=no
15627
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15628
# soname into executable. Probably we can add versioning support to
15629
# collect2, so additional links can be useful in future.
15630
if test "$aix_use_runtimelinking" = yes; then
15631
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15632
# instead of lib<name>.a to let people know that these are not
15633
# typical AIX shared libraries.
15634
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15636
# We preserve .a as extension for shared libraries through AIX4.2
15637
# and later when we are not doing run time linking.
15638
library_names_spec='${libname}${release}.a $libname.a'
15639
soname_spec='${libname}${release}${shared_ext}$major'
15641
shlibpath_var=LIBPATH
15646
library_names_spec='$libname.ixlibrary $libname.a'
15647
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15648
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'
15652
library_names_spec='${libname}${shared_ext}'
15653
dynamic_linker="$host_os ld.so"
15654
shlibpath_var=LIBRARY_PATH
15660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15661
soname_spec='${libname}${release}${shared_ext}$major'
15662
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15663
shlibpath_var=LD_LIBRARY_PATH
15664
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15665
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15666
# the default ld.so.conf also contains /usr/contrib/lib and
15667
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15668
# libtool to hard-code these into programs
15671
cygwin* | mingw* | pw32*)
15672
version_type=windows
15677
case $GCC,$host_os in
15678
yes,cygwin* | yes,mingw* | yes,pw32*)
15679
library_names_spec='$libname.dll.a'
15680
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15681
postinstall_cmds='base_file=`basename \${file}`~
15682
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15683
dldir=$destdir/`dirname \$dlpath`~
15684
test -d \$dldir || mkdir -p \$dldir~
15685
$install_prog $dir/$dlname \$dldir/$dlname~
15686
chmod a+x \$dldir/$dlname'
15687
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15688
dlpath=$dir/\$dldll~
15690
shlibpath_overrides_runpath=yes
15694
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15695
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15696
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15699
# MinGW DLLs use traditional 'lib' prefix
15700
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15701
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15702
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15703
# It is most probably a Windows format PATH printed by
15704
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15705
# path with ; separators, and with drive letters. We can handle the
15706
# drive letters (cygwin fileutils understands them), so leave them,
15707
# especially as we might pass files found there to a mingw objdump,
15708
# which wouldn't understand a cygwinified path. Ahh.
15709
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15711
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15715
# pw32 DLLs use 'pw' prefix rather than 'lib'
15716
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15722
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15725
dynamic_linker='Win32 ld.exe'
15726
# FIXME: first we should search . and the directory the executable is in
15730
darwin* | rhapsody*)
15731
dynamic_linker="$host_os dyld"
15732
version_type=darwin
15735
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15736
soname_spec='${libname}${release}${major}$shared_ext'
15737
shlibpath_overrides_runpath=yes
15738
shlibpath_var=DYLD_LIBRARY_PATH
15739
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15741
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15748
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15749
soname_spec='${libname}${release}${shared_ext}$major'
15750
shlibpath_var=LD_LIBRARY_PATH
15757
freebsd* | dragonfly*)
15758
# DragonFly does not have aout. When/if they implement a new
15759
# versioning mechanism, adjust this.
15760
if test -x /usr/bin/objformat; then
15761
objformat=`/usr/bin/objformat`
15764
freebsd[123]*) objformat=aout ;;
15765
*) objformat=elf ;;
15768
version_type=freebsd-$objformat
15769
case $version_type in
15771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15776
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15780
shlibpath_var=LD_LIBRARY_PATH
15783
shlibpath_overrides_runpath=yes
15785
freebsd3.[01]* | freebsdelf3.[01]*)
15786
shlibpath_overrides_runpath=yes
15787
hardcode_into_libs=yes
15789
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15790
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15791
shlibpath_overrides_runpath=no
15792
hardcode_into_libs=yes
15794
*) # from 4.6 on, and DragonFly
15795
shlibpath_overrides_runpath=yes
15796
hardcode_into_libs=yes
15805
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15806
soname_spec='${libname}${release}${shared_ext}$major'
15807
shlibpath_var=LD_LIBRARY_PATH
15808
hardcode_into_libs=yes
15811
hpux9* | hpux10* | hpux11*)
15812
# Give a soname corresponding to the major version so that dld.sl refuses to
15813
# link against other versions.
15820
hardcode_into_libs=yes
15821
dynamic_linker="$host_os dld.so"
15822
shlibpath_var=LD_LIBRARY_PATH
15823
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15824
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15825
soname_spec='${libname}${release}${shared_ext}$major'
15826
if test "X$HPUX_IA64_MODE" = X32; then
15827
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15829
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15831
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15835
hardcode_into_libs=yes
15836
dynamic_linker="$host_os dld.sl"
15837
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15838
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15839
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15840
soname_spec='${libname}${release}${shared_ext}$major'
15841
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15842
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15846
dynamic_linker="$host_os dld.sl"
15847
shlibpath_var=SHLIB_PATH
15848
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15849
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15850
soname_spec='${libname}${release}${shared_ext}$major'
15853
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15854
postinstall_cmds='chmod 555 $lib'
15861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15862
soname_spec='${libname}${release}${shared_ext}$major'
15863
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15864
shlibpath_var=LD_LIBRARY_PATH
15865
shlibpath_overrides_runpath=no
15866
hardcode_into_libs=yes
15869
irix5* | irix6* | nonstopux*)
15871
nonstopux*) version_type=nonstopux ;;
15873
if test "$lt_cv_prog_gnu_ld" = yes; then
15881
soname_spec='${libname}${release}${shared_ext}$major'
15882
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15884
irix5* | nonstopux*)
15885
libsuff= shlibsuff=
15888
case $LD in # libtool.m4 will add one of these switches to LD
15889
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15890
libsuff= shlibsuff= libmagic=32-bit;;
15891
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15892
libsuff=32 shlibsuff=N32 libmagic=N32;;
15893
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15894
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15895
*) libsuff= shlibsuff= libmagic=never-match;;
15899
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15900
shlibpath_overrides_runpath=no
15901
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15902
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15903
hardcode_into_libs=yes
15906
# No shared lib support for Linux oldld, aout, or coff.
15907
linux*oldld* | linux*aout* | linux*coff*)
15911
# This must be Linux ELF.
15912
linux* | k*bsd*-gnu)
15916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15917
soname_spec='${libname}${release}${shared_ext}$major'
15918
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15919
shlibpath_var=LD_LIBRARY_PATH
15920
shlibpath_overrides_runpath=no
15921
# This implies no fast_install, which is unacceptable.
15922
# Some rework will be needed to allow for fast_install
15923
# before this can be enabled.
15924
hardcode_into_libs=yes
15926
# Append ld.so.conf contents to the search path
15927
if test -f /etc/ld.so.conf; then
15928
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' ' '`
15929
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15932
# We used to test for /lib/ld.so.1 and disable shared libraries on
15933
# powerpc, because MkLinux only supported shared libraries with the
15934
# GNU dynamic linker. Since this was broken with cross compilers,
15935
# most powerpc-linux boxes support dynamic linking these days and
15936
# people can always --disable-shared, the test was removed, and we
15937
# assume the GNU/Linux dynamic linker is in use.
15938
dynamic_linker='GNU/Linux ld.so'
15945
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15946
soname_spec='${libname}${release}${shared_ext}$major'
15947
shlibpath_var=LD_LIBRARY_PATH
15948
shlibpath_overrides_runpath=no
15949
hardcode_into_libs=yes
15950
dynamic_linker='NetBSD ld.elf_so'
15957
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15958
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15959
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15960
dynamic_linker='NetBSD (a.out) ld.so'
15962
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15963
soname_spec='${libname}${release}${shared_ext}$major'
15964
dynamic_linker='NetBSD ld.elf_so'
15966
shlibpath_var=LD_LIBRARY_PATH
15967
shlibpath_overrides_runpath=yes
15968
hardcode_into_libs=yes
15973
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15974
shlibpath_var=LD_LIBRARY_PATH
15975
shlibpath_overrides_runpath=yes
15982
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15983
soname_spec='${libname}${release}${shared_ext}$major'
15984
shlibpath_var=LD_LIBRARY_PATH
15985
shlibpath_overrides_runpath=yes
15990
sys_lib_dlsearch_path_spec="/usr/lib"
15992
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15994
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15995
*) need_version=no ;;
15997
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15998
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15999
shlibpath_var=LD_LIBRARY_PATH
16000
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16002
openbsd2.[89] | openbsd2.[89].*)
16003
shlibpath_overrides_runpath=no
16006
shlibpath_overrides_runpath=yes
16010
shlibpath_overrides_runpath=yes
16015
libname_spec='$name'
16018
library_names_spec='$libname${shared_ext} $libname.a'
16019
dynamic_linker='OS/2 ld.exe'
16020
shlibpath_var=LIBPATH
16023
osf3* | osf4* | osf5*)
16027
soname_spec='${libname}${release}${shared_ext}$major'
16028
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029
shlibpath_var=LD_LIBRARY_PATH
16030
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16031
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16042
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043
soname_spec='${libname}${release}${shared_ext}$major'
16044
shlibpath_var=LD_LIBRARY_PATH
16045
shlibpath_overrides_runpath=yes
16046
hardcode_into_libs=yes
16047
# ldd complains unless libraries are executable
16048
postinstall_cmds='chmod +x $lib'
16053
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16054
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16055
shlibpath_var=LD_LIBRARY_PATH
16056
shlibpath_overrides_runpath=yes
16057
if test "$with_gnu_ld" = yes; then
16065
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16066
soname_spec='${libname}${release}${shared_ext}$major'
16067
shlibpath_var=LD_LIBRARY_PATH
16068
case $host_vendor in
16070
shlibpath_overrides_runpath=no
16072
export_dynamic_flag_spec='${wl}-Blargedynsym'
16073
runpath_var=LD_RUN_PATH
16081
shlibpath_overrides_runpath=no
16082
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16088
if test -d /usr/nec ;then
16090
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16091
soname_spec='$libname${shared_ext}.$major'
16092
shlibpath_var=LD_LIBRARY_PATH
16096
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16097
version_type=freebsd-elf
16100
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16101
soname_spec='${libname}${release}${shared_ext}$major'
16102
shlibpath_var=LD_LIBRARY_PATH
16103
hardcode_into_libs=yes
16104
if test "$with_gnu_ld" = yes; then
16105
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16106
shlibpath_overrides_runpath=no
16108
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16109
shlibpath_overrides_runpath=yes
16112
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16116
sys_lib_dlsearch_path_spec='/usr/lib'
16121
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16122
soname_spec='${libname}${release}${shared_ext}$major'
16123
shlibpath_var=LD_LIBRARY_PATH
16130
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16131
echo "${ECHO_T}$dynamic_linker" >&6; }
16132
test "$dynamic_linker" = no && can_build_shared=no
16134
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16135
if test "$GCC" = yes; then
16136
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16139
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16140
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16141
hardcode_action_F77=
16142
if test -n "$hardcode_libdir_flag_spec_F77" || \
16143
test -n "$runpath_var_F77" || \
16144
test "X$hardcode_automatic_F77" = "Xyes" ; then
16146
# We can hardcode non-existant directories.
16147
if test "$hardcode_direct_F77" != no &&
16148
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16149
# have to relink, otherwise we might link with an installed library
16150
# when we should be linking with a yet-to-be-installed one
16151
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16152
test "$hardcode_minus_L_F77" != no; then
16153
# Linking always hardcodes the temporary library directory.
16154
hardcode_action_F77=relink
16156
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16157
hardcode_action_F77=immediate
16160
# We cannot hardcode anything, or else we can only hardcode existing
16162
hardcode_action_F77=unsupported
16164
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16165
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16167
if test "$hardcode_action_F77" = relink; then
16168
# Fast installation is not supported
16169
enable_fast_install=no
16170
elif test "$shlibpath_overrides_runpath" = yes ||
16171
test "$enable_shared" = no; then
16172
# Fast installation is not necessary
16173
enable_fast_install=needless
16177
# The else clause should only fire when bootstrapping the
16178
# libtool distribution, otherwise you forgot to ship ltmain.sh
16179
# with your package, and you will get complaints that there are
16180
# no rules to generate ltmain.sh.
16181
if test -f "$ltmain"; then
16182
# See if we are running on zsh, and set the options which allow our commands through
16183
# without removal of \ escapes.
16184
if test -n "${ZSH_VERSION+set}" ; then
16185
setopt NO_GLOB_SUBST
16187
# Now quote all the things that may contain metacharacters while being
16188
# careful not to overquote the AC_SUBSTed values. We take copies of the
16189
# variables and quote the copies for generation of the libtool script.
16190
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16192
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16193
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16194
deplibs_check_method reload_flag reload_cmds need_locks \
16195
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16196
lt_cv_sys_global_symbol_to_c_name_address \
16197
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16198
old_postinstall_cmds old_postuninstall_cmds \
16202
lt_prog_compiler_wl_F77 \
16203
lt_prog_compiler_pic_F77 \
16204
lt_prog_compiler_static_F77 \
16205
lt_prog_compiler_no_builtin_flag_F77 \
16206
export_dynamic_flag_spec_F77 \
16207
thread_safe_flag_spec_F77 \
16208
whole_archive_flag_spec_F77 \
16209
enable_shared_with_static_runtimes_F77 \
16210
old_archive_cmds_F77 \
16211
old_archive_from_new_cmds_F77 \
16212
predep_objects_F77 \
16213
postdep_objects_F77 \
16216
compiler_lib_search_path_F77 \
16218
archive_expsym_cmds_F77 \
16219
postinstall_cmds_F77 \
16220
postuninstall_cmds_F77 \
16221
old_archive_from_expsyms_cmds_F77 \
16222
allow_undefined_flag_F77 \
16223
no_undefined_flag_F77 \
16224
export_symbols_cmds_F77 \
16225
hardcode_libdir_flag_spec_F77 \
16226
hardcode_libdir_flag_spec_ld_F77 \
16227
hardcode_libdir_separator_F77 \
16228
hardcode_automatic_F77 \
16230
module_expsym_cmds_F77 \
16231
lt_cv_prog_compiler_c_o_F77 \
16232
fix_srcfile_path_F77 \
16233
exclude_expsyms_F77 \
16234
include_expsyms_F77; do
16237
old_archive_cmds_F77 | \
16238
old_archive_from_new_cmds_F77 | \
16239
archive_cmds_F77 | \
16240
archive_expsym_cmds_F77 | \
16241
module_cmds_F77 | \
16242
module_expsym_cmds_F77 | \
16243
old_archive_from_expsyms_cmds_F77 | \
16244
export_symbols_cmds_F77 | \
16245
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16246
postinstall_cmds | postuninstall_cmds | \
16247
old_postinstall_cmds | old_postuninstall_cmds | \
16248
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16249
# Double-quote double-evaled strings.
16250
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16253
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16259
*'\$0 --fallback-echo"')
16260
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16266
cat <<__EOF__ >> "$cfgfile"
16267
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16269
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16271
# Shell to use when invoking shell scripts.
16274
# Whether or not to build shared libraries.
16275
build_libtool_libs=$enable_shared
16277
# Whether or not to build static libraries.
16278
build_old_libs=$enable_static
16280
# Whether or not to add -lc for building shared libraries.
16281
build_libtool_need_lc=$archive_cmds_need_lc_F77
16283
# Whether or not to disallow shared libs when runtime libs are static
16284
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16286
# Whether or not to optimize for fast installation.
16287
fast_install=$enable_fast_install
16290
host_alias=$host_alias
16294
# The build system.
16295
build_alias=$build_alias
16299
# An echo program that does not interpret backslashes.
16304
AR_FLAGS=$lt_AR_FLAGS
16309
# LTCC compiler flags.
16310
LTCFLAGS=$lt_LTCFLAGS
16312
# A language-specific compiler.
16313
CC=$lt_compiler_F77
16315
# Is the compiler the GNU C compiler?
16321
# The linker used to build libraries.
16324
# Whether we need hard or soft links.
16327
# A BSD-compatible nm program.
16330
# A symbol stripping program
16333
# Used to examine libraries when file_magic_cmd begins "file"
16334
MAGIC_CMD=$MAGIC_CMD
16336
# Used on cygwin: DLL creation program.
16339
# Used on cygwin: object dumper.
16342
# Used on cygwin: assembler.
16345
# The name of the directory that contains temporary libtool files.
16348
# How to create reloadable object files.
16349
reload_flag=$lt_reload_flag
16350
reload_cmds=$lt_reload_cmds
16352
# How to pass a linker flag through the compiler.
16353
wl=$lt_lt_prog_compiler_wl_F77
16355
# Object file suffix (normally "o").
16356
objext="$ac_objext"
16358
# Old archive suffix (normally "a").
16361
# Shared library suffix (normally ".so").
16362
shrext_cmds='$shrext_cmds'
16364
# Executable file suffix (normally "").
16367
# Additional compiler flags for building library objects.
16368
pic_flag=$lt_lt_prog_compiler_pic_F77
16371
# What is the maximum length of a command?
16372
max_cmd_len=$lt_cv_sys_max_cmd_len
16374
# Does compiler simultaneously support -c and -o options?
16375
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16377
# Must we lock files when doing compilation?
16378
need_locks=$lt_need_locks
16380
# Do we need the lib prefix for modules?
16381
need_lib_prefix=$need_lib_prefix
16383
# Do we need a version for libraries?
16384
need_version=$need_version
16386
# Whether dlopen is supported.
16387
dlopen_support=$enable_dlopen
16389
# Whether dlopen of programs is supported.
16390
dlopen_self=$enable_dlopen_self
16392
# Whether dlopen of statically linked programs is supported.
16393
dlopen_self_static=$enable_dlopen_self_static
16395
# Compiler flag to prevent dynamic linking.
16396
link_static_flag=$lt_lt_prog_compiler_static_F77
16398
# Compiler flag to turn off builtin functions.
16399
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16401
# Compiler flag to allow reflexive dlopens.
16402
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16404
# Compiler flag to generate shared objects directly from archives.
16405
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16407
# Compiler flag to generate thread-safe objects.
16408
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16410
# Library versioning type.
16411
version_type=$version_type
16413
# Format of library name prefix.
16414
libname_spec=$lt_libname_spec
16416
# List of archive names. First name is the real one, the rest are links.
16417
# The last name is the one that the linker finds with -lNAME.
16418
library_names_spec=$lt_library_names_spec
16420
# The coded name of the library, if different from the real name.
16421
soname_spec=$lt_soname_spec
16423
# Commands used to build and install an old-style archive.
16425
old_archive_cmds=$lt_old_archive_cmds_F77
16426
old_postinstall_cmds=$lt_old_postinstall_cmds
16427
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16429
# Create an old-style archive from a shared archive.
16430
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16432
# Create a temporary old-style archive to link instead of a shared archive.
16433
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16435
# Commands used to build and install a shared archive.
16436
archive_cmds=$lt_archive_cmds_F77
16437
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16438
postinstall_cmds=$lt_postinstall_cmds
16439
postuninstall_cmds=$lt_postuninstall_cmds
16441
# Commands used to build a loadable module (assumed same as above if empty)
16442
module_cmds=$lt_module_cmds_F77
16443
module_expsym_cmds=$lt_module_expsym_cmds_F77
16445
# Commands to strip libraries.
16446
old_striplib=$lt_old_striplib
16447
striplib=$lt_striplib
16449
# Dependencies to place before the objects being linked to create a
16451
predep_objects=$lt_predep_objects_F77
16453
# Dependencies to place after the objects being linked to create a
16455
postdep_objects=$lt_postdep_objects_F77
16457
# Dependencies to place before the objects being linked to create a
16459
predeps=$lt_predeps_F77
16461
# Dependencies to place after the objects being linked to create a
16463
postdeps=$lt_postdeps_F77
16465
# The library search path used internally by the compiler when linking
16466
# a shared library.
16467
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16469
# Method to check whether dependent libraries are shared objects.
16470
deplibs_check_method=$lt_deplibs_check_method
16472
# Command to use when deplibs_check_method == file_magic.
16473
file_magic_cmd=$lt_file_magic_cmd
16475
# Flag that allows shared libraries with undefined symbols to be built.
16476
allow_undefined_flag=$lt_allow_undefined_flag_F77
16478
# Flag that forces no undefined symbols.
16479
no_undefined_flag=$lt_no_undefined_flag_F77
16481
# Commands used to finish a libtool library installation in a directory.
16482
finish_cmds=$lt_finish_cmds
16484
# Same as above, but a single script fragment to be evaled but not shown.
16485
finish_eval=$lt_finish_eval
16487
# Take the output of nm and produce a listing of raw symbols and C names.
16488
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16490
# Transform the output of nm in a proper C declaration
16491
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16493
# Transform the output of nm in a C name address pair
16494
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16496
# This is the shared library runtime path variable.
16497
runpath_var=$runpath_var
16499
# This is the shared library path variable.
16500
shlibpath_var=$shlibpath_var
16502
# Is shlibpath searched before the hard-coded library search path?
16503
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16505
# How to hardcode a shared library path into an executable.
16506
hardcode_action=$hardcode_action_F77
16508
# Whether we should hardcode library paths into libraries.
16509
hardcode_into_libs=$hardcode_into_libs
16511
# Flag to hardcode \$libdir into a binary during linking.
16512
# This must work even if \$libdir does not exist.
16513
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16515
# If ld is used when linking, flag to hardcode \$libdir into
16516
# a binary during linking. This must work even if \$libdir does
16518
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16520
# Whether we need a single -rpath flag with a separated argument.
16521
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16523
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16524
# resulting binary.
16525
hardcode_direct=$hardcode_direct_F77
16527
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16528
# resulting binary.
16529
hardcode_minus_L=$hardcode_minus_L_F77
16531
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16532
# the resulting binary.
16533
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16535
# Set to yes if building a shared library automatically hardcodes DIR into the library
16536
# and all subsequent libraries and executables linked against it.
16537
hardcode_automatic=$hardcode_automatic_F77
16539
# Variables whose values should be saved in libtool wrapper scripts and
16540
# restored at relink time.
16541
variables_saved_for_relink="$variables_saved_for_relink"
16543
# Whether libtool must link a program against all its dependency libraries.
16544
link_all_deplibs=$link_all_deplibs_F77
16546
# Compile-time system search path for libraries
16547
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16549
# Run-time system search path for libraries
16550
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16552
# Fix the shell variable \$srcfile for the compiler.
16553
fix_srcfile_path=$lt_fix_srcfile_path
16555
# Set to yes if exported symbols are required.
16556
always_export_symbols=$always_export_symbols_F77
16558
# The commands to list exported symbols.
16559
export_symbols_cmds=$lt_export_symbols_cmds_F77
16561
# The commands to extract the exported symbol list from a shared archive.
16562
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16564
# Symbols that should not be listed in the preloaded symbols.
16565
exclude_expsyms=$lt_exclude_expsyms_F77
16567
# Symbols that must always be exported.
16568
include_expsyms=$lt_include_expsyms_F77
16570
# ### END LIBTOOL TAG CONFIG: $tagname
16576
# If there is no Makefile yet, we rely on a make rule to execute
16577
# `config.status --recheck' to rerun these tests and create the
16578
# libtool script then.
16579
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16580
if test -f "$ltmain_in"; then
16581
test -f Makefile && make "$ltmain"
16587
ac_cpp='$CPP $CPPFLAGS'
16588
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16589
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16590
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16600
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16603
# Source file extension for Java test sources.
16606
# Object file extension for compiled Java test sources.
16610
# Code to be used in simple compile tests
16611
lt_simple_compile_test_code="class foo {}"
16613
# Code to be used in simple link tests
16614
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16616
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16618
# If no C compiler was specified, use CC.
16621
# If no C compiler flags were specified, use CFLAGS.
16622
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16624
# Allow CC to be a program name with arguments.
16628
# save warnings/boilerplate of simple test code
16629
ac_outfile=conftest.$ac_objext
16630
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16631
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16632
_lt_compiler_boilerplate=`cat conftest.err`
16635
ac_outfile=conftest.$ac_objext
16636
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16637
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16638
_lt_linker_boilerplate=`cat conftest.err`
16642
# Allow CC to be a program name with arguments.
16647
for cc_temp in $compiler""; do
16649
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16650
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16655
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16658
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16659
archive_cmds_need_lc_GCJ=no
16661
old_archive_cmds_GCJ=$old_archive_cmds
16664
## There is no encapsulation within the following macros, do not change
16665
## the running order or otherwise move them around unless you know exactly
16666
## what you are doing...
16668
lt_prog_compiler_no_builtin_flag_GCJ=
16670
if test "$GCC" = yes; then
16671
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16674
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16675
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16676
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16677
echo $ECHO_N "(cached) $ECHO_C" >&6
16679
lt_cv_prog_compiler_rtti_exceptions=no
16680
ac_outfile=conftest.$ac_objext
16681
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16682
lt_compiler_flag="-fno-rtti -fno-exceptions"
16683
# Insert the option either (1) after the last *FLAGS variable, or
16684
# (2) before a word containing "conftest.", or (3) at the end.
16685
# Note that $ac_compile itself does not contain backslashes and begins
16686
# with a dollar sign (not a hyphen), so the echo should work correctly.
16687
# The option is referenced via a variable to avoid confusing sed.
16688
lt_compile=`echo "$ac_compile" | $SED \
16689
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16690
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16691
-e 's:$: $lt_compiler_flag:'`
16692
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16693
(eval "$lt_compile" 2>conftest.err)
16695
cat conftest.err >&5
16696
echo "$as_me:__oline__: \$? = $ac_status" >&5
16697
if (exit $ac_status) && test -s "$ac_outfile"; then
16698
# The compiler can only warn and ignore the option if not recognized
16699
# So say no if there are warnings other than the usual output.
16700
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16701
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16702
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16703
lt_cv_prog_compiler_rtti_exceptions=yes
16709
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16710
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16712
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16713
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16720
lt_prog_compiler_wl_GCJ=
16721
lt_prog_compiler_pic_GCJ=
16722
lt_prog_compiler_static_GCJ=
16724
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16725
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16727
if test "$GCC" = yes; then
16728
lt_prog_compiler_wl_GCJ='-Wl,'
16729
lt_prog_compiler_static_GCJ='-static'
16733
# All AIX code is PIC.
16734
if test "$host_cpu" = ia64; then
16735
# AIX 5 now supports IA64 processor
16736
lt_prog_compiler_static_GCJ='-Bstatic'
16741
# FIXME: we need at least 68020 code to build shared libraries, but
16742
# adding the `-m68020' flag to GCC prevents building anything better,
16744
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16747
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16748
# PIC is the default for these OSes.
16751
mingw* | cygwin* | pw32* | os2*)
16752
# This hack is so that the source file can tell whether it is being
16753
# built for inclusion in a dll (and should export symbols for example).
16754
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16755
# (--disable-auto-import) libraries
16756
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16759
darwin* | rhapsody*)
16760
# PIC is the default on this platform
16761
# Common symbols not allowed in MH_DYLIB files
16762
lt_prog_compiler_pic_GCJ='-fno-common'
16766
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16767
# Instead, we relocate shared libraries at runtime.
16771
# Just because we use GCC doesn't mean we suddenly get shared libraries
16772
# on systems that don't support them.
16773
lt_prog_compiler_can_build_shared_GCJ=no
16778
if test -d /usr/nec; then
16779
lt_prog_compiler_pic_GCJ=-Kconform_pic
16784
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16785
# not for PA HP-UX.
16791
lt_prog_compiler_pic_GCJ='-fPIC'
16797
lt_prog_compiler_pic_GCJ='-fPIC'
16801
# PORTME Check for flag to pass linker flags through the system compiler.
16804
lt_prog_compiler_wl_GCJ='-Wl,'
16805
if test "$host_cpu" = ia64; then
16806
# AIX 5 now supports IA64 processor
16807
lt_prog_compiler_static_GCJ='-Bstatic'
16809
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16813
# PIC is the default on this platform
16814
# Common symbols not allowed in MH_DYLIB files
16815
case $cc_basename in
16817
lt_prog_compiler_pic_GCJ='-qnocommon'
16818
lt_prog_compiler_wl_GCJ='-Wl,'
16823
mingw* | cygwin* | pw32* | os2*)
16824
# This hack is so that the source file can tell whether it is being
16825
# built for inclusion in a dll (and should export symbols for example).
16826
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16829
hpux9* | hpux10* | hpux11*)
16830
lt_prog_compiler_wl_GCJ='-Wl,'
16831
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16832
# not for PA HP-UX.
16838
lt_prog_compiler_pic_GCJ='+Z'
16841
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16842
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16845
irix5* | irix6* | nonstopux*)
16846
lt_prog_compiler_wl_GCJ='-Wl,'
16847
# PIC (with -KPIC) is the default.
16848
lt_prog_compiler_static_GCJ='-non_shared'
16852
lt_prog_compiler_pic_GCJ='-KPIC'
16853
lt_prog_compiler_static_GCJ='-Bstatic'
16856
linux* | k*bsd*-gnu)
16857
case $cc_basename in
16859
lt_prog_compiler_wl_GCJ='-Wl,'
16860
lt_prog_compiler_pic_GCJ='-KPIC'
16861
lt_prog_compiler_static_GCJ='-static'
16863
pgcc* | pgf77* | pgf90* | pgf95*)
16864
# Portland Group compilers (*not* the Pentium gcc compiler,
16865
# which looks to be a dead project)
16866
lt_prog_compiler_wl_GCJ='-Wl,'
16867
lt_prog_compiler_pic_GCJ='-fpic'
16868
lt_prog_compiler_static_GCJ='-Bstatic'
16871
lt_prog_compiler_wl_GCJ='-Wl,'
16872
# All Alpha code is PIC.
16873
lt_prog_compiler_static_GCJ='-non_shared'
16876
case `$CC -V 2>&1 | sed 5q` in
16879
lt_prog_compiler_pic_GCJ='-KPIC'
16880
lt_prog_compiler_static_GCJ='-Bstatic'
16881
lt_prog_compiler_wl_GCJ='-Wl,'
16884
# Sun Fortran 8.3 passes all unrecognized flags to the linker
16885
lt_prog_compiler_pic_GCJ='-KPIC'
16886
lt_prog_compiler_static_GCJ='-Bstatic'
16887
lt_prog_compiler_wl_GCJ=''
16894
osf3* | osf4* | osf5*)
16895
lt_prog_compiler_wl_GCJ='-Wl,'
16896
# All OSF/1 code is PIC.
16897
lt_prog_compiler_static_GCJ='-non_shared'
16901
lt_prog_compiler_static_GCJ='-non_shared'
16905
lt_prog_compiler_pic_GCJ='-KPIC'
16906
lt_prog_compiler_static_GCJ='-Bstatic'
16907
case $cc_basename in
16908
f77* | f90* | f95*)
16909
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16911
lt_prog_compiler_wl_GCJ='-Wl,';;
16916
lt_prog_compiler_wl_GCJ='-Qoption ld '
16917
lt_prog_compiler_pic_GCJ='-PIC'
16918
lt_prog_compiler_static_GCJ='-Bstatic'
16921
sysv4 | sysv4.2uw2* | sysv4.3*)
16922
lt_prog_compiler_wl_GCJ='-Wl,'
16923
lt_prog_compiler_pic_GCJ='-KPIC'
16924
lt_prog_compiler_static_GCJ='-Bstatic'
16928
if test -d /usr/nec ;then
16929
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16930
lt_prog_compiler_static_GCJ='-Bstatic'
16934
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16935
lt_prog_compiler_wl_GCJ='-Wl,'
16936
lt_prog_compiler_pic_GCJ='-KPIC'
16937
lt_prog_compiler_static_GCJ='-Bstatic'
16941
lt_prog_compiler_wl_GCJ='-Wl,'
16942
lt_prog_compiler_can_build_shared_GCJ=no
16946
lt_prog_compiler_pic_GCJ='-pic'
16947
lt_prog_compiler_static_GCJ='-Bstatic'
16951
lt_prog_compiler_can_build_shared_GCJ=no
16956
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16957
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16960
# Check to make sure the PIC flag actually works.
16962
if test -n "$lt_prog_compiler_pic_GCJ"; then
16964
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16965
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16966
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16967
echo $ECHO_N "(cached) $ECHO_C" >&6
16969
lt_prog_compiler_pic_works_GCJ=no
16970
ac_outfile=conftest.$ac_objext
16971
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16972
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16973
# Insert the option either (1) after the last *FLAGS variable, or
16974
# (2) before a word containing "conftest.", or (3) at the end.
16975
# Note that $ac_compile itself does not contain backslashes and begins
16976
# with a dollar sign (not a hyphen), so the echo should work correctly.
16977
# The option is referenced via a variable to avoid confusing sed.
16978
lt_compile=`echo "$ac_compile" | $SED \
16979
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16980
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16981
-e 's:$: $lt_compiler_flag:'`
16982
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16983
(eval "$lt_compile" 2>conftest.err)
16985
cat conftest.err >&5
16986
echo "$as_me:__oline__: \$? = $ac_status" >&5
16987
if (exit $ac_status) && test -s "$ac_outfile"; then
16988
# The compiler can only warn and ignore the option if not recognized
16989
# So say no if there are warnings other than the usual output.
16990
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16991
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16992
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16993
lt_prog_compiler_pic_works_GCJ=yes
16999
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17000
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17002
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17003
case $lt_prog_compiler_pic_GCJ in
17005
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17008
lt_prog_compiler_pic_GCJ=
17009
lt_prog_compiler_can_build_shared_GCJ=no
17014
# For platforms which do not support PIC, -DPIC is meaningless:
17016
lt_prog_compiler_pic_GCJ=
17019
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17024
# Check to make sure the static flag actually works.
17026
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17027
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17028
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17029
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17030
echo $ECHO_N "(cached) $ECHO_C" >&6
17032
lt_prog_compiler_static_works_GCJ=no
17033
save_LDFLAGS="$LDFLAGS"
17034
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17035
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17036
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17037
# The linker can only warn and ignore the option if not recognized
17038
# So say no if there are warnings
17039
if test -s conftest.err; then
17040
# Append any errors to the config.log.
17041
cat conftest.err 1>&5
17042
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17043
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17044
if diff conftest.exp conftest.er2 >/dev/null; then
17045
lt_prog_compiler_static_works_GCJ=yes
17048
lt_prog_compiler_static_works_GCJ=yes
17052
LDFLAGS="$save_LDFLAGS"
17055
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17056
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17058
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17061
lt_prog_compiler_static_GCJ=
17065
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17066
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17067
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17068
echo $ECHO_N "(cached) $ECHO_C" >&6
17070
lt_cv_prog_compiler_c_o_GCJ=no
17071
$rm -r conftest 2>/dev/null
17075
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17077
lt_compiler_flag="-o out/conftest2.$ac_objext"
17078
# Insert the option either (1) after the last *FLAGS variable, or
17079
# (2) before a word containing "conftest.", or (3) at the end.
17080
# Note that $ac_compile itself does not contain backslashes and begins
17081
# with a dollar sign (not a hyphen), so the echo should work correctly.
17082
lt_compile=`echo "$ac_compile" | $SED \
17083
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17084
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17085
-e 's:$: $lt_compiler_flag:'`
17086
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17087
(eval "$lt_compile" 2>out/conftest.err)
17089
cat out/conftest.err >&5
17090
echo "$as_me:__oline__: \$? = $ac_status" >&5
17091
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17093
# The compiler can only warn and ignore the option if not recognized
17094
# So say no if there are warnings
17095
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17096
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17097
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17098
lt_cv_prog_compiler_c_o_GCJ=yes
17103
# SGI C++ compiler will create directory out/ii_files/ for
17104
# template instantiation
17105
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17106
$rm out/* && rmdir out
17112
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17113
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17116
hard_links="nottested"
17117
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17118
# do not overwrite the value of need_locks provided by the user
17119
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17120
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17123
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17125
ln conftest.a conftest.b 2>&5 || hard_links=no
17126
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17127
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17128
echo "${ECHO_T}$hard_links" >&6; }
17129
if test "$hard_links" = no; then
17130
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17131
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17138
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17139
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17142
allow_undefined_flag_GCJ=
17143
enable_shared_with_static_runtimes_GCJ=no
17145
archive_expsym_cmds_GCJ=
17146
old_archive_From_new_cmds_GCJ=
17147
old_archive_from_expsyms_cmds_GCJ=
17148
export_dynamic_flag_spec_GCJ=
17149
whole_archive_flag_spec_GCJ=
17150
thread_safe_flag_spec_GCJ=
17151
hardcode_libdir_flag_spec_GCJ=
17152
hardcode_libdir_flag_spec_ld_GCJ=
17153
hardcode_libdir_separator_GCJ=
17154
hardcode_direct_GCJ=no
17155
hardcode_minus_L_GCJ=no
17156
hardcode_shlibpath_var_GCJ=unsupported
17157
link_all_deplibs_GCJ=unknown
17158
hardcode_automatic_GCJ=no
17160
module_expsym_cmds_GCJ=
17161
always_export_symbols_GCJ=no
17162
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17163
# include_expsyms should be a list of space-separated symbols to be *always*
17164
# included in the symbol list
17165
include_expsyms_GCJ=
17166
# exclude_expsyms can be an extended regexp of symbols to exclude
17167
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17168
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17169
# as well as any symbol that contains `d'.
17170
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17171
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17172
# platforms (ab)use it in PIC code, but their linkers get confused if
17173
# the symbol is explicitly referenced. Since portable code cannot
17174
# rely on this symbol name, it's probably fine to never include it in
17175
# preloaded symbol tables.
17176
extract_expsyms_cmds=
17177
# Just being paranoid about ensuring that cc_basename is set.
17178
for cc_temp in $compiler""; do
17180
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17181
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17186
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17189
cygwin* | mingw* | pw32*)
17190
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17191
# When not using gcc, we currently assume that we are using
17192
# Microsoft Visual C++.
17193
if test "$GCC" != yes; then
17198
# we just hope/assume this is gcc and not c89 (= MSVC++)
17207
if test "$with_gnu_ld" = yes; then
17208
# If archive_cmds runs LD, not CC, wlarc should be empty
17211
# Set some defaults for GNU ld with shared library support. These
17212
# are reset later if shared libraries are not supported. Putting them
17213
# here allows them to be overridden if necessary.
17214
runpath_var=LD_RUN_PATH
17215
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17216
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17217
# ancient GNU ld didn't support --whole-archive et. al.
17218
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17219
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17221
whole_archive_flag_spec_GCJ=
17223
supports_anon_versioning=no
17224
case `$LD -v 2>/dev/null` in
17225
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17226
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17227
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17228
*\ 2.11.*) ;; # other 2.11 versions
17229
*) supports_anon_versioning=yes ;;
17232
# See if GNU ld supports shared libraries.
17234
aix3* | aix4* | aix5*)
17235
# On AIX/PPC, the GNU linker is very broken
17236
if test "$host_cpu" != ia64; then
17240
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17241
*** to be unable to reliably create shared libraries on AIX.
17242
*** Therefore, libtool is disabling shared libraries support. If you
17243
*** really care for shared libraries, you may want to modify your PATH
17244
*** so that a non-GNU linker is found, and then restart.
17251
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)'
17252
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17253
hardcode_minus_L_GCJ=yes
17255
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17256
# that the semantics of dynamic libraries on AmigaOS, at least up
17257
# to version 4, is to share data among multiple programs linked
17258
# with the same dynamic library. Since this doesn't match the
17259
# behavior of shared libraries on other platforms, we can't use
17265
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17266
allow_undefined_flag_GCJ=unsupported
17267
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17268
# support --undefined. This deserves some investigation. FIXME
17269
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17275
cygwin* | mingw* | pw32*)
17276
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17277
# as there is no search path for DLLs.
17278
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17279
allow_undefined_flag_GCJ=unsupported
17280
always_export_symbols_GCJ=no
17281
enable_shared_with_static_runtimes_GCJ=yes
17282
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17284
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17285
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17286
# If the export-symbols file already is a .def file (1st line
17287
# is EXPORTS), use it as is; otherwise, prepend...
17288
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17289
cp $export_symbols $output_objdir/$soname.def;
17291
echo EXPORTS > $output_objdir/$soname.def;
17292
cat $export_symbols >> $output_objdir/$soname.def;
17294
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17301
hardcode_direct_GCJ=no
17302
hardcode_shlibpath_var_GCJ=no
17303
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17304
export_dynamic_flag_spec_GCJ='${wl}-E'
17305
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17306
# Instead, shared libraries are loaded at an image base (0x10000000 by
17307
# default) and relocated if they conflict, which is a slow very memory
17308
# consuming and fragmenting process. To avoid this, we pick a random,
17309
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17310
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17311
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'
17312
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'
17315
gnu* | linux* | k*bsd*-gnu)
17316
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17318
case $cc_basename,$host_cpu in
17319
pgcc*) # Portland Group C compiler
17320
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'
17321
tmp_addflag=' $pic_flag'
17323
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17324
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'
17325
tmp_addflag=' $pic_flag -Mnomain' ;;
17326
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17327
tmp_addflag=' -i_dynamic' ;;
17328
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17329
tmp_addflag=' -i_dynamic -nofor_main' ;;
17330
ifc* | ifort*) # Intel Fortran compiler
17331
tmp_addflag=' -nofor_main' ;;
17333
case `$CC -V 2>&1 | sed 5q` in
17334
*Sun\ C*) # Sun C 5.9
17335
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'
17336
tmp_sharedflag='-G' ;;
17337
*Sun\ F*) # Sun Fortran 8.3
17338
tmp_sharedflag='-G' ;;
17340
tmp_sharedflag='-shared' ;;
17342
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17344
if test $supports_anon_versioning = yes; then
17345
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17346
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17347
$echo "local: *; };" >> $output_objdir/$libname.ver~
17348
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17350
link_all_deplibs_GCJ=no
17356
netbsd* | netbsdelf*-gnu)
17357
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17358
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17361
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17362
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17367
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17371
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17372
*** create shared libraries on Solaris systems. Therefore, libtool
17373
*** is disabling shared libraries support. We urge you to upgrade GNU
17374
*** binutils to release 2.9.1 or newer. Another option is to modify
17375
*** your PATH or compiler configuration so that the native linker is
17376
*** used, and then restart.
17379
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17380
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17381
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17387
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17388
case `$LD -v 2>&1` in
17389
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17393
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17394
*** reliably create shared libraries on SCO systems. Therefore, libtool
17395
*** is disabling shared libraries support. We urge you to upgrade GNU
17396
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17397
*** your PATH or compiler configuration so that the native linker is
17398
*** used, and then restart.
17403
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17404
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17405
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17406
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17415
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17417
hardcode_direct_GCJ=yes
17418
hardcode_shlibpath_var_GCJ=no
17422
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17423
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17424
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17431
if test "$ld_shlibs_GCJ" = no; then
17433
hardcode_libdir_flag_spec_GCJ=
17434
export_dynamic_flag_spec_GCJ=
17435
whole_archive_flag_spec_GCJ=
17438
# PORTME fill in a description of your system's linker (not GNU ld)
17441
allow_undefined_flag_GCJ=unsupported
17442
always_export_symbols_GCJ=yes
17443
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'
17444
# Note: this linker hardcodes the directories in LIBPATH if there
17445
# are no directories specified by -L.
17446
hardcode_minus_L_GCJ=yes
17447
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17448
# Neither direct hardcoding nor static linking is supported with a
17450
hardcode_direct_GCJ=unsupported
17455
if test "$host_cpu" = ia64; then
17456
# On IA64, the linker does run time linking by default, so we don't
17457
# have to do anything special.
17458
aix_use_runtimelinking=no
17459
exp_sym_flag='-Bexport'
17462
# If we're using GNU nm, then we don't want the "-C" option.
17463
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17464
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17465
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'
17467
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'
17469
aix_use_runtimelinking=no
17471
# Test if we are trying to use run time linking or normal
17472
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17473
# need to do runtime linking.
17474
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17475
for ld_flag in $LDFLAGS; do
17476
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17477
aix_use_runtimelinking=yes
17484
exp_sym_flag='-bexport'
17485
no_entry_flag='-bnoentry'
17488
# When large executables or shared objects are built, AIX ld can
17489
# have problems creating the table of contents. If linking a library
17490
# or program results in "error TOC overflow" add -mminimal-toc to
17491
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17492
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17494
archive_cmds_GCJ=''
17495
hardcode_direct_GCJ=yes
17496
hardcode_libdir_separator_GCJ=':'
17497
link_all_deplibs_GCJ=yes
17499
if test "$GCC" = yes; then
17500
case $host_os in aix4.[012]|aix4.[012].*)
17501
# We only want to do this on AIX 4.2 and lower, the check
17502
# below for broken collect2 doesn't work under 4.3+
17503
collect2name=`${CC} -print-prog-name=collect2`
17504
if test -f "$collect2name" && \
17505
strings "$collect2name" | grep resolve_lib_name >/dev/null
17507
# We have reworked collect2
17510
# We have old collect2
17511
hardcode_direct_GCJ=unsupported
17512
# It fails to find uninstalled libraries when the uninstalled
17513
# path is not listed in the libpath. Setting hardcode_minus_L
17514
# to unsupported forces relinking
17515
hardcode_minus_L_GCJ=yes
17516
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17517
hardcode_libdir_separator_GCJ=
17521
shared_flag='-shared'
17522
if test "$aix_use_runtimelinking" = yes; then
17523
shared_flag="$shared_flag "'${wl}-G'
17527
if test "$host_cpu" = ia64; then
17528
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17529
# chokes on -Wl,-G. The following line is correct:
17532
if test "$aix_use_runtimelinking" = yes; then
17533
shared_flag='${wl}-G'
17535
shared_flag='${wl}-bM:SRE'
17540
# It seems that -bexpall does not export symbols beginning with
17541
# underscore (_), so it is better to generate a list of symbols to export.
17542
always_export_symbols_GCJ=yes
17543
if test "$aix_use_runtimelinking" = yes; then
17544
# Warning - without using the other runtime loading flags (-brtl),
17545
# -berok will link without error, but may produce a broken library.
17546
allow_undefined_flag_GCJ='-berok'
17547
# Determine the default libpath from the value encoded in an empty executable.
17548
cat >conftest.$ac_ext <<_ACEOF
17551
cat confdefs.h >>conftest.$ac_ext
17552
cat >>conftest.$ac_ext <<_ACEOF
17553
/* end confdefs.h. */
17563
rm -f conftest.$ac_objext conftest$ac_exeext
17564
if { (ac_try="$ac_link"
17565
case "(($ac_try" in
17566
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567
*) ac_try_echo=$ac_try;;
17569
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570
(eval "$ac_link") 2>conftest.er1
17572
grep -v '^ *+' conftest.er1 >conftest.err
17574
cat conftest.err >&5
17575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576
(exit $ac_status); } && {
17577
test -z "$ac_c_werror_flag" ||
17578
test ! -s conftest.err
17579
} && test -s conftest$ac_exeext &&
17580
$as_test_x conftest$ac_exeext; then
17582
lt_aix_libpath_sed='
17583
/Import File Strings/,/^$/ {
17589
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17590
# Check for a 64-bit object if we didn't find anything.
17591
if test -z "$aix_libpath"; then
17592
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17595
echo "$as_me: failed program was:" >&5
17596
sed 's/^/| /' conftest.$ac_ext >&5
17601
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17602
conftest$ac_exeext conftest.$ac_ext
17603
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17605
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17606
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"
17608
if test "$host_cpu" = ia64; then
17609
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17610
allow_undefined_flag_GCJ="-z nodefs"
17611
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"
17613
# Determine the default libpath from the value encoded in an empty executable.
17614
cat >conftest.$ac_ext <<_ACEOF
17617
cat confdefs.h >>conftest.$ac_ext
17618
cat >>conftest.$ac_ext <<_ACEOF
17619
/* end confdefs.h. */
17629
rm -f conftest.$ac_objext conftest$ac_exeext
17630
if { (ac_try="$ac_link"
17631
case "(($ac_try" in
17632
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633
*) ac_try_echo=$ac_try;;
17635
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636
(eval "$ac_link") 2>conftest.er1
17638
grep -v '^ *+' conftest.er1 >conftest.err
17640
cat conftest.err >&5
17641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642
(exit $ac_status); } && {
17643
test -z "$ac_c_werror_flag" ||
17644
test ! -s conftest.err
17645
} && test -s conftest$ac_exeext &&
17646
$as_test_x conftest$ac_exeext; then
17648
lt_aix_libpath_sed='
17649
/Import File Strings/,/^$/ {
17655
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17656
# Check for a 64-bit object if we didn't find anything.
17657
if test -z "$aix_libpath"; then
17658
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17661
echo "$as_me: failed program was:" >&5
17662
sed 's/^/| /' conftest.$ac_ext >&5
17667
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17668
conftest$ac_exeext conftest.$ac_ext
17669
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17671
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17672
# Warning - without using the other run time loading flags,
17673
# -berok will link without error, but may produce a broken library.
17674
no_undefined_flag_GCJ=' ${wl}-bernotok'
17675
allow_undefined_flag_GCJ=' ${wl}-berok'
17676
# Exported symbols can be pulled into shared objects from archives
17677
whole_archive_flag_spec_GCJ='$convenience'
17678
archive_cmds_need_lc_GCJ=yes
17679
# This is similar to how AIX traditionally builds its shared libraries.
17680
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'
17686
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)'
17687
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17688
hardcode_minus_L_GCJ=yes
17689
# see comment about different semantics on the GNU ld section
17694
export_dynamic_flag_spec_GCJ=-rdynamic
17697
cygwin* | mingw* | pw32*)
17698
# When not using gcc, we currently assume that we are using
17699
# Microsoft Visual C++.
17700
# hardcode_libdir_flag_spec is actually meaningless, as there is
17701
# no search path for DLLs.
17702
hardcode_libdir_flag_spec_GCJ=' '
17703
allow_undefined_flag_GCJ=unsupported
17704
# Tell ltmain to make .lib files, not .a files.
17706
# Tell ltmain to make .dll files, not .so files.
17708
# FIXME: Setting linknames here is a bad hack.
17709
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17710
# The linker will automatically build a .lib file if we build a DLL.
17711
old_archive_From_new_cmds_GCJ='true'
17712
# FIXME: Should let the user specify the lib program.
17713
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17714
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17715
enable_shared_with_static_runtimes_GCJ=yes
17718
darwin* | rhapsody*)
17720
rhapsody* | darwin1.[012])
17721
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17724
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17725
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17727
case ${MACOSX_DEPLOYMENT_TARGET} in
17729
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17732
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17738
archive_cmds_need_lc_GCJ=no
17739
hardcode_direct_GCJ=no
17740
hardcode_automatic_GCJ=yes
17741
hardcode_shlibpath_var_GCJ=unsupported
17742
whole_archive_flag_spec_GCJ=''
17743
link_all_deplibs_GCJ=yes
17744
if test "$GCC" = yes ; then
17745
output_verbose_link_cmd='echo'
17746
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17747
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17748
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17749
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17750
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}'
17752
case $cc_basename in
17754
output_verbose_link_cmd='echo'
17755
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17756
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17757
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17758
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}'
17759
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}'
17769
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17770
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17771
hardcode_shlibpath_var_GCJ=no
17778
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17779
# support. Future versions do this automatically, but an explicit c++rt0.o
17780
# does not break anything, and helps significantly (at the cost of a little
17783
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17784
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17785
hardcode_direct_GCJ=yes
17786
hardcode_shlibpath_var_GCJ=no
17789
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17791
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17792
hardcode_direct_GCJ=yes
17793
hardcode_minus_L_GCJ=yes
17794
hardcode_shlibpath_var_GCJ=no
17797
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17798
freebsd* | dragonfly*)
17799
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17800
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17801
hardcode_direct_GCJ=yes
17802
hardcode_shlibpath_var_GCJ=no
17806
if test "$GCC" = yes; then
17807
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'
17809
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'
17811
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17812
hardcode_libdir_separator_GCJ=:
17813
hardcode_direct_GCJ=yes
17815
# hardcode_minus_L: Not really in the search PATH,
17816
# but as the default location of the library.
17817
hardcode_minus_L_GCJ=yes
17818
export_dynamic_flag_spec_GCJ='${wl}-E'
17822
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17823
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17825
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17827
if test "$with_gnu_ld" = no; then
17828
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17829
hardcode_libdir_separator_GCJ=:
17831
hardcode_direct_GCJ=yes
17832
export_dynamic_flag_spec_GCJ='${wl}-E'
17834
# hardcode_minus_L: Not really in the search PATH,
17835
# but as the default location of the library.
17836
hardcode_minus_L_GCJ=yes
17841
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17844
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17847
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17850
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17856
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17859
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17862
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17866
if test "$with_gnu_ld" = no; then
17867
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17868
hardcode_libdir_separator_GCJ=:
17872
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17873
hardcode_direct_GCJ=no
17874
hardcode_shlibpath_var_GCJ=no
17877
hardcode_direct_GCJ=yes
17878
export_dynamic_flag_spec_GCJ='${wl}-E'
17880
# hardcode_minus_L: Not really in the search PATH,
17881
# but as the default location of the library.
17882
hardcode_minus_L_GCJ=yes
17888
irix5* | irix6* | nonstopux*)
17889
if test "$GCC" = yes; then
17890
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'
17892
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'
17893
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17895
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17896
hardcode_libdir_separator_GCJ=:
17897
link_all_deplibs_GCJ=yes
17900
netbsd* | netbsdelf*-gnu)
17901
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17902
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17904
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17906
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17907
hardcode_direct_GCJ=yes
17908
hardcode_shlibpath_var_GCJ=no
17912
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17913
hardcode_direct_GCJ=yes
17914
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17915
hardcode_libdir_separator_GCJ=:
17916
hardcode_shlibpath_var_GCJ=no
17920
if test -f /usr/libexec/ld.so; then
17921
hardcode_direct_GCJ=yes
17922
hardcode_shlibpath_var_GCJ=no
17923
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17924
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17925
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17926
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17927
export_dynamic_flag_spec_GCJ='${wl}-E'
17930
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17931
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17932
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17935
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17936
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17946
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17947
hardcode_minus_L_GCJ=yes
17948
allow_undefined_flag_GCJ=unsupported
17949
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'
17950
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17954
if test "$GCC" = yes; then
17955
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17956
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'
17958
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17959
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'
17961
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17962
hardcode_libdir_separator_GCJ=:
17965
osf4* | osf5*) # as osf3* with the addition of -msym flag
17966
if test "$GCC" = yes; then
17967
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17968
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'
17969
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17971
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17972
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'
17973
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~
17974
$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'
17976
# Both c and cxx compiler support -rpath directly
17977
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17979
hardcode_libdir_separator_GCJ=:
17983
no_undefined_flag_GCJ=' -z text'
17984
if test "$GCC" = yes; then
17986
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17987
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17988
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17991
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17992
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17993
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17995
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17996
hardcode_shlibpath_var_GCJ=no
17998
solaris2.[0-5] | solaris2.[0-5].*) ;;
18000
# The compiler driver will combine and reorder linker options,
18001
# but understands `-z linker_flag'. GCC discards it without `$wl',
18002
# but is careful enough not to reorder.
18003
# Supported since Solaris 2.6 (maybe 2.5.1?)
18004
if test "$GCC" = yes; then
18005
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18007
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18011
link_all_deplibs_GCJ=yes
18015
if test "x$host_vendor" = xsequent; then
18016
# Use $CC to link under sequent, because it throws in some extra .o
18017
# files that make .init and .fini sections work.
18018
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18020
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18022
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18023
hardcode_direct_GCJ=yes
18024
hardcode_minus_L_GCJ=yes
18025
hardcode_shlibpath_var_GCJ=no
18029
case $host_vendor in
18031
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18032
hardcode_direct_GCJ=yes # is this really true???
18035
## LD is ld it makes a PLAMLIB
18036
## CC just makes a GrossModule.
18037
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18038
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18039
hardcode_direct_GCJ=no
18042
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18043
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18046
runpath_var='LD_RUN_PATH'
18047
hardcode_shlibpath_var_GCJ=no
18051
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18052
hardcode_shlibpath_var_GCJ=no
18053
export_dynamic_flag_spec_GCJ='-Bexport'
18057
if test -d /usr/nec; then
18058
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18059
hardcode_shlibpath_var_GCJ=no
18060
runpath_var=LD_RUN_PATH
18061
hardcode_runpath_var=yes
18066
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18067
no_undefined_flag_GCJ='${wl}-z,text'
18068
archive_cmds_need_lc_GCJ=no
18069
hardcode_shlibpath_var_GCJ=no
18070
runpath_var='LD_RUN_PATH'
18072
if test "$GCC" = yes; then
18073
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18074
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18076
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18077
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18081
sysv5* | sco3.2v5* | sco5v6*)
18082
# Note: We can NOT use -z defs as we might desire, because we do not
18083
# link with -lc, and that would cause any symbols used from libc to
18084
# always be unresolved, which means just about no library would
18085
# ever link correctly. If we're not using GNU ld we use -z text
18086
# though, which does catch some bad symbols but isn't as heavy-handed
18088
no_undefined_flag_GCJ='${wl}-z,text'
18089
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18090
archive_cmds_need_lc_GCJ=no
18091
hardcode_shlibpath_var_GCJ=no
18092
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18093
hardcode_libdir_separator_GCJ=':'
18094
link_all_deplibs_GCJ=yes
18095
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18096
runpath_var='LD_RUN_PATH'
18098
if test "$GCC" = yes; then
18099
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18100
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18102
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18103
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18108
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18109
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18110
hardcode_shlibpath_var_GCJ=no
18119
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18120
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18121
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18124
# Do we need to explicitly link libc?
18126
case "x$archive_cmds_need_lc_GCJ" in
18128
# Assume -lc should be added
18129
archive_cmds_need_lc_GCJ=yes
18131
if test "$enable_shared" = yes && test "$GCC" = yes; then
18132
case $archive_cmds_GCJ in
18134
# FIXME: we may have to deal with multi-command sequences.
18137
# Test whether the compiler implicitly links with -lc since on some
18138
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18139
# to ld, don't add -lc before -lgcc.
18140
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18141
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18143
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18145
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18146
(eval $ac_compile) 2>&5
18148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149
(exit $ac_status); } 2>conftest.err; then
18152
libobjs=conftest.$ac_objext
18154
wl=$lt_prog_compiler_wl_GCJ
18155
pic_flag=$lt_prog_compiler_pic_GCJ
18161
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18162
allow_undefined_flag_GCJ=
18163
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18164
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167
(exit $ac_status); }
18169
archive_cmds_need_lc_GCJ=no
18171
archive_cmds_need_lc_GCJ=yes
18173
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18175
cat conftest.err 1>&5
18178
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18179
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18186
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18187
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18188
library_names_spec=
18189
libname_spec='lib$name'
18193
postuninstall_cmds=
18197
shlibpath_overrides_runpath=unknown
18199
dynamic_linker="$host_os ld.so"
18200
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18202
need_lib_prefix=unknown
18203
hardcode_into_libs=no
18205
# when you set need_version to no, make sure it does not cause -set_version
18206
# flags to be left without arguments
18207
need_version=unknown
18212
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18213
shlibpath_var=LIBPATH
18215
# AIX 3 has no versioning support, so we append a major version to the name.
18216
soname_spec='${libname}${release}${shared_ext}$major'
18223
hardcode_into_libs=yes
18224
if test "$host_cpu" = ia64; then
18225
# AIX 5 supports IA64
18226
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18227
shlibpath_var=LD_LIBRARY_PATH
18229
# With GCC up to 2.95.x, collect2 would create an import file
18230
# for dependence libraries. The import file would start with
18231
# the line `#! .'. This would cause the generated library to
18232
# depend on `.', always an invalid library. This was fixed in
18233
# development snapshots of GCC prior to 3.0.
18235
aix4 | aix4.[01] | aix4.[01].*)
18236
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18238
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18241
can_build_shared=no
18245
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18246
# soname into executable. Probably we can add versioning support to
18247
# collect2, so additional links can be useful in future.
18248
if test "$aix_use_runtimelinking" = yes; then
18249
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18250
# instead of lib<name>.a to let people know that these are not
18251
# typical AIX shared libraries.
18252
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18254
# We preserve .a as extension for shared libraries through AIX4.2
18255
# and later when we are not doing run time linking.
18256
library_names_spec='${libname}${release}.a $libname.a'
18257
soname_spec='${libname}${release}${shared_ext}$major'
18259
shlibpath_var=LIBPATH
18264
library_names_spec='$libname.ixlibrary $libname.a'
18265
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18266
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'
18270
library_names_spec='${libname}${shared_ext}'
18271
dynamic_linker="$host_os ld.so"
18272
shlibpath_var=LIBRARY_PATH
18278
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18279
soname_spec='${libname}${release}${shared_ext}$major'
18280
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18281
shlibpath_var=LD_LIBRARY_PATH
18282
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18283
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18284
# the default ld.so.conf also contains /usr/contrib/lib and
18285
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18286
# libtool to hard-code these into programs
18289
cygwin* | mingw* | pw32*)
18290
version_type=windows
18295
case $GCC,$host_os in
18296
yes,cygwin* | yes,mingw* | yes,pw32*)
18297
library_names_spec='$libname.dll.a'
18298
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18299
postinstall_cmds='base_file=`basename \${file}`~
18300
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18301
dldir=$destdir/`dirname \$dlpath`~
18302
test -d \$dldir || mkdir -p \$dldir~
18303
$install_prog $dir/$dlname \$dldir/$dlname~
18304
chmod a+x \$dldir/$dlname'
18305
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18306
dlpath=$dir/\$dldll~
18308
shlibpath_overrides_runpath=yes
18312
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18313
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18314
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18317
# MinGW DLLs use traditional 'lib' prefix
18318
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18319
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18320
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18321
# It is most probably a Windows format PATH printed by
18322
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18323
# path with ; separators, and with drive letters. We can handle the
18324
# drive letters (cygwin fileutils understands them), so leave them,
18325
# especially as we might pass files found there to a mingw objdump,
18326
# which wouldn't understand a cygwinified path. Ahh.
18327
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18329
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18333
# pw32 DLLs use 'pw' prefix rather than 'lib'
18334
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18340
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18343
dynamic_linker='Win32 ld.exe'
18344
# FIXME: first we should search . and the directory the executable is in
18348
darwin* | rhapsody*)
18349
dynamic_linker="$host_os dyld"
18350
version_type=darwin
18353
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18354
soname_spec='${libname}${release}${major}$shared_ext'
18355
shlibpath_overrides_runpath=yes
18356
shlibpath_var=DYLD_LIBRARY_PATH
18357
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18359
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18366
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18367
soname_spec='${libname}${release}${shared_ext}$major'
18368
shlibpath_var=LD_LIBRARY_PATH
18375
freebsd* | dragonfly*)
18376
# DragonFly does not have aout. When/if they implement a new
18377
# versioning mechanism, adjust this.
18378
if test -x /usr/bin/objformat; then
18379
objformat=`/usr/bin/objformat`
18382
freebsd[123]*) objformat=aout ;;
18383
*) objformat=elf ;;
18386
version_type=freebsd-$objformat
18387
case $version_type in
18389
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18394
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18398
shlibpath_var=LD_LIBRARY_PATH
18401
shlibpath_overrides_runpath=yes
18403
freebsd3.[01]* | freebsdelf3.[01]*)
18404
shlibpath_overrides_runpath=yes
18405
hardcode_into_libs=yes
18407
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18408
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18409
shlibpath_overrides_runpath=no
18410
hardcode_into_libs=yes
18412
*) # from 4.6 on, and DragonFly
18413
shlibpath_overrides_runpath=yes
18414
hardcode_into_libs=yes
18423
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18424
soname_spec='${libname}${release}${shared_ext}$major'
18425
shlibpath_var=LD_LIBRARY_PATH
18426
hardcode_into_libs=yes
18429
hpux9* | hpux10* | hpux11*)
18430
# Give a soname corresponding to the major version so that dld.sl refuses to
18431
# link against other versions.
18438
hardcode_into_libs=yes
18439
dynamic_linker="$host_os dld.so"
18440
shlibpath_var=LD_LIBRARY_PATH
18441
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18442
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18443
soname_spec='${libname}${release}${shared_ext}$major'
18444
if test "X$HPUX_IA64_MODE" = X32; then
18445
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18447
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18449
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18453
hardcode_into_libs=yes
18454
dynamic_linker="$host_os dld.sl"
18455
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18456
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18457
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18458
soname_spec='${libname}${release}${shared_ext}$major'
18459
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18460
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18464
dynamic_linker="$host_os dld.sl"
18465
shlibpath_var=SHLIB_PATH
18466
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18467
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18468
soname_spec='${libname}${release}${shared_ext}$major'
18471
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18472
postinstall_cmds='chmod 555 $lib'
18479
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18480
soname_spec='${libname}${release}${shared_ext}$major'
18481
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18482
shlibpath_var=LD_LIBRARY_PATH
18483
shlibpath_overrides_runpath=no
18484
hardcode_into_libs=yes
18487
irix5* | irix6* | nonstopux*)
18489
nonstopux*) version_type=nonstopux ;;
18491
if test "$lt_cv_prog_gnu_ld" = yes; then
18499
soname_spec='${libname}${release}${shared_ext}$major'
18500
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18502
irix5* | nonstopux*)
18503
libsuff= shlibsuff=
18506
case $LD in # libtool.m4 will add one of these switches to LD
18507
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18508
libsuff= shlibsuff= libmagic=32-bit;;
18509
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18510
libsuff=32 shlibsuff=N32 libmagic=N32;;
18511
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18512
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18513
*) libsuff= shlibsuff= libmagic=never-match;;
18517
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18518
shlibpath_overrides_runpath=no
18519
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18520
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18521
hardcode_into_libs=yes
18524
# No shared lib support for Linux oldld, aout, or coff.
18525
linux*oldld* | linux*aout* | linux*coff*)
18529
# This must be Linux ELF.
18530
linux* | k*bsd*-gnu)
18534
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18535
soname_spec='${libname}${release}${shared_ext}$major'
18536
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18537
shlibpath_var=LD_LIBRARY_PATH
18538
shlibpath_overrides_runpath=no
18539
# This implies no fast_install, which is unacceptable.
18540
# Some rework will be needed to allow for fast_install
18541
# before this can be enabled.
18542
hardcode_into_libs=yes
18544
# Append ld.so.conf contents to the search path
18545
if test -f /etc/ld.so.conf; then
18546
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' ' '`
18547
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18550
# We used to test for /lib/ld.so.1 and disable shared libraries on
18551
# powerpc, because MkLinux only supported shared libraries with the
18552
# GNU dynamic linker. Since this was broken with cross compilers,
18553
# most powerpc-linux boxes support dynamic linking these days and
18554
# people can always --disable-shared, the test was removed, and we
18555
# assume the GNU/Linux dynamic linker is in use.
18556
dynamic_linker='GNU/Linux ld.so'
18563
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18564
soname_spec='${libname}${release}${shared_ext}$major'
18565
shlibpath_var=LD_LIBRARY_PATH
18566
shlibpath_overrides_runpath=no
18567
hardcode_into_libs=yes
18568
dynamic_linker='NetBSD ld.elf_so'
18575
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18576
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18577
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18578
dynamic_linker='NetBSD (a.out) ld.so'
18580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18581
soname_spec='${libname}${release}${shared_ext}$major'
18582
dynamic_linker='NetBSD ld.elf_so'
18584
shlibpath_var=LD_LIBRARY_PATH
18585
shlibpath_overrides_runpath=yes
18586
hardcode_into_libs=yes
18591
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18592
shlibpath_var=LD_LIBRARY_PATH
18593
shlibpath_overrides_runpath=yes
18600
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18601
soname_spec='${libname}${release}${shared_ext}$major'
18602
shlibpath_var=LD_LIBRARY_PATH
18603
shlibpath_overrides_runpath=yes
18608
sys_lib_dlsearch_path_spec="/usr/lib"
18610
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18612
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18613
*) need_version=no ;;
18615
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18616
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18617
shlibpath_var=LD_LIBRARY_PATH
18618
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18620
openbsd2.[89] | openbsd2.[89].*)
18621
shlibpath_overrides_runpath=no
18624
shlibpath_overrides_runpath=yes
18628
shlibpath_overrides_runpath=yes
18633
libname_spec='$name'
18636
library_names_spec='$libname${shared_ext} $libname.a'
18637
dynamic_linker='OS/2 ld.exe'
18638
shlibpath_var=LIBPATH
18641
osf3* | osf4* | osf5*)
18645
soname_spec='${libname}${release}${shared_ext}$major'
18646
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18647
shlibpath_var=LD_LIBRARY_PATH
18648
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18649
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18661
soname_spec='${libname}${release}${shared_ext}$major'
18662
shlibpath_var=LD_LIBRARY_PATH
18663
shlibpath_overrides_runpath=yes
18664
hardcode_into_libs=yes
18665
# ldd complains unless libraries are executable
18666
postinstall_cmds='chmod +x $lib'
18671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18672
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18673
shlibpath_var=LD_LIBRARY_PATH
18674
shlibpath_overrides_runpath=yes
18675
if test "$with_gnu_ld" = yes; then
18683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18684
soname_spec='${libname}${release}${shared_ext}$major'
18685
shlibpath_var=LD_LIBRARY_PATH
18686
case $host_vendor in
18688
shlibpath_overrides_runpath=no
18690
export_dynamic_flag_spec='${wl}-Blargedynsym'
18691
runpath_var=LD_RUN_PATH
18699
shlibpath_overrides_runpath=no
18700
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18706
if test -d /usr/nec ;then
18708
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18709
soname_spec='$libname${shared_ext}.$major'
18710
shlibpath_var=LD_LIBRARY_PATH
18714
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18715
version_type=freebsd-elf
18718
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18719
soname_spec='${libname}${release}${shared_ext}$major'
18720
shlibpath_var=LD_LIBRARY_PATH
18721
hardcode_into_libs=yes
18722
if test "$with_gnu_ld" = yes; then
18723
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18724
shlibpath_overrides_runpath=no
18726
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18727
shlibpath_overrides_runpath=yes
18730
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18734
sys_lib_dlsearch_path_spec='/usr/lib'
18739
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18740
soname_spec='${libname}${release}${shared_ext}$major'
18741
shlibpath_var=LD_LIBRARY_PATH
18748
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18749
echo "${ECHO_T}$dynamic_linker" >&6; }
18750
test "$dynamic_linker" = no && can_build_shared=no
18752
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18753
if test "$GCC" = yes; then
18754
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18757
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18758
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18759
hardcode_action_GCJ=
18760
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18761
test -n "$runpath_var_GCJ" || \
18762
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18764
# We can hardcode non-existant directories.
18765
if test "$hardcode_direct_GCJ" != no &&
18766
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18767
# have to relink, otherwise we might link with an installed library
18768
# when we should be linking with a yet-to-be-installed one
18769
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18770
test "$hardcode_minus_L_GCJ" != no; then
18771
# Linking always hardcodes the temporary library directory.
18772
hardcode_action_GCJ=relink
18774
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18775
hardcode_action_GCJ=immediate
18778
# We cannot hardcode anything, or else we can only hardcode existing
18780
hardcode_action_GCJ=unsupported
18782
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18783
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18785
if test "$hardcode_action_GCJ" = relink; then
18786
# Fast installation is not supported
18787
enable_fast_install=no
18788
elif test "$shlibpath_overrides_runpath" = yes ||
18789
test "$enable_shared" = no; then
18790
# Fast installation is not necessary
18791
enable_fast_install=needless
18795
# The else clause should only fire when bootstrapping the
18796
# libtool distribution, otherwise you forgot to ship ltmain.sh
18797
# with your package, and you will get complaints that there are
18798
# no rules to generate ltmain.sh.
18799
if test -f "$ltmain"; then
18800
# See if we are running on zsh, and set the options which allow our commands through
18801
# without removal of \ escapes.
18802
if test -n "${ZSH_VERSION+set}" ; then
18803
setopt NO_GLOB_SUBST
18805
# Now quote all the things that may contain metacharacters while being
18806
# careful not to overquote the AC_SUBSTed values. We take copies of the
18807
# variables and quote the copies for generation of the libtool script.
18808
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18810
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18811
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18812
deplibs_check_method reload_flag reload_cmds need_locks \
18813
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18814
lt_cv_sys_global_symbol_to_c_name_address \
18815
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18816
old_postinstall_cmds old_postuninstall_cmds \
18820
lt_prog_compiler_wl_GCJ \
18821
lt_prog_compiler_pic_GCJ \
18822
lt_prog_compiler_static_GCJ \
18823
lt_prog_compiler_no_builtin_flag_GCJ \
18824
export_dynamic_flag_spec_GCJ \
18825
thread_safe_flag_spec_GCJ \
18826
whole_archive_flag_spec_GCJ \
18827
enable_shared_with_static_runtimes_GCJ \
18828
old_archive_cmds_GCJ \
18829
old_archive_from_new_cmds_GCJ \
18830
predep_objects_GCJ \
18831
postdep_objects_GCJ \
18834
compiler_lib_search_path_GCJ \
18836
archive_expsym_cmds_GCJ \
18837
postinstall_cmds_GCJ \
18838
postuninstall_cmds_GCJ \
18839
old_archive_from_expsyms_cmds_GCJ \
18840
allow_undefined_flag_GCJ \
18841
no_undefined_flag_GCJ \
18842
export_symbols_cmds_GCJ \
18843
hardcode_libdir_flag_spec_GCJ \
18844
hardcode_libdir_flag_spec_ld_GCJ \
18845
hardcode_libdir_separator_GCJ \
18846
hardcode_automatic_GCJ \
18848
module_expsym_cmds_GCJ \
18849
lt_cv_prog_compiler_c_o_GCJ \
18850
fix_srcfile_path_GCJ \
18851
exclude_expsyms_GCJ \
18852
include_expsyms_GCJ; do
18855
old_archive_cmds_GCJ | \
18856
old_archive_from_new_cmds_GCJ | \
18857
archive_cmds_GCJ | \
18858
archive_expsym_cmds_GCJ | \
18859
module_cmds_GCJ | \
18860
module_expsym_cmds_GCJ | \
18861
old_archive_from_expsyms_cmds_GCJ | \
18862
export_symbols_cmds_GCJ | \
18863
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18864
postinstall_cmds | postuninstall_cmds | \
18865
old_postinstall_cmds | old_postuninstall_cmds | \
18866
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18867
# Double-quote double-evaled strings.
18868
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18871
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18877
*'\$0 --fallback-echo"')
18878
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18884
cat <<__EOF__ >> "$cfgfile"
18885
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18887
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18889
# Shell to use when invoking shell scripts.
18892
# Whether or not to build shared libraries.
18893
build_libtool_libs=$enable_shared
18895
# Whether or not to build static libraries.
18896
build_old_libs=$enable_static
18898
# Whether or not to add -lc for building shared libraries.
18899
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18901
# Whether or not to disallow shared libs when runtime libs are static
18902
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18904
# Whether or not to optimize for fast installation.
18905
fast_install=$enable_fast_install
18908
host_alias=$host_alias
18912
# The build system.
18913
build_alias=$build_alias
18917
# An echo program that does not interpret backslashes.
18922
AR_FLAGS=$lt_AR_FLAGS
18927
# LTCC compiler flags.
18928
LTCFLAGS=$lt_LTCFLAGS
18930
# A language-specific compiler.
18931
CC=$lt_compiler_GCJ
18933
# Is the compiler the GNU C compiler?
18939
# The linker used to build libraries.
18942
# Whether we need hard or soft links.
18945
# A BSD-compatible nm program.
18948
# A symbol stripping program
18951
# Used to examine libraries when file_magic_cmd begins "file"
18952
MAGIC_CMD=$MAGIC_CMD
18954
# Used on cygwin: DLL creation program.
18957
# Used on cygwin: object dumper.
18960
# Used on cygwin: assembler.
18963
# The name of the directory that contains temporary libtool files.
18966
# How to create reloadable object files.
18967
reload_flag=$lt_reload_flag
18968
reload_cmds=$lt_reload_cmds
18970
# How to pass a linker flag through the compiler.
18971
wl=$lt_lt_prog_compiler_wl_GCJ
18973
# Object file suffix (normally "o").
18974
objext="$ac_objext"
18976
# Old archive suffix (normally "a").
18979
# Shared library suffix (normally ".so").
18980
shrext_cmds='$shrext_cmds'
18982
# Executable file suffix (normally "").
18985
# Additional compiler flags for building library objects.
18986
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18989
# What is the maximum length of a command?
18990
max_cmd_len=$lt_cv_sys_max_cmd_len
18992
# Does compiler simultaneously support -c and -o options?
18993
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18995
# Must we lock files when doing compilation?
18996
need_locks=$lt_need_locks
18998
# Do we need the lib prefix for modules?
18999
need_lib_prefix=$need_lib_prefix
19001
# Do we need a version for libraries?
19002
need_version=$need_version
19004
# Whether dlopen is supported.
19005
dlopen_support=$enable_dlopen
19007
# Whether dlopen of programs is supported.
19008
dlopen_self=$enable_dlopen_self
19010
# Whether dlopen of statically linked programs is supported.
19011
dlopen_self_static=$enable_dlopen_self_static
19013
# Compiler flag to prevent dynamic linking.
19014
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19016
# Compiler flag to turn off builtin functions.
19017
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19019
# Compiler flag to allow reflexive dlopens.
19020
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19022
# Compiler flag to generate shared objects directly from archives.
19023
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19025
# Compiler flag to generate thread-safe objects.
19026
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19028
# Library versioning type.
19029
version_type=$version_type
19031
# Format of library name prefix.
19032
libname_spec=$lt_libname_spec
19034
# List of archive names. First name is the real one, the rest are links.
19035
# The last name is the one that the linker finds with -lNAME.
19036
library_names_spec=$lt_library_names_spec
19038
# The coded name of the library, if different from the real name.
19039
soname_spec=$lt_soname_spec
19041
# Commands used to build and install an old-style archive.
19043
old_archive_cmds=$lt_old_archive_cmds_GCJ
19044
old_postinstall_cmds=$lt_old_postinstall_cmds
19045
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19047
# Create an old-style archive from a shared archive.
19048
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19050
# Create a temporary old-style archive to link instead of a shared archive.
19051
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19053
# Commands used to build and install a shared archive.
19054
archive_cmds=$lt_archive_cmds_GCJ
19055
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19056
postinstall_cmds=$lt_postinstall_cmds
19057
postuninstall_cmds=$lt_postuninstall_cmds
19059
# Commands used to build a loadable module (assumed same as above if empty)
19060
module_cmds=$lt_module_cmds_GCJ
19061
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19063
# Commands to strip libraries.
19064
old_striplib=$lt_old_striplib
19065
striplib=$lt_striplib
19067
# Dependencies to place before the objects being linked to create a
19069
predep_objects=$lt_predep_objects_GCJ
19071
# Dependencies to place after the objects being linked to create a
19073
postdep_objects=$lt_postdep_objects_GCJ
19075
# Dependencies to place before the objects being linked to create a
19077
predeps=$lt_predeps_GCJ
19079
# Dependencies to place after the objects being linked to create a
19081
postdeps=$lt_postdeps_GCJ
19083
# The library search path used internally by the compiler when linking
19084
# a shared library.
19085
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19087
# Method to check whether dependent libraries are shared objects.
19088
deplibs_check_method=$lt_deplibs_check_method
19090
# Command to use when deplibs_check_method == file_magic.
19091
file_magic_cmd=$lt_file_magic_cmd
19093
# Flag that allows shared libraries with undefined symbols to be built.
19094
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19096
# Flag that forces no undefined symbols.
19097
no_undefined_flag=$lt_no_undefined_flag_GCJ
19099
# Commands used to finish a libtool library installation in a directory.
19100
finish_cmds=$lt_finish_cmds
19102
# Same as above, but a single script fragment to be evaled but not shown.
19103
finish_eval=$lt_finish_eval
19105
# Take the output of nm and produce a listing of raw symbols and C names.
19106
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19108
# Transform the output of nm in a proper C declaration
19109
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19111
# Transform the output of nm in a C name address pair
19112
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19114
# This is the shared library runtime path variable.
19115
runpath_var=$runpath_var
19117
# This is the shared library path variable.
19118
shlibpath_var=$shlibpath_var
19120
# Is shlibpath searched before the hard-coded library search path?
19121
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19123
# How to hardcode a shared library path into an executable.
19124
hardcode_action=$hardcode_action_GCJ
19126
# Whether we should hardcode library paths into libraries.
19127
hardcode_into_libs=$hardcode_into_libs
19129
# Flag to hardcode \$libdir into a binary during linking.
19130
# This must work even if \$libdir does not exist.
19131
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19133
# If ld is used when linking, flag to hardcode \$libdir into
19134
# a binary during linking. This must work even if \$libdir does
19136
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19138
# Whether we need a single -rpath flag with a separated argument.
19139
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19141
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19142
# resulting binary.
19143
hardcode_direct=$hardcode_direct_GCJ
19145
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19146
# resulting binary.
19147
hardcode_minus_L=$hardcode_minus_L_GCJ
19149
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19150
# the resulting binary.
19151
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19153
# Set to yes if building a shared library automatically hardcodes DIR into the library
19154
# and all subsequent libraries and executables linked against it.
19155
hardcode_automatic=$hardcode_automatic_GCJ
19157
# Variables whose values should be saved in libtool wrapper scripts and
19158
# restored at relink time.
19159
variables_saved_for_relink="$variables_saved_for_relink"
19161
# Whether libtool must link a program against all its dependency libraries.
19162
link_all_deplibs=$link_all_deplibs_GCJ
19164
# Compile-time system search path for libraries
19165
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19167
# Run-time system search path for libraries
19168
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19170
# Fix the shell variable \$srcfile for the compiler.
19171
fix_srcfile_path=$lt_fix_srcfile_path
19173
# Set to yes if exported symbols are required.
19174
always_export_symbols=$always_export_symbols_GCJ
19176
# The commands to list exported symbols.
19177
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19179
# The commands to extract the exported symbol list from a shared archive.
19180
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19182
# Symbols that should not be listed in the preloaded symbols.
19183
exclude_expsyms=$lt_exclude_expsyms_GCJ
19185
# Symbols that must always be exported.
19186
include_expsyms=$lt_include_expsyms_GCJ
19188
# ### END LIBTOOL TAG CONFIG: $tagname
19194
# If there is no Makefile yet, we rely on a make rule to execute
19195
# `config.status --recheck' to rerun these tests and create the
19196
# libtool script then.
19197
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19198
if test -f "$ltmain_in"; then
19199
test -f Makefile && make "$ltmain"
19205
ac_cpp='$CPP $CPPFLAGS'
19206
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19207
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19208
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19220
# Source file extension for RC test sources.
19223
# Object file extension for compiled RC test sources.
19227
# Code to be used in simple compile tests
19228
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19230
# Code to be used in simple link tests
19231
lt_simple_link_test_code="$lt_simple_compile_test_code"
19233
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19235
# If no C compiler was specified, use CC.
19238
# If no C compiler flags were specified, use CFLAGS.
19239
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19241
# Allow CC to be a program name with arguments.
19245
# save warnings/boilerplate of simple test code
19246
ac_outfile=conftest.$ac_objext
19247
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19248
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19249
_lt_compiler_boilerplate=`cat conftest.err`
19252
ac_outfile=conftest.$ac_objext
19253
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19254
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19255
_lt_linker_boilerplate=`cat conftest.err`
19259
# Allow CC to be a program name with arguments.
19264
for cc_temp in $compiler""; do
19266
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19267
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19272
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19274
lt_cv_prog_compiler_c_o_RC=yes
19276
# The else clause should only fire when bootstrapping the
19277
# libtool distribution, otherwise you forgot to ship ltmain.sh
19278
# with your package, and you will get complaints that there are
19279
# no rules to generate ltmain.sh.
19280
if test -f "$ltmain"; then
19281
# See if we are running on zsh, and set the options which allow our commands through
19282
# without removal of \ escapes.
19283
if test -n "${ZSH_VERSION+set}" ; then
19284
setopt NO_GLOB_SUBST
19286
# Now quote all the things that may contain metacharacters while being
19287
# careful not to overquote the AC_SUBSTed values. We take copies of the
19288
# variables and quote the copies for generation of the libtool script.
19289
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19291
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19292
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19293
deplibs_check_method reload_flag reload_cmds need_locks \
19294
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19295
lt_cv_sys_global_symbol_to_c_name_address \
19296
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19297
old_postinstall_cmds old_postuninstall_cmds \
19301
lt_prog_compiler_wl_RC \
19302
lt_prog_compiler_pic_RC \
19303
lt_prog_compiler_static_RC \
19304
lt_prog_compiler_no_builtin_flag_RC \
19305
export_dynamic_flag_spec_RC \
19306
thread_safe_flag_spec_RC \
19307
whole_archive_flag_spec_RC \
19308
enable_shared_with_static_runtimes_RC \
19309
old_archive_cmds_RC \
19310
old_archive_from_new_cmds_RC \
19311
predep_objects_RC \
19312
postdep_objects_RC \
19315
compiler_lib_search_path_RC \
19317
archive_expsym_cmds_RC \
19318
postinstall_cmds_RC \
19319
postuninstall_cmds_RC \
19320
old_archive_from_expsyms_cmds_RC \
19321
allow_undefined_flag_RC \
19322
no_undefined_flag_RC \
19323
export_symbols_cmds_RC \
19324
hardcode_libdir_flag_spec_RC \
19325
hardcode_libdir_flag_spec_ld_RC \
19326
hardcode_libdir_separator_RC \
19327
hardcode_automatic_RC \
19329
module_expsym_cmds_RC \
19330
lt_cv_prog_compiler_c_o_RC \
19331
fix_srcfile_path_RC \
19332
exclude_expsyms_RC \
19333
include_expsyms_RC; do
19336
old_archive_cmds_RC | \
19337
old_archive_from_new_cmds_RC | \
19338
archive_cmds_RC | \
19339
archive_expsym_cmds_RC | \
19341
module_expsym_cmds_RC | \
19342
old_archive_from_expsyms_cmds_RC | \
19343
export_symbols_cmds_RC | \
19344
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19345
postinstall_cmds | postuninstall_cmds | \
19346
old_postinstall_cmds | old_postuninstall_cmds | \
19347
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19348
# Double-quote double-evaled strings.
19349
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19352
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19358
*'\$0 --fallback-echo"')
19359
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19365
cat <<__EOF__ >> "$cfgfile"
19366
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19368
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19370
# Shell to use when invoking shell scripts.
19373
# Whether or not to build shared libraries.
19374
build_libtool_libs=$enable_shared
19376
# Whether or not to build static libraries.
19377
build_old_libs=$enable_static
19379
# Whether or not to add -lc for building shared libraries.
19380
build_libtool_need_lc=$archive_cmds_need_lc_RC
19382
# Whether or not to disallow shared libs when runtime libs are static
19383
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19385
# Whether or not to optimize for fast installation.
19386
fast_install=$enable_fast_install
19389
host_alias=$host_alias
19393
# The build system.
19394
build_alias=$build_alias
19398
# An echo program that does not interpret backslashes.
19403
AR_FLAGS=$lt_AR_FLAGS
19408
# LTCC compiler flags.
19409
LTCFLAGS=$lt_LTCFLAGS
19411
# A language-specific compiler.
19414
# Is the compiler the GNU C compiler?
19420
# The linker used to build libraries.
19423
# Whether we need hard or soft links.
19426
# A BSD-compatible nm program.
19429
# A symbol stripping program
19432
# Used to examine libraries when file_magic_cmd begins "file"
19433
MAGIC_CMD=$MAGIC_CMD
19435
# Used on cygwin: DLL creation program.
19438
# Used on cygwin: object dumper.
19441
# Used on cygwin: assembler.
19444
# The name of the directory that contains temporary libtool files.
19447
# How to create reloadable object files.
19448
reload_flag=$lt_reload_flag
19449
reload_cmds=$lt_reload_cmds
19451
# How to pass a linker flag through the compiler.
19452
wl=$lt_lt_prog_compiler_wl_RC
19454
# Object file suffix (normally "o").
19455
objext="$ac_objext"
19457
# Old archive suffix (normally "a").
19460
# Shared library suffix (normally ".so").
19461
shrext_cmds='$shrext_cmds'
19463
# Executable file suffix (normally "").
19466
# Additional compiler flags for building library objects.
19467
pic_flag=$lt_lt_prog_compiler_pic_RC
19470
# What is the maximum length of a command?
19471
max_cmd_len=$lt_cv_sys_max_cmd_len
19473
# Does compiler simultaneously support -c and -o options?
19474
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19476
# Must we lock files when doing compilation?
19477
need_locks=$lt_need_locks
19479
# Do we need the lib prefix for modules?
19480
need_lib_prefix=$need_lib_prefix
19482
# Do we need a version for libraries?
19483
need_version=$need_version
19485
# Whether dlopen is supported.
19486
dlopen_support=$enable_dlopen
19488
# Whether dlopen of programs is supported.
19489
dlopen_self=$enable_dlopen_self
19491
# Whether dlopen of statically linked programs is supported.
19492
dlopen_self_static=$enable_dlopen_self_static
19494
# Compiler flag to prevent dynamic linking.
19495
link_static_flag=$lt_lt_prog_compiler_static_RC
19497
# Compiler flag to turn off builtin functions.
19498
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19500
# Compiler flag to allow reflexive dlopens.
19501
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19503
# Compiler flag to generate shared objects directly from archives.
19504
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19506
# Compiler flag to generate thread-safe objects.
19507
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19509
# Library versioning type.
19510
version_type=$version_type
19512
# Format of library name prefix.
19513
libname_spec=$lt_libname_spec
19515
# List of archive names. First name is the real one, the rest are links.
19516
# The last name is the one that the linker finds with -lNAME.
19517
library_names_spec=$lt_library_names_spec
19519
# The coded name of the library, if different from the real name.
19520
soname_spec=$lt_soname_spec
19522
# Commands used to build and install an old-style archive.
19524
old_archive_cmds=$lt_old_archive_cmds_RC
19525
old_postinstall_cmds=$lt_old_postinstall_cmds
19526
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19528
# Create an old-style archive from a shared archive.
19529
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19531
# Create a temporary old-style archive to link instead of a shared archive.
19532
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19534
# Commands used to build and install a shared archive.
19535
archive_cmds=$lt_archive_cmds_RC
19536
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19537
postinstall_cmds=$lt_postinstall_cmds
19538
postuninstall_cmds=$lt_postuninstall_cmds
19540
# Commands used to build a loadable module (assumed same as above if empty)
19541
module_cmds=$lt_module_cmds_RC
19542
module_expsym_cmds=$lt_module_expsym_cmds_RC
19544
# Commands to strip libraries.
19545
old_striplib=$lt_old_striplib
19546
striplib=$lt_striplib
19548
# Dependencies to place before the objects being linked to create a
19550
predep_objects=$lt_predep_objects_RC
19552
# Dependencies to place after the objects being linked to create a
19554
postdep_objects=$lt_postdep_objects_RC
19556
# Dependencies to place before the objects being linked to create a
19558
predeps=$lt_predeps_RC
19560
# Dependencies to place after the objects being linked to create a
19562
postdeps=$lt_postdeps_RC
19564
# The library search path used internally by the compiler when linking
19565
# a shared library.
19566
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19568
# Method to check whether dependent libraries are shared objects.
19569
deplibs_check_method=$lt_deplibs_check_method
19571
# Command to use when deplibs_check_method == file_magic.
19572
file_magic_cmd=$lt_file_magic_cmd
19574
# Flag that allows shared libraries with undefined symbols to be built.
19575
allow_undefined_flag=$lt_allow_undefined_flag_RC
19577
# Flag that forces no undefined symbols.
19578
no_undefined_flag=$lt_no_undefined_flag_RC
19580
# Commands used to finish a libtool library installation in a directory.
19581
finish_cmds=$lt_finish_cmds
19583
# Same as above, but a single script fragment to be evaled but not shown.
19584
finish_eval=$lt_finish_eval
19586
# Take the output of nm and produce a listing of raw symbols and C names.
19587
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19589
# Transform the output of nm in a proper C declaration
19590
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19592
# Transform the output of nm in a C name address pair
19593
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19595
# This is the shared library runtime path variable.
19596
runpath_var=$runpath_var
19598
# This is the shared library path variable.
19599
shlibpath_var=$shlibpath_var
19601
# Is shlibpath searched before the hard-coded library search path?
19602
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19604
# How to hardcode a shared library path into an executable.
19605
hardcode_action=$hardcode_action_RC
19607
# Whether we should hardcode library paths into libraries.
19608
hardcode_into_libs=$hardcode_into_libs
19610
# Flag to hardcode \$libdir into a binary during linking.
19611
# This must work even if \$libdir does not exist.
19612
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19614
# If ld is used when linking, flag to hardcode \$libdir into
19615
# a binary during linking. This must work even if \$libdir does
19617
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19619
# Whether we need a single -rpath flag with a separated argument.
19620
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19622
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19623
# resulting binary.
19624
hardcode_direct=$hardcode_direct_RC
19626
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19627
# resulting binary.
19628
hardcode_minus_L=$hardcode_minus_L_RC
19630
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19631
# the resulting binary.
19632
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19634
# Set to yes if building a shared library automatically hardcodes DIR into the library
19635
# and all subsequent libraries and executables linked against it.
19636
hardcode_automatic=$hardcode_automatic_RC
19638
# Variables whose values should be saved in libtool wrapper scripts and
19639
# restored at relink time.
19640
variables_saved_for_relink="$variables_saved_for_relink"
19642
# Whether libtool must link a program against all its dependency libraries.
19643
link_all_deplibs=$link_all_deplibs_RC
19645
# Compile-time system search path for libraries
19646
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19648
# Run-time system search path for libraries
19649
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19651
# Fix the shell variable \$srcfile for the compiler.
19652
fix_srcfile_path=$lt_fix_srcfile_path
19654
# Set to yes if exported symbols are required.
19655
always_export_symbols=$always_export_symbols_RC
19657
# The commands to list exported symbols.
19658
export_symbols_cmds=$lt_export_symbols_cmds_RC
19660
# The commands to extract the exported symbol list from a shared archive.
19661
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19663
# Symbols that should not be listed in the preloaded symbols.
19664
exclude_expsyms=$lt_exclude_expsyms_RC
19666
# Symbols that must always be exported.
19667
include_expsyms=$lt_include_expsyms_RC
19669
# ### END LIBTOOL TAG CONFIG: $tagname
19675
# If there is no Makefile yet, we rely on a make rule to execute
19676
# `config.status --recheck' to rerun these tests and create the
19677
# libtool script then.
19678
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19679
if test -f "$ltmain_in"; then
19680
test -f Makefile && make "$ltmain"
19686
ac_cpp='$CPP $CPPFLAGS'
19687
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19688
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19689
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19696
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19697
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19698
{ (exit 1); exit 1; }; }
19702
# Append the new tag name to the list of available tags.
19703
if test -n "$tagname" ; then
19704
available_tags="$available_tags $tagname"
19710
# Now substitute the updated list of available tags.
19711
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19712
mv "${ofile}T" "$ofile"
19716
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19717
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19718
{ (exit 1); exit 1; }; }
19724
# This can be used to rebuild libtool when needed
19725
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19727
# Always use our own libtool.
19728
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19730
# Prevent multiple expansion
19752
{ echo "$as_me:$LINENO: checking for X" >&5
19753
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19756
# Check whether --with-x was given.
19757
if test "${with_x+set}" = set; then
19761
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19762
if test "x$with_x" = xno; then
19763
# The user explicitly disabled X.
19766
case $x_includes,$x_libraries in #(
19767
*\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19768
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19769
{ (exit 1); exit 1; }; };; #(
19770
*,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19771
echo $ECHO_N "(cached) $ECHO_C" >&6
19773
# One or both of the vars are not set, and there is no cached value.
19774
ac_x_includes=no ac_x_libraries=no
19775
rm -f -r conftest.dir
19776
if mkdir conftest.dir; then
19778
cat >Imakefile <<'_ACEOF'
19780
@echo incroot='${INCROOT}'
19782
@echo usrlibdir='${USRLIBDIR}'
19784
@echo libdir='${LIBDIR}'
19786
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19787
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19788
for ac_var in incroot usrlibdir libdir; do
19789
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19791
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19792
for ac_extension in a so sl; do
19793
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19794
test -f "$ac_im_libdir/libX11.$ac_extension"; then
19795
ac_im_usrlibdir=$ac_im_libdir; break
19798
# Screen out bogus values from the imake configuration. They are
19799
# bogus both because they are the default anyway, and because
19800
# using them would break gcc on systems where it needs fixed includes.
19801
case $ac_im_incroot in
19802
/usr/include) ac_x_includes= ;;
19803
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19805
case $ac_im_usrlibdir in
19806
/usr/lib | /lib) ;;
19807
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19811
rm -f -r conftest.dir
19814
# Standard set of common directories for X headers.
19815
# Check X11 before X11Rn because it is often a symlink to the current release.
19827
/usr/local/X11/include
19828
/usr/local/X11R6/include
19829
/usr/local/X11R5/include
19830
/usr/local/X11R4/include
19832
/usr/local/include/X11
19833
/usr/local/include/X11R6
19834
/usr/local/include/X11R5
19835
/usr/local/include/X11R4
19839
/usr/XFree86/include/X11
19843
/usr/unsupported/include
19844
/usr/athena/include
19845
/usr/local/x11r5/include
19846
/usr/lpp/Xamples/include
19848
/usr/openwin/include
19849
/usr/openwin/share/include'
19851
if test "$ac_x_includes" = no; then
19852
# Guess where to find include files, by looking for Xlib.h.
19853
# First, try using that file with no special directory specified.
19854
cat >conftest.$ac_ext <<_ACEOF
19857
cat confdefs.h >>conftest.$ac_ext
19858
cat >>conftest.$ac_ext <<_ACEOF
19859
/* end confdefs.h. */
19860
@%:@include <X11/Xlib.h>
19862
if { (ac_try="$ac_cpp conftest.$ac_ext"
19863
case "(($ac_try" in
19864
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865
*) ac_try_echo=$ac_try;;
19867
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19870
grep -v '^ *+' conftest.er1 >conftest.err
19872
cat conftest.err >&5
19873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874
(exit $ac_status); } >/dev/null && {
19875
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19876
test ! -s conftest.err
19878
# We can compile using X headers with no special include directory.
19881
echo "$as_me: failed program was:" >&5
19882
sed 's/^/| /' conftest.$ac_ext >&5
19884
for ac_dir in $ac_x_header_dirs; do
19885
if test -r "$ac_dir/X11/Xlib.h"; then
19886
ac_x_includes=$ac_dir
19892
rm -f conftest.err conftest.$ac_ext
19893
fi # $ac_x_includes = no
19895
if test "$ac_x_libraries" = no; then
19896
# Check for the libraries.
19897
# See if we find them without any special options.
19898
# Don't add to $LIBS permanently.
19901
cat >conftest.$ac_ext <<_ACEOF
19904
cat confdefs.h >>conftest.$ac_ext
19905
cat >>conftest.$ac_ext <<_ACEOF
19906
/* end confdefs.h. */
19907
@%:@include <X11/Xlib.h>
19916
rm -f conftest.$ac_objext conftest$ac_exeext
19917
if { (ac_try="$ac_link"
19918
case "(($ac_try" in
19919
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920
*) ac_try_echo=$ac_try;;
19922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923
(eval "$ac_link") 2>conftest.er1
19925
grep -v '^ *+' conftest.er1 >conftest.err
19927
cat conftest.err >&5
19928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929
(exit $ac_status); } && {
19930
test -z "$ac_c_werror_flag" ||
19931
test ! -s conftest.err
19932
} && test -s conftest$ac_exeext &&
19933
$as_test_x conftest$ac_exeext; then
19935
# We can link X programs with no special library path.
19938
echo "$as_me: failed program was:" >&5
19939
sed 's/^/| /' conftest.$ac_ext >&5
19942
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19944
# Don't even attempt the hair of trying to link an X program!
19945
for ac_extension in a so sl; do
19946
if test -r "$ac_dir/libX11.$ac_extension"; then
19947
ac_x_libraries=$ac_dir
19954
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19955
conftest$ac_exeext conftest.$ac_ext
19956
fi # $ac_x_libraries = no
19958
case $ac_x_includes,$ac_x_libraries in #(
19959
no,* | *,no | *\'*)
19960
# Didn't find X, or a directory has "'" in its name.
19961
ac_cv_have_x="have_x=no";; #(
19963
# Record where we found X for the cache.
19964
ac_cv_have_x="have_x=yes\
19965
ac_x_includes='$ac_x_includes'\
19966
ac_x_libraries='$ac_x_libraries'"
19972
eval "$ac_cv_have_x"
19975
if test "$have_x" != yes; then
19976
{ echo "$as_me:$LINENO: result: $have_x" >&5
19977
echo "${ECHO_T}$have_x" >&6; }
19980
# If each of the values was on the command line, it overrides each guess.
19981
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19982
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19983
# Update the cache value to reflect the command line values.
19984
ac_cv_have_x="have_x=yes\
19985
ac_x_includes='$x_includes'\
19986
ac_x_libraries='$x_libraries'"
19987
{ echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19988
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19991
if test "$no_x" = yes; then
19992
# Not all programs may use this symbol, but it does not hurt to define it.
19994
cat >>confdefs.h <<\_ACEOF
19995
@%:@define X_DISPLAY_MISSING 1
19998
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20000
if test -n "$x_includes"; then
20001
X_CFLAGS="$X_CFLAGS -I$x_includes"
20004
# It would also be nice to do this for all -L options, not just this one.
20005
if test -n "$x_libraries"; then
20006
X_LIBS="$X_LIBS -L$x_libraries"
20007
# For Solaris; some versions of Sun CC require a space after -R and
20008
# others require no space. Words are not sufficient . . . .
20009
{ echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20010
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
20011
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20012
ac_xsave_c_werror_flag=$ac_c_werror_flag
20013
ac_c_werror_flag=yes
20014
cat >conftest.$ac_ext <<_ACEOF
20017
cat confdefs.h >>conftest.$ac_ext
20018
cat >>conftest.$ac_ext <<_ACEOF
20019
/* end confdefs.h. */
20029
rm -f conftest.$ac_objext conftest$ac_exeext
20030
if { (ac_try="$ac_link"
20031
case "(($ac_try" in
20032
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033
*) ac_try_echo=$ac_try;;
20035
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036
(eval "$ac_link") 2>conftest.er1
20038
grep -v '^ *+' conftest.er1 >conftest.err
20040
cat conftest.err >&5
20041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042
(exit $ac_status); } && {
20043
test -z "$ac_c_werror_flag" ||
20044
test ! -s conftest.err
20045
} && test -s conftest$ac_exeext &&
20046
$as_test_x conftest$ac_exeext; then
20047
{ echo "$as_me:$LINENO: result: no" >&5
20048
echo "${ECHO_T}no" >&6; }
20049
X_LIBS="$X_LIBS -R$x_libraries"
20051
echo "$as_me: failed program was:" >&5
20052
sed 's/^/| /' conftest.$ac_ext >&5
20054
LIBS="$ac_xsave_LIBS -R $x_libraries"
20055
cat >conftest.$ac_ext <<_ACEOF
20058
cat confdefs.h >>conftest.$ac_ext
20059
cat >>conftest.$ac_ext <<_ACEOF
20060
/* end confdefs.h. */
20070
rm -f conftest.$ac_objext conftest$ac_exeext
20071
if { (ac_try="$ac_link"
20072
case "(($ac_try" in
20073
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074
*) ac_try_echo=$ac_try;;
20076
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077
(eval "$ac_link") 2>conftest.er1
20079
grep -v '^ *+' conftest.er1 >conftest.err
20081
cat conftest.err >&5
20082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083
(exit $ac_status); } && {
20084
test -z "$ac_c_werror_flag" ||
20085
test ! -s conftest.err
20086
} && test -s conftest$ac_exeext &&
20087
$as_test_x conftest$ac_exeext; then
20088
{ echo "$as_me:$LINENO: result: yes" >&5
20089
echo "${ECHO_T}yes" >&6; }
20090
X_LIBS="$X_LIBS -R $x_libraries"
20092
echo "$as_me: failed program was:" >&5
20093
sed 's/^/| /' conftest.$ac_ext >&5
20095
{ echo "$as_me:$LINENO: result: neither works" >&5
20096
echo "${ECHO_T}neither works" >&6; }
20099
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20100
conftest$ac_exeext conftest.$ac_ext
20103
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20104
conftest$ac_exeext conftest.$ac_ext
20105
ac_c_werror_flag=$ac_xsave_c_werror_flag
20106
LIBS=$ac_xsave_LIBS
20109
# Check for system-dependent libraries X programs must link with.
20110
# Do this before checking for the system-independent R6 libraries
20111
# (-lICE), since we may need -lsocket or whatever for X linking.
20113
if test "$ISC" = yes; then
20114
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20116
# Martyn Johnson says this is needed for Ultrix, if the X
20117
# libraries were built with DECnet support. And Karl Berry says
20118
# the Alpha needs dnet_stub (dnet does not exist).
20119
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20120
cat >conftest.$ac_ext <<_ACEOF
20123
cat confdefs.h >>conftest.$ac_ext
20124
cat >>conftest.$ac_ext <<_ACEOF
20125
/* end confdefs.h. */
20127
/* Override any GCC internal prototype to avoid an error.
20128
Use char because int might match the return type of a GCC
20129
builtin and then its argument prototype would still apply. */
20133
char XOpenDisplay ();
20137
return XOpenDisplay ();
20142
rm -f conftest.$ac_objext conftest$ac_exeext
20143
if { (ac_try="$ac_link"
20144
case "(($ac_try" in
20145
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146
*) ac_try_echo=$ac_try;;
20148
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149
(eval "$ac_link") 2>conftest.er1
20151
grep -v '^ *+' conftest.er1 >conftest.err
20153
cat conftest.err >&5
20154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155
(exit $ac_status); } && {
20156
test -z "$ac_c_werror_flag" ||
20157
test ! -s conftest.err
20158
} && test -s conftest$ac_exeext &&
20159
$as_test_x conftest$ac_exeext; then
20162
echo "$as_me: failed program was:" >&5
20163
sed 's/^/| /' conftest.$ac_ext >&5
20165
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20166
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20167
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20168
echo $ECHO_N "(cached) $ECHO_C" >&6
20170
ac_check_lib_save_LIBS=$LIBS
20171
LIBS="-ldnet $LIBS"
20172
cat >conftest.$ac_ext <<_ACEOF
20175
cat confdefs.h >>conftest.$ac_ext
20176
cat >>conftest.$ac_ext <<_ACEOF
20177
/* end confdefs.h. */
20179
/* Override any GCC internal prototype to avoid an error.
20180
Use char because int might match the return type of a GCC
20181
builtin and then its argument prototype would still apply. */
20189
return dnet_ntoa ();
20194
rm -f conftest.$ac_objext conftest$ac_exeext
20195
if { (ac_try="$ac_link"
20196
case "(($ac_try" in
20197
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198
*) ac_try_echo=$ac_try;;
20200
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20201
(eval "$ac_link") 2>conftest.er1
20203
grep -v '^ *+' conftest.er1 >conftest.err
20205
cat conftest.err >&5
20206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207
(exit $ac_status); } && {
20208
test -z "$ac_c_werror_flag" ||
20209
test ! -s conftest.err
20210
} && test -s conftest$ac_exeext &&
20211
$as_test_x conftest$ac_exeext; then
20212
ac_cv_lib_dnet_dnet_ntoa=yes
20214
echo "$as_me: failed program was:" >&5
20215
sed 's/^/| /' conftest.$ac_ext >&5
20217
ac_cv_lib_dnet_dnet_ntoa=no
20220
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20221
conftest$ac_exeext conftest.$ac_ext
20222
LIBS=$ac_check_lib_save_LIBS
20224
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20225
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20226
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20227
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20230
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20231
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20232
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20233
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20234
echo $ECHO_N "(cached) $ECHO_C" >&6
20236
ac_check_lib_save_LIBS=$LIBS
20237
LIBS="-ldnet_stub $LIBS"
20238
cat >conftest.$ac_ext <<_ACEOF
20241
cat confdefs.h >>conftest.$ac_ext
20242
cat >>conftest.$ac_ext <<_ACEOF
20243
/* end confdefs.h. */
20245
/* Override any GCC internal prototype to avoid an error.
20246
Use char because int might match the return type of a GCC
20247
builtin and then its argument prototype would still apply. */
20255
return dnet_ntoa ();
20260
rm -f conftest.$ac_objext conftest$ac_exeext
20261
if { (ac_try="$ac_link"
20262
case "(($ac_try" in
20263
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264
*) ac_try_echo=$ac_try;;
20266
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267
(eval "$ac_link") 2>conftest.er1
20269
grep -v '^ *+' conftest.er1 >conftest.err
20271
cat conftest.err >&5
20272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273
(exit $ac_status); } && {
20274
test -z "$ac_c_werror_flag" ||
20275
test ! -s conftest.err
20276
} && test -s conftest$ac_exeext &&
20277
$as_test_x conftest$ac_exeext; then
20278
ac_cv_lib_dnet_stub_dnet_ntoa=yes
20280
echo "$as_me: failed program was:" >&5
20281
sed 's/^/| /' conftest.$ac_ext >&5
20283
ac_cv_lib_dnet_stub_dnet_ntoa=no
20286
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20287
conftest$ac_exeext conftest.$ac_ext
20288
LIBS=$ac_check_lib_save_LIBS
20290
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20291
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20292
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20293
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20299
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20300
conftest$ac_exeext conftest.$ac_ext
20301
LIBS="$ac_xsave_LIBS"
20303
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20304
# to get the SysV transport functions.
20305
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20307
# The nsl library prevents programs from opening the X display
20308
# on Irix 5.2, according to T.E. Dickey.
20309
# The functions gethostbyname, getservbyname, and inet_addr are
20310
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20311
{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
20312
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20313
if test "${ac_cv_func_gethostbyname+set}" = set; then
20314
echo $ECHO_N "(cached) $ECHO_C" >&6
20316
cat >conftest.$ac_ext <<_ACEOF
20319
cat confdefs.h >>conftest.$ac_ext
20320
cat >>conftest.$ac_ext <<_ACEOF
20321
/* end confdefs.h. */
20322
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20323
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20324
#define gethostbyname innocuous_gethostbyname
20326
/* System header to define __stub macros and hopefully few prototypes,
20327
which can conflict with char gethostbyname (); below.
20328
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20329
<limits.h> exists even on freestanding compilers. */
20332
# include <limits.h>
20334
# include <assert.h>
20337
#undef gethostbyname
20339
/* Override any GCC internal prototype to avoid an error.
20340
Use char because int might match the return type of a GCC
20341
builtin and then its argument prototype would still apply. */
20345
char gethostbyname ();
20346
/* The GNU C library defines this for functions which it implements
20347
to always fail with ENOSYS. Some functions are actually named
20348
something starting with __ and the normal name is an alias. */
20349
#if defined __stub_gethostbyname || defined __stub___gethostbyname
20356
return gethostbyname ();
20361
rm -f conftest.$ac_objext conftest$ac_exeext
20362
if { (ac_try="$ac_link"
20363
case "(($ac_try" in
20364
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365
*) ac_try_echo=$ac_try;;
20367
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368
(eval "$ac_link") 2>conftest.er1
20370
grep -v '^ *+' conftest.er1 >conftest.err
20372
cat conftest.err >&5
20373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374
(exit $ac_status); } && {
20375
test -z "$ac_c_werror_flag" ||
20376
test ! -s conftest.err
20377
} && test -s conftest$ac_exeext &&
20378
$as_test_x conftest$ac_exeext; then
20379
ac_cv_func_gethostbyname=yes
20381
echo "$as_me: failed program was:" >&5
20382
sed 's/^/| /' conftest.$ac_ext >&5
20384
ac_cv_func_gethostbyname=no
20387
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20388
conftest$ac_exeext conftest.$ac_ext
20390
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20391
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20393
if test $ac_cv_func_gethostbyname = no; then
20394
{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20395
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20396
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20397
echo $ECHO_N "(cached) $ECHO_C" >&6
20399
ac_check_lib_save_LIBS=$LIBS
20401
cat >conftest.$ac_ext <<_ACEOF
20404
cat confdefs.h >>conftest.$ac_ext
20405
cat >>conftest.$ac_ext <<_ACEOF
20406
/* end confdefs.h. */
20408
/* Override any GCC internal prototype to avoid an error.
20409
Use char because int might match the return type of a GCC
20410
builtin and then its argument prototype would still apply. */
20414
char gethostbyname ();
20418
return gethostbyname ();
20423
rm -f conftest.$ac_objext conftest$ac_exeext
20424
if { (ac_try="$ac_link"
20425
case "(($ac_try" in
20426
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427
*) ac_try_echo=$ac_try;;
20429
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430
(eval "$ac_link") 2>conftest.er1
20432
grep -v '^ *+' conftest.er1 >conftest.err
20434
cat conftest.err >&5
20435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436
(exit $ac_status); } && {
20437
test -z "$ac_c_werror_flag" ||
20438
test ! -s conftest.err
20439
} && test -s conftest$ac_exeext &&
20440
$as_test_x conftest$ac_exeext; then
20441
ac_cv_lib_nsl_gethostbyname=yes
20443
echo "$as_me: failed program was:" >&5
20444
sed 's/^/| /' conftest.$ac_ext >&5
20446
ac_cv_lib_nsl_gethostbyname=no
20449
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20450
conftest$ac_exeext conftest.$ac_ext
20451
LIBS=$ac_check_lib_save_LIBS
20453
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20454
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20455
if test $ac_cv_lib_nsl_gethostbyname = yes; then
20456
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20459
if test $ac_cv_lib_nsl_gethostbyname = no; then
20460
{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20461
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20462
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20463
echo $ECHO_N "(cached) $ECHO_C" >&6
20465
ac_check_lib_save_LIBS=$LIBS
20467
cat >conftest.$ac_ext <<_ACEOF
20470
cat confdefs.h >>conftest.$ac_ext
20471
cat >>conftest.$ac_ext <<_ACEOF
20472
/* end confdefs.h. */
20474
/* Override any GCC internal prototype to avoid an error.
20475
Use char because int might match the return type of a GCC
20476
builtin and then its argument prototype would still apply. */
20480
char gethostbyname ();
20484
return gethostbyname ();
20489
rm -f conftest.$ac_objext conftest$ac_exeext
20490
if { (ac_try="$ac_link"
20491
case "(($ac_try" in
20492
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493
*) ac_try_echo=$ac_try;;
20495
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496
(eval "$ac_link") 2>conftest.er1
20498
grep -v '^ *+' conftest.er1 >conftest.err
20500
cat conftest.err >&5
20501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502
(exit $ac_status); } && {
20503
test -z "$ac_c_werror_flag" ||
20504
test ! -s conftest.err
20505
} && test -s conftest$ac_exeext &&
20506
$as_test_x conftest$ac_exeext; then
20507
ac_cv_lib_bsd_gethostbyname=yes
20509
echo "$as_me: failed program was:" >&5
20510
sed 's/^/| /' conftest.$ac_ext >&5
20512
ac_cv_lib_bsd_gethostbyname=no
20515
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20516
conftest$ac_exeext conftest.$ac_ext
20517
LIBS=$ac_check_lib_save_LIBS
20519
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20520
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20521
if test $ac_cv_lib_bsd_gethostbyname = yes; then
20522
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20528
# lieder@skyler.mavd.honeywell.com says without -lsocket,
20529
# socket/setsockopt and other routines are undefined under SCO ODT
20530
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20531
# on later versions), says Simon Leinen: it contains gethostby*
20532
# variants that don't use the name server (or something). -lsocket
20533
# must be given before -lnsl if both are needed. We assume that
20534
# if connect needs -lnsl, so does gethostbyname.
20535
{ echo "$as_me:$LINENO: checking for connect" >&5
20536
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20537
if test "${ac_cv_func_connect+set}" = set; then
20538
echo $ECHO_N "(cached) $ECHO_C" >&6
20540
cat >conftest.$ac_ext <<_ACEOF
20543
cat confdefs.h >>conftest.$ac_ext
20544
cat >>conftest.$ac_ext <<_ACEOF
20545
/* end confdefs.h. */
20546
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
20547
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20548
#define connect innocuous_connect
20550
/* System header to define __stub macros and hopefully few prototypes,
20551
which can conflict with char connect (); below.
20552
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20553
<limits.h> exists even on freestanding compilers. */
20556
# include <limits.h>
20558
# include <assert.h>
20563
/* Override any GCC internal prototype to avoid an error.
20564
Use char because int might match the return type of a GCC
20565
builtin and then its argument prototype would still apply. */
20570
/* The GNU C library defines this for functions which it implements
20571
to always fail with ENOSYS. Some functions are actually named
20572
something starting with __ and the normal name is an alias. */
20573
#if defined __stub_connect || defined __stub___connect
20585
rm -f conftest.$ac_objext conftest$ac_exeext
20586
if { (ac_try="$ac_link"
20587
case "(($ac_try" in
20588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589
*) ac_try_echo=$ac_try;;
20591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592
(eval "$ac_link") 2>conftest.er1
20594
grep -v '^ *+' conftest.er1 >conftest.err
20596
cat conftest.err >&5
20597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598
(exit $ac_status); } && {
20599
test -z "$ac_c_werror_flag" ||
20600
test ! -s conftest.err
20601
} && test -s conftest$ac_exeext &&
20602
$as_test_x conftest$ac_exeext; then
20603
ac_cv_func_connect=yes
20605
echo "$as_me: failed program was:" >&5
20606
sed 's/^/| /' conftest.$ac_ext >&5
20608
ac_cv_func_connect=no
20611
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20612
conftest$ac_exeext conftest.$ac_ext
20614
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20615
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20617
if test $ac_cv_func_connect = no; then
20618
{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20619
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20620
if test "${ac_cv_lib_socket_connect+set}" = set; then
20621
echo $ECHO_N "(cached) $ECHO_C" >&6
20623
ac_check_lib_save_LIBS=$LIBS
20624
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20625
cat >conftest.$ac_ext <<_ACEOF
20628
cat confdefs.h >>conftest.$ac_ext
20629
cat >>conftest.$ac_ext <<_ACEOF
20630
/* end confdefs.h. */
20632
/* Override any GCC internal prototype to avoid an error.
20633
Use char because int might match the return type of a GCC
20634
builtin and then its argument prototype would still apply. */
20647
rm -f conftest.$ac_objext conftest$ac_exeext
20648
if { (ac_try="$ac_link"
20649
case "(($ac_try" in
20650
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651
*) ac_try_echo=$ac_try;;
20653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654
(eval "$ac_link") 2>conftest.er1
20656
grep -v '^ *+' conftest.er1 >conftest.err
20658
cat conftest.err >&5
20659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660
(exit $ac_status); } && {
20661
test -z "$ac_c_werror_flag" ||
20662
test ! -s conftest.err
20663
} && test -s conftest$ac_exeext &&
20664
$as_test_x conftest$ac_exeext; then
20665
ac_cv_lib_socket_connect=yes
20667
echo "$as_me: failed program was:" >&5
20668
sed 's/^/| /' conftest.$ac_ext >&5
20670
ac_cv_lib_socket_connect=no
20673
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20674
conftest$ac_exeext conftest.$ac_ext
20675
LIBS=$ac_check_lib_save_LIBS
20677
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20678
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20679
if test $ac_cv_lib_socket_connect = yes; then
20680
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20685
# Guillermo Gomez says -lposix is necessary on A/UX.
20686
{ echo "$as_me:$LINENO: checking for remove" >&5
20687
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20688
if test "${ac_cv_func_remove+set}" = set; then
20689
echo $ECHO_N "(cached) $ECHO_C" >&6
20691
cat >conftest.$ac_ext <<_ACEOF
20694
cat confdefs.h >>conftest.$ac_ext
20695
cat >>conftest.$ac_ext <<_ACEOF
20696
/* end confdefs.h. */
20697
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
20698
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20699
#define remove innocuous_remove
20701
/* System header to define __stub macros and hopefully few prototypes,
20702
which can conflict with char remove (); below.
20703
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20704
<limits.h> exists even on freestanding compilers. */
20707
# include <limits.h>
20709
# include <assert.h>
20714
/* Override any GCC internal prototype to avoid an error.
20715
Use char because int might match the return type of a GCC
20716
builtin and then its argument prototype would still apply. */
20721
/* The GNU C library defines this for functions which it implements
20722
to always fail with ENOSYS. Some functions are actually named
20723
something starting with __ and the normal name is an alias. */
20724
#if defined __stub_remove || defined __stub___remove
20736
rm -f conftest.$ac_objext conftest$ac_exeext
20737
if { (ac_try="$ac_link"
20738
case "(($ac_try" in
20739
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740
*) ac_try_echo=$ac_try;;
20742
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743
(eval "$ac_link") 2>conftest.er1
20745
grep -v '^ *+' conftest.er1 >conftest.err
20747
cat conftest.err >&5
20748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749
(exit $ac_status); } && {
20750
test -z "$ac_c_werror_flag" ||
20751
test ! -s conftest.err
20752
} && test -s conftest$ac_exeext &&
20753
$as_test_x conftest$ac_exeext; then
20754
ac_cv_func_remove=yes
20756
echo "$as_me: failed program was:" >&5
20757
sed 's/^/| /' conftest.$ac_ext >&5
20759
ac_cv_func_remove=no
20762
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20763
conftest$ac_exeext conftest.$ac_ext
20765
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20766
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20768
if test $ac_cv_func_remove = no; then
20769
{ echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20770
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
20771
if test "${ac_cv_lib_posix_remove+set}" = set; then
20772
echo $ECHO_N "(cached) $ECHO_C" >&6
20774
ac_check_lib_save_LIBS=$LIBS
20775
LIBS="-lposix $LIBS"
20776
cat >conftest.$ac_ext <<_ACEOF
20779
cat confdefs.h >>conftest.$ac_ext
20780
cat >>conftest.$ac_ext <<_ACEOF
20781
/* end confdefs.h. */
20783
/* Override any GCC internal prototype to avoid an error.
20784
Use char because int might match the return type of a GCC
20785
builtin and then its argument prototype would still apply. */
20798
rm -f conftest.$ac_objext conftest$ac_exeext
20799
if { (ac_try="$ac_link"
20800
case "(($ac_try" in
20801
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802
*) ac_try_echo=$ac_try;;
20804
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805
(eval "$ac_link") 2>conftest.er1
20807
grep -v '^ *+' conftest.er1 >conftest.err
20809
cat conftest.err >&5
20810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811
(exit $ac_status); } && {
20812
test -z "$ac_c_werror_flag" ||
20813
test ! -s conftest.err
20814
} && test -s conftest$ac_exeext &&
20815
$as_test_x conftest$ac_exeext; then
20816
ac_cv_lib_posix_remove=yes
20818
echo "$as_me: failed program was:" >&5
20819
sed 's/^/| /' conftest.$ac_ext >&5
20821
ac_cv_lib_posix_remove=no
20824
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20825
conftest$ac_exeext conftest.$ac_ext
20826
LIBS=$ac_check_lib_save_LIBS
20828
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20829
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
20830
if test $ac_cv_lib_posix_remove = yes; then
20831
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20836
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20837
{ echo "$as_me:$LINENO: checking for shmat" >&5
20838
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
20839
if test "${ac_cv_func_shmat+set}" = set; then
20840
echo $ECHO_N "(cached) $ECHO_C" >&6
20842
cat >conftest.$ac_ext <<_ACEOF
20845
cat confdefs.h >>conftest.$ac_ext
20846
cat >>conftest.$ac_ext <<_ACEOF
20847
/* end confdefs.h. */
20848
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20849
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20850
#define shmat innocuous_shmat
20852
/* System header to define __stub macros and hopefully few prototypes,
20853
which can conflict with char shmat (); below.
20854
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20855
<limits.h> exists even on freestanding compilers. */
20858
# include <limits.h>
20860
# include <assert.h>
20865
/* Override any GCC internal prototype to avoid an error.
20866
Use char because int might match the return type of a GCC
20867
builtin and then its argument prototype would still apply. */
20872
/* The GNU C library defines this for functions which it implements
20873
to always fail with ENOSYS. Some functions are actually named
20874
something starting with __ and the normal name is an alias. */
20875
#if defined __stub_shmat || defined __stub___shmat
20887
rm -f conftest.$ac_objext conftest$ac_exeext
20888
if { (ac_try="$ac_link"
20889
case "(($ac_try" in
20890
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891
*) ac_try_echo=$ac_try;;
20893
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20894
(eval "$ac_link") 2>conftest.er1
20896
grep -v '^ *+' conftest.er1 >conftest.err
20898
cat conftest.err >&5
20899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900
(exit $ac_status); } && {
20901
test -z "$ac_c_werror_flag" ||
20902
test ! -s conftest.err
20903
} && test -s conftest$ac_exeext &&
20904
$as_test_x conftest$ac_exeext; then
20905
ac_cv_func_shmat=yes
20907
echo "$as_me: failed program was:" >&5
20908
sed 's/^/| /' conftest.$ac_ext >&5
20910
ac_cv_func_shmat=no
20913
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20914
conftest$ac_exeext conftest.$ac_ext
20916
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20917
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
20919
if test $ac_cv_func_shmat = no; then
20920
{ echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20921
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
20922
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20923
echo $ECHO_N "(cached) $ECHO_C" >&6
20925
ac_check_lib_save_LIBS=$LIBS
20927
cat >conftest.$ac_ext <<_ACEOF
20930
cat confdefs.h >>conftest.$ac_ext
20931
cat >>conftest.$ac_ext <<_ACEOF
20932
/* end confdefs.h. */
20934
/* Override any GCC internal prototype to avoid an error.
20935
Use char because int might match the return type of a GCC
20936
builtin and then its argument prototype would still apply. */
20949
rm -f conftest.$ac_objext conftest$ac_exeext
20950
if { (ac_try="$ac_link"
20951
case "(($ac_try" in
20952
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953
*) ac_try_echo=$ac_try;;
20955
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956
(eval "$ac_link") 2>conftest.er1
20958
grep -v '^ *+' conftest.er1 >conftest.err
20960
cat conftest.err >&5
20961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962
(exit $ac_status); } && {
20963
test -z "$ac_c_werror_flag" ||
20964
test ! -s conftest.err
20965
} && test -s conftest$ac_exeext &&
20966
$as_test_x conftest$ac_exeext; then
20967
ac_cv_lib_ipc_shmat=yes
20969
echo "$as_me: failed program was:" >&5
20970
sed 's/^/| /' conftest.$ac_ext >&5
20972
ac_cv_lib_ipc_shmat=no
20975
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20976
conftest$ac_exeext conftest.$ac_ext
20977
LIBS=$ac_check_lib_save_LIBS
20979
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20980
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
20981
if test $ac_cv_lib_ipc_shmat = yes; then
20982
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20988
# Check for libraries that X11R6 Xt/Xaw programs need.
20989
ac_save_LDFLAGS=$LDFLAGS
20990
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20991
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20992
# check for ICE first), but we must link in the order -lSM -lICE or
20993
# we get undefined symbols. So assume we have SM if we have ICE.
20994
# These have to be linked with before -lX11, unlike the other
20995
# libraries we check for below, so use a different variable.
20996
# John Interrante, Karl Berry
20997
{ echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20998
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
20999
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21000
echo $ECHO_N "(cached) $ECHO_C" >&6
21002
ac_check_lib_save_LIBS=$LIBS
21003
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21004
cat >conftest.$ac_ext <<_ACEOF
21007
cat confdefs.h >>conftest.$ac_ext
21008
cat >>conftest.$ac_ext <<_ACEOF
21009
/* end confdefs.h. */
21011
/* Override any GCC internal prototype to avoid an error.
21012
Use char because int might match the return type of a GCC
21013
builtin and then its argument prototype would still apply. */
21017
char IceConnectionNumber ();
21021
return IceConnectionNumber ();
21026
rm -f conftest.$ac_objext conftest$ac_exeext
21027
if { (ac_try="$ac_link"
21028
case "(($ac_try" in
21029
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21030
*) ac_try_echo=$ac_try;;
21032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21033
(eval "$ac_link") 2>conftest.er1
21035
grep -v '^ *+' conftest.er1 >conftest.err
21037
cat conftest.err >&5
21038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039
(exit $ac_status); } && {
21040
test -z "$ac_c_werror_flag" ||
21041
test ! -s conftest.err
21042
} && test -s conftest$ac_exeext &&
21043
$as_test_x conftest$ac_exeext; then
21044
ac_cv_lib_ICE_IceConnectionNumber=yes
21046
echo "$as_me: failed program was:" >&5
21047
sed 's/^/| /' conftest.$ac_ext >&5
21049
ac_cv_lib_ICE_IceConnectionNumber=no
21052
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21053
conftest$ac_exeext conftest.$ac_ext
21054
LIBS=$ac_check_lib_save_LIBS
21056
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21057
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21058
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21059
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21062
LDFLAGS=$ac_save_LDFLAGS
21067
{ echo "$as_me:$LINENO: checking whether variable-length arrays are supported" >&5
21068
echo $ECHO_N "checking whether variable-length arrays are supported... $ECHO_C" >&6; }
21069
cat >conftest.$ac_ext <<_ACEOF
21072
cat confdefs.h >>conftest.$ac_ext
21073
cat >>conftest.$ac_ext <<_ACEOF
21074
/* end confdefs.h. */
21086
rm -f conftest.$ac_objext
21087
if { (ac_try="$ac_compile"
21088
case "(($ac_try" in
21089
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090
*) ac_try_echo=$ac_try;;
21092
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093
(eval "$ac_compile") 2>conftest.er1
21095
grep -v '^ *+' conftest.er1 >conftest.err
21097
cat conftest.err >&5
21098
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099
(exit $ac_status); } && {
21100
test -z "$ac_c_werror_flag" ||
21101
test ! -s conftest.err
21102
} && test -s conftest.$ac_objext; then
21103
{ echo "$as_me:$LINENO: result: yes" >&5
21104
echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
21105
@%:@define HAVE_VLA 1
21109
echo "$as_me: failed program was:" >&5
21110
sed 's/^/| /' conftest.$ac_ext >&5
21112
{ echo "$as_me:$LINENO: result: no" >&5
21113
echo "${ECHO_T}no" >&6; }
21116
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21118
############################################################
21119
# Check for the IJG JPEG library.
21120
############################################################
21122
# Allow the user to explicitly specify whether the JPEG library is present.
21123
# Check whether --enable-libjpeg was given.
21124
if test "${enable_libjpeg+set}" = set; then
21125
enableval=$enable_libjpeg;
21126
case "${enableval}" in
21128
ENABLE_LIBJPEG=yes;;
21130
ENABLE_LIBJPEG=no;;
21132
{ { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-libjpeg" >&5
21133
echo "$as_me: error: bad value ${enableval} for --disable-libjpeg" >&2;}
21134
{ (exit 1); exit 1; }; }
21144
if test $ENABLE_LIBJPEG = yes; then
21145
# Check for the JPEG library.
21146
{ echo "$as_me:$LINENO: checking for jpeg_destroy in -ljpeg" >&5
21147
echo $ECHO_N "checking for jpeg_destroy in -ljpeg... $ECHO_C" >&6; }
21148
if test "${ac_cv_lib_jpeg_jpeg_destroy+set}" = set; then
21149
echo $ECHO_N "(cached) $ECHO_C" >&6
21151
ac_check_lib_save_LIBS=$LIBS
21152
LIBS="-ljpeg $LIBS"
21153
cat >conftest.$ac_ext <<_ACEOF
21156
cat confdefs.h >>conftest.$ac_ext
21157
cat >>conftest.$ac_ext <<_ACEOF
21158
/* end confdefs.h. */
21160
/* Override any GCC internal prototype to avoid an error.
21161
Use char because int might match the return type of a GCC
21162
builtin and then its argument prototype would still apply. */
21166
char jpeg_destroy ();
21170
return jpeg_destroy ();
21175
rm -f conftest.$ac_objext conftest$ac_exeext
21176
if { (ac_try="$ac_link"
21177
case "(($ac_try" in
21178
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21179
*) ac_try_echo=$ac_try;;
21181
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21182
(eval "$ac_link") 2>conftest.er1
21184
grep -v '^ *+' conftest.er1 >conftest.err
21186
cat conftest.err >&5
21187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188
(exit $ac_status); } && {
21189
test -z "$ac_c_werror_flag" ||
21190
test ! -s conftest.err
21191
} && test -s conftest$ac_exeext &&
21192
$as_test_x conftest$ac_exeext; then
21193
ac_cv_lib_jpeg_jpeg_destroy=yes
21195
echo "$as_me: failed program was:" >&5
21196
sed 's/^/| /' conftest.$ac_ext >&5
21198
ac_cv_lib_jpeg_jpeg_destroy=no
21201
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21202
conftest$ac_exeext conftest.$ac_ext
21203
LIBS=$ac_check_lib_save_LIBS
21205
{ echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy" >&5
21206
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy" >&6; }
21207
if test $ac_cv_lib_jpeg_jpeg_destroy = yes; then
21213
if test $HAVE_LIBJPEG = yes; then
21214
LIBS="$LIBS -ljpeg"
21217
if test $HAVE_LIBJPEG = yes; then
21219
HAVE_LIBJPEG_FALSE='#'
21221
HAVE_LIBJPEG_TRUE='#'
21222
HAVE_LIBJPEG_FALSE=
21226
############################################################
21227
# Check for OpenGL libraries.
21228
############################################################
21231
# Check whether --with-glut-include-dir was given.
21232
if test "${with_glut_include_dir+set}" = set; then
21233
withval=$with_glut_include_dir;
21236
CFLAGS="$CFLAGS -I$withval"
21237
CPPFLAGS="$CPPFLAGS -I$withval";;
21239
{ { echo "$as_me:$LINENO: error: --with-glut-include-dir requires absolute path" >&5
21240
echo "$as_me: error: --with-glut-include-dir requires absolute path" >&2;}
21241
{ (exit 1); exit 1; }; }
21248
# Check whether --with-glut-lib-dir was given.
21249
if test "${with_glut_lib_dir+set}" = set; then
21250
withval=$with_glut_lib_dir;
21253
LIBS="$LIBS -L$withval";;
21255
{ { echo "$as_me:$LINENO: error: --with-glut-lib-dir requires absolute path" >&5
21256
echo "$as_me: error: --with-glut-lib-dir requires absolute path" >&2;}
21257
{ (exit 1); exit 1; }; }
21264
# Check whether --enable-opengl was given.
21265
if test "${enable_opengl+set}" = set; then
21266
enableval=$enable_opengl;
21267
case "$enableval" in
21269
ENABLE_OPENGL=yes;;
21273
{ { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-libjpeg" >&5
21274
echo "$as_me: error: bad value ${enableval} for --disable-libjpeg" >&2;}
21275
{ (exit 1); exit 1; }; }
21286
if test $ENABLE_OPENGL = yes; then
21287
if test $HAVE_OPENGL = no; then
21288
TMPLIBS="-lglut -lGL -lGLU $X_PRE_LIBS -lX11 -lXmu -lXi -lXext -lXt $X_EXTRA_LIBS $X_LIBS"
21289
{ echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
21290
echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6; }
21291
if test "${ac_cv_lib_glut_glutInit+set}" = set; then
21292
echo $ECHO_N "(cached) $ECHO_C" >&6
21294
ac_check_lib_save_LIBS=$LIBS
21295
LIBS="-lglut $TMPLIBS $LIBS"
21296
cat >conftest.$ac_ext <<_ACEOF
21299
cat confdefs.h >>conftest.$ac_ext
21300
cat >>conftest.$ac_ext <<_ACEOF
21301
/* end confdefs.h. */
21303
/* Override any GCC internal prototype to avoid an error.
21304
Use char because int might match the return type of a GCC
21305
builtin and then its argument prototype would still apply. */
21313
return glutInit ();
21318
rm -f conftest.$ac_objext conftest$ac_exeext
21319
if { (ac_try="$ac_link"
21320
case "(($ac_try" in
21321
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21322
*) ac_try_echo=$ac_try;;
21324
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21325
(eval "$ac_link") 2>conftest.er1
21327
grep -v '^ *+' conftest.er1 >conftest.err
21329
cat conftest.err >&5
21330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331
(exit $ac_status); } && {
21332
test -z "$ac_c_werror_flag" ||
21333
test ! -s conftest.err
21334
} && test -s conftest$ac_exeext &&
21335
$as_test_x conftest$ac_exeext; then
21336
ac_cv_lib_glut_glutInit=yes
21338
echo "$as_me: failed program was:" >&5
21339
sed 's/^/| /' conftest.$ac_ext >&5
21341
ac_cv_lib_glut_glutInit=no
21344
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21345
conftest$ac_exeext conftest.$ac_ext
21346
LIBS=$ac_check_lib_save_LIBS
21348
{ echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
21349
echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6; }
21350
if test $ac_cv_lib_glut_glutInit = yes; then
21352
OPENGL_LIBS=$TMPLIBS
21358
if test "${ac_cv_header_GL_glut_h+set}" = set; then
21359
{ echo "$as_me:$LINENO: checking for GL/glut.h" >&5
21360
echo $ECHO_N "checking for GL/glut.h... $ECHO_C" >&6; }
21361
if test "${ac_cv_header_GL_glut_h+set}" = set; then
21362
echo $ECHO_N "(cached) $ECHO_C" >&6
21364
{ echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
21365
echo "${ECHO_T}$ac_cv_header_GL_glut_h" >&6; }
21367
# Is the header compilable?
21368
{ echo "$as_me:$LINENO: checking GL/glut.h usability" >&5
21369
echo $ECHO_N "checking GL/glut.h usability... $ECHO_C" >&6; }
21370
cat >conftest.$ac_ext <<_ACEOF
21373
cat confdefs.h >>conftest.$ac_ext
21374
cat >>conftest.$ac_ext <<_ACEOF
21375
/* end confdefs.h. */
21376
$ac_includes_default
21377
@%:@include <GL/glut.h>
21379
rm -f conftest.$ac_objext
21380
if { (ac_try="$ac_compile"
21381
case "(($ac_try" in
21382
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21383
*) ac_try_echo=$ac_try;;
21385
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21386
(eval "$ac_compile") 2>conftest.er1
21388
grep -v '^ *+' conftest.er1 >conftest.err
21390
cat conftest.err >&5
21391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392
(exit $ac_status); } && {
21393
test -z "$ac_c_werror_flag" ||
21394
test ! -s conftest.err
21395
} && test -s conftest.$ac_objext; then
21396
ac_header_compiler=yes
21398
echo "$as_me: failed program was:" >&5
21399
sed 's/^/| /' conftest.$ac_ext >&5
21401
ac_header_compiler=no
21404
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21405
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21406
echo "${ECHO_T}$ac_header_compiler" >&6; }
21408
# Is the header present?
21409
{ echo "$as_me:$LINENO: checking GL/glut.h presence" >&5
21410
echo $ECHO_N "checking GL/glut.h presence... $ECHO_C" >&6; }
21411
cat >conftest.$ac_ext <<_ACEOF
21414
cat confdefs.h >>conftest.$ac_ext
21415
cat >>conftest.$ac_ext <<_ACEOF
21416
/* end confdefs.h. */
21417
@%:@include <GL/glut.h>
21419
if { (ac_try="$ac_cpp conftest.$ac_ext"
21420
case "(($ac_try" in
21421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21422
*) ac_try_echo=$ac_try;;
21424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21425
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21427
grep -v '^ *+' conftest.er1 >conftest.err
21429
cat conftest.err >&5
21430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431
(exit $ac_status); } >/dev/null && {
21432
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21433
test ! -s conftest.err
21435
ac_header_preproc=yes
21437
echo "$as_me: failed program was:" >&5
21438
sed 's/^/| /' conftest.$ac_ext >&5
21440
ac_header_preproc=no
21443
rm -f conftest.err conftest.$ac_ext
21444
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21445
echo "${ECHO_T}$ac_header_preproc" >&6; }
21447
# So? What about this header?
21448
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21450
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&5
21451
echo "$as_me: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21452
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the compiler's result" >&5
21453
echo "$as_me: WARNING: GL/glut.h: proceeding with the compiler's result" >&2;}
21454
ac_header_preproc=yes
21457
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: present but cannot be compiled" >&5
21458
echo "$as_me: WARNING: GL/glut.h: present but cannot be compiled" >&2;}
21459
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: check for missing prerequisite headers?" >&5
21460
echo "$as_me: WARNING: GL/glut.h: check for missing prerequisite headers?" >&2;}
21461
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: see the Autoconf documentation" >&5
21462
echo "$as_me: WARNING: GL/glut.h: see the Autoconf documentation" >&2;}
21463
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: section \"Present But Cannot Be Compiled\"" >&5
21464
echo "$as_me: WARNING: GL/glut.h: section \"Present But Cannot Be Compiled\"" >&2;}
21465
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5
21466
echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;}
21467
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&5
21468
echo "$as_me: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&2;}
21472
{ echo "$as_me:$LINENO: checking for GL/glut.h" >&5
21473
echo $ECHO_N "checking for GL/glut.h... $ECHO_C" >&6; }
21474
if test "${ac_cv_header_GL_glut_h+set}" = set; then
21475
echo $ECHO_N "(cached) $ECHO_C" >&6
21477
ac_cv_header_GL_glut_h=$ac_header_preproc
21479
{ echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
21480
echo "${ECHO_T}$ac_cv_header_GL_glut_h" >&6; }
21483
if test $ac_cv_header_GL_glut_h = yes; then
21486
HAVE_OPENGL=no; OPENGL_LIBS="";
21492
if test $HAVE_OPENGL = yes; then
21494
HAVE_OPENGL_FALSE='#'
21496
HAVE_OPENGL_TRUE='#'
21501
{ echo "$as_me:$LINENO: checking whether OpenGL libraries and headers were detected" >&5
21502
echo $ECHO_N "checking whether OpenGL libraries and headers were detected... $ECHO_C" >&6; }
21503
{ echo "$as_me:$LINENO: result: $HAVE_OPENGL" >&5
21504
echo "${ECHO_T}$HAVE_OPENGL" >&6; }
21506
############################################################
21507
# Check for SDL libraries.
21508
############################################################
21509
# Extract the first word of "sdl-config", so it can be a program name with args.
21510
set dummy sdl-config; ac_word=$2
21511
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21512
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21513
if test "${ac_cv_prog_HAVE_SDL+set}" = set; then
21514
echo $ECHO_N "(cached) $ECHO_C" >&6
21516
if test -n "$HAVE_SDL"; then
21517
ac_cv_prog_HAVE_SDL="$HAVE_SDL" # Let the user override the test.
21519
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21520
for as_dir in $PATH
21523
test -z "$as_dir" && as_dir=.
21524
for ac_exec_ext in '' $ac_executable_extensions; do
21525
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21526
ac_cv_prog_HAVE_SDL="yes"
21527
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21534
test -z "$ac_cv_prog_HAVE_SDL" && ac_cv_prog_HAVE_SDL="no"
21537
HAVE_SDL=$ac_cv_prog_HAVE_SDL
21538
if test -n "$HAVE_SDL"; then
21539
{ echo "$as_me:$LINENO: result: $HAVE_SDL" >&5
21540
echo "${ECHO_T}$HAVE_SDL" >&6; }
21542
{ echo "$as_me:$LINENO: result: no" >&5
21543
echo "${ECHO_T}no" >&6; }
21547
if test $HAVE_SDL = yes; then
21548
SDL_CFLAGS=`sdl-config --cflags`
21549
SDL_LIBS=`sdl-config --libs`
21551
if test $HAVE_SDL = yes; then
21562
############################################################
21563
# Check for other libraries.
21564
############################################################
21566
# Check for the math library.
21568
{ echo "$as_me:$LINENO: checking for main in -lm" >&5
21569
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
21570
if test "${ac_cv_lib_m_main+set}" = set; then
21571
echo $ECHO_N "(cached) $ECHO_C" >&6
21573
ac_check_lib_save_LIBS=$LIBS
21575
cat >conftest.$ac_ext <<_ACEOF
21578
cat confdefs.h >>conftest.$ac_ext
21579
cat >>conftest.$ac_ext <<_ACEOF
21580
/* end confdefs.h. */
21591
rm -f conftest.$ac_objext conftest$ac_exeext
21592
if { (ac_try="$ac_link"
21593
case "(($ac_try" in
21594
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21595
*) ac_try_echo=$ac_try;;
21597
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21598
(eval "$ac_link") 2>conftest.er1
21600
grep -v '^ *+' conftest.er1 >conftest.err
21602
cat conftest.err >&5
21603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604
(exit $ac_status); } && {
21605
test -z "$ac_c_werror_flag" ||
21606
test ! -s conftest.err
21607
} && test -s conftest$ac_exeext &&
21608
$as_test_x conftest$ac_exeext; then
21609
ac_cv_lib_m_main=yes
21611
echo "$as_me: failed program was:" >&5
21612
sed 's/^/| /' conftest.$ac_ext >&5
21614
ac_cv_lib_m_main=no
21617
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21618
conftest$ac_exeext conftest.$ac_ext
21619
LIBS=$ac_check_lib_save_LIBS
21621
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
21622
echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
21623
if test $ac_cv_lib_m_main = yes; then
21624
cat >>confdefs.h <<_ACEOF
21625
@%:@define HAVE_LIBM 1
21633
############################################################
21634
# Check for header files.
21635
############################################################
21637
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21638
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21639
if test "${ac_cv_header_stdc+set}" = set; then
21640
echo $ECHO_N "(cached) $ECHO_C" >&6
21642
cat >conftest.$ac_ext <<_ACEOF
21645
cat confdefs.h >>conftest.$ac_ext
21646
cat >>conftest.$ac_ext <<_ACEOF
21647
/* end confdefs.h. */
21648
#include <stdlib.h>
21649
#include <stdarg.h>
21650
#include <string.h>
21661
rm -f conftest.$ac_objext
21662
if { (ac_try="$ac_compile"
21663
case "(($ac_try" in
21664
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665
*) ac_try_echo=$ac_try;;
21667
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668
(eval "$ac_compile") 2>conftest.er1
21670
grep -v '^ *+' conftest.er1 >conftest.err
21672
cat conftest.err >&5
21673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674
(exit $ac_status); } && {
21675
test -z "$ac_c_werror_flag" ||
21676
test ! -s conftest.err
21677
} && test -s conftest.$ac_objext; then
21678
ac_cv_header_stdc=yes
21680
echo "$as_me: failed program was:" >&5
21681
sed 's/^/| /' conftest.$ac_ext >&5
21683
ac_cv_header_stdc=no
21686
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21688
if test $ac_cv_header_stdc = yes; then
21689
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21690
cat >conftest.$ac_ext <<_ACEOF
21693
cat confdefs.h >>conftest.$ac_ext
21694
cat >>conftest.$ac_ext <<_ACEOF
21695
/* end confdefs.h. */
21696
#include <string.h>
21699
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21700
$EGREP "memchr" >/dev/null 2>&1; then
21703
ac_cv_header_stdc=no
21709
if test $ac_cv_header_stdc = yes; then
21710
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21711
cat >conftest.$ac_ext <<_ACEOF
21714
cat confdefs.h >>conftest.$ac_ext
21715
cat >>conftest.$ac_ext <<_ACEOF
21716
/* end confdefs.h. */
21717
#include <stdlib.h>
21720
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21721
$EGREP "free" >/dev/null 2>&1; then
21724
ac_cv_header_stdc=no
21730
if test $ac_cv_header_stdc = yes; then
21731
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21732
if test "$cross_compiling" = yes; then
21735
cat >conftest.$ac_ext <<_ACEOF
21738
cat confdefs.h >>conftest.$ac_ext
21739
cat >>conftest.$ac_ext <<_ACEOF
21740
/* end confdefs.h. */
21742
#include <stdlib.h>
21743
#if ((' ' & 0x0FF) == 0x020)
21744
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21745
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21747
# define ISLOWER(c) \
21748
(('a' <= (c) && (c) <= 'i') \
21749
|| ('j' <= (c) && (c) <= 'r') \
21750
|| ('s' <= (c) && (c) <= 'z'))
21751
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21754
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21759
for (i = 0; i < 256; i++)
21760
if (XOR (islower (i), ISLOWER (i))
21761
|| toupper (i) != TOUPPER (i))
21766
rm -f conftest$ac_exeext
21767
if { (ac_try="$ac_link"
21768
case "(($ac_try" in
21769
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770
*) ac_try_echo=$ac_try;;
21772
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773
(eval "$ac_link") 2>&5
21775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21777
{ (case "(($ac_try" in
21778
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779
*) ac_try_echo=$ac_try;;
21781
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782
(eval "$ac_try") 2>&5
21784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785
(exit $ac_status); }; }; then
21788
echo "$as_me: program exited with status $ac_status" >&5
21789
echo "$as_me: failed program was:" >&5
21790
sed 's/^/| /' conftest.$ac_ext >&5
21792
( exit $ac_status )
21793
ac_cv_header_stdc=no
21795
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21801
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21802
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21803
if test $ac_cv_header_stdc = yes; then
21805
cat >>confdefs.h <<\_ACEOF
21806
@%:@define STDC_HEADERS 1
21821
for ac_header in fcntl.h limits.h unistd.h stdint.h stdbool.h io.h windows.h sys/types.h stdlib.h stddef.h
21823
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21824
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21825
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21826
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21827
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21828
echo $ECHO_N "(cached) $ECHO_C" >&6
21830
ac_res=`eval echo '${'$as_ac_Header'}'`
21831
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21832
echo "${ECHO_T}$ac_res" >&6; }
21834
# Is the header compilable?
21835
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21836
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21837
cat >conftest.$ac_ext <<_ACEOF
21840
cat confdefs.h >>conftest.$ac_ext
21841
cat >>conftest.$ac_ext <<_ACEOF
21842
/* end confdefs.h. */
21843
$ac_includes_default
21844
@%:@include <$ac_header>
21846
rm -f conftest.$ac_objext
21847
if { (ac_try="$ac_compile"
21848
case "(($ac_try" in
21849
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850
*) ac_try_echo=$ac_try;;
21852
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21853
(eval "$ac_compile") 2>conftest.er1
21855
grep -v '^ *+' conftest.er1 >conftest.err
21857
cat conftest.err >&5
21858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859
(exit $ac_status); } && {
21860
test -z "$ac_c_werror_flag" ||
21861
test ! -s conftest.err
21862
} && test -s conftest.$ac_objext; then
21863
ac_header_compiler=yes
21865
echo "$as_me: failed program was:" >&5
21866
sed 's/^/| /' conftest.$ac_ext >&5
21868
ac_header_compiler=no
21871
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21872
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21873
echo "${ECHO_T}$ac_header_compiler" >&6; }
21875
# Is the header present?
21876
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21877
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21878
cat >conftest.$ac_ext <<_ACEOF
21881
cat confdefs.h >>conftest.$ac_ext
21882
cat >>conftest.$ac_ext <<_ACEOF
21883
/* end confdefs.h. */
21884
@%:@include <$ac_header>
21886
if { (ac_try="$ac_cpp conftest.$ac_ext"
21887
case "(($ac_try" in
21888
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21889
*) ac_try_echo=$ac_try;;
21891
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21892
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21894
grep -v '^ *+' conftest.er1 >conftest.err
21896
cat conftest.err >&5
21897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898
(exit $ac_status); } >/dev/null && {
21899
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21900
test ! -s conftest.err
21902
ac_header_preproc=yes
21904
echo "$as_me: failed program was:" >&5
21905
sed 's/^/| /' conftest.$ac_ext >&5
21907
ac_header_preproc=no
21910
rm -f conftest.err conftest.$ac_ext
21911
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21912
echo "${ECHO_T}$ac_header_preproc" >&6; }
21914
# So? What about this header?
21915
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21917
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21918
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21919
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21920
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21921
ac_header_preproc=yes
21924
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21925
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21926
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21927
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21928
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21929
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21930
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21931
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21932
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21933
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21934
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21935
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21939
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21940
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21941
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21942
echo $ECHO_N "(cached) $ECHO_C" >&6
21944
eval "$as_ac_Header=\$ac_header_preproc"
21946
ac_res=`eval echo '${'$as_ac_Header'}'`
21947
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21948
echo "${ECHO_T}$ac_res" >&6; }
21951
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21952
cat >>confdefs.h <<_ACEOF
21953
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21961
############################################################
21962
# Check for typedefs, structures, and compiler characteristics.
21963
############################################################
21965
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21966
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21967
if test "${ac_cv_c_bigendian+set}" = set; then
21968
echo $ECHO_N "(cached) $ECHO_C" >&6
21970
# See if sys/param.h defines the BYTE_ORDER macro.
21971
cat >conftest.$ac_ext <<_ACEOF
21974
cat confdefs.h >>conftest.$ac_ext
21975
cat >>conftest.$ac_ext <<_ACEOF
21976
/* end confdefs.h. */
21977
#include <sys/types.h>
21978
#include <sys/param.h>
21983
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21984
&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21985
bogus endian macros
21992
rm -f conftest.$ac_objext
21993
if { (ac_try="$ac_compile"
21994
case "(($ac_try" in
21995
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996
*) ac_try_echo=$ac_try;;
21998
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999
(eval "$ac_compile") 2>conftest.er1
22001
grep -v '^ *+' conftest.er1 >conftest.err
22003
cat conftest.err >&5
22004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005
(exit $ac_status); } && {
22006
test -z "$ac_c_werror_flag" ||
22007
test ! -s conftest.err
22008
} && test -s conftest.$ac_objext; then
22009
# It does; now see whether it defined to BIG_ENDIAN or not.
22010
cat >conftest.$ac_ext <<_ACEOF
22013
cat confdefs.h >>conftest.$ac_ext
22014
cat >>conftest.$ac_ext <<_ACEOF
22015
/* end confdefs.h. */
22016
#include <sys/types.h>
22017
#include <sys/param.h>
22022
#if BYTE_ORDER != BIG_ENDIAN
22030
rm -f conftest.$ac_objext
22031
if { (ac_try="$ac_compile"
22032
case "(($ac_try" in
22033
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034
*) ac_try_echo=$ac_try;;
22036
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037
(eval "$ac_compile") 2>conftest.er1
22039
grep -v '^ *+' conftest.er1 >conftest.err
22041
cat conftest.err >&5
22042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043
(exit $ac_status); } && {
22044
test -z "$ac_c_werror_flag" ||
22045
test ! -s conftest.err
22046
} && test -s conftest.$ac_objext; then
22047
ac_cv_c_bigendian=yes
22049
echo "$as_me: failed program was:" >&5
22050
sed 's/^/| /' conftest.$ac_ext >&5
22052
ac_cv_c_bigendian=no
22055
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22057
echo "$as_me: failed program was:" >&5
22058
sed 's/^/| /' conftest.$ac_ext >&5
22060
# It does not; compile a test program.
22061
if test "$cross_compiling" = yes; then
22062
# try to guess the endianness by grepping values into an object file
22063
ac_cv_c_bigendian=unknown
22064
cat >conftest.$ac_ext <<_ACEOF
22067
cat confdefs.h >>conftest.$ac_ext
22068
cat >>conftest.$ac_ext <<_ACEOF
22069
/* end confdefs.h. */
22070
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22071
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22072
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22073
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22074
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22075
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22079
_ascii (); _ebcdic ();
22084
rm -f conftest.$ac_objext
22085
if { (ac_try="$ac_compile"
22086
case "(($ac_try" in
22087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22088
*) ac_try_echo=$ac_try;;
22090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22091
(eval "$ac_compile") 2>conftest.er1
22093
grep -v '^ *+' conftest.er1 >conftest.err
22095
cat conftest.err >&5
22096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097
(exit $ac_status); } && {
22098
test -z "$ac_c_werror_flag" ||
22099
test ! -s conftest.err
22100
} && test -s conftest.$ac_objext; then
22101
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22102
ac_cv_c_bigendian=yes
22104
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22105
if test "$ac_cv_c_bigendian" = unknown; then
22106
ac_cv_c_bigendian=no
22108
# finding both strings is unlikely to happen, but who knows?
22109
ac_cv_c_bigendian=unknown
22113
echo "$as_me: failed program was:" >&5
22114
sed 's/^/| /' conftest.$ac_ext >&5
22119
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121
cat >conftest.$ac_ext <<_ACEOF
22124
cat confdefs.h >>conftest.$ac_ext
22125
cat >>conftest.$ac_ext <<_ACEOF
22126
/* end confdefs.h. */
22127
$ac_includes_default
22132
/* Are we little or big endian? From Harbison&Steele. */
22136
char c[sizeof (long int)];
22139
return u.c[sizeof (long int) - 1] == 1;
22145
rm -f conftest$ac_exeext
22146
if { (ac_try="$ac_link"
22147
case "(($ac_try" in
22148
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149
*) ac_try_echo=$ac_try;;
22151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152
(eval "$ac_link") 2>&5
22154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22156
{ (case "(($ac_try" in
22157
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22158
*) ac_try_echo=$ac_try;;
22160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22161
(eval "$ac_try") 2>&5
22163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164
(exit $ac_status); }; }; then
22165
ac_cv_c_bigendian=no
22167
echo "$as_me: program exited with status $ac_status" >&5
22168
echo "$as_me: failed program was:" >&5
22169
sed 's/^/| /' conftest.$ac_ext >&5
22171
( exit $ac_status )
22172
ac_cv_c_bigendian=yes
22174
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22180
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22182
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22183
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22184
case $ac_cv_c_bigendian in
22187
cat >>confdefs.h <<\_ACEOF
22188
@%:@define WORDS_BIGENDIAN 1
22194
{ { echo "$as_me:$LINENO: error: unknown endianness
22195
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22196
echo "$as_me: error: unknown endianness
22197
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22198
{ (exit 1); exit 1; }; } ;;
22201
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22202
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22203
if test "${ac_cv_c_const+set}" = set; then
22204
echo $ECHO_N "(cached) $ECHO_C" >&6
22206
cat >conftest.$ac_ext <<_ACEOF
22209
cat confdefs.h >>conftest.$ac_ext
22210
cat >>conftest.$ac_ext <<_ACEOF
22211
/* end confdefs.h. */
22216
/* FIXME: Include the comments suggested by Paul. */
22217
#ifndef __cplusplus
22218
/* Ultrix mips cc rejects this. */
22219
typedef int charset[2];
22221
/* SunOS 4.1.1 cc rejects this. */
22222
char const *const *pcpcc;
22224
/* NEC SVR4.0.2 mips cc rejects this. */
22225
struct point {int x, y;};
22226
static struct point const zero = {0,0};
22227
/* AIX XL C 1.02.0.0 rejects this.
22228
It does not let you subtract one const X* pointer from another in
22229
an arm of an if-expression whose if-part is not a constant
22231
const char *g = "string";
22232
pcpcc = &g + (g ? g-g : 0);
22233
/* HPUX 7.0 cc rejects these. */
22235
ppc = (char**) pcpcc;
22236
pcpcc = (char const *const *) ppc;
22237
{ /* SCO 3.2v4 cc rejects this. */
22239
char const *s = 0 ? (char *) 0 : (char const *) 0;
22244
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22245
int x[] = {25, 17};
22246
const int *foo = &x[0];
22249
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22250
typedef const int *iptr;
22254
{ /* AIX XL C 1.02.0.0 rejects this saying
22255
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22256
struct s { int j; const int *ap[3]; };
22257
struct s *b; b->j = 5;
22259
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22260
const int foo = 10;
22261
if (!foo) return 0;
22263
return !cs[0] && !zero.x;
22270
rm -f conftest.$ac_objext
22271
if { (ac_try="$ac_compile"
22272
case "(($ac_try" in
22273
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274
*) ac_try_echo=$ac_try;;
22276
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277
(eval "$ac_compile") 2>conftest.er1
22279
grep -v '^ *+' conftest.er1 >conftest.err
22281
cat conftest.err >&5
22282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283
(exit $ac_status); } && {
22284
test -z "$ac_c_werror_flag" ||
22285
test ! -s conftest.err
22286
} && test -s conftest.$ac_objext; then
22289
echo "$as_me: failed program was:" >&5
22290
sed 's/^/| /' conftest.$ac_ext >&5
22295
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22297
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22298
echo "${ECHO_T}$ac_cv_c_const" >&6; }
22299
if test $ac_cv_c_const = no; then
22301
cat >>confdefs.h <<\_ACEOF
22307
{ echo "$as_me:$LINENO: checking for inline" >&5
22308
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22309
if test "${ac_cv_c_inline+set}" = set; then
22310
echo $ECHO_N "(cached) $ECHO_C" >&6
22313
for ac_kw in inline __inline__ __inline; do
22314
cat >conftest.$ac_ext <<_ACEOF
22317
cat confdefs.h >>conftest.$ac_ext
22318
cat >>conftest.$ac_ext <<_ACEOF
22319
/* end confdefs.h. */
22320
#ifndef __cplusplus
22322
static $ac_kw foo_t static_foo () {return 0; }
22323
$ac_kw foo_t foo () {return 0; }
22327
rm -f conftest.$ac_objext
22328
if { (ac_try="$ac_compile"
22329
case "(($ac_try" in
22330
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22331
*) ac_try_echo=$ac_try;;
22333
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22334
(eval "$ac_compile") 2>conftest.er1
22336
grep -v '^ *+' conftest.er1 >conftest.err
22338
cat conftest.err >&5
22339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340
(exit $ac_status); } && {
22341
test -z "$ac_c_werror_flag" ||
22342
test ! -s conftest.err
22343
} && test -s conftest.$ac_objext; then
22344
ac_cv_c_inline=$ac_kw
22346
echo "$as_me: failed program was:" >&5
22347
sed 's/^/| /' conftest.$ac_ext >&5
22352
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22353
test "$ac_cv_c_inline" != no && break
22357
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22358
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22361
case $ac_cv_c_inline in
22364
case $ac_cv_c_inline in
22366
*) ac_val=$ac_cv_c_inline;;
22368
cat >>confdefs.h <<_ACEOF
22369
#ifndef __cplusplus
22370
#define inline $ac_val
22376
{ echo "$as_me:$LINENO: checking for size_t" >&5
22377
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22378
if test "${ac_cv_type_size_t+set}" = set; then
22379
echo $ECHO_N "(cached) $ECHO_C" >&6
22381
cat >conftest.$ac_ext <<_ACEOF
22384
cat confdefs.h >>conftest.$ac_ext
22385
cat >>conftest.$ac_ext <<_ACEOF
22386
/* end confdefs.h. */
22387
$ac_includes_default
22388
typedef size_t ac__type_new_;
22392
if ((ac__type_new_ *) 0)
22394
if (sizeof (ac__type_new_))
22400
rm -f conftest.$ac_objext
22401
if { (ac_try="$ac_compile"
22402
case "(($ac_try" in
22403
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404
*) ac_try_echo=$ac_try;;
22406
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22407
(eval "$ac_compile") 2>conftest.er1
22409
grep -v '^ *+' conftest.er1 >conftest.err
22411
cat conftest.err >&5
22412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413
(exit $ac_status); } && {
22414
test -z "$ac_c_werror_flag" ||
22415
test ! -s conftest.err
22416
} && test -s conftest.$ac_objext; then
22417
ac_cv_type_size_t=yes
22419
echo "$as_me: failed program was:" >&5
22420
sed 's/^/| /' conftest.$ac_ext >&5
22422
ac_cv_type_size_t=no
22425
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22427
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22428
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22429
if test $ac_cv_type_size_t = yes; then
22433
cat >>confdefs.h <<_ACEOF
22434
@%:@define size_t unsigned int
22439
{ echo "$as_me:$LINENO: checking for short" >&5
22440
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
22441
if test "${ac_cv_type_short+set}" = set; then
22442
echo $ECHO_N "(cached) $ECHO_C" >&6
22444
cat >conftest.$ac_ext <<_ACEOF
22447
cat confdefs.h >>conftest.$ac_ext
22448
cat >>conftest.$ac_ext <<_ACEOF
22449
/* end confdefs.h. */
22450
$ac_includes_default
22451
typedef short ac__type_new_;
22455
if ((ac__type_new_ *) 0)
22457
if (sizeof (ac__type_new_))
22463
rm -f conftest.$ac_objext
22464
if { (ac_try="$ac_compile"
22465
case "(($ac_try" in
22466
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22467
*) ac_try_echo=$ac_try;;
22469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22470
(eval "$ac_compile") 2>conftest.er1
22472
grep -v '^ *+' conftest.er1 >conftest.err
22474
cat conftest.err >&5
22475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476
(exit $ac_status); } && {
22477
test -z "$ac_c_werror_flag" ||
22478
test ! -s conftest.err
22479
} && test -s conftest.$ac_objext; then
22480
ac_cv_type_short=yes
22482
echo "$as_me: failed program was:" >&5
22483
sed 's/^/| /' conftest.$ac_ext >&5
22485
ac_cv_type_short=no
22488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22490
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22491
echo "${ECHO_T}$ac_cv_type_short" >&6; }
22493
# The cast to long int works around a bug in the HP C Compiler
22494
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22495
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22496
# This bug is HP SR number 8606223364.
22497
{ echo "$as_me:$LINENO: checking size of short" >&5
22498
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
22499
if test "${ac_cv_sizeof_short+set}" = set; then
22500
echo $ECHO_N "(cached) $ECHO_C" >&6
22502
if test "$cross_compiling" = yes; then
22503
# Depending upon the size, compute the lo and hi bounds.
22504
cat >conftest.$ac_ext <<_ACEOF
22507
cat confdefs.h >>conftest.$ac_ext
22508
cat >>conftest.$ac_ext <<_ACEOF
22509
/* end confdefs.h. */
22510
$ac_includes_default
22511
typedef short ac__type_sizeof_;
22515
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
22516
test_array @<:@0@:>@ = 0
22522
rm -f conftest.$ac_objext
22523
if { (ac_try="$ac_compile"
22524
case "(($ac_try" in
22525
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526
*) ac_try_echo=$ac_try;;
22528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529
(eval "$ac_compile") 2>conftest.er1
22531
grep -v '^ *+' conftest.er1 >conftest.err
22533
cat conftest.err >&5
22534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535
(exit $ac_status); } && {
22536
test -z "$ac_c_werror_flag" ||
22537
test ! -s conftest.err
22538
} && test -s conftest.$ac_objext; then
22541
cat >conftest.$ac_ext <<_ACEOF
22544
cat confdefs.h >>conftest.$ac_ext
22545
cat >>conftest.$ac_ext <<_ACEOF
22546
/* end confdefs.h. */
22547
$ac_includes_default
22548
typedef short ac__type_sizeof_;
22552
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22553
test_array @<:@0@:>@ = 0
22559
rm -f conftest.$ac_objext
22560
if { (ac_try="$ac_compile"
22561
case "(($ac_try" in
22562
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563
*) ac_try_echo=$ac_try;;
22565
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22566
(eval "$ac_compile") 2>conftest.er1
22568
grep -v '^ *+' conftest.er1 >conftest.err
22570
cat conftest.err >&5
22571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572
(exit $ac_status); } && {
22573
test -z "$ac_c_werror_flag" ||
22574
test ! -s conftest.err
22575
} && test -s conftest.$ac_objext; then
22576
ac_hi=$ac_mid; break
22578
echo "$as_me: failed program was:" >&5
22579
sed 's/^/| /' conftest.$ac_ext >&5
22581
ac_lo=`expr $ac_mid + 1`
22582
if test $ac_lo -le $ac_mid; then
22586
ac_mid=`expr 2 '*' $ac_mid + 1`
22589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22592
echo "$as_me: failed program was:" >&5
22593
sed 's/^/| /' conftest.$ac_ext >&5
22595
cat >conftest.$ac_ext <<_ACEOF
22598
cat confdefs.h >>conftest.$ac_ext
22599
cat >>conftest.$ac_ext <<_ACEOF
22600
/* end confdefs.h. */
22601
$ac_includes_default
22602
typedef short ac__type_sizeof_;
22606
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
22607
test_array @<:@0@:>@ = 0
22613
rm -f conftest.$ac_objext
22614
if { (ac_try="$ac_compile"
22615
case "(($ac_try" in
22616
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617
*) ac_try_echo=$ac_try;;
22619
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22620
(eval "$ac_compile") 2>conftest.er1
22622
grep -v '^ *+' conftest.er1 >conftest.err
22624
cat conftest.err >&5
22625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626
(exit $ac_status); } && {
22627
test -z "$ac_c_werror_flag" ||
22628
test ! -s conftest.err
22629
} && test -s conftest.$ac_objext; then
22632
cat >conftest.$ac_ext <<_ACEOF
22635
cat confdefs.h >>conftest.$ac_ext
22636
cat >>conftest.$ac_ext <<_ACEOF
22637
/* end confdefs.h. */
22638
$ac_includes_default
22639
typedef short ac__type_sizeof_;
22643
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
22644
test_array @<:@0@:>@ = 0
22650
rm -f conftest.$ac_objext
22651
if { (ac_try="$ac_compile"
22652
case "(($ac_try" in
22653
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22654
*) ac_try_echo=$ac_try;;
22656
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22657
(eval "$ac_compile") 2>conftest.er1
22659
grep -v '^ *+' conftest.er1 >conftest.err
22661
cat conftest.err >&5
22662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663
(exit $ac_status); } && {
22664
test -z "$ac_c_werror_flag" ||
22665
test ! -s conftest.err
22666
} && test -s conftest.$ac_objext; then
22667
ac_lo=$ac_mid; break
22669
echo "$as_me: failed program was:" >&5
22670
sed 's/^/| /' conftest.$ac_ext >&5
22672
ac_hi=`expr '(' $ac_mid ')' - 1`
22673
if test $ac_mid -le $ac_hi; then
22677
ac_mid=`expr 2 '*' $ac_mid`
22680
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22683
echo "$as_me: failed program was:" >&5
22684
sed 's/^/| /' conftest.$ac_ext >&5
22689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22692
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22693
# Binary search between lo and hi bounds.
22694
while test "x$ac_lo" != "x$ac_hi"; do
22695
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22696
cat >conftest.$ac_ext <<_ACEOF
22699
cat confdefs.h >>conftest.$ac_ext
22700
cat >>conftest.$ac_ext <<_ACEOF
22701
/* end confdefs.h. */
22702
$ac_includes_default
22703
typedef short ac__type_sizeof_;
22707
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22708
test_array @<:@0@:>@ = 0
22714
rm -f conftest.$ac_objext
22715
if { (ac_try="$ac_compile"
22716
case "(($ac_try" in
22717
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22718
*) ac_try_echo=$ac_try;;
22720
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22721
(eval "$ac_compile") 2>conftest.er1
22723
grep -v '^ *+' conftest.er1 >conftest.err
22725
cat conftest.err >&5
22726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727
(exit $ac_status); } && {
22728
test -z "$ac_c_werror_flag" ||
22729
test ! -s conftest.err
22730
} && test -s conftest.$ac_objext; then
22733
echo "$as_me: failed program was:" >&5
22734
sed 's/^/| /' conftest.$ac_ext >&5
22736
ac_lo=`expr '(' $ac_mid ')' + 1`
22739
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22742
?*) ac_cv_sizeof_short=$ac_lo;;
22743
'') if test "$ac_cv_type_short" = yes; then
22744
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22745
See \`config.log' for more details." >&5
22746
echo "$as_me: error: cannot compute sizeof (short)
22747
See \`config.log' for more details." >&2;}
22748
{ (exit 77); exit 77; }; }
22750
ac_cv_sizeof_short=0
22754
cat >conftest.$ac_ext <<_ACEOF
22757
cat confdefs.h >>conftest.$ac_ext
22758
cat >>conftest.$ac_ext <<_ACEOF
22759
/* end confdefs.h. */
22760
$ac_includes_default
22761
typedef short ac__type_sizeof_;
22762
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22763
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22764
@%:@include <stdio.h>
22765
@%:@include <stdlib.h>
22770
FILE *f = fopen ("conftest.val", "w");
22773
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22775
long int i = longval ();
22776
if (i != ((long int) (sizeof (ac__type_sizeof_))))
22778
fprintf (f, "%ld\n", i);
22782
unsigned long int i = ulongval ();
22783
if (i != ((long int) (sizeof (ac__type_sizeof_))))
22785
fprintf (f, "%lu\n", i);
22787
return ferror (f) || fclose (f) != 0;
22793
rm -f conftest$ac_exeext
22794
if { (ac_try="$ac_link"
22795
case "(($ac_try" in
22796
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22797
*) ac_try_echo=$ac_try;;
22799
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22800
(eval "$ac_link") 2>&5
22802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22804
{ (case "(($ac_try" in
22805
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806
*) ac_try_echo=$ac_try;;
22808
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22809
(eval "$ac_try") 2>&5
22811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812
(exit $ac_status); }; }; then
22813
ac_cv_sizeof_short=`cat conftest.val`
22815
echo "$as_me: program exited with status $ac_status" >&5
22816
echo "$as_me: failed program was:" >&5
22817
sed 's/^/| /' conftest.$ac_ext >&5
22819
( exit $ac_status )
22820
if test "$ac_cv_type_short" = yes; then
22821
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22822
See \`config.log' for more details." >&5
22823
echo "$as_me: error: cannot compute sizeof (short)
22824
See \`config.log' for more details." >&2;}
22825
{ (exit 77); exit 77; }; }
22827
ac_cv_sizeof_short=0
22830
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22834
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
22835
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
22839
cat >>confdefs.h <<_ACEOF
22840
@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
22844
{ echo "$as_me:$LINENO: checking for unsigned short" >&5
22845
echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
22846
if test "${ac_cv_type_unsigned_short+set}" = set; then
22847
echo $ECHO_N "(cached) $ECHO_C" >&6
22849
cat >conftest.$ac_ext <<_ACEOF
22852
cat confdefs.h >>conftest.$ac_ext
22853
cat >>conftest.$ac_ext <<_ACEOF
22854
/* end confdefs.h. */
22855
$ac_includes_default
22856
typedef unsigned short ac__type_new_;
22860
if ((ac__type_new_ *) 0)
22862
if (sizeof (ac__type_new_))
22868
rm -f conftest.$ac_objext
22869
if { (ac_try="$ac_compile"
22870
case "(($ac_try" in
22871
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22872
*) ac_try_echo=$ac_try;;
22874
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22875
(eval "$ac_compile") 2>conftest.er1
22877
grep -v '^ *+' conftest.er1 >conftest.err
22879
cat conftest.err >&5
22880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881
(exit $ac_status); } && {
22882
test -z "$ac_c_werror_flag" ||
22883
test ! -s conftest.err
22884
} && test -s conftest.$ac_objext; then
22885
ac_cv_type_unsigned_short=yes
22887
echo "$as_me: failed program was:" >&5
22888
sed 's/^/| /' conftest.$ac_ext >&5
22890
ac_cv_type_unsigned_short=no
22893
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22895
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
22896
echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
22898
# The cast to long int works around a bug in the HP C Compiler
22899
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22900
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22901
# This bug is HP SR number 8606223364.
22902
{ echo "$as_me:$LINENO: checking size of unsigned short" >&5
22903
echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
22904
if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
22905
echo $ECHO_N "(cached) $ECHO_C" >&6
22907
if test "$cross_compiling" = yes; then
22908
# Depending upon the size, compute the lo and hi bounds.
22909
cat >conftest.$ac_ext <<_ACEOF
22912
cat confdefs.h >>conftest.$ac_ext
22913
cat >>conftest.$ac_ext <<_ACEOF
22914
/* end confdefs.h. */
22915
$ac_includes_default
22916
typedef unsigned short ac__type_sizeof_;
22920
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
22921
test_array @<:@0@:>@ = 0
22927
rm -f conftest.$ac_objext
22928
if { (ac_try="$ac_compile"
22929
case "(($ac_try" in
22930
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22931
*) ac_try_echo=$ac_try;;
22933
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22934
(eval "$ac_compile") 2>conftest.er1
22936
grep -v '^ *+' conftest.er1 >conftest.err
22938
cat conftest.err >&5
22939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940
(exit $ac_status); } && {
22941
test -z "$ac_c_werror_flag" ||
22942
test ! -s conftest.err
22943
} && test -s conftest.$ac_objext; then
22946
cat >conftest.$ac_ext <<_ACEOF
22949
cat confdefs.h >>conftest.$ac_ext
22950
cat >>conftest.$ac_ext <<_ACEOF
22951
/* end confdefs.h. */
22952
$ac_includes_default
22953
typedef unsigned short ac__type_sizeof_;
22957
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22958
test_array @<:@0@:>@ = 0
22964
rm -f conftest.$ac_objext
22965
if { (ac_try="$ac_compile"
22966
case "(($ac_try" in
22967
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968
*) ac_try_echo=$ac_try;;
22970
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971
(eval "$ac_compile") 2>conftest.er1
22973
grep -v '^ *+' conftest.er1 >conftest.err
22975
cat conftest.err >&5
22976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977
(exit $ac_status); } && {
22978
test -z "$ac_c_werror_flag" ||
22979
test ! -s conftest.err
22980
} && test -s conftest.$ac_objext; then
22981
ac_hi=$ac_mid; break
22983
echo "$as_me: failed program was:" >&5
22984
sed 's/^/| /' conftest.$ac_ext >&5
22986
ac_lo=`expr $ac_mid + 1`
22987
if test $ac_lo -le $ac_mid; then
22991
ac_mid=`expr 2 '*' $ac_mid + 1`
22994
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22997
echo "$as_me: failed program was:" >&5
22998
sed 's/^/| /' conftest.$ac_ext >&5
23000
cat >conftest.$ac_ext <<_ACEOF
23003
cat confdefs.h >>conftest.$ac_ext
23004
cat >>conftest.$ac_ext <<_ACEOF
23005
/* end confdefs.h. */
23006
$ac_includes_default
23007
typedef unsigned short ac__type_sizeof_;
23011
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
23012
test_array @<:@0@:>@ = 0
23018
rm -f conftest.$ac_objext
23019
if { (ac_try="$ac_compile"
23020
case "(($ac_try" in
23021
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23022
*) ac_try_echo=$ac_try;;
23024
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23025
(eval "$ac_compile") 2>conftest.er1
23027
grep -v '^ *+' conftest.er1 >conftest.err
23029
cat conftest.err >&5
23030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031
(exit $ac_status); } && {
23032
test -z "$ac_c_werror_flag" ||
23033
test ! -s conftest.err
23034
} && test -s conftest.$ac_objext; then
23037
cat >conftest.$ac_ext <<_ACEOF
23040
cat confdefs.h >>conftest.$ac_ext
23041
cat >>conftest.$ac_ext <<_ACEOF
23042
/* end confdefs.h. */
23043
$ac_includes_default
23044
typedef unsigned short ac__type_sizeof_;
23048
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
23049
test_array @<:@0@:>@ = 0
23055
rm -f conftest.$ac_objext
23056
if { (ac_try="$ac_compile"
23057
case "(($ac_try" in
23058
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059
*) ac_try_echo=$ac_try;;
23061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062
(eval "$ac_compile") 2>conftest.er1
23064
grep -v '^ *+' conftest.er1 >conftest.err
23066
cat conftest.err >&5
23067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068
(exit $ac_status); } && {
23069
test -z "$ac_c_werror_flag" ||
23070
test ! -s conftest.err
23071
} && test -s conftest.$ac_objext; then
23072
ac_lo=$ac_mid; break
23074
echo "$as_me: failed program was:" >&5
23075
sed 's/^/| /' conftest.$ac_ext >&5
23077
ac_hi=`expr '(' $ac_mid ')' - 1`
23078
if test $ac_mid -le $ac_hi; then
23082
ac_mid=`expr 2 '*' $ac_mid`
23085
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23088
echo "$as_me: failed program was:" >&5
23089
sed 's/^/| /' conftest.$ac_ext >&5
23094
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23097
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23098
# Binary search between lo and hi bounds.
23099
while test "x$ac_lo" != "x$ac_hi"; do
23100
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23101
cat >conftest.$ac_ext <<_ACEOF
23104
cat confdefs.h >>conftest.$ac_ext
23105
cat >>conftest.$ac_ext <<_ACEOF
23106
/* end confdefs.h. */
23107
$ac_includes_default
23108
typedef unsigned short ac__type_sizeof_;
23112
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23113
test_array @<:@0@:>@ = 0
23119
rm -f conftest.$ac_objext
23120
if { (ac_try="$ac_compile"
23121
case "(($ac_try" in
23122
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23123
*) ac_try_echo=$ac_try;;
23125
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23126
(eval "$ac_compile") 2>conftest.er1
23128
grep -v '^ *+' conftest.er1 >conftest.err
23130
cat conftest.err >&5
23131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132
(exit $ac_status); } && {
23133
test -z "$ac_c_werror_flag" ||
23134
test ! -s conftest.err
23135
} && test -s conftest.$ac_objext; then
23138
echo "$as_me: failed program was:" >&5
23139
sed 's/^/| /' conftest.$ac_ext >&5
23141
ac_lo=`expr '(' $ac_mid ')' + 1`
23144
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23147
?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
23148
'') if test "$ac_cv_type_unsigned_short" = yes; then
23149
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
23150
See \`config.log' for more details." >&5
23151
echo "$as_me: error: cannot compute sizeof (unsigned short)
23152
See \`config.log' for more details." >&2;}
23153
{ (exit 77); exit 77; }; }
23155
ac_cv_sizeof_unsigned_short=0
23159
cat >conftest.$ac_ext <<_ACEOF
23162
cat confdefs.h >>conftest.$ac_ext
23163
cat >>conftest.$ac_ext <<_ACEOF
23164
/* end confdefs.h. */
23165
$ac_includes_default
23166
typedef unsigned short ac__type_sizeof_;
23167
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23168
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23169
@%:@include <stdio.h>
23170
@%:@include <stdlib.h>
23175
FILE *f = fopen ("conftest.val", "w");
23178
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23180
long int i = longval ();
23181
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23183
fprintf (f, "%ld\n", i);
23187
unsigned long int i = ulongval ();
23188
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23190
fprintf (f, "%lu\n", i);
23192
return ferror (f) || fclose (f) != 0;
23198
rm -f conftest$ac_exeext
23199
if { (ac_try="$ac_link"
23200
case "(($ac_try" in
23201
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23202
*) ac_try_echo=$ac_try;;
23204
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23205
(eval "$ac_link") 2>&5
23207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23209
{ (case "(($ac_try" in
23210
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211
*) ac_try_echo=$ac_try;;
23213
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23214
(eval "$ac_try") 2>&5
23216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217
(exit $ac_status); }; }; then
23218
ac_cv_sizeof_unsigned_short=`cat conftest.val`
23220
echo "$as_me: program exited with status $ac_status" >&5
23221
echo "$as_me: failed program was:" >&5
23222
sed 's/^/| /' conftest.$ac_ext >&5
23224
( exit $ac_status )
23225
if test "$ac_cv_type_unsigned_short" = yes; then
23226
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
23227
See \`config.log' for more details." >&5
23228
echo "$as_me: error: cannot compute sizeof (unsigned short)
23229
See \`config.log' for more details." >&2;}
23230
{ (exit 77); exit 77; }; }
23232
ac_cv_sizeof_unsigned_short=0
23235
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23239
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
23240
echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
23244
cat >>confdefs.h <<_ACEOF
23245
@%:@define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23249
{ echo "$as_me:$LINENO: checking for int" >&5
23250
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
23251
if test "${ac_cv_type_int+set}" = set; then
23252
echo $ECHO_N "(cached) $ECHO_C" >&6
23254
cat >conftest.$ac_ext <<_ACEOF
23257
cat confdefs.h >>conftest.$ac_ext
23258
cat >>conftest.$ac_ext <<_ACEOF
23259
/* end confdefs.h. */
23260
$ac_includes_default
23261
typedef int ac__type_new_;
23265
if ((ac__type_new_ *) 0)
23267
if (sizeof (ac__type_new_))
23273
rm -f conftest.$ac_objext
23274
if { (ac_try="$ac_compile"
23275
case "(($ac_try" in
23276
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23277
*) ac_try_echo=$ac_try;;
23279
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23280
(eval "$ac_compile") 2>conftest.er1
23282
grep -v '^ *+' conftest.er1 >conftest.err
23284
cat conftest.err >&5
23285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286
(exit $ac_status); } && {
23287
test -z "$ac_c_werror_flag" ||
23288
test ! -s conftest.err
23289
} && test -s conftest.$ac_objext; then
23292
echo "$as_me: failed program was:" >&5
23293
sed 's/^/| /' conftest.$ac_ext >&5
23298
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23300
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23301
echo "${ECHO_T}$ac_cv_type_int" >&6; }
23303
# The cast to long int works around a bug in the HP C Compiler
23304
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23305
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23306
# This bug is HP SR number 8606223364.
23307
{ echo "$as_me:$LINENO: checking size of int" >&5
23308
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
23309
if test "${ac_cv_sizeof_int+set}" = set; then
23310
echo $ECHO_N "(cached) $ECHO_C" >&6
23312
if test "$cross_compiling" = yes; then
23313
# Depending upon the size, compute the lo and hi bounds.
23314
cat >conftest.$ac_ext <<_ACEOF
23317
cat confdefs.h >>conftest.$ac_ext
23318
cat >>conftest.$ac_ext <<_ACEOF
23319
/* end confdefs.h. */
23320
$ac_includes_default
23321
typedef int ac__type_sizeof_;
23325
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
23326
test_array @<:@0@:>@ = 0
23332
rm -f conftest.$ac_objext
23333
if { (ac_try="$ac_compile"
23334
case "(($ac_try" in
23335
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336
*) ac_try_echo=$ac_try;;
23338
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23339
(eval "$ac_compile") 2>conftest.er1
23341
grep -v '^ *+' conftest.er1 >conftest.err
23343
cat conftest.err >&5
23344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345
(exit $ac_status); } && {
23346
test -z "$ac_c_werror_flag" ||
23347
test ! -s conftest.err
23348
} && test -s conftest.$ac_objext; then
23351
cat >conftest.$ac_ext <<_ACEOF
23354
cat confdefs.h >>conftest.$ac_ext
23355
cat >>conftest.$ac_ext <<_ACEOF
23356
/* end confdefs.h. */
23357
$ac_includes_default
23358
typedef int ac__type_sizeof_;
23362
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23363
test_array @<:@0@:>@ = 0
23369
rm -f conftest.$ac_objext
23370
if { (ac_try="$ac_compile"
23371
case "(($ac_try" in
23372
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23373
*) ac_try_echo=$ac_try;;
23375
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23376
(eval "$ac_compile") 2>conftest.er1
23378
grep -v '^ *+' conftest.er1 >conftest.err
23380
cat conftest.err >&5
23381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382
(exit $ac_status); } && {
23383
test -z "$ac_c_werror_flag" ||
23384
test ! -s conftest.err
23385
} && test -s conftest.$ac_objext; then
23386
ac_hi=$ac_mid; break
23388
echo "$as_me: failed program was:" >&5
23389
sed 's/^/| /' conftest.$ac_ext >&5
23391
ac_lo=`expr $ac_mid + 1`
23392
if test $ac_lo -le $ac_mid; then
23396
ac_mid=`expr 2 '*' $ac_mid + 1`
23399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23402
echo "$as_me: failed program was:" >&5
23403
sed 's/^/| /' conftest.$ac_ext >&5
23405
cat >conftest.$ac_ext <<_ACEOF
23408
cat confdefs.h >>conftest.$ac_ext
23409
cat >>conftest.$ac_ext <<_ACEOF
23410
/* end confdefs.h. */
23411
$ac_includes_default
23412
typedef int ac__type_sizeof_;
23416
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
23417
test_array @<:@0@:>@ = 0
23423
rm -f conftest.$ac_objext
23424
if { (ac_try="$ac_compile"
23425
case "(($ac_try" in
23426
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23427
*) ac_try_echo=$ac_try;;
23429
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23430
(eval "$ac_compile") 2>conftest.er1
23432
grep -v '^ *+' conftest.er1 >conftest.err
23434
cat conftest.err >&5
23435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436
(exit $ac_status); } && {
23437
test -z "$ac_c_werror_flag" ||
23438
test ! -s conftest.err
23439
} && test -s conftest.$ac_objext; then
23442
cat >conftest.$ac_ext <<_ACEOF
23445
cat confdefs.h >>conftest.$ac_ext
23446
cat >>conftest.$ac_ext <<_ACEOF
23447
/* end confdefs.h. */
23448
$ac_includes_default
23449
typedef int ac__type_sizeof_;
23453
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
23454
test_array @<:@0@:>@ = 0
23460
rm -f conftest.$ac_objext
23461
if { (ac_try="$ac_compile"
23462
case "(($ac_try" in
23463
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464
*) ac_try_echo=$ac_try;;
23466
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467
(eval "$ac_compile") 2>conftest.er1
23469
grep -v '^ *+' conftest.er1 >conftest.err
23471
cat conftest.err >&5
23472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473
(exit $ac_status); } && {
23474
test -z "$ac_c_werror_flag" ||
23475
test ! -s conftest.err
23476
} && test -s conftest.$ac_objext; then
23477
ac_lo=$ac_mid; break
23479
echo "$as_me: failed program was:" >&5
23480
sed 's/^/| /' conftest.$ac_ext >&5
23482
ac_hi=`expr '(' $ac_mid ')' - 1`
23483
if test $ac_mid -le $ac_hi; then
23487
ac_mid=`expr 2 '*' $ac_mid`
23490
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23493
echo "$as_me: failed program was:" >&5
23494
sed 's/^/| /' conftest.$ac_ext >&5
23499
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23502
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23503
# Binary search between lo and hi bounds.
23504
while test "x$ac_lo" != "x$ac_hi"; do
23505
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23506
cat >conftest.$ac_ext <<_ACEOF
23509
cat confdefs.h >>conftest.$ac_ext
23510
cat >>conftest.$ac_ext <<_ACEOF
23511
/* end confdefs.h. */
23512
$ac_includes_default
23513
typedef int ac__type_sizeof_;
23517
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23518
test_array @<:@0@:>@ = 0
23524
rm -f conftest.$ac_objext
23525
if { (ac_try="$ac_compile"
23526
case "(($ac_try" in
23527
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23528
*) ac_try_echo=$ac_try;;
23530
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23531
(eval "$ac_compile") 2>conftest.er1
23533
grep -v '^ *+' conftest.er1 >conftest.err
23535
cat conftest.err >&5
23536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537
(exit $ac_status); } && {
23538
test -z "$ac_c_werror_flag" ||
23539
test ! -s conftest.err
23540
} && test -s conftest.$ac_objext; then
23543
echo "$as_me: failed program was:" >&5
23544
sed 's/^/| /' conftest.$ac_ext >&5
23546
ac_lo=`expr '(' $ac_mid ')' + 1`
23549
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23552
?*) ac_cv_sizeof_int=$ac_lo;;
23553
'') if test "$ac_cv_type_int" = yes; then
23554
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23555
See \`config.log' for more details." >&5
23556
echo "$as_me: error: cannot compute sizeof (int)
23557
See \`config.log' for more details." >&2;}
23558
{ (exit 77); exit 77; }; }
23564
cat >conftest.$ac_ext <<_ACEOF
23567
cat confdefs.h >>conftest.$ac_ext
23568
cat >>conftest.$ac_ext <<_ACEOF
23569
/* end confdefs.h. */
23570
$ac_includes_default
23571
typedef int ac__type_sizeof_;
23572
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23573
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23574
@%:@include <stdio.h>
23575
@%:@include <stdlib.h>
23580
FILE *f = fopen ("conftest.val", "w");
23583
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23585
long int i = longval ();
23586
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23588
fprintf (f, "%ld\n", i);
23592
unsigned long int i = ulongval ();
23593
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23595
fprintf (f, "%lu\n", i);
23597
return ferror (f) || fclose (f) != 0;
23603
rm -f conftest$ac_exeext
23604
if { (ac_try="$ac_link"
23605
case "(($ac_try" in
23606
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23607
*) ac_try_echo=$ac_try;;
23609
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23610
(eval "$ac_link") 2>&5
23612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23614
{ (case "(($ac_try" in
23615
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616
*) ac_try_echo=$ac_try;;
23618
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23619
(eval "$ac_try") 2>&5
23621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622
(exit $ac_status); }; }; then
23623
ac_cv_sizeof_int=`cat conftest.val`
23625
echo "$as_me: program exited with status $ac_status" >&5
23626
echo "$as_me: failed program was:" >&5
23627
sed 's/^/| /' conftest.$ac_ext >&5
23629
( exit $ac_status )
23630
if test "$ac_cv_type_int" = yes; then
23631
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23632
See \`config.log' for more details." >&5
23633
echo "$as_me: error: cannot compute sizeof (int)
23634
See \`config.log' for more details." >&2;}
23635
{ (exit 77); exit 77; }; }
23640
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23644
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23645
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
23649
cat >>confdefs.h <<_ACEOF
23650
@%:@define SIZEOF_INT $ac_cv_sizeof_int
23654
{ echo "$as_me:$LINENO: checking for unsigned int" >&5
23655
echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
23656
if test "${ac_cv_type_unsigned_int+set}" = set; then
23657
echo $ECHO_N "(cached) $ECHO_C" >&6
23659
cat >conftest.$ac_ext <<_ACEOF
23662
cat confdefs.h >>conftest.$ac_ext
23663
cat >>conftest.$ac_ext <<_ACEOF
23664
/* end confdefs.h. */
23665
$ac_includes_default
23666
typedef unsigned int ac__type_new_;
23670
if ((ac__type_new_ *) 0)
23672
if (sizeof (ac__type_new_))
23678
rm -f conftest.$ac_objext
23679
if { (ac_try="$ac_compile"
23680
case "(($ac_try" in
23681
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682
*) ac_try_echo=$ac_try;;
23684
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685
(eval "$ac_compile") 2>conftest.er1
23687
grep -v '^ *+' conftest.er1 >conftest.err
23689
cat conftest.err >&5
23690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691
(exit $ac_status); } && {
23692
test -z "$ac_c_werror_flag" ||
23693
test ! -s conftest.err
23694
} && test -s conftest.$ac_objext; then
23695
ac_cv_type_unsigned_int=yes
23697
echo "$as_me: failed program was:" >&5
23698
sed 's/^/| /' conftest.$ac_ext >&5
23700
ac_cv_type_unsigned_int=no
23703
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23705
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
23706
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
23708
# The cast to long int works around a bug in the HP C Compiler
23709
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23710
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23711
# This bug is HP SR number 8606223364.
23712
{ echo "$as_me:$LINENO: checking size of unsigned int" >&5
23713
echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
23714
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
23715
echo $ECHO_N "(cached) $ECHO_C" >&6
23717
if test "$cross_compiling" = yes; then
23718
# Depending upon the size, compute the lo and hi bounds.
23719
cat >conftest.$ac_ext <<_ACEOF
23722
cat confdefs.h >>conftest.$ac_ext
23723
cat >>conftest.$ac_ext <<_ACEOF
23724
/* end confdefs.h. */
23725
$ac_includes_default
23726
typedef unsigned int ac__type_sizeof_;
23730
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
23731
test_array @<:@0@:>@ = 0
23737
rm -f conftest.$ac_objext
23738
if { (ac_try="$ac_compile"
23739
case "(($ac_try" in
23740
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23741
*) ac_try_echo=$ac_try;;
23743
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23744
(eval "$ac_compile") 2>conftest.er1
23746
grep -v '^ *+' conftest.er1 >conftest.err
23748
cat conftest.err >&5
23749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750
(exit $ac_status); } && {
23751
test -z "$ac_c_werror_flag" ||
23752
test ! -s conftest.err
23753
} && test -s conftest.$ac_objext; then
23756
cat >conftest.$ac_ext <<_ACEOF
23759
cat confdefs.h >>conftest.$ac_ext
23760
cat >>conftest.$ac_ext <<_ACEOF
23761
/* end confdefs.h. */
23762
$ac_includes_default
23763
typedef unsigned int ac__type_sizeof_;
23767
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23768
test_array @<:@0@:>@ = 0
23774
rm -f conftest.$ac_objext
23775
if { (ac_try="$ac_compile"
23776
case "(($ac_try" in
23777
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23778
*) ac_try_echo=$ac_try;;
23780
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23781
(eval "$ac_compile") 2>conftest.er1
23783
grep -v '^ *+' conftest.er1 >conftest.err
23785
cat conftest.err >&5
23786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787
(exit $ac_status); } && {
23788
test -z "$ac_c_werror_flag" ||
23789
test ! -s conftest.err
23790
} && test -s conftest.$ac_objext; then
23791
ac_hi=$ac_mid; break
23793
echo "$as_me: failed program was:" >&5
23794
sed 's/^/| /' conftest.$ac_ext >&5
23796
ac_lo=`expr $ac_mid + 1`
23797
if test $ac_lo -le $ac_mid; then
23801
ac_mid=`expr 2 '*' $ac_mid + 1`
23804
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23807
echo "$as_me: failed program was:" >&5
23808
sed 's/^/| /' conftest.$ac_ext >&5
23810
cat >conftest.$ac_ext <<_ACEOF
23813
cat confdefs.h >>conftest.$ac_ext
23814
cat >>conftest.$ac_ext <<_ACEOF
23815
/* end confdefs.h. */
23816
$ac_includes_default
23817
typedef unsigned int ac__type_sizeof_;
23821
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
23822
test_array @<:@0@:>@ = 0
23828
rm -f conftest.$ac_objext
23829
if { (ac_try="$ac_compile"
23830
case "(($ac_try" in
23831
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23832
*) ac_try_echo=$ac_try;;
23834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23835
(eval "$ac_compile") 2>conftest.er1
23837
grep -v '^ *+' conftest.er1 >conftest.err
23839
cat conftest.err >&5
23840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841
(exit $ac_status); } && {
23842
test -z "$ac_c_werror_flag" ||
23843
test ! -s conftest.err
23844
} && test -s conftest.$ac_objext; then
23847
cat >conftest.$ac_ext <<_ACEOF
23850
cat confdefs.h >>conftest.$ac_ext
23851
cat >>conftest.$ac_ext <<_ACEOF
23852
/* end confdefs.h. */
23853
$ac_includes_default
23854
typedef unsigned int ac__type_sizeof_;
23858
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
23859
test_array @<:@0@:>@ = 0
23865
rm -f conftest.$ac_objext
23866
if { (ac_try="$ac_compile"
23867
case "(($ac_try" in
23868
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23869
*) ac_try_echo=$ac_try;;
23871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23872
(eval "$ac_compile") 2>conftest.er1
23874
grep -v '^ *+' conftest.er1 >conftest.err
23876
cat conftest.err >&5
23877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878
(exit $ac_status); } && {
23879
test -z "$ac_c_werror_flag" ||
23880
test ! -s conftest.err
23881
} && test -s conftest.$ac_objext; then
23882
ac_lo=$ac_mid; break
23884
echo "$as_me: failed program was:" >&5
23885
sed 's/^/| /' conftest.$ac_ext >&5
23887
ac_hi=`expr '(' $ac_mid ')' - 1`
23888
if test $ac_mid -le $ac_hi; then
23892
ac_mid=`expr 2 '*' $ac_mid`
23895
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23898
echo "$as_me: failed program was:" >&5
23899
sed 's/^/| /' conftest.$ac_ext >&5
23904
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23907
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23908
# Binary search between lo and hi bounds.
23909
while test "x$ac_lo" != "x$ac_hi"; do
23910
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23911
cat >conftest.$ac_ext <<_ACEOF
23914
cat confdefs.h >>conftest.$ac_ext
23915
cat >>conftest.$ac_ext <<_ACEOF
23916
/* end confdefs.h. */
23917
$ac_includes_default
23918
typedef unsigned int ac__type_sizeof_;
23922
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23923
test_array @<:@0@:>@ = 0
23929
rm -f conftest.$ac_objext
23930
if { (ac_try="$ac_compile"
23931
case "(($ac_try" in
23932
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933
*) ac_try_echo=$ac_try;;
23935
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936
(eval "$ac_compile") 2>conftest.er1
23938
grep -v '^ *+' conftest.er1 >conftest.err
23940
cat conftest.err >&5
23941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942
(exit $ac_status); } && {
23943
test -z "$ac_c_werror_flag" ||
23944
test ! -s conftest.err
23945
} && test -s conftest.$ac_objext; then
23948
echo "$as_me: failed program was:" >&5
23949
sed 's/^/| /' conftest.$ac_ext >&5
23951
ac_lo=`expr '(' $ac_mid ')' + 1`
23954
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23957
?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
23958
'') if test "$ac_cv_type_unsigned_int" = yes; then
23959
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
23960
See \`config.log' for more details." >&5
23961
echo "$as_me: error: cannot compute sizeof (unsigned int)
23962
See \`config.log' for more details." >&2;}
23963
{ (exit 77); exit 77; }; }
23965
ac_cv_sizeof_unsigned_int=0
23969
cat >conftest.$ac_ext <<_ACEOF
23972
cat confdefs.h >>conftest.$ac_ext
23973
cat >>conftest.$ac_ext <<_ACEOF
23974
/* end confdefs.h. */
23975
$ac_includes_default
23976
typedef unsigned int ac__type_sizeof_;
23977
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23978
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23979
@%:@include <stdio.h>
23980
@%:@include <stdlib.h>
23985
FILE *f = fopen ("conftest.val", "w");
23988
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23990
long int i = longval ();
23991
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23993
fprintf (f, "%ld\n", i);
23997
unsigned long int i = ulongval ();
23998
if (i != ((long int) (sizeof (ac__type_sizeof_))))
24000
fprintf (f, "%lu\n", i);
24002
return ferror (f) || fclose (f) != 0;
24008
rm -f conftest$ac_exeext
24009
if { (ac_try="$ac_link"
24010
case "(($ac_try" in
24011
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24012
*) ac_try_echo=$ac_try;;
24014
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24015
(eval "$ac_link") 2>&5
24017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24019
{ (case "(($ac_try" in
24020
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24021
*) ac_try_echo=$ac_try;;
24023
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24024
(eval "$ac_try") 2>&5
24026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027
(exit $ac_status); }; }; then
24028
ac_cv_sizeof_unsigned_int=`cat conftest.val`
24030
echo "$as_me: program exited with status $ac_status" >&5
24031
echo "$as_me: failed program was:" >&5
24032
sed 's/^/| /' conftest.$ac_ext >&5
24034
( exit $ac_status )
24035
if test "$ac_cv_type_unsigned_int" = yes; then
24036
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
24037
See \`config.log' for more details." >&5
24038
echo "$as_me: error: cannot compute sizeof (unsigned int)
24039
See \`config.log' for more details." >&2;}
24040
{ (exit 77); exit 77; }; }
24042
ac_cv_sizeof_unsigned_int=0
24045
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24049
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
24050
echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
24054
cat >>confdefs.h <<_ACEOF
24055
@%:@define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24059
{ echo "$as_me:$LINENO: checking for long" >&5
24060
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
24061
if test "${ac_cv_type_long+set}" = set; then
24062
echo $ECHO_N "(cached) $ECHO_C" >&6
24064
cat >conftest.$ac_ext <<_ACEOF
24067
cat confdefs.h >>conftest.$ac_ext
24068
cat >>conftest.$ac_ext <<_ACEOF
24069
/* end confdefs.h. */
24070
$ac_includes_default
24071
typedef long ac__type_new_;
24075
if ((ac__type_new_ *) 0)
24077
if (sizeof (ac__type_new_))
24083
rm -f conftest.$ac_objext
24084
if { (ac_try="$ac_compile"
24085
case "(($ac_try" in
24086
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24087
*) ac_try_echo=$ac_try;;
24089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24090
(eval "$ac_compile") 2>conftest.er1
24092
grep -v '^ *+' conftest.er1 >conftest.err
24094
cat conftest.err >&5
24095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096
(exit $ac_status); } && {
24097
test -z "$ac_c_werror_flag" ||
24098
test ! -s conftest.err
24099
} && test -s conftest.$ac_objext; then
24100
ac_cv_type_long=yes
24102
echo "$as_me: failed program was:" >&5
24103
sed 's/^/| /' conftest.$ac_ext >&5
24108
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24110
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
24111
echo "${ECHO_T}$ac_cv_type_long" >&6; }
24113
# The cast to long int works around a bug in the HP C Compiler
24114
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24115
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24116
# This bug is HP SR number 8606223364.
24117
{ echo "$as_me:$LINENO: checking size of long" >&5
24118
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
24119
if test "${ac_cv_sizeof_long+set}" = set; then
24120
echo $ECHO_N "(cached) $ECHO_C" >&6
24122
if test "$cross_compiling" = yes; then
24123
# Depending upon the size, compute the lo and hi bounds.
24124
cat >conftest.$ac_ext <<_ACEOF
24127
cat confdefs.h >>conftest.$ac_ext
24128
cat >>conftest.$ac_ext <<_ACEOF
24129
/* end confdefs.h. */
24130
$ac_includes_default
24131
typedef long ac__type_sizeof_;
24135
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24136
test_array @<:@0@:>@ = 0
24142
rm -f conftest.$ac_objext
24143
if { (ac_try="$ac_compile"
24144
case "(($ac_try" in
24145
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24146
*) ac_try_echo=$ac_try;;
24148
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24149
(eval "$ac_compile") 2>conftest.er1
24151
grep -v '^ *+' conftest.er1 >conftest.err
24153
cat conftest.err >&5
24154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155
(exit $ac_status); } && {
24156
test -z "$ac_c_werror_flag" ||
24157
test ! -s conftest.err
24158
} && test -s conftest.$ac_objext; then
24161
cat >conftest.$ac_ext <<_ACEOF
24164
cat confdefs.h >>conftest.$ac_ext
24165
cat >>conftest.$ac_ext <<_ACEOF
24166
/* end confdefs.h. */
24167
$ac_includes_default
24168
typedef long ac__type_sizeof_;
24172
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24173
test_array @<:@0@:>@ = 0
24179
rm -f conftest.$ac_objext
24180
if { (ac_try="$ac_compile"
24181
case "(($ac_try" in
24182
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24183
*) ac_try_echo=$ac_try;;
24185
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24186
(eval "$ac_compile") 2>conftest.er1
24188
grep -v '^ *+' conftest.er1 >conftest.err
24190
cat conftest.err >&5
24191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24192
(exit $ac_status); } && {
24193
test -z "$ac_c_werror_flag" ||
24194
test ! -s conftest.err
24195
} && test -s conftest.$ac_objext; then
24196
ac_hi=$ac_mid; break
24198
echo "$as_me: failed program was:" >&5
24199
sed 's/^/| /' conftest.$ac_ext >&5
24201
ac_lo=`expr $ac_mid + 1`
24202
if test $ac_lo -le $ac_mid; then
24206
ac_mid=`expr 2 '*' $ac_mid + 1`
24209
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24212
echo "$as_me: failed program was:" >&5
24213
sed 's/^/| /' conftest.$ac_ext >&5
24215
cat >conftest.$ac_ext <<_ACEOF
24218
cat confdefs.h >>conftest.$ac_ext
24219
cat >>conftest.$ac_ext <<_ACEOF
24220
/* end confdefs.h. */
24221
$ac_includes_default
24222
typedef long ac__type_sizeof_;
24226
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24227
test_array @<:@0@:>@ = 0
24233
rm -f conftest.$ac_objext
24234
if { (ac_try="$ac_compile"
24235
case "(($ac_try" in
24236
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24237
*) ac_try_echo=$ac_try;;
24239
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24240
(eval "$ac_compile") 2>conftest.er1
24242
grep -v '^ *+' conftest.er1 >conftest.err
24244
cat conftest.err >&5
24245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246
(exit $ac_status); } && {
24247
test -z "$ac_c_werror_flag" ||
24248
test ! -s conftest.err
24249
} && test -s conftest.$ac_objext; then
24252
cat >conftest.$ac_ext <<_ACEOF
24255
cat confdefs.h >>conftest.$ac_ext
24256
cat >>conftest.$ac_ext <<_ACEOF
24257
/* end confdefs.h. */
24258
$ac_includes_default
24259
typedef long ac__type_sizeof_;
24263
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
24264
test_array @<:@0@:>@ = 0
24270
rm -f conftest.$ac_objext
24271
if { (ac_try="$ac_compile"
24272
case "(($ac_try" in
24273
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274
*) ac_try_echo=$ac_try;;
24276
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24277
(eval "$ac_compile") 2>conftest.er1
24279
grep -v '^ *+' conftest.er1 >conftest.err
24281
cat conftest.err >&5
24282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283
(exit $ac_status); } && {
24284
test -z "$ac_c_werror_flag" ||
24285
test ! -s conftest.err
24286
} && test -s conftest.$ac_objext; then
24287
ac_lo=$ac_mid; break
24289
echo "$as_me: failed program was:" >&5
24290
sed 's/^/| /' conftest.$ac_ext >&5
24292
ac_hi=`expr '(' $ac_mid ')' - 1`
24293
if test $ac_mid -le $ac_hi; then
24297
ac_mid=`expr 2 '*' $ac_mid`
24300
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24303
echo "$as_me: failed program was:" >&5
24304
sed 's/^/| /' conftest.$ac_ext >&5
24309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24312
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24313
# Binary search between lo and hi bounds.
24314
while test "x$ac_lo" != "x$ac_hi"; do
24315
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24316
cat >conftest.$ac_ext <<_ACEOF
24319
cat confdefs.h >>conftest.$ac_ext
24320
cat >>conftest.$ac_ext <<_ACEOF
24321
/* end confdefs.h. */
24322
$ac_includes_default
24323
typedef long ac__type_sizeof_;
24327
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24328
test_array @<:@0@:>@ = 0
24334
rm -f conftest.$ac_objext
24335
if { (ac_try="$ac_compile"
24336
case "(($ac_try" in
24337
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24338
*) ac_try_echo=$ac_try;;
24340
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24341
(eval "$ac_compile") 2>conftest.er1
24343
grep -v '^ *+' conftest.er1 >conftest.err
24345
cat conftest.err >&5
24346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347
(exit $ac_status); } && {
24348
test -z "$ac_c_werror_flag" ||
24349
test ! -s conftest.err
24350
} && test -s conftest.$ac_objext; then
24353
echo "$as_me: failed program was:" >&5
24354
sed 's/^/| /' conftest.$ac_ext >&5
24356
ac_lo=`expr '(' $ac_mid ')' + 1`
24359
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24362
?*) ac_cv_sizeof_long=$ac_lo;;
24363
'') if test "$ac_cv_type_long" = yes; then
24364
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24365
See \`config.log' for more details." >&5
24366
echo "$as_me: error: cannot compute sizeof (long)
24367
See \`config.log' for more details." >&2;}
24368
{ (exit 77); exit 77; }; }
24370
ac_cv_sizeof_long=0
24374
cat >conftest.$ac_ext <<_ACEOF
24377
cat confdefs.h >>conftest.$ac_ext
24378
cat >>conftest.$ac_ext <<_ACEOF
24379
/* end confdefs.h. */
24380
$ac_includes_default
24381
typedef long ac__type_sizeof_;
24382
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24383
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24384
@%:@include <stdio.h>
24385
@%:@include <stdlib.h>
24390
FILE *f = fopen ("conftest.val", "w");
24393
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24395
long int i = longval ();
24396
if (i != ((long int) (sizeof (ac__type_sizeof_))))
24398
fprintf (f, "%ld\n", i);
24402
unsigned long int i = ulongval ();
24403
if (i != ((long int) (sizeof (ac__type_sizeof_))))
24405
fprintf (f, "%lu\n", i);
24407
return ferror (f) || fclose (f) != 0;
24413
rm -f conftest$ac_exeext
24414
if { (ac_try="$ac_link"
24415
case "(($ac_try" in
24416
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24417
*) ac_try_echo=$ac_try;;
24419
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24420
(eval "$ac_link") 2>&5
24422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24424
{ (case "(($ac_try" in
24425
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24426
*) ac_try_echo=$ac_try;;
24428
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24429
(eval "$ac_try") 2>&5
24431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432
(exit $ac_status); }; }; then
24433
ac_cv_sizeof_long=`cat conftest.val`
24435
echo "$as_me: program exited with status $ac_status" >&5
24436
echo "$as_me: failed program was:" >&5
24437
sed 's/^/| /' conftest.$ac_ext >&5
24439
( exit $ac_status )
24440
if test "$ac_cv_type_long" = yes; then
24441
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24442
See \`config.log' for more details." >&5
24443
echo "$as_me: error: cannot compute sizeof (long)
24444
See \`config.log' for more details." >&2;}
24445
{ (exit 77); exit 77; }; }
24447
ac_cv_sizeof_long=0
24450
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24454
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
24455
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
24459
cat >>confdefs.h <<_ACEOF
24460
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
24464
{ echo "$as_me:$LINENO: checking for unsigned long" >&5
24465
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
24466
if test "${ac_cv_type_unsigned_long+set}" = set; then
24467
echo $ECHO_N "(cached) $ECHO_C" >&6
24469
cat >conftest.$ac_ext <<_ACEOF
24472
cat confdefs.h >>conftest.$ac_ext
24473
cat >>conftest.$ac_ext <<_ACEOF
24474
/* end confdefs.h. */
24475
$ac_includes_default
24476
typedef unsigned long ac__type_new_;
24480
if ((ac__type_new_ *) 0)
24482
if (sizeof (ac__type_new_))
24488
rm -f conftest.$ac_objext
24489
if { (ac_try="$ac_compile"
24490
case "(($ac_try" in
24491
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24492
*) ac_try_echo=$ac_try;;
24494
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24495
(eval "$ac_compile") 2>conftest.er1
24497
grep -v '^ *+' conftest.er1 >conftest.err
24499
cat conftest.err >&5
24500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501
(exit $ac_status); } && {
24502
test -z "$ac_c_werror_flag" ||
24503
test ! -s conftest.err
24504
} && test -s conftest.$ac_objext; then
24505
ac_cv_type_unsigned_long=yes
24507
echo "$as_me: failed program was:" >&5
24508
sed 's/^/| /' conftest.$ac_ext >&5
24510
ac_cv_type_unsigned_long=no
24513
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24515
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
24516
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
24518
# The cast to long int works around a bug in the HP C Compiler
24519
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24520
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24521
# This bug is HP SR number 8606223364.
24522
{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
24523
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
24524
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
24525
echo $ECHO_N "(cached) $ECHO_C" >&6
24527
if test "$cross_compiling" = yes; then
24528
# Depending upon the size, compute the lo and hi bounds.
24529
cat >conftest.$ac_ext <<_ACEOF
24532
cat confdefs.h >>conftest.$ac_ext
24533
cat >>conftest.$ac_ext <<_ACEOF
24534
/* end confdefs.h. */
24535
$ac_includes_default
24536
typedef unsigned long ac__type_sizeof_;
24540
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24541
test_array @<:@0@:>@ = 0
24547
rm -f conftest.$ac_objext
24548
if { (ac_try="$ac_compile"
24549
case "(($ac_try" in
24550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24551
*) ac_try_echo=$ac_try;;
24553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24554
(eval "$ac_compile") 2>conftest.er1
24556
grep -v '^ *+' conftest.er1 >conftest.err
24558
cat conftest.err >&5
24559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560
(exit $ac_status); } && {
24561
test -z "$ac_c_werror_flag" ||
24562
test ! -s conftest.err
24563
} && test -s conftest.$ac_objext; then
24566
cat >conftest.$ac_ext <<_ACEOF
24569
cat confdefs.h >>conftest.$ac_ext
24570
cat >>conftest.$ac_ext <<_ACEOF
24571
/* end confdefs.h. */
24572
$ac_includes_default
24573
typedef unsigned long ac__type_sizeof_;
24577
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24578
test_array @<:@0@:>@ = 0
24584
rm -f conftest.$ac_objext
24585
if { (ac_try="$ac_compile"
24586
case "(($ac_try" in
24587
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24588
*) ac_try_echo=$ac_try;;
24590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24591
(eval "$ac_compile") 2>conftest.er1
24593
grep -v '^ *+' conftest.er1 >conftest.err
24595
cat conftest.err >&5
24596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597
(exit $ac_status); } && {
24598
test -z "$ac_c_werror_flag" ||
24599
test ! -s conftest.err
24600
} && test -s conftest.$ac_objext; then
24601
ac_hi=$ac_mid; break
24603
echo "$as_me: failed program was:" >&5
24604
sed 's/^/| /' conftest.$ac_ext >&5
24606
ac_lo=`expr $ac_mid + 1`
24607
if test $ac_lo -le $ac_mid; then
24611
ac_mid=`expr 2 '*' $ac_mid + 1`
24614
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24617
echo "$as_me: failed program was:" >&5
24618
sed 's/^/| /' conftest.$ac_ext >&5
24620
cat >conftest.$ac_ext <<_ACEOF
24623
cat confdefs.h >>conftest.$ac_ext
24624
cat >>conftest.$ac_ext <<_ACEOF
24625
/* end confdefs.h. */
24626
$ac_includes_default
24627
typedef unsigned long ac__type_sizeof_;
24631
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24632
test_array @<:@0@:>@ = 0
24638
rm -f conftest.$ac_objext
24639
if { (ac_try="$ac_compile"
24640
case "(($ac_try" in
24641
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642
*) ac_try_echo=$ac_try;;
24644
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645
(eval "$ac_compile") 2>conftest.er1
24647
grep -v '^ *+' conftest.er1 >conftest.err
24649
cat conftest.err >&5
24650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651
(exit $ac_status); } && {
24652
test -z "$ac_c_werror_flag" ||
24653
test ! -s conftest.err
24654
} && test -s conftest.$ac_objext; then
24657
cat >conftest.$ac_ext <<_ACEOF
24660
cat confdefs.h >>conftest.$ac_ext
24661
cat >>conftest.$ac_ext <<_ACEOF
24662
/* end confdefs.h. */
24663
$ac_includes_default
24664
typedef unsigned long ac__type_sizeof_;
24668
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
24669
test_array @<:@0@:>@ = 0
24675
rm -f conftest.$ac_objext
24676
if { (ac_try="$ac_compile"
24677
case "(($ac_try" in
24678
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24679
*) ac_try_echo=$ac_try;;
24681
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24682
(eval "$ac_compile") 2>conftest.er1
24684
grep -v '^ *+' conftest.er1 >conftest.err
24686
cat conftest.err >&5
24687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688
(exit $ac_status); } && {
24689
test -z "$ac_c_werror_flag" ||
24690
test ! -s conftest.err
24691
} && test -s conftest.$ac_objext; then
24692
ac_lo=$ac_mid; break
24694
echo "$as_me: failed program was:" >&5
24695
sed 's/^/| /' conftest.$ac_ext >&5
24697
ac_hi=`expr '(' $ac_mid ')' - 1`
24698
if test $ac_mid -le $ac_hi; then
24702
ac_mid=`expr 2 '*' $ac_mid`
24705
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24708
echo "$as_me: failed program was:" >&5
24709
sed 's/^/| /' conftest.$ac_ext >&5
24714
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24717
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24718
# Binary search between lo and hi bounds.
24719
while test "x$ac_lo" != "x$ac_hi"; do
24720
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24721
cat >conftest.$ac_ext <<_ACEOF
24724
cat confdefs.h >>conftest.$ac_ext
24725
cat >>conftest.$ac_ext <<_ACEOF
24726
/* end confdefs.h. */
24727
$ac_includes_default
24728
typedef unsigned long ac__type_sizeof_;
24732
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24733
test_array @<:@0@:>@ = 0
24739
rm -f conftest.$ac_objext
24740
if { (ac_try="$ac_compile"
24741
case "(($ac_try" in
24742
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24743
*) ac_try_echo=$ac_try;;
24745
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24746
(eval "$ac_compile") 2>conftest.er1
24748
grep -v '^ *+' conftest.er1 >conftest.err
24750
cat conftest.err >&5
24751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752
(exit $ac_status); } && {
24753
test -z "$ac_c_werror_flag" ||
24754
test ! -s conftest.err
24755
} && test -s conftest.$ac_objext; then
24758
echo "$as_me: failed program was:" >&5
24759
sed 's/^/| /' conftest.$ac_ext >&5
24761
ac_lo=`expr '(' $ac_mid ')' + 1`
24764
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24767
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
24768
'') if test "$ac_cv_type_unsigned_long" = yes; then
24769
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
24770
See \`config.log' for more details." >&5
24771
echo "$as_me: error: cannot compute sizeof (unsigned long)
24772
See \`config.log' for more details." >&2;}
24773
{ (exit 77); exit 77; }; }
24775
ac_cv_sizeof_unsigned_long=0
24779
cat >conftest.$ac_ext <<_ACEOF
24782
cat confdefs.h >>conftest.$ac_ext
24783
cat >>conftest.$ac_ext <<_ACEOF
24784
/* end confdefs.h. */
24785
$ac_includes_default
24786
typedef unsigned long ac__type_sizeof_;
24787
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24788
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24789
@%:@include <stdio.h>
24790
@%:@include <stdlib.h>
24795
FILE *f = fopen ("conftest.val", "w");
24798
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24800
long int i = longval ();
24801
if (i != ((long int) (sizeof (ac__type_sizeof_))))
24803
fprintf (f, "%ld\n", i);
24807
unsigned long int i = ulongval ();
24808
if (i != ((long int) (sizeof (ac__type_sizeof_))))
24810
fprintf (f, "%lu\n", i);
24812
return ferror (f) || fclose (f) != 0;
24818
rm -f conftest$ac_exeext
24819
if { (ac_try="$ac_link"
24820
case "(($ac_try" in
24821
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24822
*) ac_try_echo=$ac_try;;
24824
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24825
(eval "$ac_link") 2>&5
24827
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24829
{ (case "(($ac_try" in
24830
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24831
*) ac_try_echo=$ac_try;;
24833
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24834
(eval "$ac_try") 2>&5
24836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837
(exit $ac_status); }; }; then
24838
ac_cv_sizeof_unsigned_long=`cat conftest.val`
24840
echo "$as_me: program exited with status $ac_status" >&5
24841
echo "$as_me: failed program was:" >&5
24842
sed 's/^/| /' conftest.$ac_ext >&5
24844
( exit $ac_status )
24845
if test "$ac_cv_type_unsigned_long" = yes; then
24846
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
24847
See \`config.log' for more details." >&5
24848
echo "$as_me: error: cannot compute sizeof (unsigned long)
24849
See \`config.log' for more details." >&2;}
24850
{ (exit 77); exit 77; }; }
24852
ac_cv_sizeof_unsigned_long=0
24855
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24859
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
24860
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
24864
cat >>confdefs.h <<_ACEOF
24865
@%:@define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24869
{ echo "$as_me:$LINENO: checking for long long" >&5
24870
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24871
if test "${ac_cv_type_long_long+set}" = set; then
24872
echo $ECHO_N "(cached) $ECHO_C" >&6
24874
cat >conftest.$ac_ext <<_ACEOF
24877
cat confdefs.h >>conftest.$ac_ext
24878
cat >>conftest.$ac_ext <<_ACEOF
24879
/* end confdefs.h. */
24880
$ac_includes_default
24881
typedef long long ac__type_new_;
24885
if ((ac__type_new_ *) 0)
24887
if (sizeof (ac__type_new_))
24893
rm -f conftest.$ac_objext
24894
if { (ac_try="$ac_compile"
24895
case "(($ac_try" in
24896
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24897
*) ac_try_echo=$ac_try;;
24899
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24900
(eval "$ac_compile") 2>conftest.er1
24902
grep -v '^ *+' conftest.er1 >conftest.err
24904
cat conftest.err >&5
24905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906
(exit $ac_status); } && {
24907
test -z "$ac_c_werror_flag" ||
24908
test ! -s conftest.err
24909
} && test -s conftest.$ac_objext; then
24910
ac_cv_type_long_long=yes
24912
echo "$as_me: failed program was:" >&5
24913
sed 's/^/| /' conftest.$ac_ext >&5
24915
ac_cv_type_long_long=no
24918
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24920
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24921
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24923
# The cast to long int works around a bug in the HP C Compiler
24924
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24925
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24926
# This bug is HP SR number 8606223364.
24927
{ echo "$as_me:$LINENO: checking size of long long" >&5
24928
echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24929
if test "${ac_cv_sizeof_long_long+set}" = set; then
24930
echo $ECHO_N "(cached) $ECHO_C" >&6
24932
if test "$cross_compiling" = yes; then
24933
# Depending upon the size, compute the lo and hi bounds.
24934
cat >conftest.$ac_ext <<_ACEOF
24937
cat confdefs.h >>conftest.$ac_ext
24938
cat >>conftest.$ac_ext <<_ACEOF
24939
/* end confdefs.h. */
24940
$ac_includes_default
24941
typedef long long ac__type_sizeof_;
24945
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24946
test_array @<:@0@:>@ = 0
24952
rm -f conftest.$ac_objext
24953
if { (ac_try="$ac_compile"
24954
case "(($ac_try" in
24955
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24956
*) ac_try_echo=$ac_try;;
24958
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24959
(eval "$ac_compile") 2>conftest.er1
24961
grep -v '^ *+' conftest.er1 >conftest.err
24963
cat conftest.err >&5
24964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965
(exit $ac_status); } && {
24966
test -z "$ac_c_werror_flag" ||
24967
test ! -s conftest.err
24968
} && test -s conftest.$ac_objext; then
24971
cat >conftest.$ac_ext <<_ACEOF
24974
cat confdefs.h >>conftest.$ac_ext
24975
cat >>conftest.$ac_ext <<_ACEOF
24976
/* end confdefs.h. */
24977
$ac_includes_default
24978
typedef long long ac__type_sizeof_;
24982
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24983
test_array @<:@0@:>@ = 0
24989
rm -f conftest.$ac_objext
24990
if { (ac_try="$ac_compile"
24991
case "(($ac_try" in
24992
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24993
*) ac_try_echo=$ac_try;;
24995
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24996
(eval "$ac_compile") 2>conftest.er1
24998
grep -v '^ *+' conftest.er1 >conftest.err
25000
cat conftest.err >&5
25001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002
(exit $ac_status); } && {
25003
test -z "$ac_c_werror_flag" ||
25004
test ! -s conftest.err
25005
} && test -s conftest.$ac_objext; then
25006
ac_hi=$ac_mid; break
25008
echo "$as_me: failed program was:" >&5
25009
sed 's/^/| /' conftest.$ac_ext >&5
25011
ac_lo=`expr $ac_mid + 1`
25012
if test $ac_lo -le $ac_mid; then
25016
ac_mid=`expr 2 '*' $ac_mid + 1`
25019
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25022
echo "$as_me: failed program was:" >&5
25023
sed 's/^/| /' conftest.$ac_ext >&5
25025
cat >conftest.$ac_ext <<_ACEOF
25028
cat confdefs.h >>conftest.$ac_ext
25029
cat >>conftest.$ac_ext <<_ACEOF
25030
/* end confdefs.h. */
25031
$ac_includes_default
25032
typedef long long ac__type_sizeof_;
25036
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
25037
test_array @<:@0@:>@ = 0
25043
rm -f conftest.$ac_objext
25044
if { (ac_try="$ac_compile"
25045
case "(($ac_try" in
25046
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25047
*) ac_try_echo=$ac_try;;
25049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25050
(eval "$ac_compile") 2>conftest.er1
25052
grep -v '^ *+' conftest.er1 >conftest.err
25054
cat conftest.err >&5
25055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056
(exit $ac_status); } && {
25057
test -z "$ac_c_werror_flag" ||
25058
test ! -s conftest.err
25059
} && test -s conftest.$ac_objext; then
25062
cat >conftest.$ac_ext <<_ACEOF
25065
cat confdefs.h >>conftest.$ac_ext
25066
cat >>conftest.$ac_ext <<_ACEOF
25067
/* end confdefs.h. */
25068
$ac_includes_default
25069
typedef long long ac__type_sizeof_;
25073
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
25074
test_array @<:@0@:>@ = 0
25080
rm -f conftest.$ac_objext
25081
if { (ac_try="$ac_compile"
25082
case "(($ac_try" in
25083
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25084
*) ac_try_echo=$ac_try;;
25086
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25087
(eval "$ac_compile") 2>conftest.er1
25089
grep -v '^ *+' conftest.er1 >conftest.err
25091
cat conftest.err >&5
25092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093
(exit $ac_status); } && {
25094
test -z "$ac_c_werror_flag" ||
25095
test ! -s conftest.err
25096
} && test -s conftest.$ac_objext; then
25097
ac_lo=$ac_mid; break
25099
echo "$as_me: failed program was:" >&5
25100
sed 's/^/| /' conftest.$ac_ext >&5
25102
ac_hi=`expr '(' $ac_mid ')' - 1`
25103
if test $ac_mid -le $ac_hi; then
25107
ac_mid=`expr 2 '*' $ac_mid`
25110
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25113
echo "$as_me: failed program was:" >&5
25114
sed 's/^/| /' conftest.$ac_ext >&5
25119
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25122
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25123
# Binary search between lo and hi bounds.
25124
while test "x$ac_lo" != "x$ac_hi"; do
25125
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25126
cat >conftest.$ac_ext <<_ACEOF
25129
cat confdefs.h >>conftest.$ac_ext
25130
cat >>conftest.$ac_ext <<_ACEOF
25131
/* end confdefs.h. */
25132
$ac_includes_default
25133
typedef long long ac__type_sizeof_;
25137
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
25138
test_array @<:@0@:>@ = 0
25144
rm -f conftest.$ac_objext
25145
if { (ac_try="$ac_compile"
25146
case "(($ac_try" in
25147
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25148
*) ac_try_echo=$ac_try;;
25150
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25151
(eval "$ac_compile") 2>conftest.er1
25153
grep -v '^ *+' conftest.er1 >conftest.err
25155
cat conftest.err >&5
25156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157
(exit $ac_status); } && {
25158
test -z "$ac_c_werror_flag" ||
25159
test ! -s conftest.err
25160
} && test -s conftest.$ac_objext; then
25163
echo "$as_me: failed program was:" >&5
25164
sed 's/^/| /' conftest.$ac_ext >&5
25166
ac_lo=`expr '(' $ac_mid ')' + 1`
25169
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25172
?*) ac_cv_sizeof_long_long=$ac_lo;;
25173
'') if test "$ac_cv_type_long_long" = yes; then
25174
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25175
See \`config.log' for more details." >&5
25176
echo "$as_me: error: cannot compute sizeof (long long)
25177
See \`config.log' for more details." >&2;}
25178
{ (exit 77); exit 77; }; }
25180
ac_cv_sizeof_long_long=0
25184
cat >conftest.$ac_ext <<_ACEOF
25187
cat confdefs.h >>conftest.$ac_ext
25188
cat >>conftest.$ac_ext <<_ACEOF
25189
/* end confdefs.h. */
25190
$ac_includes_default
25191
typedef long long ac__type_sizeof_;
25192
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25193
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25194
@%:@include <stdio.h>
25195
@%:@include <stdlib.h>
25200
FILE *f = fopen ("conftest.val", "w");
25203
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25205
long int i = longval ();
25206
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25208
fprintf (f, "%ld\n", i);
25212
unsigned long int i = ulongval ();
25213
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25215
fprintf (f, "%lu\n", i);
25217
return ferror (f) || fclose (f) != 0;
25223
rm -f conftest$ac_exeext
25224
if { (ac_try="$ac_link"
25225
case "(($ac_try" in
25226
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25227
*) ac_try_echo=$ac_try;;
25229
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25230
(eval "$ac_link") 2>&5
25232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25234
{ (case "(($ac_try" in
25235
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25236
*) ac_try_echo=$ac_try;;
25238
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25239
(eval "$ac_try") 2>&5
25241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242
(exit $ac_status); }; }; then
25243
ac_cv_sizeof_long_long=`cat conftest.val`
25245
echo "$as_me: program exited with status $ac_status" >&5
25246
echo "$as_me: failed program was:" >&5
25247
sed 's/^/| /' conftest.$ac_ext >&5
25249
( exit $ac_status )
25250
if test "$ac_cv_type_long_long" = yes; then
25251
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25252
See \`config.log' for more details." >&5
25253
echo "$as_me: error: cannot compute sizeof (long long)
25254
See \`config.log' for more details." >&2;}
25255
{ (exit 77); exit 77; }; }
25257
ac_cv_sizeof_long_long=0
25260
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25264
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
25265
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
25269
cat >>confdefs.h <<_ACEOF
25270
@%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
25274
{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
25275
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
25276
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
25277
echo $ECHO_N "(cached) $ECHO_C" >&6
25279
cat >conftest.$ac_ext <<_ACEOF
25282
cat confdefs.h >>conftest.$ac_ext
25283
cat >>conftest.$ac_ext <<_ACEOF
25284
/* end confdefs.h. */
25285
$ac_includes_default
25286
typedef unsigned long long ac__type_new_;
25290
if ((ac__type_new_ *) 0)
25292
if (sizeof (ac__type_new_))
25298
rm -f conftest.$ac_objext
25299
if { (ac_try="$ac_compile"
25300
case "(($ac_try" in
25301
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25302
*) ac_try_echo=$ac_try;;
25304
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25305
(eval "$ac_compile") 2>conftest.er1
25307
grep -v '^ *+' conftest.er1 >conftest.err
25309
cat conftest.err >&5
25310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311
(exit $ac_status); } && {
25312
test -z "$ac_c_werror_flag" ||
25313
test ! -s conftest.err
25314
} && test -s conftest.$ac_objext; then
25315
ac_cv_type_unsigned_long_long=yes
25317
echo "$as_me: failed program was:" >&5
25318
sed 's/^/| /' conftest.$ac_ext >&5
25320
ac_cv_type_unsigned_long_long=no
25323
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25325
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
25326
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
25328
# The cast to long int works around a bug in the HP C Compiler
25329
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25330
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25331
# This bug is HP SR number 8606223364.
25332
{ echo "$as_me:$LINENO: checking size of unsigned long long" >&5
25333
echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
25334
if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
25335
echo $ECHO_N "(cached) $ECHO_C" >&6
25337
if test "$cross_compiling" = yes; then
25338
# Depending upon the size, compute the lo and hi bounds.
25339
cat >conftest.$ac_ext <<_ACEOF
25342
cat confdefs.h >>conftest.$ac_ext
25343
cat >>conftest.$ac_ext <<_ACEOF
25344
/* end confdefs.h. */
25345
$ac_includes_default
25346
typedef unsigned long long ac__type_sizeof_;
25350
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
25351
test_array @<:@0@:>@ = 0
25357
rm -f conftest.$ac_objext
25358
if { (ac_try="$ac_compile"
25359
case "(($ac_try" in
25360
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25361
*) ac_try_echo=$ac_try;;
25363
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25364
(eval "$ac_compile") 2>conftest.er1
25366
grep -v '^ *+' conftest.er1 >conftest.err
25368
cat conftest.err >&5
25369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370
(exit $ac_status); } && {
25371
test -z "$ac_c_werror_flag" ||
25372
test ! -s conftest.err
25373
} && test -s conftest.$ac_objext; then
25376
cat >conftest.$ac_ext <<_ACEOF
25379
cat confdefs.h >>conftest.$ac_ext
25380
cat >>conftest.$ac_ext <<_ACEOF
25381
/* end confdefs.h. */
25382
$ac_includes_default
25383
typedef unsigned long long ac__type_sizeof_;
25387
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
25388
test_array @<:@0@:>@ = 0
25394
rm -f conftest.$ac_objext
25395
if { (ac_try="$ac_compile"
25396
case "(($ac_try" in
25397
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25398
*) ac_try_echo=$ac_try;;
25400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25401
(eval "$ac_compile") 2>conftest.er1
25403
grep -v '^ *+' conftest.er1 >conftest.err
25405
cat conftest.err >&5
25406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407
(exit $ac_status); } && {
25408
test -z "$ac_c_werror_flag" ||
25409
test ! -s conftest.err
25410
} && test -s conftest.$ac_objext; then
25411
ac_hi=$ac_mid; break
25413
echo "$as_me: failed program was:" >&5
25414
sed 's/^/| /' conftest.$ac_ext >&5
25416
ac_lo=`expr $ac_mid + 1`
25417
if test $ac_lo -le $ac_mid; then
25421
ac_mid=`expr 2 '*' $ac_mid + 1`
25424
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25427
echo "$as_me: failed program was:" >&5
25428
sed 's/^/| /' conftest.$ac_ext >&5
25430
cat >conftest.$ac_ext <<_ACEOF
25433
cat confdefs.h >>conftest.$ac_ext
25434
cat >>conftest.$ac_ext <<_ACEOF
25435
/* end confdefs.h. */
25436
$ac_includes_default
25437
typedef unsigned long long ac__type_sizeof_;
25441
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
25442
test_array @<:@0@:>@ = 0
25448
rm -f conftest.$ac_objext
25449
if { (ac_try="$ac_compile"
25450
case "(($ac_try" in
25451
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25452
*) ac_try_echo=$ac_try;;
25454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25455
(eval "$ac_compile") 2>conftest.er1
25457
grep -v '^ *+' conftest.er1 >conftest.err
25459
cat conftest.err >&5
25460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461
(exit $ac_status); } && {
25462
test -z "$ac_c_werror_flag" ||
25463
test ! -s conftest.err
25464
} && test -s conftest.$ac_objext; then
25467
cat >conftest.$ac_ext <<_ACEOF
25470
cat confdefs.h >>conftest.$ac_ext
25471
cat >>conftest.$ac_ext <<_ACEOF
25472
/* end confdefs.h. */
25473
$ac_includes_default
25474
typedef unsigned long long ac__type_sizeof_;
25478
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
25479
test_array @<:@0@:>@ = 0
25485
rm -f conftest.$ac_objext
25486
if { (ac_try="$ac_compile"
25487
case "(($ac_try" in
25488
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25489
*) ac_try_echo=$ac_try;;
25491
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25492
(eval "$ac_compile") 2>conftest.er1
25494
grep -v '^ *+' conftest.er1 >conftest.err
25496
cat conftest.err >&5
25497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498
(exit $ac_status); } && {
25499
test -z "$ac_c_werror_flag" ||
25500
test ! -s conftest.err
25501
} && test -s conftest.$ac_objext; then
25502
ac_lo=$ac_mid; break
25504
echo "$as_me: failed program was:" >&5
25505
sed 's/^/| /' conftest.$ac_ext >&5
25507
ac_hi=`expr '(' $ac_mid ')' - 1`
25508
if test $ac_mid -le $ac_hi; then
25512
ac_mid=`expr 2 '*' $ac_mid`
25515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25518
echo "$as_me: failed program was:" >&5
25519
sed 's/^/| /' conftest.$ac_ext >&5
25524
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25527
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25528
# Binary search between lo and hi bounds.
25529
while test "x$ac_lo" != "x$ac_hi"; do
25530
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25531
cat >conftest.$ac_ext <<_ACEOF
25534
cat confdefs.h >>conftest.$ac_ext
25535
cat >>conftest.$ac_ext <<_ACEOF
25536
/* end confdefs.h. */
25537
$ac_includes_default
25538
typedef unsigned long long ac__type_sizeof_;
25542
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
25543
test_array @<:@0@:>@ = 0
25549
rm -f conftest.$ac_objext
25550
if { (ac_try="$ac_compile"
25551
case "(($ac_try" in
25552
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25553
*) ac_try_echo=$ac_try;;
25555
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25556
(eval "$ac_compile") 2>conftest.er1
25558
grep -v '^ *+' conftest.er1 >conftest.err
25560
cat conftest.err >&5
25561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562
(exit $ac_status); } && {
25563
test -z "$ac_c_werror_flag" ||
25564
test ! -s conftest.err
25565
} && test -s conftest.$ac_objext; then
25568
echo "$as_me: failed program was:" >&5
25569
sed 's/^/| /' conftest.$ac_ext >&5
25571
ac_lo=`expr '(' $ac_mid ')' + 1`
25574
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25577
?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
25578
'') if test "$ac_cv_type_unsigned_long_long" = yes; then
25579
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
25580
See \`config.log' for more details." >&5
25581
echo "$as_me: error: cannot compute sizeof (unsigned long long)
25582
See \`config.log' for more details." >&2;}
25583
{ (exit 77); exit 77; }; }
25585
ac_cv_sizeof_unsigned_long_long=0
25589
cat >conftest.$ac_ext <<_ACEOF
25592
cat confdefs.h >>conftest.$ac_ext
25593
cat >>conftest.$ac_ext <<_ACEOF
25594
/* end confdefs.h. */
25595
$ac_includes_default
25596
typedef unsigned long long ac__type_sizeof_;
25597
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25598
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25599
@%:@include <stdio.h>
25600
@%:@include <stdlib.h>
25605
FILE *f = fopen ("conftest.val", "w");
25608
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25610
long int i = longval ();
25611
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25613
fprintf (f, "%ld\n", i);
25617
unsigned long int i = ulongval ();
25618
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25620
fprintf (f, "%lu\n", i);
25622
return ferror (f) || fclose (f) != 0;
25628
rm -f conftest$ac_exeext
25629
if { (ac_try="$ac_link"
25630
case "(($ac_try" in
25631
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25632
*) ac_try_echo=$ac_try;;
25634
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25635
(eval "$ac_link") 2>&5
25637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25639
{ (case "(($ac_try" in
25640
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641
*) ac_try_echo=$ac_try;;
25643
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25644
(eval "$ac_try") 2>&5
25646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647
(exit $ac_status); }; }; then
25648
ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
25650
echo "$as_me: program exited with status $ac_status" >&5
25651
echo "$as_me: failed program was:" >&5
25652
sed 's/^/| /' conftest.$ac_ext >&5
25654
( exit $ac_status )
25655
if test "$ac_cv_type_unsigned_long_long" = yes; then
25656
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
25657
See \`config.log' for more details." >&5
25658
echo "$as_me: error: cannot compute sizeof (unsigned long long)
25659
See \`config.log' for more details." >&2;}
25660
{ (exit 77); exit 77; }; }
25662
ac_cv_sizeof_unsigned_long_long=0
25665
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25669
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
25670
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
25674
cat >>confdefs.h <<_ACEOF
25675
@%:@define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
25679
{ echo "$as_me:$LINENO: checking for uchar" >&5
25680
echo $ECHO_N "checking for uchar... $ECHO_C" >&6; }
25681
if test "${ac_cv_type_uchar+set}" = set; then
25682
echo $ECHO_N "(cached) $ECHO_C" >&6
25684
cat >conftest.$ac_ext <<_ACEOF
25687
cat confdefs.h >>conftest.$ac_ext
25688
cat >>conftest.$ac_ext <<_ACEOF
25689
/* end confdefs.h. */
25690
$ac_includes_default
25691
typedef uchar ac__type_new_;
25695
if ((ac__type_new_ *) 0)
25697
if (sizeof (ac__type_new_))
25703
rm -f conftest.$ac_objext
25704
if { (ac_try="$ac_compile"
25705
case "(($ac_try" in
25706
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25707
*) ac_try_echo=$ac_try;;
25709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25710
(eval "$ac_compile") 2>conftest.er1
25712
grep -v '^ *+' conftest.er1 >conftest.err
25714
cat conftest.err >&5
25715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716
(exit $ac_status); } && {
25717
test -z "$ac_c_werror_flag" ||
25718
test ! -s conftest.err
25719
} && test -s conftest.$ac_objext; then
25720
ac_cv_type_uchar=yes
25722
echo "$as_me: failed program was:" >&5
25723
sed 's/^/| /' conftest.$ac_ext >&5
25725
ac_cv_type_uchar=no
25728
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25730
{ echo "$as_me:$LINENO: result: $ac_cv_type_uchar" >&5
25731
echo "${ECHO_T}$ac_cv_type_uchar" >&6; }
25732
if test $ac_cv_type_uchar = yes; then
25736
cat >>confdefs.h <<_ACEOF
25737
@%:@define uchar unsigned char
25742
{ echo "$as_me:$LINENO: checking for ushort" >&5
25743
echo $ECHO_N "checking for ushort... $ECHO_C" >&6; }
25744
if test "${ac_cv_type_ushort+set}" = set; then
25745
echo $ECHO_N "(cached) $ECHO_C" >&6
25747
cat >conftest.$ac_ext <<_ACEOF
25750
cat confdefs.h >>conftest.$ac_ext
25751
cat >>conftest.$ac_ext <<_ACEOF
25752
/* end confdefs.h. */
25753
$ac_includes_default
25754
typedef ushort ac__type_new_;
25758
if ((ac__type_new_ *) 0)
25760
if (sizeof (ac__type_new_))
25766
rm -f conftest.$ac_objext
25767
if { (ac_try="$ac_compile"
25768
case "(($ac_try" in
25769
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25770
*) ac_try_echo=$ac_try;;
25772
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25773
(eval "$ac_compile") 2>conftest.er1
25775
grep -v '^ *+' conftest.er1 >conftest.err
25777
cat conftest.err >&5
25778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779
(exit $ac_status); } && {
25780
test -z "$ac_c_werror_flag" ||
25781
test ! -s conftest.err
25782
} && test -s conftest.$ac_objext; then
25783
ac_cv_type_ushort=yes
25785
echo "$as_me: failed program was:" >&5
25786
sed 's/^/| /' conftest.$ac_ext >&5
25788
ac_cv_type_ushort=no
25791
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25793
{ echo "$as_me:$LINENO: result: $ac_cv_type_ushort" >&5
25794
echo "${ECHO_T}$ac_cv_type_ushort" >&6; }
25795
if test $ac_cv_type_ushort = yes; then
25799
cat >>confdefs.h <<_ACEOF
25800
@%:@define ushort unsigned short
25805
{ echo "$as_me:$LINENO: checking for uint" >&5
25806
echo $ECHO_N "checking for uint... $ECHO_C" >&6; }
25807
if test "${ac_cv_type_uint+set}" = set; then
25808
echo $ECHO_N "(cached) $ECHO_C" >&6
25810
cat >conftest.$ac_ext <<_ACEOF
25813
cat confdefs.h >>conftest.$ac_ext
25814
cat >>conftest.$ac_ext <<_ACEOF
25815
/* end confdefs.h. */
25816
$ac_includes_default
25817
typedef uint ac__type_new_;
25821
if ((ac__type_new_ *) 0)
25823
if (sizeof (ac__type_new_))
25829
rm -f conftest.$ac_objext
25830
if { (ac_try="$ac_compile"
25831
case "(($ac_try" in
25832
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25833
*) ac_try_echo=$ac_try;;
25835
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25836
(eval "$ac_compile") 2>conftest.er1
25838
grep -v '^ *+' conftest.er1 >conftest.err
25840
cat conftest.err >&5
25841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842
(exit $ac_status); } && {
25843
test -z "$ac_c_werror_flag" ||
25844
test ! -s conftest.err
25845
} && test -s conftest.$ac_objext; then
25846
ac_cv_type_uint=yes
25848
echo "$as_me: failed program was:" >&5
25849
sed 's/^/| /' conftest.$ac_ext >&5
25854
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25856
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint" >&5
25857
echo "${ECHO_T}$ac_cv_type_uint" >&6; }
25858
if test $ac_cv_type_uint = yes; then
25862
cat >>confdefs.h <<_ACEOF
25863
@%:@define uint unsigned int
25868
{ echo "$as_me:$LINENO: checking for ulong" >&5
25869
echo $ECHO_N "checking for ulong... $ECHO_C" >&6; }
25870
if test "${ac_cv_type_ulong+set}" = set; then
25871
echo $ECHO_N "(cached) $ECHO_C" >&6
25873
cat >conftest.$ac_ext <<_ACEOF
25876
cat confdefs.h >>conftest.$ac_ext
25877
cat >>conftest.$ac_ext <<_ACEOF
25878
/* end confdefs.h. */
25879
$ac_includes_default
25880
typedef ulong ac__type_new_;
25884
if ((ac__type_new_ *) 0)
25886
if (sizeof (ac__type_new_))
25892
rm -f conftest.$ac_objext
25893
if { (ac_try="$ac_compile"
25894
case "(($ac_try" in
25895
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25896
*) ac_try_echo=$ac_try;;
25898
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25899
(eval "$ac_compile") 2>conftest.er1
25901
grep -v '^ *+' conftest.er1 >conftest.err
25903
cat conftest.err >&5
25904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905
(exit $ac_status); } && {
25906
test -z "$ac_c_werror_flag" ||
25907
test ! -s conftest.err
25908
} && test -s conftest.$ac_objext; then
25909
ac_cv_type_ulong=yes
25911
echo "$as_me: failed program was:" >&5
25912
sed 's/^/| /' conftest.$ac_ext >&5
25914
ac_cv_type_ulong=no
25917
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25919
{ echo "$as_me:$LINENO: result: $ac_cv_type_ulong" >&5
25920
echo "${ECHO_T}$ac_cv_type_ulong" >&6; }
25921
if test $ac_cv_type_ulong = yes; then
25925
cat >>confdefs.h <<_ACEOF
25926
@%:@define ulong unsigned long
25931
{ echo "$as_me:$LINENO: checking for longlong" >&5
25932
echo $ECHO_N "checking for longlong... $ECHO_C" >&6; }
25933
if test "${ac_cv_type_longlong+set}" = set; then
25934
echo $ECHO_N "(cached) $ECHO_C" >&6
25936
cat >conftest.$ac_ext <<_ACEOF
25939
cat confdefs.h >>conftest.$ac_ext
25940
cat >>conftest.$ac_ext <<_ACEOF
25941
/* end confdefs.h. */
25942
$ac_includes_default
25943
typedef longlong ac__type_new_;
25947
if ((ac__type_new_ *) 0)
25949
if (sizeof (ac__type_new_))
25955
rm -f conftest.$ac_objext
25956
if { (ac_try="$ac_compile"
25957
case "(($ac_try" in
25958
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25959
*) ac_try_echo=$ac_try;;
25961
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25962
(eval "$ac_compile") 2>conftest.er1
25964
grep -v '^ *+' conftest.er1 >conftest.err
25966
cat conftest.err >&5
25967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968
(exit $ac_status); } && {
25969
test -z "$ac_c_werror_flag" ||
25970
test ! -s conftest.err
25971
} && test -s conftest.$ac_objext; then
25972
ac_cv_type_longlong=yes
25974
echo "$as_me: failed program was:" >&5
25975
sed 's/^/| /' conftest.$ac_ext >&5
25977
ac_cv_type_longlong=no
25980
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25982
{ echo "$as_me:$LINENO: result: $ac_cv_type_longlong" >&5
25983
echo "${ECHO_T}$ac_cv_type_longlong" >&6; }
25984
if test $ac_cv_type_longlong = yes; then
25988
cat >>confdefs.h <<_ACEOF
25989
@%:@define longlong long long
25994
{ echo "$as_me:$LINENO: checking for ulonglong" >&5
25995
echo $ECHO_N "checking for ulonglong... $ECHO_C" >&6; }
25996
if test "${ac_cv_type_ulonglong+set}" = set; then
25997
echo $ECHO_N "(cached) $ECHO_C" >&6
25999
cat >conftest.$ac_ext <<_ACEOF
26002
cat confdefs.h >>conftest.$ac_ext
26003
cat >>conftest.$ac_ext <<_ACEOF
26004
/* end confdefs.h. */
26005
$ac_includes_default
26006
typedef ulonglong ac__type_new_;
26010
if ((ac__type_new_ *) 0)
26012
if (sizeof (ac__type_new_))
26018
rm -f conftest.$ac_objext
26019
if { (ac_try="$ac_compile"
26020
case "(($ac_try" in
26021
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26022
*) ac_try_echo=$ac_try;;
26024
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26025
(eval "$ac_compile") 2>conftest.er1
26027
grep -v '^ *+' conftest.er1 >conftest.err
26029
cat conftest.err >&5
26030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031
(exit $ac_status); } && {
26032
test -z "$ac_c_werror_flag" ||
26033
test ! -s conftest.err
26034
} && test -s conftest.$ac_objext; then
26035
ac_cv_type_ulonglong=yes
26037
echo "$as_me: failed program was:" >&5
26038
sed 's/^/| /' conftest.$ac_ext >&5
26040
ac_cv_type_ulonglong=no
26043
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26045
{ echo "$as_me:$LINENO: result: $ac_cv_type_ulonglong" >&5
26046
echo "${ECHO_T}$ac_cv_type_ulonglong" >&6; }
26047
if test $ac_cv_type_ulonglong = yes; then
26051
cat >>confdefs.h <<_ACEOF
26052
@%:@define ulonglong unsigned long long
26057
{ echo "$as_me:$LINENO: checking for ssize_t" >&5
26058
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
26059
if test "${ac_cv_type_ssize_t+set}" = set; then
26060
echo $ECHO_N "(cached) $ECHO_C" >&6
26062
cat >conftest.$ac_ext <<_ACEOF
26065
cat confdefs.h >>conftest.$ac_ext
26066
cat >>conftest.$ac_ext <<_ACEOF
26067
/* end confdefs.h. */
26068
$ac_includes_default
26069
typedef ssize_t ac__type_new_;
26073
if ((ac__type_new_ *) 0)
26075
if (sizeof (ac__type_new_))
26081
rm -f conftest.$ac_objext
26082
if { (ac_try="$ac_compile"
26083
case "(($ac_try" in
26084
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26085
*) ac_try_echo=$ac_try;;
26087
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26088
(eval "$ac_compile") 2>conftest.er1
26090
grep -v '^ *+' conftest.er1 >conftest.err
26092
cat conftest.err >&5
26093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094
(exit $ac_status); } && {
26095
test -z "$ac_c_werror_flag" ||
26096
test ! -s conftest.err
26097
} && test -s conftest.$ac_objext; then
26098
ac_cv_type_ssize_t=yes
26100
echo "$as_me: failed program was:" >&5
26101
sed 's/^/| /' conftest.$ac_ext >&5
26103
ac_cv_type_ssize_t=no
26106
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26108
{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26109
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
26110
if test $ac_cv_type_ssize_t = yes; then
26114
cat >>confdefs.h <<_ACEOF
26115
@%:@define ssize_t int
26121
############################################################
26122
# Checks for library functions.
26123
############################################################
26126
for ac_func in vprintf
26128
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26129
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26130
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26131
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26132
echo $ECHO_N "(cached) $ECHO_C" >&6
26134
cat >conftest.$ac_ext <<_ACEOF
26137
cat confdefs.h >>conftest.$ac_ext
26138
cat >>conftest.$ac_ext <<_ACEOF
26139
/* end confdefs.h. */
26140
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26141
For example, HP-UX 11i <limits.h> declares gettimeofday. */
26142
#define $ac_func innocuous_$ac_func
26144
/* System header to define __stub macros and hopefully few prototypes,
26145
which can conflict with char $ac_func (); below.
26146
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26147
<limits.h> exists even on freestanding compilers. */
26150
# include <limits.h>
26152
# include <assert.h>
26157
/* Override any GCC internal prototype to avoid an error.
26158
Use char because int might match the return type of a GCC
26159
builtin and then its argument prototype would still apply. */
26164
/* The GNU C library defines this for functions which it implements
26165
to always fail with ENOSYS. Some functions are actually named
26166
something starting with __ and the normal name is an alias. */
26167
#if defined __stub_$ac_func || defined __stub___$ac_func
26174
return $ac_func ();
26179
rm -f conftest.$ac_objext conftest$ac_exeext
26180
if { (ac_try="$ac_link"
26181
case "(($ac_try" in
26182
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26183
*) ac_try_echo=$ac_try;;
26185
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26186
(eval "$ac_link") 2>conftest.er1
26188
grep -v '^ *+' conftest.er1 >conftest.err
26190
cat conftest.err >&5
26191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192
(exit $ac_status); } && {
26193
test -z "$ac_c_werror_flag" ||
26194
test ! -s conftest.err
26195
} && test -s conftest$ac_exeext &&
26196
$as_test_x conftest$ac_exeext; then
26197
eval "$as_ac_var=yes"
26199
echo "$as_me: failed program was:" >&5
26200
sed 's/^/| /' conftest.$ac_ext >&5
26202
eval "$as_ac_var=no"
26205
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26206
conftest$ac_exeext conftest.$ac_ext
26208
ac_res=`eval echo '${'$as_ac_var'}'`
26209
{ echo "$as_me:$LINENO: result: $ac_res" >&5
26210
echo "${ECHO_T}$ac_res" >&6; }
26211
if test `eval echo '${'$as_ac_var'}'` = yes; then
26212
cat >>confdefs.h <<_ACEOF
26213
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26216
{ echo "$as_me:$LINENO: checking for _doprnt" >&5
26217
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
26218
if test "${ac_cv_func__doprnt+set}" = set; then
26219
echo $ECHO_N "(cached) $ECHO_C" >&6
26221
cat >conftest.$ac_ext <<_ACEOF
26224
cat confdefs.h >>conftest.$ac_ext
26225
cat >>conftest.$ac_ext <<_ACEOF
26226
/* end confdefs.h. */
26227
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26228
For example, HP-UX 11i <limits.h> declares gettimeofday. */
26229
#define _doprnt innocuous__doprnt
26231
/* System header to define __stub macros and hopefully few prototypes,
26232
which can conflict with char _doprnt (); below.
26233
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26234
<limits.h> exists even on freestanding compilers. */
26237
# include <limits.h>
26239
# include <assert.h>
26244
/* Override any GCC internal prototype to avoid an error.
26245
Use char because int might match the return type of a GCC
26246
builtin and then its argument prototype would still apply. */
26251
/* The GNU C library defines this for functions which it implements
26252
to always fail with ENOSYS. Some functions are actually named
26253
something starting with __ and the normal name is an alias. */
26254
#if defined __stub__doprnt || defined __stub____doprnt
26266
rm -f conftest.$ac_objext conftest$ac_exeext
26267
if { (ac_try="$ac_link"
26268
case "(($ac_try" in
26269
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26270
*) ac_try_echo=$ac_try;;
26272
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26273
(eval "$ac_link") 2>conftest.er1
26275
grep -v '^ *+' conftest.er1 >conftest.err
26277
cat conftest.err >&5
26278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279
(exit $ac_status); } && {
26280
test -z "$ac_c_werror_flag" ||
26281
test ! -s conftest.err
26282
} && test -s conftest$ac_exeext &&
26283
$as_test_x conftest$ac_exeext; then
26284
ac_cv_func__doprnt=yes
26286
echo "$as_me: failed program was:" >&5
26287
sed 's/^/| /' conftest.$ac_ext >&5
26289
ac_cv_func__doprnt=no
26292
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26293
conftest$ac_exeext conftest.$ac_ext
26295
{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26296
echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26297
if test $ac_cv_func__doprnt = yes; then
26299
cat >>confdefs.h <<\_ACEOF
26300
@%:@define HAVE_DOPRNT 1
26310
for ac_func in mkstemp
26312
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26313
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26314
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26315
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26316
echo $ECHO_N "(cached) $ECHO_C" >&6
26318
cat >conftest.$ac_ext <<_ACEOF
26321
cat confdefs.h >>conftest.$ac_ext
26322
cat >>conftest.$ac_ext <<_ACEOF
26323
/* end confdefs.h. */
26324
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26325
For example, HP-UX 11i <limits.h> declares gettimeofday. */
26326
#define $ac_func innocuous_$ac_func
26328
/* System header to define __stub macros and hopefully few prototypes,
26329
which can conflict with char $ac_func (); below.
26330
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26331
<limits.h> exists even on freestanding compilers. */
26334
# include <limits.h>
26336
# include <assert.h>
26341
/* Override any GCC internal prototype to avoid an error.
26342
Use char because int might match the return type of a GCC
26343
builtin and then its argument prototype would still apply. */
26348
/* The GNU C library defines this for functions which it implements
26349
to always fail with ENOSYS. Some functions are actually named
26350
something starting with __ and the normal name is an alias. */
26351
#if defined __stub_$ac_func || defined __stub___$ac_func
26358
return $ac_func ();
26363
rm -f conftest.$ac_objext conftest$ac_exeext
26364
if { (ac_try="$ac_link"
26365
case "(($ac_try" in
26366
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26367
*) ac_try_echo=$ac_try;;
26369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26370
(eval "$ac_link") 2>conftest.er1
26372
grep -v '^ *+' conftest.er1 >conftest.err
26374
cat conftest.err >&5
26375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376
(exit $ac_status); } && {
26377
test -z "$ac_c_werror_flag" ||
26378
test ! -s conftest.err
26379
} && test -s conftest$ac_exeext &&
26380
$as_test_x conftest$ac_exeext; then
26381
eval "$as_ac_var=yes"
26383
echo "$as_me: failed program was:" >&5
26384
sed 's/^/| /' conftest.$ac_ext >&5
26386
eval "$as_ac_var=no"
26389
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26390
conftest$ac_exeext conftest.$ac_ext
26392
ac_res=`eval echo '${'$as_ac_var'}'`
26393
{ echo "$as_me:$LINENO: result: $ac_res" >&5
26394
echo "${ECHO_T}$ac_res" >&6; }
26395
if test `eval echo '${'$as_ac_var'}'` = yes; then
26396
cat >>confdefs.h <<_ACEOF
26397
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26404
############################################################
26405
# Enable/disable special memory allocator for debugging.
26406
############################################################
26408
# Check whether --enable-dmalloc was given.
26409
if test "${enable_dmalloc+set}" = set; then
26410
enableval=$enable_dmalloc;
26411
case "${enableval}" in
26413
cat >>confdefs.h <<\_ACEOF
26414
@%:@define DEBUG_MEMALLOC 1
26421
{ { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dmalloc" >&5
26422
echo "$as_me: error: bad value ${enableval} for --enable-dmalloc" >&2;}
26423
{ (exit 1); exit 1; }; }
26430
############################################################
26431
# Enable/disable extra code for debugging.
26432
############################################################
26434
# Check whether --enable-debug was given.
26435
if test "${enable_debug+set}" = set; then
26436
enableval=$enable_debug;
26437
case "${enableval}" in
26440
cat >>confdefs.h <<\_ACEOF
26444
cat >>confdefs.h <<\_ACEOF
26445
@%:@define DEBUG_OVERFLOW 1
26448
if test "$GCC" = yes; then
26456
{ { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
26457
echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
26458
{ (exit 1); exit 1; }; }
26467
if test "$GCC" = yes; then
26468
CFLAGS="$CFLAGS -W -Wall -Wno-long-long -Wformat -Wmissing-prototypes -Wstrict-prototypes -pedantic"
26471
############################################################
26472
# Generate the configuration header file.
26473
############################################################
26475
ac_config_headers="$ac_config_headers src/libjasper/include/jasper/jas_config_ac.h"
26478
############################################################
26479
# Generate the makefiles.
26480
############################################################
26482
ac_config_files="$ac_config_files Makefile src/Makefile src/appl/Makefile src/libjasper/Makefile src/libjasper/base/Makefile src/libjasper/bmp/Makefile src/libjasper/include/Makefile src/libjasper/include/jasper/Makefile src/libjasper/jp2/Makefile src/libjasper/jpc/Makefile src/libjasper/jpg/Makefile src/libjasper/mif/Makefile src/libjasper/pgx/Makefile src/libjasper/pnm/Makefile src/libjasper/ras/Makefile src/msvc/Makefile jasper.spec"
26484
cat >confcache <<\_ACEOF
26485
# This file is a shell script that caches the results of configure
26486
# tests run on this system so they can be shared between configure
26487
# scripts and configure runs, see configure's option --config-cache.
26488
# It is not useful on other systems. If it contains results you don't
26489
# want to keep, you may remove or edit it.
26491
# config.status only pays attention to the cache file if you give it
26492
# the --recheck option to rerun configure.
26494
# `ac_cv_env_foo' variables (set or unset) will be overridden when
26495
# loading this file, other *unset* `ac_cv_foo' will be assigned the
26496
# following values.
26500
# The following way of writing the cache mishandles newlines in values,
26501
# but we know of no workaround that is simple, portable, and efficient.
26502
# So, we kill variables containing newlines.
26503
# Ultrix sh set writes to stderr and can't be redirected directly,
26504
# and sets the high bit in the cache file unless we assign to the vars.
26506
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26507
eval ac_val=\$$ac_var
26511
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26512
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26515
_ | IFS | as_nl) ;; #(
26516
*) $as_unset $ac_var ;;
26522
case $as_nl`(ac_space=' '; set) 2>&1` in #(
26523
*${as_nl}ac_space=\ *)
26524
# `set' does not quote correctly, so add quotes (double-quote
26525
# substitution turns \\\\ into \\, and sed turns \\ into \).
26528
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26531
# `set' quotes correctly as required by POSIX, so do not add quotes.
26532
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26541
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26543
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26545
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26546
if test -w "$cache_file"; then
26547
test "x$cache_file" != "x/dev/null" &&
26548
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
26549
echo "$as_me: updating cache $cache_file" >&6;}
26550
cat confcache >$cache_file
26552
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26553
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26558
test "x$prefix" = xNONE && prefix=$ac_default_prefix
26559
# Let make expand exec_prefix.
26560
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26562
DEFS=-DHAVE_CONFIG_H
26566
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
26567
# 1. Remove the extension, and $U if already installed.
26568
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26569
ac_i=`echo "$ac_i" | sed "$ac_script"`
26570
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26571
# will be set to the directory where LIBOBJS objects are built.
26572
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26573
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26575
LIB@&t@OBJS=$ac_libobjs
26577
LTLIBOBJS=$ac_ltlibobjs
26580
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26581
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26582
Usually this means the macro was only invoked conditionally." >&5
26583
echo "$as_me: error: conditional \"AMDEP\" was never defined.
26584
Usually this means the macro was only invoked conditionally." >&2;}
26585
{ (exit 1); exit 1; }; }
26587
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26588
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26589
Usually this means the macro was only invoked conditionally." >&5
26590
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26591
Usually this means the macro was only invoked conditionally." >&2;}
26592
{ (exit 1); exit 1; }; }
26594
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26595
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26596
Usually this means the macro was only invoked conditionally." >&5
26597
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26598
Usually this means the macro was only invoked conditionally." >&2;}
26599
{ (exit 1); exit 1; }; }
26601
if test -z "${HAVE_LIBJPEG_TRUE}" && test -z "${HAVE_LIBJPEG_FALSE}"; then
26602
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBJPEG\" was never defined.
26603
Usually this means the macro was only invoked conditionally." >&5
26604
echo "$as_me: error: conditional \"HAVE_LIBJPEG\" was never defined.
26605
Usually this means the macro was only invoked conditionally." >&2;}
26606
{ (exit 1); exit 1; }; }
26608
if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
26609
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENGL\" was never defined.
26610
Usually this means the macro was only invoked conditionally." >&5
26611
echo "$as_me: error: conditional \"HAVE_OPENGL\" was never defined.
26612
Usually this means the macro was only invoked conditionally." >&2;}
26613
{ (exit 1); exit 1; }; }
26615
if test -z "${HAVE_SDL_TRUE}" && test -z "${HAVE_SDL_FALSE}"; then
26616
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_SDL\" was never defined.
26617
Usually this means the macro was only invoked conditionally." >&5
26618
echo "$as_me: error: conditional \"HAVE_SDL\" was never defined.
26619
Usually this means the macro was only invoked conditionally." >&2;}
26620
{ (exit 1); exit 1; }; }
26623
: ${CONFIG_STATUS=./config.status}
26624
ac_clean_files_save=$ac_clean_files
26625
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26626
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26627
echo "$as_me: creating $CONFIG_STATUS" >&6;}
26628
cat >$CONFIG_STATUS <<_ACEOF
26630
# Generated by $as_me.
26631
# Run this file to recreate the current configuration.
26632
# Compiler output produced by configure, useful for debugging
26633
# configure, is in config.log if it exists.
26636
ac_cs_recheck=false
26638
SHELL=\${CONFIG_SHELL-$SHELL}
26641
cat >>$CONFIG_STATUS <<\_ACEOF
26642
## --------------------- ##
26643
## M4sh Initialization. ##
26644
## --------------------- ##
26646
# Be more Bourne compatible
26647
DUALCASE=1; export DUALCASE # for MKS sh
26648
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26651
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26652
# is contrary to our usage. Disable this feature.
26653
alias -g '${1+"$@"}'='"$@"'
26654
setopt NO_GLOB_SUBST
26656
case `(set -o) 2>/dev/null` in
26657
*posix*) set -o posix ;;
26666
# Avoid depending upon Character Ranges.
26667
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26668
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26669
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26670
as_cr_digits='0123456789'
26671
as_cr_alnum=$as_cr_Letters$as_cr_digits
26673
# The user is always right.
26674
if test "${PATH_SEPARATOR+set}" != set; then
26675
echo "#! /bin/sh" >conf$$.sh
26676
echo "exit 0" >>conf$$.sh
26678
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26686
# Support unset when possible.
26687
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26695
# We need space, tab and new line, in precisely that order. Quoting is
26696
# there to prevent editors from complaining about space-tab.
26697
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26698
# splitting by setting IFS to empty value.)
26703
# Find who we are. Look in the path if we contain no directory separator.
26705
*[\\/]* ) as_myself=$0 ;;
26706
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26707
for as_dir in $PATH
26710
test -z "$as_dir" && as_dir=.
26711
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26717
# We did not find ourselves, most probably we were run as `sh COMMAND'
26718
# in which case we are not to be found in the path.
26719
if test "x$as_myself" = x; then
26722
if test ! -f "$as_myself"; then
26723
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26724
{ (exit 1); exit 1; }
26727
# Work around bugs in pre-3.0 UWIN ksh.
26728
for as_var in ENV MAIL MAILPATH
26729
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26737
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26738
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26739
LC_TELEPHONE LC_TIME
26741
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26742
eval $as_var=C; export $as_var
26744
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26748
# Required to use basename.
26749
if expr a : '\(a\)' >/dev/null 2>&1 &&
26750
test "X`expr 00001 : '.*\(...\)'`" = X001; then
26756
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26757
as_basename=basename
26763
# Name of the executable.
26764
as_me=`$as_basename -- "$0" ||
26765
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26766
X"$0" : 'X\(//\)$' \| \
26767
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26769
sed '/^.*\/\([^/][^/]*\)\/*$/{
26788
as_lineno_1=$LINENO
26789
as_lineno_2=$LINENO
26790
test "x$as_lineno_1" != "x$as_lineno_2" &&
26791
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26793
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26794
# uniformly replaced by the line number. The first 'sed' inserts a
26795
# line-number line after each line using $LINENO; the second 'sed'
26796
# does the real work. The second script uses 'N' to pair each
26797
# line-number line with the line containing $LINENO, and appends
26798
# trailing '-' during substitution so that $LINENO is not a special
26799
# case at line end.
26800
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26801
# scripts with optimization help from Paolo Bonzini. Blame Lee
26802
# E. McMahon (1931-1989) for sed's syntax. :-)
26814
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26817
' >$as_me.lineno &&
26818
chmod +x "$as_me.lineno" ||
26819
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26820
{ (exit 1); exit 1; }; }
26822
# Don't try to exec as it changes $[0], causing all sort of problems
26823
# (the dirname of $[0] is not the place where we might find the
26824
# original and so on. Autoconf is especially sensitive to this).
26825
. "./$as_me.lineno"
26826
# Exit status is that of the last command.
26831
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26837
ECHO_C= ECHO_N= ECHO_T=
26838
case `echo -n x` in
26840
case `echo 'x\c'` in
26841
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
26848
if expr a : '\(a\)' >/dev/null 2>&1 &&
26849
test "X`expr 00001 : '.*\(...\)'`" = X001; then
26855
rm -f conf$$ conf$$.exe conf$$.file
26856
if test -d conf$$.dir; then
26857
rm -f conf$$.dir/conf$$.file
26863
if ln -s conf$$.file conf$$ 2>/dev/null; then
26865
# ... but there are two gotchas:
26866
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26867
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26868
# In both cases, we have to default to `cp -p'.
26869
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26871
elif ln conf$$.file conf$$ 2>/dev/null; then
26876
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26877
rmdir conf$$.dir 2>/dev/null
26879
if mkdir -p . 2>/dev/null; then
26882
test -d ./-p && rmdir ./-p
26886
if test -x / >/dev/null 2>&1; then
26887
as_test_x='test -x'
26889
if ls -dL / >/dev/null 2>&1; then
26896
if test -d "$1"; then
26902
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26903
???[sx]*):;;*)false;;esac;fi
26907
as_executable_p=$as_test_x
26909
# Sed expression to map a string onto a valid CPP name.
26910
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26912
# Sed expression to map a string onto a valid variable name.
26913
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26918
# Save the log message, to keep $[0] and so on meaningful, and to
26919
# report actual input values of CONFIG_FILES etc. instead of their
26920
# values after options handling.
26922
This file was extended by jasper $as_me 1.701.0-gs5, which was
26923
generated by GNU Autoconf 2.61. Invocation command line was
26925
CONFIG_FILES = $CONFIG_FILES
26926
CONFIG_HEADERS = $CONFIG_HEADERS
26927
CONFIG_LINKS = $CONFIG_LINKS
26928
CONFIG_COMMANDS = $CONFIG_COMMANDS
26931
on `(hostname || uname -n) 2>/dev/null | sed 1q`
26936
cat >>$CONFIG_STATUS <<_ACEOF
26937
# Files that config.status was made for.
26938
config_files="$ac_config_files"
26939
config_headers="$ac_config_headers"
26940
config_commands="$ac_config_commands"
26944
cat >>$CONFIG_STATUS <<\_ACEOF
26946
\`$as_me' instantiates files from templates according to the
26947
current configuration.
26949
Usage: $0 [OPTIONS] [FILE]...
26951
-h, --help print this help, then exit
26952
-V, --version print version number and configuration settings, then exit
26953
-q, --quiet do not print progress messages
26954
-d, --debug don't remove temporary files
26955
--recheck update $as_me by reconfiguring in the same conditions
26956
--file=FILE[:TEMPLATE]
26957
instantiate the configuration file FILE
26958
--header=FILE[:TEMPLATE]
26959
instantiate the configuration header FILE
26961
Configuration files:
26964
Configuration headers:
26967
Configuration commands:
26970
Report bugs to <bug-autoconf@gnu.org>."
26973
cat >>$CONFIG_STATUS <<_ACEOF
26975
jasper config.status 1.701.0-gs5
26976
configured by $0, generated by GNU Autoconf 2.61,
26977
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26979
Copyright (C) 2006 Free Software Foundation, Inc.
26980
This config.status script is free software; the Free Software Foundation
26981
gives unlimited permission to copy, distribute and modify it."
26989
cat >>$CONFIG_STATUS <<\_ACEOF
26990
# If no file are specified by the user, then we need to provide default
26991
# value. By we need to know if files were specified by the user.
26997
ac_option=`expr "X$1" : 'X\([^=]*\)='`
26998
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27009
# Handling of the options.
27010
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27012
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27013
echo "$ac_cs_version"; exit ;;
27014
--debug | --debu | --deb | --de | --d | -d )
27016
--file | --fil | --fi | --f )
27018
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27019
ac_need_defaults=false;;
27020
--header | --heade | --head | --hea )
27022
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27023
ac_need_defaults=false;;
27025
# Conflict between --help and --header
27026
{ echo "$as_me: error: ambiguous option: $1
27027
Try \`$0 --help' for more information." >&2
27028
{ (exit 1); exit 1; }; };;
27029
--help | --hel | -h )
27030
echo "$ac_cs_usage"; exit ;;
27031
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
27032
| -silent | --silent | --silen | --sile | --sil | --si | --s)
27035
# This is an error.
27036
-*) { echo "$as_me: error: unrecognized option: $1
27037
Try \`$0 --help' for more information." >&2
27038
{ (exit 1); exit 1; }; } ;;
27040
*) ac_config_targets="$ac_config_targets $1"
27041
ac_need_defaults=false ;;
27047
ac_configure_extra_args=
27049
if $ac_cs_silent; then
27051
ac_configure_extra_args="$ac_configure_extra_args --silent"
27055
cat >>$CONFIG_STATUS <<_ACEOF
27056
if \$ac_cs_recheck; then
27057
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27058
CONFIG_SHELL=$SHELL
27059
export CONFIG_SHELL
27060
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27064
cat >>$CONFIG_STATUS <<\_ACEOF
27068
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
27069
@%:@@%:@ Running $as_me. @%:@@%:@
27075
cat >>$CONFIG_STATUS <<_ACEOF
27079
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27083
cat >>$CONFIG_STATUS <<\_ACEOF
27085
# Handling of arguments.
27086
for ac_config_target in $ac_config_targets
27088
case $ac_config_target in
27089
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27090
"src/libjasper/include/jasper/jas_config_ac.h") CONFIG_HEADERS="$CONFIG_HEADERS src/libjasper/include/jasper/jas_config_ac.h" ;;
27091
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27092
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27093
"src/appl/Makefile") CONFIG_FILES="$CONFIG_FILES src/appl/Makefile" ;;
27094
"src/libjasper/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/Makefile" ;;
27095
"src/libjasper/base/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/base/Makefile" ;;
27096
"src/libjasper/bmp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/bmp/Makefile" ;;
27097
"src/libjasper/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/include/Makefile" ;;
27098
"src/libjasper/include/jasper/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/include/jasper/Makefile" ;;
27099
"src/libjasper/jp2/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/jp2/Makefile" ;;
27100
"src/libjasper/jpc/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/jpc/Makefile" ;;
27101
"src/libjasper/jpg/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/jpg/Makefile" ;;
27102
"src/libjasper/mif/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/mif/Makefile" ;;
27103
"src/libjasper/pgx/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/pgx/Makefile" ;;
27104
"src/libjasper/pnm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/pnm/Makefile" ;;
27105
"src/libjasper/ras/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/ras/Makefile" ;;
27106
"src/msvc/Makefile") CONFIG_FILES="$CONFIG_FILES src/msvc/Makefile" ;;
27107
"jasper.spec") CONFIG_FILES="$CONFIG_FILES jasper.spec" ;;
27109
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27110
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27111
{ (exit 1); exit 1; }; };;
27116
# If the user did not use the arguments to specify the items to instantiate,
27117
# then the envvar interface is used. Set only those that are not.
27118
# We use the long form for the default assignment because of an extremely
27119
# bizarre bug on SunOS 4.1.3.
27120
if $ac_need_defaults; then
27121
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27122
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27123
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27126
# Have a temporary directory for convenience. Make it in the build tree
27127
# simply because there is no reason against having it here, and in addition,
27128
# creating and moving files from /tmp can sometimes cause problems.
27129
# Hook for its removal unless debugging.
27130
# Note that there is a small window in which the directory will not be cleaned:
27131
# after its creation but before its name has been assigned to `$tmp'.
27135
trap 'exit_status=$?
27136
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27138
trap '{ (exit 1); exit 1; }' 1 2 13 15
27140
# Create a (secure) tmp directory for tmp files.
27143
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27144
test -n "$tmp" && test -d "$tmp"
27147
tmp=./conf$$-$RANDOM
27148
(umask 077 && mkdir "$tmp")
27151
echo "$me: cannot create a temporary directory in ." >&2
27152
{ (exit 1); exit 1; }
27156
# Set up the sed scripts for CONFIG_FILES section.
27159
# No need to generate the scripts if there are no CONFIG_FILES.
27160
# This happens for instance when ./config.status config.h
27161
if test -n "$CONFIG_FILES"; then
27168
for ac_last_try in false false false false false :; do
27169
cat >conf$$subs.sed <<_ACEOF
27170
SHELL!$SHELL$ac_delim
27171
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27172
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27173
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27174
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27175
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27176
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27177
exec_prefix!$exec_prefix$ac_delim
27178
prefix!$prefix$ac_delim
27179
program_transform_name!$program_transform_name$ac_delim
27180
bindir!$bindir$ac_delim
27181
sbindir!$sbindir$ac_delim
27182
libexecdir!$libexecdir$ac_delim
27183
datarootdir!$datarootdir$ac_delim
27184
datadir!$datadir$ac_delim
27185
sysconfdir!$sysconfdir$ac_delim
27186
sharedstatedir!$sharedstatedir$ac_delim
27187
localstatedir!$localstatedir$ac_delim
27188
includedir!$includedir$ac_delim
27189
oldincludedir!$oldincludedir$ac_delim
27190
docdir!$docdir$ac_delim
27191
infodir!$infodir$ac_delim
27192
htmldir!$htmldir$ac_delim
27193
dvidir!$dvidir$ac_delim
27194
pdfdir!$pdfdir$ac_delim
27195
psdir!$psdir$ac_delim
27196
libdir!$libdir$ac_delim
27197
localedir!$localedir$ac_delim
27198
mandir!$mandir$ac_delim
27199
DEFS!$DEFS$ac_delim
27200
ECHO_C!$ECHO_C$ac_delim
27201
ECHO_N!$ECHO_N$ac_delim
27202
ECHO_T!$ECHO_T$ac_delim
27203
LIBS!$LIBS$ac_delim
27204
build_alias!$build_alias$ac_delim
27205
host_alias!$host_alias$ac_delim
27206
target_alias!$target_alias$ac_delim
27207
build!$build$ac_delim
27208
build_cpu!$build_cpu$ac_delim
27209
build_vendor!$build_vendor$ac_delim
27210
build_os!$build_os$ac_delim
27211
host!$host$ac_delim
27212
host_cpu!$host_cpu$ac_delim
27213
host_vendor!$host_vendor$ac_delim
27214
host_os!$host_os$ac_delim
27215
target!$target$ac_delim
27216
target_cpu!$target_cpu$ac_delim
27217
target_vendor!$target_vendor$ac_delim
27218
target_os!$target_os$ac_delim
27219
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27220
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27221
INSTALL_DATA!$INSTALL_DATA$ac_delim
27222
am__isrc!$am__isrc$ac_delim
27223
CYGPATH_W!$CYGPATH_W$ac_delim
27224
PACKAGE!$PACKAGE$ac_delim
27225
VERSION!$VERSION$ac_delim
27226
ACLOCAL!$ACLOCAL$ac_delim
27227
AUTOCONF!$AUTOCONF$ac_delim
27228
AUTOMAKE!$AUTOMAKE$ac_delim
27229
AUTOHEADER!$AUTOHEADER$ac_delim
27230
MAKEINFO!$MAKEINFO$ac_delim
27231
install_sh!$install_sh$ac_delim
27232
STRIP!$STRIP$ac_delim
27233
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27234
mkdir_p!$mkdir_p$ac_delim
27236
SET_MAKE!$SET_MAKE$ac_delim
27237
am__leading_dot!$am__leading_dot$ac_delim
27238
AMTAR!$AMTAR$ac_delim
27239
am__tar!$am__tar$ac_delim
27240
am__untar!$am__untar$ac_delim
27241
JAS_MAJOR_VERSION!$JAS_MAJOR_VERSION$ac_delim
27242
JAS_MINOR_VERSION!$JAS_MINOR_VERSION$ac_delim
27243
JAS_MICRO_VERSION!$JAS_MICRO_VERSION$ac_delim
27244
JAS_VERSION!$JAS_VERSION$ac_delim
27245
JAS_RPM_RELEASE!$JAS_RPM_RELEASE$ac_delim
27246
LT_RELEASE!$LT_RELEASE$ac_delim
27247
LT_CURRENT!$LT_CURRENT$ac_delim
27248
LT_REVISION!$LT_REVISION$ac_delim
27249
LT_AGE!$LT_AGE$ac_delim
27251
CFLAGS!$CFLAGS$ac_delim
27252
LDFLAGS!$LDFLAGS$ac_delim
27253
CPPFLAGS!$CPPFLAGS$ac_delim
27254
ac_ct_CC!$ac_ct_CC$ac_delim
27255
EXEEXT!$EXEEXT$ac_delim
27256
OBJEXT!$OBJEXT$ac_delim
27257
DEPDIR!$DEPDIR$ac_delim
27258
am__include!$am__include$ac_delim
27259
am__quote!$am__quote$ac_delim
27260
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27261
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27262
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27263
CCDEPMODE!$CCDEPMODE$ac_delim
27264
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27265
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27269
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27271
elif $ac_last_try; then
27272
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27273
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27274
{ (exit 1); exit 1; }; }
27276
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27280
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27281
if test -n "$ac_eof"; then
27282
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27283
ac_eof=`expr $ac_eof + 1`
27286
cat >>$CONFIG_STATUS <<_ACEOF
27287
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27288
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27291
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27292
s/^/s,@/; s/!/@,|#_!!_#|/
27295
s/'"$ac_delim"'$/,g/; t
27297
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27298
' >>$CONFIG_STATUS <conf$$subs.sed
27299
rm -f conf$$subs.sed
27300
cat >>$CONFIG_STATUS <<_ACEOF
27306
for ac_last_try in false false false false false :; do
27307
cat >conf$$subs.sed <<_ACEOF
27308
LN_S!$LN_S$ac_delim
27309
RANLIB!$RANLIB$ac_delim
27311
GREP!$GREP$ac_delim
27312
EGREP!$EGREP$ac_delim
27313
ECHO!$ECHO$ac_delim
27316
CXXFLAGS!$CXXFLAGS$ac_delim
27317
ac_ct_CXX!$ac_ct_CXX$ac_delim
27318
CXXDEPMODE!$CXXDEPMODE$ac_delim
27319
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27320
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27321
CXXCPP!$CXXCPP$ac_delim
27323
FFLAGS!$FFLAGS$ac_delim
27324
ac_ct_F77!$ac_ct_F77$ac_delim
27325
LIBTOOL!$LIBTOOL$ac_delim
27326
XMKMF!$XMKMF$ac_delim
27327
X_CFLAGS!$X_CFLAGS$ac_delim
27328
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
27329
X_LIBS!$X_LIBS$ac_delim
27330
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
27331
HAVE_LIBJPEG_TRUE!$HAVE_LIBJPEG_TRUE$ac_delim
27332
HAVE_LIBJPEG_FALSE!$HAVE_LIBJPEG_FALSE$ac_delim
27333
HAVE_OPENGL_TRUE!$HAVE_OPENGL_TRUE$ac_delim
27334
HAVE_OPENGL_FALSE!$HAVE_OPENGL_FALSE$ac_delim
27335
OPENGL_LIBS!$OPENGL_LIBS$ac_delim
27336
HAVE_SDL!$HAVE_SDL$ac_delim
27337
HAVE_SDL_TRUE!$HAVE_SDL_TRUE$ac_delim
27338
HAVE_SDL_FALSE!$HAVE_SDL_FALSE$ac_delim
27339
SDL_CFLAGS!$SDL_CFLAGS$ac_delim
27340
SDL_LIBS!$SDL_LIBS$ac_delim
27341
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
27342
LTLIBOBJS!$LTLIBOBJS$ac_delim
27345
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
27347
elif $ac_last_try; then
27348
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27349
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27350
{ (exit 1); exit 1; }; }
27352
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27356
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27357
if test -n "$ac_eof"; then
27358
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27359
ac_eof=`expr $ac_eof + 1`
27362
cat >>$CONFIG_STATUS <<_ACEOF
27363
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27364
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27367
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27368
s/^/s,@/; s/!/@,|#_!!_#|/
27371
s/'"$ac_delim"'$/,g/; t
27373
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27374
' >>$CONFIG_STATUS <conf$$subs.sed
27375
rm -f conf$$subs.sed
27376
cat >>$CONFIG_STATUS <<_ACEOF
27383
# VPATH may cause trouble with some makes, so we remove $(srcdir),
27384
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27385
# trailing colons and then remove the whole line if VPATH becomes empty
27386
# (actually we leave an empty line to preserve line numbers).
27387
if test "x$srcdir" = x.; then
27388
ac_vpsub='/^[ ]*VPATH[ ]*=/{
27389
s/:*\$(srcdir):*/:/
27390
s/:*\${srcdir}:*/:/
27392
s/^\([^=]*=[ ]*\):*/\1/
27398
cat >>$CONFIG_STATUS <<\_ACEOF
27399
fi # test -n "$CONFIG_FILES"
27402
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27405
:[FHLC]) ac_mode=$ac_tag; continue;;
27407
case $ac_mode$ac_tag in
27409
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27410
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27411
{ (exit 1); exit 1; }; };;
27412
:[FH]-) ac_tag=-:-;;
27413
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27430
-) ac_f="$tmp/stdin";;
27431
*) # Look for the file first in the build tree, then in the source tree
27432
# (if the path is not absolute). The absolute path cannot be DOS-style,
27433
# because $ac_f cannot contain `:'.
27437
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27439
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27440
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27441
{ (exit 1); exit 1; }; };;
27443
ac_file_inputs="$ac_file_inputs $ac_f"
27446
# Let's still pretend it is `configure' which instantiates (i.e., don't
27447
# use $as_me), people would be surprised to read:
27448
# /* config.h. Generated by config.status. */
27449
configure_input="Generated from "`IFS=:
27450
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27451
if test x"$ac_file" != x-; then
27452
configure_input="$ac_file. $configure_input"
27453
{ echo "$as_me:$LINENO: creating $ac_file" >&5
27454
echo "$as_me: creating $ac_file" >&6;}
27458
*:-:* | *:-) cat >"$tmp/stdin";;
27463
ac_dir=`$as_dirname -- "$ac_file" ||
27464
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27465
X"$ac_file" : 'X\(//\)[^/]' \| \
27466
X"$ac_file" : 'X\(//\)$' \| \
27467
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27469
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27473
/^X\(\/\/\)[^/].*/{
27488
-*) as_dir=./$as_dir;;
27490
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27494
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27495
*) as_qdir=$as_dir;;
27497
as_dirs="'$as_qdir' $as_dirs"
27498
as_dir=`$as_dirname -- "$as_dir" ||
27499
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27500
X"$as_dir" : 'X\(//\)[^/]' \| \
27501
X"$as_dir" : 'X\(//\)$' \| \
27502
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27504
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27508
/^X\(\/\/\)[^/].*/{
27521
test -d "$as_dir" && break
27523
test -z "$as_dirs" || eval "mkdir $as_dirs"
27524
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27525
echo "$as_me: error: cannot create directory $as_dir" >&2;}
27526
{ (exit 1); exit 1; }; }; }
27530
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27532
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27533
# A ".." for each directory in $ac_dir_suffix.
27534
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27535
case $ac_top_builddir_sub in
27536
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27537
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27540
ac_abs_top_builddir=$ac_pwd
27541
ac_abs_builddir=$ac_pwd$ac_dir_suffix
27542
# for backward compatibility:
27543
ac_top_builddir=$ac_top_build_prefix
27546
.) # We are building in place.
27548
ac_top_srcdir=$ac_top_builddir_sub
27549
ac_abs_top_srcdir=$ac_pwd ;;
27550
[\\/]* | ?:[\\/]* ) # Absolute name.
27551
ac_srcdir=$srcdir$ac_dir_suffix;
27552
ac_top_srcdir=$srcdir
27553
ac_abs_top_srcdir=$srcdir ;;
27554
*) # Relative name.
27555
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27556
ac_top_srcdir=$ac_top_build_prefix$srcdir
27557
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27559
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27569
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27570
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27572
ac_MKDIR_P=$MKDIR_P
27574
[\\/$]* | ?:[\\/]* ) ;;
27575
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27579
cat >>$CONFIG_STATUS <<\_ACEOF
27580
# If the template does not know about datarootdir, expand it.
27581
# FIXME: This hack should be removed a few years after 2.60.
27582
ac_datarootdir_hack=; ac_datarootdir_seen=
27584
case `sed -n '/datarootdir/ {
27593
' $ac_file_inputs` in
27594
*datarootdir*) ac_datarootdir_seen=yes;;
27595
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27596
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27597
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27599
cat >>$CONFIG_STATUS <<_ACEOF
27600
ac_datarootdir_hack='
27601
s&@datadir@&$datadir&g
27602
s&@docdir@&$docdir&g
27603
s&@infodir@&$infodir&g
27604
s&@localedir@&$localedir&g
27605
s&@mandir@&$mandir&g
27606
s&\\\${datarootdir}&$datarootdir&g' ;;
27610
# Neutralize VPATH when `$srcdir' = `.'.
27611
# Shell code in configure.ac might set extrasub.
27612
# FIXME: do we really want to maintain this feature?
27613
cat >>$CONFIG_STATUS <<_ACEOF
27617
cat >>$CONFIG_STATUS <<\_ACEOF
27619
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27620
s&@configure_input@&$configure_input&;t t
27621
s&@top_builddir@&$ac_top_builddir_sub&;t t
27622
s&@srcdir@&$ac_srcdir&;t t
27623
s&@abs_srcdir@&$ac_abs_srcdir&;t t
27624
s&@top_srcdir@&$ac_top_srcdir&;t t
27625
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27626
s&@builddir@&$ac_builddir&;t t
27627
s&@abs_builddir@&$ac_abs_builddir&;t t
27628
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27629
s&@INSTALL@&$ac_INSTALL&;t t
27630
s&@MKDIR_P@&$ac_MKDIR_P&;t t
27631
$ac_datarootdir_hack
27632
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27634
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27635
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27636
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27637
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27638
which seems to be undefined. Please make sure it is defined." >&5
27639
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27640
which seems to be undefined. Please make sure it is defined." >&2;}
27644
-) cat "$tmp/out"; rm -f "$tmp/out";;
27645
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27654
# Transform confdefs.h into a sed script `conftest.defines', that
27655
# substitutes the proper values into config.h.in to produce config.h.
27656
rm -f conftest.defines conftest.tail
27657
# First, append a space to every undef/define line, to ease matching.
27658
echo 's/$/ /' >conftest.defines
27659
# Then, protect against being on the right side of a sed subst, or in
27660
# an unquoted here document, in config.status. If some macros were
27661
# called several times there might be several #defines for the same
27662
# symbol, which is useless. But do not sort them, since the last
27663
# AC_DEFINE must be honored.
27664
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27665
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27666
# NAME is the cpp macro being defined, VALUE is the value it is being given.
27667
# PARAMS is the parameter list in the macro definition--in most cases, it's
27668
# just an empty string.
27669
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27670
ac_dB='\\)[ (].*,\\1define\\2'
27678
s/^[ ]*#[ ]*define[ ][ ]*//
27683
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27684
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27685
' >>conftest.defines
27687
# Remove the space that was appended to ease matching.
27688
# Then replace #undef with comments. This is necessary, for
27689
# example, in the case of _POSIX_SOURCE, which is predefined and required
27690
# on some systems where configure will not decide to define it.
27691
# (The regexp can be short, since the line contains either #define or #undef.)
27693
s,^[ #]*u.*,/* & */,' >>conftest.defines
27695
# Break up conftest.defines:
27696
ac_max_sed_lines=50
27698
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27699
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27700
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27702
ac_in='$ac_file_inputs'
27703
ac_out='"$tmp/out1"'
27704
ac_nxt='"$tmp/out2"'
27708
# Write a here document:
27709
cat >>$CONFIG_STATUS <<_ACEOF
27710
# First, check the format of the line:
27711
cat >"\$tmp/defines.sed" <<\\CEOF
27712
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27713
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27717
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27719
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27720
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27721
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27722
grep . conftest.tail >/dev/null || break
27723
rm -f conftest.defines
27724
mv conftest.tail conftest.defines
27726
rm -f conftest.defines conftest.tail
27728
echo "ac_result=$ac_in" >>$CONFIG_STATUS
27729
cat >>$CONFIG_STATUS <<\_ACEOF
27730
if test x"$ac_file" != x-; then
27731
echo "/* $configure_input */" >"$tmp/config.h"
27732
cat "$ac_result" >>"$tmp/config.h"
27733
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27734
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27735
echo "$as_me: $ac_file is unchanged" >&6;}
27738
mv "$tmp/config.h" $ac_file
27741
echo "/* $configure_input */"
27745
# Compute $ac_file's index in $config_headers.
27747
for _am_header in $config_headers :; do
27748
case $_am_header in
27749
$ac_file | $ac_file:* )
27752
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
27755
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27756
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27757
X$ac_file : 'X\(//\)[^/]' \| \
27758
X$ac_file : 'X\(//\)$' \| \
27759
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27761
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27765
/^X\(\/\/\)[^/].*/{
27777
s/.*/./; q'`/stamp-h$_am_stamp_count
27780
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27781
echo "$as_me: executing $ac_file commands" >&6;}
27786
case $ac_file$ac_mode in
27787
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27788
# Strip MF so we end up with the name of the file.
27789
mf=`echo "$mf" | sed -e 's/:.*$//'`
27790
# Check whether this is an Automake generated Makefile or not.
27791
# We used to match only the files named `Makefile.in', but
27792
# some people rename them; so instead we look at the file content.
27793
# Grep'ing the first line is not enough: some people post-process
27794
# each Makefile.in and add a new line on top of each file to say so.
27795
# Grep'ing the whole file is not good either: AIX grep has a line
27796
# limit of 2048, but all sed's we know have understand at least 4000.
27797
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
27798
dirpart=`$as_dirname -- "$mf" ||
27799
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27800
X"$mf" : 'X\(//\)[^/]' \| \
27801
X"$mf" : 'X\(//\)$' \| \
27802
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27804
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27808
/^X\(\/\/\)[^/].*/{
27824
# Extract the definition of DEPDIR, am__include, and am__quote
27825
# from the Makefile without running `make'.
27826
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27827
test -z "$DEPDIR" && continue
27828
am__include=`sed -n 's/^am__include = //p' < "$mf"`
27829
test -z "am__include" && continue
27830
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27831
# When using ansi2knr, U may be empty or an underscore; expand it
27832
U=`sed -n 's/^U = //p' < "$mf"`
27833
# Find all dependency output files, they are included files with
27834
# $(DEPDIR) in their names. We invoke sed twice because it is the
27835
# simplest approach to changing $(DEPDIR) to its actual value in the
27837
for file in `sed -n "
27838
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27839
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27840
# Make sure the directory exists.
27841
test -f "$dirpart/$file" && continue
27842
fdir=`$as_dirname -- "$file" ||
27843
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27844
X"$file" : 'X\(//\)[^/]' \| \
27845
X"$file" : 'X\(//\)$' \| \
27846
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27848
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27852
/^X\(\/\/\)[^/].*/{
27865
{ as_dir=$dirpart/$fdir
27867
-*) as_dir=./$as_dir;;
27869
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27873
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27874
*) as_qdir=$as_dir;;
27876
as_dirs="'$as_qdir' $as_dirs"
27877
as_dir=`$as_dirname -- "$as_dir" ||
27878
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27879
X"$as_dir" : 'X\(//\)[^/]' \| \
27880
X"$as_dir" : 'X\(//\)$' \| \
27881
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27883
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27887
/^X\(\/\/\)[^/].*/{
27900
test -d "$as_dir" && break
27902
test -z "$as_dirs" || eval "mkdir $as_dirs"
27903
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27904
echo "$as_me: error: cannot create directory $as_dir" >&2;}
27905
{ (exit 1); exit 1; }; }; }
27906
# echo "creating $dirpart/$file"
27907
echo '# dummy' > "$dirpart/$file"
27916
{ (exit 0); exit 0; }
27918
chmod +x $CONFIG_STATUS
27919
ac_clean_files=$ac_clean_files_save
27922
# configure is writing to config.log, and then calls config.status.
27923
# config.status does its own redirection, appending to config.log.
27924
# Unfortunately, on DOS this fails, as config.log is still kept open
27925
# by configure, so config.status won't be able to write to it; its
27926
# output is simply discarded. So we exec the FD to /dev/null,
27927
# effectively closing config.log, so it can be properly (re)opened and
27928
# appended to by config.status. When coming back to configure, we
27929
# need to make the FD available again.
27930
if test "$no_create" != yes; then
27932
ac_config_status_args=
27933
test "$silent" = yes &&
27934
ac_config_status_args="$ac_config_status_args --quiet"
27936
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27938
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
27939
# would make configure fail if this is the last instruction.
27940
$ac_cs_success || { (exit 1); exit 1; }