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
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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
832
INSTALL_STRIP_PROGRAM
901
ac_precious_vars='build_alias
919
# Initialize some variables set by options.
921
ac_init_version=false
922
# The variables have the same names as the options, with
923
# dashes changed to underlines.
931
program_transform_name=s,x,x,
939
# Installation directory options.
940
# These are left unexpanded so users can "make install exec_prefix=/foo"
941
# and all the variables that are supposed to be based on exec_prefix
942
# by default will actually change.
943
# Use braces instead of parens because sh, perl, etc. also accept them.
944
# (The list follows the same order as the GNU Coding Standards.)
945
bindir='${exec_prefix}/bin'
946
sbindir='${exec_prefix}/sbin'
947
libexecdir='${exec_prefix}/libexec'
948
datarootdir='${prefix}/share'
949
datadir='${datarootdir}'
950
sysconfdir='${prefix}/etc'
951
sharedstatedir='${prefix}/com'
952
localstatedir='${prefix}/var'
953
includedir='${prefix}/include'
954
oldincludedir='/usr/include'
955
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956
infodir='${datarootdir}/info'
961
libdir='${exec_prefix}/lib'
962
localedir='${datarootdir}/locale'
963
mandir='${datarootdir}/man'
969
# If the previous option needs an argument, assign it.
970
if test -n "$ac_prev"; then
971
eval $ac_prev=\$ac_option
977
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981
# Accept the important Cygnus configure options, so we can diagnose typos.
983
case $ac_dashdash$ac_option in
987
-bindir | --bindir | --bindi | --bind | --bin | --bi)
989
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992
-build | --build | --buil | --bui | --bu)
993
ac_prev=build_alias ;;
994
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
995
build_alias=$ac_optarg ;;
997
-cache-file | --cache-file | --cache-fil | --cache-fi \
998
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999
ac_prev=cache_file ;;
1000
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002
cache_file=$ac_optarg ;;
1004
--config-cache | -C)
1005
cache_file=config.cache ;;
1007
-datadir | --datadir | --datadi | --datad)
1009
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1010
datadir=$ac_optarg ;;
1012
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013
| --dataroo | --dataro | --datar)
1014
ac_prev=datarootdir ;;
1015
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017
datarootdir=$ac_optarg ;;
1019
-disable-* | --disable-*)
1020
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021
# Reject names that are not valid shell variable names.
1022
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1023
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1024
{ (exit 1); exit 1; }; }
1025
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1026
eval enable_$ac_feature=no ;;
1028
-docdir | --docdir | --docdi | --doc | --do)
1030
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031
docdir=$ac_optarg ;;
1033
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036
dvidir=$ac_optarg ;;
1038
-enable-* | --enable-*)
1039
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1040
# Reject names that are not valid shell variable names.
1041
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1043
{ (exit 1); exit 1; }; }
1044
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1045
eval enable_$ac_feature=\$ac_optarg ;;
1047
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049
| --exec | --exe | --ex)
1050
ac_prev=exec_prefix ;;
1051
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053
| --exec=* | --exe=* | --ex=*)
1054
exec_prefix=$ac_optarg ;;
1056
-gas | --gas | --ga | --g)
1057
# Obsolete; use --with-gas.
1060
-help | --help | --hel | --he | -h)
1061
ac_init_help=long ;;
1062
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063
ac_init_help=recursive ;;
1064
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065
ac_init_help=short ;;
1067
-host | --host | --hos | --ho)
1068
ac_prev=host_alias ;;
1069
-host=* | --host=* | --hos=* | --ho=*)
1070
host_alias=$ac_optarg ;;
1072
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076
htmldir=$ac_optarg ;;
1078
-includedir | --includedir | --includedi | --included | --include \
1079
| --includ | --inclu | --incl | --inc)
1080
ac_prev=includedir ;;
1081
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082
| --includ=* | --inclu=* | --incl=* | --inc=*)
1083
includedir=$ac_optarg ;;
1085
-infodir | --infodir | --infodi | --infod | --info | --inf)
1087
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1088
infodir=$ac_optarg ;;
1090
-libdir | --libdir | --libdi | --libd)
1092
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1093
libdir=$ac_optarg ;;
1095
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096
| --libexe | --libex | --libe)
1097
ac_prev=libexecdir ;;
1098
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099
| --libexe=* | --libex=* | --libe=*)
1100
libexecdir=$ac_optarg ;;
1102
-localedir | --localedir | --localedi | --localed | --locale)
1103
ac_prev=localedir ;;
1104
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105
localedir=$ac_optarg ;;
1107
-localstatedir | --localstatedir | --localstatedi | --localstated \
1108
| --localstate | --localstat | --localsta | --localst | --locals)
1109
ac_prev=localstatedir ;;
1110
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1111
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1112
localstatedir=$ac_optarg ;;
1114
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117
mandir=$ac_optarg ;;
1119
-nfp | --nfp | --nf)
1120
# Obsolete; use --without-fp.
1123
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124
| --no-cr | --no-c | -n)
1127
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133
| --oldin | --oldi | --old | --ol | --o)
1134
ac_prev=oldincludedir ;;
1135
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138
oldincludedir=$ac_optarg ;;
1140
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143
prefix=$ac_optarg ;;
1145
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1146
| --program-pre | --program-pr | --program-p)
1147
ac_prev=program_prefix ;;
1148
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1149
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150
program_prefix=$ac_optarg ;;
1152
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1153
| --program-suf | --program-su | --program-s)
1154
ac_prev=program_suffix ;;
1155
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1156
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157
program_suffix=$ac_optarg ;;
1159
-program-transform-name | --program-transform-name \
1160
| --program-transform-nam | --program-transform-na \
1161
| --program-transform-n | --program-transform- \
1162
| --program-transform | --program-transfor \
1163
| --program-transfo | --program-transf \
1164
| --program-trans | --program-tran \
1165
| --progr-tra | --program-tr | --program-t)
1166
ac_prev=program_transform_name ;;
1167
-program-transform-name=* | --program-transform-name=* \
1168
| --program-transform-nam=* | --program-transform-na=* \
1169
| --program-transform-n=* | --program-transform-=* \
1170
| --program-transform=* | --program-transfor=* \
1171
| --program-transfo=* | --program-transf=* \
1172
| --program-trans=* | --program-tran=* \
1173
| --progr-tra=* | --program-tr=* | --program-t=*)
1174
program_transform_name=$ac_optarg ;;
1176
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179
pdfdir=$ac_optarg ;;
1181
-psdir | --psdir | --psdi | --psd | --ps)
1183
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187
| -silent | --silent | --silen | --sile | --sil)
1190
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194
sbindir=$ac_optarg ;;
1196
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1197
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198
| --sharedst | --shareds | --shared | --share | --shar \
1200
ac_prev=sharedstatedir ;;
1201
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205
sharedstatedir=$ac_optarg ;;
1207
-site | --site | --sit)
1209
-site=* | --site=* | --sit=*)
1212
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1215
srcdir=$ac_optarg ;;
1217
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218
| --syscon | --sysco | --sysc | --sys | --sy)
1219
ac_prev=sysconfdir ;;
1220
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1222
sysconfdir=$ac_optarg ;;
1224
-target | --target | --targe | --targ | --tar | --ta | --t)
1225
ac_prev=target_alias ;;
1226
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1227
target_alias=$ac_optarg ;;
1229
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1232
-version | --version | --versio | --versi | --vers | -V)
1233
ac_init_version=: ;;
1236
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237
# Reject names that are not valid shell variable names.
1238
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1240
{ (exit 1); exit 1; }; }
1241
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1242
eval with_$ac_package=\$ac_optarg ;;
1244
-without-* | --without-*)
1245
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246
# Reject names that are not valid shell variable names.
1247
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1249
{ (exit 1); exit 1; }; }
1250
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1251
eval with_$ac_package=no ;;
1254
# Obsolete; use --with-x.
1257
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258
| --x-incl | --x-inc | --x-in | --x-i)
1259
ac_prev=x_includes ;;
1260
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262
x_includes=$ac_optarg ;;
1264
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1265
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266
ac_prev=x_libraries ;;
1267
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269
x_libraries=$ac_optarg ;;
1271
-*) { echo "$as_me: error: unrecognized option: $ac_option
1272
Try \`$0 --help' for more information." >&2
1273
{ (exit 1); exit 1; }; }
1277
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278
# Reject names that are not valid shell variable names.
1279
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1280
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1281
{ (exit 1); exit 1; }; }
1282
eval $ac_envvar=\$ac_optarg
1283
export $ac_envvar ;;
1286
# FIXME: should be removed in autoconf 3.0.
1287
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1296
if test -n "$ac_prev"; then
1297
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1298
{ echo "$as_me: error: missing argument to $ac_option" >&2
1299
{ (exit 1); exit 1; }; }
1302
# Be sure to have absolute directory names.
1303
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304
datadir sysconfdir sharedstatedir localstatedir includedir \
1305
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306
libdir localedir mandir
1308
eval ac_val=\$$ac_var
1310
[\\/$]* | ?:[\\/]* ) continue;;
1311
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1314
{ (exit 1); exit 1; }; }
1317
# There might be people who depend on the old broken behavior: `$host'
1318
# used to hold the argument of --host etc.
1319
# FIXME: To remove some day.
1322
target=$target_alias
1324
# FIXME: To remove some day.
1325
if test "x$host_alias" != x; then
1326
if test "x$build_alias" = x; then
1327
cross_compiling=maybe
1328
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1329
If a cross compiler is detected then cross compile mode will be used." >&2
1330
elif test "x$build_alias" != "x$host_alias"; then
1336
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338
test "$silent" = yes && exec 6>/dev/null
1341
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342
ac_ls_di=`ls -di .` &&
1343
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344
{ echo "$as_me: error: Working directory cannot be determined" >&2
1345
{ (exit 1); exit 1; }; }
1346
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1348
{ (exit 1); exit 1; }; }
1351
# Find the source files, if location was not specified.
1352
if test -z "$srcdir"; then
1353
ac_srcdir_defaulted=yes
1354
# Try the directory containing this script, then the parent directory.
1355
ac_confdir=`$as_dirname -- "$0" ||
1356
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357
X"$0" : 'X\(//\)[^/]' \| \
1358
X"$0" : 'X\(//\)$' \| \
1359
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1361
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379
if test ! -r "$srcdir/$ac_unique_file"; then
1383
ac_srcdir_defaulted=no
1385
if test ! -r "$srcdir/$ac_unique_file"; then
1386
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1388
{ (exit 1); exit 1; }; }
1390
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1393
{ (exit 1); exit 1; }; }
1395
# When building in place, set srcdir=.
1396
if test "$ac_abs_confdir" = "$ac_pwd"; then
1399
# Remove unnecessary trailing slashes from srcdir.
1400
# Double slashes in file names in object file debugging info
1401
# mess up M-x gdb in Emacs.
1403
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405
for ac_var in $ac_precious_vars; do
1406
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407
eval ac_env_${ac_var}_value=\$${ac_var}
1408
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413
# Report the --help message.
1415
if test "$ac_init_help" = "long"; then
1416
# Omit some internal or obsolete options to make the list less imposing.
1417
# This message is too long to be a string in the A/UX 3.1 sh.
1419
\`configure' configures jasper 1.701.0-gs5 to adapt to many kinds of systems.
1421
Usage: $0 [OPTION]... [VAR=VALUE]...
1423
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424
VAR=VALUE. See below for descriptions of some of the useful variables.
1426
Defaults for the options are specified in brackets.
1429
-h, --help display this help and exit
1430
--help=short display options specific to this package
1431
--help=recursive display the short help of all the included packages
1432
-V, --version display version information and exit
1433
-q, --quiet, --silent do not print \`checking...' messages
1434
--cache-file=FILE cache test results in FILE [disabled]
1435
-C, --config-cache alias for \`--cache-file=config.cache'
1436
-n, --no-create do not create output files
1437
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1439
Installation directories:
1440
--prefix=PREFIX install architecture-independent files in PREFIX
1441
[$ac_default_prefix]
1442
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1445
By default, \`make install' will install all the files in
1446
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448
for instance \`--prefix=\$HOME'.
1450
For better control, use the options below.
1452
Fine tuning of the installation directories:
1453
--bindir=DIR user executables [EPREFIX/bin]
1454
--sbindir=DIR system admin executables [EPREFIX/sbin]
1455
--libexecdir=DIR program executables [EPREFIX/libexec]
1456
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459
--libdir=DIR object code libraries [EPREFIX/lib]
1460
--includedir=DIR C header files [PREFIX/include]
1461
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1462
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464
--infodir=DIR info documentation [DATAROOTDIR/info]
1465
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466
--mandir=DIR man documentation [DATAROOTDIR/man]
1467
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/jasper@:>@
1468
--htmldir=DIR html documentation [DOCDIR]
1469
--dvidir=DIR dvi documentation [DOCDIR]
1470
--pdfdir=DIR pdf documentation [DOCDIR]
1471
--psdir=DIR ps documentation [DOCDIR]
1477
--program-prefix=PREFIX prepend PREFIX to installed program names
1478
--program-suffix=SUFFIX append SUFFIX to installed program names
1479
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1482
--x-includes=DIR X include files are in DIR
1483
--x-libraries=DIR X library files are in DIR
1486
--build=BUILD configure for building on BUILD [guessed]
1487
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1488
--target=TARGET configure for building compilers for TARGET [HOST]
1492
if test -n "$ac_init_help"; then
1493
case $ac_init_help in
1494
short | recursive ) echo "Configuration of jasper 1.701.0-gs5:";;
1499
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1500
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1501
--disable-dependency-tracking speeds up one-time build
1502
--enable-dependency-tracking do not reject slow dependency extractors
1503
--enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=no@:>@
1504
--enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1505
--enable-fast-install@<:@=PKGS@:>@
1506
optimize for fast installation @<:@default=yes@:>@
1507
--disable-libtool-lock avoid locking (might break parallel builds)
1508
--disable-libjpeg Force the IJG JPEG library to be ignored
1509
--disable-opengl Disable use of OpenGL.
1510
--enable-dmalloc use special memory allocator for debugging
1511
--enable-debug add extra code for debugging
1514
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1517
--with-pic try to use only PIC/non-PIC objects @<:@default=use
1519
--with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1520
--with-x use the X Window System
1521
--with-glut-include-dir=DIR Set GLUT include directory.
1522
--with-glut-lib-dir=DIR Set GLUT library directory.
1524
Some influential environment variables:
1525
CC C compiler command
1526
CFLAGS C compiler flags
1527
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1528
nonstandard directory <lib dir>
1529
LIBS libraries to pass to the linker, e.g. -l<library>
1530
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1531
you have headers in a nonstandard directory <include dir>
1533
CXX C++ compiler command
1534
CXXFLAGS C++ compiler flags
1535
CXXCPP C++ preprocessor
1536
F77 Fortran 77 compiler command
1537
FFLAGS Fortran 77 compiler flags
1538
XMKMF Path to xmkmf, Makefile generator for X Window System
1540
Use these variables to override the choices made by `configure' or to help
1541
it to find libraries and programs with nonstandard names/locations.
1547
if test "$ac_init_help" = "recursive"; then
1548
# If there are subdirs, report their specific --help.
1549
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550
test -d "$ac_dir" || continue
1554
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1557
# A ".." for each directory in $ac_dir_suffix.
1558
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1559
case $ac_top_builddir_sub in
1560
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564
ac_abs_top_builddir=$ac_pwd
1565
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566
# for backward compatibility:
1567
ac_top_builddir=$ac_top_build_prefix
1570
.) # We are building in place.
1572
ac_top_srcdir=$ac_top_builddir_sub
1573
ac_abs_top_srcdir=$ac_pwd ;;
1574
[\\/]* | ?:[\\/]* ) # Absolute name.
1575
ac_srcdir=$srcdir$ac_dir_suffix;
1576
ac_top_srcdir=$srcdir
1577
ac_abs_top_srcdir=$srcdir ;;
1579
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580
ac_top_srcdir=$ac_top_build_prefix$srcdir
1581
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
cd "$ac_dir" || { ac_status=$?; continue; }
1586
# Check for guested configure.
1587
if test -f "$ac_srcdir/configure.gnu"; then
1589
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590
elif test -f "$ac_srcdir/configure"; then
1592
$SHELL "$ac_srcdir/configure" --help=recursive
1594
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596
cd "$ac_pwd" || { ac_status=$?; break; }
1600
test -n "$ac_init_help" && exit $ac_status
1601
if $ac_init_version; then
1603
jasper configure 1.701.0-gs5
1604
generated by GNU Autoconf 2.61
1606
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1607
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1608
This configure script is free software; the Free Software Foundation
1609
gives unlimited permission to copy, distribute and modify it.
1613
cat >config.log <<_ACEOF
1614
This file contains any messages produced by compilers while
1615
running configure, to aid debugging if configure makes a mistake.
1617
It was created by jasper $as_me 1.701.0-gs5, which was
1618
generated by GNU Autoconf 2.61. Invocation command line was
1626
@%:@@%:@ --------- @%:@@%:@
1627
@%:@@%:@ Platform. @%:@@%:@
1628
@%:@@%:@ --------- @%:@@%:@
1630
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1631
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1632
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1633
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1634
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1636
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1637
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1639
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1640
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1641
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1642
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1643
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1644
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1645
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653
test -z "$as_dir" && as_dir=.
1654
echo "PATH: $as_dir"
1663
@%:@@%:@ ----------- @%:@@%:@
1664
@%:@@%:@ Core tests. @%:@@%:@
1665
@%:@@%:@ ----------- @%:@@%:@
1670
# Keep a trace of the command line.
1671
# Strip out --no-create and --no-recursion so they do not pile up.
1672
# Strip out --silent because we don't want to record it for future runs.
1673
# Also quote any args containing shell meta-characters.
1674
# Make two passes to allow for proper duplicate-argument suppression.
1678
ac_must_keep_next=false
1684
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1685
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1686
| -silent | --silent | --silen | --sile | --sil)
1689
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1692
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1694
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1695
if test $ac_must_keep_next = true; then
1696
ac_must_keep_next=false # Got value, back to normal.
1699
*=* | --config-cache | -C | -disable-* | --disable-* \
1700
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1701
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1702
| -with-* | --with-* | -without-* | --without-* | --x)
1703
case "$ac_configure_args0 " in
1704
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1707
-* ) ac_must_keep_next=true ;;
1710
ac_configure_args="$ac_configure_args '$ac_arg'"
1715
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1716
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1718
# When interrupted or exit'd, cleanup temporary files, and complete
1719
# config.log. We remove comments because anyway the quotes in there
1720
# would cause problems or look ugly.
1721
# WARNING: Use '\'' to represent an apostrophe within the trap.
1722
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1723
trap 'exit_status=$?
1724
# Save into config.log some information that might help in debugging.
1729
@%:@@%:@ ---------------- @%:@@%:@
1730
@%:@@%:@ Cache variables. @%:@@%:@
1731
@%:@@%:@ ---------------- @%:@@%:@
1734
# The following way of writing the cache mishandles newlines in values,
1736
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1737
eval ac_val=\$$ac_var
1741
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1742
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1745
_ | IFS | as_nl) ;; #(
1746
*) $as_unset $ac_var ;;
1751
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1752
*${as_nl}ac_space=\ *)
1754
"s/'\''/'\''\\\\'\'''\''/g;
1755
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1758
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1766
@%:@@%:@ ----------------- @%:@@%:@
1767
@%:@@%:@ Output variables. @%:@@%:@
1768
@%:@@%:@ ----------------- @%:@@%:@
1771
for ac_var in $ac_subst_vars
1773
eval ac_val=\$$ac_var
1775
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777
echo "$ac_var='\''$ac_val'\''"
1781
if test -n "$ac_subst_files"; then
1783
@%:@@%:@ ------------------- @%:@@%:@
1784
@%:@@%:@ File substitutions. @%:@@%:@
1785
@%:@@%:@ ------------------- @%:@@%:@
1788
for ac_var in $ac_subst_files
1790
eval ac_val=\$$ac_var
1792
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1794
echo "$ac_var='\''$ac_val'\''"
1799
if test -s confdefs.h; then
1801
@%:@@%:@ ----------- @%:@@%:@
1802
@%:@@%:@ confdefs.h. @%:@@%:@
1803
@%:@@%:@ ----------- @%:@@%:@
1809
test "$ac_signal" != 0 &&
1810
echo "$as_me: caught signal $ac_signal"
1811
echo "$as_me: exit $exit_status"
1813
rm -f core *.core core.conftest.* &&
1814
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1817
for ac_signal in 1 2 13 15; do
1818
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1822
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1823
rm -f -r conftest* confdefs.h
1825
# Predefined preprocessor variables.
1827
cat >>confdefs.h <<_ACEOF
1828
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1832
cat >>confdefs.h <<_ACEOF
1833
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1837
cat >>confdefs.h <<_ACEOF
1838
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1842
cat >>confdefs.h <<_ACEOF
1843
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1847
cat >>confdefs.h <<_ACEOF
1848
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1852
# Let the site file select an alternate cache file if it wants to.
1853
# Prefer explicitly selected file to automatically selected ones.
1854
if test -n "$CONFIG_SITE"; then
1855
set x "$CONFIG_SITE"
1856
elif test "x$prefix" != xNONE; then
1857
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1859
set x "$ac_default_prefix/share/config.site" \
1860
"$ac_default_prefix/etc/config.site"
1865
if test -r "$ac_site_file"; then
1866
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1867
echo "$as_me: loading site script $ac_site_file" >&6;}
1868
sed 's/^/| /' "$ac_site_file" >&5
1873
if test -r "$cache_file"; then
1874
# Some versions of bash will fail to source /dev/null (special
1875
# files actually), so we avoid doing that.
1876
if test -f "$cache_file"; then
1877
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1878
echo "$as_me: loading cache $cache_file" >&6;}
1880
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1881
*) . "./$cache_file";;
1885
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1886
echo "$as_me: creating cache $cache_file" >&6;}
1890
# Check that the precious variables saved in the cache have kept the same
1892
ac_cache_corrupted=false
1893
for ac_var in $ac_precious_vars; do
1894
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1895
eval ac_new_set=\$ac_env_${ac_var}_set
1896
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1897
eval ac_new_val=\$ac_env_${ac_var}_value
1898
case $ac_old_set,$ac_new_set in
1900
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1901
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1902
ac_cache_corrupted=: ;;
1904
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1905
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1906
ac_cache_corrupted=: ;;
1909
if test "x$ac_old_val" != "x$ac_new_val"; then
1910
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1911
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1912
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1913
echo "$as_me: former value: $ac_old_val" >&2;}
1914
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1915
echo "$as_me: current value: $ac_new_val" >&2;}
1916
ac_cache_corrupted=:
1919
# Pass precious variables to config.status.
1920
if test "$ac_new_set" = set; then
1922
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1923
*) ac_arg=$ac_var=$ac_new_val ;;
1925
case " $ac_configure_args " in
1926
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1927
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1931
if $ac_cache_corrupted; then
1932
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1933
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1934
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1935
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1936
{ (exit 1); exit 1; }; }
1964
ac_cpp='$CPP $CPPFLAGS'
1965
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1973
for ac_dir in acaux "$srcdir"/acaux; do
1974
if test -f "$ac_dir/install-sh"; then
1976
ac_install_sh="$ac_aux_dir/install-sh -c"
1978
elif test -f "$ac_dir/install.sh"; then
1980
ac_install_sh="$ac_aux_dir/install.sh -c"
1982
elif test -f "$ac_dir/shtool"; then
1984
ac_install_sh="$ac_aux_dir/shtool install -c"
1988
if test -z "$ac_aux_dir"; then
1989
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in acaux \"$srcdir\"/acaux" >&5
1990
echo "$as_me: error: cannot find install-sh or install.sh in acaux \"$srcdir\"/acaux" >&2;}
1991
{ (exit 1); exit 1; }; }
1994
# These three variables are undocumented and unsupported,
1995
# and are intended to be withdrawn in a future Autoconf release.
1996
# They can cause serious problems if a builder's source tree is in a directory
1997
# whose full name contains unusual characters.
1998
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1999
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2000
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2004
# Detect the canonical host and target build environment.
2005
# Note: This precedes automake initialization to avoid warnings.
2006
# Make sure we can run config.sub.
2007
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2008
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2009
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2010
{ (exit 1); exit 1; }; }
2012
{ echo "$as_me:$LINENO: checking build system type" >&5
2013
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2014
if test "${ac_cv_build+set}" = set; then
2015
echo $ECHO_N "(cached) $ECHO_C" >&6
2017
ac_build_alias=$build_alias
2018
test "x$ac_build_alias" = x &&
2019
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2020
test "x$ac_build_alias" = x &&
2021
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2022
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2023
{ (exit 1); exit 1; }; }
2024
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2025
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2026
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2027
{ (exit 1); exit 1; }; }
2030
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2031
echo "${ECHO_T}$ac_cv_build" >&6; }
2032
case $ac_cv_build in
2034
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2035
echo "$as_me: error: invalid value of canonical build" >&2;}
2036
{ (exit 1); exit 1; }; };;
2039
ac_save_IFS=$IFS; IFS='-'
2045
# Remember, the first character of IFS is used to create $*,
2046
# except with old shells:
2049
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2052
{ echo "$as_me:$LINENO: checking host system type" >&5
2053
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2054
if test "${ac_cv_host+set}" = set; then
2055
echo $ECHO_N "(cached) $ECHO_C" >&6
2057
if test "x$host_alias" = x; then
2058
ac_cv_host=$ac_cv_build
2060
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2061
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2062
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2063
{ (exit 1); exit 1; }; }
2067
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2068
echo "${ECHO_T}$ac_cv_host" >&6; }
2071
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2072
echo "$as_me: error: invalid value of canonical host" >&2;}
2073
{ (exit 1); exit 1; }; };;
2076
ac_save_IFS=$IFS; IFS='-'
2082
# Remember, the first character of IFS is used to create $*,
2083
# except with old shells:
2086
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2089
{ echo "$as_me:$LINENO: checking target system type" >&5
2090
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2091
if test "${ac_cv_target+set}" = set; then
2092
echo $ECHO_N "(cached) $ECHO_C" >&6
2094
if test "x$target_alias" = x; then
2095
ac_cv_target=$ac_cv_host
2097
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2098
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2099
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2100
{ (exit 1); exit 1; }; }
2104
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2105
echo "${ECHO_T}$ac_cv_target" >&6; }
2106
case $ac_cv_target in
2108
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2109
echo "$as_me: error: invalid value of canonical target" >&2;}
2110
{ (exit 1); exit 1; }; };;
2112
target=$ac_cv_target
2113
ac_save_IFS=$IFS; IFS='-'
2119
# Remember, the first character of IFS is used to create $*,
2120
# except with old shells:
2123
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2126
# The aliases save the names the user supplied, while $host etc.
2127
# will get canonicalized.
2128
test -n "$target_alias" &&
2129
test "$program_prefix$program_suffix$program_transform_name" = \
2131
program_prefix=${target_alias}-
2133
# Initialize automake.
2134
am__api_version="1.9"
2135
# Find a good install program. We prefer a C program (faster),
2136
# so one script is as good as another. But avoid the broken or
2137
# incompatible versions:
2138
# SysV /etc/install, /usr/sbin/install
2139
# SunOS /usr/etc/install
2140
# IRIX /sbin/install
2142
# AmigaOS /C/install, which installs bootblocks on floppy discs
2143
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2144
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2145
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2146
# OS/2's system install, which has a completely different semantic
2147
# ./install, which can be erroneously created by make from ./install.sh.
2148
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2149
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2150
if test -z "$INSTALL"; then
2151
if test "${ac_cv_path_install+set}" = set; then
2152
echo $ECHO_N "(cached) $ECHO_C" >&6
2154
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158
test -z "$as_dir" && as_dir=.
2159
# Account for people who put trailing slashes in PATH elements.
2161
./ | .// | /cC/* | \
2162
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2163
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2166
# OSF1 and SCO ODT 3.0 have their own names for install.
2167
# Don't use installbsd from OSF since it installs stuff as root
2169
for ac_prog in ginstall scoinst install; do
2170
for ac_exec_ext in '' $ac_executable_extensions; do
2171
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2172
if test $ac_prog = install &&
2173
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2174
# AIX install. It has an incompatible calling convention.
2176
elif test $ac_prog = install &&
2177
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2178
# program-specific install script used by HP pwplus--don't use.
2181
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2194
if test "${ac_cv_path_install+set}" = set; then
2195
INSTALL=$ac_cv_path_install
2197
# As a last resort, use the slow shell script. Don't cache a
2198
# value for INSTALL within a source directory, because that will
2199
# break other packages using the cache if that directory is
2200
# removed, or if the value is a relative name.
2201
INSTALL=$ac_install_sh
2204
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2205
echo "${ECHO_T}$INSTALL" >&6; }
2207
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2208
# It thinks the first close brace ends the variable substitution.
2209
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2211
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2213
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2215
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2216
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2219
echo timestamp > conftest.file
2220
# Do `set' in a subshell so we don't clobber the current shell's
2221
# arguments. Must try -L first in case configure is actually a
2222
# symlink; some systems play weird games with the mod time of symlinks
2223
# (eg FreeBSD returns the mod time of the symlink's containing
2226
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2227
if test "$*" = "X"; then
2229
set X `ls -t $srcdir/configure conftest.file`
2232
if test "$*" != "X $srcdir/configure conftest.file" \
2233
&& test "$*" != "X conftest.file $srcdir/configure"; then
2235
# If neither matched, then we have a broken ls. This can happen
2236
# if, for instance, CONFIG_SHELL is bash and it inherits a
2237
# broken ls alias from the environment. This has actually
2238
# happened. Such a system could not be considered "sane".
2239
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2240
alias in your environment" >&5
2241
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2242
alias in your environment" >&2;}
2243
{ (exit 1); exit 1; }; }
2246
test "$2" = conftest.file
2252
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2253
Check your system clock" >&5
2254
echo "$as_me: error: newly created file is older than distributed files!
2255
Check your system clock" >&2;}
2256
{ (exit 1); exit 1; }; }
2258
{ echo "$as_me:$LINENO: result: yes" >&5
2259
echo "${ECHO_T}yes" >&6; }
2260
test "$program_prefix" != NONE &&
2261
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2262
# Use a double $ so make ignores it.
2263
test "$program_suffix" != NONE &&
2264
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2265
# Double any \ or $. echo might interpret backslashes.
2266
# By default was `s,x,x', remove it if useless.
2267
cat <<\_ACEOF >conftest.sed
2268
s/[\\$]/&&/g;s/;s,x,x,$//
2270
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2273
# expand $ac_aux_dir to an absolute path
2274
am_aux_dir=`cd $ac_aux_dir && pwd`
2276
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2277
# Use eval to expand $SHELL
2278
if eval "$MISSING --run true"; then
2279
am_missing_run="$MISSING --run "
2282
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2283
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2286
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2287
# We used to keeping the `.' as first argument, in order to
2288
# allow $(mkdir_p) to be used without argument. As in
2289
# $(mkdir_p) $(somedir)
2290
# where $(somedir) is conditionally defined. However this is wrong
2292
# 1. if the package is installed by a user who cannot write `.'
2293
# make install will fail,
2294
# 2. the above comment should most certainly read
2295
# $(mkdir_p) $(DESTDIR)$(somedir)
2296
# so it does not work when $(somedir) is undefined and
2297
# $(DESTDIR) is not.
2298
# To support the latter case, we have to write
2299
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2300
# so the `.' trick is pointless.
2301
mkdir_p='mkdir -p --'
2303
# On NextStep and OpenStep, the `mkdir' command does not
2304
# recognize any option. It will interpret all options as
2305
# directories to create, and then abort because `.' already
2307
for d in ./-p ./--version;
2309
test -d $d && rmdir $d
2311
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2312
if test -f "$ac_aux_dir/mkinstalldirs"; then
2313
mkdir_p='$(mkinstalldirs)'
2315
mkdir_p='$(install_sh) -d'
2319
for ac_prog in gawk mawk nawk awk
2321
# Extract the first word of "$ac_prog", so it can be a program name with args.
2322
set dummy $ac_prog; ac_word=$2
2323
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2324
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2325
if test "${ac_cv_prog_AWK+set}" = set; then
2326
echo $ECHO_N "(cached) $ECHO_C" >&6
2328
if test -n "$AWK"; then
2329
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2331
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335
test -z "$as_dir" && as_dir=.
2336
for ac_exec_ext in '' $ac_executable_extensions; do
2337
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338
ac_cv_prog_AWK="$ac_prog"
2339
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349
if test -n "$AWK"; then
2350
{ echo "$as_me:$LINENO: result: $AWK" >&5
2351
echo "${ECHO_T}$AWK" >&6; }
2353
{ echo "$as_me:$LINENO: result: no" >&5
2354
echo "${ECHO_T}no" >&6; }
2358
test -n "$AWK" && break
2361
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2362
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2363
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2364
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2365
echo $ECHO_N "(cached) $ECHO_C" >&6
2367
cat >conftest.make <<\_ACEOF
2370
@echo '@@@%%%=$(MAKE)=@@@%%%'
2372
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2373
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2375
eval ac_cv_prog_make_${ac_make}_set=yes;;
2377
eval ac_cv_prog_make_${ac_make}_set=no;;
2381
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2382
{ echo "$as_me:$LINENO: result: yes" >&5
2383
echo "${ECHO_T}yes" >&6; }
2386
{ echo "$as_me:$LINENO: result: no" >&5
2387
echo "${ECHO_T}no" >&6; }
2388
SET_MAKE="MAKE=${MAKE-make}"
2391
rm -rf .tst 2>/dev/null
2392
mkdir .tst 2>/dev/null
2393
if test -d .tst; then
2398
rmdir .tst 2>/dev/null
2400
# test to see if srcdir already configured
2401
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2402
test -f $srcdir/config.status; then
2403
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2404
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2405
{ (exit 1); exit 1; }; }
2408
# test whether we have cygpath
2409
if test -z "$CYGPATH_W"; then
2410
if (cygpath --version) >/dev/null 2>/dev/null; then
2411
CYGPATH_W='cygpath -w'
2418
# Define the identity of the package.
2420
VERSION='1.701.0-gs5'
2423
cat >>confdefs.h <<_ACEOF
2424
@%:@define PACKAGE "$PACKAGE"
2428
cat >>confdefs.h <<_ACEOF
2429
@%:@define VERSION "$VERSION"
2432
# Some tools Automake needs.
2434
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2437
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2440
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2443
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2446
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2448
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2450
# Installed binaries are usually stripped using `strip' when the user
2451
# run `make install-strip'. However `strip' might not be the right
2452
# tool to use in cross-compilation environments, therefore Automake
2453
# will honor the `STRIP' environment variable to overrule this program.
2454
if test "$cross_compiling" != no; then
2455
if test -n "$ac_tool_prefix"; then
2456
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2457
set dummy ${ac_tool_prefix}strip; ac_word=$2
2458
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2459
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2460
if test "${ac_cv_prog_STRIP+set}" = set; then
2461
echo $ECHO_N "(cached) $ECHO_C" >&6
2463
if test -n "$STRIP"; then
2464
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2466
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470
test -z "$as_dir" && as_dir=.
2471
for ac_exec_ext in '' $ac_executable_extensions; do
2472
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2474
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483
STRIP=$ac_cv_prog_STRIP
2484
if test -n "$STRIP"; then
2485
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2486
echo "${ECHO_T}$STRIP" >&6; }
2488
{ echo "$as_me:$LINENO: result: no" >&5
2489
echo "${ECHO_T}no" >&6; }
2494
if test -z "$ac_cv_prog_STRIP"; then
2496
# Extract the first word of "strip", so it can be a program name with args.
2497
set dummy strip; ac_word=$2
2498
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2499
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2500
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2501
echo $ECHO_N "(cached) $ECHO_C" >&6
2503
if test -n "$ac_ct_STRIP"; then
2504
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510
test -z "$as_dir" && as_dir=.
2511
for ac_exec_ext in '' $ac_executable_extensions; do
2512
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513
ac_cv_prog_ac_ct_STRIP="strip"
2514
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2524
if test -n "$ac_ct_STRIP"; then
2525
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2526
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2528
{ echo "$as_me:$LINENO: result: no" >&5
2529
echo "${ECHO_T}no" >&6; }
2532
if test "x$ac_ct_STRIP" = x; then
2535
case $cross_compiling:$ac_tool_warned in
2537
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2538
whose name does not start with the host triplet. If you think this
2539
configuration is useful to you, please write to autoconf@gnu.org." >&5
2540
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2541
whose name does not start with the host triplet. If you think this
2542
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2543
ac_tool_warned=yes ;;
2548
STRIP="$ac_cv_prog_STRIP"
2552
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2554
# We need awk for the "check" target. The system "awk" is bad on
2556
# Always define AMTAR for backward compatibility.
2558
AMTAR=${AMTAR-"${am_missing_run}tar"}
2560
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2567
# Initialize version information parameters.
2569
JAS_MINOR_VERSION=701
2570
JAS_MICRO_VERSION=0-gs5
2571
JAS_VERSION=1.701.0-gs5
2576
cat >>confdefs.h <<_ACEOF
2577
@%:@define JAS_VERSION "$JAS_VERSION"
2583
# Initialize version information for libtool.
2593
# Indicate a configure-based build is being used.
2594
cat >>confdefs.h <<\_ACEOF
2595
@%:@define JAS_CONFIGURE 1
2599
############################################################
2600
# Configuration header file.
2601
############################################################
2622
############################################################
2623
# Checks for programs.
2624
############################################################
2626
for ac_prog in gawk mawk nawk awk
2628
# Extract the first word of "$ac_prog", so it can be a program name with args.
2629
set dummy $ac_prog; ac_word=$2
2630
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2631
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2632
if test "${ac_cv_prog_AWK+set}" = set; then
2633
echo $ECHO_N "(cached) $ECHO_C" >&6
2635
if test -n "$AWK"; then
2636
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2638
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642
test -z "$as_dir" && as_dir=.
2643
for ac_exec_ext in '' $ac_executable_extensions; do
2644
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645
ac_cv_prog_AWK="$ac_prog"
2646
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656
if test -n "$AWK"; then
2657
{ echo "$as_me:$LINENO: result: $AWK" >&5
2658
echo "${ECHO_T}$AWK" >&6; }
2660
{ echo "$as_me:$LINENO: result: no" >&5
2661
echo "${ECHO_T}no" >&6; }
2665
test -n "$AWK" && break
2669
ac_cpp='$CPP $CPPFLAGS'
2670
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673
if test -n "$ac_tool_prefix"; then
2674
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2675
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2676
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2677
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2678
if test "${ac_cv_prog_CC+set}" = set; then
2679
echo $ECHO_N "(cached) $ECHO_C" >&6
2681
if test -n "$CC"; then
2682
ac_cv_prog_CC="$CC" # Let the user override the test.
2684
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688
test -z "$as_dir" && as_dir=.
2689
for ac_exec_ext in '' $ac_executable_extensions; do
2690
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2692
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702
if test -n "$CC"; then
2703
{ echo "$as_me:$LINENO: result: $CC" >&5
2704
echo "${ECHO_T}$CC" >&6; }
2706
{ echo "$as_me:$LINENO: result: no" >&5
2707
echo "${ECHO_T}no" >&6; }
2712
if test -z "$ac_cv_prog_CC"; then
2714
# Extract the first word of "gcc", so it can be a program name with args.
2715
set dummy gcc; ac_word=$2
2716
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2717
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2718
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2719
echo $ECHO_N "(cached) $ECHO_C" >&6
2721
if test -n "$ac_ct_CC"; then
2722
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2724
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728
test -z "$as_dir" && as_dir=.
2729
for ac_exec_ext in '' $ac_executable_extensions; do
2730
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731
ac_cv_prog_ac_ct_CC="gcc"
2732
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2741
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2742
if test -n "$ac_ct_CC"; then
2743
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2744
echo "${ECHO_T}$ac_ct_CC" >&6; }
2746
{ echo "$as_me:$LINENO: result: no" >&5
2747
echo "${ECHO_T}no" >&6; }
2750
if test "x$ac_ct_CC" = x; then
2753
case $cross_compiling:$ac_tool_warned in
2755
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2756
whose name does not start with the host triplet. If you think this
2757
configuration is useful to you, please write to autoconf@gnu.org." >&5
2758
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2759
whose name does not start with the host triplet. If you think this
2760
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2761
ac_tool_warned=yes ;;
2769
if test -z "$CC"; then
2770
if test -n "$ac_tool_prefix"; then
2771
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2772
set dummy ${ac_tool_prefix}cc; ac_word=$2
2773
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2774
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2775
if test "${ac_cv_prog_CC+set}" = set; then
2776
echo $ECHO_N "(cached) $ECHO_C" >&6
2778
if test -n "$CC"; then
2779
ac_cv_prog_CC="$CC" # Let the user override the test.
2781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785
test -z "$as_dir" && as_dir=.
2786
for ac_exec_ext in '' $ac_executable_extensions; do
2787
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788
ac_cv_prog_CC="${ac_tool_prefix}cc"
2789
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799
if test -n "$CC"; then
2800
{ echo "$as_me:$LINENO: result: $CC" >&5
2801
echo "${ECHO_T}$CC" >&6; }
2803
{ echo "$as_me:$LINENO: result: no" >&5
2804
echo "${ECHO_T}no" >&6; }
2810
if test -z "$CC"; then
2811
# Extract the first word of "cc", so it can be a program name with args.
2812
set dummy cc; ac_word=$2
2813
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2814
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815
if test "${ac_cv_prog_CC+set}" = set; then
2816
echo $ECHO_N "(cached) $ECHO_C" >&6
2818
if test -n "$CC"; then
2819
ac_cv_prog_CC="$CC" # Let the user override the test.
2822
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826
test -z "$as_dir" && as_dir=.
2827
for ac_exec_ext in '' $ac_executable_extensions; do
2828
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2830
ac_prog_rejected=yes
2834
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841
if test $ac_prog_rejected = yes; then
2842
# We found a bogon in the path, so make sure we never use it.
2843
set dummy $ac_cv_prog_CC
2845
if test $@%:@ != 0; then
2846
# We chose a different compiler from the bogus one.
2847
# However, it has the same basename, so the bogon will be chosen
2848
# first if we set CC to just the basename; use the full file name.
2850
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2856
if test -n "$CC"; then
2857
{ echo "$as_me:$LINENO: result: $CC" >&5
2858
echo "${ECHO_T}$CC" >&6; }
2860
{ echo "$as_me:$LINENO: result: no" >&5
2861
echo "${ECHO_T}no" >&6; }
2866
if test -z "$CC"; then
2867
if test -n "$ac_tool_prefix"; then
2868
for ac_prog in cl.exe
2870
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2871
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2872
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2873
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2874
if test "${ac_cv_prog_CC+set}" = set; then
2875
echo $ECHO_N "(cached) $ECHO_C" >&6
2877
if test -n "$CC"; then
2878
ac_cv_prog_CC="$CC" # Let the user override the test.
2880
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884
test -z "$as_dir" && as_dir=.
2885
for ac_exec_ext in '' $ac_executable_extensions; do
2886
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2888
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2898
if test -n "$CC"; then
2899
{ echo "$as_me:$LINENO: result: $CC" >&5
2900
echo "${ECHO_T}$CC" >&6; }
2902
{ echo "$as_me:$LINENO: result: no" >&5
2903
echo "${ECHO_T}no" >&6; }
2907
test -n "$CC" && break
2910
if test -z "$CC"; then
2912
for ac_prog in cl.exe
2914
# Extract the first word of "$ac_prog", so it can be a program name with args.
2915
set dummy $ac_prog; ac_word=$2
2916
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2917
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2918
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2919
echo $ECHO_N "(cached) $ECHO_C" >&6
2921
if test -n "$ac_ct_CC"; then
2922
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928
test -z "$as_dir" && as_dir=.
2929
for ac_exec_ext in '' $ac_executable_extensions; do
2930
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931
ac_cv_prog_ac_ct_CC="$ac_prog"
2932
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2942
if test -n "$ac_ct_CC"; then
2943
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2944
echo "${ECHO_T}$ac_ct_CC" >&6; }
2946
{ echo "$as_me:$LINENO: result: no" >&5
2947
echo "${ECHO_T}no" >&6; }
2951
test -n "$ac_ct_CC" && break
2954
if test "x$ac_ct_CC" = x; then
2957
case $cross_compiling:$ac_tool_warned in
2959
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2960
whose name does not start with the host triplet. If you think this
2961
configuration is useful to you, please write to autoconf@gnu.org." >&5
2962
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2963
whose name does not start with the host triplet. If you think this
2964
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2965
ac_tool_warned=yes ;;
2974
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2975
See \`config.log' for more details." >&5
2976
echo "$as_me: error: no acceptable C compiler found in \$PATH
2977
See \`config.log' for more details." >&2;}
2978
{ (exit 1); exit 1; }; }
2980
# Provide some information about the compiler.
2981
echo "$as_me:$LINENO: checking for C compiler version" >&5
2982
ac_compiler=`set X $ac_compile; echo $2`
2983
{ (ac_try="$ac_compiler --version >&5"
2985
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986
*) ac_try_echo=$ac_try;;
2988
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989
(eval "$ac_compiler --version >&5") 2>&5
2991
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992
(exit $ac_status); }
2993
{ (ac_try="$ac_compiler -v >&5"
2995
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996
*) ac_try_echo=$ac_try;;
2998
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999
(eval "$ac_compiler -v >&5") 2>&5
3001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002
(exit $ac_status); }
3003
{ (ac_try="$ac_compiler -V >&5"
3005
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006
*) ac_try_echo=$ac_try;;
3008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009
(eval "$ac_compiler -V >&5") 2>&5
3011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012
(exit $ac_status); }
3014
cat >conftest.$ac_ext <<_ACEOF
3017
cat confdefs.h >>conftest.$ac_ext
3018
cat >>conftest.$ac_ext <<_ACEOF
3019
/* end confdefs.h. */
3029
ac_clean_files_save=$ac_clean_files
3030
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3031
# Try to create an executable without -o first, disregard a.out.
3032
# It will help us diagnose broken compilers, and finding out an intuition
3034
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3035
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3036
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3038
# List of possible output files, starting from the most likely.
3039
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3040
# only as a last resort. b.out is created by i960 compilers.
3041
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3043
# The IRIX 6 linker writes into existing files which may not be
3044
# executable, retaining their permissions. Remove them first so a
3045
# subsequent execution test works.
3047
for ac_file in $ac_files
3050
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3051
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3056
if { (ac_try="$ac_link_default"
3058
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059
*) ac_try_echo=$ac_try;;
3061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062
(eval "$ac_link_default") 2>&5
3064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065
(exit $ac_status); }; then
3066
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3067
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3068
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3069
# so that the user can short-circuit this test for compilers unknown to
3071
for ac_file in $ac_files ''
3073
test -f "$ac_file" || continue
3075
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3078
# We found the default executable, but exeext='' is most
3082
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3084
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3086
# We set ac_cv_exeext here because the later test for it is not
3087
# safe: cross compilers may not add the suffix if given an `-o'
3088
# argument, so we may need to know it at that point already.
3089
# Even if this section looks crufty: it has the advantage of
3096
test "$ac_cv_exeext" = no && ac_cv_exeext=
3102
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3103
echo "${ECHO_T}$ac_file" >&6; }
3104
if test -z "$ac_file"; then
3105
echo "$as_me: failed program was:" >&5
3106
sed 's/^/| /' conftest.$ac_ext >&5
3108
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3109
See \`config.log' for more details." >&5
3110
echo "$as_me: error: C compiler cannot create executables
3111
See \`config.log' for more details." >&2;}
3112
{ (exit 77); exit 77; }; }
3115
ac_exeext=$ac_cv_exeext
3117
# Check that the compiler produces executables we can run. If not, either
3118
# the compiler is broken, or we cross compile.
3119
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3120
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3121
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3122
# If not cross compiling, check that we can run a simple program.
3123
if test "$cross_compiling" != yes; then
3124
if { ac_try='./$ac_file'
3125
{ (case "(($ac_try" in
3126
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127
*) ac_try_echo=$ac_try;;
3129
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130
(eval "$ac_try") 2>&5
3132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133
(exit $ac_status); }; }; then
3136
if test "$cross_compiling" = maybe; then
3139
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3140
If you meant to cross compile, use \`--host'.
3141
See \`config.log' for more details." >&5
3142
echo "$as_me: error: cannot run C compiled programs.
3143
If you meant to cross compile, use \`--host'.
3144
See \`config.log' for more details." >&2;}
3145
{ (exit 1); exit 1; }; }
3149
{ echo "$as_me:$LINENO: result: yes" >&5
3150
echo "${ECHO_T}yes" >&6; }
3152
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3153
ac_clean_files=$ac_clean_files_save
3154
# Check that the compiler produces executables we can run. If not, either
3155
# the compiler is broken, or we cross compile.
3156
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3157
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3158
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3159
echo "${ECHO_T}$cross_compiling" >&6; }
3161
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3162
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3163
if { (ac_try="$ac_link"
3165
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166
*) ac_try_echo=$ac_try;;
3168
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169
(eval "$ac_link") 2>&5
3171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172
(exit $ac_status); }; then
3173
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3174
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3175
# work properly (i.e., refer to `conftest.exe'), while it won't with
3177
for ac_file in conftest.exe conftest conftest.*; do
3178
test -f "$ac_file" || continue
3180
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3181
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3187
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3188
See \`config.log' for more details." >&5
3189
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3190
See \`config.log' for more details." >&2;}
3191
{ (exit 1); exit 1; }; }
3194
rm -f conftest$ac_cv_exeext
3195
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3196
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3198
rm -f conftest.$ac_ext
3199
EXEEXT=$ac_cv_exeext
3201
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3202
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3203
if test "${ac_cv_objext+set}" = set; then
3204
echo $ECHO_N "(cached) $ECHO_C" >&6
3206
cat >conftest.$ac_ext <<_ACEOF
3209
cat confdefs.h >>conftest.$ac_ext
3210
cat >>conftest.$ac_ext <<_ACEOF
3211
/* end confdefs.h. */
3221
rm -f conftest.o conftest.obj
3222
if { (ac_try="$ac_compile"
3224
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225
*) ac_try_echo=$ac_try;;
3227
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228
(eval "$ac_compile") 2>&5
3230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231
(exit $ac_status); }; then
3232
for ac_file in conftest.o conftest.obj conftest.*; do
3233
test -f "$ac_file" || continue;
3235
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3236
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3241
echo "$as_me: failed program was:" >&5
3242
sed 's/^/| /' conftest.$ac_ext >&5
3244
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3245
See \`config.log' for more details." >&5
3246
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3247
See \`config.log' for more details." >&2;}
3248
{ (exit 1); exit 1; }; }
3251
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3253
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3254
echo "${ECHO_T}$ac_cv_objext" >&6; }
3255
OBJEXT=$ac_cv_objext
3257
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3258
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3259
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3260
echo $ECHO_N "(cached) $ECHO_C" >&6
3262
cat >conftest.$ac_ext <<_ACEOF
3265
cat confdefs.h >>conftest.$ac_ext
3266
cat >>conftest.$ac_ext <<_ACEOF
3267
/* end confdefs.h. */
3280
rm -f conftest.$ac_objext
3281
if { (ac_try="$ac_compile"
3283
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284
*) ac_try_echo=$ac_try;;
3286
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287
(eval "$ac_compile") 2>conftest.er1
3289
grep -v '^ *+' conftest.er1 >conftest.err
3291
cat conftest.err >&5
3292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293
(exit $ac_status); } && {
3294
test -z "$ac_c_werror_flag" ||
3295
test ! -s conftest.err
3296
} && test -s conftest.$ac_objext; then
3299
echo "$as_me: failed program was:" >&5
3300
sed 's/^/| /' conftest.$ac_ext >&5
3305
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3309
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3310
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3311
GCC=`test $ac_compiler_gnu = yes && echo yes`
3312
ac_test_CFLAGS=${CFLAGS+set}
3313
ac_save_CFLAGS=$CFLAGS
3314
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3315
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3316
if test "${ac_cv_prog_cc_g+set}" = set; then
3317
echo $ECHO_N "(cached) $ECHO_C" >&6
3319
ac_save_c_werror_flag=$ac_c_werror_flag
3320
ac_c_werror_flag=yes
3323
cat >conftest.$ac_ext <<_ACEOF
3326
cat confdefs.h >>conftest.$ac_ext
3327
cat >>conftest.$ac_ext <<_ACEOF
3328
/* end confdefs.h. */
3338
rm -f conftest.$ac_objext
3339
if { (ac_try="$ac_compile"
3341
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342
*) ac_try_echo=$ac_try;;
3344
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345
(eval "$ac_compile") 2>conftest.er1
3347
grep -v '^ *+' conftest.er1 >conftest.err
3349
cat conftest.err >&5
3350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351
(exit $ac_status); } && {
3352
test -z "$ac_c_werror_flag" ||
3353
test ! -s conftest.err
3354
} && test -s conftest.$ac_objext; then
3357
echo "$as_me: failed program was:" >&5
3358
sed 's/^/| /' conftest.$ac_ext >&5
3361
cat >conftest.$ac_ext <<_ACEOF
3364
cat confdefs.h >>conftest.$ac_ext
3365
cat >>conftest.$ac_ext <<_ACEOF
3366
/* end confdefs.h. */
3376
rm -f conftest.$ac_objext
3377
if { (ac_try="$ac_compile"
3379
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380
*) ac_try_echo=$ac_try;;
3382
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383
(eval "$ac_compile") 2>conftest.er1
3385
grep -v '^ *+' conftest.er1 >conftest.err
3387
cat conftest.err >&5
3388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389
(exit $ac_status); } && {
3390
test -z "$ac_c_werror_flag" ||
3391
test ! -s conftest.err
3392
} && test -s conftest.$ac_objext; then
3395
echo "$as_me: failed program was:" >&5
3396
sed 's/^/| /' conftest.$ac_ext >&5
3398
ac_c_werror_flag=$ac_save_c_werror_flag
3400
cat >conftest.$ac_ext <<_ACEOF
3403
cat confdefs.h >>conftest.$ac_ext
3404
cat >>conftest.$ac_ext <<_ACEOF
3405
/* end confdefs.h. */
3415
rm -f conftest.$ac_objext
3416
if { (ac_try="$ac_compile"
3418
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419
*) ac_try_echo=$ac_try;;
3421
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422
(eval "$ac_compile") 2>conftest.er1
3424
grep -v '^ *+' conftest.er1 >conftest.err
3426
cat conftest.err >&5
3427
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428
(exit $ac_status); } && {
3429
test -z "$ac_c_werror_flag" ||
3430
test ! -s conftest.err
3431
} && test -s conftest.$ac_objext; then
3434
echo "$as_me: failed program was:" >&5
3435
sed 's/^/| /' conftest.$ac_ext >&5
3440
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447
ac_c_werror_flag=$ac_save_c_werror_flag
3449
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3450
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3451
if test "$ac_test_CFLAGS" = set; then
3452
CFLAGS=$ac_save_CFLAGS
3453
elif test $ac_cv_prog_cc_g = yes; then
3454
if test "$GCC" = yes; then
3460
if test "$GCC" = yes; then
3466
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3467
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3468
if test "${ac_cv_prog_cc_c89+set}" = set; then
3469
echo $ECHO_N "(cached) $ECHO_C" >&6
3471
ac_cv_prog_cc_c89=no
3473
cat >conftest.$ac_ext <<_ACEOF
3476
cat confdefs.h >>conftest.$ac_ext
3477
cat >>conftest.$ac_ext <<_ACEOF
3478
/* end confdefs.h. */
3481
#include <sys/types.h>
3482
#include <sys/stat.h>
3483
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3484
struct buf { int x; };
3485
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3486
static char *e (p, i)
3492
static char *f (char * (*g) (char **, int), char **p, ...)
3497
s = g (p, va_arg (v,int));
3502
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3503
function prototypes and stuff, but not '\xHH' hex character constants.
3504
These don't provoke an error unfortunately, instead are silently treated
3505
as 'x'. The following induces an error, until -std is added to get
3506
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3507
array size at least. It's necessary to write '\x00'==0 to get something
3508
that's true only with -std. */
3509
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3511
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3512
inside strings and character constants. */
3514
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3516
int test (int i, double x);
3517
struct s1 {int (*f) (int a);};
3518
struct s2 {int (*f) (double a);};
3519
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3525
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3530
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3531
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3533
CC="$ac_save_CC $ac_arg"
3534
rm -f conftest.$ac_objext
3535
if { (ac_try="$ac_compile"
3537
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538
*) ac_try_echo=$ac_try;;
3540
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541
(eval "$ac_compile") 2>conftest.er1
3543
grep -v '^ *+' conftest.er1 >conftest.err
3545
cat conftest.err >&5
3546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547
(exit $ac_status); } && {
3548
test -z "$ac_c_werror_flag" ||
3549
test ! -s conftest.err
3550
} && test -s conftest.$ac_objext; then
3551
ac_cv_prog_cc_c89=$ac_arg
3553
echo "$as_me: failed program was:" >&5
3554
sed 's/^/| /' conftest.$ac_ext >&5
3559
rm -f core conftest.err conftest.$ac_objext
3560
test "x$ac_cv_prog_cc_c89" != "xno" && break
3562
rm -f conftest.$ac_ext
3567
case "x$ac_cv_prog_cc_c89" in
3569
{ echo "$as_me:$LINENO: result: none needed" >&5
3570
echo "${ECHO_T}none needed" >&6; } ;;
3572
{ echo "$as_me:$LINENO: result: unsupported" >&5
3573
echo "${ECHO_T}unsupported" >&6; } ;;
3575
CC="$CC $ac_cv_prog_cc_c89"
3576
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3577
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3582
ac_cpp='$CPP $CPPFLAGS'
3583
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586
DEPDIR="${am__leading_dot}deps"
3588
ac_config_commands="$ac_config_commands depfiles"
3591
am_make=${MAKE-make}
3592
cat > confinc << 'END'
3597
# If we don't find an include directive, just comment out the code.
3598
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3599
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3603
# First try GNU make style include.
3604
echo "include confinc" > confmf
3605
# We grep out `Entering directory' and `Leaving directory'
3606
# messages which can occur if `w' ends up in MAKEFLAGS.
3607
# In particular we don't look at `^make:' because GNU make might
3608
# be invoked under some other name (usually "gmake"), in which
3609
# case it prints its new name instead of `make'.
3610
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3615
# Now try BSD make style include.
3616
if test "$am__include" = "#"; then
3617
echo '.include "confinc"' > confmf
3618
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3619
am__include=.include
3626
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3627
echo "${ECHO_T}$_am_result" >&6; }
3628
rm -f confinc confmf
3630
# Check whether --enable-dependency-tracking was given.
3631
if test "${enable_dependency_tracking+set}" = set; then
3632
enableval=$enable_dependency_tracking;
3635
if test "x$enable_dependency_tracking" != xno; then
3636
am_depcomp="$ac_aux_dir/depcomp"
3641
if test "x$enable_dependency_tracking" != xno; then
3652
depcc="$CC" am_compiler_list=
3654
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3655
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3656
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3657
echo $ECHO_N "(cached) $ECHO_C" >&6
3659
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3660
# We make a subdir and do the tests there. Otherwise we can end up
3661
# making bogus files that we don't know about and never remove. For
3662
# instance it was reported that on HP-UX the gcc test will end up
3663
# making a dummy file named `D' -- because `-MD' means `put the output
3666
# Copy depcomp to subdir because otherwise we won't find it if we're
3667
# using a relative directory.
3668
cp "$am_depcomp" conftest.dir
3670
# We will build objects and dependencies in a subdirectory because
3671
# it helps to detect inapplicable dependency modes. For instance
3672
# both Tru64's cc and ICC support -MD to output dependencies as a
3673
# side effect of compilation, but ICC will put the dependencies in
3674
# the current directory while Tru64 will put them in the object
3678
am_cv_CC_dependencies_compiler_type=none
3679
if test "$am_compiler_list" = ""; then
3680
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3682
for depmode in $am_compiler_list; do
3683
# Setup a source with many dependencies, because some compilers
3684
# like to wrap large dependency lists on column 80 (with \), and
3685
# we should not choose a depcomp mode which is confused by this.
3687
# We need to recreate these files for each test, as the compiler may
3688
# overwrite some of them when testing with obscure command lines.
3689
# This happens at least with the AIX C compiler.
3691
for i in 1 2 3 4 5 6; do
3692
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3693
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3694
# Solaris 8's {/usr,}/bin/sh.
3695
touch sub/conftst$i.h
3697
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3701
# after this tag, mechanisms are not by side-effect, so they'll
3702
# only be used when explicitly requested
3703
if test "x$enable_dependency_tracking" = xyes; then
3711
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3712
# mode. It turns out that the SunPro C++ compiler does not properly
3713
# handle `-M -o', and we need to detect this.
3714
if depmode=$depmode \
3715
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3716
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3717
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3718
>/dev/null 2>conftest.err &&
3719
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3720
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3721
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3722
# icc doesn't choke on unknown options, it will just issue warnings
3723
# or remarks (even with -Werror). So we grep stderr for any message
3724
# that says an option was ignored or not supported.
3725
# When given -MP, icc 7.0 and 7.1 complain thusly:
3726
# icc: Command line warning: ignoring option '-M'; no argument required
3727
# The diagnosis changed in icc 8.0:
3728
# icc: Command line remark: option '-MP' not supported
3729
if (grep 'ignoring option' conftest.err ||
3730
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3731
am_cv_CC_dependencies_compiler_type=$depmode
3740
am_cv_CC_dependencies_compiler_type=none
3744
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3745
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3746
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3751
test "x$enable_dependency_tracking" != xno \
3752
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3754
am__fastdepCC_FALSE='#'
3756
am__fastdepCC_TRUE='#'
3757
am__fastdepCC_FALSE=
3762
ac_cpp='$CPP $CPPFLAGS'
3763
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3767
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3768
# On Suns, sometimes $CPP names a directory.
3769
if test -n "$CPP" && test -d "$CPP"; then
3772
if test -z "$CPP"; then
3773
if test "${ac_cv_prog_CPP+set}" = set; then
3774
echo $ECHO_N "(cached) $ECHO_C" >&6
3776
# Double quotes because CPP needs to be expanded
3777
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3780
for ac_c_preproc_warn_flag in '' yes
3782
# Use a header file that comes with gcc, so configuring glibc
3783
# with a fresh cross-compiler works.
3784
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3785
# <limits.h> exists even on freestanding compilers.
3786
# On the NeXT, cc -E runs the code through the compiler's parser,
3787
# not just through cpp. "Syntax error" is here to catch this case.
3788
cat >conftest.$ac_ext <<_ACEOF
3791
cat confdefs.h >>conftest.$ac_ext
3792
cat >>conftest.$ac_ext <<_ACEOF
3793
/* end confdefs.h. */
3795
@%:@ include <limits.h>
3797
@%:@ include <assert.h>
3801
if { (ac_try="$ac_cpp conftest.$ac_ext"
3803
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804
*) ac_try_echo=$ac_try;;
3806
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3809
grep -v '^ *+' conftest.er1 >conftest.err
3811
cat conftest.err >&5
3812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813
(exit $ac_status); } >/dev/null && {
3814
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3815
test ! -s conftest.err
3819
echo "$as_me: failed program was:" >&5
3820
sed 's/^/| /' conftest.$ac_ext >&5
3822
# Broken: fails on valid input.
3826
rm -f conftest.err conftest.$ac_ext
3828
# OK, works on sane cases. Now check whether nonexistent headers
3829
# can be detected and how.
3830
cat >conftest.$ac_ext <<_ACEOF
3833
cat confdefs.h >>conftest.$ac_ext
3834
cat >>conftest.$ac_ext <<_ACEOF
3835
/* end confdefs.h. */
3836
@%:@include <ac_nonexistent.h>
3838
if { (ac_try="$ac_cpp conftest.$ac_ext"
3840
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841
*) ac_try_echo=$ac_try;;
3843
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3846
grep -v '^ *+' conftest.er1 >conftest.err
3848
cat conftest.err >&5
3849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850
(exit $ac_status); } >/dev/null && {
3851
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3852
test ! -s conftest.err
3854
# Broken: success on invalid input.
3857
echo "$as_me: failed program was:" >&5
3858
sed 's/^/| /' conftest.$ac_ext >&5
3860
# Passes both tests.
3865
rm -f conftest.err conftest.$ac_ext
3868
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3869
rm -f conftest.err conftest.$ac_ext
3870
if $ac_preproc_ok; then
3882
{ echo "$as_me:$LINENO: result: $CPP" >&5
3883
echo "${ECHO_T}$CPP" >&6; }
3885
for ac_c_preproc_warn_flag in '' yes
3887
# Use a header file that comes with gcc, so configuring glibc
3888
# with a fresh cross-compiler works.
3889
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3890
# <limits.h> exists even on freestanding compilers.
3891
# On the NeXT, cc -E runs the code through the compiler's parser,
3892
# not just through cpp. "Syntax error" is here to catch this case.
3893
cat >conftest.$ac_ext <<_ACEOF
3896
cat confdefs.h >>conftest.$ac_ext
3897
cat >>conftest.$ac_ext <<_ACEOF
3898
/* end confdefs.h. */
3900
@%:@ include <limits.h>
3902
@%:@ include <assert.h>
3906
if { (ac_try="$ac_cpp conftest.$ac_ext"
3908
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909
*) ac_try_echo=$ac_try;;
3911
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3914
grep -v '^ *+' conftest.er1 >conftest.err
3916
cat conftest.err >&5
3917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918
(exit $ac_status); } >/dev/null && {
3919
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3920
test ! -s conftest.err
3924
echo "$as_me: failed program was:" >&5
3925
sed 's/^/| /' conftest.$ac_ext >&5
3927
# Broken: fails on valid input.
3931
rm -f conftest.err conftest.$ac_ext
3933
# OK, works on sane cases. Now check whether nonexistent headers
3934
# can be detected and how.
3935
cat >conftest.$ac_ext <<_ACEOF
3938
cat confdefs.h >>conftest.$ac_ext
3939
cat >>conftest.$ac_ext <<_ACEOF
3940
/* end confdefs.h. */
3941
@%:@include <ac_nonexistent.h>
3943
if { (ac_try="$ac_cpp conftest.$ac_ext"
3945
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946
*) ac_try_echo=$ac_try;;
3948
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3951
grep -v '^ *+' conftest.er1 >conftest.err
3953
cat conftest.err >&5
3954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955
(exit $ac_status); } >/dev/null && {
3956
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3957
test ! -s conftest.err
3959
# Broken: success on invalid input.
3962
echo "$as_me: failed program was:" >&5
3963
sed 's/^/| /' conftest.$ac_ext >&5
3965
# Passes both tests.
3970
rm -f conftest.err conftest.$ac_ext
3973
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974
rm -f conftest.err conftest.$ac_ext
3975
if $ac_preproc_ok; then
3978
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3979
See \`config.log' for more details." >&5
3980
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3981
See \`config.log' for more details." >&2;}
3982
{ (exit 1); exit 1; }; }
3986
ac_cpp='$CPP $CPPFLAGS'
3987
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991
# Find a good install program. We prefer a C program (faster),
3992
# so one script is as good as another. But avoid the broken or
3993
# incompatible versions:
3994
# SysV /etc/install, /usr/sbin/install
3995
# SunOS /usr/etc/install
3996
# IRIX /sbin/install
3998
# AmigaOS /C/install, which installs bootblocks on floppy discs
3999
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4000
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4001
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4002
# OS/2's system install, which has a completely different semantic
4003
# ./install, which can be erroneously created by make from ./install.sh.
4004
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4005
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4006
if test -z "$INSTALL"; then
4007
if test "${ac_cv_path_install+set}" = set; then
4008
echo $ECHO_N "(cached) $ECHO_C" >&6
4010
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014
test -z "$as_dir" && as_dir=.
4015
# Account for people who put trailing slashes in PATH elements.
4017
./ | .// | /cC/* | \
4018
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4019
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4022
# OSF1 and SCO ODT 3.0 have their own names for install.
4023
# Don't use installbsd from OSF since it installs stuff as root
4025
for ac_prog in ginstall scoinst install; do
4026
for ac_exec_ext in '' $ac_executable_extensions; do
4027
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4028
if test $ac_prog = install &&
4029
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4030
# AIX install. It has an incompatible calling convention.
4032
elif test $ac_prog = install &&
4033
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4034
# program-specific install script used by HP pwplus--don't use.
4037
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4050
if test "${ac_cv_path_install+set}" = set; then
4051
INSTALL=$ac_cv_path_install
4053
# As a last resort, use the slow shell script. Don't cache a
4054
# value for INSTALL within a source directory, because that will
4055
# break other packages using the cache if that directory is
4056
# removed, or if the value is a relative name.
4057
INSTALL=$ac_install_sh
4060
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4061
echo "${ECHO_T}$INSTALL" >&6; }
4063
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4064
# It thinks the first close brace ends the variable substitution.
4065
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4067
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4069
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4071
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4072
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4074
if test "$LN_S" = "ln -s"; then
4075
{ echo "$as_me:$LINENO: result: yes" >&5
4076
echo "${ECHO_T}yes" >&6; }
4078
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4079
echo "${ECHO_T}no, using $LN_S" >&6; }
4082
if test -n "$ac_tool_prefix"; then
4083
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4084
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4085
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4086
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4087
if test "${ac_cv_prog_RANLIB+set}" = set; then
4088
echo $ECHO_N "(cached) $ECHO_C" >&6
4090
if test -n "$RANLIB"; then
4091
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4093
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097
test -z "$as_dir" && as_dir=.
4098
for ac_exec_ext in '' $ac_executable_extensions; do
4099
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4101
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110
RANLIB=$ac_cv_prog_RANLIB
4111
if test -n "$RANLIB"; then
4112
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
4113
echo "${ECHO_T}$RANLIB" >&6; }
4115
{ echo "$as_me:$LINENO: result: no" >&5
4116
echo "${ECHO_T}no" >&6; }
4121
if test -z "$ac_cv_prog_RANLIB"; then
4122
ac_ct_RANLIB=$RANLIB
4123
# Extract the first word of "ranlib", so it can be a program name with args.
4124
set dummy ranlib; ac_word=$2
4125
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4126
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4127
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4128
echo $ECHO_N "(cached) $ECHO_C" >&6
4130
if test -n "$ac_ct_RANLIB"; then
4131
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137
test -z "$as_dir" && as_dir=.
4138
for ac_exec_ext in '' $ac_executable_extensions; do
4139
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4140
ac_cv_prog_ac_ct_RANLIB="ranlib"
4141
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4150
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4151
if test -n "$ac_ct_RANLIB"; then
4152
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4153
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4155
{ echo "$as_me:$LINENO: result: no" >&5
4156
echo "${ECHO_T}no" >&6; }
4159
if test "x$ac_ct_RANLIB" = x; then
4162
case $cross_compiling:$ac_tool_warned in
4164
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4165
whose name does not start with the host triplet. If you think this
4166
configuration is useful to you, please write to autoconf@gnu.org." >&5
4167
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4168
whose name does not start with the host triplet. If you think this
4169
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4170
ac_tool_warned=yes ;;
4172
RANLIB=$ac_ct_RANLIB
4175
RANLIB="$ac_cv_prog_RANLIB"
4179
# Check whether --enable-shared was given.
4180
if test "${enable_shared+set}" = set; then
4181
enableval=$enable_shared; p=${PACKAGE-default}
4183
yes) enable_shared=yes ;;
4184
no) enable_shared=no ;;
4187
# Look at the argument we got. We use all the common list separators.
4188
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4189
for pkg in $enableval; do
4191
if test "X$pkg" = "X$p"; then
4204
# Check whether --enable-static was given.
4205
if test "${enable_static+set}" = set; then
4206
enableval=$enable_static; p=${PACKAGE-default}
4208
yes) enable_static=yes ;;
4209
no) enable_static=no ;;
4212
# Look at the argument we got. We use all the common list separators.
4213
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4214
for pkg in $enableval; do
4216
if test "X$pkg" = "X$p"; then
4228
# Check whether --enable-fast-install was given.
4229
if test "${enable_fast_install+set}" = set; then
4230
enableval=$enable_fast_install; p=${PACKAGE-default}
4232
yes) enable_fast_install=yes ;;
4233
no) enable_fast_install=no ;;
4235
enable_fast_install=no
4236
# Look at the argument we got. We use all the common list separators.
4237
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4238
for pkg in $enableval; do
4240
if test "X$pkg" = "X$p"; then
4241
enable_fast_install=yes
4248
enable_fast_install=yes
4252
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4253
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4254
if test "${lt_cv_path_SED+set}" = set; then
4255
echo $ECHO_N "(cached) $ECHO_C" >&6
4257
# Loop through the user's path and test for sed and gsed.
4258
# Then use that list of sed's as ones to test for truncation.
4259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263
test -z "$as_dir" && as_dir=.
4264
for lt_ac_prog in sed gsed; do
4265
for ac_exec_ext in '' $ac_executable_extensions; do
4266
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4267
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4274
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4275
# along with /bin/sed that truncates output.
4276
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4277
test ! -f $lt_ac_sed && break
4278
cat /dev/null > conftest.in
4280
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4281
# Check for GNU sed and select it if it is found.
4282
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4283
lt_cv_path_SED=$lt_ac_sed
4287
cat conftest.in conftest.in >conftest.tmp
4288
mv conftest.tmp conftest.in
4289
cp conftest.in conftest.nl
4291
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4292
cmp -s conftest.out conftest.nl || break
4293
# 10000 chars as input seems more than enough
4294
test $lt_ac_count -gt 10 && break
4295
lt_ac_count=`expr $lt_ac_count + 1`
4296
if test $lt_ac_count -gt $lt_ac_max; then
4297
lt_ac_max=$lt_ac_count
4298
lt_cv_path_SED=$lt_ac_sed
4306
{ echo "$as_me:$LINENO: result: $SED" >&5
4307
echo "${ECHO_T}$SED" >&6; }
4309
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4310
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4311
if test "${ac_cv_path_GREP+set}" = set; then
4312
echo $ECHO_N "(cached) $ECHO_C" >&6
4314
# Extract the first word of "grep ggrep" to use in msg output
4315
if test -z "$GREP"; then
4316
set dummy grep ggrep; ac_prog_name=$2
4317
if test "${ac_cv_path_GREP+set}" = set; then
4318
echo $ECHO_N "(cached) $ECHO_C" >&6
4320
ac_path_GREP_found=false
4321
# Loop through the user's path and test for each of PROGNAME-LIST
4322
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4326
test -z "$as_dir" && as_dir=.
4327
for ac_prog in grep ggrep; do
4328
for ac_exec_ext in '' $ac_executable_extensions; do
4329
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4330
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4331
# Check for GNU ac_path_GREP and select it if it is found.
4332
# Check for GNU $ac_path_GREP
4333
case `"$ac_path_GREP" --version 2>&1` in
4335
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4338
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4341
cat "conftest.in" "conftest.in" >"conftest.tmp"
4342
mv "conftest.tmp" "conftest.in"
4343
cp "conftest.in" "conftest.nl"
4344
echo 'GREP' >> "conftest.nl"
4345
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4346
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4347
ac_count=`expr $ac_count + 1`
4348
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4349
# Best one so far, save it but keep looking for a better one
4350
ac_cv_path_GREP="$ac_path_GREP"
4351
ac_path_GREP_max=$ac_count
4353
# 10*(2^10) chars as input seems more than enough
4354
test $ac_count -gt 10 && break
4356
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4360
$ac_path_GREP_found && break 3
4370
GREP="$ac_cv_path_GREP"
4371
if test -z "$GREP"; then
4372
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4373
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4374
{ (exit 1); exit 1; }; }
4378
ac_cv_path_GREP=$GREP
4383
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4384
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4385
GREP="$ac_cv_path_GREP"
4388
{ echo "$as_me:$LINENO: checking for egrep" >&5
4389
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4390
if test "${ac_cv_path_EGREP+set}" = set; then
4391
echo $ECHO_N "(cached) $ECHO_C" >&6
4393
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4394
then ac_cv_path_EGREP="$GREP -E"
4396
# Extract the first word of "egrep" to use in msg output
4397
if test -z "$EGREP"; then
4398
set dummy egrep; ac_prog_name=$2
4399
if test "${ac_cv_path_EGREP+set}" = set; then
4400
echo $ECHO_N "(cached) $ECHO_C" >&6
4402
ac_path_EGREP_found=false
4403
# Loop through the user's path and test for each of PROGNAME-LIST
4404
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4408
test -z "$as_dir" && as_dir=.
4409
for ac_prog in egrep; do
4410
for ac_exec_ext in '' $ac_executable_extensions; do
4411
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4412
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4413
# Check for GNU ac_path_EGREP and select it if it is found.
4414
# Check for GNU $ac_path_EGREP
4415
case `"$ac_path_EGREP" --version 2>&1` in
4417
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4420
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4423
cat "conftest.in" "conftest.in" >"conftest.tmp"
4424
mv "conftest.tmp" "conftest.in"
4425
cp "conftest.in" "conftest.nl"
4426
echo 'EGREP' >> "conftest.nl"
4427
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4428
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4429
ac_count=`expr $ac_count + 1`
4430
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4431
# Best one so far, save it but keep looking for a better one
4432
ac_cv_path_EGREP="$ac_path_EGREP"
4433
ac_path_EGREP_max=$ac_count
4435
# 10*(2^10) chars as input seems more than enough
4436
test $ac_count -gt 10 && break
4438
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4442
$ac_path_EGREP_found && break 3
4452
EGREP="$ac_cv_path_EGREP"
4453
if test -z "$EGREP"; then
4454
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4455
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4456
{ (exit 1); exit 1; }; }
4460
ac_cv_path_EGREP=$EGREP
4466
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4467
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4468
EGREP="$ac_cv_path_EGREP"
4472
# Check whether --with-gnu-ld was given.
4473
if test "${with_gnu_ld+set}" = set; then
4474
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4480
if test "$GCC" = yes; then
4481
# Check if gcc -print-prog-name=ld gives a path.
4482
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4483
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4486
# gcc leaves a trailing carriage return which upsets mingw
4487
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4489
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4492
# Accept absolute paths.
4494
re_direlt='/[^/][^/]*/\.\./'
4495
# Canonicalize the pathname of ld
4496
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4497
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4498
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4500
test -z "$LD" && LD="$ac_prog"
4503
# If it fails, then pretend we aren't using GCC.
4507
# If it is relative, then search for the first ld in PATH.
4511
elif test "$with_gnu_ld" = yes; then
4512
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
4513
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4515
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4516
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4518
if test "${lt_cv_path_LD+set}" = set; then
4519
echo $ECHO_N "(cached) $ECHO_C" >&6
4521
if test -z "$LD"; then
4522
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4523
for ac_dir in $PATH; do
4525
test -z "$ac_dir" && ac_dir=.
4526
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4527
lt_cv_path_LD="$ac_dir/$ac_prog"
4528
# Check to see if the program is GNU ld. I'd rather use --version,
4529
# but apparently some GNU ld's only accept -v.
4530
# Break only if it was the GNU/non-GNU ld that we prefer.
4531
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4532
*GNU* | *'with BFD'*)
4533
test "$with_gnu_ld" != no && break
4536
test "$with_gnu_ld" != yes && break
4543
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4548
if test -n "$LD"; then
4549
{ echo "$as_me:$LINENO: result: $LD" >&5
4550
echo "${ECHO_T}$LD" >&6; }
4552
{ echo "$as_me:$LINENO: result: no" >&5
4553
echo "${ECHO_T}no" >&6; }
4555
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4556
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4557
{ (exit 1); exit 1; }; }
4558
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4559
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4560
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4561
echo $ECHO_N "(cached) $ECHO_C" >&6
4563
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
4564
case `$LD -v 2>&1 </dev/null` in
4565
*GNU* | *'with BFD'*)
4566
lt_cv_prog_gnu_ld=yes
4569
lt_cv_prog_gnu_ld=no
4573
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4574
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4575
with_gnu_ld=$lt_cv_prog_gnu_ld
4578
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4579
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4580
if test "${lt_cv_ld_reload_flag+set}" = set; then
4581
echo $ECHO_N "(cached) $ECHO_C" >&6
4583
lt_cv_ld_reload_flag='-r'
4585
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4586
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4587
reload_flag=$lt_cv_ld_reload_flag
4588
case $reload_flag in
4590
*) reload_flag=" $reload_flag" ;;
4592
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4594
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4595
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4596
if test "${lt_cv_path_NM+set}" = set; then
4597
echo $ECHO_N "(cached) $ECHO_C" >&6
4599
if test -n "$NM"; then
4600
# Let the user override the test.
4603
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4604
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4606
test -z "$ac_dir" && ac_dir=.
4607
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4608
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4609
# Check to see if the nm accepts a BSD-compat flag.
4610
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4611
# nm: unknown option "B" ignored
4612
# Tru64's nm complains that /dev/null is an invalid object file
4613
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4614
*/dev/null* | *'Invalid file or object type'*)
4615
lt_cv_path_NM="$tmp_nm -B"
4619
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4621
lt_cv_path_NM="$tmp_nm -p"
4625
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4626
continue # so that we can try to find one that supports BSD flags
4633
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4636
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4637
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4640
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4641
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4642
if test "${lt_cv_deplibs_check_method+set}" = set; then
4643
echo $ECHO_N "(cached) $ECHO_C" >&6
4645
lt_cv_file_magic_cmd='$MAGIC_CMD'
4646
lt_cv_file_magic_test_file=
4647
lt_cv_deplibs_check_method='unknown'
4648
# Need to set the preceding variable on all platforms that support
4649
# interlibrary dependencies.
4650
# 'none' -- dependencies not supported.
4651
# `unknown' -- same as none, but documents that we really don't know.
4652
# 'pass_all' -- all dependencies passed with no checks.
4653
# 'test_compile' -- check by making test program.
4654
# 'file_magic [[regex]]' -- check by looking for files in library path
4655
# which responds to the $file_magic_cmd with a given extended regex.
4656
# If you have `file' or equivalent on your system and you're not sure
4657
# whether `pass_all' will *always* work, you probably want this one.
4661
lt_cv_deplibs_check_method=pass_all
4665
lt_cv_deplibs_check_method=pass_all
4669
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4670
lt_cv_file_magic_cmd='/usr/bin/file -L'
4671
lt_cv_file_magic_test_file=/shlib/libc.so
4675
# func_win32_libid is a shell function defined in ltmain.sh
4676
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4677
lt_cv_file_magic_cmd='func_win32_libid'
4681
# Base MSYS/MinGW do not provide the 'file' command needed by
4682
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
4683
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4684
lt_cv_file_magic_cmd='$OBJDUMP -f'
4687
darwin* | rhapsody*)
4688
lt_cv_deplibs_check_method=pass_all
4691
freebsd* | kfreebsd*-gnu)
4692
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4695
# Not sure whether the presence of OpenBSD here was a mistake.
4696
# Let's accept both of them until this is cleared up.
4697
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4698
lt_cv_file_magic_cmd=/usr/bin/file
4699
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4703
lt_cv_deplibs_check_method=pass_all
4708
lt_cv_deplibs_check_method=pass_all
4711
hpux10.20* | hpux11*)
4712
lt_cv_file_magic_cmd=/usr/bin/file
4715
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4716
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4719
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]'
4720
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4723
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4724
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4729
irix5* | irix6* | nonstopux*)
4731
*-32|*"-32 ") libmagic=32-bit;;
4732
*-n32|*"-n32 ") libmagic=N32;;
4733
*-64|*"-64 ") libmagic=64-bit;;
4734
*) libmagic=never-match;;
4736
lt_cv_deplibs_check_method=pass_all
4739
# This must be Linux ELF.
4741
lt_cv_deplibs_check_method=pass_all
4744
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4745
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4746
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4748
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4753
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4754
lt_cv_file_magic_cmd=/usr/bin/file
4755
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4759
lt_cv_deplibs_check_method=unknown
4763
lt_cv_file_magic_cmd=/usr/bin/file
4764
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4765
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4766
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4768
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4772
osf3* | osf4* | osf5*)
4773
lt_cv_deplibs_check_method=pass_all
4777
lt_cv_deplibs_check_method=pass_all
4781
lt_cv_deplibs_check_method=pass_all
4784
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4785
case $host_vendor in
4787
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]'
4788
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4791
lt_cv_deplibs_check_method=pass_all
4794
lt_cv_file_magic_cmd='/bin/file'
4795
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4798
lt_cv_file_magic_cmd='/bin/file'
4799
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4800
lt_cv_file_magic_test_file=/lib/libc.so
4803
lt_cv_deplibs_check_method=pass_all
4808
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4809
lt_cv_deplibs_check_method=pass_all
4814
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4815
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4816
file_magic_cmd=$lt_cv_file_magic_cmd
4817
deplibs_check_method=$lt_cv_deplibs_check_method
4818
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4823
# If no C compiler was specified, use CC.
4826
# Allow CC to be a program name with arguments.
4830
# Check whether --enable-libtool-lock was given.
4831
if test "${enable_libtool_lock+set}" = set; then
4832
enableval=$enable_libtool_lock;
4835
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4837
# Some flags need to be propagated to the compiler or linker for good
4841
# Find out which ABI we are using.
4842
echo 'int i;' > conftest.$ac_ext
4843
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4844
(eval $ac_compile) 2>&5
4846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847
(exit $ac_status); }; then
4848
case `/usr/bin/file conftest.$ac_objext` in
4860
# Find out which ABI we are using.
4861
echo '#line __oline__ "configure"' > conftest.$ac_ext
4862
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863
(eval $ac_compile) 2>&5
4865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866
(exit $ac_status); }; then
4867
if test "$lt_cv_prog_gnu_ld" = yes; then
4868
case `/usr/bin/file conftest.$ac_objext` in
4870
LD="${LD-ld} -melf32bsmip"
4873
LD="${LD-ld} -melf32bmipn32"
4876
LD="${LD-ld} -melf64bmip"
4880
case `/usr/bin/file conftest.$ac_objext` in
4896
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4897
# Find out which ABI we are using.
4898
echo 'int i;' > conftest.$ac_ext
4899
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900
(eval $ac_compile) 2>&5
4902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903
(exit $ac_status); }; then
4904
case "`/usr/bin/file conftest.o`" in
4908
LD="${LD-ld} -m elf_i386"
4910
ppc64-*linux*|powerpc64-*linux*)
4911
LD="${LD-ld} -m elf32ppclinux"
4914
LD="${LD-ld} -m elf_s390"
4917
LD="${LD-ld} -m elf32_sparc"
4924
LD="${LD-ld} -m elf_x86_64"
4926
ppc*-*linux*|powerpc*-*linux*)
4927
LD="${LD-ld} -m elf64ppc"
4930
LD="${LD-ld} -m elf64_s390"
4933
LD="${LD-ld} -m elf64_sparc"
4943
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4944
SAVE_CFLAGS="$CFLAGS"
4945
CFLAGS="$CFLAGS -belf"
4946
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4947
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4948
if test "${lt_cv_cc_needs_belf+set}" = set; then
4949
echo $ECHO_N "(cached) $ECHO_C" >&6
4952
ac_cpp='$CPP $CPPFLAGS'
4953
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4954
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4955
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4957
cat >conftest.$ac_ext <<_ACEOF
4960
cat confdefs.h >>conftest.$ac_ext
4961
cat >>conftest.$ac_ext <<_ACEOF
4962
/* end confdefs.h. */
4972
rm -f conftest.$ac_objext conftest$ac_exeext
4973
if { (ac_try="$ac_link"
4975
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976
*) ac_try_echo=$ac_try;;
4978
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4979
(eval "$ac_link") 2>conftest.er1
4981
grep -v '^ *+' conftest.er1 >conftest.err
4983
cat conftest.err >&5
4984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985
(exit $ac_status); } && {
4986
test -z "$ac_c_werror_flag" ||
4987
test ! -s conftest.err
4988
} && test -s conftest$ac_exeext &&
4989
$as_test_x conftest$ac_exeext; then
4990
lt_cv_cc_needs_belf=yes
4992
echo "$as_me: failed program was:" >&5
4993
sed 's/^/| /' conftest.$ac_ext >&5
4995
lt_cv_cc_needs_belf=no
4998
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4999
conftest$ac_exeext conftest.$ac_ext
5001
ac_cpp='$CPP $CPPFLAGS'
5002
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5008
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5009
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5010
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5011
CFLAGS="$SAVE_CFLAGS"
5017
need_locks="$enable_libtool_lock"
5021
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5022
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5023
if test "${ac_cv_header_stdc+set}" = set; then
5024
echo $ECHO_N "(cached) $ECHO_C" >&6
5026
cat >conftest.$ac_ext <<_ACEOF
5029
cat confdefs.h >>conftest.$ac_ext
5030
cat >>conftest.$ac_ext <<_ACEOF
5031
/* end confdefs.h. */
5045
rm -f conftest.$ac_objext
5046
if { (ac_try="$ac_compile"
5048
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049
*) ac_try_echo=$ac_try;;
5051
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052
(eval "$ac_compile") 2>conftest.er1
5054
grep -v '^ *+' conftest.er1 >conftest.err
5056
cat conftest.err >&5
5057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058
(exit $ac_status); } && {
5059
test -z "$ac_c_werror_flag" ||
5060
test ! -s conftest.err
5061
} && test -s conftest.$ac_objext; then
5062
ac_cv_header_stdc=yes
5064
echo "$as_me: failed program was:" >&5
5065
sed 's/^/| /' conftest.$ac_ext >&5
5067
ac_cv_header_stdc=no
5070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072
if test $ac_cv_header_stdc = yes; then
5073
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5074
cat >conftest.$ac_ext <<_ACEOF
5077
cat confdefs.h >>conftest.$ac_ext
5078
cat >>conftest.$ac_ext <<_ACEOF
5079
/* end confdefs.h. */
5083
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5084
$EGREP "memchr" >/dev/null 2>&1; then
5087
ac_cv_header_stdc=no
5093
if test $ac_cv_header_stdc = yes; then
5094
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5095
cat >conftest.$ac_ext <<_ACEOF
5098
cat confdefs.h >>conftest.$ac_ext
5099
cat >>conftest.$ac_ext <<_ACEOF
5100
/* end confdefs.h. */
5104
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5105
$EGREP "free" >/dev/null 2>&1; then
5108
ac_cv_header_stdc=no
5114
if test $ac_cv_header_stdc = yes; then
5115
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5116
if test "$cross_compiling" = yes; then
5119
cat >conftest.$ac_ext <<_ACEOF
5122
cat confdefs.h >>conftest.$ac_ext
5123
cat >>conftest.$ac_ext <<_ACEOF
5124
/* end confdefs.h. */
5127
#if ((' ' & 0x0FF) == 0x020)
5128
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5129
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5131
# define ISLOWER(c) \
5132
(('a' <= (c) && (c) <= 'i') \
5133
|| ('j' <= (c) && (c) <= 'r') \
5134
|| ('s' <= (c) && (c) <= 'z'))
5135
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5138
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5143
for (i = 0; i < 256; i++)
5144
if (XOR (islower (i), ISLOWER (i))
5145
|| toupper (i) != TOUPPER (i))
5150
rm -f conftest$ac_exeext
5151
if { (ac_try="$ac_link"
5153
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154
*) ac_try_echo=$ac_try;;
5156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5157
(eval "$ac_link") 2>&5
5159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5161
{ (case "(($ac_try" in
5162
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163
*) ac_try_echo=$ac_try;;
5165
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166
(eval "$ac_try") 2>&5
5168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169
(exit $ac_status); }; }; then
5172
echo "$as_me: program exited with status $ac_status" >&5
5173
echo "$as_me: failed program was:" >&5
5174
sed 's/^/| /' conftest.$ac_ext >&5
5177
ac_cv_header_stdc=no
5179
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5185
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5186
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5187
if test $ac_cv_header_stdc = yes; then
5189
cat >>confdefs.h <<\_ACEOF
5190
@%:@define STDC_HEADERS 1
5195
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5205
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5206
inttypes.h stdint.h unistd.h
5208
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5209
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5210
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5211
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5212
echo $ECHO_N "(cached) $ECHO_C" >&6
5214
cat >conftest.$ac_ext <<_ACEOF
5217
cat confdefs.h >>conftest.$ac_ext
5218
cat >>conftest.$ac_ext <<_ACEOF
5219
/* end confdefs.h. */
5220
$ac_includes_default
5222
@%:@include <$ac_header>
5224
rm -f conftest.$ac_objext
5225
if { (ac_try="$ac_compile"
5227
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228
*) ac_try_echo=$ac_try;;
5230
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231
(eval "$ac_compile") 2>conftest.er1
5233
grep -v '^ *+' conftest.er1 >conftest.err
5235
cat conftest.err >&5
5236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237
(exit $ac_status); } && {
5238
test -z "$ac_c_werror_flag" ||
5239
test ! -s conftest.err
5240
} && test -s conftest.$ac_objext; then
5241
eval "$as_ac_Header=yes"
5243
echo "$as_me: failed program was:" >&5
5244
sed 's/^/| /' conftest.$ac_ext >&5
5246
eval "$as_ac_Header=no"
5249
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251
ac_res=`eval echo '${'$as_ac_Header'}'`
5252
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5253
echo "${ECHO_T}$ac_res" >&6; }
5254
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5255
cat >>confdefs.h <<_ACEOF
5256
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5265
for ac_header in dlfcn.h
5267
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5268
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5269
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5270
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5271
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5272
echo $ECHO_N "(cached) $ECHO_C" >&6
5274
ac_res=`eval echo '${'$as_ac_Header'}'`
5275
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5276
echo "${ECHO_T}$ac_res" >&6; }
5278
# Is the header compilable?
5279
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5280
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5281
cat >conftest.$ac_ext <<_ACEOF
5284
cat confdefs.h >>conftest.$ac_ext
5285
cat >>conftest.$ac_ext <<_ACEOF
5286
/* end confdefs.h. */
5287
$ac_includes_default
5288
@%:@include <$ac_header>
5290
rm -f conftest.$ac_objext
5291
if { (ac_try="$ac_compile"
5293
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294
*) ac_try_echo=$ac_try;;
5296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297
(eval "$ac_compile") 2>conftest.er1
5299
grep -v '^ *+' conftest.er1 >conftest.err
5301
cat conftest.err >&5
5302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303
(exit $ac_status); } && {
5304
test -z "$ac_c_werror_flag" ||
5305
test ! -s conftest.err
5306
} && test -s conftest.$ac_objext; then
5307
ac_header_compiler=yes
5309
echo "$as_me: failed program was:" >&5
5310
sed 's/^/| /' conftest.$ac_ext >&5
5312
ac_header_compiler=no
5315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5317
echo "${ECHO_T}$ac_header_compiler" >&6; }
5319
# Is the header present?
5320
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5321
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5322
cat >conftest.$ac_ext <<_ACEOF
5325
cat confdefs.h >>conftest.$ac_ext
5326
cat >>conftest.$ac_ext <<_ACEOF
5327
/* end confdefs.h. */
5328
@%:@include <$ac_header>
5330
if { (ac_try="$ac_cpp conftest.$ac_ext"
5332
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333
*) ac_try_echo=$ac_try;;
5335
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5338
grep -v '^ *+' conftest.er1 >conftest.err
5340
cat conftest.err >&5
5341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342
(exit $ac_status); } >/dev/null && {
5343
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5344
test ! -s conftest.err
5346
ac_header_preproc=yes
5348
echo "$as_me: failed program was:" >&5
5349
sed 's/^/| /' conftest.$ac_ext >&5
5351
ac_header_preproc=no
5354
rm -f conftest.err conftest.$ac_ext
5355
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5356
echo "${ECHO_T}$ac_header_preproc" >&6; }
5358
# So? What about this header?
5359
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5361
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5362
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5363
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5364
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5365
ac_header_preproc=yes
5368
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5369
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5370
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5371
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5372
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5373
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5374
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5375
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5376
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5377
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5378
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5379
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5383
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5384
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5385
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5386
echo $ECHO_N "(cached) $ECHO_C" >&6
5388
eval "$as_ac_Header=\$ac_header_preproc"
5390
ac_res=`eval echo '${'$as_ac_Header'}'`
5391
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5392
echo "${ECHO_T}$ac_res" >&6; }
5395
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5396
cat >>confdefs.h <<_ACEOF
5397
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5405
ac_cpp='$CXXCPP $CPPFLAGS'
5406
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5407
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5408
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5409
if test -z "$CXX"; then
5410
if test -n "$CCC"; then
5413
if test -n "$ac_tool_prefix"; then
5414
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5416
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5417
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5418
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5419
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5420
if test "${ac_cv_prog_CXX+set}" = set; then
5421
echo $ECHO_N "(cached) $ECHO_C" >&6
5423
if test -n "$CXX"; then
5424
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5426
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430
test -z "$as_dir" && as_dir=.
5431
for ac_exec_ext in '' $ac_executable_extensions; do
5432
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5433
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5434
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444
if test -n "$CXX"; then
5445
{ echo "$as_me:$LINENO: result: $CXX" >&5
5446
echo "${ECHO_T}$CXX" >&6; }
5448
{ echo "$as_me:$LINENO: result: no" >&5
5449
echo "${ECHO_T}no" >&6; }
5453
test -n "$CXX" && break
5456
if test -z "$CXX"; then
5458
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5460
# Extract the first word of "$ac_prog", so it can be a program name with args.
5461
set dummy $ac_prog; ac_word=$2
5462
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5463
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5464
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5465
echo $ECHO_N "(cached) $ECHO_C" >&6
5467
if test -n "$ac_ct_CXX"; then
5468
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474
test -z "$as_dir" && as_dir=.
5475
for ac_exec_ext in '' $ac_executable_extensions; do
5476
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477
ac_cv_prog_ac_ct_CXX="$ac_prog"
5478
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5488
if test -n "$ac_ct_CXX"; then
5489
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5490
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5492
{ echo "$as_me:$LINENO: result: no" >&5
5493
echo "${ECHO_T}no" >&6; }
5497
test -n "$ac_ct_CXX" && break
5500
if test "x$ac_ct_CXX" = x; then
5503
case $cross_compiling:$ac_tool_warned in
5505
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5506
whose name does not start with the host triplet. If you think this
5507
configuration is useful to you, please write to autoconf@gnu.org." >&5
5508
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5509
whose name does not start with the host triplet. If you think this
5510
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5511
ac_tool_warned=yes ;;
5519
# Provide some information about the compiler.
5520
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5521
ac_compiler=`set X $ac_compile; echo $2`
5522
{ (ac_try="$ac_compiler --version >&5"
5524
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525
*) ac_try_echo=$ac_try;;
5527
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528
(eval "$ac_compiler --version >&5") 2>&5
5530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531
(exit $ac_status); }
5532
{ (ac_try="$ac_compiler -v >&5"
5534
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535
*) ac_try_echo=$ac_try;;
5537
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538
(eval "$ac_compiler -v >&5") 2>&5
5540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541
(exit $ac_status); }
5542
{ (ac_try="$ac_compiler -V >&5"
5544
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545
*) ac_try_echo=$ac_try;;
5547
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548
(eval "$ac_compiler -V >&5") 2>&5
5550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551
(exit $ac_status); }
5553
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5554
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5555
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5556
echo $ECHO_N "(cached) $ECHO_C" >&6
5558
cat >conftest.$ac_ext <<_ACEOF
5561
cat confdefs.h >>conftest.$ac_ext
5562
cat >>conftest.$ac_ext <<_ACEOF
5563
/* end confdefs.h. */
5576
rm -f conftest.$ac_objext
5577
if { (ac_try="$ac_compile"
5579
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580
*) ac_try_echo=$ac_try;;
5582
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5583
(eval "$ac_compile") 2>conftest.er1
5585
grep -v '^ *+' conftest.er1 >conftest.err
5587
cat conftest.err >&5
5588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589
(exit $ac_status); } && {
5590
test -z "$ac_cxx_werror_flag" ||
5591
test ! -s conftest.err
5592
} && test -s conftest.$ac_objext; then
5595
echo "$as_me: failed program was:" >&5
5596
sed 's/^/| /' conftest.$ac_ext >&5
5601
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5605
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5606
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5607
GXX=`test $ac_compiler_gnu = yes && echo yes`
5608
ac_test_CXXFLAGS=${CXXFLAGS+set}
5609
ac_save_CXXFLAGS=$CXXFLAGS
5610
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5611
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5612
if test "${ac_cv_prog_cxx_g+set}" = set; then
5613
echo $ECHO_N "(cached) $ECHO_C" >&6
5615
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5616
ac_cxx_werror_flag=yes
5619
cat >conftest.$ac_ext <<_ACEOF
5622
cat confdefs.h >>conftest.$ac_ext
5623
cat >>conftest.$ac_ext <<_ACEOF
5624
/* end confdefs.h. */
5634
rm -f conftest.$ac_objext
5635
if { (ac_try="$ac_compile"
5637
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638
*) ac_try_echo=$ac_try;;
5640
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641
(eval "$ac_compile") 2>conftest.er1
5643
grep -v '^ *+' conftest.er1 >conftest.err
5645
cat conftest.err >&5
5646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647
(exit $ac_status); } && {
5648
test -z "$ac_cxx_werror_flag" ||
5649
test ! -s conftest.err
5650
} && test -s conftest.$ac_objext; then
5651
ac_cv_prog_cxx_g=yes
5653
echo "$as_me: failed program was:" >&5
5654
sed 's/^/| /' conftest.$ac_ext >&5
5657
cat >conftest.$ac_ext <<_ACEOF
5660
cat confdefs.h >>conftest.$ac_ext
5661
cat >>conftest.$ac_ext <<_ACEOF
5662
/* end confdefs.h. */
5672
rm -f conftest.$ac_objext
5673
if { (ac_try="$ac_compile"
5675
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676
*) ac_try_echo=$ac_try;;
5678
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5679
(eval "$ac_compile") 2>conftest.er1
5681
grep -v '^ *+' conftest.er1 >conftest.err
5683
cat conftest.err >&5
5684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685
(exit $ac_status); } && {
5686
test -z "$ac_cxx_werror_flag" ||
5687
test ! -s conftest.err
5688
} && test -s conftest.$ac_objext; then
5691
echo "$as_me: failed program was:" >&5
5692
sed 's/^/| /' conftest.$ac_ext >&5
5694
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5696
cat >conftest.$ac_ext <<_ACEOF
5699
cat confdefs.h >>conftest.$ac_ext
5700
cat >>conftest.$ac_ext <<_ACEOF
5701
/* end confdefs.h. */
5711
rm -f conftest.$ac_objext
5712
if { (ac_try="$ac_compile"
5714
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715
*) ac_try_echo=$ac_try;;
5717
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5718
(eval "$ac_compile") 2>conftest.er1
5720
grep -v '^ *+' conftest.er1 >conftest.err
5722
cat conftest.err >&5
5723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724
(exit $ac_status); } && {
5725
test -z "$ac_cxx_werror_flag" ||
5726
test ! -s conftest.err
5727
} && test -s conftest.$ac_objext; then
5728
ac_cv_prog_cxx_g=yes
5730
echo "$as_me: failed program was:" >&5
5731
sed 's/^/| /' conftest.$ac_ext >&5
5736
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5745
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5746
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5747
if test "$ac_test_CXXFLAGS" = set; then
5748
CXXFLAGS=$ac_save_CXXFLAGS
5749
elif test $ac_cv_prog_cxx_g = yes; then
5750
if test "$GXX" = yes; then
5756
if test "$GXX" = yes; then
5763
ac_cpp='$CXXCPP $CPPFLAGS'
5764
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5766
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5768
depcc="$CXX" am_compiler_list=
5770
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5771
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5772
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5773
echo $ECHO_N "(cached) $ECHO_C" >&6
5775
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5776
# We make a subdir and do the tests there. Otherwise we can end up
5777
# making bogus files that we don't know about and never remove. For
5778
# instance it was reported that on HP-UX the gcc test will end up
5779
# making a dummy file named `D' -- because `-MD' means `put the output
5782
# Copy depcomp to subdir because otherwise we won't find it if we're
5783
# using a relative directory.
5784
cp "$am_depcomp" conftest.dir
5786
# We will build objects and dependencies in a subdirectory because
5787
# it helps to detect inapplicable dependency modes. For instance
5788
# both Tru64's cc and ICC support -MD to output dependencies as a
5789
# side effect of compilation, but ICC will put the dependencies in
5790
# the current directory while Tru64 will put them in the object
5794
am_cv_CXX_dependencies_compiler_type=none
5795
if test "$am_compiler_list" = ""; then
5796
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5798
for depmode in $am_compiler_list; do
5799
# Setup a source with many dependencies, because some compilers
5800
# like to wrap large dependency lists on column 80 (with \), and
5801
# we should not choose a depcomp mode which is confused by this.
5803
# We need to recreate these files for each test, as the compiler may
5804
# overwrite some of them when testing with obscure command lines.
5805
# This happens at least with the AIX C compiler.
5807
for i in 1 2 3 4 5 6; do
5808
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5809
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5810
# Solaris 8's {/usr,}/bin/sh.
5811
touch sub/conftst$i.h
5813
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5817
# after this tag, mechanisms are not by side-effect, so they'll
5818
# only be used when explicitly requested
5819
if test "x$enable_dependency_tracking" = xyes; then
5827
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5828
# mode. It turns out that the SunPro C++ compiler does not properly
5829
# handle `-M -o', and we need to detect this.
5830
if depmode=$depmode \
5831
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5832
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5833
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5834
>/dev/null 2>conftest.err &&
5835
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5836
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5837
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5838
# icc doesn't choke on unknown options, it will just issue warnings
5839
# or remarks (even with -Werror). So we grep stderr for any message
5840
# that says an option was ignored or not supported.
5841
# When given -MP, icc 7.0 and 7.1 complain thusly:
5842
# icc: Command line warning: ignoring option '-M'; no argument required
5843
# The diagnosis changed in icc 8.0:
5844
# icc: Command line remark: option '-MP' not supported
5845
if (grep 'ignoring option' conftest.err ||
5846
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5847
am_cv_CXX_dependencies_compiler_type=$depmode
5856
am_cv_CXX_dependencies_compiler_type=none
5860
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5861
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5862
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5867
test "x$enable_dependency_tracking" != xno \
5868
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5869
am__fastdepCXX_TRUE=
5870
am__fastdepCXX_FALSE='#'
5872
am__fastdepCXX_TRUE='#'
5873
am__fastdepCXX_FALSE=
5878
ac_cpp='$CXXCPP $CPPFLAGS'
5879
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5880
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5881
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5882
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5883
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5884
if test -z "$CXXCPP"; then
5885
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5886
echo $ECHO_N "(cached) $ECHO_C" >&6
5888
# Double quotes because CXXCPP needs to be expanded
5889
for CXXCPP in "$CXX -E" "/lib/cpp"
5892
for ac_cxx_preproc_warn_flag in '' yes
5894
# Use a header file that comes with gcc, so configuring glibc
5895
# with a fresh cross-compiler works.
5896
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5897
# <limits.h> exists even on freestanding compilers.
5898
# On the NeXT, cc -E runs the code through the compiler's parser,
5899
# not just through cpp. "Syntax error" is here to catch this case.
5900
cat >conftest.$ac_ext <<_ACEOF
5903
cat confdefs.h >>conftest.$ac_ext
5904
cat >>conftest.$ac_ext <<_ACEOF
5905
/* end confdefs.h. */
5907
@%:@ include <limits.h>
5909
@%:@ include <assert.h>
5913
if { (ac_try="$ac_cpp conftest.$ac_ext"
5915
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916
*) ac_try_echo=$ac_try;;
5918
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5921
grep -v '^ *+' conftest.er1 >conftest.err
5923
cat conftest.err >&5
5924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925
(exit $ac_status); } >/dev/null && {
5926
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5927
test ! -s conftest.err
5931
echo "$as_me: failed program was:" >&5
5932
sed 's/^/| /' conftest.$ac_ext >&5
5934
# Broken: fails on valid input.
5938
rm -f conftest.err conftest.$ac_ext
5940
# OK, works on sane cases. Now check whether nonexistent headers
5941
# can be detected and how.
5942
cat >conftest.$ac_ext <<_ACEOF
5945
cat confdefs.h >>conftest.$ac_ext
5946
cat >>conftest.$ac_ext <<_ACEOF
5947
/* end confdefs.h. */
5948
@%:@include <ac_nonexistent.h>
5950
if { (ac_try="$ac_cpp conftest.$ac_ext"
5952
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953
*) ac_try_echo=$ac_try;;
5955
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5958
grep -v '^ *+' conftest.er1 >conftest.err
5960
cat conftest.err >&5
5961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962
(exit $ac_status); } >/dev/null && {
5963
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5964
test ! -s conftest.err
5966
# Broken: success on invalid input.
5969
echo "$as_me: failed program was:" >&5
5970
sed 's/^/| /' conftest.$ac_ext >&5
5972
# Passes both tests.
5977
rm -f conftest.err conftest.$ac_ext
5980
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5981
rm -f conftest.err conftest.$ac_ext
5982
if $ac_preproc_ok; then
5987
ac_cv_prog_CXXCPP=$CXXCPP
5990
CXXCPP=$ac_cv_prog_CXXCPP
5992
ac_cv_prog_CXXCPP=$CXXCPP
5994
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5995
echo "${ECHO_T}$CXXCPP" >&6; }
5997
for ac_cxx_preproc_warn_flag in '' yes
5999
# Use a header file that comes with gcc, so configuring glibc
6000
# with a fresh cross-compiler works.
6001
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6002
# <limits.h> exists even on freestanding compilers.
6003
# On the NeXT, cc -E runs the code through the compiler's parser,
6004
# not just through cpp. "Syntax error" is here to catch this case.
6005
cat >conftest.$ac_ext <<_ACEOF
6008
cat confdefs.h >>conftest.$ac_ext
6009
cat >>conftest.$ac_ext <<_ACEOF
6010
/* end confdefs.h. */
6012
@%:@ include <limits.h>
6014
@%:@ include <assert.h>
6018
if { (ac_try="$ac_cpp conftest.$ac_ext"
6020
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021
*) ac_try_echo=$ac_try;;
6023
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6026
grep -v '^ *+' conftest.er1 >conftest.err
6028
cat conftest.err >&5
6029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030
(exit $ac_status); } >/dev/null && {
6031
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6032
test ! -s conftest.err
6036
echo "$as_me: failed program was:" >&5
6037
sed 's/^/| /' conftest.$ac_ext >&5
6039
# Broken: fails on valid input.
6043
rm -f conftest.err conftest.$ac_ext
6045
# OK, works on sane cases. Now check whether nonexistent headers
6046
# can be detected and how.
6047
cat >conftest.$ac_ext <<_ACEOF
6050
cat confdefs.h >>conftest.$ac_ext
6051
cat >>conftest.$ac_ext <<_ACEOF
6052
/* end confdefs.h. */
6053
@%:@include <ac_nonexistent.h>
6055
if { (ac_try="$ac_cpp conftest.$ac_ext"
6057
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058
*) ac_try_echo=$ac_try;;
6060
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6063
grep -v '^ *+' conftest.er1 >conftest.err
6065
cat conftest.err >&5
6066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067
(exit $ac_status); } >/dev/null && {
6068
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6069
test ! -s conftest.err
6071
# Broken: success on invalid input.
6074
echo "$as_me: failed program was:" >&5
6075
sed 's/^/| /' conftest.$ac_ext >&5
6077
# Passes both tests.
6082
rm -f conftest.err conftest.$ac_ext
6085
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6086
rm -f conftest.err conftest.$ac_ext
6087
if $ac_preproc_ok; then
6090
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6091
See \`config.log' for more details." >&5
6092
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6093
See \`config.log' for more details." >&2;}
6094
{ (exit 1); exit 1; }; }
6098
ac_cpp='$CXXCPP $CPPFLAGS'
6099
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6100
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6101
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6105
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6106
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6107
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6108
if test -n "$ac_tool_prefix"; then
6109
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
6111
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6112
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6113
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6114
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6115
if test "${ac_cv_prog_F77+set}" = set; then
6116
echo $ECHO_N "(cached) $ECHO_C" >&6
6118
if test -n "$F77"; then
6119
ac_cv_prog_F77="$F77" # Let the user override the test.
6121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125
test -z "$as_dir" && as_dir=.
6126
for ac_exec_ext in '' $ac_executable_extensions; do
6127
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6128
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6129
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6139
if test -n "$F77"; then
6140
{ echo "$as_me:$LINENO: result: $F77" >&5
6141
echo "${ECHO_T}$F77" >&6; }
6143
{ echo "$as_me:$LINENO: result: no" >&5
6144
echo "${ECHO_T}no" >&6; }
6148
test -n "$F77" && break
6151
if test -z "$F77"; then
6153
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
6155
# Extract the first word of "$ac_prog", so it can be a program name with args.
6156
set dummy $ac_prog; ac_word=$2
6157
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6158
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6159
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6160
echo $ECHO_N "(cached) $ECHO_C" >&6
6162
if test -n "$ac_ct_F77"; then
6163
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6165
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169
test -z "$as_dir" && as_dir=.
6170
for ac_exec_ext in '' $ac_executable_extensions; do
6171
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6172
ac_cv_prog_ac_ct_F77="$ac_prog"
6173
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6182
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6183
if test -n "$ac_ct_F77"; then
6184
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6185
echo "${ECHO_T}$ac_ct_F77" >&6; }
6187
{ echo "$as_me:$LINENO: result: no" >&5
6188
echo "${ECHO_T}no" >&6; }
6192
test -n "$ac_ct_F77" && break
6195
if test "x$ac_ct_F77" = x; then
6198
case $cross_compiling:$ac_tool_warned in
6200
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6201
whose name does not start with the host triplet. If you think this
6202
configuration is useful to you, please write to autoconf@gnu.org." >&5
6203
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6204
whose name does not start with the host triplet. If you think this
6205
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6206
ac_tool_warned=yes ;;
6213
# Provide some information about the compiler.
6214
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6215
ac_compiler=`set X $ac_compile; echo $2`
6216
{ (ac_try="$ac_compiler --version >&5"
6218
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219
*) ac_try_echo=$ac_try;;
6221
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222
(eval "$ac_compiler --version >&5") 2>&5
6224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225
(exit $ac_status); }
6226
{ (ac_try="$ac_compiler -v >&5"
6228
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229
*) ac_try_echo=$ac_try;;
6231
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6232
(eval "$ac_compiler -v >&5") 2>&5
6234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235
(exit $ac_status); }
6236
{ (ac_try="$ac_compiler -V >&5"
6238
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239
*) ac_try_echo=$ac_try;;
6241
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6242
(eval "$ac_compiler -V >&5") 2>&5
6244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245
(exit $ac_status); }
6248
# If we don't use `.F' as extension, the preprocessor is not run on the
6249
# input file. (Note that this only needs to work for GNU compilers.)
6252
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6253
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6254
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6255
echo $ECHO_N "(cached) $ECHO_C" >&6
6257
cat >conftest.$ac_ext <<_ACEOF
6265
rm -f conftest.$ac_objext
6266
if { (ac_try="$ac_compile"
6268
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269
*) ac_try_echo=$ac_try;;
6271
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272
(eval "$ac_compile") 2>conftest.er1
6274
grep -v '^ *+' conftest.er1 >conftest.err
6276
cat conftest.err >&5
6277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278
(exit $ac_status); } && {
6279
test -z "$ac_f77_werror_flag" ||
6280
test ! -s conftest.err
6281
} && test -s conftest.$ac_objext; then
6284
echo "$as_me: failed program was:" >&5
6285
sed 's/^/| /' conftest.$ac_ext >&5
6290
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6294
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6295
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6297
ac_test_FFLAGS=${FFLAGS+set}
6298
ac_save_FFLAGS=$FFLAGS
6300
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6301
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6302
if test "${ac_cv_prog_f77_g+set}" = set; then
6303
echo $ECHO_N "(cached) $ECHO_C" >&6
6306
cat >conftest.$ac_ext <<_ACEOF
6311
rm -f conftest.$ac_objext
6312
if { (ac_try="$ac_compile"
6314
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315
*) ac_try_echo=$ac_try;;
6317
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318
(eval "$ac_compile") 2>conftest.er1
6320
grep -v '^ *+' conftest.er1 >conftest.err
6322
cat conftest.err >&5
6323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324
(exit $ac_status); } && {
6325
test -z "$ac_f77_werror_flag" ||
6326
test ! -s conftest.err
6327
} && test -s conftest.$ac_objext; then
6328
ac_cv_prog_f77_g=yes
6330
echo "$as_me: failed program was:" >&5
6331
sed 's/^/| /' conftest.$ac_ext >&5
6336
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6340
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6341
if test "$ac_test_FFLAGS" = set; then
6342
FFLAGS=$ac_save_FFLAGS
6343
elif test $ac_cv_prog_f77_g = yes; then
6344
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6350
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6357
G77=`test $ac_compiler_gnu = yes && echo yes`
6359
ac_cpp='$CPP $CPPFLAGS'
6360
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6361
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6362
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6366
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6368
# find the maximum length of command line arguments
6369
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6370
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6371
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6372
echo $ECHO_N "(cached) $ECHO_C" >&6
6379
# On DJGPP, this test can blow up pretty badly due to problems in libc
6380
# (any single argument exceeding 2000 bytes causes a buffer overrun
6381
# during glob expansion). Even if it were fixed, the result of this
6382
# check would be larger than it should be.
6383
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6387
# Under GNU Hurd, this test is not required because there is
6388
# no limit to the length of command line arguments.
6389
# Libtool will interpret -1 as no limit whatsoever
6390
lt_cv_sys_max_cmd_len=-1;
6394
# On Win9x/ME, this test blows up -- it succeeds, but takes
6395
# about 5 minutes as the teststring grows exponentially.
6396
# Worse, since 9x/ME are not pre-emptively multitasking,
6397
# you end up with a "frozen" computer, even though with patience
6398
# the test eventually succeeds (with a max line length of 256k).
6399
# Instead, let's just punt: use the minimum linelength reported by
6400
# all of the supported platforms: 8192 (on NT/2K/XP).
6401
lt_cv_sys_max_cmd_len=8192;
6405
# On AmigaOS with pdksh, this test takes hours, literally.
6406
# So we just punt and use a minimum line length of 8192.
6407
lt_cv_sys_max_cmd_len=8192;
6411
# If test is not a shell built-in, we'll probably end up computing a
6412
# maximum length that is only half of the actual maximum length, but
6414
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6415
= "XX$teststring") >/dev/null 2>&1 &&
6416
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6417
lt_cv_sys_max_cmd_len=$new_result &&
6418
test $i != 17 # 1/2 MB should be enough
6421
teststring=$teststring$teststring
6424
# Add a significant safety factor because C++ compilers can tack on massive
6425
# amounts of additional arguments before passing them to the linker.
6426
# It appears as though 1/2 is a usable value.
6427
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6433
if test -n $lt_cv_sys_max_cmd_len ; then
6434
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6435
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6437
{ echo "$as_me:$LINENO: result: none" >&5
6438
echo "${ECHO_T}none" >&6; }
6444
# Check for command to grab the raw symbol name followed by C symbol from nm.
6445
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6446
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6447
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6448
echo $ECHO_N "(cached) $ECHO_C" >&6
6451
# These are sane defaults that work on at least a few old systems.
6452
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6454
# Character class describing NM global symbol codes.
6455
symcode='[BCDEGRST]'
6457
# Regexp to match symbols that can be accessed directly from C.
6458
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6460
# Transform the above into a raw symbol and a C symbol.
6461
symxfrm='\1 \2\3 \3'
6463
# Transform an extracted symbol line into a proper C declaration
6464
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6466
# Transform an extracted symbol line into symbol name and symbol address
6467
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'"
6469
# Define system-specific variables.
6474
cygwin* | mingw* | pw32*)
6475
symcode='[ABCDGISTW]'
6477
hpux*) # Its linker distinguishes data from code symbols
6478
if test "$host_cpu" = ia64; then
6479
symcode='[ABCDEGRST]'
6481
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6482
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'"
6485
symcode='[BCDEGRST]'
6488
symcode='[BCDEGQRST]'
6498
# Handle CRLF in mingw tool chain
6502
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6506
# If we're using GNU nm, then use its standard symbol codes.
6507
case `$NM -V 2>&1` in
6508
*GNU* | *'with BFD'*)
6509
symcode='[ABCDGIRSTW]' ;;
6512
# Try without a prefix undercore, then with it.
6513
for ac_symprfx in "" "_"; do
6515
# Write the raw and C identifiers.
6516
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6518
# Check to see that the pipe works correctly.
6522
cat > conftest.$ac_ext <<EOF
6527
void nm_test_func(){}
6531
int main(){nm_test_var='a';nm_test_func();return(0);}
6534
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6535
(eval $ac_compile) 2>&5
6537
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538
(exit $ac_status); }; then
6539
# Now try to grab the symbols.
6541
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6542
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545
(exit $ac_status); } && test -s "$nlist"; then
6546
# Try sorting and uniquifying the output.
6547
if sort "$nlist" | uniq > "$nlist"T; then
6548
mv -f "$nlist"T "$nlist"
6553
# Make sure that we snagged all the symbols we need.
6554
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6555
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6556
cat <<EOF > conftest.$ac_ext
6562
# Now generate the symbol file.
6563
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6565
cat <<EOF >> conftest.$ac_ext
6566
#if defined (__STDC__) && __STDC__
6567
# define lt_ptr_t void *
6569
# define lt_ptr_t char *
6573
/* The mapping between symbol names and symbols. */
6578
lt_preloaded_symbols[] =
6581
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6582
cat <<\EOF >> conftest.$ac_ext
6590
# Now try linking the two files.
6591
mv conftest.$ac_objext conftstm.$ac_objext
6592
lt_save_LIBS="$LIBS"
6593
lt_save_CFLAGS="$CFLAGS"
6594
LIBS="conftstm.$ac_objext"
6595
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6596
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597
(eval $ac_link) 2>&5
6599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6603
LIBS="$lt_save_LIBS"
6604
CFLAGS="$lt_save_CFLAGS"
6606
echo "cannot find nm_test_func in $nlist" >&5
6609
echo "cannot find nm_test_var in $nlist" >&5
6612
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6615
echo "$progname: failed program was:" >&5
6616
cat conftest.$ac_ext >&5
6618
rm -f conftest* conftst*
6620
# Do not use the global_symbol_pipe unless it works.
6621
if test "$pipe_works" = yes; then
6624
lt_cv_sys_global_symbol_pipe=
6630
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6631
lt_cv_sys_global_symbol_to_cdecl=
6633
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6634
{ echo "$as_me:$LINENO: result: failed" >&5
6635
echo "${ECHO_T}failed" >&6; }
6637
{ echo "$as_me:$LINENO: result: ok" >&5
6638
echo "${ECHO_T}ok" >&6; }
6641
{ echo "$as_me:$LINENO: checking for objdir" >&5
6642
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6643
if test "${lt_cv_objdir+set}" = set; then
6644
echo $ECHO_N "(cached) $ECHO_C" >&6
6646
rm -f .libs 2>/dev/null
6647
mkdir .libs 2>/dev/null
6648
if test -d .libs; then
6651
# MS-DOS does not allow filenames that begin with a dot.
6654
rmdir .libs 2>/dev/null
6656
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6657
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6658
objdir=$lt_cv_objdir
6666
# AIX sometimes has problems with the GCC collect2 program. For some
6667
# reason, if we set the COLLECT_NAMES environment variable, the problems
6668
# vanish in a puff of smoke.
6669
if test "X${COLLECT_NAMES+set}" != Xset; then
6671
export COLLECT_NAMES
6676
# Sed substitution that helps us do robust quoting. It backslashifies
6677
# metacharacters that are still active within double-quoted strings.
6678
Xsed='sed -e s/^X//'
6679
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6681
# Same as above, but do not quote variable references.
6682
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6684
# Sed substitution to delay expansion of an escaped shell variable in a
6685
# double_quote_subst'ed string.
6686
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6688
# Sed substitution to avoid accidental globbing in evaled expressions
6689
no_glob_subst='s/\*/\\\*/g'
6695
default_ofile=libtool
6696
can_build_shared=yes
6698
# All known linkers require a `.a' archive for static linking (except M$VC,
6699
# which needs '.lib').
6701
ltmain="$ac_aux_dir/ltmain.sh"
6702
ofile="$default_ofile"
6703
with_gnu_ld="$lt_cv_prog_gnu_ld"
6705
if test -n "$ac_tool_prefix"; then
6706
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6707
set dummy ${ac_tool_prefix}ar; ac_word=$2
6708
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6709
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710
if test "${ac_cv_prog_AR+set}" = set; then
6711
echo $ECHO_N "(cached) $ECHO_C" >&6
6713
if test -n "$AR"; then
6714
ac_cv_prog_AR="$AR" # Let the user override the test.
6716
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720
test -z "$as_dir" && as_dir=.
6721
for ac_exec_ext in '' $ac_executable_extensions; do
6722
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723
ac_cv_prog_AR="${ac_tool_prefix}ar"
6724
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734
if test -n "$AR"; then
6735
{ echo "$as_me:$LINENO: result: $AR" >&5
6736
echo "${ECHO_T}$AR" >&6; }
6738
{ echo "$as_me:$LINENO: result: no" >&5
6739
echo "${ECHO_T}no" >&6; }
6744
if test -z "$ac_cv_prog_AR"; then
6746
# Extract the first word of "ar", so it can be a program name with args.
6747
set dummy ar; ac_word=$2
6748
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6749
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6751
echo $ECHO_N "(cached) $ECHO_C" >&6
6753
if test -n "$ac_ct_AR"; then
6754
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760
test -z "$as_dir" && as_dir=.
6761
for ac_exec_ext in '' $ac_executable_extensions; do
6762
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6763
ac_cv_prog_ac_ct_AR="ar"
6764
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6774
if test -n "$ac_ct_AR"; then
6775
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6776
echo "${ECHO_T}$ac_ct_AR" >&6; }
6778
{ echo "$as_me:$LINENO: result: no" >&5
6779
echo "${ECHO_T}no" >&6; }
6782
if test "x$ac_ct_AR" = x; then
6785
case $cross_compiling:$ac_tool_warned in
6787
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6788
whose name does not start with the host triplet. If you think this
6789
configuration is useful to you, please write to autoconf@gnu.org." >&5
6790
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6791
whose name does not start with the host triplet. If you think this
6792
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6793
ac_tool_warned=yes ;;
6801
if test -n "$ac_tool_prefix"; then
6802
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6803
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6804
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6805
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806
if test "${ac_cv_prog_RANLIB+set}" = set; then
6807
echo $ECHO_N "(cached) $ECHO_C" >&6
6809
if test -n "$RANLIB"; then
6810
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6812
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816
test -z "$as_dir" && as_dir=.
6817
for ac_exec_ext in '' $ac_executable_extensions; do
6818
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6819
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6820
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829
RANLIB=$ac_cv_prog_RANLIB
6830
if test -n "$RANLIB"; then
6831
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
6832
echo "${ECHO_T}$RANLIB" >&6; }
6834
{ echo "$as_me:$LINENO: result: no" >&5
6835
echo "${ECHO_T}no" >&6; }
6840
if test -z "$ac_cv_prog_RANLIB"; then
6841
ac_ct_RANLIB=$RANLIB
6842
# Extract the first word of "ranlib", so it can be a program name with args.
6843
set dummy ranlib; ac_word=$2
6844
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6845
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6847
echo $ECHO_N "(cached) $ECHO_C" >&6
6849
if test -n "$ac_ct_RANLIB"; then
6850
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6852
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856
test -z "$as_dir" && as_dir=.
6857
for ac_exec_ext in '' $ac_executable_extensions; do
6858
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6859
ac_cv_prog_ac_ct_RANLIB="ranlib"
6860
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6870
if test -n "$ac_ct_RANLIB"; then
6871
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6872
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6874
{ echo "$as_me:$LINENO: result: no" >&5
6875
echo "${ECHO_T}no" >&6; }
6878
if test "x$ac_ct_RANLIB" = x; then
6881
case $cross_compiling:$ac_tool_warned in
6883
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6884
whose name does not start with the host triplet. If you think this
6885
configuration is useful to you, please write to autoconf@gnu.org." >&5
6886
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6887
whose name does not start with the host triplet. If you think this
6888
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6889
ac_tool_warned=yes ;;
6891
RANLIB=$ac_ct_RANLIB
6894
RANLIB="$ac_cv_prog_RANLIB"
6897
if test -n "$ac_tool_prefix"; then
6898
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6899
set dummy ${ac_tool_prefix}strip; ac_word=$2
6900
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6901
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902
if test "${ac_cv_prog_STRIP+set}" = set; then
6903
echo $ECHO_N "(cached) $ECHO_C" >&6
6905
if test -n "$STRIP"; then
6906
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6908
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912
test -z "$as_dir" && as_dir=.
6913
for ac_exec_ext in '' $ac_executable_extensions; do
6914
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6916
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925
STRIP=$ac_cv_prog_STRIP
6926
if test -n "$STRIP"; then
6927
{ echo "$as_me:$LINENO: result: $STRIP" >&5
6928
echo "${ECHO_T}$STRIP" >&6; }
6930
{ echo "$as_me:$LINENO: result: no" >&5
6931
echo "${ECHO_T}no" >&6; }
6936
if test -z "$ac_cv_prog_STRIP"; then
6938
# Extract the first word of "strip", so it can be a program name with args.
6939
set dummy strip; ac_word=$2
6940
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6941
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6942
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6943
echo $ECHO_N "(cached) $ECHO_C" >&6
6945
if test -n "$ac_ct_STRIP"; then
6946
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6948
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952
test -z "$as_dir" && as_dir=.
6953
for ac_exec_ext in '' $ac_executable_extensions; do
6954
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955
ac_cv_prog_ac_ct_STRIP="strip"
6956
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6966
if test -n "$ac_ct_STRIP"; then
6967
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6968
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6970
{ echo "$as_me:$LINENO: result: no" >&5
6971
echo "${ECHO_T}no" >&6; }
6974
if test "x$ac_ct_STRIP" = x; then
6977
case $cross_compiling:$ac_tool_warned in
6979
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6980
whose name does not start with the host triplet. If you think this
6981
configuration is useful to you, please write to autoconf@gnu.org." >&5
6982
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6983
whose name does not start with the host triplet. If you think this
6984
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6985
ac_tool_warned=yes ;;
6990
STRIP="$ac_cv_prog_STRIP"
6995
old_CFLAGS="$CFLAGS"
6997
# Set sane defaults for various variables
6998
test -z "$AR" && AR=ar
6999
test -z "$AR_FLAGS" && AR_FLAGS=cru
7000
test -z "$AS" && AS=as
7001
test -z "$CC" && CC=cc
7002
test -z "$LTCC" && LTCC=$CC
7003
test -z "$DLLTOOL" && DLLTOOL=dlltool
7004
test -z "$LD" && LD=ld
7005
test -z "$LN_S" && LN_S="ln -s"
7006
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7007
test -z "$NM" && NM=nm
7008
test -z "$SED" && SED=sed
7009
test -z "$OBJDUMP" && OBJDUMP=objdump
7010
test -z "$RANLIB" && RANLIB=:
7011
test -z "$STRIP" && STRIP=:
7012
test -z "$ac_objext" && ac_objext=o
7014
# Determine commands to create old-style static archives.
7015
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7016
old_postinstall_cmds='chmod 644 $oldlib'
7017
old_postuninstall_cmds=
7019
if test -n "$RANLIB"; then
7022
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7025
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7028
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7031
# Only perform the check for file, if the check method requires it
7032
case $deplibs_check_method in
7034
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7035
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7036
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7037
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7038
echo $ECHO_N "(cached) $ECHO_C" >&6
7042
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7045
lt_save_MAGIC_CMD="$MAGIC_CMD"
7046
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7047
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7048
for ac_dir in $ac_dummy; do
7050
test -z "$ac_dir" && ac_dir=.
7051
if test -f $ac_dir/${ac_tool_prefix}file; then
7052
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7053
if test -n "$file_magic_test_file"; then
7054
case $deplibs_check_method in
7056
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7057
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7058
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7059
$EGREP "$file_magic_regex" > /dev/null; then
7064
*** Warning: the command libtool uses to detect shared libraries,
7065
*** $file_magic_cmd, produces output that libtool cannot recognize.
7066
*** The result is that libtool may fail to recognize shared libraries
7067
*** as such. This will affect the creation of libtool libraries that
7068
*** depend on shared libraries, but programs linked with such libtool
7069
*** libraries will work regardless of this problem. Nevertheless, you
7070
*** may want to report the problem to your system manager and/or to
7071
*** bug-libtool@gnu.org
7081
MAGIC_CMD="$lt_save_MAGIC_CMD"
7086
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7087
if test -n "$MAGIC_CMD"; then
7088
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7089
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7091
{ echo "$as_me:$LINENO: result: no" >&5
7092
echo "${ECHO_T}no" >&6; }
7095
if test -z "$lt_cv_path_MAGIC_CMD"; then
7096
if test -n "$ac_tool_prefix"; then
7097
{ echo "$as_me:$LINENO: checking for file" >&5
7098
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7099
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7100
echo $ECHO_N "(cached) $ECHO_C" >&6
7104
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7107
lt_save_MAGIC_CMD="$MAGIC_CMD"
7108
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7109
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7110
for ac_dir in $ac_dummy; do
7112
test -z "$ac_dir" && ac_dir=.
7113
if test -f $ac_dir/file; then
7114
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7115
if test -n "$file_magic_test_file"; then
7116
case $deplibs_check_method in
7118
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7119
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7120
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7121
$EGREP "$file_magic_regex" > /dev/null; then
7126
*** Warning: the command libtool uses to detect shared libraries,
7127
*** $file_magic_cmd, produces output that libtool cannot recognize.
7128
*** The result is that libtool may fail to recognize shared libraries
7129
*** as such. This will affect the creation of libtool libraries that
7130
*** depend on shared libraries, but programs linked with such libtool
7131
*** libraries will work regardless of this problem. Nevertheless, you
7132
*** may want to report the problem to your system manager and/or to
7133
*** bug-libtool@gnu.org
7143
MAGIC_CMD="$lt_save_MAGIC_CMD"
7148
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7149
if test -n "$MAGIC_CMD"; then
7150
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7151
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7153
{ echo "$as_me:$LINENO: result: no" >&5
7154
echo "${ECHO_T}no" >&6; }
7169
# Check whether --enable-libtool-lock was given.
7170
if test "${enable_libtool_lock+set}" = set; then
7171
enableval=$enable_libtool_lock;
7174
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7177
# Check whether --with-pic was given.
7178
if test "${with_pic+set}" = set; then
7179
withval=$with_pic; pic_mode="$withval"
7184
test -z "$pic_mode" && pic_mode=default
7186
# Use C for the default configuration in the libtool script
7190
ac_cpp='$CPP $CPPFLAGS'
7191
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7192
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7193
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7196
# Source file extension for C test sources.
7199
# Object file extension for compiled C test sources.
7203
# Code to be used in simple compile tests
7204
lt_simple_compile_test_code="int some_variable = 0;\n"
7206
# Code to be used in simple link tests
7207
lt_simple_link_test_code='int main(){return(0);}\n'
7210
# If no C compiler was specified, use CC.
7213
# Allow CC to be a program name with arguments.
7218
# Check for any special shared library compilation flags.
7221
if test "$GCC" = no; then
7224
lt_prog_cc_shlib='-belf'
7228
if test -n "$lt_prog_cc_shlib"; then
7229
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7230
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7231
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7233
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7234
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7235
lt_cv_prog_cc_can_build_shared=no
7241
# Check to make sure the static flag actually works.
7243
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7244
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
7245
if test "${lt_prog_compiler_static_works+set}" = set; then
7246
echo $ECHO_N "(cached) $ECHO_C" >&6
7248
lt_prog_compiler_static_works=no
7249
save_LDFLAGS="$LDFLAGS"
7250
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7251
printf "$lt_simple_link_test_code" > conftest.$ac_ext
7252
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7253
# The compiler can only warn and ignore the option if not recognized
7254
# So say no if there are warnings
7255
if test -s conftest.err; then
7256
# Append any errors to the config.log.
7257
cat conftest.err 1>&5
7259
lt_prog_compiler_static_works=yes
7263
LDFLAGS="$save_LDFLAGS"
7266
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7267
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7269
if test x"$lt_prog_compiler_static_works" = xyes; then
7272
lt_prog_compiler_static=
7278
lt_prog_compiler_no_builtin_flag=
7280
if test "$GCC" = yes; then
7281
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7284
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7285
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7286
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7287
echo $ECHO_N "(cached) $ECHO_C" >&6
7289
lt_cv_prog_compiler_rtti_exceptions=no
7290
ac_outfile=conftest.$ac_objext
7291
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7292
lt_compiler_flag="-fno-rtti -fno-exceptions"
7293
# Insert the option either (1) after the last *FLAGS variable, or
7294
# (2) before a word containing "conftest.", or (3) at the end.
7295
# Note that $ac_compile itself does not contain backslashes and begins
7296
# with a dollar sign (not a hyphen), so the echo should work correctly.
7297
# The option is referenced via a variable to avoid confusing sed.
7298
lt_compile=`echo "$ac_compile" | $SED \
7299
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7300
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7301
-e 's:$: $lt_compiler_flag:'`
7302
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7303
(eval "$lt_compile" 2>conftest.err)
7305
cat conftest.err >&5
7306
echo "$as_me:__oline__: \$? = $ac_status" >&5
7307
if (exit $ac_status) && test -s "$ac_outfile"; then
7308
# The compiler can only warn and ignore the option if not recognized
7309
# So say no if there are warnings
7310
if test ! -s conftest.err; then
7311
lt_cv_prog_compiler_rtti_exceptions=yes
7317
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7318
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7320
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7321
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7328
lt_prog_compiler_wl=
7329
lt_prog_compiler_pic=
7330
lt_prog_compiler_static=
7332
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7333
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7335
if test "$GCC" = yes; then
7336
lt_prog_compiler_wl='-Wl,'
7337
lt_prog_compiler_static='-static'
7341
# All AIX code is PIC.
7342
if test "$host_cpu" = ia64; then
7343
# AIX 5 now supports IA64 processor
7344
lt_prog_compiler_static='-Bstatic'
7349
# FIXME: we need at least 68020 code to build shared libraries, but
7350
# adding the `-m68020' flag to GCC prevents building anything better,
7352
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7355
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7356
# PIC is the default for these OSes.
7359
mingw* | pw32* | os2*)
7360
# This hack is so that the source file can tell whether it is being
7361
# built for inclusion in a dll (and should export symbols for example).
7362
lt_prog_compiler_pic='-DDLL_EXPORT'
7365
darwin* | rhapsody*)
7366
# PIC is the default on this platform
7367
# Common symbols not allowed in MH_DYLIB files
7368
lt_prog_compiler_pic='-fno-common'
7372
# Just because we use GCC doesn't mean we suddenly get shared libraries
7373
# on systems that don't support them.
7374
lt_prog_compiler_can_build_shared=no
7379
if test -d /usr/nec; then
7380
lt_prog_compiler_pic=-Kconform_pic
7385
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7392
lt_prog_compiler_pic='-fPIC'
7398
lt_prog_compiler_pic='-fPIC'
7402
# PORTME Check for flag to pass linker flags through the system compiler.
7405
lt_prog_compiler_wl='-Wl,'
7406
if test "$host_cpu" = ia64; then
7407
# AIX 5 now supports IA64 processor
7408
lt_prog_compiler_static='-Bstatic'
7410
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7414
mingw* | pw32* | os2*)
7415
# This hack is so that the source file can tell whether it is being
7416
# built for inclusion in a dll (and should export symbols for example).
7417
lt_prog_compiler_pic='-DDLL_EXPORT'
7420
hpux9* | hpux10* | hpux11*)
7421
lt_prog_compiler_wl='-Wl,'
7422
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7429
lt_prog_compiler_pic='+Z'
7432
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7433
lt_prog_compiler_static='${wl}-a ${wl}archive'
7436
irix5* | irix6* | nonstopux*)
7437
lt_prog_compiler_wl='-Wl,'
7438
# PIC (with -KPIC) is the default.
7439
lt_prog_compiler_static='-non_shared'
7443
lt_prog_compiler_pic='-KPIC'
7444
lt_prog_compiler_static='-Bstatic'
7450
lt_prog_compiler_wl='-Wl,'
7451
lt_prog_compiler_pic='-KPIC'
7452
lt_prog_compiler_static='-static'
7455
lt_prog_compiler_wl='-Wl,'
7456
# All Alpha code is PIC.
7457
lt_prog_compiler_static='-non_shared'
7462
osf3* | osf4* | osf5*)
7463
lt_prog_compiler_wl='-Wl,'
7464
# All OSF/1 code is PIC.
7465
lt_prog_compiler_static='-non_shared'
7469
lt_prog_compiler_pic='-Kpic'
7470
lt_prog_compiler_static='-dn'
7474
lt_prog_compiler_wl='-Wl,'
7475
lt_prog_compiler_pic='-KPIC'
7476
lt_prog_compiler_static='-Bstatic'
7480
lt_prog_compiler_wl='-Qoption ld '
7481
lt_prog_compiler_pic='-PIC'
7482
lt_prog_compiler_static='-Bstatic'
7485
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7486
lt_prog_compiler_wl='-Wl,'
7487
lt_prog_compiler_pic='-KPIC'
7488
lt_prog_compiler_static='-Bstatic'
7492
if test -d /usr/nec ;then
7493
lt_prog_compiler_pic='-Kconform_pic'
7494
lt_prog_compiler_static='-Bstatic'
7499
lt_prog_compiler_pic='-pic'
7500
lt_prog_compiler_static='-Bstatic'
7504
lt_prog_compiler_can_build_shared=no
7509
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7510
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7513
# Check to make sure the PIC flag actually works.
7515
if test -n "$lt_prog_compiler_pic"; then
7517
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7518
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7519
if test "${lt_prog_compiler_pic_works+set}" = set; then
7520
echo $ECHO_N "(cached) $ECHO_C" >&6
7522
lt_prog_compiler_pic_works=no
7523
ac_outfile=conftest.$ac_objext
7524
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7525
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7526
# Insert the option either (1) after the last *FLAGS variable, or
7527
# (2) before a word containing "conftest.", or (3) at the end.
7528
# Note that $ac_compile itself does not contain backslashes and begins
7529
# with a dollar sign (not a hyphen), so the echo should work correctly.
7530
# The option is referenced via a variable to avoid confusing sed.
7531
lt_compile=`echo "$ac_compile" | $SED \
7532
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7533
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7534
-e 's:$: $lt_compiler_flag:'`
7535
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7536
(eval "$lt_compile" 2>conftest.err)
7538
cat conftest.err >&5
7539
echo "$as_me:__oline__: \$? = $ac_status" >&5
7540
if (exit $ac_status) && test -s "$ac_outfile"; then
7541
# The compiler can only warn and ignore the option if not recognized
7542
# So say no if there are warnings
7543
if test ! -s conftest.err; then
7544
lt_prog_compiler_pic_works=yes
7550
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7551
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7553
if test x"$lt_prog_compiler_pic_works" = xyes; then
7554
case $lt_prog_compiler_pic in
7556
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7559
lt_prog_compiler_pic=
7560
lt_prog_compiler_can_build_shared=no
7565
# For platforms which do not support PIC, -DPIC is meaningless:
7567
lt_prog_compiler_pic=
7570
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7574
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7575
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7576
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7577
echo $ECHO_N "(cached) $ECHO_C" >&6
7579
lt_cv_prog_compiler_c_o=no
7580
$rm -r conftest 2>/dev/null
7584
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7586
lt_compiler_flag="-o out/conftest2.$ac_objext"
7587
# Insert the option either (1) after the last *FLAGS variable, or
7588
# (2) before a word containing "conftest.", or (3) at the end.
7589
# Note that $ac_compile itself does not contain backslashes and begins
7590
# with a dollar sign (not a hyphen), so the echo should work correctly.
7591
lt_compile=`echo "$ac_compile" | $SED \
7592
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7593
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7594
-e 's:$: $lt_compiler_flag:'`
7595
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7596
(eval "$lt_compile" 2>out/conftest.err)
7598
cat out/conftest.err >&5
7599
echo "$as_me:__oline__: \$? = $ac_status" >&5
7600
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7602
# The compiler can only warn and ignore the option if not recognized
7603
# So say no if there are warnings
7604
if test ! -s out/conftest.err; then
7605
lt_cv_prog_compiler_c_o=yes
7610
# SGI C++ compiler will create directory out/ii_files/ for
7611
# template instantiation
7612
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7613
$rm out/* && rmdir out
7619
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7620
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7623
hard_links="nottested"
7624
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7625
# do not overwrite the value of need_locks provided by the user
7626
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7627
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7630
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7632
ln conftest.a conftest.b 2>&5 || hard_links=no
7633
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7634
{ echo "$as_me:$LINENO: result: $hard_links" >&5
7635
echo "${ECHO_T}$hard_links" >&6; }
7636
if test "$hard_links" = no; then
7637
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7638
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7645
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7646
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7649
allow_undefined_flag=
7650
enable_shared_with_static_runtimes=no
7652
archive_expsym_cmds=
7653
old_archive_From_new_cmds=
7654
old_archive_from_expsyms_cmds=
7655
export_dynamic_flag_spec=
7656
whole_archive_flag_spec=
7657
thread_safe_flag_spec=
7658
hardcode_libdir_flag_spec=
7659
hardcode_libdir_flag_spec_ld=
7660
hardcode_libdir_separator=
7663
hardcode_shlibpath_var=unsupported
7664
link_all_deplibs=unknown
7665
hardcode_automatic=no
7668
always_export_symbols=no
7669
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7670
# include_expsyms should be a list of space-separated symbols to be *always*
7671
# included in the symbol list
7673
# exclude_expsyms can be an extended regexp of symbols to exclude
7674
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7675
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7676
# as well as any symbol that contains `d'.
7677
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7678
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7679
# platforms (ab)use it in PIC code, but their linkers get confused if
7680
# the symbol is explicitly referenced. Since portable code cannot
7681
# rely on this symbol name, it's probably fine to never include it in
7682
# preloaded symbol tables.
7683
extract_expsyms_cmds=
7686
cygwin* | mingw* | pw32*)
7687
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7688
# When not using gcc, we currently assume that we are using
7689
# Microsoft Visual C++.
7690
if test "$GCC" != yes; then
7700
if test "$with_gnu_ld" = yes; then
7701
# If archive_cmds runs LD, not CC, wlarc should be empty
7704
# See if GNU ld supports shared libraries.
7706
aix3* | aix4* | aix5*)
7707
# On AIX/PPC, the GNU linker is very broken
7708
if test "$host_cpu" != ia64; then
7712
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7713
*** to be unable to reliably create shared libraries on AIX.
7714
*** Therefore, libtool is disabling shared libraries support. If you
7715
*** really care for shared libraries, you may want to modify your PATH
7716
*** so that a non-GNU linker is found, and then restart.
7723
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)'
7724
hardcode_libdir_flag_spec='-L$libdir'
7725
hardcode_minus_L=yes
7727
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7728
# that the semantics of dynamic libraries on AmigaOS, at least up
7729
# to version 4, is to share data among multiple programs linked
7730
# with the same dynamic library. Since this doesn't match the
7731
# behavior of shared libraries on other platforms, we can't use
7737
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7738
allow_undefined_flag=unsupported
7739
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7740
# support --undefined. This deserves some investigation. FIXME
7741
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7747
cygwin* | mingw* | pw32*)
7748
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7749
# as there is no search path for DLLs.
7750
hardcode_libdir_flag_spec='-L$libdir'
7751
allow_undefined_flag=unsupported
7752
always_export_symbols=no
7753
enable_shared_with_static_runtimes=yes
7754
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7756
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7757
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7758
# If the export-symbols file already is a .def file (1st line
7759
# is EXPORTS), use it as is; otherwise, prepend...
7760
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7761
cp $export_symbols $output_objdir/$soname.def;
7763
echo EXPORTS > $output_objdir/$soname.def;
7764
cat $export_symbols >> $output_objdir/$soname.def;
7766
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7772
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7773
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7774
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7777
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7778
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7783
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7787
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7788
*** create shared libraries on Solaris systems. Therefore, libtool
7789
*** is disabling shared libraries support. We urge you to upgrade GNU
7790
*** binutils to release 2.9.1 or newer. Another option is to modify
7791
*** your PATH or compiler configuration so that the native linker is
7792
*** used, and then restart.
7795
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7796
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7797
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7804
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7807
hardcode_shlibpath_var=no
7811
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7812
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7813
archive_cmds="$tmp_archive_cmds"
7814
supports_anon_versioning=no
7815
case `$LD -v 2>/dev/null` in
7816
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7817
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7818
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7819
*\ 2.11.*) ;; # other 2.11 versions
7820
*) supports_anon_versioning=yes ;;
7822
if test $supports_anon_versioning = yes; then
7823
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7824
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7825
$echo "local: *; };" >> $output_objdir/$libname.ver~
7826
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7828
archive_expsym_cmds="$tmp_archive_cmds"
7837
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7838
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7839
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7846
if test "$ld_shlibs" = yes; then
7847
runpath_var=LD_RUN_PATH
7848
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7849
export_dynamic_flag_spec='${wl}--export-dynamic'
7850
# ancient GNU ld didn't support --whole-archive et. al.
7851
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7852
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7854
whole_archive_flag_spec=
7858
# PORTME fill in a description of your system's linker (not GNU ld)
7861
allow_undefined_flag=unsupported
7862
always_export_symbols=yes
7863
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'
7864
# Note: this linker hardcodes the directories in LIBPATH if there
7865
# are no directories specified by -L.
7866
hardcode_minus_L=yes
7867
if test "$GCC" = yes && test -z "$link_static_flag"; then
7868
# Neither direct hardcoding nor static linking is supported with a
7870
hardcode_direct=unsupported
7875
if test "$host_cpu" = ia64; then
7876
# On IA64, the linker does run time linking by default, so we don't
7877
# have to do anything special.
7878
aix_use_runtimelinking=no
7879
exp_sym_flag='-Bexport'
7882
# If we're using GNU nm, then we don't want the "-C" option.
7883
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7884
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7885
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'
7887
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'
7889
aix_use_runtimelinking=no
7891
# Test if we are trying to use run time linking or normal
7892
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7893
# need to do runtime linking.
7894
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7895
for ld_flag in $LDFLAGS; do
7896
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7897
aix_use_runtimelinking=yes
7903
exp_sym_flag='-bexport'
7904
no_entry_flag='-bnoentry'
7907
# When large executables or shared objects are built, AIX ld can
7908
# have problems creating the table of contents. If linking a library
7909
# or program results in "error TOC overflow" add -mminimal-toc to
7910
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7911
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7915
hardcode_libdir_separator=':'
7916
link_all_deplibs=yes
7918
if test "$GCC" = yes; then
7919
case $host_os in aix4.012|aix4.012.*)
7920
# We only want to do this on AIX 4.2 and lower, the check
7921
# below for broken collect2 doesn't work under 4.3+
7922
collect2name=`${CC} -print-prog-name=collect2`
7923
if test -f "$collect2name" && \
7924
strings "$collect2name" | grep resolve_lib_name >/dev/null
7926
# We have reworked collect2
7929
# We have old collect2
7930
hardcode_direct=unsupported
7931
# It fails to find uninstalled libraries when the uninstalled
7932
# path is not listed in the libpath. Setting hardcode_minus_L
7933
# to unsupported forces relinking
7934
hardcode_minus_L=yes
7935
hardcode_libdir_flag_spec='-L$libdir'
7936
hardcode_libdir_separator=
7939
shared_flag='-shared'
7942
if test "$host_cpu" = ia64; then
7943
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7944
# chokes on -Wl,-G. The following line is correct:
7947
if test "$aix_use_runtimelinking" = yes; then
7948
shared_flag='${wl}-G'
7950
shared_flag='${wl}-bM:SRE'
7955
# It seems that -bexpall does not export symbols beginning with
7956
# underscore (_), so it is better to generate a list of symbols to export.
7957
always_export_symbols=yes
7958
if test "$aix_use_runtimelinking" = yes; then
7959
# Warning - without using the other runtime loading flags (-brtl),
7960
# -berok will link without error, but may produce a broken library.
7961
allow_undefined_flag='-berok'
7962
# Determine the default libpath from the value encoded in an empty executable.
7963
cat >conftest.$ac_ext <<_ACEOF
7966
cat confdefs.h >>conftest.$ac_ext
7967
cat >>conftest.$ac_ext <<_ACEOF
7968
/* end confdefs.h. */
7978
rm -f conftest.$ac_objext conftest$ac_exeext
7979
if { (ac_try="$ac_link"
7981
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982
*) ac_try_echo=$ac_try;;
7984
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985
(eval "$ac_link") 2>conftest.er1
7987
grep -v '^ *+' conftest.er1 >conftest.err
7989
cat conftest.err >&5
7990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991
(exit $ac_status); } && {
7992
test -z "$ac_c_werror_flag" ||
7993
test ! -s conftest.err
7994
} && test -s conftest$ac_exeext &&
7995
$as_test_x conftest$ac_exeext; then
7997
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7999
# Check for a 64-bit object if we didn't find anything.
8000
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8003
echo "$as_me: failed program was:" >&5
8004
sed 's/^/| /' conftest.$ac_ext >&5
8009
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8010
conftest$ac_exeext conftest.$ac_ext
8011
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8013
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8014
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8016
if test "$host_cpu" = ia64; then
8017
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8018
allow_undefined_flag="-z nodefs"
8019
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8021
# Determine the default libpath from the value encoded in an empty executable.
8022
cat >conftest.$ac_ext <<_ACEOF
8025
cat confdefs.h >>conftest.$ac_ext
8026
cat >>conftest.$ac_ext <<_ACEOF
8027
/* end confdefs.h. */
8037
rm -f conftest.$ac_objext conftest$ac_exeext
8038
if { (ac_try="$ac_link"
8040
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041
*) ac_try_echo=$ac_try;;
8043
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044
(eval "$ac_link") 2>conftest.er1
8046
grep -v '^ *+' conftest.er1 >conftest.err
8048
cat conftest.err >&5
8049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050
(exit $ac_status); } && {
8051
test -z "$ac_c_werror_flag" ||
8052
test ! -s conftest.err
8053
} && test -s conftest$ac_exeext &&
8054
$as_test_x conftest$ac_exeext; then
8056
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8058
# Check for a 64-bit object if we didn't find anything.
8059
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8062
echo "$as_me: failed program was:" >&5
8063
sed 's/^/| /' conftest.$ac_ext >&5
8068
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8069
conftest$ac_exeext conftest.$ac_ext
8070
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8072
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8073
# Warning - without using the other run time loading flags,
8074
# -berok will link without error, but may produce a broken library.
8075
no_undefined_flag=' ${wl}-bernotok'
8076
allow_undefined_flag=' ${wl}-berok'
8077
# -bexpall does not export symbols beginning with underscore (_)
8078
always_export_symbols=yes
8079
# Exported symbols can be pulled into shared objects from archives
8080
whole_archive_flag_spec=' '
8081
archive_cmds_need_lc=yes
8082
# This is similar to how AIX traditionally builds it's shared libraries.
8083
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8089
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)'
8090
hardcode_libdir_flag_spec='-L$libdir'
8091
hardcode_minus_L=yes
8092
# see comment about different semantics on the GNU ld section
8097
export_dynamic_flag_spec=-rdynamic
8100
cygwin* | mingw* | pw32*)
8101
# When not using gcc, we currently assume that we are using
8102
# Microsoft Visual C++.
8103
# hardcode_libdir_flag_spec is actually meaningless, as there is
8104
# no search path for DLLs.
8105
hardcode_libdir_flag_spec=' '
8106
allow_undefined_flag=unsupported
8107
# Tell ltmain to make .lib files, not .a files.
8109
# Tell ltmain to make .dll files, not .so files.
8111
# FIXME: Setting linknames here is a bad hack.
8112
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8113
# The linker will automatically build a .lib file if we build a DLL.
8114
old_archive_From_new_cmds='true'
8115
# FIXME: Should let the user specify the lib program.
8116
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8117
fix_srcfile_path='`cygpath -w "$srcfile"`'
8118
enable_shared_with_static_runtimes=yes
8121
darwin* | rhapsody*)
8122
if test "$GXX" = yes ; then
8123
archive_cmds_need_lc=no
8125
rhapsody* | darwin1.[012])
8126
allow_undefined_flag='-undefined suppress'
8129
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8130
allow_undefined_flag='-flat_namespace -undefined suppress'
8132
case ${MACOSX_DEPLOYMENT_TARGET} in
8134
allow_undefined_flag='-flat_namespace -undefined suppress'
8137
allow_undefined_flag='-undefined dynamic_lookup'
8143
lt_int_apple_cc_single_mod=no
8144
output_verbose_link_cmd='echo'
8145
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8146
lt_int_apple_cc_single_mod=yes
8148
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8149
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8151
archive_cmds='$CC -r ${wl}-bind_at_load -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'
8153
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8154
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8155
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8156
archive_expsym_cmds='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}'
8158
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
8160
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}'
8162
hardcode_automatic=yes
8163
hardcode_shlibpath_var=unsupported
8164
whole_archive_flag_spec='-all_load $convenience'
8165
link_all_deplibs=yes
8172
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8173
hardcode_libdir_flag_spec='-L$libdir'
8174
hardcode_shlibpath_var=no
8181
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8182
# support. Future versions do this automatically, but an explicit c++rt0.o
8183
# does not break anything, and helps significantly (at the cost of a little
8186
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8187
hardcode_libdir_flag_spec='-R$libdir'
8189
hardcode_shlibpath_var=no
8192
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8194
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8196
hardcode_minus_L=yes
8197
hardcode_shlibpath_var=no
8200
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8201
freebsd* | kfreebsd*-gnu)
8202
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8203
hardcode_libdir_flag_spec='-R$libdir'
8205
hardcode_shlibpath_var=no
8209
if test "$GCC" = yes; then
8210
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'
8212
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'
8214
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8215
hardcode_libdir_separator=:
8218
# hardcode_minus_L: Not really in the search PATH,
8219
# but as the default location of the library.
8220
hardcode_minus_L=yes
8221
export_dynamic_flag_spec='${wl}-E'
8225
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8228
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8231
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8237
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8240
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8244
if test "$with_gnu_ld" = no; then
8247
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8248
hardcode_libdir_flag_spec_ld='+b $libdir'
8249
hardcode_libdir_separator=:
8251
hardcode_shlibpath_var=no
8254
hardcode_libdir_flag_spec='-L$libdir'
8256
hardcode_shlibpath_var=no
8258
# hardcode_minus_L: Not really in the search PATH,
8259
# but as the default location of the library.
8260
hardcode_minus_L=yes
8263
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8264
hardcode_libdir_separator=:
8266
export_dynamic_flag_spec='${wl}-E'
8268
# hardcode_minus_L: Not really in the search PATH,
8269
# but as the default location of the library.
8270
hardcode_minus_L=yes
8276
irix5* | irix6* | nonstopux*)
8277
if test "$GCC" = yes; then
8278
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'
8280
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'
8281
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8283
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8284
hardcode_libdir_separator=:
8285
link_all_deplibs=yes
8288
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8289
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8290
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8292
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8294
hardcode_libdir_flag_spec='-R$libdir'
8296
hardcode_shlibpath_var=no
8300
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8302
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8303
hardcode_libdir_separator=:
8304
hardcode_shlibpath_var=no
8309
hardcode_shlibpath_var=no
8310
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8311
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8312
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8313
export_dynamic_flag_spec='${wl}-E'
8316
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8317
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8318
hardcode_libdir_flag_spec='-R$libdir'
8321
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8322
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8329
hardcode_libdir_flag_spec='-L$libdir'
8330
hardcode_minus_L=yes
8331
allow_undefined_flag=unsupported
8332
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'
8333
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8337
if test "$GCC" = yes; then
8338
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8339
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'
8341
allow_undefined_flag=' -expect_unresolved \*'
8342
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'
8344
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8345
hardcode_libdir_separator=:
8348
osf4* | osf5*) # as osf3* with the addition of -msym flag
8349
if test "$GCC" = yes; then
8350
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8351
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'
8352
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8354
allow_undefined_flag=' -expect_unresolved \*'
8355
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'
8356
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8357
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8359
# Both c and cxx compiler support -rpath directly
8360
hardcode_libdir_flag_spec='-rpath $libdir'
8362
hardcode_libdir_separator=:
8366
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8367
hardcode_shlibpath_var=no
8368
export_dynamic_flag_spec='${wl}-Bexport'
8369
runpath_var=LD_RUN_PATH
8370
hardcode_runpath_var=yes
8374
no_undefined_flag=' -z text'
8375
if test "$GCC" = yes; then
8376
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8377
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8378
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8380
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8381
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8382
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8384
hardcode_libdir_flag_spec='-R$libdir'
8385
hardcode_shlibpath_var=no
8387
solaris2.[0-5] | solaris2.[0-5].*) ;;
8388
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
8389
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8391
link_all_deplibs=yes
8395
if test "x$host_vendor" = xsequent; then
8396
# Use $CC to link under sequent, because it throws in some extra .o
8397
# files that make .init and .fini sections work.
8398
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8400
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8402
hardcode_libdir_flag_spec='-L$libdir'
8404
hardcode_minus_L=yes
8405
hardcode_shlibpath_var=no
8409
case $host_vendor in
8411
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8412
hardcode_direct=yes # is this really true???
8415
## LD is ld it makes a PLAMLIB
8416
## CC just makes a GrossModule.
8417
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8418
reload_cmds='$CC -r -o $output$reload_objs'
8422
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8423
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8426
runpath_var='LD_RUN_PATH'
8427
hardcode_shlibpath_var=no
8431
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8432
hardcode_shlibpath_var=no
8433
export_dynamic_flag_spec='-Bexport'
8437
if test -d /usr/nec; then
8438
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8439
hardcode_shlibpath_var=no
8440
runpath_var=LD_RUN_PATH
8441
hardcode_runpath_var=yes
8447
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8450
hardcode_shlibpath_var=no
8451
hardcode_runpath_var=yes
8452
runpath_var=LD_RUN_PATH
8455
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8456
no_undefined_flag='${wl}-z ${wl}text'
8457
if test "$GCC" = yes; then
8458
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8460
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8462
runpath_var='LD_RUN_PATH'
8463
hardcode_shlibpath_var=no
8467
no_undefined_flag=' -z text'
8468
# $CC -shared without GNU ld will not create a library from C++
8469
# object files and a static libstdc++, better avoid it by now
8470
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8471
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8472
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8473
hardcode_libdir_flag_spec=
8474
hardcode_shlibpath_var=no
8475
runpath_var='LD_RUN_PATH'
8479
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8480
hardcode_libdir_flag_spec='-L$libdir'
8481
hardcode_shlibpath_var=no
8490
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8491
echo "${ECHO_T}$ld_shlibs" >&6; }
8492
test "$ld_shlibs" = no && can_build_shared=no
8494
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8495
if test "$GCC" = yes; then
8496
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8500
# Do we need to explicitly link libc?
8502
case "x$archive_cmds_need_lc" in
8504
# Assume -lc should be added
8505
archive_cmds_need_lc=yes
8507
if test "$enable_shared" = yes && test "$GCC" = yes; then
8508
case $archive_cmds in
8510
# FIXME: we may have to deal with multi-command sequences.
8513
# Test whether the compiler implicitly links with -lc since on some
8514
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8515
# to ld, don't add -lc before -lgcc.
8516
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8517
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8519
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8521
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522
(eval $ac_compile) 2>&5
8524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525
(exit $ac_status); } 2>conftest.err; then
8528
libobjs=conftest.$ac_objext
8530
wl=$lt_prog_compiler_wl
8536
lt_save_allow_undefined_flag=$allow_undefined_flag
8537
allow_undefined_flag=
8538
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8539
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542
(exit $ac_status); }
8544
archive_cmds_need_lc=no
8546
archive_cmds_need_lc=yes
8548
allow_undefined_flag=$lt_save_allow_undefined_flag
8550
cat conftest.err 1>&5
8553
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8554
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8561
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8562
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8564
libname_spec='lib$name'
8572
shlibpath_overrides_runpath=unknown
8574
dynamic_linker="$host_os ld.so"
8575
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8576
if test "$GCC" = yes; then
8577
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8578
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8579
# if the path contains ";" then we assume it to be the separator
8580
# otherwise default to the standard path separator (i.e. ":") - it is
8581
# assumed that no part of a normal pathname contains ";" but that should
8582
# okay in the real world where ";" in dirpaths is itself problematic.
8583
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8585
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8588
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8590
need_lib_prefix=unknown
8591
hardcode_into_libs=no
8593
# when you set need_version to no, make sure it does not cause -set_version
8594
# flags to be left without arguments
8595
need_version=unknown
8600
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8601
shlibpath_var=LIBPATH
8603
# AIX 3 has no versioning support, so we append a major version to the name.
8604
soname_spec='${libname}${release}${shared_ext}$major'
8611
hardcode_into_libs=yes
8612
if test "$host_cpu" = ia64; then
8613
# AIX 5 supports IA64
8614
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8615
shlibpath_var=LD_LIBRARY_PATH
8617
# With GCC up to 2.95.x, collect2 would create an import file
8618
# for dependence libraries. The import file would start with
8619
# the line `#! .'. This would cause the generated library to
8620
# depend on `.', always an invalid library. This was fixed in
8621
# development snapshots of GCC prior to 3.0.
8623
aix4 | aix4.[01] | aix4.[01].*)
8624
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8626
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8633
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8634
# soname into executable. Probably we can add versioning support to
8635
# collect2, so additional links can be useful in future.
8636
if test "$aix_use_runtimelinking" = yes; then
8637
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8638
# instead of lib<name>.a to let people know that these are not
8639
# typical AIX shared libraries.
8640
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8642
# We preserve .a as extension for shared libraries through AIX4.2
8643
# and later when we are not doing run time linking.
8644
library_names_spec='${libname}${release}.a $libname.a'
8645
soname_spec='${libname}${release}${shared_ext}$major'
8647
shlibpath_var=LIBPATH
8652
library_names_spec='$libname.ixlibrary $libname.a'
8653
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8654
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'
8658
library_names_spec='${libname}${shared_ext}'
8659
dynamic_linker="$host_os ld.so"
8660
shlibpath_var=LIBRARY_PATH
8666
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8667
soname_spec='${libname}${release}${shared_ext}$major'
8668
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8669
shlibpath_var=LD_LIBRARY_PATH
8670
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8671
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8672
# the default ld.so.conf also contains /usr/contrib/lib and
8673
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8674
# libtool to hard-code these into programs
8677
cygwin* | mingw* | pw32*)
8678
version_type=windows
8683
case $GCC,$host_os in
8684
yes,cygwin* | yes,mingw* | yes,pw32*)
8685
library_names_spec='$libname.dll.a'
8686
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8687
postinstall_cmds='base_file=`basename \${file}`~
8688
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8689
dldir=$destdir/`dirname \$dlpath`~
8690
test -d \$dldir || mkdir -p \$dldir~
8691
$install_prog $dir/$dlname \$dldir/$dlname'
8692
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8693
dlpath=$dir/\$dldll~
8695
shlibpath_overrides_runpath=yes
8699
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8700
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8701
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8704
# MinGW DLLs use traditional 'lib' prefix
8705
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8706
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8707
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8708
# It is most probably a Windows format PATH printed by
8709
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8710
# path with ; separators, and with drive letters. We can handle the
8711
# drive letters (cygwin fileutils understands them), so leave them,
8712
# especially as we might pass files found there to a mingw objdump,
8713
# which wouldn't understand a cygwinified path. Ahh.
8714
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8716
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8720
# pw32 DLLs use 'pw' prefix rather than 'lib'
8721
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8727
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8730
dynamic_linker='Win32 ld.exe'
8731
# FIXME: first we should search . and the directory the executable is in
8735
darwin* | rhapsody*)
8736
dynamic_linker="$host_os dyld"
8740
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8741
soname_spec='${libname}${release}${major}$shared_ext'
8742
shlibpath_overrides_runpath=yes
8743
shlibpath_var=DYLD_LIBRARY_PATH
8744
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8745
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8746
if test "$GCC" = yes; then
8747
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8749
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8751
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8758
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8759
soname_spec='${libname}${release}${shared_ext}$major'
8760
shlibpath_var=LD_LIBRARY_PATH
8771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8772
soname_spec='${libname}${release}${shared_ext}$major'
8773
shlibpath_var=LD_LIBRARY_PATH
8774
shlibpath_overrides_runpath=no
8775
hardcode_into_libs=yes
8776
dynamic_linker='GNU ld.so'
8780
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8781
version_type=freebsd-$objformat
8782
case $version_type in
8784
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8789
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8793
shlibpath_var=LD_LIBRARY_PATH
8796
shlibpath_overrides_runpath=yes
8798
freebsd3.01* | freebsdelf3.01*)
8799
shlibpath_overrides_runpath=yes
8800
hardcode_into_libs=yes
8803
shlibpath_overrides_runpath=no
8804
hardcode_into_libs=yes
8813
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8814
soname_spec='${libname}${release}${shared_ext}$major'
8815
shlibpath_var=LD_LIBRARY_PATH
8816
hardcode_into_libs=yes
8819
hpux9* | hpux10* | hpux11*)
8820
# Give a soname corresponding to the major version so that dld.sl refuses to
8821
# link against other versions.
8828
hardcode_into_libs=yes
8829
dynamic_linker="$host_os dld.so"
8830
shlibpath_var=LD_LIBRARY_PATH
8831
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8832
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8833
soname_spec='${libname}${release}${shared_ext}$major'
8834
if test "X$HPUX_IA64_MODE" = X32; then
8835
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8837
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8839
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8843
hardcode_into_libs=yes
8844
dynamic_linker="$host_os dld.sl"
8845
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8846
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8847
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848
soname_spec='${libname}${release}${shared_ext}$major'
8849
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8850
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8854
dynamic_linker="$host_os dld.sl"
8855
shlibpath_var=SHLIB_PATH
8856
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8858
soname_spec='${libname}${release}${shared_ext}$major'
8861
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8862
postinstall_cmds='chmod 555 $lib'
8865
irix5* | irix6* | nonstopux*)
8867
nonstopux*) version_type=nonstopux ;;
8869
if test "$lt_cv_prog_gnu_ld" = yes; then
8877
soname_spec='${libname}${release}${shared_ext}$major'
8878
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8880
irix5* | nonstopux*)
8884
case $LD in # libtool.m4 will add one of these switches to LD
8885
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8886
libsuff= shlibsuff= libmagic=32-bit;;
8887
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8888
libsuff=32 shlibsuff=N32 libmagic=N32;;
8889
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8890
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8891
*) libsuff= shlibsuff= libmagic=never-match;;
8895
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8896
shlibpath_overrides_runpath=no
8897
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8898
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8899
hardcode_into_libs=yes
8902
# No shared lib support for Linux oldld, aout, or coff.
8903
linux*oldld* | linux*aout* | linux*coff*)
8907
# This must be Linux ELF.
8912
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913
soname_spec='${libname}${release}${shared_ext}$major'
8914
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8915
shlibpath_var=LD_LIBRARY_PATH
8916
shlibpath_overrides_runpath=no
8917
# This implies no fast_install, which is unacceptable.
8918
# Some rework will be needed to allow for fast_install
8919
# before this can be enabled.
8920
hardcode_into_libs=yes
8922
# Append ld.so.conf contents to the search path
8923
if test -f /etc/ld.so.conf; then
8924
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8925
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8928
# We used to test for /lib/ld.so.1 and disable shared libraries on
8929
# powerpc, because MkLinux only supported shared libraries with the
8930
# GNU dynamic linker. Since this was broken with cross compilers,
8931
# most powerpc-linux boxes support dynamic linking these days and
8932
# people can always --disable-shared, the test was removed, and we
8933
# assume the GNU/Linux dynamic linker is in use.
8934
dynamic_linker='GNU/Linux ld.so'
8941
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8942
soname_spec='${libname}${release}${shared_ext}$major'
8943
shlibpath_var=LD_LIBRARY_PATH
8944
shlibpath_overrides_runpath=no
8945
hardcode_into_libs=yes
8946
dynamic_linker='NetBSD ld.elf_so'
8953
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8954
soname_spec='${libname}${release}${shared_ext}$major'
8955
shlibpath_var=LD_LIBRARY_PATH
8956
shlibpath_overrides_runpath=no
8957
hardcode_into_libs=yes
8958
dynamic_linker='GNU ld.so'
8965
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8966
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8967
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8968
dynamic_linker='NetBSD (a.out) ld.so'
8970
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8971
soname_spec='${libname}${release}${shared_ext}$major'
8972
dynamic_linker='NetBSD ld.elf_so'
8974
shlibpath_var=LD_LIBRARY_PATH
8975
shlibpath_overrides_runpath=yes
8976
hardcode_into_libs=yes
8981
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982
shlibpath_var=LD_LIBRARY_PATH
8983
shlibpath_overrides_runpath=yes
8990
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8991
soname_spec='${libname}${release}${shared_ext}$major'
8992
shlibpath_var=LD_LIBRARY_PATH
8993
shlibpath_overrides_runpath=yes
9000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9001
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9002
shlibpath_var=LD_LIBRARY_PATH
9003
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9005
openbsd2.[89] | openbsd2.[89].*)
9006
shlibpath_overrides_runpath=no
9009
shlibpath_overrides_runpath=yes
9013
shlibpath_overrides_runpath=yes
9018
libname_spec='$name'
9021
library_names_spec='$libname${shared_ext} $libname.a'
9022
dynamic_linker='OS/2 ld.exe'
9023
shlibpath_var=LIBPATH
9026
osf3* | osf4* | osf5*)
9030
soname_spec='${libname}${release}${shared_ext}$major'
9031
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032
shlibpath_var=LD_LIBRARY_PATH
9033
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9034
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9039
soname_spec='${libname}${release}${shared_ext}$major'
9040
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041
shlibpath_var=LD_LIBRARY_PATH
9048
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9049
soname_spec='${libname}${release}${shared_ext}$major'
9050
shlibpath_var=LD_LIBRARY_PATH
9051
shlibpath_overrides_runpath=yes
9052
hardcode_into_libs=yes
9053
# ldd complains unless libraries are executable
9054
postinstall_cmds='chmod +x $lib'
9059
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9060
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9061
shlibpath_var=LD_LIBRARY_PATH
9062
shlibpath_overrides_runpath=yes
9063
if test "$with_gnu_ld" = yes; then
9069
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9071
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072
soname_spec='${libname}${release}${shared_ext}$major'
9073
shlibpath_var=LD_LIBRARY_PATH
9074
case $host_vendor in
9076
shlibpath_overrides_runpath=no
9078
export_dynamic_flag_spec='${wl}-Blargedynsym'
9079
runpath_var=LD_RUN_PATH
9087
shlibpath_overrides_runpath=no
9088
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9094
if test -d /usr/nec ;then
9096
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9097
soname_spec='$libname${shared_ext}.$major'
9098
shlibpath_var=LD_LIBRARY_PATH
9104
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9105
soname_spec='${libname}${release}${shared_ext}$major'
9106
shlibpath_var=LD_LIBRARY_PATH
9113
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9114
echo "${ECHO_T}$dynamic_linker" >&6; }
9115
test "$dynamic_linker" = no && can_build_shared=no
9117
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9118
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9120
if test -n "$hardcode_libdir_flag_spec" || \
9121
test -n "$runpath_var " || \
9122
test "X$hardcode_automatic"="Xyes" ; then
9124
# We can hardcode non-existant directories.
9125
if test "$hardcode_direct" != no &&
9126
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9127
# have to relink, otherwise we might link with an installed library
9128
# when we should be linking with a yet-to-be-installed one
9129
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9130
test "$hardcode_minus_L" != no; then
9131
# Linking always hardcodes the temporary library directory.
9132
hardcode_action=relink
9134
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9135
hardcode_action=immediate
9138
# We cannot hardcode anything, or else we can only hardcode existing
9140
hardcode_action=unsupported
9142
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9143
echo "${ECHO_T}$hardcode_action" >&6; }
9145
if test "$hardcode_action" = relink; then
9146
# Fast installation is not supported
9147
enable_fast_install=no
9148
elif test "$shlibpath_overrides_runpath" = yes ||
9149
test "$enable_shared" = no; then
9150
# Fast installation is not necessary
9151
enable_fast_install=needless
9156
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9157
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9158
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9159
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9160
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9161
{ echo "$as_me:$LINENO: result: yes" >&5
9162
echo "${ECHO_T}yes" >&6; }
9164
# FIXME - insert some real tests, host_os isn't really good enough
9167
if test -n "$STRIP" ; then
9168
striplib="$STRIP -x"
9169
{ echo "$as_me:$LINENO: result: yes" >&5
9170
echo "${ECHO_T}yes" >&6; }
9172
{ echo "$as_me:$LINENO: result: no" >&5
9173
echo "${ECHO_T}no" >&6; }
9177
{ echo "$as_me:$LINENO: result: no" >&5
9178
echo "${ECHO_T}no" >&6; }
9183
if test "x$enable_dlopen" != xyes; then
9184
enable_dlopen=unknown
9185
enable_dlopen_self=unknown
9186
enable_dlopen_self_static=unknown
9193
lt_cv_dlopen="load_add_on"
9195
lt_cv_dlopen_self=yes
9199
lt_cv_dlopen="LoadLibrary"
9204
lt_cv_dlopen="dlopen"
9209
# if libdl is installed we need to link against it
9210
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9211
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9212
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9213
echo $ECHO_N "(cached) $ECHO_C" >&6
9215
ac_check_lib_save_LIBS=$LIBS
9217
cat >conftest.$ac_ext <<_ACEOF
9220
cat confdefs.h >>conftest.$ac_ext
9221
cat >>conftest.$ac_ext <<_ACEOF
9222
/* end confdefs.h. */
9224
/* Override any GCC internal prototype to avoid an error.
9225
Use char because int might match the return type of a GCC
9226
builtin and then its argument prototype would still apply. */
9239
rm -f conftest.$ac_objext conftest$ac_exeext
9240
if { (ac_try="$ac_link"
9242
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243
*) ac_try_echo=$ac_try;;
9245
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246
(eval "$ac_link") 2>conftest.er1
9248
grep -v '^ *+' conftest.er1 >conftest.err
9250
cat conftest.err >&5
9251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252
(exit $ac_status); } && {
9253
test -z "$ac_c_werror_flag" ||
9254
test ! -s conftest.err
9255
} && test -s conftest$ac_exeext &&
9256
$as_test_x conftest$ac_exeext; then
9257
ac_cv_lib_dl_dlopen=yes
9259
echo "$as_me: failed program was:" >&5
9260
sed 's/^/| /' conftest.$ac_ext >&5
9262
ac_cv_lib_dl_dlopen=no
9265
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9266
conftest$ac_exeext conftest.$ac_ext
9267
LIBS=$ac_check_lib_save_LIBS
9269
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9270
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9271
if test $ac_cv_lib_dl_dlopen = yes; then
9272
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9277
lt_cv_dlopen_self=yes
9284
{ echo "$as_me:$LINENO: checking for shl_load" >&5
9285
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9286
if test "${ac_cv_func_shl_load+set}" = set; then
9287
echo $ECHO_N "(cached) $ECHO_C" >&6
9289
cat >conftest.$ac_ext <<_ACEOF
9292
cat confdefs.h >>conftest.$ac_ext
9293
cat >>conftest.$ac_ext <<_ACEOF
9294
/* end confdefs.h. */
9295
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9296
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9297
#define shl_load innocuous_shl_load
9299
/* System header to define __stub macros and hopefully few prototypes,
9300
which can conflict with char shl_load (); below.
9301
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9302
<limits.h> exists even on freestanding compilers. */
9305
# include <limits.h>
9307
# include <assert.h>
9312
/* Override any GCC internal prototype to avoid an error.
9313
Use char because int might match the return type of a GCC
9314
builtin and then its argument prototype would still apply. */
9319
/* The GNU C library defines this for functions which it implements
9320
to always fail with ENOSYS. Some functions are actually named
9321
something starting with __ and the normal name is an alias. */
9322
#if defined __stub_shl_load || defined __stub___shl_load
9334
rm -f conftest.$ac_objext conftest$ac_exeext
9335
if { (ac_try="$ac_link"
9337
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338
*) ac_try_echo=$ac_try;;
9340
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341
(eval "$ac_link") 2>conftest.er1
9343
grep -v '^ *+' conftest.er1 >conftest.err
9345
cat conftest.err >&5
9346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347
(exit $ac_status); } && {
9348
test -z "$ac_c_werror_flag" ||
9349
test ! -s conftest.err
9350
} && test -s conftest$ac_exeext &&
9351
$as_test_x conftest$ac_exeext; then
9352
ac_cv_func_shl_load=yes
9354
echo "$as_me: failed program was:" >&5
9355
sed 's/^/| /' conftest.$ac_ext >&5
9357
ac_cv_func_shl_load=no
9360
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9361
conftest$ac_exeext conftest.$ac_ext
9363
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9364
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9365
if test $ac_cv_func_shl_load = yes; then
9366
lt_cv_dlopen="shl_load"
9368
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9369
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9370
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9371
echo $ECHO_N "(cached) $ECHO_C" >&6
9373
ac_check_lib_save_LIBS=$LIBS
9375
cat >conftest.$ac_ext <<_ACEOF
9378
cat confdefs.h >>conftest.$ac_ext
9379
cat >>conftest.$ac_ext <<_ACEOF
9380
/* end confdefs.h. */
9382
/* Override any GCC internal prototype to avoid an error.
9383
Use char because int might match the return type of a GCC
9384
builtin and then its argument prototype would still apply. */
9397
rm -f conftest.$ac_objext conftest$ac_exeext
9398
if { (ac_try="$ac_link"
9400
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401
*) ac_try_echo=$ac_try;;
9403
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404
(eval "$ac_link") 2>conftest.er1
9406
grep -v '^ *+' conftest.er1 >conftest.err
9408
cat conftest.err >&5
9409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410
(exit $ac_status); } && {
9411
test -z "$ac_c_werror_flag" ||
9412
test ! -s conftest.err
9413
} && test -s conftest$ac_exeext &&
9414
$as_test_x conftest$ac_exeext; then
9415
ac_cv_lib_dld_shl_load=yes
9417
echo "$as_me: failed program was:" >&5
9418
sed 's/^/| /' conftest.$ac_ext >&5
9420
ac_cv_lib_dld_shl_load=no
9423
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9424
conftest$ac_exeext conftest.$ac_ext
9425
LIBS=$ac_check_lib_save_LIBS
9427
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9428
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9429
if test $ac_cv_lib_dld_shl_load = yes; then
9430
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9432
{ echo "$as_me:$LINENO: checking for dlopen" >&5
9433
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9434
if test "${ac_cv_func_dlopen+set}" = set; then
9435
echo $ECHO_N "(cached) $ECHO_C" >&6
9437
cat >conftest.$ac_ext <<_ACEOF
9440
cat confdefs.h >>conftest.$ac_ext
9441
cat >>conftest.$ac_ext <<_ACEOF
9442
/* end confdefs.h. */
9443
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9444
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9445
#define dlopen innocuous_dlopen
9447
/* System header to define __stub macros and hopefully few prototypes,
9448
which can conflict with char dlopen (); below.
9449
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9450
<limits.h> exists even on freestanding compilers. */
9453
# include <limits.h>
9455
# include <assert.h>
9460
/* Override any GCC internal prototype to avoid an error.
9461
Use char because int might match the return type of a GCC
9462
builtin and then its argument prototype would still apply. */
9467
/* The GNU C library defines this for functions which it implements
9468
to always fail with ENOSYS. Some functions are actually named
9469
something starting with __ and the normal name is an alias. */
9470
#if defined __stub_dlopen || defined __stub___dlopen
9482
rm -f conftest.$ac_objext conftest$ac_exeext
9483
if { (ac_try="$ac_link"
9485
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486
*) ac_try_echo=$ac_try;;
9488
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489
(eval "$ac_link") 2>conftest.er1
9491
grep -v '^ *+' conftest.er1 >conftest.err
9493
cat conftest.err >&5
9494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495
(exit $ac_status); } && {
9496
test -z "$ac_c_werror_flag" ||
9497
test ! -s conftest.err
9498
} && test -s conftest$ac_exeext &&
9499
$as_test_x conftest$ac_exeext; then
9500
ac_cv_func_dlopen=yes
9502
echo "$as_me: failed program was:" >&5
9503
sed 's/^/| /' conftest.$ac_ext >&5
9505
ac_cv_func_dlopen=no
9508
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9509
conftest$ac_exeext conftest.$ac_ext
9511
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9512
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9513
if test $ac_cv_func_dlopen = yes; then
9514
lt_cv_dlopen="dlopen"
9516
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9517
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9518
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9519
echo $ECHO_N "(cached) $ECHO_C" >&6
9521
ac_check_lib_save_LIBS=$LIBS
9523
cat >conftest.$ac_ext <<_ACEOF
9526
cat confdefs.h >>conftest.$ac_ext
9527
cat >>conftest.$ac_ext <<_ACEOF
9528
/* end confdefs.h. */
9530
/* Override any GCC internal prototype to avoid an error.
9531
Use char because int might match the return type of a GCC
9532
builtin and then its argument prototype would still apply. */
9545
rm -f conftest.$ac_objext conftest$ac_exeext
9546
if { (ac_try="$ac_link"
9548
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549
*) ac_try_echo=$ac_try;;
9551
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552
(eval "$ac_link") 2>conftest.er1
9554
grep -v '^ *+' conftest.er1 >conftest.err
9556
cat conftest.err >&5
9557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558
(exit $ac_status); } && {
9559
test -z "$ac_c_werror_flag" ||
9560
test ! -s conftest.err
9561
} && test -s conftest$ac_exeext &&
9562
$as_test_x conftest$ac_exeext; then
9563
ac_cv_lib_dl_dlopen=yes
9565
echo "$as_me: failed program was:" >&5
9566
sed 's/^/| /' conftest.$ac_ext >&5
9568
ac_cv_lib_dl_dlopen=no
9571
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9572
conftest$ac_exeext conftest.$ac_ext
9573
LIBS=$ac_check_lib_save_LIBS
9575
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9576
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9577
if test $ac_cv_lib_dl_dlopen = yes; then
9578
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9580
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9581
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9582
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9583
echo $ECHO_N "(cached) $ECHO_C" >&6
9585
ac_check_lib_save_LIBS=$LIBS
9587
cat >conftest.$ac_ext <<_ACEOF
9590
cat confdefs.h >>conftest.$ac_ext
9591
cat >>conftest.$ac_ext <<_ACEOF
9592
/* end confdefs.h. */
9594
/* Override any GCC internal prototype to avoid an error.
9595
Use char because int might match the return type of a GCC
9596
builtin and then its argument prototype would still apply. */
9609
rm -f conftest.$ac_objext conftest$ac_exeext
9610
if { (ac_try="$ac_link"
9612
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613
*) ac_try_echo=$ac_try;;
9615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616
(eval "$ac_link") 2>conftest.er1
9618
grep -v '^ *+' conftest.er1 >conftest.err
9620
cat conftest.err >&5
9621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622
(exit $ac_status); } && {
9623
test -z "$ac_c_werror_flag" ||
9624
test ! -s conftest.err
9625
} && test -s conftest$ac_exeext &&
9626
$as_test_x conftest$ac_exeext; then
9627
ac_cv_lib_svld_dlopen=yes
9629
echo "$as_me: failed program was:" >&5
9630
sed 's/^/| /' conftest.$ac_ext >&5
9632
ac_cv_lib_svld_dlopen=no
9635
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9636
conftest$ac_exeext conftest.$ac_ext
9637
LIBS=$ac_check_lib_save_LIBS
9639
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9640
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9641
if test $ac_cv_lib_svld_dlopen = yes; then
9642
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9644
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9645
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9646
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9647
echo $ECHO_N "(cached) $ECHO_C" >&6
9649
ac_check_lib_save_LIBS=$LIBS
9651
cat >conftest.$ac_ext <<_ACEOF
9654
cat confdefs.h >>conftest.$ac_ext
9655
cat >>conftest.$ac_ext <<_ACEOF
9656
/* end confdefs.h. */
9658
/* Override any GCC internal prototype to avoid an error.
9659
Use char because int might match the return type of a GCC
9660
builtin and then its argument prototype would still apply. */
9673
rm -f conftest.$ac_objext conftest$ac_exeext
9674
if { (ac_try="$ac_link"
9676
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677
*) ac_try_echo=$ac_try;;
9679
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680
(eval "$ac_link") 2>conftest.er1
9682
grep -v '^ *+' conftest.er1 >conftest.err
9684
cat conftest.err >&5
9685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686
(exit $ac_status); } && {
9687
test -z "$ac_c_werror_flag" ||
9688
test ! -s conftest.err
9689
} && test -s conftest$ac_exeext &&
9690
$as_test_x conftest$ac_exeext; then
9691
ac_cv_lib_dld_dld_link=yes
9693
echo "$as_me: failed program was:" >&5
9694
sed 's/^/| /' conftest.$ac_ext >&5
9696
ac_cv_lib_dld_dld_link=no
9699
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9700
conftest$ac_exeext conftest.$ac_ext
9701
LIBS=$ac_check_lib_save_LIBS
9703
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9704
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9705
if test $ac_cv_lib_dld_dld_link = yes; then
9706
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9727
if test "x$lt_cv_dlopen" != xno; then
9733
case $lt_cv_dlopen in
9735
save_CPPFLAGS="$CPPFLAGS"
9736
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9738
save_LDFLAGS="$LDFLAGS"
9739
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9742
LIBS="$lt_cv_dlopen_libs $LIBS"
9744
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9745
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9746
if test "${lt_cv_dlopen_self+set}" = set; then
9747
echo $ECHO_N "(cached) $ECHO_C" >&6
9749
if test "$cross_compiling" = yes; then :
9750
lt_cv_dlopen_self=cross
9752
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9753
lt_status=$lt_dlunknown
9754
cat > conftest.$ac_ext <<EOF
9755
#line __oline__ "configure"
9756
#include "confdefs.h"
9765
# define LT_DLGLOBAL RTLD_GLOBAL
9768
# define LT_DLGLOBAL DL_GLOBAL
9770
# define LT_DLGLOBAL 0
9774
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9775
find out it does not work in some platform. */
9776
#ifndef LT_DLLAZY_OR_NOW
9778
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9781
# define LT_DLLAZY_OR_NOW DL_LAZY
9784
# define LT_DLLAZY_OR_NOW RTLD_NOW
9787
# define LT_DLLAZY_OR_NOW DL_NOW
9789
# define LT_DLLAZY_OR_NOW 0
9797
extern "C" void exit (int);
9800
void fnord() { int i=42;}
9803
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9804
int status = $lt_dlunknown;
9808
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9809
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9810
/* dlclose (self); */
9816
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9817
(eval $ac_link) 2>&5
9819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9821
(./conftest; exit; ) 2>/dev/null
9824
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9825
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9826
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9829
# compilation failed
9830
lt_cv_dlopen_self=no
9837
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9838
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9840
if test "x$lt_cv_dlopen_self" = xyes; then
9841
LDFLAGS="$LDFLAGS $link_static_flag"
9842
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9843
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9844
if test "${lt_cv_dlopen_self_static+set}" = set; then
9845
echo $ECHO_N "(cached) $ECHO_C" >&6
9847
if test "$cross_compiling" = yes; then :
9848
lt_cv_dlopen_self_static=cross
9850
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9851
lt_status=$lt_dlunknown
9852
cat > conftest.$ac_ext <<EOF
9853
#line __oline__ "configure"
9854
#include "confdefs.h"
9863
# define LT_DLGLOBAL RTLD_GLOBAL
9866
# define LT_DLGLOBAL DL_GLOBAL
9868
# define LT_DLGLOBAL 0
9872
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9873
find out it does not work in some platform. */
9874
#ifndef LT_DLLAZY_OR_NOW
9876
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9879
# define LT_DLLAZY_OR_NOW DL_LAZY
9882
# define LT_DLLAZY_OR_NOW RTLD_NOW
9885
# define LT_DLLAZY_OR_NOW DL_NOW
9887
# define LT_DLLAZY_OR_NOW 0
9895
extern "C" void exit (int);
9898
void fnord() { int i=42;}
9901
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9902
int status = $lt_dlunknown;
9906
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9907
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9908
/* dlclose (self); */
9914
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915
(eval $ac_link) 2>&5
9917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9919
(./conftest; exit; ) 2>/dev/null
9922
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9923
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9924
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9927
# compilation failed
9928
lt_cv_dlopen_self_static=no
9935
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9936
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9939
CPPFLAGS="$save_CPPFLAGS"
9940
LDFLAGS="$save_LDFLAGS"
9945
case $lt_cv_dlopen_self in
9946
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9947
*) enable_dlopen_self=unknown ;;
9950
case $lt_cv_dlopen_self_static in
9951
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9952
*) enable_dlopen_self_static=unknown ;;
9957
# Report which librarie types wil actually be built
9958
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9959
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9960
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9961
echo "${ECHO_T}$can_build_shared" >&6; }
9963
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9964
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9965
test "$can_build_shared" = "no" && enable_shared=no
9967
# On AIX, shared libraries and static libraries use the same namespace, and
9968
# are all built from PIC.
9971
test "$enable_shared" = yes && enable_static=no
9972
if test -n "$RANLIB"; then
9973
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9974
postinstall_cmds='$RANLIB $lib'
9979
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9980
test "$enable_shared" = yes && enable_static=no
9983
darwin* | rhapsody*)
9984
if test "$GCC" = yes; then
9985
archive_cmds_need_lc=no
9987
rhapsody* | darwin1.[012])
9988
allow_undefined_flag='-undefined suppress'
9991
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9992
allow_undefined_flag='-flat_namespace -undefined suppress'
9994
case ${MACOSX_DEPLOYMENT_TARGET} in
9996
allow_undefined_flag='-flat_namespace -undefined suppress'
9999
allow_undefined_flag='-undefined dynamic_lookup'
10005
output_verbose_link_cmd='echo'
10006
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10007
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10008
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10009
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}'
10010
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}'
10012
hardcode_automatic=yes
10013
hardcode_shlibpath_var=unsupported
10014
whole_archive_flag_spec='-all_load $convenience'
10015
link_all_deplibs=yes
10021
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10022
echo "${ECHO_T}$enable_shared" >&6; }
10024
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10025
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10026
# Make sure either enable_shared or enable_static is yes.
10027
test "$enable_shared" = yes || enable_static=yes
10028
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10029
echo "${ECHO_T}$enable_static" >&6; }
10031
# The else clause should only fire when bootstrapping the
10032
# libtool distribution, otherwise you forgot to ship ltmain.sh
10033
# with your package, and you will get complaints that there are
10034
# no rules to generate ltmain.sh.
10035
if test -f "$ltmain"; then
10036
# See if we are running on zsh, and set the options which allow our commands through
10037
# without removal of \ escapes.
10038
if test -n "${ZSH_VERSION+set}" ; then
10039
setopt NO_GLOB_SUBST
10041
# Now quote all the things that may contain metacharacters while being
10042
# careful not to overquote the AC_SUBSTed values. We take copies of the
10043
# variables and quote the copies for generation of the libtool script.
10044
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10046
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10047
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10048
deplibs_check_method reload_flag reload_cmds need_locks \
10049
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10050
lt_cv_sys_global_symbol_to_c_name_address \
10051
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10052
old_postinstall_cmds old_postuninstall_cmds \
10056
lt_prog_compiler_wl \
10057
lt_prog_compiler_pic \
10058
lt_prog_compiler_static \
10059
lt_prog_compiler_no_builtin_flag \
10060
export_dynamic_flag_spec \
10061
thread_safe_flag_spec \
10062
whole_archive_flag_spec \
10063
enable_shared_with_static_runtimes \
10065
old_archive_from_new_cmds \
10070
compiler_lib_search_path \
10072
archive_expsym_cmds \
10074
postuninstall_cmds \
10075
old_archive_from_expsyms_cmds \
10076
allow_undefined_flag \
10077
no_undefined_flag \
10078
export_symbols_cmds \
10079
hardcode_libdir_flag_spec \
10080
hardcode_libdir_flag_spec_ld \
10081
hardcode_libdir_separator \
10082
hardcode_automatic \
10084
module_expsym_cmds \
10085
lt_cv_prog_compiler_c_o \
10087
include_expsyms; do
10090
old_archive_cmds | \
10091
old_archive_from_new_cmds | \
10093
archive_expsym_cmds | \
10095
module_expsym_cmds | \
10096
old_archive_from_expsyms_cmds | \
10097
export_symbols_cmds | \
10098
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10099
postinstall_cmds | postuninstall_cmds | \
10100
old_postinstall_cmds | old_postuninstall_cmds | \
10101
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10102
# Double-quote double-evaled strings.
10103
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10106
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10112
*'\$0 --fallback-echo"')
10113
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10117
cfgfile="${ofile}T"
10118
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10120
{ echo "$as_me:$LINENO: creating $ofile" >&5
10121
echo "$as_me: creating $ofile" >&6;}
10123
cat <<__EOF__ >> "$cfgfile"
10126
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10127
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10128
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10130
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10131
# Free Software Foundation, Inc.
10133
# This file is part of GNU Libtool:
10134
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10136
# This program is free software; you can redistribute it and/or modify
10137
# it under the terms of the GNU General Public License as published by
10138
# the Free Software Foundation; either version 2 of the License, or
10139
# (at your option) any later version.
10141
# This program is distributed in the hope that it will be useful, but
10142
# WITHOUT ANY WARRANTY; without even the implied warranty of
10143
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10144
# General Public License for more details.
10146
# You should have received a copy of the GNU General Public License
10147
# along with this program; if not, write to the Free Software
10148
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10150
# As a special exception to the GNU General Public License, if you
10151
# distribute this file as part of a program that contains a
10152
# configuration script generated by Autoconf, you may include it under
10153
# the same distribution terms that you use for the rest of that program.
10155
# A sed program that does not truncate output.
10158
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10159
Xsed="$SED -e s/^X//"
10161
# The HP-UX ksh and POSIX shell print the target directory to stdout
10162
# if CDPATH is set.
10163
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10165
# The names of the tagged configurations supported by this script.
10168
# ### BEGIN LIBTOOL CONFIG
10170
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10172
# Shell to use when invoking shell scripts.
10175
# Whether or not to build shared libraries.
10176
build_libtool_libs=$enable_shared
10178
# Whether or not to build static libraries.
10179
build_old_libs=$enable_static
10181
# Whether or not to add -lc for building shared libraries.
10182
build_libtool_need_lc=$archive_cmds_need_lc
10184
# Whether or not to disallow shared libs when runtime libs are static
10185
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10187
# Whether or not to optimize for fast installation.
10188
fast_install=$enable_fast_install
10191
host_alias=$host_alias
10194
# An echo program that does not interpret backslashes.
10199
AR_FLAGS=$lt_AR_FLAGS
10204
# A language-specific compiler.
10207
# Is the compiler the GNU C compiler?
10213
# The linker used to build libraries.
10216
# Whether we need hard or soft links.
10219
# A BSD-compatible nm program.
10222
# A symbol stripping program
10225
# Used to examine libraries when file_magic_cmd begins "file"
10226
MAGIC_CMD=$MAGIC_CMD
10228
# Used on cygwin: DLL creation program.
10231
# Used on cygwin: object dumper.
10234
# Used on cygwin: assembler.
10237
# The name of the directory that contains temporary libtool files.
10240
# How to create reloadable object files.
10241
reload_flag=$lt_reload_flag
10242
reload_cmds=$lt_reload_cmds
10244
# How to pass a linker flag through the compiler.
10245
wl=$lt_lt_prog_compiler_wl
10247
# Object file suffix (normally "o").
10248
objext="$ac_objext"
10250
# Old archive suffix (normally "a").
10253
# Shared library suffix (normally ".so").
10254
shrext_cmds='$shrext_cmds'
10256
# Executable file suffix (normally "").
10259
# Additional compiler flags for building library objects.
10260
pic_flag=$lt_lt_prog_compiler_pic
10263
# What is the maximum length of a command?
10264
max_cmd_len=$lt_cv_sys_max_cmd_len
10266
# Does compiler simultaneously support -c and -o options?
10267
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10269
# Must we lock files when doing compilation ?
10270
need_locks=$lt_need_locks
10272
# Do we need the lib prefix for modules?
10273
need_lib_prefix=$need_lib_prefix
10275
# Do we need a version for libraries?
10276
need_version=$need_version
10278
# Whether dlopen is supported.
10279
dlopen_support=$enable_dlopen
10281
# Whether dlopen of programs is supported.
10282
dlopen_self=$enable_dlopen_self
10284
# Whether dlopen of statically linked programs is supported.
10285
dlopen_self_static=$enable_dlopen_self_static
10287
# Compiler flag to prevent dynamic linking.
10288
link_static_flag=$lt_lt_prog_compiler_static
10290
# Compiler flag to turn off builtin functions.
10291
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10293
# Compiler flag to allow reflexive dlopens.
10294
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10296
# Compiler flag to generate shared objects directly from archives.
10297
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10299
# Compiler flag to generate thread-safe objects.
10300
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10302
# Library versioning type.
10303
version_type=$version_type
10305
# Format of library name prefix.
10306
libname_spec=$lt_libname_spec
10308
# List of archive names. First name is the real one, the rest are links.
10309
# The last name is the one that the linker finds with -lNAME.
10310
library_names_spec=$lt_library_names_spec
10312
# The coded name of the library, if different from the real name.
10313
soname_spec=$lt_soname_spec
10315
# Commands used to build and install an old-style archive.
10317
old_archive_cmds=$lt_old_archive_cmds
10318
old_postinstall_cmds=$lt_old_postinstall_cmds
10319
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10321
# Create an old-style archive from a shared archive.
10322
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10324
# Create a temporary old-style archive to link instead of a shared archive.
10325
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10327
# Commands used to build and install a shared archive.
10328
archive_cmds=$lt_archive_cmds
10329
archive_expsym_cmds=$lt_archive_expsym_cmds
10330
postinstall_cmds=$lt_postinstall_cmds
10331
postuninstall_cmds=$lt_postuninstall_cmds
10333
# Commands used to build a loadable module (assumed same as above if empty)
10334
module_cmds=$lt_module_cmds
10335
module_expsym_cmds=$lt_module_expsym_cmds
10337
# Commands to strip libraries.
10338
old_striplib=$lt_old_striplib
10339
striplib=$lt_striplib
10341
# Dependencies to place before the objects being linked to create a
10343
predep_objects=$lt_predep_objects
10345
# Dependencies to place after the objects being linked to create a
10347
postdep_objects=$lt_postdep_objects
10349
# Dependencies to place before the objects being linked to create a
10351
predeps=$lt_predeps
10353
# Dependencies to place after the objects being linked to create a
10355
postdeps=$lt_postdeps
10357
# The library search path used internally by the compiler when linking
10358
# a shared library.
10359
compiler_lib_search_path=$lt_compiler_lib_search_path
10361
# Method to check whether dependent libraries are shared objects.
10362
deplibs_check_method=$lt_deplibs_check_method
10364
# Command to use when deplibs_check_method == file_magic.
10365
file_magic_cmd=$lt_file_magic_cmd
10367
# Flag that allows shared libraries with undefined symbols to be built.
10368
allow_undefined_flag=$lt_allow_undefined_flag
10370
# Flag that forces no undefined symbols.
10371
no_undefined_flag=$lt_no_undefined_flag
10373
# Commands used to finish a libtool library installation in a directory.
10374
finish_cmds=$lt_finish_cmds
10376
# Same as above, but a single script fragment to be evaled but not shown.
10377
finish_eval=$lt_finish_eval
10379
# Take the output of nm and produce a listing of raw symbols and C names.
10380
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10382
# Transform the output of nm in a proper C declaration
10383
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10385
# Transform the output of nm in a C name address pair
10386
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10388
# This is the shared library runtime path variable.
10389
runpath_var=$runpath_var
10391
# This is the shared library path variable.
10392
shlibpath_var=$shlibpath_var
10394
# Is shlibpath searched before the hard-coded library search path?
10395
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10397
# How to hardcode a shared library path into an executable.
10398
hardcode_action=$hardcode_action
10400
# Whether we should hardcode library paths into libraries.
10401
hardcode_into_libs=$hardcode_into_libs
10403
# Flag to hardcode \$libdir into a binary during linking.
10404
# This must work even if \$libdir does not exist.
10405
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10407
# If ld is used when linking, flag to hardcode \$libdir into
10408
# a binary during linking. This must work even if \$libdir does
10410
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10412
# Whether we need a single -rpath flag with a separated argument.
10413
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10415
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10416
# resulting binary.
10417
hardcode_direct=$hardcode_direct
10419
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10420
# resulting binary.
10421
hardcode_minus_L=$hardcode_minus_L
10423
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10424
# the resulting binary.
10425
hardcode_shlibpath_var=$hardcode_shlibpath_var
10427
# Set to yes if building a shared library automatically hardcodes DIR into the library
10428
# and all subsequent libraries and executables linked against it.
10429
hardcode_automatic=$hardcode_automatic
10431
# Variables whose values should be saved in libtool wrapper scripts and
10432
# restored at relink time.
10433
variables_saved_for_relink="$variables_saved_for_relink"
10435
# Whether libtool must link a program against all its dependency libraries.
10436
link_all_deplibs=$link_all_deplibs
10438
# Compile-time system search path for libraries
10439
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10441
# Run-time system search path for libraries
10442
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10444
# Fix the shell variable \$srcfile for the compiler.
10445
fix_srcfile_path="$fix_srcfile_path"
10447
# Set to yes if exported symbols are required.
10448
always_export_symbols=$always_export_symbols
10450
# The commands to list exported symbols.
10451
export_symbols_cmds=$lt_export_symbols_cmds
10453
# The commands to extract the exported symbol list from a shared archive.
10454
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10456
# Symbols that should not be listed in the preloaded symbols.
10457
exclude_expsyms=$lt_exclude_expsyms
10459
# Symbols that must always be exported.
10460
include_expsyms=$lt_include_expsyms
10462
# ### END LIBTOOL CONFIG
10469
cat <<\EOF >> "$cfgfile"
10471
# AIX sometimes has problems with the GCC collect2 program. For some
10472
# reason, if we set the COLLECT_NAMES environment variable, the problems
10473
# vanish in a puff of smoke.
10474
if test "X${COLLECT_NAMES+set}" != Xset; then
10476
export COLLECT_NAMES
10482
# We use sed instead of cat because bash on DJGPP gets confused if
10483
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10484
# text mode, it properly converts lines to CR/LF. This bash problem
10485
# is reportedly fixed, but why not run on old versions too?
10486
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10488
mv -f "$cfgfile" "$ofile" || \
10489
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10493
# If there is no Makefile yet, we rely on a make rule to execute
10494
# `config.status --recheck' to rerun these tests and create the
10495
# libtool script then.
10496
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10497
if test -f "$ltmain_in"; then
10498
test -f Makefile && make "$ltmain"
10504
ac_cpp='$CPP $CPPFLAGS'
10505
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10506
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10507
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10512
# Check whether --with-tags was given.
10513
if test "${with_tags+set}" = set; then
10514
withval=$with_tags; tagnames="$withval"
10518
if test -f "$ltmain" && test -n "$tagnames"; then
10519
if test ! -f "${ofile}"; then
10520
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10521
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10524
if test -z "$LTCC"; then
10525
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10526
if test -z "$LTCC"; then
10527
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10528
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10530
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10531
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10535
# Extract list of available tagged configurations in $ofile.
10536
# Note that this assumes the entire list is on one line.
10537
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10539
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10540
for tagname in $tagnames; do
10542
# Check whether tagname contains only valid characters
10543
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10545
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10546
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10547
{ (exit 1); exit 1; }; }
10551
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10553
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10554
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10555
{ (exit 1); exit 1; }; }
10558
# Update the list of available tags.
10559
if test -n "$tagname"; then
10560
echo appending configuration tag \"$tagname\" to $ofile
10564
if test -n "$CXX" && test "X$CXX" != "Xno"; then
10566
ac_cpp='$CXXCPP $CPPFLAGS'
10567
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10568
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10569
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10574
archive_cmds_need_lc_CXX=no
10575
allow_undefined_flag_CXX=
10576
always_export_symbols_CXX=no
10577
archive_expsym_cmds_CXX=
10578
export_dynamic_flag_spec_CXX=
10579
hardcode_direct_CXX=no
10580
hardcode_libdir_flag_spec_CXX=
10581
hardcode_libdir_flag_spec_ld_CXX=
10582
hardcode_libdir_separator_CXX=
10583
hardcode_minus_L_CXX=no
10584
hardcode_automatic_CXX=no
10586
module_expsym_cmds_CXX=
10587
link_all_deplibs_CXX=unknown
10588
old_archive_cmds_CXX=$old_archive_cmds
10589
no_undefined_flag_CXX=
10590
whole_archive_flag_spec_CXX=
10591
enable_shared_with_static_runtimes_CXX=no
10593
# Dependencies to place before and after the object being linked:
10594
predep_objects_CXX=
10595
postdep_objects_CXX=
10598
compiler_lib_search_path_CXX=
10600
# Source file extension for C++ test sources.
10603
# Object file extension for compiled C++ test sources.
10607
# Code to be used in simple compile tests
10608
lt_simple_compile_test_code="int some_variable = 0;\n"
10610
# Code to be used in simple link tests
10611
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10613
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10615
# If no C compiler was specified, use CC.
10618
# Allow CC to be a program name with arguments.
10622
# Allow CC to be a program name with arguments.
10627
lt_save_with_gnu_ld=$with_gnu_ld
10628
lt_save_path_LD=$lt_cv_path_LD
10629
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10630
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10632
unset lt_cv_prog_gnu_ld
10634
if test -n "${lt_cv_path_LDCXX+set}"; then
10635
lt_cv_path_LD=$lt_cv_path_LDCXX
10637
unset lt_cv_path_LD
10639
test -z "${LDCXX+set}" || LD=$LDCXX
10643
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10645
# We don't want -fno-exception wen compiling C++ code, so set the
10646
# no_builtin_flag separately
10647
if test "$GXX" = yes; then
10648
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10650
lt_prog_compiler_no_builtin_flag_CXX=
10653
if test "$GXX" = yes; then
10654
# Set up default GNU C++ configuration
10657
# Check whether --with-gnu-ld was given.
10658
if test "${with_gnu_ld+set}" = set; then
10659
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10665
if test "$GCC" = yes; then
10666
# Check if gcc -print-prog-name=ld gives a path.
10667
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10668
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10671
# gcc leaves a trailing carriage return which upsets mingw
10672
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10674
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10677
# Accept absolute paths.
10679
re_direlt='/[^/][^/]*/\.\./'
10680
# Canonicalize the pathname of ld
10681
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10682
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10683
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10685
test -z "$LD" && LD="$ac_prog"
10688
# If it fails, then pretend we aren't using GCC.
10692
# If it is relative, then search for the first ld in PATH.
10693
with_gnu_ld=unknown
10696
elif test "$with_gnu_ld" = yes; then
10697
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
10698
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10700
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10701
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10703
if test "${lt_cv_path_LD+set}" = set; then
10704
echo $ECHO_N "(cached) $ECHO_C" >&6
10706
if test -z "$LD"; then
10707
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10708
for ac_dir in $PATH; do
10710
test -z "$ac_dir" && ac_dir=.
10711
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10712
lt_cv_path_LD="$ac_dir/$ac_prog"
10713
# Check to see if the program is GNU ld. I'd rather use --version,
10714
# but apparently some GNU ld's only accept -v.
10715
# Break only if it was the GNU/non-GNU ld that we prefer.
10716
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10717
*GNU* | *'with BFD'*)
10718
test "$with_gnu_ld" != no && break
10721
test "$with_gnu_ld" != yes && break
10728
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10732
LD="$lt_cv_path_LD"
10733
if test -n "$LD"; then
10734
{ echo "$as_me:$LINENO: result: $LD" >&5
10735
echo "${ECHO_T}$LD" >&6; }
10737
{ echo "$as_me:$LINENO: result: no" >&5
10738
echo "${ECHO_T}no" >&6; }
10740
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10741
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10742
{ (exit 1); exit 1; }; }
10743
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10744
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10745
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10746
echo $ECHO_N "(cached) $ECHO_C" >&6
10748
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
10749
case `$LD -v 2>&1 </dev/null` in
10750
*GNU* | *'with BFD'*)
10751
lt_cv_prog_gnu_ld=yes
10754
lt_cv_prog_gnu_ld=no
10758
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10759
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10760
with_gnu_ld=$lt_cv_prog_gnu_ld
10764
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10765
# archiving commands below assume that GNU ld is being used.
10766
if test "$with_gnu_ld" = yes; then
10767
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10768
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'
10770
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10771
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10773
# If archive_cmds runs LD, not CC, wlarc should be empty
10774
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10775
# investigate it a little bit more. (MM)
10778
# ancient GNU ld didn't support --whole-archive et. al.
10779
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10780
grep 'no-whole-archive' > /dev/null; then
10781
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10783
whole_archive_flag_spec_CXX=
10789
# A generic and very simple default shared library creation
10790
# command for GNU C++ for the case where it uses the native
10791
# linker, instead of GNU ld. If possible, this setting should
10792
# overridden to take advantage of the native linker features on
10793
# the platform it is being used on.
10794
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10797
# Commands to make compiler produce verbose output that lists
10798
# what "hidden" libraries, object files and flags are used when
10799
# linking a shared library.
10800
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10808
# PORTME: fill in a description of your system's C++ link characteristics
10809
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10810
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10814
# FIXME: insert proper C++ library support
10818
if test "$host_cpu" = ia64; then
10819
# On IA64, the linker does run time linking by default, so we don't
10820
# have to do anything special.
10821
aix_use_runtimelinking=no
10822
exp_sym_flag='-Bexport'
10825
aix_use_runtimelinking=no
10827
# Test if we are trying to use run time linking or normal
10828
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10829
# need to do runtime linking.
10830
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10831
for ld_flag in $LDFLAGS; do
10834
aix_use_runtimelinking=yes
10841
exp_sym_flag='-bexport'
10842
no_entry_flag='-bnoentry'
10845
# When large executables or shared objects are built, AIX ld can
10846
# have problems creating the table of contents. If linking a library
10847
# or program results in "error TOC overflow" add -mminimal-toc to
10848
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10849
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10851
archive_cmds_CXX=''
10852
hardcode_direct_CXX=yes
10853
hardcode_libdir_separator_CXX=':'
10854
link_all_deplibs_CXX=yes
10856
if test "$GXX" = yes; then
10857
case $host_os in aix4.012|aix4.012.*)
10858
# We only want to do this on AIX 4.2 and lower, the check
10859
# below for broken collect2 doesn't work under 4.3+
10860
collect2name=`${CC} -print-prog-name=collect2`
10861
if test -f "$collect2name" && \
10862
strings "$collect2name" | grep resolve_lib_name >/dev/null
10864
# We have reworked collect2
10865
hardcode_direct_CXX=yes
10867
# We have old collect2
10868
hardcode_direct_CXX=unsupported
10869
# It fails to find uninstalled libraries when the uninstalled
10870
# path is not listed in the libpath. Setting hardcode_minus_L
10871
# to unsupported forces relinking
10872
hardcode_minus_L_CXX=yes
10873
hardcode_libdir_flag_spec_CXX='-L$libdir'
10874
hardcode_libdir_separator_CXX=
10877
shared_flag='-shared'
10880
if test "$host_cpu" = ia64; then
10881
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10882
# chokes on -Wl,-G. The following line is correct:
10885
if test "$aix_use_runtimelinking" = yes; then
10886
shared_flag='${wl}-G'
10888
shared_flag='${wl}-bM:SRE'
10893
# It seems that -bexpall does not export symbols beginning with
10894
# underscore (_), so it is better to generate a list of symbols to export.
10895
always_export_symbols_CXX=yes
10896
if test "$aix_use_runtimelinking" = yes; then
10897
# Warning - without using the other runtime loading flags (-brtl),
10898
# -berok will link without error, but may produce a broken library.
10899
allow_undefined_flag_CXX='-berok'
10900
# Determine the default libpath from the value encoded in an empty executable.
10901
cat >conftest.$ac_ext <<_ACEOF
10904
cat confdefs.h >>conftest.$ac_ext
10905
cat >>conftest.$ac_ext <<_ACEOF
10906
/* end confdefs.h. */
10916
rm -f conftest.$ac_objext conftest$ac_exeext
10917
if { (ac_try="$ac_link"
10918
case "(($ac_try" in
10919
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920
*) ac_try_echo=$ac_try;;
10922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923
(eval "$ac_link") 2>conftest.er1
10925
grep -v '^ *+' conftest.er1 >conftest.err
10927
cat conftest.err >&5
10928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929
(exit $ac_status); } && {
10930
test -z "$ac_cxx_werror_flag" ||
10931
test ! -s conftest.err
10932
} && test -s conftest$ac_exeext &&
10933
$as_test_x conftest$ac_exeext; then
10935
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10937
# Check for a 64-bit object if we didn't find anything.
10938
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10941
echo "$as_me: failed program was:" >&5
10942
sed 's/^/| /' conftest.$ac_ext >&5
10947
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10948
conftest$ac_exeext conftest.$ac_ext
10949
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10951
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10953
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10955
if test "$host_cpu" = ia64; then
10956
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10957
allow_undefined_flag_CXX="-z nodefs"
10958
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10960
# Determine the default libpath from the value encoded in an empty executable.
10961
cat >conftest.$ac_ext <<_ACEOF
10964
cat confdefs.h >>conftest.$ac_ext
10965
cat >>conftest.$ac_ext <<_ACEOF
10966
/* end confdefs.h. */
10976
rm -f conftest.$ac_objext conftest$ac_exeext
10977
if { (ac_try="$ac_link"
10978
case "(($ac_try" in
10979
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980
*) ac_try_echo=$ac_try;;
10982
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983
(eval "$ac_link") 2>conftest.er1
10985
grep -v '^ *+' conftest.er1 >conftest.err
10987
cat conftest.err >&5
10988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989
(exit $ac_status); } && {
10990
test -z "$ac_cxx_werror_flag" ||
10991
test ! -s conftest.err
10992
} && test -s conftest$ac_exeext &&
10993
$as_test_x conftest$ac_exeext; then
10995
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10997
# Check for a 64-bit object if we didn't find anything.
10998
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11001
echo "$as_me: failed program was:" >&5
11002
sed 's/^/| /' conftest.$ac_ext >&5
11007
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008
conftest$ac_exeext conftest.$ac_ext
11009
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11011
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11012
# Warning - without using the other run time loading flags,
11013
# -berok will link without error, but may produce a broken library.
11014
no_undefined_flag_CXX=' ${wl}-bernotok'
11015
allow_undefined_flag_CXX=' ${wl}-berok'
11016
# -bexpall does not export symbols beginning with underscore (_)
11017
always_export_symbols_CXX=yes
11018
# Exported symbols can be pulled into shared objects from archives
11019
whole_archive_flag_spec_CXX=' '
11020
archive_cmds_need_lc_CXX=yes
11021
# This is similar to how AIX traditionally builds it's shared libraries.
11022
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11027
case $cc_basename in
11029
# FIXME: insert proper C++ library support
11035
cygwin* | mingw* | pw32*)
11036
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11037
# as there is no search path for DLLs.
11038
hardcode_libdir_flag_spec_CXX='-L$libdir'
11039
allow_undefined_flag_CXX=unsupported
11040
always_export_symbols_CXX=no
11041
enable_shared_with_static_runtimes_CXX=yes
11043
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11044
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11045
# If the export-symbols file already is a .def file (1st line
11046
# is EXPORTS), use it as is; otherwise, prepend...
11047
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11048
cp $export_symbols $output_objdir/$soname.def;
11050
echo EXPORTS > $output_objdir/$soname.def;
11051
cat $export_symbols >> $output_objdir/$soname.def;
11053
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11059
darwin* | rhapsody*)
11060
if test "$GXX" = yes; then
11061
archive_cmds_need_lc_CXX=no
11063
rhapsody* | darwin1.[012])
11064
allow_undefined_flag_CXX='-undefined suppress'
11067
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11068
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11070
case ${MACOSX_DEPLOYMENT_TARGET} in
11072
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11075
allow_undefined_flag_CXX='-undefined dynamic_lookup'
11081
lt_int_apple_cc_single_mod=no
11082
output_verbose_link_cmd='echo'
11083
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11084
lt_int_apple_cc_single_mod=yes
11086
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11087
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11089
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
11091
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11093
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11094
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11095
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}'
11097
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
11099
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}'
11100
hardcode_direct_CXX=no
11101
hardcode_automatic_CXX=yes
11102
hardcode_shlibpath_var_CXX=unsupported
11103
whole_archive_flag_spec_CXX='-all_load $convenience'
11104
link_all_deplibs_CXX=yes
11111
case $cc_basename in
11113
# FIXME: insert proper C++ library support
11117
# Green Hills C++ Compiler
11118
# FIXME: insert proper C++ library support
11122
# FIXME: insert proper C++ library support
11128
# C++ shared libraries reported to be fairly broken before switch to ELF
11132
archive_cmds_need_lc_CXX=no
11134
freebsd* | kfreebsd*-gnu)
11135
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11142
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11143
hardcode_libdir_separator_CXX=:
11144
export_dynamic_flag_spec_CXX='${wl}-E'
11145
hardcode_direct_CXX=yes
11146
hardcode_minus_L_CXX=yes # Not in the search PATH,
11147
# but as the default
11148
# location of the library.
11150
case $cc_basename in
11152
# FIXME: insert proper C++ library support
11156
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'
11157
# Commands to make compiler produce verbose output that lists
11158
# what "hidden" libraries, object files and flags are used when
11159
# linking a shared library.
11161
# There doesn't appear to be a way to prevent this compiler from
11162
# explicitly linking system object files so we need to strip them
11163
# from the output so that they don't get included in the library
11165
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'
11168
if test "$GXX" = yes; then
11169
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'
11171
# FIXME: insert proper C++ library support
11178
if test $with_gnu_ld = no; then
11179
case "$host_cpu" in
11181
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11182
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11183
hardcode_libdir_separator_CXX=:
11186
hardcode_libdir_flag_spec_CXX='-L$libdir'
11189
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11190
hardcode_libdir_separator_CXX=:
11191
export_dynamic_flag_spec_CXX='${wl}-E'
11195
case "$host_cpu" in
11197
hardcode_direct_CXX=no
11198
hardcode_shlibpath_var_CXX=no
11201
hardcode_direct_CXX=no
11202
hardcode_shlibpath_var_CXX=no
11203
hardcode_minus_L_CXX=yes # Not in the search PATH,
11204
# but as the default
11205
# location of the library.
11208
hardcode_direct_CXX=yes
11209
hardcode_minus_L_CXX=yes # Not in the search PATH,
11210
# but as the default
11211
# location of the library.
11215
case $cc_basename in
11217
# FIXME: insert proper C++ library support
11221
case "$host_cpu" in
11223
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11226
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11229
# Commands to make compiler produce verbose output that lists
11230
# what "hidden" libraries, object files and flags are used when
11231
# linking a shared library.
11233
# There doesn't appear to be a way to prevent this compiler from
11234
# explicitly linking system object files so we need to strip them
11235
# from the output so that they don't get included in the library
11237
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'
11240
if test "$GXX" = yes; then
11241
if test $with_gnu_ld = no; then
11242
case "$host_cpu" in
11244
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11247
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'
11252
# FIXME: insert proper C++ library support
11259
case $cc_basename in
11262
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 ${objdir}/so_locations -o $lib'
11264
# Archives containing C++ object files must be created using
11265
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11266
# necessary to make sure instantiated templates are included
11268
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11271
if test "$GXX" = yes; then
11272
if test "$with_gnu_ld" = no; then
11273
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}${objdir}/so_locations -o $lib'
11275
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'
11278
link_all_deplibs_CXX=yes
11281
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11282
hardcode_libdir_separator_CXX=:
11285
case $cc_basename in
11287
# Kuck and Associates, Inc. (KAI) C++ Compiler
11289
# KCC will only create a shared library if the output file
11290
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11291
# to its proper name (with version) after linking.
11292
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'
11293
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'
11294
# Commands to make compiler produce verbose output that lists
11295
# what "hidden" libraries, object files and flags are used when
11296
# linking a shared library.
11298
# There doesn't appear to be a way to prevent this compiler from
11299
# explicitly linking system object files so we need to strip them
11300
# from the output so that they don't get included in the library
11302
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'
11304
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11305
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11307
# Archives containing C++ object files must be created using
11308
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11309
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11314
archive_cmds_need_lc_CXX=no
11315
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11316
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'
11317
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11318
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11319
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11323
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11324
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'
11326
runpath_var=LD_RUN_PATH
11327
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11328
hardcode_libdir_separator_CXX=:
11330
# Commands to make compiler produce verbose output that lists
11331
# what "hidden" libraries, object files and flags are used when
11332
# linking a shared library.
11334
# There doesn't appear to be a way to prevent this compiler from
11335
# explicitly linking system object files so we need to strip them
11336
# from the output so that they don't get included in the library
11338
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'
11343
# FIXME: insert proper C++ library support
11347
# FIXME: insert proper C++ library support
11351
case $cc_basename in
11353
# FIXME: insert proper C++ library support
11357
# FIXME: insert proper C++ library support
11362
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11363
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11364
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11366
hardcode_libdir_flag_spec_CXX='-R$libdir'
11367
hardcode_direct_CXX=yes
11368
hardcode_shlibpath_var_CXX=no
11370
# Workaround some broken pre-1.5 toolchains
11371
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11374
case $cc_basename in
11376
# Kuck and Associates, Inc. (KAI) C++ Compiler
11378
# KCC will only create a shared library if the output file
11379
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11380
# to its proper name (with version) after linking.
11381
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'
11383
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11384
hardcode_libdir_separator_CXX=:
11386
# Archives containing C++ object files must be created using
11387
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11388
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11392
# Rational C++ 2.4.1
11393
# FIXME: insert proper C++ library support
11397
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11398
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 ${objdir}/so_locations -o $lib'
11400
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11401
hardcode_libdir_separator_CXX=:
11403
# Commands to make compiler produce verbose output that lists
11404
# what "hidden" libraries, object files and flags are used when
11405
# linking a shared library.
11407
# There doesn't appear to be a way to prevent this compiler from
11408
# explicitly linking system object files so we need to strip them
11409
# from the output so that they don't get included in the library
11411
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'
11414
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11415
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11416
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}${objdir}/so_locations -o $lib'
11418
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11419
hardcode_libdir_separator_CXX=:
11421
# Commands to make compiler produce verbose output that lists
11422
# what "hidden" libraries, object files and flags are used when
11423
# linking a shared library.
11424
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11427
# FIXME: insert proper C++ library support
11434
case $cc_basename in
11436
# Kuck and Associates, Inc. (KAI) C++ Compiler
11438
# KCC will only create a shared library if the output file
11439
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11440
# to its proper name (with version) after linking.
11441
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'
11443
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11444
hardcode_libdir_separator_CXX=:
11446
# Archives containing C++ object files must be created using
11447
# the KAI C++ compiler.
11448
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11451
# Rational C++ 2.4.1
11452
# FIXME: insert proper C++ library support
11456
allow_undefined_flag_CXX=' -expect_unresolved \*'
11457
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 ${objdir}/so_locations -o $lib'
11458
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11459
echo "-hidden">> $lib.exp~
11460
$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 $objdir/so_locations -o $lib~
11463
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11464
hardcode_libdir_separator_CXX=:
11466
# Commands to make compiler produce verbose output that lists
11467
# what "hidden" libraries, object files and flags are used when
11468
# linking a shared library.
11470
# There doesn't appear to be a way to prevent this compiler from
11471
# explicitly linking system object files so we need to strip them
11472
# from the output so that they don't get included in the library
11474
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'
11477
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11478
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11479
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}${objdir}/so_locations -o $lib'
11481
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11482
hardcode_libdir_separator_CXX=:
11484
# Commands to make compiler produce verbose output that lists
11485
# what "hidden" libraries, object files and flags are used when
11486
# linking a shared library.
11487
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11490
# FIXME: insert proper C++ library support
11497
# FIXME: insert proper C++ library support
11501
archive_cmds_need_lc_CXX=no
11502
case $cc_basename in
11504
# FIXME: insert proper C++ library support
11508
# FIXME: insert proper C++ library support
11514
case $cc_basename in
11517
# FIXME: insert proper C++ library support
11522
# FIXME: insert proper C++ library support
11526
# FIXME: insert proper C++ library support
11532
case $cc_basename in
11534
# Sun C++ 4.2, 5.x and Centerline C++
11535
no_undefined_flag_CXX=' -zdefs'
11536
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11537
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11538
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11540
hardcode_libdir_flag_spec_CXX='-R$libdir'
11541
hardcode_shlibpath_var_CXX=no
11543
solaris2.0-5 | solaris2.0-5.*) ;;
11545
# The C++ compiler is used as linker so we must use $wl
11546
# flag to pass the commands to the underlying system
11548
# Supported since Solaris 2.6 (maybe 2.5.1?)
11549
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11552
link_all_deplibs_CXX=yes
11554
# Commands to make compiler produce verbose output that lists
11555
# what "hidden" libraries, object files and flags are used when
11556
# linking a shared library.
11558
# There doesn't appear to be a way to prevent this compiler from
11559
# explicitly linking system object files so we need to strip them
11560
# from the output so that they don't get included in the library
11562
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11564
# Archives containing C++ object files must be created using
11565
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11566
# necessary to make sure instantiated templates are included
11568
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11571
# Green Hills C++ Compiler
11572
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11574
# The C++ compiler must be used to create the archive.
11575
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11578
# GNU C++ compiler with Solaris linker
11579
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11580
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11581
if $CC --version | grep -v '^2\.7' > /dev/null; then
11582
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11583
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11584
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11586
# Commands to make compiler produce verbose output that lists
11587
# what "hidden" libraries, object files and flags are used when
11588
# linking a shared library.
11589
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11591
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11593
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11594
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11595
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11597
# Commands to make compiler produce verbose output that lists
11598
# what "hidden" libraries, object files and flags are used when
11599
# linking a shared library.
11600
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11603
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11608
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11609
archive_cmds_need_lc_CXX=no
11612
case $cc_basename in
11614
# NonStop-UX NCC 3.20
11615
# FIXME: insert proper C++ library support
11619
# FIXME: insert proper C++ library support
11625
# FIXME: insert proper C++ library support
11629
# FIXME: insert proper C++ library support
11633
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11634
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11635
test "$ld_shlibs_CXX" = no && can_build_shared=no
11641
cat > conftest.$ac_ext <<EOF
11645
Foo (void) { a = 0; }
11651
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11652
(eval $ac_compile) 2>&5
11654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655
(exit $ac_status); }; then
11656
# Parse the compiler output and extract the necessary
11657
# objects, libraries and library flags.
11659
# Sentinel used to keep track of whether or not we are before
11660
# the conftest object file.
11661
pre_test_object_deps_done=no
11663
# The `*' in the case matches for architectures that use `case' in
11664
# $output_verbose_cmd can trigger glob expansion during the loop
11665
# eval without this substitution.
11666
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11668
for p in `eval $output_verbose_link_cmd`; do
11672
# Some compilers place space between "-{L,R}" and the path.
11673
# Remove the space.
11674
if test $p = "-L" \
11675
|| test $p = "-R"; then
11682
if test "$pre_test_object_deps_done" = no; then
11685
# Internal compiler library paths should come after those
11686
# provided the user. The postdeps already come after the
11687
# user supplied libs so there is no need to process them.
11688
if test -z "$compiler_lib_search_path_CXX"; then
11689
compiler_lib_search_path_CXX="${prev}${p}"
11691
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11694
# The "-l" case would never come before the object being
11695
# linked, so don't bother handling this case.
11698
if test -z "$postdeps_CXX"; then
11699
postdeps_CXX="${prev}${p}"
11701
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11707
# This assumes that the test object file only shows up
11708
# once in the compiler output.
11709
if test "$p" = "conftest.$objext"; then
11710
pre_test_object_deps_done=yes
11714
if test "$pre_test_object_deps_done" = no; then
11715
if test -z "$predep_objects_CXX"; then
11716
predep_objects_CXX="$p"
11718
predep_objects_CXX="$predep_objects_CXX $p"
11721
if test -z "$postdep_objects_CXX"; then
11722
postdep_objects_CXX="$p"
11724
postdep_objects_CXX="$postdep_objects_CXX $p"
11729
*) ;; # Ignore the rest.
11737
echo "libtool.m4: error: problem compiling CXX test program"
11740
$rm -f confest.$objext
11742
case " $postdeps_CXX " in
11743
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11746
lt_prog_compiler_wl_CXX=
11747
lt_prog_compiler_pic_CXX=
11748
lt_prog_compiler_static_CXX=
11750
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11751
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11753
# C++ specific cases for pic, static, wl, etc.
11754
if test "$GXX" = yes; then
11755
lt_prog_compiler_wl_CXX='-Wl,'
11756
lt_prog_compiler_static_CXX='-static'
11760
# All AIX code is PIC.
11761
if test "$host_cpu" = ia64; then
11762
# AIX 5 now supports IA64 processor
11763
lt_prog_compiler_static_CXX='-Bstatic'
11767
# FIXME: we need at least 68020 code to build shared libraries, but
11768
# adding the `-m68020' flag to GCC prevents building anything better,
11770
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11772
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11773
# PIC is the default for these OSes.
11775
mingw* | os2* | pw32*)
11776
# This hack is so that the source file can tell whether it is being
11777
# built for inclusion in a dll (and should export symbols for example).
11778
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11780
darwin* | rhapsody*)
11781
# PIC is the default on this platform
11782
# Common symbols not allowed in MH_DYLIB files
11783
lt_prog_compiler_pic_CXX='-fno-common'
11786
# DJGPP does not support shared libraries at all
11787
lt_prog_compiler_pic_CXX=
11790
if test -d /usr/nec; then
11791
lt_prog_compiler_pic_CXX=-Kconform_pic
11795
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11796
# not for PA HP-UX.
11797
case "$host_cpu" in
11801
lt_prog_compiler_pic_CXX='-fPIC'
11806
lt_prog_compiler_pic_CXX='-fPIC'
11812
# All AIX code is PIC.
11813
if test "$host_cpu" = ia64; then
11814
# AIX 5 now supports IA64 processor
11815
lt_prog_compiler_static_CXX='-Bstatic'
11817
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11821
case $cc_basename in
11823
# Green Hills C++ Compiler
11824
# _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"
11829
case $cc_basename in
11831
lt_prog_compiler_pic_CXX='-KPIC'
11834
# Green Hills C++ Compiler
11835
lt_prog_compiler_pic_CXX='-pic'
11841
freebsd* | kfreebsd*-gnu)
11842
# FreeBSD uses GNU C++
11844
hpux9* | hpux10* | hpux11*)
11845
case $cc_basename in
11847
lt_prog_compiler_wl_CXX='-Wl,'
11848
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11849
if test "$host_cpu" != ia64; then
11850
lt_prog_compiler_pic_CXX='+Z'
11854
lt_prog_compiler_wl_CXX='-Wl,'
11855
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11856
case "$host_cpu" in
11861
lt_prog_compiler_pic_CXX='+Z'
11869
irix5* | irix6* | nonstopux*)
11870
case $cc_basename in
11872
lt_prog_compiler_wl_CXX='-Wl,'
11873
lt_prog_compiler_static_CXX='-non_shared'
11874
# CC pic flag -KPIC is the default.
11881
case $cc_basename in
11884
lt_prog_compiler_wl_CXX='--backend -Wl,'
11885
lt_prog_compiler_pic_CXX='-fPIC'
11889
lt_prog_compiler_wl_CXX='-Wl,'
11890
lt_prog_compiler_pic_CXX='-KPIC'
11891
lt_prog_compiler_static_CXX='-static'
11895
# Make sure the PIC flag is empty. It appears that all Alpha
11896
# Linux and Compaq Tru64 Unix objects are PIC.
11897
lt_prog_compiler_pic_CXX=
11898
lt_prog_compiler_static_CXX='-non_shared'
11909
case $cc_basename in
11911
lt_prog_compiler_pic_CXX='-W c,exportall'
11917
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11919
osf3* | osf4* | osf5*)
11920
case $cc_basename in
11922
lt_prog_compiler_wl_CXX='--backend -Wl,'
11925
# Rational C++ 2.4.1
11926
lt_prog_compiler_pic_CXX='-pic'
11929
# Digital/Compaq C++
11930
lt_prog_compiler_wl_CXX='-Wl,'
11931
# Make sure the PIC flag is empty. It appears that all Alpha
11932
# Linux and Compaq Tru64 Unix objects are PIC.
11933
lt_prog_compiler_pic_CXX=
11934
lt_prog_compiler_static_CXX='-non_shared'
11943
case $cc_basename in
11945
lt_prog_compiler_pic_CXX='-fPIC'
11952
case $cc_basename in
11954
# Sun C++ 4.2, 5.x and Centerline C++
11955
lt_prog_compiler_pic_CXX='-KPIC'
11956
lt_prog_compiler_static_CXX='-Bstatic'
11957
lt_prog_compiler_wl_CXX='-Qoption ld '
11960
# Green Hills C++ Compiler
11961
lt_prog_compiler_pic_CXX='-PIC'
11968
case $cc_basename in
11971
lt_prog_compiler_pic_CXX='-pic'
11972
lt_prog_compiler_static_CXX='-Bstatic'
11976
lt_prog_compiler_pic_CXX='-pic'
11983
case $cc_basename in
11985
# NonStop-UX NCC 3.20
11986
lt_prog_compiler_pic_CXX='-KPIC'
11997
lt_prog_compiler_can_build_shared_CXX=no
12002
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12003
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12006
# Check to make sure the PIC flag actually works.
12008
if test -n "$lt_prog_compiler_pic_CXX"; then
12010
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12011
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12012
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12013
echo $ECHO_N "(cached) $ECHO_C" >&6
12015
lt_prog_compiler_pic_works_CXX=no
12016
ac_outfile=conftest.$ac_objext
12017
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12018
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12019
# Insert the option either (1) after the last *FLAGS variable, or
12020
# (2) before a word containing "conftest.", or (3) at the end.
12021
# Note that $ac_compile itself does not contain backslashes and begins
12022
# with a dollar sign (not a hyphen), so the echo should work correctly.
12023
# The option is referenced via a variable to avoid confusing sed.
12024
lt_compile=`echo "$ac_compile" | $SED \
12025
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12026
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12027
-e 's:$: $lt_compiler_flag:'`
12028
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12029
(eval "$lt_compile" 2>conftest.err)
12031
cat conftest.err >&5
12032
echo "$as_me:__oline__: \$? = $ac_status" >&5
12033
if (exit $ac_status) && test -s "$ac_outfile"; then
12034
# The compiler can only warn and ignore the option if not recognized
12035
# So say no if there are warnings
12036
if test ! -s conftest.err; then
12037
lt_prog_compiler_pic_works_CXX=yes
12043
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12044
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12046
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12047
case $lt_prog_compiler_pic_CXX in
12049
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12052
lt_prog_compiler_pic_CXX=
12053
lt_prog_compiler_can_build_shared_CXX=no
12058
# For platforms which do not support PIC, -DPIC is meaningless:
12060
lt_prog_compiler_pic_CXX=
12063
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12067
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12068
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12069
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12070
echo $ECHO_N "(cached) $ECHO_C" >&6
12072
lt_cv_prog_compiler_c_o_CXX=no
12073
$rm -r conftest 2>/dev/null
12077
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12079
lt_compiler_flag="-o out/conftest2.$ac_objext"
12080
# Insert the option either (1) after the last *FLAGS variable, or
12081
# (2) before a word containing "conftest.", or (3) at the end.
12082
# Note that $ac_compile itself does not contain backslashes and begins
12083
# with a dollar sign (not a hyphen), so the echo should work correctly.
12084
lt_compile=`echo "$ac_compile" | $SED \
12085
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12086
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12087
-e 's:$: $lt_compiler_flag:'`
12088
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12089
(eval "$lt_compile" 2>out/conftest.err)
12091
cat out/conftest.err >&5
12092
echo "$as_me:__oline__: \$? = $ac_status" >&5
12093
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12095
# The compiler can only warn and ignore the option if not recognized
12096
# So say no if there are warnings
12097
if test ! -s out/conftest.err; then
12098
lt_cv_prog_compiler_c_o_CXX=yes
12103
# SGI C++ compiler will create directory out/ii_files/ for
12104
# template instantiation
12105
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12106
$rm out/* && rmdir out
12112
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12113
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12116
hard_links="nottested"
12117
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12118
# do not overwrite the value of need_locks provided by the user
12119
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12120
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12123
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12125
ln conftest.a conftest.b 2>&5 || hard_links=no
12126
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12127
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12128
echo "${ECHO_T}$hard_links" >&6; }
12129
if test "$hard_links" = no; then
12130
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12131
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12138
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12139
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12141
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12144
# If we're using GNU nm, then we don't want the "-C" option.
12145
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12146
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12147
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'
12149
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'
12153
export_symbols_cmds_CXX="$ltdll_cmds"
12156
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12159
link_all_deplibs_CXX=no
12162
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12166
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12167
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12168
test "$ld_shlibs_CXX" = no && can_build_shared=no
12170
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12171
if test "$GCC" = yes; then
12172
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12176
# Do we need to explicitly link libc?
12178
case "x$archive_cmds_need_lc_CXX" in
12180
# Assume -lc should be added
12181
archive_cmds_need_lc_CXX=yes
12183
if test "$enable_shared" = yes && test "$GCC" = yes; then
12184
case $archive_cmds_CXX in
12186
# FIXME: we may have to deal with multi-command sequences.
12189
# Test whether the compiler implicitly links with -lc since on some
12190
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12191
# to ld, don't add -lc before -lgcc.
12192
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12193
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12195
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12197
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12198
(eval $ac_compile) 2>&5
12200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201
(exit $ac_status); } 2>conftest.err; then
12204
libobjs=conftest.$ac_objext
12206
wl=$lt_prog_compiler_wl_CXX
12212
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12213
allow_undefined_flag_CXX=
12214
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12215
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218
(exit $ac_status); }
12220
archive_cmds_need_lc_CXX=no
12222
archive_cmds_need_lc_CXX=yes
12224
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12226
cat conftest.err 1>&5
12229
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12230
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12237
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12238
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12239
library_names_spec=
12240
libname_spec='lib$name'
12244
postuninstall_cmds=
12248
shlibpath_overrides_runpath=unknown
12250
dynamic_linker="$host_os ld.so"
12251
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12252
if test "$GCC" = yes; then
12253
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12254
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12255
# if the path contains ";" then we assume it to be the separator
12256
# otherwise default to the standard path separator (i.e. ":") - it is
12257
# assumed that no part of a normal pathname contains ";" but that should
12258
# okay in the real world where ";" in dirpaths is itself problematic.
12259
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12261
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12264
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12266
need_lib_prefix=unknown
12267
hardcode_into_libs=no
12269
# when you set need_version to no, make sure it does not cause -set_version
12270
# flags to be left without arguments
12271
need_version=unknown
12276
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12277
shlibpath_var=LIBPATH
12279
# AIX 3 has no versioning support, so we append a major version to the name.
12280
soname_spec='${libname}${release}${shared_ext}$major'
12287
hardcode_into_libs=yes
12288
if test "$host_cpu" = ia64; then
12289
# AIX 5 supports IA64
12290
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12291
shlibpath_var=LD_LIBRARY_PATH
12293
# With GCC up to 2.95.x, collect2 would create an import file
12294
# for dependence libraries. The import file would start with
12295
# the line `#! .'. This would cause the generated library to
12296
# depend on `.', always an invalid library. This was fixed in
12297
# development snapshots of GCC prior to 3.0.
12299
aix4 | aix4.[01] | aix4.[01].*)
12300
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12302
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12305
can_build_shared=no
12309
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12310
# soname into executable. Probably we can add versioning support to
12311
# collect2, so additional links can be useful in future.
12312
if test "$aix_use_runtimelinking" = yes; then
12313
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12314
# instead of lib<name>.a to let people know that these are not
12315
# typical AIX shared libraries.
12316
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12318
# We preserve .a as extension for shared libraries through AIX4.2
12319
# and later when we are not doing run time linking.
12320
library_names_spec='${libname}${release}.a $libname.a'
12321
soname_spec='${libname}${release}${shared_ext}$major'
12323
shlibpath_var=LIBPATH
12328
library_names_spec='$libname.ixlibrary $libname.a'
12329
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12330
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'
12334
library_names_spec='${libname}${shared_ext}'
12335
dynamic_linker="$host_os ld.so"
12336
shlibpath_var=LIBRARY_PATH
12342
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12343
soname_spec='${libname}${release}${shared_ext}$major'
12344
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12345
shlibpath_var=LD_LIBRARY_PATH
12346
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12347
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12348
# the default ld.so.conf also contains /usr/contrib/lib and
12349
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12350
# libtool to hard-code these into programs
12353
cygwin* | mingw* | pw32*)
12354
version_type=windows
12359
case $GCC,$host_os in
12360
yes,cygwin* | yes,mingw* | yes,pw32*)
12361
library_names_spec='$libname.dll.a'
12362
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12363
postinstall_cmds='base_file=`basename \${file}`~
12364
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12365
dldir=$destdir/`dirname \$dlpath`~
12366
test -d \$dldir || mkdir -p \$dldir~
12367
$install_prog $dir/$dlname \$dldir/$dlname'
12368
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12369
dlpath=$dir/\$dldll~
12371
shlibpath_overrides_runpath=yes
12375
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12376
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12377
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12380
# MinGW DLLs use traditional 'lib' prefix
12381
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12382
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12383
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12384
# It is most probably a Windows format PATH printed by
12385
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12386
# path with ; separators, and with drive letters. We can handle the
12387
# drive letters (cygwin fileutils understands them), so leave them,
12388
# especially as we might pass files found there to a mingw objdump,
12389
# which wouldn't understand a cygwinified path. Ahh.
12390
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12392
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12396
# pw32 DLLs use 'pw' prefix rather than 'lib'
12397
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12403
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12406
dynamic_linker='Win32 ld.exe'
12407
# FIXME: first we should search . and the directory the executable is in
12411
darwin* | rhapsody*)
12412
dynamic_linker="$host_os dyld"
12413
version_type=darwin
12416
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12417
soname_spec='${libname}${release}${major}$shared_ext'
12418
shlibpath_overrides_runpath=yes
12419
shlibpath_var=DYLD_LIBRARY_PATH
12420
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12421
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12422
if test "$GCC" = yes; then
12423
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12425
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12427
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12434
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12435
soname_spec='${libname}${release}${shared_ext}$major'
12436
shlibpath_var=LD_LIBRARY_PATH
12447
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12448
soname_spec='${libname}${release}${shared_ext}$major'
12449
shlibpath_var=LD_LIBRARY_PATH
12450
shlibpath_overrides_runpath=no
12451
hardcode_into_libs=yes
12452
dynamic_linker='GNU ld.so'
12456
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12457
version_type=freebsd-$objformat
12458
case $version_type in
12460
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12465
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12469
shlibpath_var=LD_LIBRARY_PATH
12472
shlibpath_overrides_runpath=yes
12474
freebsd3.01* | freebsdelf3.01*)
12475
shlibpath_overrides_runpath=yes
12476
hardcode_into_libs=yes
12479
shlibpath_overrides_runpath=no
12480
hardcode_into_libs=yes
12489
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12490
soname_spec='${libname}${release}${shared_ext}$major'
12491
shlibpath_var=LD_LIBRARY_PATH
12492
hardcode_into_libs=yes
12495
hpux9* | hpux10* | hpux11*)
12496
# Give a soname corresponding to the major version so that dld.sl refuses to
12497
# link against other versions.
12501
case "$host_cpu" in
12504
hardcode_into_libs=yes
12505
dynamic_linker="$host_os dld.so"
12506
shlibpath_var=LD_LIBRARY_PATH
12507
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12508
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12509
soname_spec='${libname}${release}${shared_ext}$major'
12510
if test "X$HPUX_IA64_MODE" = X32; then
12511
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12513
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12515
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12519
hardcode_into_libs=yes
12520
dynamic_linker="$host_os dld.sl"
12521
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12522
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12523
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12524
soname_spec='${libname}${release}${shared_ext}$major'
12525
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12526
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12530
dynamic_linker="$host_os dld.sl"
12531
shlibpath_var=SHLIB_PATH
12532
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12533
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12534
soname_spec='${libname}${release}${shared_ext}$major'
12537
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12538
postinstall_cmds='chmod 555 $lib'
12541
irix5* | irix6* | nonstopux*)
12543
nonstopux*) version_type=nonstopux ;;
12545
if test "$lt_cv_prog_gnu_ld" = yes; then
12553
soname_spec='${libname}${release}${shared_ext}$major'
12554
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12556
irix5* | nonstopux*)
12557
libsuff= shlibsuff=
12560
case $LD in # libtool.m4 will add one of these switches to LD
12561
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12562
libsuff= shlibsuff= libmagic=32-bit;;
12563
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12564
libsuff=32 shlibsuff=N32 libmagic=N32;;
12565
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12566
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12567
*) libsuff= shlibsuff= libmagic=never-match;;
12571
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12572
shlibpath_overrides_runpath=no
12573
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12574
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12575
hardcode_into_libs=yes
12578
# No shared lib support for Linux oldld, aout, or coff.
12579
linux*oldld* | linux*aout* | linux*coff*)
12583
# This must be Linux ELF.
12588
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12589
soname_spec='${libname}${release}${shared_ext}$major'
12590
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12591
shlibpath_var=LD_LIBRARY_PATH
12592
shlibpath_overrides_runpath=no
12593
# This implies no fast_install, which is unacceptable.
12594
# Some rework will be needed to allow for fast_install
12595
# before this can be enabled.
12596
hardcode_into_libs=yes
12598
# Append ld.so.conf contents to the search path
12599
if test -f /etc/ld.so.conf; then
12600
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12601
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12604
# We used to test for /lib/ld.so.1 and disable shared libraries on
12605
# powerpc, because MkLinux only supported shared libraries with the
12606
# GNU dynamic linker. Since this was broken with cross compilers,
12607
# most powerpc-linux boxes support dynamic linking these days and
12608
# people can always --disable-shared, the test was removed, and we
12609
# assume the GNU/Linux dynamic linker is in use.
12610
dynamic_linker='GNU/Linux ld.so'
12617
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12618
soname_spec='${libname}${release}${shared_ext}$major'
12619
shlibpath_var=LD_LIBRARY_PATH
12620
shlibpath_overrides_runpath=no
12621
hardcode_into_libs=yes
12622
dynamic_linker='NetBSD ld.elf_so'
12629
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12630
soname_spec='${libname}${release}${shared_ext}$major'
12631
shlibpath_var=LD_LIBRARY_PATH
12632
shlibpath_overrides_runpath=no
12633
hardcode_into_libs=yes
12634
dynamic_linker='GNU ld.so'
12641
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12642
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12643
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12644
dynamic_linker='NetBSD (a.out) ld.so'
12646
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12647
soname_spec='${libname}${release}${shared_ext}$major'
12648
dynamic_linker='NetBSD ld.elf_so'
12650
shlibpath_var=LD_LIBRARY_PATH
12651
shlibpath_overrides_runpath=yes
12652
hardcode_into_libs=yes
12657
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12658
shlibpath_var=LD_LIBRARY_PATH
12659
shlibpath_overrides_runpath=yes
12666
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12667
soname_spec='${libname}${release}${shared_ext}$major'
12668
shlibpath_var=LD_LIBRARY_PATH
12669
shlibpath_overrides_runpath=yes
12676
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12677
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12678
shlibpath_var=LD_LIBRARY_PATH
12679
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12681
openbsd2.[89] | openbsd2.[89].*)
12682
shlibpath_overrides_runpath=no
12685
shlibpath_overrides_runpath=yes
12689
shlibpath_overrides_runpath=yes
12694
libname_spec='$name'
12697
library_names_spec='$libname${shared_ext} $libname.a'
12698
dynamic_linker='OS/2 ld.exe'
12699
shlibpath_var=LIBPATH
12702
osf3* | osf4* | osf5*)
12706
soname_spec='${libname}${release}${shared_ext}$major'
12707
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12708
shlibpath_var=LD_LIBRARY_PATH
12709
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12710
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12715
soname_spec='${libname}${release}${shared_ext}$major'
12716
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12717
shlibpath_var=LD_LIBRARY_PATH
12724
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12725
soname_spec='${libname}${release}${shared_ext}$major'
12726
shlibpath_var=LD_LIBRARY_PATH
12727
shlibpath_overrides_runpath=yes
12728
hardcode_into_libs=yes
12729
# ldd complains unless libraries are executable
12730
postinstall_cmds='chmod +x $lib'
12735
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12736
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12737
shlibpath_var=LD_LIBRARY_PATH
12738
shlibpath_overrides_runpath=yes
12739
if test "$with_gnu_ld" = yes; then
12745
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12747
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12748
soname_spec='${libname}${release}${shared_ext}$major'
12749
shlibpath_var=LD_LIBRARY_PATH
12750
case $host_vendor in
12752
shlibpath_overrides_runpath=no
12754
export_dynamic_flag_spec='${wl}-Blargedynsym'
12755
runpath_var=LD_RUN_PATH
12763
shlibpath_overrides_runpath=no
12764
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12770
if test -d /usr/nec ;then
12772
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12773
soname_spec='$libname${shared_ext}.$major'
12774
shlibpath_var=LD_LIBRARY_PATH
12780
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12781
soname_spec='${libname}${release}${shared_ext}$major'
12782
shlibpath_var=LD_LIBRARY_PATH
12789
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12790
echo "${ECHO_T}$dynamic_linker" >&6; }
12791
test "$dynamic_linker" = no && can_build_shared=no
12793
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12794
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12795
hardcode_action_CXX=
12796
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12797
test -n "$runpath_var CXX" || \
12798
test "X$hardcode_automatic_CXX"="Xyes" ; then
12800
# We can hardcode non-existant directories.
12801
if test "$hardcode_direct_CXX" != no &&
12802
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12803
# have to relink, otherwise we might link with an installed library
12804
# when we should be linking with a yet-to-be-installed one
12805
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12806
test "$hardcode_minus_L_CXX" != no; then
12807
# Linking always hardcodes the temporary library directory.
12808
hardcode_action_CXX=relink
12810
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12811
hardcode_action_CXX=immediate
12814
# We cannot hardcode anything, or else we can only hardcode existing
12816
hardcode_action_CXX=unsupported
12818
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12819
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12821
if test "$hardcode_action_CXX" = relink; then
12822
# Fast installation is not supported
12823
enable_fast_install=no
12824
elif test "$shlibpath_overrides_runpath" = yes ||
12825
test "$enable_shared" = no; then
12826
# Fast installation is not necessary
12827
enable_fast_install=needless
12832
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12833
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12834
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12835
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12836
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12837
{ echo "$as_me:$LINENO: result: yes" >&5
12838
echo "${ECHO_T}yes" >&6; }
12840
# FIXME - insert some real tests, host_os isn't really good enough
12843
if test -n "$STRIP" ; then
12844
striplib="$STRIP -x"
12845
{ echo "$as_me:$LINENO: result: yes" >&5
12846
echo "${ECHO_T}yes" >&6; }
12848
{ echo "$as_me:$LINENO: result: no" >&5
12849
echo "${ECHO_T}no" >&6; }
12853
{ echo "$as_me:$LINENO: result: no" >&5
12854
echo "${ECHO_T}no" >&6; }
12859
if test "x$enable_dlopen" != xyes; then
12860
enable_dlopen=unknown
12861
enable_dlopen_self=unknown
12862
enable_dlopen_self_static=unknown
12869
lt_cv_dlopen="load_add_on"
12871
lt_cv_dlopen_self=yes
12875
lt_cv_dlopen="LoadLibrary"
12880
lt_cv_dlopen="dlopen"
12885
# if libdl is installed we need to link against it
12886
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12887
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12888
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12889
echo $ECHO_N "(cached) $ECHO_C" >&6
12891
ac_check_lib_save_LIBS=$LIBS
12893
cat >conftest.$ac_ext <<_ACEOF
12896
cat confdefs.h >>conftest.$ac_ext
12897
cat >>conftest.$ac_ext <<_ACEOF
12898
/* end confdefs.h. */
12900
/* Override any GCC internal prototype to avoid an error.
12901
Use char because int might match the return type of a GCC
12902
builtin and then its argument prototype would still apply. */
12915
rm -f conftest.$ac_objext conftest$ac_exeext
12916
if { (ac_try="$ac_link"
12917
case "(($ac_try" in
12918
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12919
*) ac_try_echo=$ac_try;;
12921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12922
(eval "$ac_link") 2>conftest.er1
12924
grep -v '^ *+' conftest.er1 >conftest.err
12926
cat conftest.err >&5
12927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928
(exit $ac_status); } && {
12929
test -z "$ac_cxx_werror_flag" ||
12930
test ! -s conftest.err
12931
} && test -s conftest$ac_exeext &&
12932
$as_test_x conftest$ac_exeext; then
12933
ac_cv_lib_dl_dlopen=yes
12935
echo "$as_me: failed program was:" >&5
12936
sed 's/^/| /' conftest.$ac_ext >&5
12938
ac_cv_lib_dl_dlopen=no
12941
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12942
conftest$ac_exeext conftest.$ac_ext
12943
LIBS=$ac_check_lib_save_LIBS
12945
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12946
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12947
if test $ac_cv_lib_dl_dlopen = yes; then
12948
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12951
lt_cv_dlopen="dyld"
12953
lt_cv_dlopen_self=yes
12960
{ echo "$as_me:$LINENO: checking for shl_load" >&5
12961
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12962
if test "${ac_cv_func_shl_load+set}" = set; then
12963
echo $ECHO_N "(cached) $ECHO_C" >&6
12965
cat >conftest.$ac_ext <<_ACEOF
12968
cat confdefs.h >>conftest.$ac_ext
12969
cat >>conftest.$ac_ext <<_ACEOF
12970
/* end confdefs.h. */
12971
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12972
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12973
#define shl_load innocuous_shl_load
12975
/* System header to define __stub macros and hopefully few prototypes,
12976
which can conflict with char shl_load (); below.
12977
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12978
<limits.h> exists even on freestanding compilers. */
12981
# include <limits.h>
12983
# include <assert.h>
12988
/* Override any GCC internal prototype to avoid an error.
12989
Use char because int might match the return type of a GCC
12990
builtin and then its argument prototype would still apply. */
12995
/* The GNU C library defines this for functions which it implements
12996
to always fail with ENOSYS. Some functions are actually named
12997
something starting with __ and the normal name is an alias. */
12998
#if defined __stub_shl_load || defined __stub___shl_load
13005
return shl_load ();
13010
rm -f conftest.$ac_objext conftest$ac_exeext
13011
if { (ac_try="$ac_link"
13012
case "(($ac_try" in
13013
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014
*) ac_try_echo=$ac_try;;
13016
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017
(eval "$ac_link") 2>conftest.er1
13019
grep -v '^ *+' conftest.er1 >conftest.err
13021
cat conftest.err >&5
13022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023
(exit $ac_status); } && {
13024
test -z "$ac_cxx_werror_flag" ||
13025
test ! -s conftest.err
13026
} && test -s conftest$ac_exeext &&
13027
$as_test_x conftest$ac_exeext; then
13028
ac_cv_func_shl_load=yes
13030
echo "$as_me: failed program was:" >&5
13031
sed 's/^/| /' conftest.$ac_ext >&5
13033
ac_cv_func_shl_load=no
13036
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13037
conftest$ac_exeext conftest.$ac_ext
13039
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13040
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13041
if test $ac_cv_func_shl_load = yes; then
13042
lt_cv_dlopen="shl_load"
13044
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13045
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13046
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13047
echo $ECHO_N "(cached) $ECHO_C" >&6
13049
ac_check_lib_save_LIBS=$LIBS
13051
cat >conftest.$ac_ext <<_ACEOF
13054
cat confdefs.h >>conftest.$ac_ext
13055
cat >>conftest.$ac_ext <<_ACEOF
13056
/* end confdefs.h. */
13058
/* Override any GCC internal prototype to avoid an error.
13059
Use char because int might match the return type of a GCC
13060
builtin and then its argument prototype would still apply. */
13068
return shl_load ();
13073
rm -f conftest.$ac_objext conftest$ac_exeext
13074
if { (ac_try="$ac_link"
13075
case "(($ac_try" in
13076
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077
*) ac_try_echo=$ac_try;;
13079
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080
(eval "$ac_link") 2>conftest.er1
13082
grep -v '^ *+' conftest.er1 >conftest.err
13084
cat conftest.err >&5
13085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086
(exit $ac_status); } && {
13087
test -z "$ac_cxx_werror_flag" ||
13088
test ! -s conftest.err
13089
} && test -s conftest$ac_exeext &&
13090
$as_test_x conftest$ac_exeext; then
13091
ac_cv_lib_dld_shl_load=yes
13093
echo "$as_me: failed program was:" >&5
13094
sed 's/^/| /' conftest.$ac_ext >&5
13096
ac_cv_lib_dld_shl_load=no
13099
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13100
conftest$ac_exeext conftest.$ac_ext
13101
LIBS=$ac_check_lib_save_LIBS
13103
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13104
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13105
if test $ac_cv_lib_dld_shl_load = yes; then
13106
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13108
{ echo "$as_me:$LINENO: checking for dlopen" >&5
13109
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13110
if test "${ac_cv_func_dlopen+set}" = set; then
13111
echo $ECHO_N "(cached) $ECHO_C" >&6
13113
cat >conftest.$ac_ext <<_ACEOF
13116
cat confdefs.h >>conftest.$ac_ext
13117
cat >>conftest.$ac_ext <<_ACEOF
13118
/* end confdefs.h. */
13119
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13120
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13121
#define dlopen innocuous_dlopen
13123
/* System header to define __stub macros and hopefully few prototypes,
13124
which can conflict with char dlopen (); below.
13125
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13126
<limits.h> exists even on freestanding compilers. */
13129
# include <limits.h>
13131
# include <assert.h>
13136
/* Override any GCC internal prototype to avoid an error.
13137
Use char because int might match the return type of a GCC
13138
builtin and then its argument prototype would still apply. */
13143
/* The GNU C library defines this for functions which it implements
13144
to always fail with ENOSYS. Some functions are actually named
13145
something starting with __ and the normal name is an alias. */
13146
#if defined __stub_dlopen || defined __stub___dlopen
13158
rm -f conftest.$ac_objext conftest$ac_exeext
13159
if { (ac_try="$ac_link"
13160
case "(($ac_try" in
13161
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162
*) ac_try_echo=$ac_try;;
13164
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13165
(eval "$ac_link") 2>conftest.er1
13167
grep -v '^ *+' conftest.er1 >conftest.err
13169
cat conftest.err >&5
13170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171
(exit $ac_status); } && {
13172
test -z "$ac_cxx_werror_flag" ||
13173
test ! -s conftest.err
13174
} && test -s conftest$ac_exeext &&
13175
$as_test_x conftest$ac_exeext; then
13176
ac_cv_func_dlopen=yes
13178
echo "$as_me: failed program was:" >&5
13179
sed 's/^/| /' conftest.$ac_ext >&5
13181
ac_cv_func_dlopen=no
13184
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13185
conftest$ac_exeext conftest.$ac_ext
13187
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13188
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13189
if test $ac_cv_func_dlopen = yes; then
13190
lt_cv_dlopen="dlopen"
13192
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13193
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13194
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13195
echo $ECHO_N "(cached) $ECHO_C" >&6
13197
ac_check_lib_save_LIBS=$LIBS
13199
cat >conftest.$ac_ext <<_ACEOF
13202
cat confdefs.h >>conftest.$ac_ext
13203
cat >>conftest.$ac_ext <<_ACEOF
13204
/* end confdefs.h. */
13206
/* Override any GCC internal prototype to avoid an error.
13207
Use char because int might match the return type of a GCC
13208
builtin and then its argument prototype would still apply. */
13221
rm -f conftest.$ac_objext conftest$ac_exeext
13222
if { (ac_try="$ac_link"
13223
case "(($ac_try" in
13224
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225
*) ac_try_echo=$ac_try;;
13227
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228
(eval "$ac_link") 2>conftest.er1
13230
grep -v '^ *+' conftest.er1 >conftest.err
13232
cat conftest.err >&5
13233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234
(exit $ac_status); } && {
13235
test -z "$ac_cxx_werror_flag" ||
13236
test ! -s conftest.err
13237
} && test -s conftest$ac_exeext &&
13238
$as_test_x conftest$ac_exeext; then
13239
ac_cv_lib_dl_dlopen=yes
13241
echo "$as_me: failed program was:" >&5
13242
sed 's/^/| /' conftest.$ac_ext >&5
13244
ac_cv_lib_dl_dlopen=no
13247
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13248
conftest$ac_exeext conftest.$ac_ext
13249
LIBS=$ac_check_lib_save_LIBS
13251
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13252
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13253
if test $ac_cv_lib_dl_dlopen = yes; then
13254
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13256
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13257
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13258
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13259
echo $ECHO_N "(cached) $ECHO_C" >&6
13261
ac_check_lib_save_LIBS=$LIBS
13262
LIBS="-lsvld $LIBS"
13263
cat >conftest.$ac_ext <<_ACEOF
13266
cat confdefs.h >>conftest.$ac_ext
13267
cat >>conftest.$ac_ext <<_ACEOF
13268
/* end confdefs.h. */
13270
/* Override any GCC internal prototype to avoid an error.
13271
Use char because int might match the return type of a GCC
13272
builtin and then its argument prototype would still apply. */
13285
rm -f conftest.$ac_objext conftest$ac_exeext
13286
if { (ac_try="$ac_link"
13287
case "(($ac_try" in
13288
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289
*) ac_try_echo=$ac_try;;
13291
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292
(eval "$ac_link") 2>conftest.er1
13294
grep -v '^ *+' conftest.er1 >conftest.err
13296
cat conftest.err >&5
13297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298
(exit $ac_status); } && {
13299
test -z "$ac_cxx_werror_flag" ||
13300
test ! -s conftest.err
13301
} && test -s conftest$ac_exeext &&
13302
$as_test_x conftest$ac_exeext; then
13303
ac_cv_lib_svld_dlopen=yes
13305
echo "$as_me: failed program was:" >&5
13306
sed 's/^/| /' conftest.$ac_ext >&5
13308
ac_cv_lib_svld_dlopen=no
13311
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13312
conftest$ac_exeext conftest.$ac_ext
13313
LIBS=$ac_check_lib_save_LIBS
13315
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13316
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13317
if test $ac_cv_lib_svld_dlopen = yes; then
13318
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13320
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13321
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13322
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13323
echo $ECHO_N "(cached) $ECHO_C" >&6
13325
ac_check_lib_save_LIBS=$LIBS
13327
cat >conftest.$ac_ext <<_ACEOF
13330
cat confdefs.h >>conftest.$ac_ext
13331
cat >>conftest.$ac_ext <<_ACEOF
13332
/* end confdefs.h. */
13334
/* Override any GCC internal prototype to avoid an error.
13335
Use char because int might match the return type of a GCC
13336
builtin and then its argument prototype would still apply. */
13344
return dld_link ();
13349
rm -f conftest.$ac_objext conftest$ac_exeext
13350
if { (ac_try="$ac_link"
13351
case "(($ac_try" in
13352
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353
*) ac_try_echo=$ac_try;;
13355
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356
(eval "$ac_link") 2>conftest.er1
13358
grep -v '^ *+' conftest.er1 >conftest.err
13360
cat conftest.err >&5
13361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362
(exit $ac_status); } && {
13363
test -z "$ac_cxx_werror_flag" ||
13364
test ! -s conftest.err
13365
} && test -s conftest$ac_exeext &&
13366
$as_test_x conftest$ac_exeext; then
13367
ac_cv_lib_dld_dld_link=yes
13369
echo "$as_me: failed program was:" >&5
13370
sed 's/^/| /' conftest.$ac_ext >&5
13372
ac_cv_lib_dld_dld_link=no
13375
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13376
conftest$ac_exeext conftest.$ac_ext
13377
LIBS=$ac_check_lib_save_LIBS
13379
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13380
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13381
if test $ac_cv_lib_dld_dld_link = yes; then
13382
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13403
if test "x$lt_cv_dlopen" != xno; then
13409
case $lt_cv_dlopen in
13411
save_CPPFLAGS="$CPPFLAGS"
13412
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13414
save_LDFLAGS="$LDFLAGS"
13415
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13418
LIBS="$lt_cv_dlopen_libs $LIBS"
13420
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13421
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13422
if test "${lt_cv_dlopen_self+set}" = set; then
13423
echo $ECHO_N "(cached) $ECHO_C" >&6
13425
if test "$cross_compiling" = yes; then :
13426
lt_cv_dlopen_self=cross
13428
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13429
lt_status=$lt_dlunknown
13430
cat > conftest.$ac_ext <<EOF
13431
#line __oline__ "configure"
13432
#include "confdefs.h"
13441
# define LT_DLGLOBAL RTLD_GLOBAL
13444
# define LT_DLGLOBAL DL_GLOBAL
13446
# define LT_DLGLOBAL 0
13450
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13451
find out it does not work in some platform. */
13452
#ifndef LT_DLLAZY_OR_NOW
13454
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13457
# define LT_DLLAZY_OR_NOW DL_LAZY
13460
# define LT_DLLAZY_OR_NOW RTLD_NOW
13463
# define LT_DLLAZY_OR_NOW DL_NOW
13465
# define LT_DLLAZY_OR_NOW 0
13473
extern "C" void exit (int);
13476
void fnord() { int i=42;}
13479
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13480
int status = $lt_dlunknown;
13484
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13485
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13486
/* dlclose (self); */
13492
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13493
(eval $ac_link) 2>&5
13495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13497
(./conftest; exit; ) 2>/dev/null
13499
case x$lt_status in
13500
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13501
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13502
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13505
# compilation failed
13506
lt_cv_dlopen_self=no
13513
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13514
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13516
if test "x$lt_cv_dlopen_self" = xyes; then
13517
LDFLAGS="$LDFLAGS $link_static_flag"
13518
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13519
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13520
if test "${lt_cv_dlopen_self_static+set}" = set; then
13521
echo $ECHO_N "(cached) $ECHO_C" >&6
13523
if test "$cross_compiling" = yes; then :
13524
lt_cv_dlopen_self_static=cross
13526
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13527
lt_status=$lt_dlunknown
13528
cat > conftest.$ac_ext <<EOF
13529
#line __oline__ "configure"
13530
#include "confdefs.h"
13539
# define LT_DLGLOBAL RTLD_GLOBAL
13542
# define LT_DLGLOBAL DL_GLOBAL
13544
# define LT_DLGLOBAL 0
13548
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13549
find out it does not work in some platform. */
13550
#ifndef LT_DLLAZY_OR_NOW
13552
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13555
# define LT_DLLAZY_OR_NOW DL_LAZY
13558
# define LT_DLLAZY_OR_NOW RTLD_NOW
13561
# define LT_DLLAZY_OR_NOW DL_NOW
13563
# define LT_DLLAZY_OR_NOW 0
13571
extern "C" void exit (int);
13574
void fnord() { int i=42;}
13577
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13578
int status = $lt_dlunknown;
13582
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13583
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13584
/* dlclose (self); */
13590
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13591
(eval $ac_link) 2>&5
13593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13595
(./conftest; exit; ) 2>/dev/null
13597
case x$lt_status in
13598
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13599
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13600
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13603
# compilation failed
13604
lt_cv_dlopen_self_static=no
13611
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13612
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13615
CPPFLAGS="$save_CPPFLAGS"
13616
LDFLAGS="$save_LDFLAGS"
13621
case $lt_cv_dlopen_self in
13622
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13623
*) enable_dlopen_self=unknown ;;
13626
case $lt_cv_dlopen_self_static in
13627
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13628
*) enable_dlopen_self_static=unknown ;;
13633
# The else clause should only fire when bootstrapping the
13634
# libtool distribution, otherwise you forgot to ship ltmain.sh
13635
# with your package, and you will get complaints that there are
13636
# no rules to generate ltmain.sh.
13637
if test -f "$ltmain"; then
13638
# See if we are running on zsh, and set the options which allow our commands through
13639
# without removal of \ escapes.
13640
if test -n "${ZSH_VERSION+set}" ; then
13641
setopt NO_GLOB_SUBST
13643
# Now quote all the things that may contain metacharacters while being
13644
# careful not to overquote the AC_SUBSTed values. We take copies of the
13645
# variables and quote the copies for generation of the libtool script.
13646
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13648
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13649
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13650
deplibs_check_method reload_flag reload_cmds need_locks \
13651
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13652
lt_cv_sys_global_symbol_to_c_name_address \
13653
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13654
old_postinstall_cmds old_postuninstall_cmds \
13658
lt_prog_compiler_wl_CXX \
13659
lt_prog_compiler_pic_CXX \
13660
lt_prog_compiler_static_CXX \
13661
lt_prog_compiler_no_builtin_flag_CXX \
13662
export_dynamic_flag_spec_CXX \
13663
thread_safe_flag_spec_CXX \
13664
whole_archive_flag_spec_CXX \
13665
enable_shared_with_static_runtimes_CXX \
13666
old_archive_cmds_CXX \
13667
old_archive_from_new_cmds_CXX \
13668
predep_objects_CXX \
13669
postdep_objects_CXX \
13672
compiler_lib_search_path_CXX \
13674
archive_expsym_cmds_CXX \
13675
postinstall_cmds_CXX \
13676
postuninstall_cmds_CXX \
13677
old_archive_from_expsyms_cmds_CXX \
13678
allow_undefined_flag_CXX \
13679
no_undefined_flag_CXX \
13680
export_symbols_cmds_CXX \
13681
hardcode_libdir_flag_spec_CXX \
13682
hardcode_libdir_flag_spec_ld_CXX \
13683
hardcode_libdir_separator_CXX \
13684
hardcode_automatic_CXX \
13686
module_expsym_cmds_CXX \
13687
lt_cv_prog_compiler_c_o_CXX \
13688
exclude_expsyms_CXX \
13689
include_expsyms_CXX; do
13692
old_archive_cmds_CXX | \
13693
old_archive_from_new_cmds_CXX | \
13694
archive_cmds_CXX | \
13695
archive_expsym_cmds_CXX | \
13696
module_cmds_CXX | \
13697
module_expsym_cmds_CXX | \
13698
old_archive_from_expsyms_cmds_CXX | \
13699
export_symbols_cmds_CXX | \
13700
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13701
postinstall_cmds | postuninstall_cmds | \
13702
old_postinstall_cmds | old_postuninstall_cmds | \
13703
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13704
# Double-quote double-evaled strings.
13705
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13708
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13714
*'\$0 --fallback-echo"')
13715
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13721
cat <<__EOF__ >> "$cfgfile"
13722
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13724
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13726
# Shell to use when invoking shell scripts.
13729
# Whether or not to build shared libraries.
13730
build_libtool_libs=$enable_shared
13732
# Whether or not to build static libraries.
13733
build_old_libs=$enable_static
13735
# Whether or not to add -lc for building shared libraries.
13736
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13738
# Whether or not to disallow shared libs when runtime libs are static
13739
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13741
# Whether or not to optimize for fast installation.
13742
fast_install=$enable_fast_install
13745
host_alias=$host_alias
13748
# An echo program that does not interpret backslashes.
13753
AR_FLAGS=$lt_AR_FLAGS
13758
# A language-specific compiler.
13759
CC=$lt_compiler_CXX
13761
# Is the compiler the GNU C compiler?
13767
# The linker used to build libraries.
13770
# Whether we need hard or soft links.
13773
# A BSD-compatible nm program.
13776
# A symbol stripping program
13779
# Used to examine libraries when file_magic_cmd begins "file"
13780
MAGIC_CMD=$MAGIC_CMD
13782
# Used on cygwin: DLL creation program.
13785
# Used on cygwin: object dumper.
13788
# Used on cygwin: assembler.
13791
# The name of the directory that contains temporary libtool files.
13794
# How to create reloadable object files.
13795
reload_flag=$lt_reload_flag
13796
reload_cmds=$lt_reload_cmds
13798
# How to pass a linker flag through the compiler.
13799
wl=$lt_lt_prog_compiler_wl_CXX
13801
# Object file suffix (normally "o").
13802
objext="$ac_objext"
13804
# Old archive suffix (normally "a").
13807
# Shared library suffix (normally ".so").
13808
shrext_cmds='$shrext_cmds'
13810
# Executable file suffix (normally "").
13813
# Additional compiler flags for building library objects.
13814
pic_flag=$lt_lt_prog_compiler_pic_CXX
13817
# What is the maximum length of a command?
13818
max_cmd_len=$lt_cv_sys_max_cmd_len
13820
# Does compiler simultaneously support -c and -o options?
13821
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13823
# Must we lock files when doing compilation ?
13824
need_locks=$lt_need_locks
13826
# Do we need the lib prefix for modules?
13827
need_lib_prefix=$need_lib_prefix
13829
# Do we need a version for libraries?
13830
need_version=$need_version
13832
# Whether dlopen is supported.
13833
dlopen_support=$enable_dlopen
13835
# Whether dlopen of programs is supported.
13836
dlopen_self=$enable_dlopen_self
13838
# Whether dlopen of statically linked programs is supported.
13839
dlopen_self_static=$enable_dlopen_self_static
13841
# Compiler flag to prevent dynamic linking.
13842
link_static_flag=$lt_lt_prog_compiler_static_CXX
13844
# Compiler flag to turn off builtin functions.
13845
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13847
# Compiler flag to allow reflexive dlopens.
13848
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13850
# Compiler flag to generate shared objects directly from archives.
13851
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13853
# Compiler flag to generate thread-safe objects.
13854
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13856
# Library versioning type.
13857
version_type=$version_type
13859
# Format of library name prefix.
13860
libname_spec=$lt_libname_spec
13862
# List of archive names. First name is the real one, the rest are links.
13863
# The last name is the one that the linker finds with -lNAME.
13864
library_names_spec=$lt_library_names_spec
13866
# The coded name of the library, if different from the real name.
13867
soname_spec=$lt_soname_spec
13869
# Commands used to build and install an old-style archive.
13871
old_archive_cmds=$lt_old_archive_cmds_CXX
13872
old_postinstall_cmds=$lt_old_postinstall_cmds
13873
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13875
# Create an old-style archive from a shared archive.
13876
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13878
# Create a temporary old-style archive to link instead of a shared archive.
13879
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13881
# Commands used to build and install a shared archive.
13882
archive_cmds=$lt_archive_cmds_CXX
13883
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13884
postinstall_cmds=$lt_postinstall_cmds
13885
postuninstall_cmds=$lt_postuninstall_cmds
13887
# Commands used to build a loadable module (assumed same as above if empty)
13888
module_cmds=$lt_module_cmds_CXX
13889
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13891
# Commands to strip libraries.
13892
old_striplib=$lt_old_striplib
13893
striplib=$lt_striplib
13895
# Dependencies to place before the objects being linked to create a
13897
predep_objects=$lt_predep_objects_CXX
13899
# Dependencies to place after the objects being linked to create a
13901
postdep_objects=$lt_postdep_objects_CXX
13903
# Dependencies to place before the objects being linked to create a
13905
predeps=$lt_predeps_CXX
13907
# Dependencies to place after the objects being linked to create a
13909
postdeps=$lt_postdeps_CXX
13911
# The library search path used internally by the compiler when linking
13912
# a shared library.
13913
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13915
# Method to check whether dependent libraries are shared objects.
13916
deplibs_check_method=$lt_deplibs_check_method
13918
# Command to use when deplibs_check_method == file_magic.
13919
file_magic_cmd=$lt_file_magic_cmd
13921
# Flag that allows shared libraries with undefined symbols to be built.
13922
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13924
# Flag that forces no undefined symbols.
13925
no_undefined_flag=$lt_no_undefined_flag_CXX
13927
# Commands used to finish a libtool library installation in a directory.
13928
finish_cmds=$lt_finish_cmds
13930
# Same as above, but a single script fragment to be evaled but not shown.
13931
finish_eval=$lt_finish_eval
13933
# Take the output of nm and produce a listing of raw symbols and C names.
13934
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13936
# Transform the output of nm in a proper C declaration
13937
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13939
# Transform the output of nm in a C name address pair
13940
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13942
# This is the shared library runtime path variable.
13943
runpath_var=$runpath_var
13945
# This is the shared library path variable.
13946
shlibpath_var=$shlibpath_var
13948
# Is shlibpath searched before the hard-coded library search path?
13949
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13951
# How to hardcode a shared library path into an executable.
13952
hardcode_action=$hardcode_action_CXX
13954
# Whether we should hardcode library paths into libraries.
13955
hardcode_into_libs=$hardcode_into_libs
13957
# Flag to hardcode \$libdir into a binary during linking.
13958
# This must work even if \$libdir does not exist.
13959
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13961
# If ld is used when linking, flag to hardcode \$libdir into
13962
# a binary during linking. This must work even if \$libdir does
13964
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13966
# Whether we need a single -rpath flag with a separated argument.
13967
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13969
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13970
# resulting binary.
13971
hardcode_direct=$hardcode_direct_CXX
13973
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13974
# resulting binary.
13975
hardcode_minus_L=$hardcode_minus_L_CXX
13977
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13978
# the resulting binary.
13979
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13981
# Set to yes if building a shared library automatically hardcodes DIR into the library
13982
# and all subsequent libraries and executables linked against it.
13983
hardcode_automatic=$hardcode_automatic_CXX
13985
# Variables whose values should be saved in libtool wrapper scripts and
13986
# restored at relink time.
13987
variables_saved_for_relink="$variables_saved_for_relink"
13989
# Whether libtool must link a program against all its dependency libraries.
13990
link_all_deplibs=$link_all_deplibs_CXX
13992
# Compile-time system search path for libraries
13993
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13995
# Run-time system search path for libraries
13996
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13998
# Fix the shell variable \$srcfile for the compiler.
13999
fix_srcfile_path="$fix_srcfile_path_CXX"
14001
# Set to yes if exported symbols are required.
14002
always_export_symbols=$always_export_symbols_CXX
14004
# The commands to list exported symbols.
14005
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14007
# The commands to extract the exported symbol list from a shared archive.
14008
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14010
# Symbols that should not be listed in the preloaded symbols.
14011
exclude_expsyms=$lt_exclude_expsyms_CXX
14013
# Symbols that must always be exported.
14014
include_expsyms=$lt_include_expsyms_CXX
14016
# ### END LIBTOOL TAG CONFIG: $tagname
14022
# If there is no Makefile yet, we rely on a make rule to execute
14023
# `config.status --recheck' to rerun these tests and create the
14024
# libtool script then.
14025
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14026
if test -f "$ltmain_in"; then
14027
test -f Makefile && make "$ltmain"
14033
ac_cpp='$CPP $CPPFLAGS'
14034
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14035
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14036
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14042
with_gnu_ldcxx=$with_gnu_ld
14043
with_gnu_ld=$lt_save_with_gnu_ld
14044
lt_cv_path_LDCXX=$lt_cv_path_LD
14045
lt_cv_path_LD=$lt_save_path_LD
14046
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14047
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14055
if test -n "$F77" && test "X$F77" != "Xno"; then
14058
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14059
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14060
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14063
archive_cmds_need_lc_F77=no
14064
allow_undefined_flag_F77=
14065
always_export_symbols_F77=no
14066
archive_expsym_cmds_F77=
14067
export_dynamic_flag_spec_F77=
14068
hardcode_direct_F77=no
14069
hardcode_libdir_flag_spec_F77=
14070
hardcode_libdir_flag_spec_ld_F77=
14071
hardcode_libdir_separator_F77=
14072
hardcode_minus_L_F77=no
14073
hardcode_automatic_F77=no
14075
module_expsym_cmds_F77=
14076
link_all_deplibs_F77=unknown
14077
old_archive_cmds_F77=$old_archive_cmds
14078
no_undefined_flag_F77=
14079
whole_archive_flag_spec_F77=
14080
enable_shared_with_static_runtimes_F77=no
14082
# Source file extension for f77 test sources.
14085
# Object file extension for compiled f77 test sources.
14089
# Code to be used in simple compile tests
14090
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14092
# Code to be used in simple link tests
14093
lt_simple_link_test_code=" program t\n end\n"
14095
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14097
# If no C compiler was specified, use CC.
14100
# Allow CC to be a program name with arguments.
14104
# Allow CC to be a program name with arguments.
14109
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14111
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14112
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14113
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14114
echo "${ECHO_T}$can_build_shared" >&6; }
14116
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14117
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14118
test "$can_build_shared" = "no" && enable_shared=no
14120
# On AIX, shared libraries and static libraries use the same namespace, and
14121
# are all built from PIC.
14124
test "$enable_shared" = yes && enable_static=no
14125
if test -n "$RANLIB"; then
14126
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14127
postinstall_cmds='$RANLIB $lib'
14131
test "$enable_shared" = yes && enable_static=no
14134
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14135
echo "${ECHO_T}$enable_shared" >&6; }
14137
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14138
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14139
# Make sure either enable_shared or enable_static is yes.
14140
test "$enable_shared" = yes || enable_static=yes
14141
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14142
echo "${ECHO_T}$enable_static" >&6; }
14144
test "$ld_shlibs_F77" = no && can_build_shared=no
14149
lt_prog_compiler_wl_F77=
14150
lt_prog_compiler_pic_F77=
14151
lt_prog_compiler_static_F77=
14153
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14154
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14156
if test "$GCC" = yes; then
14157
lt_prog_compiler_wl_F77='-Wl,'
14158
lt_prog_compiler_static_F77='-static'
14162
# All AIX code is PIC.
14163
if test "$host_cpu" = ia64; then
14164
# AIX 5 now supports IA64 processor
14165
lt_prog_compiler_static_F77='-Bstatic'
14170
# FIXME: we need at least 68020 code to build shared libraries, but
14171
# adding the `-m68020' flag to GCC prevents building anything better,
14173
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14176
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14177
# PIC is the default for these OSes.
14180
mingw* | pw32* | os2*)
14181
# This hack is so that the source file can tell whether it is being
14182
# built for inclusion in a dll (and should export symbols for example).
14183
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14186
darwin* | rhapsody*)
14187
# PIC is the default on this platform
14188
# Common symbols not allowed in MH_DYLIB files
14189
lt_prog_compiler_pic_F77='-fno-common'
14193
# Just because we use GCC doesn't mean we suddenly get shared libraries
14194
# on systems that don't support them.
14195
lt_prog_compiler_can_build_shared_F77=no
14200
if test -d /usr/nec; then
14201
lt_prog_compiler_pic_F77=-Kconform_pic
14206
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14207
# not for PA HP-UX.
14208
case "$host_cpu" in
14213
lt_prog_compiler_pic_F77='-fPIC'
14219
lt_prog_compiler_pic_F77='-fPIC'
14223
# PORTME Check for flag to pass linker flags through the system compiler.
14226
lt_prog_compiler_wl_F77='-Wl,'
14227
if test "$host_cpu" = ia64; then
14228
# AIX 5 now supports IA64 processor
14229
lt_prog_compiler_static_F77='-Bstatic'
14231
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14235
mingw* | pw32* | os2*)
14236
# This hack is so that the source file can tell whether it is being
14237
# built for inclusion in a dll (and should export symbols for example).
14238
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14241
hpux9* | hpux10* | hpux11*)
14242
lt_prog_compiler_wl_F77='-Wl,'
14243
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14244
# not for PA HP-UX.
14245
case "$host_cpu" in
14250
lt_prog_compiler_pic_F77='+Z'
14253
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14254
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14257
irix5* | irix6* | nonstopux*)
14258
lt_prog_compiler_wl_F77='-Wl,'
14259
# PIC (with -KPIC) is the default.
14260
lt_prog_compiler_static_F77='-non_shared'
14264
lt_prog_compiler_pic_F77='-KPIC'
14265
lt_prog_compiler_static_F77='-Bstatic'
14271
lt_prog_compiler_wl_F77='-Wl,'
14272
lt_prog_compiler_pic_F77='-KPIC'
14273
lt_prog_compiler_static_F77='-static'
14276
lt_prog_compiler_wl_F77='-Wl,'
14277
# All Alpha code is PIC.
14278
lt_prog_compiler_static_F77='-non_shared'
14283
osf3* | osf4* | osf5*)
14284
lt_prog_compiler_wl_F77='-Wl,'
14285
# All OSF/1 code is PIC.
14286
lt_prog_compiler_static_F77='-non_shared'
14290
lt_prog_compiler_pic_F77='-Kpic'
14291
lt_prog_compiler_static_F77='-dn'
14295
lt_prog_compiler_wl_F77='-Wl,'
14296
lt_prog_compiler_pic_F77='-KPIC'
14297
lt_prog_compiler_static_F77='-Bstatic'
14301
lt_prog_compiler_wl_F77='-Qoption ld '
14302
lt_prog_compiler_pic_F77='-PIC'
14303
lt_prog_compiler_static_F77='-Bstatic'
14306
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14307
lt_prog_compiler_wl_F77='-Wl,'
14308
lt_prog_compiler_pic_F77='-KPIC'
14309
lt_prog_compiler_static_F77='-Bstatic'
14313
if test -d /usr/nec ;then
14314
lt_prog_compiler_pic_F77='-Kconform_pic'
14315
lt_prog_compiler_static_F77='-Bstatic'
14320
lt_prog_compiler_pic_F77='-pic'
14321
lt_prog_compiler_static_F77='-Bstatic'
14325
lt_prog_compiler_can_build_shared_F77=no
14330
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14331
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14334
# Check to make sure the PIC flag actually works.
14336
if test -n "$lt_prog_compiler_pic_F77"; then
14338
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14339
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14340
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14341
echo $ECHO_N "(cached) $ECHO_C" >&6
14343
lt_prog_compiler_pic_works_F77=no
14344
ac_outfile=conftest.$ac_objext
14345
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14346
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14347
# Insert the option either (1) after the last *FLAGS variable, or
14348
# (2) before a word containing "conftest.", or (3) at the end.
14349
# Note that $ac_compile itself does not contain backslashes and begins
14350
# with a dollar sign (not a hyphen), so the echo should work correctly.
14351
# The option is referenced via a variable to avoid confusing sed.
14352
lt_compile=`echo "$ac_compile" | $SED \
14353
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14354
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14355
-e 's:$: $lt_compiler_flag:'`
14356
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14357
(eval "$lt_compile" 2>conftest.err)
14359
cat conftest.err >&5
14360
echo "$as_me:__oline__: \$? = $ac_status" >&5
14361
if (exit $ac_status) && test -s "$ac_outfile"; then
14362
# The compiler can only warn and ignore the option if not recognized
14363
# So say no if there are warnings
14364
if test ! -s conftest.err; then
14365
lt_prog_compiler_pic_works_F77=yes
14371
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14372
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14374
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14375
case $lt_prog_compiler_pic_F77 in
14377
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14380
lt_prog_compiler_pic_F77=
14381
lt_prog_compiler_can_build_shared_F77=no
14386
# For platforms which do not support PIC, -DPIC is meaningless:
14388
lt_prog_compiler_pic_F77=
14391
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14395
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14396
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14397
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14398
echo $ECHO_N "(cached) $ECHO_C" >&6
14400
lt_cv_prog_compiler_c_o_F77=no
14401
$rm -r conftest 2>/dev/null
14405
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14407
lt_compiler_flag="-o out/conftest2.$ac_objext"
14408
# Insert the option either (1) after the last *FLAGS variable, or
14409
# (2) before a word containing "conftest.", or (3) at the end.
14410
# Note that $ac_compile itself does not contain backslashes and begins
14411
# with a dollar sign (not a hyphen), so the echo should work correctly.
14412
lt_compile=`echo "$ac_compile" | $SED \
14413
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14414
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14415
-e 's:$: $lt_compiler_flag:'`
14416
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14417
(eval "$lt_compile" 2>out/conftest.err)
14419
cat out/conftest.err >&5
14420
echo "$as_me:__oline__: \$? = $ac_status" >&5
14421
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14423
# The compiler can only warn and ignore the option if not recognized
14424
# So say no if there are warnings
14425
if test ! -s out/conftest.err; then
14426
lt_cv_prog_compiler_c_o_F77=yes
14431
# SGI C++ compiler will create directory out/ii_files/ for
14432
# template instantiation
14433
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14434
$rm out/* && rmdir out
14440
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14441
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14444
hard_links="nottested"
14445
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14446
# do not overwrite the value of need_locks provided by the user
14447
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14448
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14451
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14453
ln conftest.a conftest.b 2>&5 || hard_links=no
14454
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14455
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14456
echo "${ECHO_T}$hard_links" >&6; }
14457
if test "$hard_links" = no; then
14458
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14459
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14466
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14467
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14470
allow_undefined_flag_F77=
14471
enable_shared_with_static_runtimes_F77=no
14473
archive_expsym_cmds_F77=
14474
old_archive_From_new_cmds_F77=
14475
old_archive_from_expsyms_cmds_F77=
14476
export_dynamic_flag_spec_F77=
14477
whole_archive_flag_spec_F77=
14478
thread_safe_flag_spec_F77=
14479
hardcode_libdir_flag_spec_F77=
14480
hardcode_libdir_flag_spec_ld_F77=
14481
hardcode_libdir_separator_F77=
14482
hardcode_direct_F77=no
14483
hardcode_minus_L_F77=no
14484
hardcode_shlibpath_var_F77=unsupported
14485
link_all_deplibs_F77=unknown
14486
hardcode_automatic_F77=no
14488
module_expsym_cmds_F77=
14489
always_export_symbols_F77=no
14490
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14491
# include_expsyms should be a list of space-separated symbols to be *always*
14492
# included in the symbol list
14493
include_expsyms_F77=
14494
# exclude_expsyms can be an extended regexp of symbols to exclude
14495
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14496
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14497
# as well as any symbol that contains `d'.
14498
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14499
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14500
# platforms (ab)use it in PIC code, but their linkers get confused if
14501
# the symbol is explicitly referenced. Since portable code cannot
14502
# rely on this symbol name, it's probably fine to never include it in
14503
# preloaded symbol tables.
14504
extract_expsyms_cmds=
14507
cygwin* | mingw* | pw32*)
14508
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14509
# When not using gcc, we currently assume that we are using
14510
# Microsoft Visual C++.
14511
if test "$GCC" != yes; then
14521
if test "$with_gnu_ld" = yes; then
14522
# If archive_cmds runs LD, not CC, wlarc should be empty
14525
# See if GNU ld supports shared libraries.
14527
aix3* | aix4* | aix5*)
14528
# On AIX/PPC, the GNU linker is very broken
14529
if test "$host_cpu" != ia64; then
14533
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14534
*** to be unable to reliably create shared libraries on AIX.
14535
*** Therefore, libtool is disabling shared libraries support. If you
14536
*** really care for shared libraries, you may want to modify your PATH
14537
*** so that a non-GNU linker is found, and then restart.
14544
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)'
14545
hardcode_libdir_flag_spec_F77='-L$libdir'
14546
hardcode_minus_L_F77=yes
14548
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14549
# that the semantics of dynamic libraries on AmigaOS, at least up
14550
# to version 4, is to share data among multiple programs linked
14551
# with the same dynamic library. Since this doesn't match the
14552
# behavior of shared libraries on other platforms, we can't use
14558
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14559
allow_undefined_flag_F77=unsupported
14560
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14561
# support --undefined. This deserves some investigation. FIXME
14562
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14568
cygwin* | mingw* | pw32*)
14569
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14570
# as there is no search path for DLLs.
14571
hardcode_libdir_flag_spec_F77='-L$libdir'
14572
allow_undefined_flag_F77=unsupported
14573
always_export_symbols_F77=no
14574
enable_shared_with_static_runtimes_F77=yes
14575
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14577
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14578
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14579
# If the export-symbols file already is a .def file (1st line
14580
# is EXPORTS), use it as is; otherwise, prepend...
14581
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14582
cp $export_symbols $output_objdir/$soname.def;
14584
echo EXPORTS > $output_objdir/$soname.def;
14585
cat $export_symbols >> $output_objdir/$soname.def;
14587
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14593
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14594
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14595
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14598
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14599
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14604
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14608
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14609
*** create shared libraries on Solaris systems. Therefore, libtool
14610
*** is disabling shared libraries support. We urge you to upgrade GNU
14611
*** binutils to release 2.9.1 or newer. Another option is to modify
14612
*** your PATH or compiler configuration so that the native linker is
14613
*** used, and then restart.
14616
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14617
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14618
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14625
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14627
hardcode_direct_F77=yes
14628
hardcode_shlibpath_var_F77=no
14632
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14633
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14634
archive_cmds_F77="$tmp_archive_cmds"
14635
supports_anon_versioning=no
14636
case `$LD -v 2>/dev/null` in
14637
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14638
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14639
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14640
*\ 2.11.*) ;; # other 2.11 versions
14641
*) supports_anon_versioning=yes ;;
14643
if test $supports_anon_versioning = yes; then
14644
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14645
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14646
$echo "local: *; };" >> $output_objdir/$libname.ver~
14647
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14649
archive_expsym_cmds_F77="$tmp_archive_cmds"
14651
link_all_deplibs_F77=no
14658
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14659
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14660
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14667
if test "$ld_shlibs_F77" = yes; then
14668
runpath_var=LD_RUN_PATH
14669
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14670
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14671
# ancient GNU ld didn't support --whole-archive et. al.
14672
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14673
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14675
whole_archive_flag_spec_F77=
14679
# PORTME fill in a description of your system's linker (not GNU ld)
14682
allow_undefined_flag_F77=unsupported
14683
always_export_symbols_F77=yes
14684
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'
14685
# Note: this linker hardcodes the directories in LIBPATH if there
14686
# are no directories specified by -L.
14687
hardcode_minus_L_F77=yes
14688
if test "$GCC" = yes && test -z "$link_static_flag"; then
14689
# Neither direct hardcoding nor static linking is supported with a
14691
hardcode_direct_F77=unsupported
14696
if test "$host_cpu" = ia64; then
14697
# On IA64, the linker does run time linking by default, so we don't
14698
# have to do anything special.
14699
aix_use_runtimelinking=no
14700
exp_sym_flag='-Bexport'
14703
# If we're using GNU nm, then we don't want the "-C" option.
14704
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14705
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14706
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'
14708
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'
14710
aix_use_runtimelinking=no
14712
# Test if we are trying to use run time linking or normal
14713
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14714
# need to do runtime linking.
14715
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14716
for ld_flag in $LDFLAGS; do
14717
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14718
aix_use_runtimelinking=yes
14724
exp_sym_flag='-bexport'
14725
no_entry_flag='-bnoentry'
14728
# When large executables or shared objects are built, AIX ld can
14729
# have problems creating the table of contents. If linking a library
14730
# or program results in "error TOC overflow" add -mminimal-toc to
14731
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14732
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14734
archive_cmds_F77=''
14735
hardcode_direct_F77=yes
14736
hardcode_libdir_separator_F77=':'
14737
link_all_deplibs_F77=yes
14739
if test "$GCC" = yes; then
14740
case $host_os in aix4.012|aix4.012.*)
14741
# We only want to do this on AIX 4.2 and lower, the check
14742
# below for broken collect2 doesn't work under 4.3+
14743
collect2name=`${CC} -print-prog-name=collect2`
14744
if test -f "$collect2name" && \
14745
strings "$collect2name" | grep resolve_lib_name >/dev/null
14747
# We have reworked collect2
14748
hardcode_direct_F77=yes
14750
# We have old collect2
14751
hardcode_direct_F77=unsupported
14752
# It fails to find uninstalled libraries when the uninstalled
14753
# path is not listed in the libpath. Setting hardcode_minus_L
14754
# to unsupported forces relinking
14755
hardcode_minus_L_F77=yes
14756
hardcode_libdir_flag_spec_F77='-L$libdir'
14757
hardcode_libdir_separator_F77=
14760
shared_flag='-shared'
14763
if test "$host_cpu" = ia64; then
14764
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14765
# chokes on -Wl,-G. The following line is correct:
14768
if test "$aix_use_runtimelinking" = yes; then
14769
shared_flag='${wl}-G'
14771
shared_flag='${wl}-bM:SRE'
14776
# It seems that -bexpall does not export symbols beginning with
14777
# underscore (_), so it is better to generate a list of symbols to export.
14778
always_export_symbols_F77=yes
14779
if test "$aix_use_runtimelinking" = yes; then
14780
# Warning - without using the other runtime loading flags (-brtl),
14781
# -berok will link without error, but may produce a broken library.
14782
allow_undefined_flag_F77='-berok'
14783
# Determine the default libpath from the value encoded in an empty executable.
14784
cat >conftest.$ac_ext <<_ACEOF
14789
rm -f conftest.$ac_objext conftest$ac_exeext
14790
if { (ac_try="$ac_link"
14791
case "(($ac_try" in
14792
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793
*) ac_try_echo=$ac_try;;
14795
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796
(eval "$ac_link") 2>conftest.er1
14798
grep -v '^ *+' conftest.er1 >conftest.err
14800
cat conftest.err >&5
14801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802
(exit $ac_status); } && {
14803
test -z "$ac_f77_werror_flag" ||
14804
test ! -s conftest.err
14805
} && test -s conftest$ac_exeext &&
14806
$as_test_x conftest$ac_exeext; then
14808
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14810
# Check for a 64-bit object if we didn't find anything.
14811
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14814
echo "$as_me: failed program was:" >&5
14815
sed 's/^/| /' conftest.$ac_ext >&5
14820
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14821
conftest$ac_exeext conftest.$ac_ext
14822
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14824
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14825
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14827
if test "$host_cpu" = ia64; then
14828
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14829
allow_undefined_flag_F77="-z nodefs"
14830
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14832
# Determine the default libpath from the value encoded in an empty executable.
14833
cat >conftest.$ac_ext <<_ACEOF
14838
rm -f conftest.$ac_objext conftest$ac_exeext
14839
if { (ac_try="$ac_link"
14840
case "(($ac_try" in
14841
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842
*) ac_try_echo=$ac_try;;
14844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845
(eval "$ac_link") 2>conftest.er1
14847
grep -v '^ *+' conftest.er1 >conftest.err
14849
cat conftest.err >&5
14850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851
(exit $ac_status); } && {
14852
test -z "$ac_f77_werror_flag" ||
14853
test ! -s conftest.err
14854
} && test -s conftest$ac_exeext &&
14855
$as_test_x conftest$ac_exeext; then
14857
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14859
# Check for a 64-bit object if we didn't find anything.
14860
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14863
echo "$as_me: failed program was:" >&5
14864
sed 's/^/| /' conftest.$ac_ext >&5
14869
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14870
conftest$ac_exeext conftest.$ac_ext
14871
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14873
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14874
# Warning - without using the other run time loading flags,
14875
# -berok will link without error, but may produce a broken library.
14876
no_undefined_flag_F77=' ${wl}-bernotok'
14877
allow_undefined_flag_F77=' ${wl}-berok'
14878
# -bexpall does not export symbols beginning with underscore (_)
14879
always_export_symbols_F77=yes
14880
# Exported symbols can be pulled into shared objects from archives
14881
whole_archive_flag_spec_F77=' '
14882
archive_cmds_need_lc_F77=yes
14883
# This is similar to how AIX traditionally builds it's shared libraries.
14884
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14890
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)'
14891
hardcode_libdir_flag_spec_F77='-L$libdir'
14892
hardcode_minus_L_F77=yes
14893
# see comment about different semantics on the GNU ld section
14898
export_dynamic_flag_spec_F77=-rdynamic
14901
cygwin* | mingw* | pw32*)
14902
# When not using gcc, we currently assume that we are using
14903
# Microsoft Visual C++.
14904
# hardcode_libdir_flag_spec is actually meaningless, as there is
14905
# no search path for DLLs.
14906
hardcode_libdir_flag_spec_F77=' '
14907
allow_undefined_flag_F77=unsupported
14908
# Tell ltmain to make .lib files, not .a files.
14910
# Tell ltmain to make .dll files, not .so files.
14912
# FIXME: Setting linknames here is a bad hack.
14913
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14914
# The linker will automatically build a .lib file if we build a DLL.
14915
old_archive_From_new_cmds_F77='true'
14916
# FIXME: Should let the user specify the lib program.
14917
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14918
fix_srcfile_path='`cygpath -w "$srcfile"`'
14919
enable_shared_with_static_runtimes_F77=yes
14922
darwin* | rhapsody*)
14923
if test "$GXX" = yes ; then
14924
archive_cmds_need_lc_F77=no
14926
rhapsody* | darwin1.[012])
14927
allow_undefined_flag_F77='-undefined suppress'
14930
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14931
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14933
case ${MACOSX_DEPLOYMENT_TARGET} in
14935
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14938
allow_undefined_flag_F77='-undefined dynamic_lookup'
14944
lt_int_apple_cc_single_mod=no
14945
output_verbose_link_cmd='echo'
14946
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14947
lt_int_apple_cc_single_mod=yes
14949
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14950
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14952
archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14954
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14955
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14956
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14957
archive_expsym_cmds_F77='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}'
14959
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
14961
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}'
14962
hardcode_direct_F77=no
14963
hardcode_automatic_F77=yes
14964
hardcode_shlibpath_var_F77=unsupported
14965
whole_archive_flag_spec_F77='-all_load $convenience'
14966
link_all_deplibs_F77=yes
14973
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14974
hardcode_libdir_flag_spec_F77='-L$libdir'
14975
hardcode_shlibpath_var_F77=no
14982
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14983
# support. Future versions do this automatically, but an explicit c++rt0.o
14984
# does not break anything, and helps significantly (at the cost of a little
14987
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14988
hardcode_libdir_flag_spec_F77='-R$libdir'
14989
hardcode_direct_F77=yes
14990
hardcode_shlibpath_var_F77=no
14993
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14995
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14996
hardcode_direct_F77=yes
14997
hardcode_minus_L_F77=yes
14998
hardcode_shlibpath_var_F77=no
15001
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15002
freebsd* | kfreebsd*-gnu)
15003
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15004
hardcode_libdir_flag_spec_F77='-R$libdir'
15005
hardcode_direct_F77=yes
15006
hardcode_shlibpath_var_F77=no
15010
if test "$GCC" = yes; then
15011
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'
15013
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'
15015
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15016
hardcode_libdir_separator_F77=:
15017
hardcode_direct_F77=yes
15019
# hardcode_minus_L: Not really in the search PATH,
15020
# but as the default location of the library.
15021
hardcode_minus_L_F77=yes
15022
export_dynamic_flag_spec_F77='${wl}-E'
15026
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15027
case "$host_cpu" in
15029
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15032
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15036
case "$host_cpu" in
15038
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15041
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15045
if test "$with_gnu_ld" = no; then
15046
case "$host_cpu" in
15048
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15049
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15050
hardcode_libdir_separator_F77=:
15051
hardcode_direct_F77=no
15052
hardcode_shlibpath_var_F77=no
15055
hardcode_libdir_flag_spec_F77='-L$libdir'
15056
hardcode_direct_F77=no
15057
hardcode_shlibpath_var_F77=no
15059
# hardcode_minus_L: Not really in the search PATH,
15060
# but as the default location of the library.
15061
hardcode_minus_L_F77=yes
15064
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15065
hardcode_libdir_separator_F77=:
15066
hardcode_direct_F77=yes
15067
export_dynamic_flag_spec_F77='${wl}-E'
15069
# hardcode_minus_L: Not really in the search PATH,
15070
# but as the default location of the library.
15071
hardcode_minus_L_F77=yes
15077
irix5* | irix6* | nonstopux*)
15078
if test "$GCC" = yes; then
15079
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'
15081
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'
15082
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15084
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15085
hardcode_libdir_separator_F77=:
15086
link_all_deplibs_F77=yes
15089
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15090
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15091
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15093
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15095
hardcode_libdir_flag_spec_F77='-R$libdir'
15096
hardcode_direct_F77=yes
15097
hardcode_shlibpath_var_F77=no
15101
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15102
hardcode_direct_F77=yes
15103
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15104
hardcode_libdir_separator_F77=:
15105
hardcode_shlibpath_var_F77=no
15109
hardcode_direct_F77=yes
15110
hardcode_shlibpath_var_F77=no
15111
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15112
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15113
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15114
export_dynamic_flag_spec_F77='${wl}-E'
15117
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15118
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15119
hardcode_libdir_flag_spec_F77='-R$libdir'
15122
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15123
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15130
hardcode_libdir_flag_spec_F77='-L$libdir'
15131
hardcode_minus_L_F77=yes
15132
allow_undefined_flag_F77=unsupported
15133
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'
15134
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15138
if test "$GCC" = yes; then
15139
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15140
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'
15142
allow_undefined_flag_F77=' -expect_unresolved \*'
15143
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'
15145
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15146
hardcode_libdir_separator_F77=:
15149
osf4* | osf5*) # as osf3* with the addition of -msym flag
15150
if test "$GCC" = yes; then
15151
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15152
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'
15153
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15155
allow_undefined_flag_F77=' -expect_unresolved \*'
15156
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'
15157
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~
15158
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15160
# Both c and cxx compiler support -rpath directly
15161
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15163
hardcode_libdir_separator_F77=:
15167
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15168
hardcode_shlibpath_var_F77=no
15169
export_dynamic_flag_spec_F77='${wl}-Bexport'
15170
runpath_var=LD_RUN_PATH
15171
hardcode_runpath_var=yes
15175
no_undefined_flag_F77=' -z text'
15176
if test "$GCC" = yes; then
15177
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15178
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15179
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15181
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15182
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15183
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15185
hardcode_libdir_flag_spec_F77='-R$libdir'
15186
hardcode_shlibpath_var_F77=no
15188
solaris2.[0-5] | solaris2.[0-5].*) ;;
15189
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
15190
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15192
link_all_deplibs_F77=yes
15196
if test "x$host_vendor" = xsequent; then
15197
# Use $CC to link under sequent, because it throws in some extra .o
15198
# files that make .init and .fini sections work.
15199
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15201
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15203
hardcode_libdir_flag_spec_F77='-L$libdir'
15204
hardcode_direct_F77=yes
15205
hardcode_minus_L_F77=yes
15206
hardcode_shlibpath_var_F77=no
15210
case $host_vendor in
15212
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15213
hardcode_direct_F77=yes # is this really true???
15216
## LD is ld it makes a PLAMLIB
15217
## CC just makes a GrossModule.
15218
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15219
reload_cmds_F77='$CC -r -o $output$reload_objs'
15220
hardcode_direct_F77=no
15223
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15224
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15227
runpath_var='LD_RUN_PATH'
15228
hardcode_shlibpath_var_F77=no
15232
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15233
hardcode_shlibpath_var_F77=no
15234
export_dynamic_flag_spec_F77='-Bexport'
15238
if test -d /usr/nec; then
15239
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15240
hardcode_shlibpath_var_F77=no
15241
runpath_var=LD_RUN_PATH
15242
hardcode_runpath_var=yes
15248
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15249
hardcode_direct_F77=yes
15250
hardcode_minus_L_F77=no
15251
hardcode_shlibpath_var_F77=no
15252
hardcode_runpath_var=yes
15253
runpath_var=LD_RUN_PATH
15256
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15257
no_undefined_flag_F77='${wl}-z ${wl}text'
15258
if test "$GCC" = yes; then
15259
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15261
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15263
runpath_var='LD_RUN_PATH'
15264
hardcode_shlibpath_var_F77=no
15268
no_undefined_flag_F77=' -z text'
15269
# $CC -shared without GNU ld will not create a library from C++
15270
# object files and a static libstdc++, better avoid it by now
15271
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15272
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15273
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15274
hardcode_libdir_flag_spec_F77=
15275
hardcode_shlibpath_var_F77=no
15276
runpath_var='LD_RUN_PATH'
15280
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15281
hardcode_libdir_flag_spec_F77='-L$libdir'
15282
hardcode_shlibpath_var_F77=no
15291
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15292
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15293
test "$ld_shlibs_F77" = no && can_build_shared=no
15295
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15296
if test "$GCC" = yes; then
15297
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15301
# Do we need to explicitly link libc?
15303
case "x$archive_cmds_need_lc_F77" in
15305
# Assume -lc should be added
15306
archive_cmds_need_lc_F77=yes
15308
if test "$enable_shared" = yes && test "$GCC" = yes; then
15309
case $archive_cmds_F77 in
15311
# FIXME: we may have to deal with multi-command sequences.
15314
# Test whether the compiler implicitly links with -lc since on some
15315
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15316
# to ld, don't add -lc before -lgcc.
15317
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15318
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15320
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15322
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15323
(eval $ac_compile) 2>&5
15325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326
(exit $ac_status); } 2>conftest.err; then
15329
libobjs=conftest.$ac_objext
15331
wl=$lt_prog_compiler_wl_F77
15337
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15338
allow_undefined_flag_F77=
15339
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15340
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343
(exit $ac_status); }
15345
archive_cmds_need_lc_F77=no
15347
archive_cmds_need_lc_F77=yes
15349
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15351
cat conftest.err 1>&5
15354
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15355
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15362
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15363
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15364
library_names_spec=
15365
libname_spec='lib$name'
15369
postuninstall_cmds=
15373
shlibpath_overrides_runpath=unknown
15375
dynamic_linker="$host_os ld.so"
15376
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15377
if test "$GCC" = yes; then
15378
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15379
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15380
# if the path contains ";" then we assume it to be the separator
15381
# otherwise default to the standard path separator (i.e. ":") - it is
15382
# assumed that no part of a normal pathname contains ";" but that should
15383
# okay in the real world where ";" in dirpaths is itself problematic.
15384
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15386
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15389
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15391
need_lib_prefix=unknown
15392
hardcode_into_libs=no
15394
# when you set need_version to no, make sure it does not cause -set_version
15395
# flags to be left without arguments
15396
need_version=unknown
15401
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15402
shlibpath_var=LIBPATH
15404
# AIX 3 has no versioning support, so we append a major version to the name.
15405
soname_spec='${libname}${release}${shared_ext}$major'
15412
hardcode_into_libs=yes
15413
if test "$host_cpu" = ia64; then
15414
# AIX 5 supports IA64
15415
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15416
shlibpath_var=LD_LIBRARY_PATH
15418
# With GCC up to 2.95.x, collect2 would create an import file
15419
# for dependence libraries. The import file would start with
15420
# the line `#! .'. This would cause the generated library to
15421
# depend on `.', always an invalid library. This was fixed in
15422
# development snapshots of GCC prior to 3.0.
15424
aix4 | aix4.[01] | aix4.[01].*)
15425
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15427
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15430
can_build_shared=no
15434
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15435
# soname into executable. Probably we can add versioning support to
15436
# collect2, so additional links can be useful in future.
15437
if test "$aix_use_runtimelinking" = yes; then
15438
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15439
# instead of lib<name>.a to let people know that these are not
15440
# typical AIX shared libraries.
15441
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443
# We preserve .a as extension for shared libraries through AIX4.2
15444
# and later when we are not doing run time linking.
15445
library_names_spec='${libname}${release}.a $libname.a'
15446
soname_spec='${libname}${release}${shared_ext}$major'
15448
shlibpath_var=LIBPATH
15453
library_names_spec='$libname.ixlibrary $libname.a'
15454
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15455
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'
15459
library_names_spec='${libname}${shared_ext}'
15460
dynamic_linker="$host_os ld.so"
15461
shlibpath_var=LIBRARY_PATH
15467
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15468
soname_spec='${libname}${release}${shared_ext}$major'
15469
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15470
shlibpath_var=LD_LIBRARY_PATH
15471
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15472
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15473
# the default ld.so.conf also contains /usr/contrib/lib and
15474
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15475
# libtool to hard-code these into programs
15478
cygwin* | mingw* | pw32*)
15479
version_type=windows
15484
case $GCC,$host_os in
15485
yes,cygwin* | yes,mingw* | yes,pw32*)
15486
library_names_spec='$libname.dll.a'
15487
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15488
postinstall_cmds='base_file=`basename \${file}`~
15489
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15490
dldir=$destdir/`dirname \$dlpath`~
15491
test -d \$dldir || mkdir -p \$dldir~
15492
$install_prog $dir/$dlname \$dldir/$dlname'
15493
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15494
dlpath=$dir/\$dldll~
15496
shlibpath_overrides_runpath=yes
15500
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15501
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15502
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15505
# MinGW DLLs use traditional 'lib' prefix
15506
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15507
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15508
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15509
# It is most probably a Windows format PATH printed by
15510
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15511
# path with ; separators, and with drive letters. We can handle the
15512
# drive letters (cygwin fileutils understands them), so leave them,
15513
# especially as we might pass files found there to a mingw objdump,
15514
# which wouldn't understand a cygwinified path. Ahh.
15515
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15517
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15521
# pw32 DLLs use 'pw' prefix rather than 'lib'
15522
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15528
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15531
dynamic_linker='Win32 ld.exe'
15532
# FIXME: first we should search . and the directory the executable is in
15536
darwin* | rhapsody*)
15537
dynamic_linker="$host_os dyld"
15538
version_type=darwin
15541
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15542
soname_spec='${libname}${release}${major}$shared_ext'
15543
shlibpath_overrides_runpath=yes
15544
shlibpath_var=DYLD_LIBRARY_PATH
15545
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15546
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15547
if test "$GCC" = yes; then
15548
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15550
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15552
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15559
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15560
soname_spec='${libname}${release}${shared_ext}$major'
15561
shlibpath_var=LD_LIBRARY_PATH
15572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15573
soname_spec='${libname}${release}${shared_ext}$major'
15574
shlibpath_var=LD_LIBRARY_PATH
15575
shlibpath_overrides_runpath=no
15576
hardcode_into_libs=yes
15577
dynamic_linker='GNU ld.so'
15581
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15582
version_type=freebsd-$objformat
15583
case $version_type in
15585
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15590
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15594
shlibpath_var=LD_LIBRARY_PATH
15597
shlibpath_overrides_runpath=yes
15599
freebsd3.01* | freebsdelf3.01*)
15600
shlibpath_overrides_runpath=yes
15601
hardcode_into_libs=yes
15604
shlibpath_overrides_runpath=no
15605
hardcode_into_libs=yes
15614
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15615
soname_spec='${libname}${release}${shared_ext}$major'
15616
shlibpath_var=LD_LIBRARY_PATH
15617
hardcode_into_libs=yes
15620
hpux9* | hpux10* | hpux11*)
15621
# Give a soname corresponding to the major version so that dld.sl refuses to
15622
# link against other versions.
15626
case "$host_cpu" in
15629
hardcode_into_libs=yes
15630
dynamic_linker="$host_os dld.so"
15631
shlibpath_var=LD_LIBRARY_PATH
15632
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15633
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634
soname_spec='${libname}${release}${shared_ext}$major'
15635
if test "X$HPUX_IA64_MODE" = X32; then
15636
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15638
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15640
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15644
hardcode_into_libs=yes
15645
dynamic_linker="$host_os dld.sl"
15646
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15647
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15648
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649
soname_spec='${libname}${release}${shared_ext}$major'
15650
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15651
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15655
dynamic_linker="$host_os dld.sl"
15656
shlibpath_var=SHLIB_PATH
15657
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15658
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15659
soname_spec='${libname}${release}${shared_ext}$major'
15662
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15663
postinstall_cmds='chmod 555 $lib'
15666
irix5* | irix6* | nonstopux*)
15668
nonstopux*) version_type=nonstopux ;;
15670
if test "$lt_cv_prog_gnu_ld" = yes; then
15678
soname_spec='${libname}${release}${shared_ext}$major'
15679
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15681
irix5* | nonstopux*)
15682
libsuff= shlibsuff=
15685
case $LD in # libtool.m4 will add one of these switches to LD
15686
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15687
libsuff= shlibsuff= libmagic=32-bit;;
15688
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15689
libsuff=32 shlibsuff=N32 libmagic=N32;;
15690
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15691
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15692
*) libsuff= shlibsuff= libmagic=never-match;;
15696
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15697
shlibpath_overrides_runpath=no
15698
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15699
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15700
hardcode_into_libs=yes
15703
# No shared lib support for Linux oldld, aout, or coff.
15704
linux*oldld* | linux*aout* | linux*coff*)
15708
# This must be Linux ELF.
15713
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714
soname_spec='${libname}${release}${shared_ext}$major'
15715
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15716
shlibpath_var=LD_LIBRARY_PATH
15717
shlibpath_overrides_runpath=no
15718
# This implies no fast_install, which is unacceptable.
15719
# Some rework will be needed to allow for fast_install
15720
# before this can be enabled.
15721
hardcode_into_libs=yes
15723
# Append ld.so.conf contents to the search path
15724
if test -f /etc/ld.so.conf; then
15725
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15726
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15729
# We used to test for /lib/ld.so.1 and disable shared libraries on
15730
# powerpc, because MkLinux only supported shared libraries with the
15731
# GNU dynamic linker. Since this was broken with cross compilers,
15732
# most powerpc-linux boxes support dynamic linking these days and
15733
# people can always --disable-shared, the test was removed, and we
15734
# assume the GNU/Linux dynamic linker is in use.
15735
dynamic_linker='GNU/Linux ld.so'
15742
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15743
soname_spec='${libname}${release}${shared_ext}$major'
15744
shlibpath_var=LD_LIBRARY_PATH
15745
shlibpath_overrides_runpath=no
15746
hardcode_into_libs=yes
15747
dynamic_linker='NetBSD ld.elf_so'
15754
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15755
soname_spec='${libname}${release}${shared_ext}$major'
15756
shlibpath_var=LD_LIBRARY_PATH
15757
shlibpath_overrides_runpath=no
15758
hardcode_into_libs=yes
15759
dynamic_linker='GNU ld.so'
15766
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15767
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15768
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15769
dynamic_linker='NetBSD (a.out) ld.so'
15771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15772
soname_spec='${libname}${release}${shared_ext}$major'
15773
dynamic_linker='NetBSD ld.elf_so'
15775
shlibpath_var=LD_LIBRARY_PATH
15776
shlibpath_overrides_runpath=yes
15777
hardcode_into_libs=yes
15782
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15783
shlibpath_var=LD_LIBRARY_PATH
15784
shlibpath_overrides_runpath=yes
15791
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792
soname_spec='${libname}${release}${shared_ext}$major'
15793
shlibpath_var=LD_LIBRARY_PATH
15794
shlibpath_overrides_runpath=yes
15801
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15802
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15803
shlibpath_var=LD_LIBRARY_PATH
15804
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15806
openbsd2.[89] | openbsd2.[89].*)
15807
shlibpath_overrides_runpath=no
15810
shlibpath_overrides_runpath=yes
15814
shlibpath_overrides_runpath=yes
15819
libname_spec='$name'
15822
library_names_spec='$libname${shared_ext} $libname.a'
15823
dynamic_linker='OS/2 ld.exe'
15824
shlibpath_var=LIBPATH
15827
osf3* | osf4* | osf5*)
15831
soname_spec='${libname}${release}${shared_ext}$major'
15832
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15833
shlibpath_var=LD_LIBRARY_PATH
15834
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15835
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15840
soname_spec='${libname}${release}${shared_ext}$major'
15841
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842
shlibpath_var=LD_LIBRARY_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'
15851
shlibpath_var=LD_LIBRARY_PATH
15852
shlibpath_overrides_runpath=yes
15853
hardcode_into_libs=yes
15854
# ldd complains unless libraries are executable
15855
postinstall_cmds='chmod +x $lib'
15860
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15861
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15862
shlibpath_var=LD_LIBRARY_PATH
15863
shlibpath_overrides_runpath=yes
15864
if test "$with_gnu_ld" = yes; then
15870
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15872
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15873
soname_spec='${libname}${release}${shared_ext}$major'
15874
shlibpath_var=LD_LIBRARY_PATH
15875
case $host_vendor in
15877
shlibpath_overrides_runpath=no
15879
export_dynamic_flag_spec='${wl}-Blargedynsym'
15880
runpath_var=LD_RUN_PATH
15888
shlibpath_overrides_runpath=no
15889
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15895
if test -d /usr/nec ;then
15897
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15898
soname_spec='$libname${shared_ext}.$major'
15899
shlibpath_var=LD_LIBRARY_PATH
15905
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906
soname_spec='${libname}${release}${shared_ext}$major'
15907
shlibpath_var=LD_LIBRARY_PATH
15914
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15915
echo "${ECHO_T}$dynamic_linker" >&6; }
15916
test "$dynamic_linker" = no && can_build_shared=no
15918
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15919
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15920
hardcode_action_F77=
15921
if test -n "$hardcode_libdir_flag_spec_F77" || \
15922
test -n "$runpath_var F77" || \
15923
test "X$hardcode_automatic_F77"="Xyes" ; then
15925
# We can hardcode non-existant directories.
15926
if test "$hardcode_direct_F77" != no &&
15927
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15928
# have to relink, otherwise we might link with an installed library
15929
# when we should be linking with a yet-to-be-installed one
15930
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15931
test "$hardcode_minus_L_F77" != no; then
15932
# Linking always hardcodes the temporary library directory.
15933
hardcode_action_F77=relink
15935
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15936
hardcode_action_F77=immediate
15939
# We cannot hardcode anything, or else we can only hardcode existing
15941
hardcode_action_F77=unsupported
15943
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15944
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15946
if test "$hardcode_action_F77" = relink; then
15947
# Fast installation is not supported
15948
enable_fast_install=no
15949
elif test "$shlibpath_overrides_runpath" = yes ||
15950
test "$enable_shared" = no; then
15951
# Fast installation is not necessary
15952
enable_fast_install=needless
15957
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15958
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15959
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15960
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15961
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15962
{ echo "$as_me:$LINENO: result: yes" >&5
15963
echo "${ECHO_T}yes" >&6; }
15965
# FIXME - insert some real tests, host_os isn't really good enough
15968
if test -n "$STRIP" ; then
15969
striplib="$STRIP -x"
15970
{ echo "$as_me:$LINENO: result: yes" >&5
15971
echo "${ECHO_T}yes" >&6; }
15973
{ echo "$as_me:$LINENO: result: no" >&5
15974
echo "${ECHO_T}no" >&6; }
15978
{ echo "$as_me:$LINENO: result: no" >&5
15979
echo "${ECHO_T}no" >&6; }
15986
# The else clause should only fire when bootstrapping the
15987
# libtool distribution, otherwise you forgot to ship ltmain.sh
15988
# with your package, and you will get complaints that there are
15989
# no rules to generate ltmain.sh.
15990
if test -f "$ltmain"; then
15991
# See if we are running on zsh, and set the options which allow our commands through
15992
# without removal of \ escapes.
15993
if test -n "${ZSH_VERSION+set}" ; then
15994
setopt NO_GLOB_SUBST
15996
# Now quote all the things that may contain metacharacters while being
15997
# careful not to overquote the AC_SUBSTed values. We take copies of the
15998
# variables and quote the copies for generation of the libtool script.
15999
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16001
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16002
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16003
deplibs_check_method reload_flag reload_cmds need_locks \
16004
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16005
lt_cv_sys_global_symbol_to_c_name_address \
16006
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16007
old_postinstall_cmds old_postuninstall_cmds \
16011
lt_prog_compiler_wl_F77 \
16012
lt_prog_compiler_pic_F77 \
16013
lt_prog_compiler_static_F77 \
16014
lt_prog_compiler_no_builtin_flag_F77 \
16015
export_dynamic_flag_spec_F77 \
16016
thread_safe_flag_spec_F77 \
16017
whole_archive_flag_spec_F77 \
16018
enable_shared_with_static_runtimes_F77 \
16019
old_archive_cmds_F77 \
16020
old_archive_from_new_cmds_F77 \
16021
predep_objects_F77 \
16022
postdep_objects_F77 \
16025
compiler_lib_search_path_F77 \
16027
archive_expsym_cmds_F77 \
16028
postinstall_cmds_F77 \
16029
postuninstall_cmds_F77 \
16030
old_archive_from_expsyms_cmds_F77 \
16031
allow_undefined_flag_F77 \
16032
no_undefined_flag_F77 \
16033
export_symbols_cmds_F77 \
16034
hardcode_libdir_flag_spec_F77 \
16035
hardcode_libdir_flag_spec_ld_F77 \
16036
hardcode_libdir_separator_F77 \
16037
hardcode_automatic_F77 \
16039
module_expsym_cmds_F77 \
16040
lt_cv_prog_compiler_c_o_F77 \
16041
exclude_expsyms_F77 \
16042
include_expsyms_F77; do
16045
old_archive_cmds_F77 | \
16046
old_archive_from_new_cmds_F77 | \
16047
archive_cmds_F77 | \
16048
archive_expsym_cmds_F77 | \
16049
module_cmds_F77 | \
16050
module_expsym_cmds_F77 | \
16051
old_archive_from_expsyms_cmds_F77 | \
16052
export_symbols_cmds_F77 | \
16053
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16054
postinstall_cmds | postuninstall_cmds | \
16055
old_postinstall_cmds | old_postuninstall_cmds | \
16056
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16057
# Double-quote double-evaled strings.
16058
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16061
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16067
*'\$0 --fallback-echo"')
16068
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16074
cat <<__EOF__ >> "$cfgfile"
16075
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16077
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16079
# Shell to use when invoking shell scripts.
16082
# Whether or not to build shared libraries.
16083
build_libtool_libs=$enable_shared
16085
# Whether or not to build static libraries.
16086
build_old_libs=$enable_static
16088
# Whether or not to add -lc for building shared libraries.
16089
build_libtool_need_lc=$archive_cmds_need_lc_F77
16091
# Whether or not to disallow shared libs when runtime libs are static
16092
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16094
# Whether or not to optimize for fast installation.
16095
fast_install=$enable_fast_install
16098
host_alias=$host_alias
16101
# An echo program that does not interpret backslashes.
16106
AR_FLAGS=$lt_AR_FLAGS
16111
# A language-specific compiler.
16112
CC=$lt_compiler_F77
16114
# Is the compiler the GNU C compiler?
16120
# The linker used to build libraries.
16123
# Whether we need hard or soft links.
16126
# A BSD-compatible nm program.
16129
# A symbol stripping program
16132
# Used to examine libraries when file_magic_cmd begins "file"
16133
MAGIC_CMD=$MAGIC_CMD
16135
# Used on cygwin: DLL creation program.
16138
# Used on cygwin: object dumper.
16141
# Used on cygwin: assembler.
16144
# The name of the directory that contains temporary libtool files.
16147
# How to create reloadable object files.
16148
reload_flag=$lt_reload_flag
16149
reload_cmds=$lt_reload_cmds
16151
# How to pass a linker flag through the compiler.
16152
wl=$lt_lt_prog_compiler_wl_F77
16154
# Object file suffix (normally "o").
16155
objext="$ac_objext"
16157
# Old archive suffix (normally "a").
16160
# Shared library suffix (normally ".so").
16161
shrext_cmds='$shrext_cmds'
16163
# Executable file suffix (normally "").
16166
# Additional compiler flags for building library objects.
16167
pic_flag=$lt_lt_prog_compiler_pic_F77
16170
# What is the maximum length of a command?
16171
max_cmd_len=$lt_cv_sys_max_cmd_len
16173
# Does compiler simultaneously support -c and -o options?
16174
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16176
# Must we lock files when doing compilation ?
16177
need_locks=$lt_need_locks
16179
# Do we need the lib prefix for modules?
16180
need_lib_prefix=$need_lib_prefix
16182
# Do we need a version for libraries?
16183
need_version=$need_version
16185
# Whether dlopen is supported.
16186
dlopen_support=$enable_dlopen
16188
# Whether dlopen of programs is supported.
16189
dlopen_self=$enable_dlopen_self
16191
# Whether dlopen of statically linked programs is supported.
16192
dlopen_self_static=$enable_dlopen_self_static
16194
# Compiler flag to prevent dynamic linking.
16195
link_static_flag=$lt_lt_prog_compiler_static_F77
16197
# Compiler flag to turn off builtin functions.
16198
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16200
# Compiler flag to allow reflexive dlopens.
16201
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16203
# Compiler flag to generate shared objects directly from archives.
16204
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16206
# Compiler flag to generate thread-safe objects.
16207
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16209
# Library versioning type.
16210
version_type=$version_type
16212
# Format of library name prefix.
16213
libname_spec=$lt_libname_spec
16215
# List of archive names. First name is the real one, the rest are links.
16216
# The last name is the one that the linker finds with -lNAME.
16217
library_names_spec=$lt_library_names_spec
16219
# The coded name of the library, if different from the real name.
16220
soname_spec=$lt_soname_spec
16222
# Commands used to build and install an old-style archive.
16224
old_archive_cmds=$lt_old_archive_cmds_F77
16225
old_postinstall_cmds=$lt_old_postinstall_cmds
16226
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16228
# Create an old-style archive from a shared archive.
16229
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16231
# Create a temporary old-style archive to link instead of a shared archive.
16232
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16234
# Commands used to build and install a shared archive.
16235
archive_cmds=$lt_archive_cmds_F77
16236
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16237
postinstall_cmds=$lt_postinstall_cmds
16238
postuninstall_cmds=$lt_postuninstall_cmds
16240
# Commands used to build a loadable module (assumed same as above if empty)
16241
module_cmds=$lt_module_cmds_F77
16242
module_expsym_cmds=$lt_module_expsym_cmds_F77
16244
# Commands to strip libraries.
16245
old_striplib=$lt_old_striplib
16246
striplib=$lt_striplib
16248
# Dependencies to place before the objects being linked to create a
16250
predep_objects=$lt_predep_objects_F77
16252
# Dependencies to place after the objects being linked to create a
16254
postdep_objects=$lt_postdep_objects_F77
16256
# Dependencies to place before the objects being linked to create a
16258
predeps=$lt_predeps_F77
16260
# Dependencies to place after the objects being linked to create a
16262
postdeps=$lt_postdeps_F77
16264
# The library search path used internally by the compiler when linking
16265
# a shared library.
16266
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16268
# Method to check whether dependent libraries are shared objects.
16269
deplibs_check_method=$lt_deplibs_check_method
16271
# Command to use when deplibs_check_method == file_magic.
16272
file_magic_cmd=$lt_file_magic_cmd
16274
# Flag that allows shared libraries with undefined symbols to be built.
16275
allow_undefined_flag=$lt_allow_undefined_flag_F77
16277
# Flag that forces no undefined symbols.
16278
no_undefined_flag=$lt_no_undefined_flag_F77
16280
# Commands used to finish a libtool library installation in a directory.
16281
finish_cmds=$lt_finish_cmds
16283
# Same as above, but a single script fragment to be evaled but not shown.
16284
finish_eval=$lt_finish_eval
16286
# Take the output of nm and produce a listing of raw symbols and C names.
16287
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16289
# Transform the output of nm in a proper C declaration
16290
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16292
# Transform the output of nm in a C name address pair
16293
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16295
# This is the shared library runtime path variable.
16296
runpath_var=$runpath_var
16298
# This is the shared library path variable.
16299
shlibpath_var=$shlibpath_var
16301
# Is shlibpath searched before the hard-coded library search path?
16302
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16304
# How to hardcode a shared library path into an executable.
16305
hardcode_action=$hardcode_action_F77
16307
# Whether we should hardcode library paths into libraries.
16308
hardcode_into_libs=$hardcode_into_libs
16310
# Flag to hardcode \$libdir into a binary during linking.
16311
# This must work even if \$libdir does not exist.
16312
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16314
# If ld is used when linking, flag to hardcode \$libdir into
16315
# a binary during linking. This must work even if \$libdir does
16317
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16319
# Whether we need a single -rpath flag with a separated argument.
16320
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16322
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16323
# resulting binary.
16324
hardcode_direct=$hardcode_direct_F77
16326
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16327
# resulting binary.
16328
hardcode_minus_L=$hardcode_minus_L_F77
16330
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16331
# the resulting binary.
16332
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16334
# Set to yes if building a shared library automatically hardcodes DIR into the library
16335
# and all subsequent libraries and executables linked against it.
16336
hardcode_automatic=$hardcode_automatic_F77
16338
# Variables whose values should be saved in libtool wrapper scripts and
16339
# restored at relink time.
16340
variables_saved_for_relink="$variables_saved_for_relink"
16342
# Whether libtool must link a program against all its dependency libraries.
16343
link_all_deplibs=$link_all_deplibs_F77
16345
# Compile-time system search path for libraries
16346
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16348
# Run-time system search path for libraries
16349
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16351
# Fix the shell variable \$srcfile for the compiler.
16352
fix_srcfile_path="$fix_srcfile_path_F77"
16354
# Set to yes if exported symbols are required.
16355
always_export_symbols=$always_export_symbols_F77
16357
# The commands to list exported symbols.
16358
export_symbols_cmds=$lt_export_symbols_cmds_F77
16360
# The commands to extract the exported symbol list from a shared archive.
16361
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16363
# Symbols that should not be listed in the preloaded symbols.
16364
exclude_expsyms=$lt_exclude_expsyms_F77
16366
# Symbols that must always be exported.
16367
include_expsyms=$lt_include_expsyms_F77
16369
# ### END LIBTOOL TAG CONFIG: $tagname
16375
# If there is no Makefile yet, we rely on a make rule to execute
16376
# `config.status --recheck' to rerun these tests and create the
16377
# libtool script then.
16378
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16379
if test -f "$ltmain_in"; then
16380
test -f Makefile && make "$ltmain"
16386
ac_cpp='$CPP $CPPFLAGS'
16387
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16388
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16389
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16399
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16402
# Source file extension for Java test sources.
16405
# Object file extension for compiled Java test sources.
16409
# Code to be used in simple compile tests
16410
lt_simple_compile_test_code="class foo {}\n"
16412
# Code to be used in simple link tests
16413
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16415
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16417
# If no C compiler was specified, use CC.
16420
# Allow CC to be a program name with arguments.
16424
# Allow CC to be a program name with arguments.
16430
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16431
archive_cmds_need_lc_GCJ=no
16434
lt_prog_compiler_no_builtin_flag_GCJ=
16436
if test "$GCC" = yes; then
16437
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16440
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16441
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16442
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16443
echo $ECHO_N "(cached) $ECHO_C" >&6
16445
lt_cv_prog_compiler_rtti_exceptions=no
16446
ac_outfile=conftest.$ac_objext
16447
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16448
lt_compiler_flag="-fno-rtti -fno-exceptions"
16449
# Insert the option either (1) after the last *FLAGS variable, or
16450
# (2) before a word containing "conftest.", or (3) at the end.
16451
# Note that $ac_compile itself does not contain backslashes and begins
16452
# with a dollar sign (not a hyphen), so the echo should work correctly.
16453
# The option is referenced via a variable to avoid confusing sed.
16454
lt_compile=`echo "$ac_compile" | $SED \
16455
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16456
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16457
-e 's:$: $lt_compiler_flag:'`
16458
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16459
(eval "$lt_compile" 2>conftest.err)
16461
cat conftest.err >&5
16462
echo "$as_me:__oline__: \$? = $ac_status" >&5
16463
if (exit $ac_status) && test -s "$ac_outfile"; then
16464
# The compiler can only warn and ignore the option if not recognized
16465
# So say no if there are warnings
16466
if test ! -s conftest.err; then
16467
lt_cv_prog_compiler_rtti_exceptions=yes
16473
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16474
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16476
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16477
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16484
lt_prog_compiler_wl_GCJ=
16485
lt_prog_compiler_pic_GCJ=
16486
lt_prog_compiler_static_GCJ=
16488
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16489
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16491
if test "$GCC" = yes; then
16492
lt_prog_compiler_wl_GCJ='-Wl,'
16493
lt_prog_compiler_static_GCJ='-static'
16497
# All AIX code is PIC.
16498
if test "$host_cpu" = ia64; then
16499
# AIX 5 now supports IA64 processor
16500
lt_prog_compiler_static_GCJ='-Bstatic'
16505
# FIXME: we need at least 68020 code to build shared libraries, but
16506
# adding the `-m68020' flag to GCC prevents building anything better,
16508
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16511
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16512
# PIC is the default for these OSes.
16515
mingw* | pw32* | os2*)
16516
# This hack is so that the source file can tell whether it is being
16517
# built for inclusion in a dll (and should export symbols for example).
16518
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16521
darwin* | rhapsody*)
16522
# PIC is the default on this platform
16523
# Common symbols not allowed in MH_DYLIB files
16524
lt_prog_compiler_pic_GCJ='-fno-common'
16528
# Just because we use GCC doesn't mean we suddenly get shared libraries
16529
# on systems that don't support them.
16530
lt_prog_compiler_can_build_shared_GCJ=no
16535
if test -d /usr/nec; then
16536
lt_prog_compiler_pic_GCJ=-Kconform_pic
16541
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16542
# not for PA HP-UX.
16543
case "$host_cpu" in
16548
lt_prog_compiler_pic_GCJ='-fPIC'
16554
lt_prog_compiler_pic_GCJ='-fPIC'
16558
# PORTME Check for flag to pass linker flags through the system compiler.
16561
lt_prog_compiler_wl_GCJ='-Wl,'
16562
if test "$host_cpu" = ia64; then
16563
# AIX 5 now supports IA64 processor
16564
lt_prog_compiler_static_GCJ='-Bstatic'
16566
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16570
mingw* | pw32* | os2*)
16571
# This hack is so that the source file can tell whether it is being
16572
# built for inclusion in a dll (and should export symbols for example).
16573
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16576
hpux9* | hpux10* | hpux11*)
16577
lt_prog_compiler_wl_GCJ='-Wl,'
16578
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16579
# not for PA HP-UX.
16580
case "$host_cpu" in
16585
lt_prog_compiler_pic_GCJ='+Z'
16588
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16589
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16592
irix5* | irix6* | nonstopux*)
16593
lt_prog_compiler_wl_GCJ='-Wl,'
16594
# PIC (with -KPIC) is the default.
16595
lt_prog_compiler_static_GCJ='-non_shared'
16599
lt_prog_compiler_pic_GCJ='-KPIC'
16600
lt_prog_compiler_static_GCJ='-Bstatic'
16606
lt_prog_compiler_wl_GCJ='-Wl,'
16607
lt_prog_compiler_pic_GCJ='-KPIC'
16608
lt_prog_compiler_static_GCJ='-static'
16611
lt_prog_compiler_wl_GCJ='-Wl,'
16612
# All Alpha code is PIC.
16613
lt_prog_compiler_static_GCJ='-non_shared'
16618
osf3* | osf4* | osf5*)
16619
lt_prog_compiler_wl_GCJ='-Wl,'
16620
# All OSF/1 code is PIC.
16621
lt_prog_compiler_static_GCJ='-non_shared'
16625
lt_prog_compiler_pic_GCJ='-Kpic'
16626
lt_prog_compiler_static_GCJ='-dn'
16630
lt_prog_compiler_wl_GCJ='-Wl,'
16631
lt_prog_compiler_pic_GCJ='-KPIC'
16632
lt_prog_compiler_static_GCJ='-Bstatic'
16636
lt_prog_compiler_wl_GCJ='-Qoption ld '
16637
lt_prog_compiler_pic_GCJ='-PIC'
16638
lt_prog_compiler_static_GCJ='-Bstatic'
16641
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16642
lt_prog_compiler_wl_GCJ='-Wl,'
16643
lt_prog_compiler_pic_GCJ='-KPIC'
16644
lt_prog_compiler_static_GCJ='-Bstatic'
16648
if test -d /usr/nec ;then
16649
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16650
lt_prog_compiler_static_GCJ='-Bstatic'
16655
lt_prog_compiler_pic_GCJ='-pic'
16656
lt_prog_compiler_static_GCJ='-Bstatic'
16660
lt_prog_compiler_can_build_shared_GCJ=no
16665
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16666
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16669
# Check to make sure the PIC flag actually works.
16671
if test -n "$lt_prog_compiler_pic_GCJ"; then
16673
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16674
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16675
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16676
echo $ECHO_N "(cached) $ECHO_C" >&6
16678
lt_prog_compiler_pic_works_GCJ=no
16679
ac_outfile=conftest.$ac_objext
16680
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16681
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16682
# Insert the option either (1) after the last *FLAGS variable, or
16683
# (2) before a word containing "conftest.", or (3) at the end.
16684
# Note that $ac_compile itself does not contain backslashes and begins
16685
# with a dollar sign (not a hyphen), so the echo should work correctly.
16686
# The option is referenced via a variable to avoid confusing sed.
16687
lt_compile=`echo "$ac_compile" | $SED \
16688
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16689
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16690
-e 's:$: $lt_compiler_flag:'`
16691
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16692
(eval "$lt_compile" 2>conftest.err)
16694
cat conftest.err >&5
16695
echo "$as_me:__oline__: \$? = $ac_status" >&5
16696
if (exit $ac_status) && test -s "$ac_outfile"; then
16697
# The compiler can only warn and ignore the option if not recognized
16698
# So say no if there are warnings
16699
if test ! -s conftest.err; then
16700
lt_prog_compiler_pic_works_GCJ=yes
16706
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16707
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16709
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16710
case $lt_prog_compiler_pic_GCJ in
16712
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16715
lt_prog_compiler_pic_GCJ=
16716
lt_prog_compiler_can_build_shared_GCJ=no
16721
# For platforms which do not support PIC, -DPIC is meaningless:
16723
lt_prog_compiler_pic_GCJ=
16726
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16730
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16731
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16732
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16733
echo $ECHO_N "(cached) $ECHO_C" >&6
16735
lt_cv_prog_compiler_c_o_GCJ=no
16736
$rm -r conftest 2>/dev/null
16740
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16742
lt_compiler_flag="-o out/conftest2.$ac_objext"
16743
# Insert the option either (1) after the last *FLAGS variable, or
16744
# (2) before a word containing "conftest.", or (3) at the end.
16745
# Note that $ac_compile itself does not contain backslashes and begins
16746
# with a dollar sign (not a hyphen), so the echo should work correctly.
16747
lt_compile=`echo "$ac_compile" | $SED \
16748
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16749
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16750
-e 's:$: $lt_compiler_flag:'`
16751
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16752
(eval "$lt_compile" 2>out/conftest.err)
16754
cat out/conftest.err >&5
16755
echo "$as_me:__oline__: \$? = $ac_status" >&5
16756
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16758
# The compiler can only warn and ignore the option if not recognized
16759
# So say no if there are warnings
16760
if test ! -s out/conftest.err; then
16761
lt_cv_prog_compiler_c_o_GCJ=yes
16766
# SGI C++ compiler will create directory out/ii_files/ for
16767
# template instantiation
16768
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16769
$rm out/* && rmdir out
16775
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16776
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16779
hard_links="nottested"
16780
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16781
# do not overwrite the value of need_locks provided by the user
16782
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16783
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16786
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16788
ln conftest.a conftest.b 2>&5 || hard_links=no
16789
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16790
{ echo "$as_me:$LINENO: result: $hard_links" >&5
16791
echo "${ECHO_T}$hard_links" >&6; }
16792
if test "$hard_links" = no; then
16793
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16794
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16801
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16802
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16805
allow_undefined_flag_GCJ=
16806
enable_shared_with_static_runtimes_GCJ=no
16808
archive_expsym_cmds_GCJ=
16809
old_archive_From_new_cmds_GCJ=
16810
old_archive_from_expsyms_cmds_GCJ=
16811
export_dynamic_flag_spec_GCJ=
16812
whole_archive_flag_spec_GCJ=
16813
thread_safe_flag_spec_GCJ=
16814
hardcode_libdir_flag_spec_GCJ=
16815
hardcode_libdir_flag_spec_ld_GCJ=
16816
hardcode_libdir_separator_GCJ=
16817
hardcode_direct_GCJ=no
16818
hardcode_minus_L_GCJ=no
16819
hardcode_shlibpath_var_GCJ=unsupported
16820
link_all_deplibs_GCJ=unknown
16821
hardcode_automatic_GCJ=no
16823
module_expsym_cmds_GCJ=
16824
always_export_symbols_GCJ=no
16825
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16826
# include_expsyms should be a list of space-separated symbols to be *always*
16827
# included in the symbol list
16828
include_expsyms_GCJ=
16829
# exclude_expsyms can be an extended regexp of symbols to exclude
16830
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16831
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16832
# as well as any symbol that contains `d'.
16833
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16834
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16835
# platforms (ab)use it in PIC code, but their linkers get confused if
16836
# the symbol is explicitly referenced. Since portable code cannot
16837
# rely on this symbol name, it's probably fine to never include it in
16838
# preloaded symbol tables.
16839
extract_expsyms_cmds=
16842
cygwin* | mingw* | pw32*)
16843
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16844
# When not using gcc, we currently assume that we are using
16845
# Microsoft Visual C++.
16846
if test "$GCC" != yes; then
16856
if test "$with_gnu_ld" = yes; then
16857
# If archive_cmds runs LD, not CC, wlarc should be empty
16860
# See if GNU ld supports shared libraries.
16862
aix3* | aix4* | aix5*)
16863
# On AIX/PPC, the GNU linker is very broken
16864
if test "$host_cpu" != ia64; then
16868
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16869
*** to be unable to reliably create shared libraries on AIX.
16870
*** Therefore, libtool is disabling shared libraries support. If you
16871
*** really care for shared libraries, you may want to modify your PATH
16872
*** so that a non-GNU linker is found, and then restart.
16879
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)'
16880
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16881
hardcode_minus_L_GCJ=yes
16883
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16884
# that the semantics of dynamic libraries on AmigaOS, at least up
16885
# to version 4, is to share data among multiple programs linked
16886
# with the same dynamic library. Since this doesn't match the
16887
# behavior of shared libraries on other platforms, we can't use
16893
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16894
allow_undefined_flag_GCJ=unsupported
16895
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16896
# support --undefined. This deserves some investigation. FIXME
16897
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16903
cygwin* | mingw* | pw32*)
16904
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16905
# as there is no search path for DLLs.
16906
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16907
allow_undefined_flag_GCJ=unsupported
16908
always_export_symbols_GCJ=no
16909
enable_shared_with_static_runtimes_GCJ=yes
16910
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16912
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16913
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16914
# If the export-symbols file already is a .def file (1st line
16915
# is EXPORTS), use it as is; otherwise, prepend...
16916
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16917
cp $export_symbols $output_objdir/$soname.def;
16919
echo EXPORTS > $output_objdir/$soname.def;
16920
cat $export_symbols >> $output_objdir/$soname.def;
16922
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16928
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16929
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16930
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16933
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16934
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16939
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16943
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16944
*** create shared libraries on Solaris systems. Therefore, libtool
16945
*** is disabling shared libraries support. We urge you to upgrade GNU
16946
*** binutils to release 2.9.1 or newer. Another option is to modify
16947
*** your PATH or compiler configuration so that the native linker is
16948
*** used, and then restart.
16951
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16952
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16953
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16960
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16962
hardcode_direct_GCJ=yes
16963
hardcode_shlibpath_var_GCJ=no
16967
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16968
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16969
archive_cmds_GCJ="$tmp_archive_cmds"
16970
supports_anon_versioning=no
16971
case `$LD -v 2>/dev/null` in
16972
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16973
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16974
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16975
*\ 2.11.*) ;; # other 2.11 versions
16976
*) supports_anon_versioning=yes ;;
16978
if test $supports_anon_versioning = yes; then
16979
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16980
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16981
$echo "local: *; };" >> $output_objdir/$libname.ver~
16982
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16984
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16986
link_all_deplibs_GCJ=no
16993
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16994
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16995
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17002
if test "$ld_shlibs_GCJ" = yes; then
17003
runpath_var=LD_RUN_PATH
17004
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17005
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17006
# ancient GNU ld didn't support --whole-archive et. al.
17007
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17008
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17010
whole_archive_flag_spec_GCJ=
17014
# PORTME fill in a description of your system's linker (not GNU ld)
17017
allow_undefined_flag_GCJ=unsupported
17018
always_export_symbols_GCJ=yes
17019
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'
17020
# Note: this linker hardcodes the directories in LIBPATH if there
17021
# are no directories specified by -L.
17022
hardcode_minus_L_GCJ=yes
17023
if test "$GCC" = yes && test -z "$link_static_flag"; then
17024
# Neither direct hardcoding nor static linking is supported with a
17026
hardcode_direct_GCJ=unsupported
17031
if test "$host_cpu" = ia64; then
17032
# On IA64, the linker does run time linking by default, so we don't
17033
# have to do anything special.
17034
aix_use_runtimelinking=no
17035
exp_sym_flag='-Bexport'
17038
# If we're using GNU nm, then we don't want the "-C" option.
17039
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17040
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17041
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'
17043
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'
17045
aix_use_runtimelinking=no
17047
# Test if we are trying to use run time linking or normal
17048
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17049
# need to do runtime linking.
17050
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17051
for ld_flag in $LDFLAGS; do
17052
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17053
aix_use_runtimelinking=yes
17059
exp_sym_flag='-bexport'
17060
no_entry_flag='-bnoentry'
17063
# When large executables or shared objects are built, AIX ld can
17064
# have problems creating the table of contents. If linking a library
17065
# or program results in "error TOC overflow" add -mminimal-toc to
17066
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17067
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17069
archive_cmds_GCJ=''
17070
hardcode_direct_GCJ=yes
17071
hardcode_libdir_separator_GCJ=':'
17072
link_all_deplibs_GCJ=yes
17074
if test "$GCC" = yes; then
17075
case $host_os in aix4.012|aix4.012.*)
17076
# We only want to do this on AIX 4.2 and lower, the check
17077
# below for broken collect2 doesn't work under 4.3+
17078
collect2name=`${CC} -print-prog-name=collect2`
17079
if test -f "$collect2name" && \
17080
strings "$collect2name" | grep resolve_lib_name >/dev/null
17082
# We have reworked collect2
17083
hardcode_direct_GCJ=yes
17085
# We have old collect2
17086
hardcode_direct_GCJ=unsupported
17087
# It fails to find uninstalled libraries when the uninstalled
17088
# path is not listed in the libpath. Setting hardcode_minus_L
17089
# to unsupported forces relinking
17090
hardcode_minus_L_GCJ=yes
17091
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17092
hardcode_libdir_separator_GCJ=
17095
shared_flag='-shared'
17098
if test "$host_cpu" = ia64; then
17099
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17100
# chokes on -Wl,-G. The following line is correct:
17103
if test "$aix_use_runtimelinking" = yes; then
17104
shared_flag='${wl}-G'
17106
shared_flag='${wl}-bM:SRE'
17111
# It seems that -bexpall does not export symbols beginning with
17112
# underscore (_), so it is better to generate a list of symbols to export.
17113
always_export_symbols_GCJ=yes
17114
if test "$aix_use_runtimelinking" = yes; then
17115
# Warning - without using the other runtime loading flags (-brtl),
17116
# -berok will link without error, but may produce a broken library.
17117
allow_undefined_flag_GCJ='-berok'
17118
# Determine the default libpath from the value encoded in an empty executable.
17119
cat >conftest.$ac_ext <<_ACEOF
17122
cat confdefs.h >>conftest.$ac_ext
17123
cat >>conftest.$ac_ext <<_ACEOF
17124
/* end confdefs.h. */
17134
rm -f conftest.$ac_objext conftest$ac_exeext
17135
if { (ac_try="$ac_link"
17136
case "(($ac_try" in
17137
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138
*) ac_try_echo=$ac_try;;
17140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141
(eval "$ac_link") 2>conftest.er1
17143
grep -v '^ *+' conftest.er1 >conftest.err
17145
cat conftest.err >&5
17146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147
(exit $ac_status); } && {
17148
test -z "$ac_c_werror_flag" ||
17149
test ! -s conftest.err
17150
} && test -s conftest$ac_exeext &&
17151
$as_test_x conftest$ac_exeext; then
17153
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17155
# Check for a 64-bit object if we didn't find anything.
17156
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17159
echo "$as_me: failed program was:" >&5
17160
sed 's/^/| /' conftest.$ac_ext >&5
17165
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17166
conftest$ac_exeext conftest.$ac_ext
17167
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17169
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17170
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17172
if test "$host_cpu" = ia64; then
17173
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17174
allow_undefined_flag_GCJ="-z nodefs"
17175
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17177
# Determine the default libpath from the value encoded in an empty executable.
17178
cat >conftest.$ac_ext <<_ACEOF
17181
cat confdefs.h >>conftest.$ac_ext
17182
cat >>conftest.$ac_ext <<_ACEOF
17183
/* end confdefs.h. */
17193
rm -f conftest.$ac_objext conftest$ac_exeext
17194
if { (ac_try="$ac_link"
17195
case "(($ac_try" in
17196
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197
*) ac_try_echo=$ac_try;;
17199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200
(eval "$ac_link") 2>conftest.er1
17202
grep -v '^ *+' conftest.er1 >conftest.err
17204
cat conftest.err >&5
17205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206
(exit $ac_status); } && {
17207
test -z "$ac_c_werror_flag" ||
17208
test ! -s conftest.err
17209
} && test -s conftest$ac_exeext &&
17210
$as_test_x conftest$ac_exeext; then
17212
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17214
# Check for a 64-bit object if we didn't find anything.
17215
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17218
echo "$as_me: failed program was:" >&5
17219
sed 's/^/| /' conftest.$ac_ext >&5
17224
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17225
conftest$ac_exeext conftest.$ac_ext
17226
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17228
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17229
# Warning - without using the other run time loading flags,
17230
# -berok will link without error, but may produce a broken library.
17231
no_undefined_flag_GCJ=' ${wl}-bernotok'
17232
allow_undefined_flag_GCJ=' ${wl}-berok'
17233
# -bexpall does not export symbols beginning with underscore (_)
17234
always_export_symbols_GCJ=yes
17235
# Exported symbols can be pulled into shared objects from archives
17236
whole_archive_flag_spec_GCJ=' '
17237
archive_cmds_need_lc_GCJ=yes
17238
# This is similar to how AIX traditionally builds it's shared libraries.
17239
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17245
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)'
17246
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17247
hardcode_minus_L_GCJ=yes
17248
# see comment about different semantics on the GNU ld section
17253
export_dynamic_flag_spec_GCJ=-rdynamic
17256
cygwin* | mingw* | pw32*)
17257
# When not using gcc, we currently assume that we are using
17258
# Microsoft Visual C++.
17259
# hardcode_libdir_flag_spec is actually meaningless, as there is
17260
# no search path for DLLs.
17261
hardcode_libdir_flag_spec_GCJ=' '
17262
allow_undefined_flag_GCJ=unsupported
17263
# Tell ltmain to make .lib files, not .a files.
17265
# Tell ltmain to make .dll files, not .so files.
17267
# FIXME: Setting linknames here is a bad hack.
17268
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17269
# The linker will automatically build a .lib file if we build a DLL.
17270
old_archive_From_new_cmds_GCJ='true'
17271
# FIXME: Should let the user specify the lib program.
17272
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17273
fix_srcfile_path='`cygpath -w "$srcfile"`'
17274
enable_shared_with_static_runtimes_GCJ=yes
17277
darwin* | rhapsody*)
17278
if test "$GXX" = yes ; then
17279
archive_cmds_need_lc_GCJ=no
17281
rhapsody* | darwin1.[012])
17282
allow_undefined_flag_GCJ='-undefined suppress'
17285
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17286
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17288
case ${MACOSX_DEPLOYMENT_TARGET} in
17290
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17293
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17299
lt_int_apple_cc_single_mod=no
17300
output_verbose_link_cmd='echo'
17301
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17302
lt_int_apple_cc_single_mod=yes
17304
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17305
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17307
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
17309
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17310
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17311
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17312
archive_expsym_cmds_GCJ='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}'
17314
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
17316
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}'
17317
hardcode_direct_GCJ=no
17318
hardcode_automatic_GCJ=yes
17319
hardcode_shlibpath_var_GCJ=unsupported
17320
whole_archive_flag_spec_GCJ='-all_load $convenience'
17321
link_all_deplibs_GCJ=yes
17328
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17329
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17330
hardcode_shlibpath_var_GCJ=no
17337
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17338
# support. Future versions do this automatically, but an explicit c++rt0.o
17339
# does not break anything, and helps significantly (at the cost of a little
17342
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17343
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17344
hardcode_direct_GCJ=yes
17345
hardcode_shlibpath_var_GCJ=no
17348
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17350
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17351
hardcode_direct_GCJ=yes
17352
hardcode_minus_L_GCJ=yes
17353
hardcode_shlibpath_var_GCJ=no
17356
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17357
freebsd* | kfreebsd*-gnu)
17358
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17359
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17360
hardcode_direct_GCJ=yes
17361
hardcode_shlibpath_var_GCJ=no
17365
if test "$GCC" = yes; then
17366
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'
17368
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'
17370
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17371
hardcode_libdir_separator_GCJ=:
17372
hardcode_direct_GCJ=yes
17374
# hardcode_minus_L: Not really in the search PATH,
17375
# but as the default location of the library.
17376
hardcode_minus_L_GCJ=yes
17377
export_dynamic_flag_spec_GCJ='${wl}-E'
17381
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17382
case "$host_cpu" in
17384
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17387
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17391
case "$host_cpu" in
17393
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17396
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17400
if test "$with_gnu_ld" = no; then
17401
case "$host_cpu" in
17403
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17404
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17405
hardcode_libdir_separator_GCJ=:
17406
hardcode_direct_GCJ=no
17407
hardcode_shlibpath_var_GCJ=no
17410
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17411
hardcode_direct_GCJ=no
17412
hardcode_shlibpath_var_GCJ=no
17414
# hardcode_minus_L: Not really in the search PATH,
17415
# but as the default location of the library.
17416
hardcode_minus_L_GCJ=yes
17419
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17420
hardcode_libdir_separator_GCJ=:
17421
hardcode_direct_GCJ=yes
17422
export_dynamic_flag_spec_GCJ='${wl}-E'
17424
# hardcode_minus_L: Not really in the search PATH,
17425
# but as the default location of the library.
17426
hardcode_minus_L_GCJ=yes
17432
irix5* | irix6* | nonstopux*)
17433
if test "$GCC" = yes; then
17434
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'
17436
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'
17437
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17439
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17440
hardcode_libdir_separator_GCJ=:
17441
link_all_deplibs_GCJ=yes
17444
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17445
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17446
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17448
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17450
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17451
hardcode_direct_GCJ=yes
17452
hardcode_shlibpath_var_GCJ=no
17456
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17457
hardcode_direct_GCJ=yes
17458
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17459
hardcode_libdir_separator_GCJ=:
17460
hardcode_shlibpath_var_GCJ=no
17464
hardcode_direct_GCJ=yes
17465
hardcode_shlibpath_var_GCJ=no
17466
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17467
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17468
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17469
export_dynamic_flag_spec_GCJ='${wl}-E'
17472
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17473
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17474
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17477
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17478
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17485
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17486
hardcode_minus_L_GCJ=yes
17487
allow_undefined_flag_GCJ=unsupported
17488
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'
17489
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17493
if test "$GCC" = yes; then
17494
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17495
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'
17497
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17498
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'
17500
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17501
hardcode_libdir_separator_GCJ=:
17504
osf4* | osf5*) # as osf3* with the addition of -msym flag
17505
if test "$GCC" = yes; then
17506
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17507
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'
17508
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17510
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17511
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'
17512
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~
17513
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17515
# Both c and cxx compiler support -rpath directly
17516
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17518
hardcode_libdir_separator_GCJ=:
17522
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17523
hardcode_shlibpath_var_GCJ=no
17524
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17525
runpath_var=LD_RUN_PATH
17526
hardcode_runpath_var=yes
17530
no_undefined_flag_GCJ=' -z text'
17531
if test "$GCC" = yes; then
17532
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17533
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17534
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17536
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17537
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17538
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17540
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17541
hardcode_shlibpath_var_GCJ=no
17543
solaris2.[0-5] | solaris2.[0-5].*) ;;
17544
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
17545
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17547
link_all_deplibs_GCJ=yes
17551
if test "x$host_vendor" = xsequent; then
17552
# Use $CC to link under sequent, because it throws in some extra .o
17553
# files that make .init and .fini sections work.
17554
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17556
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17558
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17559
hardcode_direct_GCJ=yes
17560
hardcode_minus_L_GCJ=yes
17561
hardcode_shlibpath_var_GCJ=no
17565
case $host_vendor in
17567
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17568
hardcode_direct_GCJ=yes # is this really true???
17571
## LD is ld it makes a PLAMLIB
17572
## CC just makes a GrossModule.
17573
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17574
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17575
hardcode_direct_GCJ=no
17578
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17579
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17582
runpath_var='LD_RUN_PATH'
17583
hardcode_shlibpath_var_GCJ=no
17587
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17588
hardcode_shlibpath_var_GCJ=no
17589
export_dynamic_flag_spec_GCJ='-Bexport'
17593
if test -d /usr/nec; then
17594
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17595
hardcode_shlibpath_var_GCJ=no
17596
runpath_var=LD_RUN_PATH
17597
hardcode_runpath_var=yes
17603
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17604
hardcode_direct_GCJ=yes
17605
hardcode_minus_L_GCJ=no
17606
hardcode_shlibpath_var_GCJ=no
17607
hardcode_runpath_var=yes
17608
runpath_var=LD_RUN_PATH
17611
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17612
no_undefined_flag_GCJ='${wl}-z ${wl}text'
17613
if test "$GCC" = yes; then
17614
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17616
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17618
runpath_var='LD_RUN_PATH'
17619
hardcode_shlibpath_var_GCJ=no
17623
no_undefined_flag_GCJ=' -z text'
17624
# $CC -shared without GNU ld will not create a library from C++
17625
# object files and a static libstdc++, better avoid it by now
17626
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17627
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17628
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17629
hardcode_libdir_flag_spec_GCJ=
17630
hardcode_shlibpath_var_GCJ=no
17631
runpath_var='LD_RUN_PATH'
17635
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17636
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17637
hardcode_shlibpath_var_GCJ=no
17646
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17647
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17648
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17650
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17651
if test "$GCC" = yes; then
17652
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17656
# Do we need to explicitly link libc?
17658
case "x$archive_cmds_need_lc_GCJ" in
17660
# Assume -lc should be added
17661
archive_cmds_need_lc_GCJ=yes
17663
if test "$enable_shared" = yes && test "$GCC" = yes; then
17664
case $archive_cmds_GCJ in
17666
# FIXME: we may have to deal with multi-command sequences.
17669
# Test whether the compiler implicitly links with -lc since on some
17670
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17671
# to ld, don't add -lc before -lgcc.
17672
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17673
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17675
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17677
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17678
(eval $ac_compile) 2>&5
17680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681
(exit $ac_status); } 2>conftest.err; then
17684
libobjs=conftest.$ac_objext
17686
wl=$lt_prog_compiler_wl_GCJ
17692
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17693
allow_undefined_flag_GCJ=
17694
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17695
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698
(exit $ac_status); }
17700
archive_cmds_need_lc_GCJ=no
17702
archive_cmds_need_lc_GCJ=yes
17704
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17706
cat conftest.err 1>&5
17709
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17710
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17717
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17718
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17719
library_names_spec=
17720
libname_spec='lib$name'
17724
postuninstall_cmds=
17728
shlibpath_overrides_runpath=unknown
17730
dynamic_linker="$host_os ld.so"
17731
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17732
if test "$GCC" = yes; then
17733
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17734
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17735
# if the path contains ";" then we assume it to be the separator
17736
# otherwise default to the standard path separator (i.e. ":") - it is
17737
# assumed that no part of a normal pathname contains ";" but that should
17738
# okay in the real world where ";" in dirpaths is itself problematic.
17739
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17741
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17744
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17746
need_lib_prefix=unknown
17747
hardcode_into_libs=no
17749
# when you set need_version to no, make sure it does not cause -set_version
17750
# flags to be left without arguments
17751
need_version=unknown
17756
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17757
shlibpath_var=LIBPATH
17759
# AIX 3 has no versioning support, so we append a major version to the name.
17760
soname_spec='${libname}${release}${shared_ext}$major'
17767
hardcode_into_libs=yes
17768
if test "$host_cpu" = ia64; then
17769
# AIX 5 supports IA64
17770
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17771
shlibpath_var=LD_LIBRARY_PATH
17773
# With GCC up to 2.95.x, collect2 would create an import file
17774
# for dependence libraries. The import file would start with
17775
# the line `#! .'. This would cause the generated library to
17776
# depend on `.', always an invalid library. This was fixed in
17777
# development snapshots of GCC prior to 3.0.
17779
aix4 | aix4.[01] | aix4.[01].*)
17780
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17782
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17785
can_build_shared=no
17789
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17790
# soname into executable. Probably we can add versioning support to
17791
# collect2, so additional links can be useful in future.
17792
if test "$aix_use_runtimelinking" = yes; then
17793
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17794
# instead of lib<name>.a to let people know that these are not
17795
# typical AIX shared libraries.
17796
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17798
# We preserve .a as extension for shared libraries through AIX4.2
17799
# and later when we are not doing run time linking.
17800
library_names_spec='${libname}${release}.a $libname.a'
17801
soname_spec='${libname}${release}${shared_ext}$major'
17803
shlibpath_var=LIBPATH
17808
library_names_spec='$libname.ixlibrary $libname.a'
17809
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17810
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'
17814
library_names_spec='${libname}${shared_ext}'
17815
dynamic_linker="$host_os ld.so"
17816
shlibpath_var=LIBRARY_PATH
17822
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17823
soname_spec='${libname}${release}${shared_ext}$major'
17824
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17825
shlibpath_var=LD_LIBRARY_PATH
17826
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17827
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17828
# the default ld.so.conf also contains /usr/contrib/lib and
17829
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17830
# libtool to hard-code these into programs
17833
cygwin* | mingw* | pw32*)
17834
version_type=windows
17839
case $GCC,$host_os in
17840
yes,cygwin* | yes,mingw* | yes,pw32*)
17841
library_names_spec='$libname.dll.a'
17842
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17843
postinstall_cmds='base_file=`basename \${file}`~
17844
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17845
dldir=$destdir/`dirname \$dlpath`~
17846
test -d \$dldir || mkdir -p \$dldir~
17847
$install_prog $dir/$dlname \$dldir/$dlname'
17848
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17849
dlpath=$dir/\$dldll~
17851
shlibpath_overrides_runpath=yes
17855
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17856
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17857
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17860
# MinGW DLLs use traditional 'lib' prefix
17861
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17862
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17863
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17864
# It is most probably a Windows format PATH printed by
17865
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17866
# path with ; separators, and with drive letters. We can handle the
17867
# drive letters (cygwin fileutils understands them), so leave them,
17868
# especially as we might pass files found there to a mingw objdump,
17869
# which wouldn't understand a cygwinified path. Ahh.
17870
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17872
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17876
# pw32 DLLs use 'pw' prefix rather than 'lib'
17877
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17883
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17886
dynamic_linker='Win32 ld.exe'
17887
# FIXME: first we should search . and the directory the executable is in
17891
darwin* | rhapsody*)
17892
dynamic_linker="$host_os dyld"
17893
version_type=darwin
17896
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17897
soname_spec='${libname}${release}${major}$shared_ext'
17898
shlibpath_overrides_runpath=yes
17899
shlibpath_var=DYLD_LIBRARY_PATH
17900
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17901
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17902
if test "$GCC" = yes; then
17903
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17905
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17907
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17914
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17915
soname_spec='${libname}${release}${shared_ext}$major'
17916
shlibpath_var=LD_LIBRARY_PATH
17927
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17928
soname_spec='${libname}${release}${shared_ext}$major'
17929
shlibpath_var=LD_LIBRARY_PATH
17930
shlibpath_overrides_runpath=no
17931
hardcode_into_libs=yes
17932
dynamic_linker='GNU ld.so'
17936
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17937
version_type=freebsd-$objformat
17938
case $version_type in
17940
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17945
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17949
shlibpath_var=LD_LIBRARY_PATH
17952
shlibpath_overrides_runpath=yes
17954
freebsd3.01* | freebsdelf3.01*)
17955
shlibpath_overrides_runpath=yes
17956
hardcode_into_libs=yes
17959
shlibpath_overrides_runpath=no
17960
hardcode_into_libs=yes
17969
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17970
soname_spec='${libname}${release}${shared_ext}$major'
17971
shlibpath_var=LD_LIBRARY_PATH
17972
hardcode_into_libs=yes
17975
hpux9* | hpux10* | hpux11*)
17976
# Give a soname corresponding to the major version so that dld.sl refuses to
17977
# link against other versions.
17981
case "$host_cpu" in
17984
hardcode_into_libs=yes
17985
dynamic_linker="$host_os dld.so"
17986
shlibpath_var=LD_LIBRARY_PATH
17987
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17988
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17989
soname_spec='${libname}${release}${shared_ext}$major'
17990
if test "X$HPUX_IA64_MODE" = X32; then
17991
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17993
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17995
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17999
hardcode_into_libs=yes
18000
dynamic_linker="$host_os dld.sl"
18001
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18002
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18003
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18004
soname_spec='${libname}${release}${shared_ext}$major'
18005
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18006
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18010
dynamic_linker="$host_os dld.sl"
18011
shlibpath_var=SHLIB_PATH
18012
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18013
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18014
soname_spec='${libname}${release}${shared_ext}$major'
18017
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18018
postinstall_cmds='chmod 555 $lib'
18021
irix5* | irix6* | nonstopux*)
18023
nonstopux*) version_type=nonstopux ;;
18025
if test "$lt_cv_prog_gnu_ld" = yes; then
18033
soname_spec='${libname}${release}${shared_ext}$major'
18034
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18036
irix5* | nonstopux*)
18037
libsuff= shlibsuff=
18040
case $LD in # libtool.m4 will add one of these switches to LD
18041
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18042
libsuff= shlibsuff= libmagic=32-bit;;
18043
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18044
libsuff=32 shlibsuff=N32 libmagic=N32;;
18045
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18046
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18047
*) libsuff= shlibsuff= libmagic=never-match;;
18051
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18052
shlibpath_overrides_runpath=no
18053
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18054
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18055
hardcode_into_libs=yes
18058
# No shared lib support for Linux oldld, aout, or coff.
18059
linux*oldld* | linux*aout* | linux*coff*)
18063
# This must be Linux ELF.
18068
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18069
soname_spec='${libname}${release}${shared_ext}$major'
18070
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18071
shlibpath_var=LD_LIBRARY_PATH
18072
shlibpath_overrides_runpath=no
18073
# This implies no fast_install, which is unacceptable.
18074
# Some rework will be needed to allow for fast_install
18075
# before this can be enabled.
18076
hardcode_into_libs=yes
18078
# Append ld.so.conf contents to the search path
18079
if test -f /etc/ld.so.conf; then
18080
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18081
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18084
# We used to test for /lib/ld.so.1 and disable shared libraries on
18085
# powerpc, because MkLinux only supported shared libraries with the
18086
# GNU dynamic linker. Since this was broken with cross compilers,
18087
# most powerpc-linux boxes support dynamic linking these days and
18088
# people can always --disable-shared, the test was removed, and we
18089
# assume the GNU/Linux dynamic linker is in use.
18090
dynamic_linker='GNU/Linux ld.so'
18097
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18098
soname_spec='${libname}${release}${shared_ext}$major'
18099
shlibpath_var=LD_LIBRARY_PATH
18100
shlibpath_overrides_runpath=no
18101
hardcode_into_libs=yes
18102
dynamic_linker='NetBSD ld.elf_so'
18109
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18110
soname_spec='${libname}${release}${shared_ext}$major'
18111
shlibpath_var=LD_LIBRARY_PATH
18112
shlibpath_overrides_runpath=no
18113
hardcode_into_libs=yes
18114
dynamic_linker='GNU ld.so'
18121
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18122
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18123
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18124
dynamic_linker='NetBSD (a.out) ld.so'
18126
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18127
soname_spec='${libname}${release}${shared_ext}$major'
18128
dynamic_linker='NetBSD ld.elf_so'
18130
shlibpath_var=LD_LIBRARY_PATH
18131
shlibpath_overrides_runpath=yes
18132
hardcode_into_libs=yes
18137
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18138
shlibpath_var=LD_LIBRARY_PATH
18139
shlibpath_overrides_runpath=yes
18146
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18147
soname_spec='${libname}${release}${shared_ext}$major'
18148
shlibpath_var=LD_LIBRARY_PATH
18149
shlibpath_overrides_runpath=yes
18156
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18157
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18158
shlibpath_var=LD_LIBRARY_PATH
18159
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18161
openbsd2.[89] | openbsd2.[89].*)
18162
shlibpath_overrides_runpath=no
18165
shlibpath_overrides_runpath=yes
18169
shlibpath_overrides_runpath=yes
18174
libname_spec='$name'
18177
library_names_spec='$libname${shared_ext} $libname.a'
18178
dynamic_linker='OS/2 ld.exe'
18179
shlibpath_var=LIBPATH
18182
osf3* | osf4* | osf5*)
18186
soname_spec='${libname}${release}${shared_ext}$major'
18187
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18188
shlibpath_var=LD_LIBRARY_PATH
18189
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18190
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18195
soname_spec='${libname}${release}${shared_ext}$major'
18196
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18197
shlibpath_var=LD_LIBRARY_PATH
18204
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18205
soname_spec='${libname}${release}${shared_ext}$major'
18206
shlibpath_var=LD_LIBRARY_PATH
18207
shlibpath_overrides_runpath=yes
18208
hardcode_into_libs=yes
18209
# ldd complains unless libraries are executable
18210
postinstall_cmds='chmod +x $lib'
18215
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18216
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18217
shlibpath_var=LD_LIBRARY_PATH
18218
shlibpath_overrides_runpath=yes
18219
if test "$with_gnu_ld" = yes; then
18225
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18227
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18228
soname_spec='${libname}${release}${shared_ext}$major'
18229
shlibpath_var=LD_LIBRARY_PATH
18230
case $host_vendor in
18232
shlibpath_overrides_runpath=no
18234
export_dynamic_flag_spec='${wl}-Blargedynsym'
18235
runpath_var=LD_RUN_PATH
18243
shlibpath_overrides_runpath=no
18244
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18250
if test -d /usr/nec ;then
18252
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18253
soname_spec='$libname${shared_ext}.$major'
18254
shlibpath_var=LD_LIBRARY_PATH
18260
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18261
soname_spec='${libname}${release}${shared_ext}$major'
18262
shlibpath_var=LD_LIBRARY_PATH
18269
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18270
echo "${ECHO_T}$dynamic_linker" >&6; }
18271
test "$dynamic_linker" = no && can_build_shared=no
18273
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18274
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18275
hardcode_action_GCJ=
18276
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18277
test -n "$runpath_var GCJ" || \
18278
test "X$hardcode_automatic_GCJ"="Xyes" ; then
18280
# We can hardcode non-existant directories.
18281
if test "$hardcode_direct_GCJ" != no &&
18282
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18283
# have to relink, otherwise we might link with an installed library
18284
# when we should be linking with a yet-to-be-installed one
18285
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18286
test "$hardcode_minus_L_GCJ" != no; then
18287
# Linking always hardcodes the temporary library directory.
18288
hardcode_action_GCJ=relink
18290
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18291
hardcode_action_GCJ=immediate
18294
# We cannot hardcode anything, or else we can only hardcode existing
18296
hardcode_action_GCJ=unsupported
18298
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18299
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18301
if test "$hardcode_action_GCJ" = relink; then
18302
# Fast installation is not supported
18303
enable_fast_install=no
18304
elif test "$shlibpath_overrides_runpath" = yes ||
18305
test "$enable_shared" = no; then
18306
# Fast installation is not necessary
18307
enable_fast_install=needless
18312
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18313
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18314
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18315
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18316
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18317
{ echo "$as_me:$LINENO: result: yes" >&5
18318
echo "${ECHO_T}yes" >&6; }
18320
# FIXME - insert some real tests, host_os isn't really good enough
18323
if test -n "$STRIP" ; then
18324
striplib="$STRIP -x"
18325
{ echo "$as_me:$LINENO: result: yes" >&5
18326
echo "${ECHO_T}yes" >&6; }
18328
{ echo "$as_me:$LINENO: result: no" >&5
18329
echo "${ECHO_T}no" >&6; }
18333
{ echo "$as_me:$LINENO: result: no" >&5
18334
echo "${ECHO_T}no" >&6; }
18339
if test "x$enable_dlopen" != xyes; then
18340
enable_dlopen=unknown
18341
enable_dlopen_self=unknown
18342
enable_dlopen_self_static=unknown
18349
lt_cv_dlopen="load_add_on"
18351
lt_cv_dlopen_self=yes
18355
lt_cv_dlopen="LoadLibrary"
18360
lt_cv_dlopen="dlopen"
18365
# if libdl is installed we need to link against it
18366
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18367
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18368
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18369
echo $ECHO_N "(cached) $ECHO_C" >&6
18371
ac_check_lib_save_LIBS=$LIBS
18373
cat >conftest.$ac_ext <<_ACEOF
18376
cat confdefs.h >>conftest.$ac_ext
18377
cat >>conftest.$ac_ext <<_ACEOF
18378
/* end confdefs.h. */
18380
/* Override any GCC internal prototype to avoid an error.
18381
Use char because int might match the return type of a GCC
18382
builtin and then its argument prototype would still apply. */
18395
rm -f conftest.$ac_objext conftest$ac_exeext
18396
if { (ac_try="$ac_link"
18397
case "(($ac_try" in
18398
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399
*) ac_try_echo=$ac_try;;
18401
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402
(eval "$ac_link") 2>conftest.er1
18404
grep -v '^ *+' conftest.er1 >conftest.err
18406
cat conftest.err >&5
18407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408
(exit $ac_status); } && {
18409
test -z "$ac_c_werror_flag" ||
18410
test ! -s conftest.err
18411
} && test -s conftest$ac_exeext &&
18412
$as_test_x conftest$ac_exeext; then
18413
ac_cv_lib_dl_dlopen=yes
18415
echo "$as_me: failed program was:" >&5
18416
sed 's/^/| /' conftest.$ac_ext >&5
18418
ac_cv_lib_dl_dlopen=no
18421
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18422
conftest$ac_exeext conftest.$ac_ext
18423
LIBS=$ac_check_lib_save_LIBS
18425
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18426
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18427
if test $ac_cv_lib_dl_dlopen = yes; then
18428
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18431
lt_cv_dlopen="dyld"
18433
lt_cv_dlopen_self=yes
18440
{ echo "$as_me:$LINENO: checking for shl_load" >&5
18441
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18442
if test "${ac_cv_func_shl_load+set}" = set; then
18443
echo $ECHO_N "(cached) $ECHO_C" >&6
18445
cat >conftest.$ac_ext <<_ACEOF
18448
cat confdefs.h >>conftest.$ac_ext
18449
cat >>conftest.$ac_ext <<_ACEOF
18450
/* end confdefs.h. */
18451
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18452
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18453
#define shl_load innocuous_shl_load
18455
/* System header to define __stub macros and hopefully few prototypes,
18456
which can conflict with char shl_load (); below.
18457
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18458
<limits.h> exists even on freestanding compilers. */
18461
# include <limits.h>
18463
# include <assert.h>
18468
/* Override any GCC internal prototype to avoid an error.
18469
Use char because int might match the return type of a GCC
18470
builtin and then its argument prototype would still apply. */
18475
/* The GNU C library defines this for functions which it implements
18476
to always fail with ENOSYS. Some functions are actually named
18477
something starting with __ and the normal name is an alias. */
18478
#if defined __stub_shl_load || defined __stub___shl_load
18485
return shl_load ();
18490
rm -f conftest.$ac_objext conftest$ac_exeext
18491
if { (ac_try="$ac_link"
18492
case "(($ac_try" in
18493
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494
*) ac_try_echo=$ac_try;;
18496
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497
(eval "$ac_link") 2>conftest.er1
18499
grep -v '^ *+' conftest.er1 >conftest.err
18501
cat conftest.err >&5
18502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503
(exit $ac_status); } && {
18504
test -z "$ac_c_werror_flag" ||
18505
test ! -s conftest.err
18506
} && test -s conftest$ac_exeext &&
18507
$as_test_x conftest$ac_exeext; then
18508
ac_cv_func_shl_load=yes
18510
echo "$as_me: failed program was:" >&5
18511
sed 's/^/| /' conftest.$ac_ext >&5
18513
ac_cv_func_shl_load=no
18516
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18517
conftest$ac_exeext conftest.$ac_ext
18519
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18520
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18521
if test $ac_cv_func_shl_load = yes; then
18522
lt_cv_dlopen="shl_load"
18524
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18525
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18526
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18527
echo $ECHO_N "(cached) $ECHO_C" >&6
18529
ac_check_lib_save_LIBS=$LIBS
18531
cat >conftest.$ac_ext <<_ACEOF
18534
cat confdefs.h >>conftest.$ac_ext
18535
cat >>conftest.$ac_ext <<_ACEOF
18536
/* end confdefs.h. */
18538
/* Override any GCC internal prototype to avoid an error.
18539
Use char because int might match the return type of a GCC
18540
builtin and then its argument prototype would still apply. */
18548
return shl_load ();
18553
rm -f conftest.$ac_objext conftest$ac_exeext
18554
if { (ac_try="$ac_link"
18555
case "(($ac_try" in
18556
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557
*) ac_try_echo=$ac_try;;
18559
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560
(eval "$ac_link") 2>conftest.er1
18562
grep -v '^ *+' conftest.er1 >conftest.err
18564
cat conftest.err >&5
18565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566
(exit $ac_status); } && {
18567
test -z "$ac_c_werror_flag" ||
18568
test ! -s conftest.err
18569
} && test -s conftest$ac_exeext &&
18570
$as_test_x conftest$ac_exeext; then
18571
ac_cv_lib_dld_shl_load=yes
18573
echo "$as_me: failed program was:" >&5
18574
sed 's/^/| /' conftest.$ac_ext >&5
18576
ac_cv_lib_dld_shl_load=no
18579
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18580
conftest$ac_exeext conftest.$ac_ext
18581
LIBS=$ac_check_lib_save_LIBS
18583
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18584
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18585
if test $ac_cv_lib_dld_shl_load = yes; then
18586
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18588
{ echo "$as_me:$LINENO: checking for dlopen" >&5
18589
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18590
if test "${ac_cv_func_dlopen+set}" = set; then
18591
echo $ECHO_N "(cached) $ECHO_C" >&6
18593
cat >conftest.$ac_ext <<_ACEOF
18596
cat confdefs.h >>conftest.$ac_ext
18597
cat >>conftest.$ac_ext <<_ACEOF
18598
/* end confdefs.h. */
18599
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18600
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18601
#define dlopen innocuous_dlopen
18603
/* System header to define __stub macros and hopefully few prototypes,
18604
which can conflict with char dlopen (); below.
18605
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18606
<limits.h> exists even on freestanding compilers. */
18609
# include <limits.h>
18611
# include <assert.h>
18616
/* Override any GCC internal prototype to avoid an error.
18617
Use char because int might match the return type of a GCC
18618
builtin and then its argument prototype would still apply. */
18623
/* The GNU C library defines this for functions which it implements
18624
to always fail with ENOSYS. Some functions are actually named
18625
something starting with __ and the normal name is an alias. */
18626
#if defined __stub_dlopen || defined __stub___dlopen
18638
rm -f conftest.$ac_objext conftest$ac_exeext
18639
if { (ac_try="$ac_link"
18640
case "(($ac_try" in
18641
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642
*) ac_try_echo=$ac_try;;
18644
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18645
(eval "$ac_link") 2>conftest.er1
18647
grep -v '^ *+' conftest.er1 >conftest.err
18649
cat conftest.err >&5
18650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651
(exit $ac_status); } && {
18652
test -z "$ac_c_werror_flag" ||
18653
test ! -s conftest.err
18654
} && test -s conftest$ac_exeext &&
18655
$as_test_x conftest$ac_exeext; then
18656
ac_cv_func_dlopen=yes
18658
echo "$as_me: failed program was:" >&5
18659
sed 's/^/| /' conftest.$ac_ext >&5
18661
ac_cv_func_dlopen=no
18664
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18665
conftest$ac_exeext conftest.$ac_ext
18667
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18668
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18669
if test $ac_cv_func_dlopen = yes; then
18670
lt_cv_dlopen="dlopen"
18672
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18673
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18674
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18675
echo $ECHO_N "(cached) $ECHO_C" >&6
18677
ac_check_lib_save_LIBS=$LIBS
18679
cat >conftest.$ac_ext <<_ACEOF
18682
cat confdefs.h >>conftest.$ac_ext
18683
cat >>conftest.$ac_ext <<_ACEOF
18684
/* end confdefs.h. */
18686
/* Override any GCC internal prototype to avoid an error.
18687
Use char because int might match the return type of a GCC
18688
builtin and then its argument prototype would still apply. */
18701
rm -f conftest.$ac_objext conftest$ac_exeext
18702
if { (ac_try="$ac_link"
18703
case "(($ac_try" in
18704
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705
*) ac_try_echo=$ac_try;;
18707
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708
(eval "$ac_link") 2>conftest.er1
18710
grep -v '^ *+' conftest.er1 >conftest.err
18712
cat conftest.err >&5
18713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714
(exit $ac_status); } && {
18715
test -z "$ac_c_werror_flag" ||
18716
test ! -s conftest.err
18717
} && test -s conftest$ac_exeext &&
18718
$as_test_x conftest$ac_exeext; then
18719
ac_cv_lib_dl_dlopen=yes
18721
echo "$as_me: failed program was:" >&5
18722
sed 's/^/| /' conftest.$ac_ext >&5
18724
ac_cv_lib_dl_dlopen=no
18727
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18728
conftest$ac_exeext conftest.$ac_ext
18729
LIBS=$ac_check_lib_save_LIBS
18731
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18732
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18733
if test $ac_cv_lib_dl_dlopen = yes; then
18734
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18736
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18737
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18738
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18739
echo $ECHO_N "(cached) $ECHO_C" >&6
18741
ac_check_lib_save_LIBS=$LIBS
18742
LIBS="-lsvld $LIBS"
18743
cat >conftest.$ac_ext <<_ACEOF
18746
cat confdefs.h >>conftest.$ac_ext
18747
cat >>conftest.$ac_ext <<_ACEOF
18748
/* end confdefs.h. */
18750
/* Override any GCC internal prototype to avoid an error.
18751
Use char because int might match the return type of a GCC
18752
builtin and then its argument prototype would still apply. */
18765
rm -f conftest.$ac_objext conftest$ac_exeext
18766
if { (ac_try="$ac_link"
18767
case "(($ac_try" in
18768
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769
*) ac_try_echo=$ac_try;;
18771
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772
(eval "$ac_link") 2>conftest.er1
18774
grep -v '^ *+' conftest.er1 >conftest.err
18776
cat conftest.err >&5
18777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778
(exit $ac_status); } && {
18779
test -z "$ac_c_werror_flag" ||
18780
test ! -s conftest.err
18781
} && test -s conftest$ac_exeext &&
18782
$as_test_x conftest$ac_exeext; then
18783
ac_cv_lib_svld_dlopen=yes
18785
echo "$as_me: failed program was:" >&5
18786
sed 's/^/| /' conftest.$ac_ext >&5
18788
ac_cv_lib_svld_dlopen=no
18791
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18792
conftest$ac_exeext conftest.$ac_ext
18793
LIBS=$ac_check_lib_save_LIBS
18795
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18796
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
18797
if test $ac_cv_lib_svld_dlopen = yes; then
18798
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18800
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18801
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
18802
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18803
echo $ECHO_N "(cached) $ECHO_C" >&6
18805
ac_check_lib_save_LIBS=$LIBS
18807
cat >conftest.$ac_ext <<_ACEOF
18810
cat confdefs.h >>conftest.$ac_ext
18811
cat >>conftest.$ac_ext <<_ACEOF
18812
/* end confdefs.h. */
18814
/* Override any GCC internal prototype to avoid an error.
18815
Use char because int might match the return type of a GCC
18816
builtin and then its argument prototype would still apply. */
18824
return dld_link ();
18829
rm -f conftest.$ac_objext conftest$ac_exeext
18830
if { (ac_try="$ac_link"
18831
case "(($ac_try" in
18832
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833
*) ac_try_echo=$ac_try;;
18835
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836
(eval "$ac_link") 2>conftest.er1
18838
grep -v '^ *+' conftest.er1 >conftest.err
18840
cat conftest.err >&5
18841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842
(exit $ac_status); } && {
18843
test -z "$ac_c_werror_flag" ||
18844
test ! -s conftest.err
18845
} && test -s conftest$ac_exeext &&
18846
$as_test_x conftest$ac_exeext; then
18847
ac_cv_lib_dld_dld_link=yes
18849
echo "$as_me: failed program was:" >&5
18850
sed 's/^/| /' conftest.$ac_ext >&5
18852
ac_cv_lib_dld_dld_link=no
18855
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18856
conftest$ac_exeext conftest.$ac_ext
18857
LIBS=$ac_check_lib_save_LIBS
18859
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18860
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18861
if test $ac_cv_lib_dld_dld_link = yes; then
18862
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18883
if test "x$lt_cv_dlopen" != xno; then
18889
case $lt_cv_dlopen in
18891
save_CPPFLAGS="$CPPFLAGS"
18892
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18894
save_LDFLAGS="$LDFLAGS"
18895
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18898
LIBS="$lt_cv_dlopen_libs $LIBS"
18900
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18901
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18902
if test "${lt_cv_dlopen_self+set}" = set; then
18903
echo $ECHO_N "(cached) $ECHO_C" >&6
18905
if test "$cross_compiling" = yes; then :
18906
lt_cv_dlopen_self=cross
18908
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18909
lt_status=$lt_dlunknown
18910
cat > conftest.$ac_ext <<EOF
18911
#line __oline__ "configure"
18912
#include "confdefs.h"
18921
# define LT_DLGLOBAL RTLD_GLOBAL
18924
# define LT_DLGLOBAL DL_GLOBAL
18926
# define LT_DLGLOBAL 0
18930
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18931
find out it does not work in some platform. */
18932
#ifndef LT_DLLAZY_OR_NOW
18934
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18937
# define LT_DLLAZY_OR_NOW DL_LAZY
18940
# define LT_DLLAZY_OR_NOW RTLD_NOW
18943
# define LT_DLLAZY_OR_NOW DL_NOW
18945
# define LT_DLLAZY_OR_NOW 0
18953
extern "C" void exit (int);
18956
void fnord() { int i=42;}
18959
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18960
int status = $lt_dlunknown;
18964
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18965
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18966
/* dlclose (self); */
18972
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18973
(eval $ac_link) 2>&5
18975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18977
(./conftest; exit; ) 2>/dev/null
18979
case x$lt_status in
18980
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18981
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18982
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18985
# compilation failed
18986
lt_cv_dlopen_self=no
18993
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18994
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18996
if test "x$lt_cv_dlopen_self" = xyes; then
18997
LDFLAGS="$LDFLAGS $link_static_flag"
18998
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18999
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19000
if test "${lt_cv_dlopen_self_static+set}" = set; then
19001
echo $ECHO_N "(cached) $ECHO_C" >&6
19003
if test "$cross_compiling" = yes; then :
19004
lt_cv_dlopen_self_static=cross
19006
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19007
lt_status=$lt_dlunknown
19008
cat > conftest.$ac_ext <<EOF
19009
#line __oline__ "configure"
19010
#include "confdefs.h"
19019
# define LT_DLGLOBAL RTLD_GLOBAL
19022
# define LT_DLGLOBAL DL_GLOBAL
19024
# define LT_DLGLOBAL 0
19028
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19029
find out it does not work in some platform. */
19030
#ifndef LT_DLLAZY_OR_NOW
19032
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19035
# define LT_DLLAZY_OR_NOW DL_LAZY
19038
# define LT_DLLAZY_OR_NOW RTLD_NOW
19041
# define LT_DLLAZY_OR_NOW DL_NOW
19043
# define LT_DLLAZY_OR_NOW 0
19051
extern "C" void exit (int);
19054
void fnord() { int i=42;}
19057
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19058
int status = $lt_dlunknown;
19062
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19063
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19064
/* dlclose (self); */
19070
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19071
(eval $ac_link) 2>&5
19073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19075
(./conftest; exit; ) 2>/dev/null
19077
case x$lt_status in
19078
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19079
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19080
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19083
# compilation failed
19084
lt_cv_dlopen_self_static=no
19091
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19092
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19095
CPPFLAGS="$save_CPPFLAGS"
19096
LDFLAGS="$save_LDFLAGS"
19101
case $lt_cv_dlopen_self in
19102
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19103
*) enable_dlopen_self=unknown ;;
19106
case $lt_cv_dlopen_self_static in
19107
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19108
*) enable_dlopen_self_static=unknown ;;
19113
# The else clause should only fire when bootstrapping the
19114
# libtool distribution, otherwise you forgot to ship ltmain.sh
19115
# with your package, and you will get complaints that there are
19116
# no rules to generate ltmain.sh.
19117
if test -f "$ltmain"; then
19118
# See if we are running on zsh, and set the options which allow our commands through
19119
# without removal of \ escapes.
19120
if test -n "${ZSH_VERSION+set}" ; then
19121
setopt NO_GLOB_SUBST
19123
# Now quote all the things that may contain metacharacters while being
19124
# careful not to overquote the AC_SUBSTed values. We take copies of the
19125
# variables and quote the copies for generation of the libtool script.
19126
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19128
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19129
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19130
deplibs_check_method reload_flag reload_cmds need_locks \
19131
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19132
lt_cv_sys_global_symbol_to_c_name_address \
19133
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19134
old_postinstall_cmds old_postuninstall_cmds \
19138
lt_prog_compiler_wl_GCJ \
19139
lt_prog_compiler_pic_GCJ \
19140
lt_prog_compiler_static_GCJ \
19141
lt_prog_compiler_no_builtin_flag_GCJ \
19142
export_dynamic_flag_spec_GCJ \
19143
thread_safe_flag_spec_GCJ \
19144
whole_archive_flag_spec_GCJ \
19145
enable_shared_with_static_runtimes_GCJ \
19146
old_archive_cmds_GCJ \
19147
old_archive_from_new_cmds_GCJ \
19148
predep_objects_GCJ \
19149
postdep_objects_GCJ \
19152
compiler_lib_search_path_GCJ \
19154
archive_expsym_cmds_GCJ \
19155
postinstall_cmds_GCJ \
19156
postuninstall_cmds_GCJ \
19157
old_archive_from_expsyms_cmds_GCJ \
19158
allow_undefined_flag_GCJ \
19159
no_undefined_flag_GCJ \
19160
export_symbols_cmds_GCJ \
19161
hardcode_libdir_flag_spec_GCJ \
19162
hardcode_libdir_flag_spec_ld_GCJ \
19163
hardcode_libdir_separator_GCJ \
19164
hardcode_automatic_GCJ \
19166
module_expsym_cmds_GCJ \
19167
lt_cv_prog_compiler_c_o_GCJ \
19168
exclude_expsyms_GCJ \
19169
include_expsyms_GCJ; do
19172
old_archive_cmds_GCJ | \
19173
old_archive_from_new_cmds_GCJ | \
19174
archive_cmds_GCJ | \
19175
archive_expsym_cmds_GCJ | \
19176
module_cmds_GCJ | \
19177
module_expsym_cmds_GCJ | \
19178
old_archive_from_expsyms_cmds_GCJ | \
19179
export_symbols_cmds_GCJ | \
19180
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19181
postinstall_cmds | postuninstall_cmds | \
19182
old_postinstall_cmds | old_postuninstall_cmds | \
19183
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19184
# Double-quote double-evaled strings.
19185
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19188
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19194
*'\$0 --fallback-echo"')
19195
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19201
cat <<__EOF__ >> "$cfgfile"
19202
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19204
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19206
# Shell to use when invoking shell scripts.
19209
# Whether or not to build shared libraries.
19210
build_libtool_libs=$enable_shared
19212
# Whether or not to build static libraries.
19213
build_old_libs=$enable_static
19215
# Whether or not to add -lc for building shared libraries.
19216
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19218
# Whether or not to disallow shared libs when runtime libs are static
19219
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19221
# Whether or not to optimize for fast installation.
19222
fast_install=$enable_fast_install
19225
host_alias=$host_alias
19228
# An echo program that does not interpret backslashes.
19233
AR_FLAGS=$lt_AR_FLAGS
19238
# A language-specific compiler.
19239
CC=$lt_compiler_GCJ
19241
# Is the compiler the GNU C compiler?
19247
# The linker used to build libraries.
19250
# Whether we need hard or soft links.
19253
# A BSD-compatible nm program.
19256
# A symbol stripping program
19259
# Used to examine libraries when file_magic_cmd begins "file"
19260
MAGIC_CMD=$MAGIC_CMD
19262
# Used on cygwin: DLL creation program.
19265
# Used on cygwin: object dumper.
19268
# Used on cygwin: assembler.
19271
# The name of the directory that contains temporary libtool files.
19274
# How to create reloadable object files.
19275
reload_flag=$lt_reload_flag
19276
reload_cmds=$lt_reload_cmds
19278
# How to pass a linker flag through the compiler.
19279
wl=$lt_lt_prog_compiler_wl_GCJ
19281
# Object file suffix (normally "o").
19282
objext="$ac_objext"
19284
# Old archive suffix (normally "a").
19287
# Shared library suffix (normally ".so").
19288
shrext_cmds='$shrext_cmds'
19290
# Executable file suffix (normally "").
19293
# Additional compiler flags for building library objects.
19294
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19297
# What is the maximum length of a command?
19298
max_cmd_len=$lt_cv_sys_max_cmd_len
19300
# Does compiler simultaneously support -c and -o options?
19301
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19303
# Must we lock files when doing compilation ?
19304
need_locks=$lt_need_locks
19306
# Do we need the lib prefix for modules?
19307
need_lib_prefix=$need_lib_prefix
19309
# Do we need a version for libraries?
19310
need_version=$need_version
19312
# Whether dlopen is supported.
19313
dlopen_support=$enable_dlopen
19315
# Whether dlopen of programs is supported.
19316
dlopen_self=$enable_dlopen_self
19318
# Whether dlopen of statically linked programs is supported.
19319
dlopen_self_static=$enable_dlopen_self_static
19321
# Compiler flag to prevent dynamic linking.
19322
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19324
# Compiler flag to turn off builtin functions.
19325
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19327
# Compiler flag to allow reflexive dlopens.
19328
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19330
# Compiler flag to generate shared objects directly from archives.
19331
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19333
# Compiler flag to generate thread-safe objects.
19334
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19336
# Library versioning type.
19337
version_type=$version_type
19339
# Format of library name prefix.
19340
libname_spec=$lt_libname_spec
19342
# List of archive names. First name is the real one, the rest are links.
19343
# The last name is the one that the linker finds with -lNAME.
19344
library_names_spec=$lt_library_names_spec
19346
# The coded name of the library, if different from the real name.
19347
soname_spec=$lt_soname_spec
19349
# Commands used to build and install an old-style archive.
19351
old_archive_cmds=$lt_old_archive_cmds_GCJ
19352
old_postinstall_cmds=$lt_old_postinstall_cmds
19353
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19355
# Create an old-style archive from a shared archive.
19356
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19358
# Create a temporary old-style archive to link instead of a shared archive.
19359
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19361
# Commands used to build and install a shared archive.
19362
archive_cmds=$lt_archive_cmds_GCJ
19363
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19364
postinstall_cmds=$lt_postinstall_cmds
19365
postuninstall_cmds=$lt_postuninstall_cmds
19367
# Commands used to build a loadable module (assumed same as above if empty)
19368
module_cmds=$lt_module_cmds_GCJ
19369
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19371
# Commands to strip libraries.
19372
old_striplib=$lt_old_striplib
19373
striplib=$lt_striplib
19375
# Dependencies to place before the objects being linked to create a
19377
predep_objects=$lt_predep_objects_GCJ
19379
# Dependencies to place after the objects being linked to create a
19381
postdep_objects=$lt_postdep_objects_GCJ
19383
# Dependencies to place before the objects being linked to create a
19385
predeps=$lt_predeps_GCJ
19387
# Dependencies to place after the objects being linked to create a
19389
postdeps=$lt_postdeps_GCJ
19391
# The library search path used internally by the compiler when linking
19392
# a shared library.
19393
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19395
# Method to check whether dependent libraries are shared objects.
19396
deplibs_check_method=$lt_deplibs_check_method
19398
# Command to use when deplibs_check_method == file_magic.
19399
file_magic_cmd=$lt_file_magic_cmd
19401
# Flag that allows shared libraries with undefined symbols to be built.
19402
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19404
# Flag that forces no undefined symbols.
19405
no_undefined_flag=$lt_no_undefined_flag_GCJ
19407
# Commands used to finish a libtool library installation in a directory.
19408
finish_cmds=$lt_finish_cmds
19410
# Same as above, but a single script fragment to be evaled but not shown.
19411
finish_eval=$lt_finish_eval
19413
# Take the output of nm and produce a listing of raw symbols and C names.
19414
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19416
# Transform the output of nm in a proper C declaration
19417
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19419
# Transform the output of nm in a C name address pair
19420
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19422
# This is the shared library runtime path variable.
19423
runpath_var=$runpath_var
19425
# This is the shared library path variable.
19426
shlibpath_var=$shlibpath_var
19428
# Is shlibpath searched before the hard-coded library search path?
19429
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19431
# How to hardcode a shared library path into an executable.
19432
hardcode_action=$hardcode_action_GCJ
19434
# Whether we should hardcode library paths into libraries.
19435
hardcode_into_libs=$hardcode_into_libs
19437
# Flag to hardcode \$libdir into a binary during linking.
19438
# This must work even if \$libdir does not exist.
19439
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19441
# If ld is used when linking, flag to hardcode \$libdir into
19442
# a binary during linking. This must work even if \$libdir does
19444
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19446
# Whether we need a single -rpath flag with a separated argument.
19447
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19449
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19450
# resulting binary.
19451
hardcode_direct=$hardcode_direct_GCJ
19453
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19454
# resulting binary.
19455
hardcode_minus_L=$hardcode_minus_L_GCJ
19457
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19458
# the resulting binary.
19459
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19461
# Set to yes if building a shared library automatically hardcodes DIR into the library
19462
# and all subsequent libraries and executables linked against it.
19463
hardcode_automatic=$hardcode_automatic_GCJ
19465
# Variables whose values should be saved in libtool wrapper scripts and
19466
# restored at relink time.
19467
variables_saved_for_relink="$variables_saved_for_relink"
19469
# Whether libtool must link a program against all its dependency libraries.
19470
link_all_deplibs=$link_all_deplibs_GCJ
19472
# Compile-time system search path for libraries
19473
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19475
# Run-time system search path for libraries
19476
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19478
# Fix the shell variable \$srcfile for the compiler.
19479
fix_srcfile_path="$fix_srcfile_path_GCJ"
19481
# Set to yes if exported symbols are required.
19482
always_export_symbols=$always_export_symbols_GCJ
19484
# The commands to list exported symbols.
19485
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19487
# The commands to extract the exported symbol list from a shared archive.
19488
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19490
# Symbols that should not be listed in the preloaded symbols.
19491
exclude_expsyms=$lt_exclude_expsyms_GCJ
19493
# Symbols that must always be exported.
19494
include_expsyms=$lt_include_expsyms_GCJ
19496
# ### END LIBTOOL TAG CONFIG: $tagname
19502
# If there is no Makefile yet, we rely on a make rule to execute
19503
# `config.status --recheck' to rerun these tests and create the
19504
# libtool script then.
19505
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19506
if test -f "$ltmain_in"; then
19507
test -f Makefile && make "$ltmain"
19513
ac_cpp='$CPP $CPPFLAGS'
19514
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19515
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19516
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19528
# Source file extension for RC test sources.
19531
# Object file extension for compiled RC test sources.
19535
# Code to be used in simple compile tests
19536
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19538
# Code to be used in simple link tests
19539
lt_simple_link_test_code="$lt_simple_compile_test_code"
19541
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19543
# If no C compiler was specified, use CC.
19546
# Allow CC to be a program name with arguments.
19550
# Allow CC to be a program name with arguments.
19555
lt_cv_prog_compiler_c_o_RC=yes
19557
# The else clause should only fire when bootstrapping the
19558
# libtool distribution, otherwise you forgot to ship ltmain.sh
19559
# with your package, and you will get complaints that there are
19560
# no rules to generate ltmain.sh.
19561
if test -f "$ltmain"; then
19562
# See if we are running on zsh, and set the options which allow our commands through
19563
# without removal of \ escapes.
19564
if test -n "${ZSH_VERSION+set}" ; then
19565
setopt NO_GLOB_SUBST
19567
# Now quote all the things that may contain metacharacters while being
19568
# careful not to overquote the AC_SUBSTed values. We take copies of the
19569
# variables and quote the copies for generation of the libtool script.
19570
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19572
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19573
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19574
deplibs_check_method reload_flag reload_cmds need_locks \
19575
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19576
lt_cv_sys_global_symbol_to_c_name_address \
19577
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19578
old_postinstall_cmds old_postuninstall_cmds \
19582
lt_prog_compiler_wl_RC \
19583
lt_prog_compiler_pic_RC \
19584
lt_prog_compiler_static_RC \
19585
lt_prog_compiler_no_builtin_flag_RC \
19586
export_dynamic_flag_spec_RC \
19587
thread_safe_flag_spec_RC \
19588
whole_archive_flag_spec_RC \
19589
enable_shared_with_static_runtimes_RC \
19590
old_archive_cmds_RC \
19591
old_archive_from_new_cmds_RC \
19592
predep_objects_RC \
19593
postdep_objects_RC \
19596
compiler_lib_search_path_RC \
19598
archive_expsym_cmds_RC \
19599
postinstall_cmds_RC \
19600
postuninstall_cmds_RC \
19601
old_archive_from_expsyms_cmds_RC \
19602
allow_undefined_flag_RC \
19603
no_undefined_flag_RC \
19604
export_symbols_cmds_RC \
19605
hardcode_libdir_flag_spec_RC \
19606
hardcode_libdir_flag_spec_ld_RC \
19607
hardcode_libdir_separator_RC \
19608
hardcode_automatic_RC \
19610
module_expsym_cmds_RC \
19611
lt_cv_prog_compiler_c_o_RC \
19612
exclude_expsyms_RC \
19613
include_expsyms_RC; do
19616
old_archive_cmds_RC | \
19617
old_archive_from_new_cmds_RC | \
19618
archive_cmds_RC | \
19619
archive_expsym_cmds_RC | \
19621
module_expsym_cmds_RC | \
19622
old_archive_from_expsyms_cmds_RC | \
19623
export_symbols_cmds_RC | \
19624
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19625
postinstall_cmds | postuninstall_cmds | \
19626
old_postinstall_cmds | old_postuninstall_cmds | \
19627
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19628
# Double-quote double-evaled strings.
19629
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19632
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19638
*'\$0 --fallback-echo"')
19639
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19645
cat <<__EOF__ >> "$cfgfile"
19646
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19648
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19650
# Shell to use when invoking shell scripts.
19653
# Whether or not to build shared libraries.
19654
build_libtool_libs=$enable_shared
19656
# Whether or not to build static libraries.
19657
build_old_libs=$enable_static
19659
# Whether or not to add -lc for building shared libraries.
19660
build_libtool_need_lc=$archive_cmds_need_lc_RC
19662
# Whether or not to disallow shared libs when runtime libs are static
19663
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19665
# Whether or not to optimize for fast installation.
19666
fast_install=$enable_fast_install
19669
host_alias=$host_alias
19672
# An echo program that does not interpret backslashes.
19677
AR_FLAGS=$lt_AR_FLAGS
19682
# A language-specific compiler.
19685
# Is the compiler the GNU C compiler?
19691
# The linker used to build libraries.
19694
# Whether we need hard or soft links.
19697
# A BSD-compatible nm program.
19700
# A symbol stripping program
19703
# Used to examine libraries when file_magic_cmd begins "file"
19704
MAGIC_CMD=$MAGIC_CMD
19706
# Used on cygwin: DLL creation program.
19709
# Used on cygwin: object dumper.
19712
# Used on cygwin: assembler.
19715
# The name of the directory that contains temporary libtool files.
19718
# How to create reloadable object files.
19719
reload_flag=$lt_reload_flag
19720
reload_cmds=$lt_reload_cmds
19722
# How to pass a linker flag through the compiler.
19723
wl=$lt_lt_prog_compiler_wl_RC
19725
# Object file suffix (normally "o").
19726
objext="$ac_objext"
19728
# Old archive suffix (normally "a").
19731
# Shared library suffix (normally ".so").
19732
shrext_cmds='$shrext_cmds'
19734
# Executable file suffix (normally "").
19737
# Additional compiler flags for building library objects.
19738
pic_flag=$lt_lt_prog_compiler_pic_RC
19741
# What is the maximum length of a command?
19742
max_cmd_len=$lt_cv_sys_max_cmd_len
19744
# Does compiler simultaneously support -c and -o options?
19745
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19747
# Must we lock files when doing compilation ?
19748
need_locks=$lt_need_locks
19750
# Do we need the lib prefix for modules?
19751
need_lib_prefix=$need_lib_prefix
19753
# Do we need a version for libraries?
19754
need_version=$need_version
19756
# Whether dlopen is supported.
19757
dlopen_support=$enable_dlopen
19759
# Whether dlopen of programs is supported.
19760
dlopen_self=$enable_dlopen_self
19762
# Whether dlopen of statically linked programs is supported.
19763
dlopen_self_static=$enable_dlopen_self_static
19765
# Compiler flag to prevent dynamic linking.
19766
link_static_flag=$lt_lt_prog_compiler_static_RC
19768
# Compiler flag to turn off builtin functions.
19769
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19771
# Compiler flag to allow reflexive dlopens.
19772
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19774
# Compiler flag to generate shared objects directly from archives.
19775
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19777
# Compiler flag to generate thread-safe objects.
19778
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19780
# Library versioning type.
19781
version_type=$version_type
19783
# Format of library name prefix.
19784
libname_spec=$lt_libname_spec
19786
# List of archive names. First name is the real one, the rest are links.
19787
# The last name is the one that the linker finds with -lNAME.
19788
library_names_spec=$lt_library_names_spec
19790
# The coded name of the library, if different from the real name.
19791
soname_spec=$lt_soname_spec
19793
# Commands used to build and install an old-style archive.
19795
old_archive_cmds=$lt_old_archive_cmds_RC
19796
old_postinstall_cmds=$lt_old_postinstall_cmds
19797
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19799
# Create an old-style archive from a shared archive.
19800
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19802
# Create a temporary old-style archive to link instead of a shared archive.
19803
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19805
# Commands used to build and install a shared archive.
19806
archive_cmds=$lt_archive_cmds_RC
19807
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19808
postinstall_cmds=$lt_postinstall_cmds
19809
postuninstall_cmds=$lt_postuninstall_cmds
19811
# Commands used to build a loadable module (assumed same as above if empty)
19812
module_cmds=$lt_module_cmds_RC
19813
module_expsym_cmds=$lt_module_expsym_cmds_RC
19815
# Commands to strip libraries.
19816
old_striplib=$lt_old_striplib
19817
striplib=$lt_striplib
19819
# Dependencies to place before the objects being linked to create a
19821
predep_objects=$lt_predep_objects_RC
19823
# Dependencies to place after the objects being linked to create a
19825
postdep_objects=$lt_postdep_objects_RC
19827
# Dependencies to place before the objects being linked to create a
19829
predeps=$lt_predeps_RC
19831
# Dependencies to place after the objects being linked to create a
19833
postdeps=$lt_postdeps_RC
19835
# The library search path used internally by the compiler when linking
19836
# a shared library.
19837
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19839
# Method to check whether dependent libraries are shared objects.
19840
deplibs_check_method=$lt_deplibs_check_method
19842
# Command to use when deplibs_check_method == file_magic.
19843
file_magic_cmd=$lt_file_magic_cmd
19845
# Flag that allows shared libraries with undefined symbols to be built.
19846
allow_undefined_flag=$lt_allow_undefined_flag_RC
19848
# Flag that forces no undefined symbols.
19849
no_undefined_flag=$lt_no_undefined_flag_RC
19851
# Commands used to finish a libtool library installation in a directory.
19852
finish_cmds=$lt_finish_cmds
19854
# Same as above, but a single script fragment to be evaled but not shown.
19855
finish_eval=$lt_finish_eval
19857
# Take the output of nm and produce a listing of raw symbols and C names.
19858
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19860
# Transform the output of nm in a proper C declaration
19861
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19863
# Transform the output of nm in a C name address pair
19864
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19866
# This is the shared library runtime path variable.
19867
runpath_var=$runpath_var
19869
# This is the shared library path variable.
19870
shlibpath_var=$shlibpath_var
19872
# Is shlibpath searched before the hard-coded library search path?
19873
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19875
# How to hardcode a shared library path into an executable.
19876
hardcode_action=$hardcode_action_RC
19878
# Whether we should hardcode library paths into libraries.
19879
hardcode_into_libs=$hardcode_into_libs
19881
# Flag to hardcode \$libdir into a binary during linking.
19882
# This must work even if \$libdir does not exist.
19883
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19885
# If ld is used when linking, flag to hardcode \$libdir into
19886
# a binary during linking. This must work even if \$libdir does
19888
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19890
# Whether we need a single -rpath flag with a separated argument.
19891
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19893
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19894
# resulting binary.
19895
hardcode_direct=$hardcode_direct_RC
19897
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19898
# resulting binary.
19899
hardcode_minus_L=$hardcode_minus_L_RC
19901
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19902
# the resulting binary.
19903
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19905
# Set to yes if building a shared library automatically hardcodes DIR into the library
19906
# and all subsequent libraries and executables linked against it.
19907
hardcode_automatic=$hardcode_automatic_RC
19909
# Variables whose values should be saved in libtool wrapper scripts and
19910
# restored at relink time.
19911
variables_saved_for_relink="$variables_saved_for_relink"
19913
# Whether libtool must link a program against all its dependency libraries.
19914
link_all_deplibs=$link_all_deplibs_RC
19916
# Compile-time system search path for libraries
19917
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19919
# Run-time system search path for libraries
19920
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19922
# Fix the shell variable \$srcfile for the compiler.
19923
fix_srcfile_path="$fix_srcfile_path_RC"
19925
# Set to yes if exported symbols are required.
19926
always_export_symbols=$always_export_symbols_RC
19928
# The commands to list exported symbols.
19929
export_symbols_cmds=$lt_export_symbols_cmds_RC
19931
# The commands to extract the exported symbol list from a shared archive.
19932
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19934
# Symbols that should not be listed in the preloaded symbols.
19935
exclude_expsyms=$lt_exclude_expsyms_RC
19937
# Symbols that must always be exported.
19938
include_expsyms=$lt_include_expsyms_RC
19940
# ### END LIBTOOL TAG CONFIG: $tagname
19946
# If there is no Makefile yet, we rely on a make rule to execute
19947
# `config.status --recheck' to rerun these tests and create the
19948
# libtool script then.
19949
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19950
if test -f "$ltmain_in"; then
19951
test -f Makefile && make "$ltmain"
19957
ac_cpp='$CPP $CPPFLAGS'
19958
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19959
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19960
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19967
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19968
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19969
{ (exit 1); exit 1; }; }
19973
# Append the new tag name to the list of available tags.
19974
if test -n "$tagname" ; then
19975
available_tags="$available_tags $tagname"
19981
# Now substitute the updated list of available tags.
19982
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19983
mv "${ofile}T" "$ofile"
19987
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19988
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19989
{ (exit 1); exit 1; }; }
19995
# This can be used to rebuild libtool when needed
19996
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19998
# Always use our own libtool.
19999
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20001
# Prevent multiple expansion
20023
{ echo "$as_me:$LINENO: checking for X" >&5
20024
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
20027
# Check whether --with-x was given.
20028
if test "${with_x+set}" = set; then
20032
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20033
if test "x$with_x" = xno; then
20034
# The user explicitly disabled X.
20037
case $x_includes,$x_libraries in #(
20038
*\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
20039
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
20040
{ (exit 1); exit 1; }; };; #(
20041
*,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
20042
echo $ECHO_N "(cached) $ECHO_C" >&6
20044
# One or both of the vars are not set, and there is no cached value.
20045
ac_x_includes=no ac_x_libraries=no
20046
rm -f -r conftest.dir
20047
if mkdir conftest.dir; then
20049
cat >Imakefile <<'_ACEOF'
20051
@echo incroot='${INCROOT}'
20053
@echo usrlibdir='${USRLIBDIR}'
20055
@echo libdir='${LIBDIR}'
20057
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
20058
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20059
for ac_var in incroot usrlibdir libdir; do
20060
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
20062
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20063
for ac_extension in a so sl; do
20064
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
20065
test -f "$ac_im_libdir/libX11.$ac_extension"; then
20066
ac_im_usrlibdir=$ac_im_libdir; break
20069
# Screen out bogus values from the imake configuration. They are
20070
# bogus both because they are the default anyway, and because
20071
# using them would break gcc on systems where it needs fixed includes.
20072
case $ac_im_incroot in
20073
/usr/include) ac_x_includes= ;;
20074
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20076
case $ac_im_usrlibdir in
20077
/usr/lib | /lib) ;;
20078
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20082
rm -f -r conftest.dir
20085
# Standard set of common directories for X headers.
20086
# Check X11 before X11Rn because it is often a symlink to the current release.
20098
/usr/local/X11/include
20099
/usr/local/X11R6/include
20100
/usr/local/X11R5/include
20101
/usr/local/X11R4/include
20103
/usr/local/include/X11
20104
/usr/local/include/X11R6
20105
/usr/local/include/X11R5
20106
/usr/local/include/X11R4
20110
/usr/XFree86/include/X11
20114
/usr/unsupported/include
20115
/usr/athena/include
20116
/usr/local/x11r5/include
20117
/usr/lpp/Xamples/include
20119
/usr/openwin/include
20120
/usr/openwin/share/include'
20122
if test "$ac_x_includes" = no; then
20123
# Guess where to find include files, by looking for Xlib.h.
20124
# First, try using that file with no special directory specified.
20125
cat >conftest.$ac_ext <<_ACEOF
20128
cat confdefs.h >>conftest.$ac_ext
20129
cat >>conftest.$ac_ext <<_ACEOF
20130
/* end confdefs.h. */
20131
@%:@include <X11/Xlib.h>
20133
if { (ac_try="$ac_cpp conftest.$ac_ext"
20134
case "(($ac_try" in
20135
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136
*) ac_try_echo=$ac_try;;
20138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20141
grep -v '^ *+' conftest.er1 >conftest.err
20143
cat conftest.err >&5
20144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145
(exit $ac_status); } >/dev/null && {
20146
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20147
test ! -s conftest.err
20149
# We can compile using X headers with no special include directory.
20152
echo "$as_me: failed program was:" >&5
20153
sed 's/^/| /' conftest.$ac_ext >&5
20155
for ac_dir in $ac_x_header_dirs; do
20156
if test -r "$ac_dir/X11/Xlib.h"; then
20157
ac_x_includes=$ac_dir
20163
rm -f conftest.err conftest.$ac_ext
20164
fi # $ac_x_includes = no
20166
if test "$ac_x_libraries" = no; then
20167
# Check for the libraries.
20168
# See if we find them without any special options.
20169
# Don't add to $LIBS permanently.
20172
cat >conftest.$ac_ext <<_ACEOF
20175
cat confdefs.h >>conftest.$ac_ext
20176
cat >>conftest.$ac_ext <<_ACEOF
20177
/* end confdefs.h. */
20178
@%:@include <X11/Xlib.h>
20187
rm -f conftest.$ac_objext conftest$ac_exeext
20188
if { (ac_try="$ac_link"
20189
case "(($ac_try" in
20190
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191
*) ac_try_echo=$ac_try;;
20193
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20194
(eval "$ac_link") 2>conftest.er1
20196
grep -v '^ *+' conftest.er1 >conftest.err
20198
cat conftest.err >&5
20199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200
(exit $ac_status); } && {
20201
test -z "$ac_c_werror_flag" ||
20202
test ! -s conftest.err
20203
} && test -s conftest$ac_exeext &&
20204
$as_test_x conftest$ac_exeext; then
20206
# We can link X programs with no special library path.
20209
echo "$as_me: failed program was:" >&5
20210
sed 's/^/| /' conftest.$ac_ext >&5
20213
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20215
# Don't even attempt the hair of trying to link an X program!
20216
for ac_extension in a so sl; do
20217
if test -r "$ac_dir/libX11.$ac_extension"; then
20218
ac_x_libraries=$ac_dir
20225
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20226
conftest$ac_exeext conftest.$ac_ext
20227
fi # $ac_x_libraries = no
20229
case $ac_x_includes,$ac_x_libraries in #(
20230
no,* | *,no | *\'*)
20231
# Didn't find X, or a directory has "'" in its name.
20232
ac_cv_have_x="have_x=no";; #(
20234
# Record where we found X for the cache.
20235
ac_cv_have_x="have_x=yes\
20236
ac_x_includes='$ac_x_includes'\
20237
ac_x_libraries='$ac_x_libraries'"
20243
eval "$ac_cv_have_x"
20246
if test "$have_x" != yes; then
20247
{ echo "$as_me:$LINENO: result: $have_x" >&5
20248
echo "${ECHO_T}$have_x" >&6; }
20251
# If each of the values was on the command line, it overrides each guess.
20252
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20253
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20254
# Update the cache value to reflect the command line values.
20255
ac_cv_have_x="have_x=yes\
20256
ac_x_includes='$x_includes'\
20257
ac_x_libraries='$x_libraries'"
20258
{ echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20259
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
20262
if test "$no_x" = yes; then
20263
# Not all programs may use this symbol, but it does not hurt to define it.
20265
cat >>confdefs.h <<\_ACEOF
20266
@%:@define X_DISPLAY_MISSING 1
20269
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20271
if test -n "$x_includes"; then
20272
X_CFLAGS="$X_CFLAGS -I$x_includes"
20275
# It would also be nice to do this for all -L options, not just this one.
20276
if test -n "$x_libraries"; then
20277
X_LIBS="$X_LIBS -L$x_libraries"
20278
# For Solaris; some versions of Sun CC require a space after -R and
20279
# others require no space. Words are not sufficient . . . .
20280
{ echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20281
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
20282
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20283
ac_xsave_c_werror_flag=$ac_c_werror_flag
20284
ac_c_werror_flag=yes
20285
cat >conftest.$ac_ext <<_ACEOF
20288
cat confdefs.h >>conftest.$ac_ext
20289
cat >>conftest.$ac_ext <<_ACEOF
20290
/* end confdefs.h. */
20300
rm -f conftest.$ac_objext conftest$ac_exeext
20301
if { (ac_try="$ac_link"
20302
case "(($ac_try" in
20303
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20304
*) ac_try_echo=$ac_try;;
20306
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20307
(eval "$ac_link") 2>conftest.er1
20309
grep -v '^ *+' conftest.er1 >conftest.err
20311
cat conftest.err >&5
20312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313
(exit $ac_status); } && {
20314
test -z "$ac_c_werror_flag" ||
20315
test ! -s conftest.err
20316
} && test -s conftest$ac_exeext &&
20317
$as_test_x conftest$ac_exeext; then
20318
{ echo "$as_me:$LINENO: result: no" >&5
20319
echo "${ECHO_T}no" >&6; }
20320
X_LIBS="$X_LIBS -R$x_libraries"
20322
echo "$as_me: failed program was:" >&5
20323
sed 's/^/| /' conftest.$ac_ext >&5
20325
LIBS="$ac_xsave_LIBS -R $x_libraries"
20326
cat >conftest.$ac_ext <<_ACEOF
20329
cat confdefs.h >>conftest.$ac_ext
20330
cat >>conftest.$ac_ext <<_ACEOF
20331
/* end confdefs.h. */
20341
rm -f conftest.$ac_objext conftest$ac_exeext
20342
if { (ac_try="$ac_link"
20343
case "(($ac_try" in
20344
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345
*) ac_try_echo=$ac_try;;
20347
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348
(eval "$ac_link") 2>conftest.er1
20350
grep -v '^ *+' conftest.er1 >conftest.err
20352
cat conftest.err >&5
20353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354
(exit $ac_status); } && {
20355
test -z "$ac_c_werror_flag" ||
20356
test ! -s conftest.err
20357
} && test -s conftest$ac_exeext &&
20358
$as_test_x conftest$ac_exeext; then
20359
{ echo "$as_me:$LINENO: result: yes" >&5
20360
echo "${ECHO_T}yes" >&6; }
20361
X_LIBS="$X_LIBS -R $x_libraries"
20363
echo "$as_me: failed program was:" >&5
20364
sed 's/^/| /' conftest.$ac_ext >&5
20366
{ echo "$as_me:$LINENO: result: neither works" >&5
20367
echo "${ECHO_T}neither works" >&6; }
20370
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20371
conftest$ac_exeext conftest.$ac_ext
20374
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20375
conftest$ac_exeext conftest.$ac_ext
20376
ac_c_werror_flag=$ac_xsave_c_werror_flag
20377
LIBS=$ac_xsave_LIBS
20380
# Check for system-dependent libraries X programs must link with.
20381
# Do this before checking for the system-independent R6 libraries
20382
# (-lICE), since we may need -lsocket or whatever for X linking.
20384
if test "$ISC" = yes; then
20385
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20387
# Martyn Johnson says this is needed for Ultrix, if the X
20388
# libraries were built with DECnet support. And Karl Berry says
20389
# the Alpha needs dnet_stub (dnet does not exist).
20390
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20391
cat >conftest.$ac_ext <<_ACEOF
20394
cat confdefs.h >>conftest.$ac_ext
20395
cat >>conftest.$ac_ext <<_ACEOF
20396
/* end confdefs.h. */
20398
/* Override any GCC internal prototype to avoid an error.
20399
Use char because int might match the return type of a GCC
20400
builtin and then its argument prototype would still apply. */
20404
char XOpenDisplay ();
20408
return XOpenDisplay ();
20413
rm -f conftest.$ac_objext conftest$ac_exeext
20414
if { (ac_try="$ac_link"
20415
case "(($ac_try" in
20416
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417
*) ac_try_echo=$ac_try;;
20419
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420
(eval "$ac_link") 2>conftest.er1
20422
grep -v '^ *+' conftest.er1 >conftest.err
20424
cat conftest.err >&5
20425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426
(exit $ac_status); } && {
20427
test -z "$ac_c_werror_flag" ||
20428
test ! -s conftest.err
20429
} && test -s conftest$ac_exeext &&
20430
$as_test_x conftest$ac_exeext; then
20433
echo "$as_me: failed program was:" >&5
20434
sed 's/^/| /' conftest.$ac_ext >&5
20436
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20437
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20438
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20439
echo $ECHO_N "(cached) $ECHO_C" >&6
20441
ac_check_lib_save_LIBS=$LIBS
20442
LIBS="-ldnet $LIBS"
20443
cat >conftest.$ac_ext <<_ACEOF
20446
cat confdefs.h >>conftest.$ac_ext
20447
cat >>conftest.$ac_ext <<_ACEOF
20448
/* end confdefs.h. */
20450
/* Override any GCC internal prototype to avoid an error.
20451
Use char because int might match the return type of a GCC
20452
builtin and then its argument prototype would still apply. */
20460
return dnet_ntoa ();
20465
rm -f conftest.$ac_objext conftest$ac_exeext
20466
if { (ac_try="$ac_link"
20467
case "(($ac_try" in
20468
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469
*) ac_try_echo=$ac_try;;
20471
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20472
(eval "$ac_link") 2>conftest.er1
20474
grep -v '^ *+' conftest.er1 >conftest.err
20476
cat conftest.err >&5
20477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478
(exit $ac_status); } && {
20479
test -z "$ac_c_werror_flag" ||
20480
test ! -s conftest.err
20481
} && test -s conftest$ac_exeext &&
20482
$as_test_x conftest$ac_exeext; then
20483
ac_cv_lib_dnet_dnet_ntoa=yes
20485
echo "$as_me: failed program was:" >&5
20486
sed 's/^/| /' conftest.$ac_ext >&5
20488
ac_cv_lib_dnet_dnet_ntoa=no
20491
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20492
conftest$ac_exeext conftest.$ac_ext
20493
LIBS=$ac_check_lib_save_LIBS
20495
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20496
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20497
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20498
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20501
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20502
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20503
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20504
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20505
echo $ECHO_N "(cached) $ECHO_C" >&6
20507
ac_check_lib_save_LIBS=$LIBS
20508
LIBS="-ldnet_stub $LIBS"
20509
cat >conftest.$ac_ext <<_ACEOF
20512
cat confdefs.h >>conftest.$ac_ext
20513
cat >>conftest.$ac_ext <<_ACEOF
20514
/* end confdefs.h. */
20516
/* Override any GCC internal prototype to avoid an error.
20517
Use char because int might match the return type of a GCC
20518
builtin and then its argument prototype would still apply. */
20526
return dnet_ntoa ();
20531
rm -f conftest.$ac_objext conftest$ac_exeext
20532
if { (ac_try="$ac_link"
20533
case "(($ac_try" in
20534
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535
*) ac_try_echo=$ac_try;;
20537
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20538
(eval "$ac_link") 2>conftest.er1
20540
grep -v '^ *+' conftest.er1 >conftest.err
20542
cat conftest.err >&5
20543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544
(exit $ac_status); } && {
20545
test -z "$ac_c_werror_flag" ||
20546
test ! -s conftest.err
20547
} && test -s conftest$ac_exeext &&
20548
$as_test_x conftest$ac_exeext; then
20549
ac_cv_lib_dnet_stub_dnet_ntoa=yes
20551
echo "$as_me: failed program was:" >&5
20552
sed 's/^/| /' conftest.$ac_ext >&5
20554
ac_cv_lib_dnet_stub_dnet_ntoa=no
20557
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20558
conftest$ac_exeext conftest.$ac_ext
20559
LIBS=$ac_check_lib_save_LIBS
20561
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20562
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20563
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20564
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20570
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20571
conftest$ac_exeext conftest.$ac_ext
20572
LIBS="$ac_xsave_LIBS"
20574
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20575
# to get the SysV transport functions.
20576
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20578
# The nsl library prevents programs from opening the X display
20579
# on Irix 5.2, according to T.E. Dickey.
20580
# The functions gethostbyname, getservbyname, and inet_addr are
20581
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20582
{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
20583
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20584
if test "${ac_cv_func_gethostbyname+set}" = set; then
20585
echo $ECHO_N "(cached) $ECHO_C" >&6
20587
cat >conftest.$ac_ext <<_ACEOF
20590
cat confdefs.h >>conftest.$ac_ext
20591
cat >>conftest.$ac_ext <<_ACEOF
20592
/* end confdefs.h. */
20593
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20594
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20595
#define gethostbyname innocuous_gethostbyname
20597
/* System header to define __stub macros and hopefully few prototypes,
20598
which can conflict with char gethostbyname (); below.
20599
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20600
<limits.h> exists even on freestanding compilers. */
20603
# include <limits.h>
20605
# include <assert.h>
20608
#undef gethostbyname
20610
/* Override any GCC internal prototype to avoid an error.
20611
Use char because int might match the return type of a GCC
20612
builtin and then its argument prototype would still apply. */
20616
char gethostbyname ();
20617
/* The GNU C library defines this for functions which it implements
20618
to always fail with ENOSYS. Some functions are actually named
20619
something starting with __ and the normal name is an alias. */
20620
#if defined __stub_gethostbyname || defined __stub___gethostbyname
20627
return gethostbyname ();
20632
rm -f conftest.$ac_objext conftest$ac_exeext
20633
if { (ac_try="$ac_link"
20634
case "(($ac_try" in
20635
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636
*) ac_try_echo=$ac_try;;
20638
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639
(eval "$ac_link") 2>conftest.er1
20641
grep -v '^ *+' conftest.er1 >conftest.err
20643
cat conftest.err >&5
20644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645
(exit $ac_status); } && {
20646
test -z "$ac_c_werror_flag" ||
20647
test ! -s conftest.err
20648
} && test -s conftest$ac_exeext &&
20649
$as_test_x conftest$ac_exeext; then
20650
ac_cv_func_gethostbyname=yes
20652
echo "$as_me: failed program was:" >&5
20653
sed 's/^/| /' conftest.$ac_ext >&5
20655
ac_cv_func_gethostbyname=no
20658
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20659
conftest$ac_exeext conftest.$ac_ext
20661
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20662
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20664
if test $ac_cv_func_gethostbyname = no; then
20665
{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20666
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20667
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20668
echo $ECHO_N "(cached) $ECHO_C" >&6
20670
ac_check_lib_save_LIBS=$LIBS
20672
cat >conftest.$ac_ext <<_ACEOF
20675
cat confdefs.h >>conftest.$ac_ext
20676
cat >>conftest.$ac_ext <<_ACEOF
20677
/* end confdefs.h. */
20679
/* Override any GCC internal prototype to avoid an error.
20680
Use char because int might match the return type of a GCC
20681
builtin and then its argument prototype would still apply. */
20685
char gethostbyname ();
20689
return gethostbyname ();
20694
rm -f conftest.$ac_objext conftest$ac_exeext
20695
if { (ac_try="$ac_link"
20696
case "(($ac_try" in
20697
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698
*) ac_try_echo=$ac_try;;
20700
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20701
(eval "$ac_link") 2>conftest.er1
20703
grep -v '^ *+' conftest.er1 >conftest.err
20705
cat conftest.err >&5
20706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707
(exit $ac_status); } && {
20708
test -z "$ac_c_werror_flag" ||
20709
test ! -s conftest.err
20710
} && test -s conftest$ac_exeext &&
20711
$as_test_x conftest$ac_exeext; then
20712
ac_cv_lib_nsl_gethostbyname=yes
20714
echo "$as_me: failed program was:" >&5
20715
sed 's/^/| /' conftest.$ac_ext >&5
20717
ac_cv_lib_nsl_gethostbyname=no
20720
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20721
conftest$ac_exeext conftest.$ac_ext
20722
LIBS=$ac_check_lib_save_LIBS
20724
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20725
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20726
if test $ac_cv_lib_nsl_gethostbyname = yes; then
20727
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20730
if test $ac_cv_lib_nsl_gethostbyname = no; then
20731
{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20732
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20733
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20734
echo $ECHO_N "(cached) $ECHO_C" >&6
20736
ac_check_lib_save_LIBS=$LIBS
20738
cat >conftest.$ac_ext <<_ACEOF
20741
cat confdefs.h >>conftest.$ac_ext
20742
cat >>conftest.$ac_ext <<_ACEOF
20743
/* end confdefs.h. */
20745
/* Override any GCC internal prototype to avoid an error.
20746
Use char because int might match the return type of a GCC
20747
builtin and then its argument prototype would still apply. */
20751
char gethostbyname ();
20755
return gethostbyname ();
20760
rm -f conftest.$ac_objext conftest$ac_exeext
20761
if { (ac_try="$ac_link"
20762
case "(($ac_try" in
20763
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764
*) ac_try_echo=$ac_try;;
20766
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767
(eval "$ac_link") 2>conftest.er1
20769
grep -v '^ *+' conftest.er1 >conftest.err
20771
cat conftest.err >&5
20772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773
(exit $ac_status); } && {
20774
test -z "$ac_c_werror_flag" ||
20775
test ! -s conftest.err
20776
} && test -s conftest$ac_exeext &&
20777
$as_test_x conftest$ac_exeext; then
20778
ac_cv_lib_bsd_gethostbyname=yes
20780
echo "$as_me: failed program was:" >&5
20781
sed 's/^/| /' conftest.$ac_ext >&5
20783
ac_cv_lib_bsd_gethostbyname=no
20786
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20787
conftest$ac_exeext conftest.$ac_ext
20788
LIBS=$ac_check_lib_save_LIBS
20790
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20791
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20792
if test $ac_cv_lib_bsd_gethostbyname = yes; then
20793
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20799
# lieder@skyler.mavd.honeywell.com says without -lsocket,
20800
# socket/setsockopt and other routines are undefined under SCO ODT
20801
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20802
# on later versions), says Simon Leinen: it contains gethostby*
20803
# variants that don't use the name server (or something). -lsocket
20804
# must be given before -lnsl if both are needed. We assume that
20805
# if connect needs -lnsl, so does gethostbyname.
20806
{ echo "$as_me:$LINENO: checking for connect" >&5
20807
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20808
if test "${ac_cv_func_connect+set}" = set; then
20809
echo $ECHO_N "(cached) $ECHO_C" >&6
20811
cat >conftest.$ac_ext <<_ACEOF
20814
cat confdefs.h >>conftest.$ac_ext
20815
cat >>conftest.$ac_ext <<_ACEOF
20816
/* end confdefs.h. */
20817
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
20818
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20819
#define connect innocuous_connect
20821
/* System header to define __stub macros and hopefully few prototypes,
20822
which can conflict with char connect (); below.
20823
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20824
<limits.h> exists even on freestanding compilers. */
20827
# include <limits.h>
20829
# include <assert.h>
20834
/* Override any GCC internal prototype to avoid an error.
20835
Use char because int might match the return type of a GCC
20836
builtin and then its argument prototype would still apply. */
20841
/* The GNU C library defines this for functions which it implements
20842
to always fail with ENOSYS. Some functions are actually named
20843
something starting with __ and the normal name is an alias. */
20844
#if defined __stub_connect || defined __stub___connect
20856
rm -f conftest.$ac_objext conftest$ac_exeext
20857
if { (ac_try="$ac_link"
20858
case "(($ac_try" in
20859
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860
*) ac_try_echo=$ac_try;;
20862
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863
(eval "$ac_link") 2>conftest.er1
20865
grep -v '^ *+' conftest.er1 >conftest.err
20867
cat conftest.err >&5
20868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869
(exit $ac_status); } && {
20870
test -z "$ac_c_werror_flag" ||
20871
test ! -s conftest.err
20872
} && test -s conftest$ac_exeext &&
20873
$as_test_x conftest$ac_exeext; then
20874
ac_cv_func_connect=yes
20876
echo "$as_me: failed program was:" >&5
20877
sed 's/^/| /' conftest.$ac_ext >&5
20879
ac_cv_func_connect=no
20882
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20883
conftest$ac_exeext conftest.$ac_ext
20885
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20886
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20888
if test $ac_cv_func_connect = no; then
20889
{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20890
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20891
if test "${ac_cv_lib_socket_connect+set}" = set; then
20892
echo $ECHO_N "(cached) $ECHO_C" >&6
20894
ac_check_lib_save_LIBS=$LIBS
20895
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20896
cat >conftest.$ac_ext <<_ACEOF
20899
cat confdefs.h >>conftest.$ac_ext
20900
cat >>conftest.$ac_ext <<_ACEOF
20901
/* end confdefs.h. */
20903
/* Override any GCC internal prototype to avoid an error.
20904
Use char because int might match the return type of a GCC
20905
builtin and then its argument prototype would still apply. */
20918
rm -f conftest.$ac_objext conftest$ac_exeext
20919
if { (ac_try="$ac_link"
20920
case "(($ac_try" in
20921
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922
*) ac_try_echo=$ac_try;;
20924
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925
(eval "$ac_link") 2>conftest.er1
20927
grep -v '^ *+' conftest.er1 >conftest.err
20929
cat conftest.err >&5
20930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931
(exit $ac_status); } && {
20932
test -z "$ac_c_werror_flag" ||
20933
test ! -s conftest.err
20934
} && test -s conftest$ac_exeext &&
20935
$as_test_x conftest$ac_exeext; then
20936
ac_cv_lib_socket_connect=yes
20938
echo "$as_me: failed program was:" >&5
20939
sed 's/^/| /' conftest.$ac_ext >&5
20941
ac_cv_lib_socket_connect=no
20944
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20945
conftest$ac_exeext conftest.$ac_ext
20946
LIBS=$ac_check_lib_save_LIBS
20948
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20949
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20950
if test $ac_cv_lib_socket_connect = yes; then
20951
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20956
# Guillermo Gomez says -lposix is necessary on A/UX.
20957
{ echo "$as_me:$LINENO: checking for remove" >&5
20958
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20959
if test "${ac_cv_func_remove+set}" = set; then
20960
echo $ECHO_N "(cached) $ECHO_C" >&6
20962
cat >conftest.$ac_ext <<_ACEOF
20965
cat confdefs.h >>conftest.$ac_ext
20966
cat >>conftest.$ac_ext <<_ACEOF
20967
/* end confdefs.h. */
20968
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
20969
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20970
#define remove innocuous_remove
20972
/* System header to define __stub macros and hopefully few prototypes,
20973
which can conflict with char remove (); below.
20974
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20975
<limits.h> exists even on freestanding compilers. */
20978
# include <limits.h>
20980
# include <assert.h>
20985
/* Override any GCC internal prototype to avoid an error.
20986
Use char because int might match the return type of a GCC
20987
builtin and then its argument prototype would still apply. */
20992
/* The GNU C library defines this for functions which it implements
20993
to always fail with ENOSYS. Some functions are actually named
20994
something starting with __ and the normal name is an alias. */
20995
#if defined __stub_remove || defined __stub___remove
21007
rm -f conftest.$ac_objext conftest$ac_exeext
21008
if { (ac_try="$ac_link"
21009
case "(($ac_try" in
21010
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011
*) ac_try_echo=$ac_try;;
21013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014
(eval "$ac_link") 2>conftest.er1
21016
grep -v '^ *+' conftest.er1 >conftest.err
21018
cat conftest.err >&5
21019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020
(exit $ac_status); } && {
21021
test -z "$ac_c_werror_flag" ||
21022
test ! -s conftest.err
21023
} && test -s conftest$ac_exeext &&
21024
$as_test_x conftest$ac_exeext; then
21025
ac_cv_func_remove=yes
21027
echo "$as_me: failed program was:" >&5
21028
sed 's/^/| /' conftest.$ac_ext >&5
21030
ac_cv_func_remove=no
21033
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21034
conftest$ac_exeext conftest.$ac_ext
21036
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21037
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
21039
if test $ac_cv_func_remove = no; then
21040
{ echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21041
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
21042
if test "${ac_cv_lib_posix_remove+set}" = set; then
21043
echo $ECHO_N "(cached) $ECHO_C" >&6
21045
ac_check_lib_save_LIBS=$LIBS
21046
LIBS="-lposix $LIBS"
21047
cat >conftest.$ac_ext <<_ACEOF
21050
cat confdefs.h >>conftest.$ac_ext
21051
cat >>conftest.$ac_ext <<_ACEOF
21052
/* end confdefs.h. */
21054
/* Override any GCC internal prototype to avoid an error.
21055
Use char because int might match the return type of a GCC
21056
builtin and then its argument prototype would still apply. */
21069
rm -f conftest.$ac_objext conftest$ac_exeext
21070
if { (ac_try="$ac_link"
21071
case "(($ac_try" in
21072
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21073
*) ac_try_echo=$ac_try;;
21075
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21076
(eval "$ac_link") 2>conftest.er1
21078
grep -v '^ *+' conftest.er1 >conftest.err
21080
cat conftest.err >&5
21081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082
(exit $ac_status); } && {
21083
test -z "$ac_c_werror_flag" ||
21084
test ! -s conftest.err
21085
} && test -s conftest$ac_exeext &&
21086
$as_test_x conftest$ac_exeext; then
21087
ac_cv_lib_posix_remove=yes
21089
echo "$as_me: failed program was:" >&5
21090
sed 's/^/| /' conftest.$ac_ext >&5
21092
ac_cv_lib_posix_remove=no
21095
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21096
conftest$ac_exeext conftest.$ac_ext
21097
LIBS=$ac_check_lib_save_LIBS
21099
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21100
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
21101
if test $ac_cv_lib_posix_remove = yes; then
21102
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21107
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21108
{ echo "$as_me:$LINENO: checking for shmat" >&5
21109
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
21110
if test "${ac_cv_func_shmat+set}" = set; then
21111
echo $ECHO_N "(cached) $ECHO_C" >&6
21113
cat >conftest.$ac_ext <<_ACEOF
21116
cat confdefs.h >>conftest.$ac_ext
21117
cat >>conftest.$ac_ext <<_ACEOF
21118
/* end confdefs.h. */
21119
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21120
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21121
#define shmat innocuous_shmat
21123
/* System header to define __stub macros and hopefully few prototypes,
21124
which can conflict with char shmat (); below.
21125
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21126
<limits.h> exists even on freestanding compilers. */
21129
# include <limits.h>
21131
# include <assert.h>
21136
/* Override any GCC internal prototype to avoid an error.
21137
Use char because int might match the return type of a GCC
21138
builtin and then its argument prototype would still apply. */
21143
/* The GNU C library defines this for functions which it implements
21144
to always fail with ENOSYS. Some functions are actually named
21145
something starting with __ and the normal name is an alias. */
21146
#if defined __stub_shmat || defined __stub___shmat
21158
rm -f conftest.$ac_objext conftest$ac_exeext
21159
if { (ac_try="$ac_link"
21160
case "(($ac_try" in
21161
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162
*) ac_try_echo=$ac_try;;
21164
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165
(eval "$ac_link") 2>conftest.er1
21167
grep -v '^ *+' conftest.er1 >conftest.err
21169
cat conftest.err >&5
21170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171
(exit $ac_status); } && {
21172
test -z "$ac_c_werror_flag" ||
21173
test ! -s conftest.err
21174
} && test -s conftest$ac_exeext &&
21175
$as_test_x conftest$ac_exeext; then
21176
ac_cv_func_shmat=yes
21178
echo "$as_me: failed program was:" >&5
21179
sed 's/^/| /' conftest.$ac_ext >&5
21181
ac_cv_func_shmat=no
21184
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21185
conftest$ac_exeext conftest.$ac_ext
21187
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21188
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
21190
if test $ac_cv_func_shmat = no; then
21191
{ echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21192
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
21193
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21194
echo $ECHO_N "(cached) $ECHO_C" >&6
21196
ac_check_lib_save_LIBS=$LIBS
21198
cat >conftest.$ac_ext <<_ACEOF
21201
cat confdefs.h >>conftest.$ac_ext
21202
cat >>conftest.$ac_ext <<_ACEOF
21203
/* end confdefs.h. */
21205
/* Override any GCC internal prototype to avoid an error.
21206
Use char because int might match the return type of a GCC
21207
builtin and then its argument prototype would still apply. */
21220
rm -f conftest.$ac_objext conftest$ac_exeext
21221
if { (ac_try="$ac_link"
21222
case "(($ac_try" in
21223
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224
*) ac_try_echo=$ac_try;;
21226
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227
(eval "$ac_link") 2>conftest.er1
21229
grep -v '^ *+' conftest.er1 >conftest.err
21231
cat conftest.err >&5
21232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233
(exit $ac_status); } && {
21234
test -z "$ac_c_werror_flag" ||
21235
test ! -s conftest.err
21236
} && test -s conftest$ac_exeext &&
21237
$as_test_x conftest$ac_exeext; then
21238
ac_cv_lib_ipc_shmat=yes
21240
echo "$as_me: failed program was:" >&5
21241
sed 's/^/| /' conftest.$ac_ext >&5
21243
ac_cv_lib_ipc_shmat=no
21246
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21247
conftest$ac_exeext conftest.$ac_ext
21248
LIBS=$ac_check_lib_save_LIBS
21250
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21251
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
21252
if test $ac_cv_lib_ipc_shmat = yes; then
21253
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21259
# Check for libraries that X11R6 Xt/Xaw programs need.
21260
ac_save_LDFLAGS=$LDFLAGS
21261
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21262
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21263
# check for ICE first), but we must link in the order -lSM -lICE or
21264
# we get undefined symbols. So assume we have SM if we have ICE.
21265
# These have to be linked with before -lX11, unlike the other
21266
# libraries we check for below, so use a different variable.
21267
# John Interrante, Karl Berry
21268
{ echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21269
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
21270
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21271
echo $ECHO_N "(cached) $ECHO_C" >&6
21273
ac_check_lib_save_LIBS=$LIBS
21274
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21275
cat >conftest.$ac_ext <<_ACEOF
21278
cat confdefs.h >>conftest.$ac_ext
21279
cat >>conftest.$ac_ext <<_ACEOF
21280
/* end confdefs.h. */
21282
/* Override any GCC internal prototype to avoid an error.
21283
Use char because int might match the return type of a GCC
21284
builtin and then its argument prototype would still apply. */
21288
char IceConnectionNumber ();
21292
return IceConnectionNumber ();
21297
rm -f conftest.$ac_objext conftest$ac_exeext
21298
if { (ac_try="$ac_link"
21299
case "(($ac_try" in
21300
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301
*) ac_try_echo=$ac_try;;
21303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304
(eval "$ac_link") 2>conftest.er1
21306
grep -v '^ *+' conftest.er1 >conftest.err
21308
cat conftest.err >&5
21309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310
(exit $ac_status); } && {
21311
test -z "$ac_c_werror_flag" ||
21312
test ! -s conftest.err
21313
} && test -s conftest$ac_exeext &&
21314
$as_test_x conftest$ac_exeext; then
21315
ac_cv_lib_ICE_IceConnectionNumber=yes
21317
echo "$as_me: failed program was:" >&5
21318
sed 's/^/| /' conftest.$ac_ext >&5
21320
ac_cv_lib_ICE_IceConnectionNumber=no
21323
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21324
conftest$ac_exeext conftest.$ac_ext
21325
LIBS=$ac_check_lib_save_LIBS
21327
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21328
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21329
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21330
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21333
LDFLAGS=$ac_save_LDFLAGS
21338
{ echo "$as_me:$LINENO: checking whether variable-length arrays are supported" >&5
21339
echo $ECHO_N "checking whether variable-length arrays are supported... $ECHO_C" >&6; }
21340
cat >conftest.$ac_ext <<_ACEOF
21343
cat confdefs.h >>conftest.$ac_ext
21344
cat >>conftest.$ac_ext <<_ACEOF
21345
/* end confdefs.h. */
21357
rm -f conftest.$ac_objext
21358
if { (ac_try="$ac_compile"
21359
case "(($ac_try" in
21360
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361
*) ac_try_echo=$ac_try;;
21363
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364
(eval "$ac_compile") 2>conftest.er1
21366
grep -v '^ *+' conftest.er1 >conftest.err
21368
cat conftest.err >&5
21369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370
(exit $ac_status); } && {
21371
test -z "$ac_c_werror_flag" ||
21372
test ! -s conftest.err
21373
} && test -s conftest.$ac_objext; then
21374
{ echo "$as_me:$LINENO: result: yes" >&5
21375
echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
21376
@%:@define HAVE_VLA 1
21380
echo "$as_me: failed program was:" >&5
21381
sed 's/^/| /' conftest.$ac_ext >&5
21383
{ echo "$as_me:$LINENO: result: no" >&5
21384
echo "${ECHO_T}no" >&6; }
21387
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21389
############################################################
21390
# Check for the IJG JPEG library.
21391
############################################################
21393
# Allow the user to explicitly specify whether the JPEG library is present.
21394
# Check whether --enable-libjpeg was given.
21395
if test "${enable_libjpeg+set}" = set; then
21396
enableval=$enable_libjpeg;
21397
case "${enableval}" in
21399
ENABLE_LIBJPEG=yes;;
21401
ENABLE_LIBJPEG=no;;
21403
{ { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-libjpeg" >&5
21404
echo "$as_me: error: bad value ${enableval} for --disable-libjpeg" >&2;}
21405
{ (exit 1); exit 1; }; }
21415
if test $ENABLE_LIBJPEG = yes; then
21416
# Check for the JPEG library.
21417
{ echo "$as_me:$LINENO: checking for jpeg_destroy in -ljpeg" >&5
21418
echo $ECHO_N "checking for jpeg_destroy in -ljpeg... $ECHO_C" >&6; }
21419
if test "${ac_cv_lib_jpeg_jpeg_destroy+set}" = set; then
21420
echo $ECHO_N "(cached) $ECHO_C" >&6
21422
ac_check_lib_save_LIBS=$LIBS
21423
LIBS="-ljpeg $LIBS"
21424
cat >conftest.$ac_ext <<_ACEOF
21427
cat confdefs.h >>conftest.$ac_ext
21428
cat >>conftest.$ac_ext <<_ACEOF
21429
/* end confdefs.h. */
21431
/* Override any GCC internal prototype to avoid an error.
21432
Use char because int might match the return type of a GCC
21433
builtin and then its argument prototype would still apply. */
21437
char jpeg_destroy ();
21441
return jpeg_destroy ();
21446
rm -f conftest.$ac_objext conftest$ac_exeext
21447
if { (ac_try="$ac_link"
21448
case "(($ac_try" in
21449
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21450
*) ac_try_echo=$ac_try;;
21452
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21453
(eval "$ac_link") 2>conftest.er1
21455
grep -v '^ *+' conftest.er1 >conftest.err
21457
cat conftest.err >&5
21458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459
(exit $ac_status); } && {
21460
test -z "$ac_c_werror_flag" ||
21461
test ! -s conftest.err
21462
} && test -s conftest$ac_exeext &&
21463
$as_test_x conftest$ac_exeext; then
21464
ac_cv_lib_jpeg_jpeg_destroy=yes
21466
echo "$as_me: failed program was:" >&5
21467
sed 's/^/| /' conftest.$ac_ext >&5
21469
ac_cv_lib_jpeg_jpeg_destroy=no
21472
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21473
conftest$ac_exeext conftest.$ac_ext
21474
LIBS=$ac_check_lib_save_LIBS
21476
{ echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy" >&5
21477
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy" >&6; }
21478
if test $ac_cv_lib_jpeg_jpeg_destroy = yes; then
21484
if test $HAVE_LIBJPEG = yes; then
21485
LIBS="$LIBS -ljpeg"
21490
if test $HAVE_LIBJPEG = yes; then
21492
HAVE_LIBJPEG_FALSE='#'
21494
HAVE_LIBJPEG_TRUE='#'
21495
HAVE_LIBJPEG_FALSE=
21499
############################################################
21500
# Check for OpenGL libraries.
21501
############################################################
21504
# Check whether --with-glut-include-dir was given.
21505
if test "${with_glut_include_dir+set}" = set; then
21506
withval=$with_glut_include_dir;
21509
CFLAGS="$CFLAGS -I$withval"
21510
CPPFLAGS="$CPPFLAGS -I$withval";;
21512
{ { echo "$as_me:$LINENO: error: --with-glut-include-dir requires absolute path" >&5
21513
echo "$as_me: error: --with-glut-include-dir requires absolute path" >&2;}
21514
{ (exit 1); exit 1; }; }
21521
# Check whether --with-glut-lib-dir was given.
21522
if test "${with_glut_lib_dir+set}" = set; then
21523
withval=$with_glut_lib_dir;
21526
LIBS="$LIBS -L$withval";;
21528
{ { echo "$as_me:$LINENO: error: --with-glut-lib-dir requires absolute path" >&5
21529
echo "$as_me: error: --with-glut-lib-dir requires absolute path" >&2;}
21530
{ (exit 1); exit 1; }; }
21537
# Check whether --enable-opengl was given.
21538
if test "${enable_opengl+set}" = set; then
21539
enableval=$enable_opengl;
21540
case "$enableval" in
21542
ENABLE_OPENGL=yes;;
21546
{ { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-libjpeg" >&5
21547
echo "$as_me: error: bad value ${enableval} for --disable-libjpeg" >&2;}
21548
{ (exit 1); exit 1; }; }
21559
if test $ENABLE_OPENGL = yes; then
21560
if test $HAVE_OPENGL = no; then
21561
TMPLIBS="-lglut -lGL -lGLU $X_PRE_LIBS -lX11 -lXmu -lXi -lXext -lXt $X_EXTRA_LIBS $X_LIBS"
21562
{ echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
21563
echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6; }
21564
if test "${ac_cv_lib_glut_glutInit+set}" = set; then
21565
echo $ECHO_N "(cached) $ECHO_C" >&6
21567
ac_check_lib_save_LIBS=$LIBS
21568
LIBS="-lglut $TMPLIBS $LIBS"
21569
cat >conftest.$ac_ext <<_ACEOF
21572
cat confdefs.h >>conftest.$ac_ext
21573
cat >>conftest.$ac_ext <<_ACEOF
21574
/* end confdefs.h. */
21576
/* Override any GCC internal prototype to avoid an error.
21577
Use char because int might match the return type of a GCC
21578
builtin and then its argument prototype would still apply. */
21586
return glutInit ();
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_glut_glutInit=yes
21611
echo "$as_me: failed program was:" >&5
21612
sed 's/^/| /' conftest.$ac_ext >&5
21614
ac_cv_lib_glut_glutInit=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_glut_glutInit" >&5
21622
echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6; }
21623
if test $ac_cv_lib_glut_glutInit = yes; then
21625
OPENGL_LIBS=$TMPLIBS
21631
if test "${ac_cv_header_GL_glut_h+set}" = set; then
21632
{ echo "$as_me:$LINENO: checking for GL/glut.h" >&5
21633
echo $ECHO_N "checking for GL/glut.h... $ECHO_C" >&6; }
21634
if test "${ac_cv_header_GL_glut_h+set}" = set; then
21635
echo $ECHO_N "(cached) $ECHO_C" >&6
21637
{ echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
21638
echo "${ECHO_T}$ac_cv_header_GL_glut_h" >&6; }
21640
# Is the header compilable?
21641
{ echo "$as_me:$LINENO: checking GL/glut.h usability" >&5
21642
echo $ECHO_N "checking GL/glut.h usability... $ECHO_C" >&6; }
21643
cat >conftest.$ac_ext <<_ACEOF
21646
cat confdefs.h >>conftest.$ac_ext
21647
cat >>conftest.$ac_ext <<_ACEOF
21648
/* end confdefs.h. */
21649
$ac_includes_default
21650
@%:@include <GL/glut.h>
21652
rm -f conftest.$ac_objext
21653
if { (ac_try="$ac_compile"
21654
case "(($ac_try" in
21655
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656
*) ac_try_echo=$ac_try;;
21658
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659
(eval "$ac_compile") 2>conftest.er1
21661
grep -v '^ *+' conftest.er1 >conftest.err
21663
cat conftest.err >&5
21664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665
(exit $ac_status); } && {
21666
test -z "$ac_c_werror_flag" ||
21667
test ! -s conftest.err
21668
} && test -s conftest.$ac_objext; then
21669
ac_header_compiler=yes
21671
echo "$as_me: failed program was:" >&5
21672
sed 's/^/| /' conftest.$ac_ext >&5
21674
ac_header_compiler=no
21677
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21678
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21679
echo "${ECHO_T}$ac_header_compiler" >&6; }
21681
# Is the header present?
21682
{ echo "$as_me:$LINENO: checking GL/glut.h presence" >&5
21683
echo $ECHO_N "checking GL/glut.h presence... $ECHO_C" >&6; }
21684
cat >conftest.$ac_ext <<_ACEOF
21687
cat confdefs.h >>conftest.$ac_ext
21688
cat >>conftest.$ac_ext <<_ACEOF
21689
/* end confdefs.h. */
21690
@%:@include <GL/glut.h>
21692
if { (ac_try="$ac_cpp conftest.$ac_ext"
21693
case "(($ac_try" in
21694
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695
*) ac_try_echo=$ac_try;;
21697
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21700
grep -v '^ *+' conftest.er1 >conftest.err
21702
cat conftest.err >&5
21703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704
(exit $ac_status); } >/dev/null && {
21705
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21706
test ! -s conftest.err
21708
ac_header_preproc=yes
21710
echo "$as_me: failed program was:" >&5
21711
sed 's/^/| /' conftest.$ac_ext >&5
21713
ac_header_preproc=no
21716
rm -f conftest.err conftest.$ac_ext
21717
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21718
echo "${ECHO_T}$ac_header_preproc" >&6; }
21720
# So? What about this header?
21721
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21723
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&5
21724
echo "$as_me: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21725
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the compiler's result" >&5
21726
echo "$as_me: WARNING: GL/glut.h: proceeding with the compiler's result" >&2;}
21727
ac_header_preproc=yes
21730
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: present but cannot be compiled" >&5
21731
echo "$as_me: WARNING: GL/glut.h: present but cannot be compiled" >&2;}
21732
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: check for missing prerequisite headers?" >&5
21733
echo "$as_me: WARNING: GL/glut.h: check for missing prerequisite headers?" >&2;}
21734
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: see the Autoconf documentation" >&5
21735
echo "$as_me: WARNING: GL/glut.h: see the Autoconf documentation" >&2;}
21736
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: section \"Present But Cannot Be Compiled\"" >&5
21737
echo "$as_me: WARNING: GL/glut.h: section \"Present But Cannot Be Compiled\"" >&2;}
21738
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5
21739
echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;}
21740
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&5
21741
echo "$as_me: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&2;}
21745
{ echo "$as_me:$LINENO: checking for GL/glut.h" >&5
21746
echo $ECHO_N "checking for GL/glut.h... $ECHO_C" >&6; }
21747
if test "${ac_cv_header_GL_glut_h+set}" = set; then
21748
echo $ECHO_N "(cached) $ECHO_C" >&6
21750
ac_cv_header_GL_glut_h=$ac_header_preproc
21752
{ echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
21753
echo "${ECHO_T}$ac_cv_header_GL_glut_h" >&6; }
21756
if test $ac_cv_header_GL_glut_h = yes; then
21759
HAVE_OPENGL=no; OPENGL_LIBS="";
21767
if test $HAVE_OPENGL = yes; then
21769
HAVE_OPENGL_FALSE='#'
21771
HAVE_OPENGL_TRUE='#'
21776
{ echo "$as_me:$LINENO: checking whether OpenGL libraries and headers were detected" >&5
21777
echo $ECHO_N "checking whether OpenGL libraries and headers were detected... $ECHO_C" >&6; }
21778
{ echo "$as_me:$LINENO: result: $HAVE_OPENGL" >&5
21779
echo "${ECHO_T}$HAVE_OPENGL" >&6; }
21781
############################################################
21782
# Check for SDL libraries.
21783
############################################################
21784
# Extract the first word of "sdl-config", so it can be a program name with args.
21785
set dummy sdl-config; ac_word=$2
21786
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21787
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21788
if test "${ac_cv_prog_HAVE_SDL+set}" = set; then
21789
echo $ECHO_N "(cached) $ECHO_C" >&6
21791
if test -n "$HAVE_SDL"; then
21792
ac_cv_prog_HAVE_SDL="$HAVE_SDL" # Let the user override the test.
21794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21795
for as_dir in $PATH
21798
test -z "$as_dir" && as_dir=.
21799
for ac_exec_ext in '' $ac_executable_extensions; do
21800
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21801
ac_cv_prog_HAVE_SDL="yes"
21802
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21809
test -z "$ac_cv_prog_HAVE_SDL" && ac_cv_prog_HAVE_SDL="no"
21812
HAVE_SDL=$ac_cv_prog_HAVE_SDL
21813
if test -n "$HAVE_SDL"; then
21814
{ echo "$as_me:$LINENO: result: $HAVE_SDL" >&5
21815
echo "${ECHO_T}$HAVE_SDL" >&6; }
21817
{ echo "$as_me:$LINENO: result: no" >&5
21818
echo "${ECHO_T}no" >&6; }
21822
if test $HAVE_SDL = yes; then
21823
SDL_CFLAGS=`sdl-config --cflags`
21824
SDL_LIBS=`sdl-config --libs`
21828
if test $HAVE_SDL = yes; then
21839
############################################################
21840
# Check for other libraries.
21841
############################################################
21843
# Check for the math library.
21845
{ echo "$as_me:$LINENO: checking for main in -lm" >&5
21846
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
21847
if test "${ac_cv_lib_m_main+set}" = set; then
21848
echo $ECHO_N "(cached) $ECHO_C" >&6
21850
ac_check_lib_save_LIBS=$LIBS
21852
cat >conftest.$ac_ext <<_ACEOF
21855
cat confdefs.h >>conftest.$ac_ext
21856
cat >>conftest.$ac_ext <<_ACEOF
21857
/* end confdefs.h. */
21868
rm -f conftest.$ac_objext conftest$ac_exeext
21869
if { (ac_try="$ac_link"
21870
case "(($ac_try" in
21871
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21872
*) ac_try_echo=$ac_try;;
21874
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21875
(eval "$ac_link") 2>conftest.er1
21877
grep -v '^ *+' conftest.er1 >conftest.err
21879
cat conftest.err >&5
21880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881
(exit $ac_status); } && {
21882
test -z "$ac_c_werror_flag" ||
21883
test ! -s conftest.err
21884
} && test -s conftest$ac_exeext &&
21885
$as_test_x conftest$ac_exeext; then
21886
ac_cv_lib_m_main=yes
21888
echo "$as_me: failed program was:" >&5
21889
sed 's/^/| /' conftest.$ac_ext >&5
21891
ac_cv_lib_m_main=no
21894
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21895
conftest$ac_exeext conftest.$ac_ext
21896
LIBS=$ac_check_lib_save_LIBS
21898
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
21899
echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
21900
if test $ac_cv_lib_m_main = yes; then
21901
cat >>confdefs.h <<_ACEOF
21902
@%:@define HAVE_LIBM 1
21910
############################################################
21911
# Check for header files.
21912
############################################################
21914
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21915
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21916
if test "${ac_cv_header_stdc+set}" = set; then
21917
echo $ECHO_N "(cached) $ECHO_C" >&6
21919
cat >conftest.$ac_ext <<_ACEOF
21922
cat confdefs.h >>conftest.$ac_ext
21923
cat >>conftest.$ac_ext <<_ACEOF
21924
/* end confdefs.h. */
21925
#include <stdlib.h>
21926
#include <stdarg.h>
21927
#include <string.h>
21938
rm -f conftest.$ac_objext
21939
if { (ac_try="$ac_compile"
21940
case "(($ac_try" in
21941
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21942
*) ac_try_echo=$ac_try;;
21944
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21945
(eval "$ac_compile") 2>conftest.er1
21947
grep -v '^ *+' conftest.er1 >conftest.err
21949
cat conftest.err >&5
21950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951
(exit $ac_status); } && {
21952
test -z "$ac_c_werror_flag" ||
21953
test ! -s conftest.err
21954
} && test -s conftest.$ac_objext; then
21955
ac_cv_header_stdc=yes
21957
echo "$as_me: failed program was:" >&5
21958
sed 's/^/| /' conftest.$ac_ext >&5
21960
ac_cv_header_stdc=no
21963
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21965
if test $ac_cv_header_stdc = yes; then
21966
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21967
cat >conftest.$ac_ext <<_ACEOF
21970
cat confdefs.h >>conftest.$ac_ext
21971
cat >>conftest.$ac_ext <<_ACEOF
21972
/* end confdefs.h. */
21973
#include <string.h>
21976
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21977
$EGREP "memchr" >/dev/null 2>&1; then
21980
ac_cv_header_stdc=no
21986
if test $ac_cv_header_stdc = yes; then
21987
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21988
cat >conftest.$ac_ext <<_ACEOF
21991
cat confdefs.h >>conftest.$ac_ext
21992
cat >>conftest.$ac_ext <<_ACEOF
21993
/* end confdefs.h. */
21994
#include <stdlib.h>
21997
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21998
$EGREP "free" >/dev/null 2>&1; then
22001
ac_cv_header_stdc=no
22007
if test $ac_cv_header_stdc = yes; then
22008
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22009
if test "$cross_compiling" = yes; then
22012
cat >conftest.$ac_ext <<_ACEOF
22015
cat confdefs.h >>conftest.$ac_ext
22016
cat >>conftest.$ac_ext <<_ACEOF
22017
/* end confdefs.h. */
22019
#include <stdlib.h>
22020
#if ((' ' & 0x0FF) == 0x020)
22021
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22022
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22024
# define ISLOWER(c) \
22025
(('a' <= (c) && (c) <= 'i') \
22026
|| ('j' <= (c) && (c) <= 'r') \
22027
|| ('s' <= (c) && (c) <= 'z'))
22028
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22031
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22036
for (i = 0; i < 256; i++)
22037
if (XOR (islower (i), ISLOWER (i))
22038
|| toupper (i) != TOUPPER (i))
22043
rm -f conftest$ac_exeext
22044
if { (ac_try="$ac_link"
22045
case "(($ac_try" in
22046
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047
*) ac_try_echo=$ac_try;;
22049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050
(eval "$ac_link") 2>&5
22052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22054
{ (case "(($ac_try" in
22055
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056
*) ac_try_echo=$ac_try;;
22058
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059
(eval "$ac_try") 2>&5
22061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062
(exit $ac_status); }; }; then
22065
echo "$as_me: program exited with status $ac_status" >&5
22066
echo "$as_me: failed program was:" >&5
22067
sed 's/^/| /' conftest.$ac_ext >&5
22069
( exit $ac_status )
22070
ac_cv_header_stdc=no
22072
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22078
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22079
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22080
if test $ac_cv_header_stdc = yes; then
22082
cat >>confdefs.h <<\_ACEOF
22083
@%:@define STDC_HEADERS 1
22098
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
22100
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22101
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22102
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22103
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22104
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22105
echo $ECHO_N "(cached) $ECHO_C" >&6
22107
ac_res=`eval echo '${'$as_ac_Header'}'`
22108
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22109
echo "${ECHO_T}$ac_res" >&6; }
22111
# Is the header compilable?
22112
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22113
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22114
cat >conftest.$ac_ext <<_ACEOF
22117
cat confdefs.h >>conftest.$ac_ext
22118
cat >>conftest.$ac_ext <<_ACEOF
22119
/* end confdefs.h. */
22120
$ac_includes_default
22121
@%:@include <$ac_header>
22123
rm -f conftest.$ac_objext
22124
if { (ac_try="$ac_compile"
22125
case "(($ac_try" in
22126
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127
*) ac_try_echo=$ac_try;;
22129
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22130
(eval "$ac_compile") 2>conftest.er1
22132
grep -v '^ *+' conftest.er1 >conftest.err
22134
cat conftest.err >&5
22135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136
(exit $ac_status); } && {
22137
test -z "$ac_c_werror_flag" ||
22138
test ! -s conftest.err
22139
} && test -s conftest.$ac_objext; then
22140
ac_header_compiler=yes
22142
echo "$as_me: failed program was:" >&5
22143
sed 's/^/| /' conftest.$ac_ext >&5
22145
ac_header_compiler=no
22148
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22149
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22150
echo "${ECHO_T}$ac_header_compiler" >&6; }
22152
# Is the header present?
22153
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22154
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22155
cat >conftest.$ac_ext <<_ACEOF
22158
cat confdefs.h >>conftest.$ac_ext
22159
cat >>conftest.$ac_ext <<_ACEOF
22160
/* end confdefs.h. */
22161
@%:@include <$ac_header>
22163
if { (ac_try="$ac_cpp conftest.$ac_ext"
22164
case "(($ac_try" in
22165
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166
*) ac_try_echo=$ac_try;;
22168
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22169
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22171
grep -v '^ *+' conftest.er1 >conftest.err
22173
cat conftest.err >&5
22174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175
(exit $ac_status); } >/dev/null && {
22176
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22177
test ! -s conftest.err
22179
ac_header_preproc=yes
22181
echo "$as_me: failed program was:" >&5
22182
sed 's/^/| /' conftest.$ac_ext >&5
22184
ac_header_preproc=no
22187
rm -f conftest.err conftest.$ac_ext
22188
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22189
echo "${ECHO_T}$ac_header_preproc" >&6; }
22191
# So? What about this header?
22192
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22194
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22195
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22196
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22197
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22198
ac_header_preproc=yes
22201
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22202
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22203
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22204
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22205
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22206
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22207
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22208
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22209
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22210
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22211
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22212
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22216
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22217
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22218
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22219
echo $ECHO_N "(cached) $ECHO_C" >&6
22221
eval "$as_ac_Header=\$ac_header_preproc"
22223
ac_res=`eval echo '${'$as_ac_Header'}'`
22224
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22225
echo "${ECHO_T}$ac_res" >&6; }
22228
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22229
cat >>confdefs.h <<_ACEOF
22230
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22238
############################################################
22239
# Check for typedefs, structures, and compiler characteristics.
22240
############################################################
22242
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22243
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22244
if test "${ac_cv_c_bigendian+set}" = set; then
22245
echo $ECHO_N "(cached) $ECHO_C" >&6
22247
# See if sys/param.h defines the BYTE_ORDER macro.
22248
cat >conftest.$ac_ext <<_ACEOF
22251
cat confdefs.h >>conftest.$ac_ext
22252
cat >>conftest.$ac_ext <<_ACEOF
22253
/* end confdefs.h. */
22254
#include <sys/types.h>
22255
#include <sys/param.h>
22260
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22261
&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22262
bogus endian macros
22269
rm -f conftest.$ac_objext
22270
if { (ac_try="$ac_compile"
22271
case "(($ac_try" in
22272
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273
*) ac_try_echo=$ac_try;;
22275
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22276
(eval "$ac_compile") 2>conftest.er1
22278
grep -v '^ *+' conftest.er1 >conftest.err
22280
cat conftest.err >&5
22281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282
(exit $ac_status); } && {
22283
test -z "$ac_c_werror_flag" ||
22284
test ! -s conftest.err
22285
} && test -s conftest.$ac_objext; then
22286
# It does; now see whether it defined to BIG_ENDIAN or not.
22287
cat >conftest.$ac_ext <<_ACEOF
22290
cat confdefs.h >>conftest.$ac_ext
22291
cat >>conftest.$ac_ext <<_ACEOF
22292
/* end confdefs.h. */
22293
#include <sys/types.h>
22294
#include <sys/param.h>
22299
#if BYTE_ORDER != BIG_ENDIAN
22307
rm -f conftest.$ac_objext
22308
if { (ac_try="$ac_compile"
22309
case "(($ac_try" in
22310
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311
*) ac_try_echo=$ac_try;;
22313
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314
(eval "$ac_compile") 2>conftest.er1
22316
grep -v '^ *+' conftest.er1 >conftest.err
22318
cat conftest.err >&5
22319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320
(exit $ac_status); } && {
22321
test -z "$ac_c_werror_flag" ||
22322
test ! -s conftest.err
22323
} && test -s conftest.$ac_objext; then
22324
ac_cv_c_bigendian=yes
22326
echo "$as_me: failed program was:" >&5
22327
sed 's/^/| /' conftest.$ac_ext >&5
22329
ac_cv_c_bigendian=no
22332
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22334
echo "$as_me: failed program was:" >&5
22335
sed 's/^/| /' conftest.$ac_ext >&5
22337
# It does not; compile a test program.
22338
if test "$cross_compiling" = yes; then
22339
# try to guess the endianness by grepping values into an object file
22340
ac_cv_c_bigendian=unknown
22341
cat >conftest.$ac_ext <<_ACEOF
22344
cat confdefs.h >>conftest.$ac_ext
22345
cat >>conftest.$ac_ext <<_ACEOF
22346
/* end confdefs.h. */
22347
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22348
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22349
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22350
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22351
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22352
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22356
_ascii (); _ebcdic ();
22361
rm -f conftest.$ac_objext
22362
if { (ac_try="$ac_compile"
22363
case "(($ac_try" in
22364
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365
*) ac_try_echo=$ac_try;;
22367
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22368
(eval "$ac_compile") 2>conftest.er1
22370
grep -v '^ *+' conftest.er1 >conftest.err
22372
cat conftest.err >&5
22373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374
(exit $ac_status); } && {
22375
test -z "$ac_c_werror_flag" ||
22376
test ! -s conftest.err
22377
} && test -s conftest.$ac_objext; then
22378
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22379
ac_cv_c_bigendian=yes
22381
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22382
if test "$ac_cv_c_bigendian" = unknown; then
22383
ac_cv_c_bigendian=no
22385
# finding both strings is unlikely to happen, but who knows?
22386
ac_cv_c_bigendian=unknown
22390
echo "$as_me: failed program was:" >&5
22391
sed 's/^/| /' conftest.$ac_ext >&5
22396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22398
cat >conftest.$ac_ext <<_ACEOF
22401
cat confdefs.h >>conftest.$ac_ext
22402
cat >>conftest.$ac_ext <<_ACEOF
22403
/* end confdefs.h. */
22404
$ac_includes_default
22409
/* Are we little or big endian? From Harbison&Steele. */
22413
char c[sizeof (long int)];
22416
return u.c[sizeof (long int) - 1] == 1;
22422
rm -f conftest$ac_exeext
22423
if { (ac_try="$ac_link"
22424
case "(($ac_try" in
22425
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22426
*) ac_try_echo=$ac_try;;
22428
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22429
(eval "$ac_link") 2>&5
22431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22433
{ (case "(($ac_try" in
22434
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22435
*) ac_try_echo=$ac_try;;
22437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22438
(eval "$ac_try") 2>&5
22440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441
(exit $ac_status); }; }; then
22442
ac_cv_c_bigendian=no
22444
echo "$as_me: program exited with status $ac_status" >&5
22445
echo "$as_me: failed program was:" >&5
22446
sed 's/^/| /' conftest.$ac_ext >&5
22448
( exit $ac_status )
22449
ac_cv_c_bigendian=yes
22451
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22457
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22459
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22460
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22461
case $ac_cv_c_bigendian in
22464
cat >>confdefs.h <<\_ACEOF
22465
@%:@define WORDS_BIGENDIAN 1
22471
{ { echo "$as_me:$LINENO: error: unknown endianness
22472
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22473
echo "$as_me: error: unknown endianness
22474
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22475
{ (exit 1); exit 1; }; } ;;
22478
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22479
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22480
if test "${ac_cv_c_const+set}" = set; then
22481
echo $ECHO_N "(cached) $ECHO_C" >&6
22483
cat >conftest.$ac_ext <<_ACEOF
22486
cat confdefs.h >>conftest.$ac_ext
22487
cat >>conftest.$ac_ext <<_ACEOF
22488
/* end confdefs.h. */
22493
/* FIXME: Include the comments suggested by Paul. */
22494
#ifndef __cplusplus
22495
/* Ultrix mips cc rejects this. */
22496
typedef int charset[2];
22498
/* SunOS 4.1.1 cc rejects this. */
22499
char const *const *pcpcc;
22501
/* NEC SVR4.0.2 mips cc rejects this. */
22502
struct point {int x, y;};
22503
static struct point const zero = {0,0};
22504
/* AIX XL C 1.02.0.0 rejects this.
22505
It does not let you subtract one const X* pointer from another in
22506
an arm of an if-expression whose if-part is not a constant
22508
const char *g = "string";
22509
pcpcc = &g + (g ? g-g : 0);
22510
/* HPUX 7.0 cc rejects these. */
22512
ppc = (char**) pcpcc;
22513
pcpcc = (char const *const *) ppc;
22514
{ /* SCO 3.2v4 cc rejects this. */
22516
char const *s = 0 ? (char *) 0 : (char const *) 0;
22521
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22522
int x[] = {25, 17};
22523
const int *foo = &x[0];
22526
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22527
typedef const int *iptr;
22531
{ /* AIX XL C 1.02.0.0 rejects this saying
22532
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22533
struct s { int j; const int *ap[3]; };
22534
struct s *b; b->j = 5;
22536
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22537
const int foo = 10;
22538
if (!foo) return 0;
22540
return !cs[0] && !zero.x;
22547
rm -f conftest.$ac_objext
22548
if { (ac_try="$ac_compile"
22549
case "(($ac_try" in
22550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551
*) ac_try_echo=$ac_try;;
22553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22554
(eval "$ac_compile") 2>conftest.er1
22556
grep -v '^ *+' conftest.er1 >conftest.err
22558
cat conftest.err >&5
22559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560
(exit $ac_status); } && {
22561
test -z "$ac_c_werror_flag" ||
22562
test ! -s conftest.err
22563
} && test -s conftest.$ac_objext; then
22566
echo "$as_me: failed program was:" >&5
22567
sed 's/^/| /' conftest.$ac_ext >&5
22572
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22574
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22575
echo "${ECHO_T}$ac_cv_c_const" >&6; }
22576
if test $ac_cv_c_const = no; then
22578
cat >>confdefs.h <<\_ACEOF
22584
{ echo "$as_me:$LINENO: checking for inline" >&5
22585
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22586
if test "${ac_cv_c_inline+set}" = set; then
22587
echo $ECHO_N "(cached) $ECHO_C" >&6
22590
for ac_kw in inline __inline__ __inline; do
22591
cat >conftest.$ac_ext <<_ACEOF
22594
cat confdefs.h >>conftest.$ac_ext
22595
cat >>conftest.$ac_ext <<_ACEOF
22596
/* end confdefs.h. */
22597
#ifndef __cplusplus
22599
static $ac_kw foo_t static_foo () {return 0; }
22600
$ac_kw foo_t foo () {return 0; }
22604
rm -f conftest.$ac_objext
22605
if { (ac_try="$ac_compile"
22606
case "(($ac_try" in
22607
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22608
*) ac_try_echo=$ac_try;;
22610
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22611
(eval "$ac_compile") 2>conftest.er1
22613
grep -v '^ *+' conftest.er1 >conftest.err
22615
cat conftest.err >&5
22616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617
(exit $ac_status); } && {
22618
test -z "$ac_c_werror_flag" ||
22619
test ! -s conftest.err
22620
} && test -s conftest.$ac_objext; then
22621
ac_cv_c_inline=$ac_kw
22623
echo "$as_me: failed program was:" >&5
22624
sed 's/^/| /' conftest.$ac_ext >&5
22629
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22630
test "$ac_cv_c_inline" != no && break
22634
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22635
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22638
case $ac_cv_c_inline in
22641
case $ac_cv_c_inline in
22643
*) ac_val=$ac_cv_c_inline;;
22645
cat >>confdefs.h <<_ACEOF
22646
#ifndef __cplusplus
22647
#define inline $ac_val
22653
{ echo "$as_me:$LINENO: checking for size_t" >&5
22654
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22655
if test "${ac_cv_type_size_t+set}" = set; then
22656
echo $ECHO_N "(cached) $ECHO_C" >&6
22658
cat >conftest.$ac_ext <<_ACEOF
22661
cat confdefs.h >>conftest.$ac_ext
22662
cat >>conftest.$ac_ext <<_ACEOF
22663
/* end confdefs.h. */
22664
$ac_includes_default
22665
typedef size_t ac__type_new_;
22669
if ((ac__type_new_ *) 0)
22671
if (sizeof (ac__type_new_))
22677
rm -f conftest.$ac_objext
22678
if { (ac_try="$ac_compile"
22679
case "(($ac_try" in
22680
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681
*) ac_try_echo=$ac_try;;
22683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22684
(eval "$ac_compile") 2>conftest.er1
22686
grep -v '^ *+' conftest.er1 >conftest.err
22688
cat conftest.err >&5
22689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690
(exit $ac_status); } && {
22691
test -z "$ac_c_werror_flag" ||
22692
test ! -s conftest.err
22693
} && test -s conftest.$ac_objext; then
22694
ac_cv_type_size_t=yes
22696
echo "$as_me: failed program was:" >&5
22697
sed 's/^/| /' conftest.$ac_ext >&5
22699
ac_cv_type_size_t=no
22702
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22704
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22705
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22706
if test $ac_cv_type_size_t = yes; then
22710
cat >>confdefs.h <<_ACEOF
22711
@%:@define size_t unsigned int
22716
{ echo "$as_me:$LINENO: checking for short" >&5
22717
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
22718
if test "${ac_cv_type_short+set}" = set; then
22719
echo $ECHO_N "(cached) $ECHO_C" >&6
22721
cat >conftest.$ac_ext <<_ACEOF
22724
cat confdefs.h >>conftest.$ac_ext
22725
cat >>conftest.$ac_ext <<_ACEOF
22726
/* end confdefs.h. */
22727
$ac_includes_default
22728
typedef short ac__type_new_;
22732
if ((ac__type_new_ *) 0)
22734
if (sizeof (ac__type_new_))
22740
rm -f conftest.$ac_objext
22741
if { (ac_try="$ac_compile"
22742
case "(($ac_try" in
22743
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744
*) ac_try_echo=$ac_try;;
22746
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747
(eval "$ac_compile") 2>conftest.er1
22749
grep -v '^ *+' conftest.er1 >conftest.err
22751
cat conftest.err >&5
22752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753
(exit $ac_status); } && {
22754
test -z "$ac_c_werror_flag" ||
22755
test ! -s conftest.err
22756
} && test -s conftest.$ac_objext; then
22757
ac_cv_type_short=yes
22759
echo "$as_me: failed program was:" >&5
22760
sed 's/^/| /' conftest.$ac_ext >&5
22762
ac_cv_type_short=no
22765
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22767
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22768
echo "${ECHO_T}$ac_cv_type_short" >&6; }
22770
# The cast to long int works around a bug in the HP C Compiler
22771
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22772
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22773
# This bug is HP SR number 8606223364.
22774
{ echo "$as_me:$LINENO: checking size of short" >&5
22775
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
22776
if test "${ac_cv_sizeof_short+set}" = set; then
22777
echo $ECHO_N "(cached) $ECHO_C" >&6
22779
if test "$cross_compiling" = yes; then
22780
# Depending upon the size, compute the lo and hi bounds.
22781
cat >conftest.$ac_ext <<_ACEOF
22784
cat confdefs.h >>conftest.$ac_ext
22785
cat >>conftest.$ac_ext <<_ACEOF
22786
/* end confdefs.h. */
22787
$ac_includes_default
22788
typedef short ac__type_sizeof_;
22792
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
22793
test_array @<:@0@:>@ = 0
22799
rm -f conftest.$ac_objext
22800
if { (ac_try="$ac_compile"
22801
case "(($ac_try" in
22802
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803
*) ac_try_echo=$ac_try;;
22805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806
(eval "$ac_compile") 2>conftest.er1
22808
grep -v '^ *+' conftest.er1 >conftest.err
22810
cat conftest.err >&5
22811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812
(exit $ac_status); } && {
22813
test -z "$ac_c_werror_flag" ||
22814
test ! -s conftest.err
22815
} && test -s conftest.$ac_objext; then
22818
cat >conftest.$ac_ext <<_ACEOF
22821
cat confdefs.h >>conftest.$ac_ext
22822
cat >>conftest.$ac_ext <<_ACEOF
22823
/* end confdefs.h. */
22824
$ac_includes_default
22825
typedef short ac__type_sizeof_;
22829
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22830
test_array @<:@0@:>@ = 0
22836
rm -f conftest.$ac_objext
22837
if { (ac_try="$ac_compile"
22838
case "(($ac_try" in
22839
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22840
*) ac_try_echo=$ac_try;;
22842
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22843
(eval "$ac_compile") 2>conftest.er1
22845
grep -v '^ *+' conftest.er1 >conftest.err
22847
cat conftest.err >&5
22848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849
(exit $ac_status); } && {
22850
test -z "$ac_c_werror_flag" ||
22851
test ! -s conftest.err
22852
} && test -s conftest.$ac_objext; then
22853
ac_hi=$ac_mid; break
22855
echo "$as_me: failed program was:" >&5
22856
sed 's/^/| /' conftest.$ac_ext >&5
22858
ac_lo=`expr $ac_mid + 1`
22859
if test $ac_lo -le $ac_mid; then
22863
ac_mid=`expr 2 '*' $ac_mid + 1`
22866
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22869
echo "$as_me: failed program was:" >&5
22870
sed 's/^/| /' conftest.$ac_ext >&5
22872
cat >conftest.$ac_ext <<_ACEOF
22875
cat confdefs.h >>conftest.$ac_ext
22876
cat >>conftest.$ac_ext <<_ACEOF
22877
/* end confdefs.h. */
22878
$ac_includes_default
22879
typedef short ac__type_sizeof_;
22883
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
22884
test_array @<:@0@:>@ = 0
22890
rm -f conftest.$ac_objext
22891
if { (ac_try="$ac_compile"
22892
case "(($ac_try" in
22893
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22894
*) ac_try_echo=$ac_try;;
22896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22897
(eval "$ac_compile") 2>conftest.er1
22899
grep -v '^ *+' conftest.er1 >conftest.err
22901
cat conftest.err >&5
22902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903
(exit $ac_status); } && {
22904
test -z "$ac_c_werror_flag" ||
22905
test ! -s conftest.err
22906
} && test -s conftest.$ac_objext; then
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 short ac__type_sizeof_;
22920
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
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
22944
ac_lo=$ac_mid; break
22946
echo "$as_me: failed program was:" >&5
22947
sed 's/^/| /' conftest.$ac_ext >&5
22949
ac_hi=`expr '(' $ac_mid ')' - 1`
22950
if test $ac_mid -le $ac_hi; then
22954
ac_mid=`expr 2 '*' $ac_mid`
22957
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22960
echo "$as_me: failed program was:" >&5
22961
sed 's/^/| /' conftest.$ac_ext >&5
22966
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22969
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22970
# Binary search between lo and hi bounds.
22971
while test "x$ac_lo" != "x$ac_hi"; do
22972
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22973
cat >conftest.$ac_ext <<_ACEOF
22976
cat confdefs.h >>conftest.$ac_ext
22977
cat >>conftest.$ac_ext <<_ACEOF
22978
/* end confdefs.h. */
22979
$ac_includes_default
22980
typedef short ac__type_sizeof_;
22984
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22985
test_array @<:@0@:>@ = 0
22991
rm -f conftest.$ac_objext
22992
if { (ac_try="$ac_compile"
22993
case "(($ac_try" in
22994
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22995
*) ac_try_echo=$ac_try;;
22997
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22998
(eval "$ac_compile") 2>conftest.er1
23000
grep -v '^ *+' conftest.er1 >conftest.err
23002
cat conftest.err >&5
23003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004
(exit $ac_status); } && {
23005
test -z "$ac_c_werror_flag" ||
23006
test ! -s conftest.err
23007
} && test -s conftest.$ac_objext; then
23010
echo "$as_me: failed program was:" >&5
23011
sed 's/^/| /' conftest.$ac_ext >&5
23013
ac_lo=`expr '(' $ac_mid ')' + 1`
23016
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23019
?*) ac_cv_sizeof_short=$ac_lo;;
23020
'') if test "$ac_cv_type_short" = yes; then
23021
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
23022
See \`config.log' for more details." >&5
23023
echo "$as_me: error: cannot compute sizeof (short)
23024
See \`config.log' for more details." >&2;}
23025
{ (exit 77); exit 77; }; }
23027
ac_cv_sizeof_short=0
23031
cat >conftest.$ac_ext <<_ACEOF
23034
cat confdefs.h >>conftest.$ac_ext
23035
cat >>conftest.$ac_ext <<_ACEOF
23036
/* end confdefs.h. */
23037
$ac_includes_default
23038
typedef short ac__type_sizeof_;
23039
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23040
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23041
@%:@include <stdio.h>
23042
@%:@include <stdlib.h>
23047
FILE *f = fopen ("conftest.val", "w");
23050
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23052
long int i = longval ();
23053
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23055
fprintf (f, "%ld\n", i);
23059
unsigned long int i = ulongval ();
23060
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23062
fprintf (f, "%lu\n", i);
23064
return ferror (f) || fclose (f) != 0;
23070
rm -f conftest$ac_exeext
23071
if { (ac_try="$ac_link"
23072
case "(($ac_try" in
23073
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23074
*) ac_try_echo=$ac_try;;
23076
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23077
(eval "$ac_link") 2>&5
23079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23081
{ (case "(($ac_try" in
23082
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23083
*) ac_try_echo=$ac_try;;
23085
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23086
(eval "$ac_try") 2>&5
23088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089
(exit $ac_status); }; }; then
23090
ac_cv_sizeof_short=`cat conftest.val`
23092
echo "$as_me: program exited with status $ac_status" >&5
23093
echo "$as_me: failed program was:" >&5
23094
sed 's/^/| /' conftest.$ac_ext >&5
23096
( exit $ac_status )
23097
if test "$ac_cv_type_short" = yes; then
23098
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
23099
See \`config.log' for more details." >&5
23100
echo "$as_me: error: cannot compute sizeof (short)
23101
See \`config.log' for more details." >&2;}
23102
{ (exit 77); exit 77; }; }
23104
ac_cv_sizeof_short=0
23107
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23111
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
23112
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
23116
cat >>confdefs.h <<_ACEOF
23117
@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
23121
{ echo "$as_me:$LINENO: checking for unsigned short" >&5
23122
echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
23123
if test "${ac_cv_type_unsigned_short+set}" = set; then
23124
echo $ECHO_N "(cached) $ECHO_C" >&6
23126
cat >conftest.$ac_ext <<_ACEOF
23129
cat confdefs.h >>conftest.$ac_ext
23130
cat >>conftest.$ac_ext <<_ACEOF
23131
/* end confdefs.h. */
23132
$ac_includes_default
23133
typedef unsigned short ac__type_new_;
23137
if ((ac__type_new_ *) 0)
23139
if (sizeof (ac__type_new_))
23145
rm -f conftest.$ac_objext
23146
if { (ac_try="$ac_compile"
23147
case "(($ac_try" in
23148
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23149
*) ac_try_echo=$ac_try;;
23151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23152
(eval "$ac_compile") 2>conftest.er1
23154
grep -v '^ *+' conftest.er1 >conftest.err
23156
cat conftest.err >&5
23157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158
(exit $ac_status); } && {
23159
test -z "$ac_c_werror_flag" ||
23160
test ! -s conftest.err
23161
} && test -s conftest.$ac_objext; then
23162
ac_cv_type_unsigned_short=yes
23164
echo "$as_me: failed program was:" >&5
23165
sed 's/^/| /' conftest.$ac_ext >&5
23167
ac_cv_type_unsigned_short=no
23170
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23172
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
23173
echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
23175
# The cast to long int works around a bug in the HP C Compiler
23176
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23177
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23178
# This bug is HP SR number 8606223364.
23179
{ echo "$as_me:$LINENO: checking size of unsigned short" >&5
23180
echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
23181
if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
23182
echo $ECHO_N "(cached) $ECHO_C" >&6
23184
if test "$cross_compiling" = yes; then
23185
# Depending upon the size, compute the lo and hi bounds.
23186
cat >conftest.$ac_ext <<_ACEOF
23189
cat confdefs.h >>conftest.$ac_ext
23190
cat >>conftest.$ac_ext <<_ACEOF
23191
/* end confdefs.h. */
23192
$ac_includes_default
23193
typedef unsigned short ac__type_sizeof_;
23197
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
23198
test_array @<:@0@:>@ = 0
23204
rm -f conftest.$ac_objext
23205
if { (ac_try="$ac_compile"
23206
case "(($ac_try" in
23207
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23208
*) ac_try_echo=$ac_try;;
23210
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23211
(eval "$ac_compile") 2>conftest.er1
23213
grep -v '^ *+' conftest.er1 >conftest.err
23215
cat conftest.err >&5
23216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217
(exit $ac_status); } && {
23218
test -z "$ac_c_werror_flag" ||
23219
test ! -s conftest.err
23220
} && test -s conftest.$ac_objext; then
23223
cat >conftest.$ac_ext <<_ACEOF
23226
cat confdefs.h >>conftest.$ac_ext
23227
cat >>conftest.$ac_ext <<_ACEOF
23228
/* end confdefs.h. */
23229
$ac_includes_default
23230
typedef unsigned short ac__type_sizeof_;
23234
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23235
test_array @<:@0@:>@ = 0
23241
rm -f conftest.$ac_objext
23242
if { (ac_try="$ac_compile"
23243
case "(($ac_try" in
23244
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23245
*) ac_try_echo=$ac_try;;
23247
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23248
(eval "$ac_compile") 2>conftest.er1
23250
grep -v '^ *+' conftest.er1 >conftest.err
23252
cat conftest.err >&5
23253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254
(exit $ac_status); } && {
23255
test -z "$ac_c_werror_flag" ||
23256
test ! -s conftest.err
23257
} && test -s conftest.$ac_objext; then
23258
ac_hi=$ac_mid; break
23260
echo "$as_me: failed program was:" >&5
23261
sed 's/^/| /' conftest.$ac_ext >&5
23263
ac_lo=`expr $ac_mid + 1`
23264
if test $ac_lo -le $ac_mid; then
23268
ac_mid=`expr 2 '*' $ac_mid + 1`
23271
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23274
echo "$as_me: failed program was:" >&5
23275
sed 's/^/| /' conftest.$ac_ext >&5
23277
cat >conftest.$ac_ext <<_ACEOF
23280
cat confdefs.h >>conftest.$ac_ext
23281
cat >>conftest.$ac_ext <<_ACEOF
23282
/* end confdefs.h. */
23283
$ac_includes_default
23284
typedef unsigned short ac__type_sizeof_;
23288
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
23289
test_array @<:@0@:>@ = 0
23295
rm -f conftest.$ac_objext
23296
if { (ac_try="$ac_compile"
23297
case "(($ac_try" in
23298
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23299
*) ac_try_echo=$ac_try;;
23301
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302
(eval "$ac_compile") 2>conftest.er1
23304
grep -v '^ *+' conftest.er1 >conftest.err
23306
cat conftest.err >&5
23307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308
(exit $ac_status); } && {
23309
test -z "$ac_c_werror_flag" ||
23310
test ! -s conftest.err
23311
} && test -s conftest.$ac_objext; then
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 unsigned short ac__type_sizeof_;
23325
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
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
23349
ac_lo=$ac_mid; break
23351
echo "$as_me: failed program was:" >&5
23352
sed 's/^/| /' conftest.$ac_ext >&5
23354
ac_hi=`expr '(' $ac_mid ')' - 1`
23355
if test $ac_mid -le $ac_hi; then
23359
ac_mid=`expr 2 '*' $ac_mid`
23362
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23365
echo "$as_me: failed program was:" >&5
23366
sed 's/^/| /' conftest.$ac_ext >&5
23371
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23374
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23375
# Binary search between lo and hi bounds.
23376
while test "x$ac_lo" != "x$ac_hi"; do
23377
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23378
cat >conftest.$ac_ext <<_ACEOF
23381
cat confdefs.h >>conftest.$ac_ext
23382
cat >>conftest.$ac_ext <<_ACEOF
23383
/* end confdefs.h. */
23384
$ac_includes_default
23385
typedef unsigned short ac__type_sizeof_;
23389
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23390
test_array @<:@0@:>@ = 0
23396
rm -f conftest.$ac_objext
23397
if { (ac_try="$ac_compile"
23398
case "(($ac_try" in
23399
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23400
*) ac_try_echo=$ac_try;;
23402
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23403
(eval "$ac_compile") 2>conftest.er1
23405
grep -v '^ *+' conftest.er1 >conftest.err
23407
cat conftest.err >&5
23408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409
(exit $ac_status); } && {
23410
test -z "$ac_c_werror_flag" ||
23411
test ! -s conftest.err
23412
} && test -s conftest.$ac_objext; then
23415
echo "$as_me: failed program was:" >&5
23416
sed 's/^/| /' conftest.$ac_ext >&5
23418
ac_lo=`expr '(' $ac_mid ')' + 1`
23421
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23424
?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
23425
'') if test "$ac_cv_type_unsigned_short" = yes; then
23426
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
23427
See \`config.log' for more details." >&5
23428
echo "$as_me: error: cannot compute sizeof (unsigned short)
23429
See \`config.log' for more details." >&2;}
23430
{ (exit 77); exit 77; }; }
23432
ac_cv_sizeof_unsigned_short=0
23436
cat >conftest.$ac_ext <<_ACEOF
23439
cat confdefs.h >>conftest.$ac_ext
23440
cat >>conftest.$ac_ext <<_ACEOF
23441
/* end confdefs.h. */
23442
$ac_includes_default
23443
typedef unsigned short ac__type_sizeof_;
23444
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23445
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23446
@%:@include <stdio.h>
23447
@%:@include <stdlib.h>
23452
FILE *f = fopen ("conftest.val", "w");
23455
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23457
long int i = longval ();
23458
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23460
fprintf (f, "%ld\n", i);
23464
unsigned long int i = ulongval ();
23465
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23467
fprintf (f, "%lu\n", i);
23469
return ferror (f) || fclose (f) != 0;
23475
rm -f conftest$ac_exeext
23476
if { (ac_try="$ac_link"
23477
case "(($ac_try" in
23478
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23479
*) ac_try_echo=$ac_try;;
23481
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23482
(eval "$ac_link") 2>&5
23484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23486
{ (case "(($ac_try" in
23487
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488
*) ac_try_echo=$ac_try;;
23490
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23491
(eval "$ac_try") 2>&5
23493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494
(exit $ac_status); }; }; then
23495
ac_cv_sizeof_unsigned_short=`cat conftest.val`
23497
echo "$as_me: program exited with status $ac_status" >&5
23498
echo "$as_me: failed program was:" >&5
23499
sed 's/^/| /' conftest.$ac_ext >&5
23501
( exit $ac_status )
23502
if test "$ac_cv_type_unsigned_short" = yes; then
23503
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
23504
See \`config.log' for more details." >&5
23505
echo "$as_me: error: cannot compute sizeof (unsigned short)
23506
See \`config.log' for more details." >&2;}
23507
{ (exit 77); exit 77; }; }
23509
ac_cv_sizeof_unsigned_short=0
23512
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23516
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
23517
echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
23521
cat >>confdefs.h <<_ACEOF
23522
@%:@define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23526
{ echo "$as_me:$LINENO: checking for int" >&5
23527
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
23528
if test "${ac_cv_type_int+set}" = set; then
23529
echo $ECHO_N "(cached) $ECHO_C" >&6
23531
cat >conftest.$ac_ext <<_ACEOF
23534
cat confdefs.h >>conftest.$ac_ext
23535
cat >>conftest.$ac_ext <<_ACEOF
23536
/* end confdefs.h. */
23537
$ac_includes_default
23538
typedef int ac__type_new_;
23542
if ((ac__type_new_ *) 0)
23544
if (sizeof (ac__type_new_))
23550
rm -f conftest.$ac_objext
23551
if { (ac_try="$ac_compile"
23552
case "(($ac_try" in
23553
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23554
*) ac_try_echo=$ac_try;;
23556
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23557
(eval "$ac_compile") 2>conftest.er1
23559
grep -v '^ *+' conftest.er1 >conftest.err
23561
cat conftest.err >&5
23562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563
(exit $ac_status); } && {
23564
test -z "$ac_c_werror_flag" ||
23565
test ! -s conftest.err
23566
} && test -s conftest.$ac_objext; then
23569
echo "$as_me: failed program was:" >&5
23570
sed 's/^/| /' conftest.$ac_ext >&5
23575
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23577
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23578
echo "${ECHO_T}$ac_cv_type_int" >&6; }
23580
# The cast to long int works around a bug in the HP C Compiler
23581
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23582
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23583
# This bug is HP SR number 8606223364.
23584
{ echo "$as_me:$LINENO: checking size of int" >&5
23585
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
23586
if test "${ac_cv_sizeof_int+set}" = set; then
23587
echo $ECHO_N "(cached) $ECHO_C" >&6
23589
if test "$cross_compiling" = yes; then
23590
# Depending upon the size, compute the lo and hi bounds.
23591
cat >conftest.$ac_ext <<_ACEOF
23594
cat confdefs.h >>conftest.$ac_ext
23595
cat >>conftest.$ac_ext <<_ACEOF
23596
/* end confdefs.h. */
23597
$ac_includes_default
23598
typedef int ac__type_sizeof_;
23602
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
23603
test_array @<:@0@:>@ = 0
23609
rm -f conftest.$ac_objext
23610
if { (ac_try="$ac_compile"
23611
case "(($ac_try" in
23612
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23613
*) ac_try_echo=$ac_try;;
23615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23616
(eval "$ac_compile") 2>conftest.er1
23618
grep -v '^ *+' conftest.er1 >conftest.err
23620
cat conftest.err >&5
23621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622
(exit $ac_status); } && {
23623
test -z "$ac_c_werror_flag" ||
23624
test ! -s conftest.err
23625
} && test -s conftest.$ac_objext; then
23628
cat >conftest.$ac_ext <<_ACEOF
23631
cat confdefs.h >>conftest.$ac_ext
23632
cat >>conftest.$ac_ext <<_ACEOF
23633
/* end confdefs.h. */
23634
$ac_includes_default
23635
typedef int ac__type_sizeof_;
23639
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23640
test_array @<:@0@:>@ = 0
23646
rm -f conftest.$ac_objext
23647
if { (ac_try="$ac_compile"
23648
case "(($ac_try" in
23649
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650
*) ac_try_echo=$ac_try;;
23652
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23653
(eval "$ac_compile") 2>conftest.er1
23655
grep -v '^ *+' conftest.er1 >conftest.err
23657
cat conftest.err >&5
23658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659
(exit $ac_status); } && {
23660
test -z "$ac_c_werror_flag" ||
23661
test ! -s conftest.err
23662
} && test -s conftest.$ac_objext; then
23663
ac_hi=$ac_mid; break
23665
echo "$as_me: failed program was:" >&5
23666
sed 's/^/| /' conftest.$ac_ext >&5
23668
ac_lo=`expr $ac_mid + 1`
23669
if test $ac_lo -le $ac_mid; then
23673
ac_mid=`expr 2 '*' $ac_mid + 1`
23676
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23679
echo "$as_me: failed program was:" >&5
23680
sed 's/^/| /' conftest.$ac_ext >&5
23682
cat >conftest.$ac_ext <<_ACEOF
23685
cat confdefs.h >>conftest.$ac_ext
23686
cat >>conftest.$ac_ext <<_ACEOF
23687
/* end confdefs.h. */
23688
$ac_includes_default
23689
typedef int ac__type_sizeof_;
23693
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
23694
test_array @<:@0@:>@ = 0
23700
rm -f conftest.$ac_objext
23701
if { (ac_try="$ac_compile"
23702
case "(($ac_try" in
23703
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23704
*) ac_try_echo=$ac_try;;
23706
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23707
(eval "$ac_compile") 2>conftest.er1
23709
grep -v '^ *+' conftest.er1 >conftest.err
23711
cat conftest.err >&5
23712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713
(exit $ac_status); } && {
23714
test -z "$ac_c_werror_flag" ||
23715
test ! -s conftest.err
23716
} && test -s conftest.$ac_objext; then
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 int ac__type_sizeof_;
23730
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
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
23754
ac_lo=$ac_mid; break
23756
echo "$as_me: failed program was:" >&5
23757
sed 's/^/| /' conftest.$ac_ext >&5
23759
ac_hi=`expr '(' $ac_mid ')' - 1`
23760
if test $ac_mid -le $ac_hi; then
23764
ac_mid=`expr 2 '*' $ac_mid`
23767
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23770
echo "$as_me: failed program was:" >&5
23771
sed 's/^/| /' conftest.$ac_ext >&5
23776
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23779
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23780
# Binary search between lo and hi bounds.
23781
while test "x$ac_lo" != "x$ac_hi"; do
23782
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23783
cat >conftest.$ac_ext <<_ACEOF
23786
cat confdefs.h >>conftest.$ac_ext
23787
cat >>conftest.$ac_ext <<_ACEOF
23788
/* end confdefs.h. */
23789
$ac_includes_default
23790
typedef int ac__type_sizeof_;
23794
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23795
test_array @<:@0@:>@ = 0
23801
rm -f conftest.$ac_objext
23802
if { (ac_try="$ac_compile"
23803
case "(($ac_try" in
23804
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805
*) ac_try_echo=$ac_try;;
23807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808
(eval "$ac_compile") 2>conftest.er1
23810
grep -v '^ *+' conftest.er1 >conftest.err
23812
cat conftest.err >&5
23813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814
(exit $ac_status); } && {
23815
test -z "$ac_c_werror_flag" ||
23816
test ! -s conftest.err
23817
} && test -s conftest.$ac_objext; then
23820
echo "$as_me: failed program was:" >&5
23821
sed 's/^/| /' conftest.$ac_ext >&5
23823
ac_lo=`expr '(' $ac_mid ')' + 1`
23826
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23829
?*) ac_cv_sizeof_int=$ac_lo;;
23830
'') if test "$ac_cv_type_int" = yes; then
23831
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23832
See \`config.log' for more details." >&5
23833
echo "$as_me: error: cannot compute sizeof (int)
23834
See \`config.log' for more details." >&2;}
23835
{ (exit 77); exit 77; }; }
23841
cat >conftest.$ac_ext <<_ACEOF
23844
cat confdefs.h >>conftest.$ac_ext
23845
cat >>conftest.$ac_ext <<_ACEOF
23846
/* end confdefs.h. */
23847
$ac_includes_default
23848
typedef int ac__type_sizeof_;
23849
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23850
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23851
@%:@include <stdio.h>
23852
@%:@include <stdlib.h>
23857
FILE *f = fopen ("conftest.val", "w");
23860
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23862
long int i = longval ();
23863
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23865
fprintf (f, "%ld\n", i);
23869
unsigned long int i = ulongval ();
23870
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23872
fprintf (f, "%lu\n", i);
23874
return ferror (f) || fclose (f) != 0;
23880
rm -f conftest$ac_exeext
23881
if { (ac_try="$ac_link"
23882
case "(($ac_try" in
23883
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23884
*) ac_try_echo=$ac_try;;
23886
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23887
(eval "$ac_link") 2>&5
23889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23891
{ (case "(($ac_try" in
23892
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23893
*) ac_try_echo=$ac_try;;
23895
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23896
(eval "$ac_try") 2>&5
23898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899
(exit $ac_status); }; }; then
23900
ac_cv_sizeof_int=`cat conftest.val`
23902
echo "$as_me: program exited with status $ac_status" >&5
23903
echo "$as_me: failed program was:" >&5
23904
sed 's/^/| /' conftest.$ac_ext >&5
23906
( exit $ac_status )
23907
if test "$ac_cv_type_int" = yes; then
23908
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23909
See \`config.log' for more details." >&5
23910
echo "$as_me: error: cannot compute sizeof (int)
23911
See \`config.log' for more details." >&2;}
23912
{ (exit 77); exit 77; }; }
23917
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23921
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23922
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
23926
cat >>confdefs.h <<_ACEOF
23927
@%:@define SIZEOF_INT $ac_cv_sizeof_int
23931
{ echo "$as_me:$LINENO: checking for unsigned int" >&5
23932
echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
23933
if test "${ac_cv_type_unsigned_int+set}" = set; then
23934
echo $ECHO_N "(cached) $ECHO_C" >&6
23936
cat >conftest.$ac_ext <<_ACEOF
23939
cat confdefs.h >>conftest.$ac_ext
23940
cat >>conftest.$ac_ext <<_ACEOF
23941
/* end confdefs.h. */
23942
$ac_includes_default
23943
typedef unsigned int ac__type_new_;
23947
if ((ac__type_new_ *) 0)
23949
if (sizeof (ac__type_new_))
23955
rm -f conftest.$ac_objext
23956
if { (ac_try="$ac_compile"
23957
case "(($ac_try" in
23958
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23959
*) ac_try_echo=$ac_try;;
23961
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23962
(eval "$ac_compile") 2>conftest.er1
23964
grep -v '^ *+' conftest.er1 >conftest.err
23966
cat conftest.err >&5
23967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968
(exit $ac_status); } && {
23969
test -z "$ac_c_werror_flag" ||
23970
test ! -s conftest.err
23971
} && test -s conftest.$ac_objext; then
23972
ac_cv_type_unsigned_int=yes
23974
echo "$as_me: failed program was:" >&5
23975
sed 's/^/| /' conftest.$ac_ext >&5
23977
ac_cv_type_unsigned_int=no
23980
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23982
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
23983
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
23985
# The cast to long int works around a bug in the HP C Compiler
23986
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23987
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23988
# This bug is HP SR number 8606223364.
23989
{ echo "$as_me:$LINENO: checking size of unsigned int" >&5
23990
echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
23991
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
23992
echo $ECHO_N "(cached) $ECHO_C" >&6
23994
if test "$cross_compiling" = yes; then
23995
# Depending upon the size, compute the lo and hi bounds.
23996
cat >conftest.$ac_ext <<_ACEOF
23999
cat confdefs.h >>conftest.$ac_ext
24000
cat >>conftest.$ac_ext <<_ACEOF
24001
/* end confdefs.h. */
24002
$ac_includes_default
24003
typedef unsigned int ac__type_sizeof_;
24007
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24008
test_array @<:@0@:>@ = 0
24014
rm -f conftest.$ac_objext
24015
if { (ac_try="$ac_compile"
24016
case "(($ac_try" in
24017
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24018
*) ac_try_echo=$ac_try;;
24020
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24021
(eval "$ac_compile") 2>conftest.er1
24023
grep -v '^ *+' conftest.er1 >conftest.err
24025
cat conftest.err >&5
24026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027
(exit $ac_status); } && {
24028
test -z "$ac_c_werror_flag" ||
24029
test ! -s conftest.err
24030
} && test -s conftest.$ac_objext; then
24033
cat >conftest.$ac_ext <<_ACEOF
24036
cat confdefs.h >>conftest.$ac_ext
24037
cat >>conftest.$ac_ext <<_ACEOF
24038
/* end confdefs.h. */
24039
$ac_includes_default
24040
typedef unsigned int ac__type_sizeof_;
24044
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24045
test_array @<:@0@:>@ = 0
24051
rm -f conftest.$ac_objext
24052
if { (ac_try="$ac_compile"
24053
case "(($ac_try" in
24054
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24055
*) ac_try_echo=$ac_try;;
24057
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24058
(eval "$ac_compile") 2>conftest.er1
24060
grep -v '^ *+' conftest.er1 >conftest.err
24062
cat conftest.err >&5
24063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064
(exit $ac_status); } && {
24065
test -z "$ac_c_werror_flag" ||
24066
test ! -s conftest.err
24067
} && test -s conftest.$ac_objext; then
24068
ac_hi=$ac_mid; break
24070
echo "$as_me: failed program was:" >&5
24071
sed 's/^/| /' conftest.$ac_ext >&5
24073
ac_lo=`expr $ac_mid + 1`
24074
if test $ac_lo -le $ac_mid; then
24078
ac_mid=`expr 2 '*' $ac_mid + 1`
24081
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24084
echo "$as_me: failed program was:" >&5
24085
sed 's/^/| /' conftest.$ac_ext >&5
24087
cat >conftest.$ac_ext <<_ACEOF
24090
cat confdefs.h >>conftest.$ac_ext
24091
cat >>conftest.$ac_ext <<_ACEOF
24092
/* end confdefs.h. */
24093
$ac_includes_default
24094
typedef unsigned int ac__type_sizeof_;
24098
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24099
test_array @<:@0@:>@ = 0
24105
rm -f conftest.$ac_objext
24106
if { (ac_try="$ac_compile"
24107
case "(($ac_try" in
24108
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24109
*) ac_try_echo=$ac_try;;
24111
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24112
(eval "$ac_compile") 2>conftest.er1
24114
grep -v '^ *+' conftest.er1 >conftest.err
24116
cat conftest.err >&5
24117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118
(exit $ac_status); } && {
24119
test -z "$ac_c_werror_flag" ||
24120
test ! -s conftest.err
24121
} && test -s conftest.$ac_objext; then
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 unsigned int ac__type_sizeof_;
24135
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
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
24159
ac_lo=$ac_mid; break
24161
echo "$as_me: failed program was:" >&5
24162
sed 's/^/| /' conftest.$ac_ext >&5
24164
ac_hi=`expr '(' $ac_mid ')' - 1`
24165
if test $ac_mid -le $ac_hi; then
24169
ac_mid=`expr 2 '*' $ac_mid`
24172
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24175
echo "$as_me: failed program was:" >&5
24176
sed 's/^/| /' conftest.$ac_ext >&5
24181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24185
# Binary search between lo and hi bounds.
24186
while test "x$ac_lo" != "x$ac_hi"; do
24187
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24188
cat >conftest.$ac_ext <<_ACEOF
24191
cat confdefs.h >>conftest.$ac_ext
24192
cat >>conftest.$ac_ext <<_ACEOF
24193
/* end confdefs.h. */
24194
$ac_includes_default
24195
typedef unsigned int ac__type_sizeof_;
24199
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24200
test_array @<:@0@:>@ = 0
24206
rm -f conftest.$ac_objext
24207
if { (ac_try="$ac_compile"
24208
case "(($ac_try" in
24209
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24210
*) ac_try_echo=$ac_try;;
24212
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24213
(eval "$ac_compile") 2>conftest.er1
24215
grep -v '^ *+' conftest.er1 >conftest.err
24217
cat conftest.err >&5
24218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219
(exit $ac_status); } && {
24220
test -z "$ac_c_werror_flag" ||
24221
test ! -s conftest.err
24222
} && test -s conftest.$ac_objext; then
24225
echo "$as_me: failed program was:" >&5
24226
sed 's/^/| /' conftest.$ac_ext >&5
24228
ac_lo=`expr '(' $ac_mid ')' + 1`
24231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24234
?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
24235
'') if test "$ac_cv_type_unsigned_int" = yes; then
24236
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
24237
See \`config.log' for more details." >&5
24238
echo "$as_me: error: cannot compute sizeof (unsigned int)
24239
See \`config.log' for more details." >&2;}
24240
{ (exit 77); exit 77; }; }
24242
ac_cv_sizeof_unsigned_int=0
24246
cat >conftest.$ac_ext <<_ACEOF
24249
cat confdefs.h >>conftest.$ac_ext
24250
cat >>conftest.$ac_ext <<_ACEOF
24251
/* end confdefs.h. */
24252
$ac_includes_default
24253
typedef unsigned int ac__type_sizeof_;
24254
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24255
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24256
@%:@include <stdio.h>
24257
@%:@include <stdlib.h>
24262
FILE *f = fopen ("conftest.val", "w");
24265
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24267
long int i = longval ();
24268
if (i != ((long int) (sizeof (ac__type_sizeof_))))
24270
fprintf (f, "%ld\n", i);
24274
unsigned long int i = ulongval ();
24275
if (i != ((long int) (sizeof (ac__type_sizeof_))))
24277
fprintf (f, "%lu\n", i);
24279
return ferror (f) || fclose (f) != 0;
24285
rm -f conftest$ac_exeext
24286
if { (ac_try="$ac_link"
24287
case "(($ac_try" in
24288
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24289
*) ac_try_echo=$ac_try;;
24291
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24292
(eval "$ac_link") 2>&5
24294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24296
{ (case "(($ac_try" in
24297
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24298
*) ac_try_echo=$ac_try;;
24300
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24301
(eval "$ac_try") 2>&5
24303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304
(exit $ac_status); }; }; then
24305
ac_cv_sizeof_unsigned_int=`cat conftest.val`
24307
echo "$as_me: program exited with status $ac_status" >&5
24308
echo "$as_me: failed program was:" >&5
24309
sed 's/^/| /' conftest.$ac_ext >&5
24311
( exit $ac_status )
24312
if test "$ac_cv_type_unsigned_int" = yes; then
24313
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
24314
See \`config.log' for more details." >&5
24315
echo "$as_me: error: cannot compute sizeof (unsigned int)
24316
See \`config.log' for more details." >&2;}
24317
{ (exit 77); exit 77; }; }
24319
ac_cv_sizeof_unsigned_int=0
24322
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24326
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
24327
echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
24331
cat >>confdefs.h <<_ACEOF
24332
@%:@define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24336
{ echo "$as_me:$LINENO: checking for long" >&5
24337
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
24338
if test "${ac_cv_type_long+set}" = set; then
24339
echo $ECHO_N "(cached) $ECHO_C" >&6
24341
cat >conftest.$ac_ext <<_ACEOF
24344
cat confdefs.h >>conftest.$ac_ext
24345
cat >>conftest.$ac_ext <<_ACEOF
24346
/* end confdefs.h. */
24347
$ac_includes_default
24348
typedef long ac__type_new_;
24352
if ((ac__type_new_ *) 0)
24354
if (sizeof (ac__type_new_))
24360
rm -f conftest.$ac_objext
24361
if { (ac_try="$ac_compile"
24362
case "(($ac_try" in
24363
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24364
*) ac_try_echo=$ac_try;;
24366
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24367
(eval "$ac_compile") 2>conftest.er1
24369
grep -v '^ *+' conftest.er1 >conftest.err
24371
cat conftest.err >&5
24372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373
(exit $ac_status); } && {
24374
test -z "$ac_c_werror_flag" ||
24375
test ! -s conftest.err
24376
} && test -s conftest.$ac_objext; then
24377
ac_cv_type_long=yes
24379
echo "$as_me: failed program was:" >&5
24380
sed 's/^/| /' conftest.$ac_ext >&5
24385
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24387
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
24388
echo "${ECHO_T}$ac_cv_type_long" >&6; }
24390
# The cast to long int works around a bug in the HP C Compiler
24391
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24392
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24393
# This bug is HP SR number 8606223364.
24394
{ echo "$as_me:$LINENO: checking size of long" >&5
24395
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
24396
if test "${ac_cv_sizeof_long+set}" = set; then
24397
echo $ECHO_N "(cached) $ECHO_C" >&6
24399
if test "$cross_compiling" = yes; then
24400
# Depending upon the size, compute the lo and hi bounds.
24401
cat >conftest.$ac_ext <<_ACEOF
24404
cat confdefs.h >>conftest.$ac_ext
24405
cat >>conftest.$ac_ext <<_ACEOF
24406
/* end confdefs.h. */
24407
$ac_includes_default
24408
typedef long ac__type_sizeof_;
24412
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24413
test_array @<:@0@:>@ = 0
24419
rm -f conftest.$ac_objext
24420
if { (ac_try="$ac_compile"
24421
case "(($ac_try" in
24422
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423
*) ac_try_echo=$ac_try;;
24425
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24426
(eval "$ac_compile") 2>conftest.er1
24428
grep -v '^ *+' conftest.er1 >conftest.err
24430
cat conftest.err >&5
24431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432
(exit $ac_status); } && {
24433
test -z "$ac_c_werror_flag" ||
24434
test ! -s conftest.err
24435
} && test -s conftest.$ac_objext; then
24438
cat >conftest.$ac_ext <<_ACEOF
24441
cat confdefs.h >>conftest.$ac_ext
24442
cat >>conftest.$ac_ext <<_ACEOF
24443
/* end confdefs.h. */
24444
$ac_includes_default
24445
typedef long ac__type_sizeof_;
24449
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24450
test_array @<:@0@:>@ = 0
24456
rm -f conftest.$ac_objext
24457
if { (ac_try="$ac_compile"
24458
case "(($ac_try" in
24459
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24460
*) ac_try_echo=$ac_try;;
24462
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24463
(eval "$ac_compile") 2>conftest.er1
24465
grep -v '^ *+' conftest.er1 >conftest.err
24467
cat conftest.err >&5
24468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469
(exit $ac_status); } && {
24470
test -z "$ac_c_werror_flag" ||
24471
test ! -s conftest.err
24472
} && test -s conftest.$ac_objext; then
24473
ac_hi=$ac_mid; break
24475
echo "$as_me: failed program was:" >&5
24476
sed 's/^/| /' conftest.$ac_ext >&5
24478
ac_lo=`expr $ac_mid + 1`
24479
if test $ac_lo -le $ac_mid; then
24483
ac_mid=`expr 2 '*' $ac_mid + 1`
24486
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24489
echo "$as_me: failed program was:" >&5
24490
sed 's/^/| /' conftest.$ac_ext >&5
24492
cat >conftest.$ac_ext <<_ACEOF
24495
cat confdefs.h >>conftest.$ac_ext
24496
cat >>conftest.$ac_ext <<_ACEOF
24497
/* end confdefs.h. */
24498
$ac_includes_default
24499
typedef long ac__type_sizeof_;
24503
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24504
test_array @<:@0@:>@ = 0
24510
rm -f conftest.$ac_objext
24511
if { (ac_try="$ac_compile"
24512
case "(($ac_try" in
24513
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24514
*) ac_try_echo=$ac_try;;
24516
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24517
(eval "$ac_compile") 2>conftest.er1
24519
grep -v '^ *+' conftest.er1 >conftest.err
24521
cat conftest.err >&5
24522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523
(exit $ac_status); } && {
24524
test -z "$ac_c_werror_flag" ||
24525
test ! -s conftest.err
24526
} && test -s conftest.$ac_objext; then
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 long ac__type_sizeof_;
24540
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
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
24564
ac_lo=$ac_mid; break
24566
echo "$as_me: failed program was:" >&5
24567
sed 's/^/| /' conftest.$ac_ext >&5
24569
ac_hi=`expr '(' $ac_mid ')' - 1`
24570
if test $ac_mid -le $ac_hi; then
24574
ac_mid=`expr 2 '*' $ac_mid`
24577
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24580
echo "$as_me: failed program was:" >&5
24581
sed 's/^/| /' conftest.$ac_ext >&5
24586
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24590
# Binary search between lo and hi bounds.
24591
while test "x$ac_lo" != "x$ac_hi"; do
24592
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24593
cat >conftest.$ac_ext <<_ACEOF
24596
cat confdefs.h >>conftest.$ac_ext
24597
cat >>conftest.$ac_ext <<_ACEOF
24598
/* end confdefs.h. */
24599
$ac_includes_default
24600
typedef long ac__type_sizeof_;
24604
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24605
test_array @<:@0@:>@ = 0
24611
rm -f conftest.$ac_objext
24612
if { (ac_try="$ac_compile"
24613
case "(($ac_try" in
24614
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24615
*) ac_try_echo=$ac_try;;
24617
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24618
(eval "$ac_compile") 2>conftest.er1
24620
grep -v '^ *+' conftest.er1 >conftest.err
24622
cat conftest.err >&5
24623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624
(exit $ac_status); } && {
24625
test -z "$ac_c_werror_flag" ||
24626
test ! -s conftest.err
24627
} && test -s conftest.$ac_objext; then
24630
echo "$as_me: failed program was:" >&5
24631
sed 's/^/| /' conftest.$ac_ext >&5
24633
ac_lo=`expr '(' $ac_mid ')' + 1`
24636
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24639
?*) ac_cv_sizeof_long=$ac_lo;;
24640
'') if test "$ac_cv_type_long" = yes; then
24641
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24642
See \`config.log' for more details." >&5
24643
echo "$as_me: error: cannot compute sizeof (long)
24644
See \`config.log' for more details." >&2;}
24645
{ (exit 77); exit 77; }; }
24647
ac_cv_sizeof_long=0
24651
cat >conftest.$ac_ext <<_ACEOF
24654
cat confdefs.h >>conftest.$ac_ext
24655
cat >>conftest.$ac_ext <<_ACEOF
24656
/* end confdefs.h. */
24657
$ac_includes_default
24658
typedef long ac__type_sizeof_;
24659
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24660
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24661
@%:@include <stdio.h>
24662
@%:@include <stdlib.h>
24667
FILE *f = fopen ("conftest.val", "w");
24670
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24672
long int i = longval ();
24673
if (i != ((long int) (sizeof (ac__type_sizeof_))))
24675
fprintf (f, "%ld\n", i);
24679
unsigned long int i = ulongval ();
24680
if (i != ((long int) (sizeof (ac__type_sizeof_))))
24682
fprintf (f, "%lu\n", i);
24684
return ferror (f) || fclose (f) != 0;
24690
rm -f conftest$ac_exeext
24691
if { (ac_try="$ac_link"
24692
case "(($ac_try" in
24693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24694
*) ac_try_echo=$ac_try;;
24696
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24697
(eval "$ac_link") 2>&5
24699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24700
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24701
{ (case "(($ac_try" in
24702
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703
*) ac_try_echo=$ac_try;;
24705
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24706
(eval "$ac_try") 2>&5
24708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709
(exit $ac_status); }; }; then
24710
ac_cv_sizeof_long=`cat conftest.val`
24712
echo "$as_me: program exited with status $ac_status" >&5
24713
echo "$as_me: failed program was:" >&5
24714
sed 's/^/| /' conftest.$ac_ext >&5
24716
( exit $ac_status )
24717
if test "$ac_cv_type_long" = yes; then
24718
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24719
See \`config.log' for more details." >&5
24720
echo "$as_me: error: cannot compute sizeof (long)
24721
See \`config.log' for more details." >&2;}
24722
{ (exit 77); exit 77; }; }
24724
ac_cv_sizeof_long=0
24727
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24731
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
24732
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
24736
cat >>confdefs.h <<_ACEOF
24737
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
24741
{ echo "$as_me:$LINENO: checking for unsigned long" >&5
24742
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
24743
if test "${ac_cv_type_unsigned_long+set}" = set; then
24744
echo $ECHO_N "(cached) $ECHO_C" >&6
24746
cat >conftest.$ac_ext <<_ACEOF
24749
cat confdefs.h >>conftest.$ac_ext
24750
cat >>conftest.$ac_ext <<_ACEOF
24751
/* end confdefs.h. */
24752
$ac_includes_default
24753
typedef unsigned long ac__type_new_;
24757
if ((ac__type_new_ *) 0)
24759
if (sizeof (ac__type_new_))
24765
rm -f conftest.$ac_objext
24766
if { (ac_try="$ac_compile"
24767
case "(($ac_try" in
24768
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24769
*) ac_try_echo=$ac_try;;
24771
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24772
(eval "$ac_compile") 2>conftest.er1
24774
grep -v '^ *+' conftest.er1 >conftest.err
24776
cat conftest.err >&5
24777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778
(exit $ac_status); } && {
24779
test -z "$ac_c_werror_flag" ||
24780
test ! -s conftest.err
24781
} && test -s conftest.$ac_objext; then
24782
ac_cv_type_unsigned_long=yes
24784
echo "$as_me: failed program was:" >&5
24785
sed 's/^/| /' conftest.$ac_ext >&5
24787
ac_cv_type_unsigned_long=no
24790
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24792
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
24793
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
24795
# The cast to long int works around a bug in the HP C Compiler
24796
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24797
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24798
# This bug is HP SR number 8606223364.
24799
{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
24800
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
24801
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
24802
echo $ECHO_N "(cached) $ECHO_C" >&6
24804
if test "$cross_compiling" = yes; then
24805
# Depending upon the size, compute the lo and hi bounds.
24806
cat >conftest.$ac_ext <<_ACEOF
24809
cat confdefs.h >>conftest.$ac_ext
24810
cat >>conftest.$ac_ext <<_ACEOF
24811
/* end confdefs.h. */
24812
$ac_includes_default
24813
typedef unsigned long ac__type_sizeof_;
24817
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24818
test_array @<:@0@:>@ = 0
24824
rm -f conftest.$ac_objext
24825
if { (ac_try="$ac_compile"
24826
case "(($ac_try" in
24827
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24828
*) ac_try_echo=$ac_try;;
24830
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24831
(eval "$ac_compile") 2>conftest.er1
24833
grep -v '^ *+' conftest.er1 >conftest.err
24835
cat conftest.err >&5
24836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837
(exit $ac_status); } && {
24838
test -z "$ac_c_werror_flag" ||
24839
test ! -s conftest.err
24840
} && test -s conftest.$ac_objext; then
24843
cat >conftest.$ac_ext <<_ACEOF
24846
cat confdefs.h >>conftest.$ac_ext
24847
cat >>conftest.$ac_ext <<_ACEOF
24848
/* end confdefs.h. */
24849
$ac_includes_default
24850
typedef unsigned long ac__type_sizeof_;
24854
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24855
test_array @<:@0@:>@ = 0
24861
rm -f conftest.$ac_objext
24862
if { (ac_try="$ac_compile"
24863
case "(($ac_try" in
24864
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24865
*) ac_try_echo=$ac_try;;
24867
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24868
(eval "$ac_compile") 2>conftest.er1
24870
grep -v '^ *+' conftest.er1 >conftest.err
24872
cat conftest.err >&5
24873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874
(exit $ac_status); } && {
24875
test -z "$ac_c_werror_flag" ||
24876
test ! -s conftest.err
24877
} && test -s conftest.$ac_objext; then
24878
ac_hi=$ac_mid; break
24880
echo "$as_me: failed program was:" >&5
24881
sed 's/^/| /' conftest.$ac_ext >&5
24883
ac_lo=`expr $ac_mid + 1`
24884
if test $ac_lo -le $ac_mid; then
24888
ac_mid=`expr 2 '*' $ac_mid + 1`
24891
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24894
echo "$as_me: failed program was:" >&5
24895
sed 's/^/| /' conftest.$ac_ext >&5
24897
cat >conftest.$ac_ext <<_ACEOF
24900
cat confdefs.h >>conftest.$ac_ext
24901
cat >>conftest.$ac_ext <<_ACEOF
24902
/* end confdefs.h. */
24903
$ac_includes_default
24904
typedef unsigned long ac__type_sizeof_;
24908
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24909
test_array @<:@0@:>@ = 0
24915
rm -f conftest.$ac_objext
24916
if { (ac_try="$ac_compile"
24917
case "(($ac_try" in
24918
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24919
*) ac_try_echo=$ac_try;;
24921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24922
(eval "$ac_compile") 2>conftest.er1
24924
grep -v '^ *+' conftest.er1 >conftest.err
24926
cat conftest.err >&5
24927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928
(exit $ac_status); } && {
24929
test -z "$ac_c_werror_flag" ||
24930
test ! -s conftest.err
24931
} && test -s conftest.$ac_objext; then
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 unsigned long ac__type_sizeof_;
24945
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
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
24969
ac_lo=$ac_mid; break
24971
echo "$as_me: failed program was:" >&5
24972
sed 's/^/| /' conftest.$ac_ext >&5
24974
ac_hi=`expr '(' $ac_mid ')' - 1`
24975
if test $ac_mid -le $ac_hi; then
24979
ac_mid=`expr 2 '*' $ac_mid`
24982
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24985
echo "$as_me: failed program was:" >&5
24986
sed 's/^/| /' conftest.$ac_ext >&5
24991
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24994
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24995
# Binary search between lo and hi bounds.
24996
while test "x$ac_lo" != "x$ac_hi"; do
24997
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24998
cat >conftest.$ac_ext <<_ACEOF
25001
cat confdefs.h >>conftest.$ac_ext
25002
cat >>conftest.$ac_ext <<_ACEOF
25003
/* end confdefs.h. */
25004
$ac_includes_default
25005
typedef unsigned long ac__type_sizeof_;
25009
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
25010
test_array @<:@0@:>@ = 0
25016
rm -f conftest.$ac_objext
25017
if { (ac_try="$ac_compile"
25018
case "(($ac_try" in
25019
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25020
*) ac_try_echo=$ac_try;;
25022
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25023
(eval "$ac_compile") 2>conftest.er1
25025
grep -v '^ *+' conftest.er1 >conftest.err
25027
cat conftest.err >&5
25028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029
(exit $ac_status); } && {
25030
test -z "$ac_c_werror_flag" ||
25031
test ! -s conftest.err
25032
} && test -s conftest.$ac_objext; then
25035
echo "$as_me: failed program was:" >&5
25036
sed 's/^/| /' conftest.$ac_ext >&5
25038
ac_lo=`expr '(' $ac_mid ')' + 1`
25041
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25044
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
25045
'') if test "$ac_cv_type_unsigned_long" = yes; then
25046
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
25047
See \`config.log' for more details." >&5
25048
echo "$as_me: error: cannot compute sizeof (unsigned long)
25049
See \`config.log' for more details." >&2;}
25050
{ (exit 77); exit 77; }; }
25052
ac_cv_sizeof_unsigned_long=0
25056
cat >conftest.$ac_ext <<_ACEOF
25059
cat confdefs.h >>conftest.$ac_ext
25060
cat >>conftest.$ac_ext <<_ACEOF
25061
/* end confdefs.h. */
25062
$ac_includes_default
25063
typedef unsigned long ac__type_sizeof_;
25064
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25065
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25066
@%:@include <stdio.h>
25067
@%:@include <stdlib.h>
25072
FILE *f = fopen ("conftest.val", "w");
25075
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25077
long int i = longval ();
25078
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25080
fprintf (f, "%ld\n", i);
25084
unsigned long int i = ulongval ();
25085
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25087
fprintf (f, "%lu\n", i);
25089
return ferror (f) || fclose (f) != 0;
25095
rm -f conftest$ac_exeext
25096
if { (ac_try="$ac_link"
25097
case "(($ac_try" in
25098
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25099
*) ac_try_echo=$ac_try;;
25101
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25102
(eval "$ac_link") 2>&5
25104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25106
{ (case "(($ac_try" in
25107
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25108
*) ac_try_echo=$ac_try;;
25110
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25111
(eval "$ac_try") 2>&5
25113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114
(exit $ac_status); }; }; then
25115
ac_cv_sizeof_unsigned_long=`cat conftest.val`
25117
echo "$as_me: program exited with status $ac_status" >&5
25118
echo "$as_me: failed program was:" >&5
25119
sed 's/^/| /' conftest.$ac_ext >&5
25121
( exit $ac_status )
25122
if test "$ac_cv_type_unsigned_long" = yes; then
25123
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
25124
See \`config.log' for more details." >&5
25125
echo "$as_me: error: cannot compute sizeof (unsigned long)
25126
See \`config.log' for more details." >&2;}
25127
{ (exit 77); exit 77; }; }
25129
ac_cv_sizeof_unsigned_long=0
25132
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25136
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
25137
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
25141
cat >>confdefs.h <<_ACEOF
25142
@%:@define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
25146
{ echo "$as_me:$LINENO: checking for long long" >&5
25147
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
25148
if test "${ac_cv_type_long_long+set}" = set; then
25149
echo $ECHO_N "(cached) $ECHO_C" >&6
25151
cat >conftest.$ac_ext <<_ACEOF
25154
cat confdefs.h >>conftest.$ac_ext
25155
cat >>conftest.$ac_ext <<_ACEOF
25156
/* end confdefs.h. */
25157
$ac_includes_default
25158
typedef long long ac__type_new_;
25162
if ((ac__type_new_ *) 0)
25164
if (sizeof (ac__type_new_))
25170
rm -f conftest.$ac_objext
25171
if { (ac_try="$ac_compile"
25172
case "(($ac_try" in
25173
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25174
*) ac_try_echo=$ac_try;;
25176
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25177
(eval "$ac_compile") 2>conftest.er1
25179
grep -v '^ *+' conftest.er1 >conftest.err
25181
cat conftest.err >&5
25182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183
(exit $ac_status); } && {
25184
test -z "$ac_c_werror_flag" ||
25185
test ! -s conftest.err
25186
} && test -s conftest.$ac_objext; then
25187
ac_cv_type_long_long=yes
25189
echo "$as_me: failed program was:" >&5
25190
sed 's/^/| /' conftest.$ac_ext >&5
25192
ac_cv_type_long_long=no
25195
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25197
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
25198
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
25200
# The cast to long int works around a bug in the HP C Compiler
25201
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25202
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25203
# This bug is HP SR number 8606223364.
25204
{ echo "$as_me:$LINENO: checking size of long long" >&5
25205
echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
25206
if test "${ac_cv_sizeof_long_long+set}" = set; then
25207
echo $ECHO_N "(cached) $ECHO_C" >&6
25209
if test "$cross_compiling" = yes; then
25210
# Depending upon the size, compute the lo and hi bounds.
25211
cat >conftest.$ac_ext <<_ACEOF
25214
cat confdefs.h >>conftest.$ac_ext
25215
cat >>conftest.$ac_ext <<_ACEOF
25216
/* end confdefs.h. */
25217
$ac_includes_default
25218
typedef long long ac__type_sizeof_;
25222
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
25223
test_array @<:@0@:>@ = 0
25229
rm -f conftest.$ac_objext
25230
if { (ac_try="$ac_compile"
25231
case "(($ac_try" in
25232
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25233
*) ac_try_echo=$ac_try;;
25235
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25236
(eval "$ac_compile") 2>conftest.er1
25238
grep -v '^ *+' conftest.er1 >conftest.err
25240
cat conftest.err >&5
25241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242
(exit $ac_status); } && {
25243
test -z "$ac_c_werror_flag" ||
25244
test ! -s conftest.err
25245
} && test -s conftest.$ac_objext; then
25248
cat >conftest.$ac_ext <<_ACEOF
25251
cat confdefs.h >>conftest.$ac_ext
25252
cat >>conftest.$ac_ext <<_ACEOF
25253
/* end confdefs.h. */
25254
$ac_includes_default
25255
typedef long long ac__type_sizeof_;
25259
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
25260
test_array @<:@0@:>@ = 0
25266
rm -f conftest.$ac_objext
25267
if { (ac_try="$ac_compile"
25268
case "(($ac_try" in
25269
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25270
*) ac_try_echo=$ac_try;;
25272
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25273
(eval "$ac_compile") 2>conftest.er1
25275
grep -v '^ *+' conftest.er1 >conftest.err
25277
cat conftest.err >&5
25278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279
(exit $ac_status); } && {
25280
test -z "$ac_c_werror_flag" ||
25281
test ! -s conftest.err
25282
} && test -s conftest.$ac_objext; then
25283
ac_hi=$ac_mid; break
25285
echo "$as_me: failed program was:" >&5
25286
sed 's/^/| /' conftest.$ac_ext >&5
25288
ac_lo=`expr $ac_mid + 1`
25289
if test $ac_lo -le $ac_mid; then
25293
ac_mid=`expr 2 '*' $ac_mid + 1`
25296
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25299
echo "$as_me: failed program was:" >&5
25300
sed 's/^/| /' conftest.$ac_ext >&5
25302
cat >conftest.$ac_ext <<_ACEOF
25305
cat confdefs.h >>conftest.$ac_ext
25306
cat >>conftest.$ac_ext <<_ACEOF
25307
/* end confdefs.h. */
25308
$ac_includes_default
25309
typedef long long ac__type_sizeof_;
25313
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
25314
test_array @<:@0@:>@ = 0
25320
rm -f conftest.$ac_objext
25321
if { (ac_try="$ac_compile"
25322
case "(($ac_try" in
25323
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25324
*) ac_try_echo=$ac_try;;
25326
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25327
(eval "$ac_compile") 2>conftest.er1
25329
grep -v '^ *+' conftest.er1 >conftest.err
25331
cat conftest.err >&5
25332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333
(exit $ac_status); } && {
25334
test -z "$ac_c_werror_flag" ||
25335
test ! -s conftest.err
25336
} && test -s conftest.$ac_objext; then
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 long long ac__type_sizeof_;
25350
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
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
25374
ac_lo=$ac_mid; break
25376
echo "$as_me: failed program was:" >&5
25377
sed 's/^/| /' conftest.$ac_ext >&5
25379
ac_hi=`expr '(' $ac_mid ')' - 1`
25380
if test $ac_mid -le $ac_hi; then
25384
ac_mid=`expr 2 '*' $ac_mid`
25387
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25390
echo "$as_me: failed program was:" >&5
25391
sed 's/^/| /' conftest.$ac_ext >&5
25396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25400
# Binary search between lo and hi bounds.
25401
while test "x$ac_lo" != "x$ac_hi"; do
25402
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25403
cat >conftest.$ac_ext <<_ACEOF
25406
cat confdefs.h >>conftest.$ac_ext
25407
cat >>conftest.$ac_ext <<_ACEOF
25408
/* end confdefs.h. */
25409
$ac_includes_default
25410
typedef long long ac__type_sizeof_;
25414
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
25415
test_array @<:@0@:>@ = 0
25421
rm -f conftest.$ac_objext
25422
if { (ac_try="$ac_compile"
25423
case "(($ac_try" in
25424
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25425
*) ac_try_echo=$ac_try;;
25427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25428
(eval "$ac_compile") 2>conftest.er1
25430
grep -v '^ *+' conftest.er1 >conftest.err
25432
cat conftest.err >&5
25433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434
(exit $ac_status); } && {
25435
test -z "$ac_c_werror_flag" ||
25436
test ! -s conftest.err
25437
} && test -s conftest.$ac_objext; then
25440
echo "$as_me: failed program was:" >&5
25441
sed 's/^/| /' conftest.$ac_ext >&5
25443
ac_lo=`expr '(' $ac_mid ')' + 1`
25446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25449
?*) ac_cv_sizeof_long_long=$ac_lo;;
25450
'') if test "$ac_cv_type_long_long" = yes; then
25451
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25452
See \`config.log' for more details." >&5
25453
echo "$as_me: error: cannot compute sizeof (long long)
25454
See \`config.log' for more details." >&2;}
25455
{ (exit 77); exit 77; }; }
25457
ac_cv_sizeof_long_long=0
25461
cat >conftest.$ac_ext <<_ACEOF
25464
cat confdefs.h >>conftest.$ac_ext
25465
cat >>conftest.$ac_ext <<_ACEOF
25466
/* end confdefs.h. */
25467
$ac_includes_default
25468
typedef long long ac__type_sizeof_;
25469
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25470
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25471
@%:@include <stdio.h>
25472
@%:@include <stdlib.h>
25477
FILE *f = fopen ("conftest.val", "w");
25480
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25482
long int i = longval ();
25483
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25485
fprintf (f, "%ld\n", i);
25489
unsigned long int i = ulongval ();
25490
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25492
fprintf (f, "%lu\n", i);
25494
return ferror (f) || fclose (f) != 0;
25500
rm -f conftest$ac_exeext
25501
if { (ac_try="$ac_link"
25502
case "(($ac_try" in
25503
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504
*) ac_try_echo=$ac_try;;
25506
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25507
(eval "$ac_link") 2>&5
25509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25511
{ (case "(($ac_try" in
25512
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25513
*) ac_try_echo=$ac_try;;
25515
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25516
(eval "$ac_try") 2>&5
25518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519
(exit $ac_status); }; }; then
25520
ac_cv_sizeof_long_long=`cat conftest.val`
25522
echo "$as_me: program exited with status $ac_status" >&5
25523
echo "$as_me: failed program was:" >&5
25524
sed 's/^/| /' conftest.$ac_ext >&5
25526
( exit $ac_status )
25527
if test "$ac_cv_type_long_long" = yes; then
25528
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25529
See \`config.log' for more details." >&5
25530
echo "$as_me: error: cannot compute sizeof (long long)
25531
See \`config.log' for more details." >&2;}
25532
{ (exit 77); exit 77; }; }
25534
ac_cv_sizeof_long_long=0
25537
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25541
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
25542
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
25546
cat >>confdefs.h <<_ACEOF
25547
@%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
25551
{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
25552
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
25553
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
25554
echo $ECHO_N "(cached) $ECHO_C" >&6
25556
cat >conftest.$ac_ext <<_ACEOF
25559
cat confdefs.h >>conftest.$ac_ext
25560
cat >>conftest.$ac_ext <<_ACEOF
25561
/* end confdefs.h. */
25562
$ac_includes_default
25563
typedef unsigned long long ac__type_new_;
25567
if ((ac__type_new_ *) 0)
25569
if (sizeof (ac__type_new_))
25575
rm -f conftest.$ac_objext
25576
if { (ac_try="$ac_compile"
25577
case "(($ac_try" in
25578
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25579
*) ac_try_echo=$ac_try;;
25581
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25582
(eval "$ac_compile") 2>conftest.er1
25584
grep -v '^ *+' conftest.er1 >conftest.err
25586
cat conftest.err >&5
25587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588
(exit $ac_status); } && {
25589
test -z "$ac_c_werror_flag" ||
25590
test ! -s conftest.err
25591
} && test -s conftest.$ac_objext; then
25592
ac_cv_type_unsigned_long_long=yes
25594
echo "$as_me: failed program was:" >&5
25595
sed 's/^/| /' conftest.$ac_ext >&5
25597
ac_cv_type_unsigned_long_long=no
25600
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25602
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
25603
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
25605
# The cast to long int works around a bug in the HP C Compiler
25606
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25607
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25608
# This bug is HP SR number 8606223364.
25609
{ echo "$as_me:$LINENO: checking size of unsigned long long" >&5
25610
echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
25611
if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
25612
echo $ECHO_N "(cached) $ECHO_C" >&6
25614
if test "$cross_compiling" = yes; then
25615
# Depending upon the size, compute the lo and hi bounds.
25616
cat >conftest.$ac_ext <<_ACEOF
25619
cat confdefs.h >>conftest.$ac_ext
25620
cat >>conftest.$ac_ext <<_ACEOF
25621
/* end confdefs.h. */
25622
$ac_includes_default
25623
typedef unsigned long long ac__type_sizeof_;
25627
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
25628
test_array @<:@0@:>@ = 0
25634
rm -f conftest.$ac_objext
25635
if { (ac_try="$ac_compile"
25636
case "(($ac_try" in
25637
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25638
*) ac_try_echo=$ac_try;;
25640
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25641
(eval "$ac_compile") 2>conftest.er1
25643
grep -v '^ *+' conftest.er1 >conftest.err
25645
cat conftest.err >&5
25646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647
(exit $ac_status); } && {
25648
test -z "$ac_c_werror_flag" ||
25649
test ! -s conftest.err
25650
} && test -s conftest.$ac_objext; then
25653
cat >conftest.$ac_ext <<_ACEOF
25656
cat confdefs.h >>conftest.$ac_ext
25657
cat >>conftest.$ac_ext <<_ACEOF
25658
/* end confdefs.h. */
25659
$ac_includes_default
25660
typedef unsigned long long ac__type_sizeof_;
25664
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
25665
test_array @<:@0@:>@ = 0
25671
rm -f conftest.$ac_objext
25672
if { (ac_try="$ac_compile"
25673
case "(($ac_try" in
25674
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675
*) ac_try_echo=$ac_try;;
25677
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25678
(eval "$ac_compile") 2>conftest.er1
25680
grep -v '^ *+' conftest.er1 >conftest.err
25682
cat conftest.err >&5
25683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684
(exit $ac_status); } && {
25685
test -z "$ac_c_werror_flag" ||
25686
test ! -s conftest.err
25687
} && test -s conftest.$ac_objext; then
25688
ac_hi=$ac_mid; break
25690
echo "$as_me: failed program was:" >&5
25691
sed 's/^/| /' conftest.$ac_ext >&5
25693
ac_lo=`expr $ac_mid + 1`
25694
if test $ac_lo -le $ac_mid; then
25698
ac_mid=`expr 2 '*' $ac_mid + 1`
25701
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25704
echo "$as_me: failed program was:" >&5
25705
sed 's/^/| /' conftest.$ac_ext >&5
25707
cat >conftest.$ac_ext <<_ACEOF
25710
cat confdefs.h >>conftest.$ac_ext
25711
cat >>conftest.$ac_ext <<_ACEOF
25712
/* end confdefs.h. */
25713
$ac_includes_default
25714
typedef unsigned long long ac__type_sizeof_;
25718
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
25719
test_array @<:@0@:>@ = 0
25725
rm -f conftest.$ac_objext
25726
if { (ac_try="$ac_compile"
25727
case "(($ac_try" in
25728
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25729
*) ac_try_echo=$ac_try;;
25731
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25732
(eval "$ac_compile") 2>conftest.er1
25734
grep -v '^ *+' conftest.er1 >conftest.err
25736
cat conftest.err >&5
25737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738
(exit $ac_status); } && {
25739
test -z "$ac_c_werror_flag" ||
25740
test ! -s conftest.err
25741
} && test -s conftest.$ac_objext; then
25744
cat >conftest.$ac_ext <<_ACEOF
25747
cat confdefs.h >>conftest.$ac_ext
25748
cat >>conftest.$ac_ext <<_ACEOF
25749
/* end confdefs.h. */
25750
$ac_includes_default
25751
typedef unsigned long long ac__type_sizeof_;
25755
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
25756
test_array @<:@0@:>@ = 0
25762
rm -f conftest.$ac_objext
25763
if { (ac_try="$ac_compile"
25764
case "(($ac_try" in
25765
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25766
*) ac_try_echo=$ac_try;;
25768
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25769
(eval "$ac_compile") 2>conftest.er1
25771
grep -v '^ *+' conftest.er1 >conftest.err
25773
cat conftest.err >&5
25774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775
(exit $ac_status); } && {
25776
test -z "$ac_c_werror_flag" ||
25777
test ! -s conftest.err
25778
} && test -s conftest.$ac_objext; then
25779
ac_lo=$ac_mid; break
25781
echo "$as_me: failed program was:" >&5
25782
sed 's/^/| /' conftest.$ac_ext >&5
25784
ac_hi=`expr '(' $ac_mid ')' - 1`
25785
if test $ac_mid -le $ac_hi; then
25789
ac_mid=`expr 2 '*' $ac_mid`
25792
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25795
echo "$as_me: failed program was:" >&5
25796
sed 's/^/| /' conftest.$ac_ext >&5
25801
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25804
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25805
# Binary search between lo and hi bounds.
25806
while test "x$ac_lo" != "x$ac_hi"; do
25807
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25808
cat >conftest.$ac_ext <<_ACEOF
25811
cat confdefs.h >>conftest.$ac_ext
25812
cat >>conftest.$ac_ext <<_ACEOF
25813
/* end confdefs.h. */
25814
$ac_includes_default
25815
typedef unsigned long long ac__type_sizeof_;
25819
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
25820
test_array @<:@0@:>@ = 0
25826
rm -f conftest.$ac_objext
25827
if { (ac_try="$ac_compile"
25828
case "(($ac_try" in
25829
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25830
*) ac_try_echo=$ac_try;;
25832
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25833
(eval "$ac_compile") 2>conftest.er1
25835
grep -v '^ *+' conftest.er1 >conftest.err
25837
cat conftest.err >&5
25838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839
(exit $ac_status); } && {
25840
test -z "$ac_c_werror_flag" ||
25841
test ! -s conftest.err
25842
} && test -s conftest.$ac_objext; then
25845
echo "$as_me: failed program was:" >&5
25846
sed 's/^/| /' conftest.$ac_ext >&5
25848
ac_lo=`expr '(' $ac_mid ')' + 1`
25851
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25854
?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
25855
'') if test "$ac_cv_type_unsigned_long_long" = yes; then
25856
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
25857
See \`config.log' for more details." >&5
25858
echo "$as_me: error: cannot compute sizeof (unsigned long long)
25859
See \`config.log' for more details." >&2;}
25860
{ (exit 77); exit 77; }; }
25862
ac_cv_sizeof_unsigned_long_long=0
25866
cat >conftest.$ac_ext <<_ACEOF
25869
cat confdefs.h >>conftest.$ac_ext
25870
cat >>conftest.$ac_ext <<_ACEOF
25871
/* end confdefs.h. */
25872
$ac_includes_default
25873
typedef unsigned long long ac__type_sizeof_;
25874
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25875
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25876
@%:@include <stdio.h>
25877
@%:@include <stdlib.h>
25882
FILE *f = fopen ("conftest.val", "w");
25885
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25887
long int i = longval ();
25888
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25890
fprintf (f, "%ld\n", i);
25894
unsigned long int i = ulongval ();
25895
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25897
fprintf (f, "%lu\n", i);
25899
return ferror (f) || fclose (f) != 0;
25905
rm -f conftest$ac_exeext
25906
if { (ac_try="$ac_link"
25907
case "(($ac_try" in
25908
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25909
*) ac_try_echo=$ac_try;;
25911
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25912
(eval "$ac_link") 2>&5
25914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25916
{ (case "(($ac_try" in
25917
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25918
*) ac_try_echo=$ac_try;;
25920
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25921
(eval "$ac_try") 2>&5
25923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924
(exit $ac_status); }; }; then
25925
ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
25927
echo "$as_me: program exited with status $ac_status" >&5
25928
echo "$as_me: failed program was:" >&5
25929
sed 's/^/| /' conftest.$ac_ext >&5
25931
( exit $ac_status )
25932
if test "$ac_cv_type_unsigned_long_long" = yes; then
25933
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
25934
See \`config.log' for more details." >&5
25935
echo "$as_me: error: cannot compute sizeof (unsigned long long)
25936
See \`config.log' for more details." >&2;}
25937
{ (exit 77); exit 77; }; }
25939
ac_cv_sizeof_unsigned_long_long=0
25942
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25946
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
25947
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
25951
cat >>confdefs.h <<_ACEOF
25952
@%:@define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
25956
{ echo "$as_me:$LINENO: checking for uchar" >&5
25957
echo $ECHO_N "checking for uchar... $ECHO_C" >&6; }
25958
if test "${ac_cv_type_uchar+set}" = set; then
25959
echo $ECHO_N "(cached) $ECHO_C" >&6
25961
cat >conftest.$ac_ext <<_ACEOF
25964
cat confdefs.h >>conftest.$ac_ext
25965
cat >>conftest.$ac_ext <<_ACEOF
25966
/* end confdefs.h. */
25967
$ac_includes_default
25968
typedef uchar ac__type_new_;
25972
if ((ac__type_new_ *) 0)
25974
if (sizeof (ac__type_new_))
25980
rm -f conftest.$ac_objext
25981
if { (ac_try="$ac_compile"
25982
case "(($ac_try" in
25983
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25984
*) ac_try_echo=$ac_try;;
25986
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25987
(eval "$ac_compile") 2>conftest.er1
25989
grep -v '^ *+' conftest.er1 >conftest.err
25991
cat conftest.err >&5
25992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25993
(exit $ac_status); } && {
25994
test -z "$ac_c_werror_flag" ||
25995
test ! -s conftest.err
25996
} && test -s conftest.$ac_objext; then
25997
ac_cv_type_uchar=yes
25999
echo "$as_me: failed program was:" >&5
26000
sed 's/^/| /' conftest.$ac_ext >&5
26002
ac_cv_type_uchar=no
26005
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26007
{ echo "$as_me:$LINENO: result: $ac_cv_type_uchar" >&5
26008
echo "${ECHO_T}$ac_cv_type_uchar" >&6; }
26009
if test $ac_cv_type_uchar = yes; then
26013
cat >>confdefs.h <<_ACEOF
26014
@%:@define uchar unsigned char
26019
{ echo "$as_me:$LINENO: checking for ushort" >&5
26020
echo $ECHO_N "checking for ushort... $ECHO_C" >&6; }
26021
if test "${ac_cv_type_ushort+set}" = set; then
26022
echo $ECHO_N "(cached) $ECHO_C" >&6
26024
cat >conftest.$ac_ext <<_ACEOF
26027
cat confdefs.h >>conftest.$ac_ext
26028
cat >>conftest.$ac_ext <<_ACEOF
26029
/* end confdefs.h. */
26030
$ac_includes_default
26031
typedef ushort ac__type_new_;
26035
if ((ac__type_new_ *) 0)
26037
if (sizeof (ac__type_new_))
26043
rm -f conftest.$ac_objext
26044
if { (ac_try="$ac_compile"
26045
case "(($ac_try" in
26046
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26047
*) ac_try_echo=$ac_try;;
26049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26050
(eval "$ac_compile") 2>conftest.er1
26052
grep -v '^ *+' conftest.er1 >conftest.err
26054
cat conftest.err >&5
26055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056
(exit $ac_status); } && {
26057
test -z "$ac_c_werror_flag" ||
26058
test ! -s conftest.err
26059
} && test -s conftest.$ac_objext; then
26060
ac_cv_type_ushort=yes
26062
echo "$as_me: failed program was:" >&5
26063
sed 's/^/| /' conftest.$ac_ext >&5
26065
ac_cv_type_ushort=no
26068
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26070
{ echo "$as_me:$LINENO: result: $ac_cv_type_ushort" >&5
26071
echo "${ECHO_T}$ac_cv_type_ushort" >&6; }
26072
if test $ac_cv_type_ushort = yes; then
26076
cat >>confdefs.h <<_ACEOF
26077
@%:@define ushort unsigned short
26082
{ echo "$as_me:$LINENO: checking for uint" >&5
26083
echo $ECHO_N "checking for uint... $ECHO_C" >&6; }
26084
if test "${ac_cv_type_uint+set}" = set; then
26085
echo $ECHO_N "(cached) $ECHO_C" >&6
26087
cat >conftest.$ac_ext <<_ACEOF
26090
cat confdefs.h >>conftest.$ac_ext
26091
cat >>conftest.$ac_ext <<_ACEOF
26092
/* end confdefs.h. */
26093
$ac_includes_default
26094
typedef uint ac__type_new_;
26098
if ((ac__type_new_ *) 0)
26100
if (sizeof (ac__type_new_))
26106
rm -f conftest.$ac_objext
26107
if { (ac_try="$ac_compile"
26108
case "(($ac_try" in
26109
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26110
*) ac_try_echo=$ac_try;;
26112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26113
(eval "$ac_compile") 2>conftest.er1
26115
grep -v '^ *+' conftest.er1 >conftest.err
26117
cat conftest.err >&5
26118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119
(exit $ac_status); } && {
26120
test -z "$ac_c_werror_flag" ||
26121
test ! -s conftest.err
26122
} && test -s conftest.$ac_objext; then
26123
ac_cv_type_uint=yes
26125
echo "$as_me: failed program was:" >&5
26126
sed 's/^/| /' conftest.$ac_ext >&5
26131
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26133
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint" >&5
26134
echo "${ECHO_T}$ac_cv_type_uint" >&6; }
26135
if test $ac_cv_type_uint = yes; then
26139
cat >>confdefs.h <<_ACEOF
26140
@%:@define uint unsigned int
26145
{ echo "$as_me:$LINENO: checking for ulong" >&5
26146
echo $ECHO_N "checking for ulong... $ECHO_C" >&6; }
26147
if test "${ac_cv_type_ulong+set}" = set; then
26148
echo $ECHO_N "(cached) $ECHO_C" >&6
26150
cat >conftest.$ac_ext <<_ACEOF
26153
cat confdefs.h >>conftest.$ac_ext
26154
cat >>conftest.$ac_ext <<_ACEOF
26155
/* end confdefs.h. */
26156
$ac_includes_default
26157
typedef ulong ac__type_new_;
26161
if ((ac__type_new_ *) 0)
26163
if (sizeof (ac__type_new_))
26169
rm -f conftest.$ac_objext
26170
if { (ac_try="$ac_compile"
26171
case "(($ac_try" in
26172
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26173
*) ac_try_echo=$ac_try;;
26175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26176
(eval "$ac_compile") 2>conftest.er1
26178
grep -v '^ *+' conftest.er1 >conftest.err
26180
cat conftest.err >&5
26181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182
(exit $ac_status); } && {
26183
test -z "$ac_c_werror_flag" ||
26184
test ! -s conftest.err
26185
} && test -s conftest.$ac_objext; then
26186
ac_cv_type_ulong=yes
26188
echo "$as_me: failed program was:" >&5
26189
sed 's/^/| /' conftest.$ac_ext >&5
26191
ac_cv_type_ulong=no
26194
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26196
{ echo "$as_me:$LINENO: result: $ac_cv_type_ulong" >&5
26197
echo "${ECHO_T}$ac_cv_type_ulong" >&6; }
26198
if test $ac_cv_type_ulong = yes; then
26202
cat >>confdefs.h <<_ACEOF
26203
@%:@define ulong unsigned long
26208
{ echo "$as_me:$LINENO: checking for longlong" >&5
26209
echo $ECHO_N "checking for longlong... $ECHO_C" >&6; }
26210
if test "${ac_cv_type_longlong+set}" = set; then
26211
echo $ECHO_N "(cached) $ECHO_C" >&6
26213
cat >conftest.$ac_ext <<_ACEOF
26216
cat confdefs.h >>conftest.$ac_ext
26217
cat >>conftest.$ac_ext <<_ACEOF
26218
/* end confdefs.h. */
26219
$ac_includes_default
26220
typedef longlong ac__type_new_;
26224
if ((ac__type_new_ *) 0)
26226
if (sizeof (ac__type_new_))
26232
rm -f conftest.$ac_objext
26233
if { (ac_try="$ac_compile"
26234
case "(($ac_try" in
26235
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26236
*) ac_try_echo=$ac_try;;
26238
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26239
(eval "$ac_compile") 2>conftest.er1
26241
grep -v '^ *+' conftest.er1 >conftest.err
26243
cat conftest.err >&5
26244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245
(exit $ac_status); } && {
26246
test -z "$ac_c_werror_flag" ||
26247
test ! -s conftest.err
26248
} && test -s conftest.$ac_objext; then
26249
ac_cv_type_longlong=yes
26251
echo "$as_me: failed program was:" >&5
26252
sed 's/^/| /' conftest.$ac_ext >&5
26254
ac_cv_type_longlong=no
26257
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26259
{ echo "$as_me:$LINENO: result: $ac_cv_type_longlong" >&5
26260
echo "${ECHO_T}$ac_cv_type_longlong" >&6; }
26261
if test $ac_cv_type_longlong = yes; then
26265
cat >>confdefs.h <<_ACEOF
26266
@%:@define longlong long long
26271
{ echo "$as_me:$LINENO: checking for ulonglong" >&5
26272
echo $ECHO_N "checking for ulonglong... $ECHO_C" >&6; }
26273
if test "${ac_cv_type_ulonglong+set}" = set; then
26274
echo $ECHO_N "(cached) $ECHO_C" >&6
26276
cat >conftest.$ac_ext <<_ACEOF
26279
cat confdefs.h >>conftest.$ac_ext
26280
cat >>conftest.$ac_ext <<_ACEOF
26281
/* end confdefs.h. */
26282
$ac_includes_default
26283
typedef ulonglong ac__type_new_;
26287
if ((ac__type_new_ *) 0)
26289
if (sizeof (ac__type_new_))
26295
rm -f conftest.$ac_objext
26296
if { (ac_try="$ac_compile"
26297
case "(($ac_try" in
26298
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26299
*) ac_try_echo=$ac_try;;
26301
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26302
(eval "$ac_compile") 2>conftest.er1
26304
grep -v '^ *+' conftest.er1 >conftest.err
26306
cat conftest.err >&5
26307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308
(exit $ac_status); } && {
26309
test -z "$ac_c_werror_flag" ||
26310
test ! -s conftest.err
26311
} && test -s conftest.$ac_objext; then
26312
ac_cv_type_ulonglong=yes
26314
echo "$as_me: failed program was:" >&5
26315
sed 's/^/| /' conftest.$ac_ext >&5
26317
ac_cv_type_ulonglong=no
26320
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26322
{ echo "$as_me:$LINENO: result: $ac_cv_type_ulonglong" >&5
26323
echo "${ECHO_T}$ac_cv_type_ulonglong" >&6; }
26324
if test $ac_cv_type_ulonglong = yes; then
26328
cat >>confdefs.h <<_ACEOF
26329
@%:@define ulonglong unsigned long long
26334
{ echo "$as_me:$LINENO: checking for ssize_t" >&5
26335
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
26336
if test "${ac_cv_type_ssize_t+set}" = set; then
26337
echo $ECHO_N "(cached) $ECHO_C" >&6
26339
cat >conftest.$ac_ext <<_ACEOF
26342
cat confdefs.h >>conftest.$ac_ext
26343
cat >>conftest.$ac_ext <<_ACEOF
26344
/* end confdefs.h. */
26345
$ac_includes_default
26346
typedef ssize_t ac__type_new_;
26350
if ((ac__type_new_ *) 0)
26352
if (sizeof (ac__type_new_))
26358
rm -f conftest.$ac_objext
26359
if { (ac_try="$ac_compile"
26360
case "(($ac_try" in
26361
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26362
*) ac_try_echo=$ac_try;;
26364
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26365
(eval "$ac_compile") 2>conftest.er1
26367
grep -v '^ *+' conftest.er1 >conftest.err
26369
cat conftest.err >&5
26370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26371
(exit $ac_status); } && {
26372
test -z "$ac_c_werror_flag" ||
26373
test ! -s conftest.err
26374
} && test -s conftest.$ac_objext; then
26375
ac_cv_type_ssize_t=yes
26377
echo "$as_me: failed program was:" >&5
26378
sed 's/^/| /' conftest.$ac_ext >&5
26380
ac_cv_type_ssize_t=no
26383
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26385
{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26386
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
26387
if test $ac_cv_type_ssize_t = yes; then
26391
cat >>confdefs.h <<_ACEOF
26392
@%:@define ssize_t int
26398
############################################################
26399
# Checks for library functions.
26400
############################################################
26403
for ac_func in vprintf
26405
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26406
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26407
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26408
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26409
echo $ECHO_N "(cached) $ECHO_C" >&6
26411
cat >conftest.$ac_ext <<_ACEOF
26414
cat confdefs.h >>conftest.$ac_ext
26415
cat >>conftest.$ac_ext <<_ACEOF
26416
/* end confdefs.h. */
26417
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26418
For example, HP-UX 11i <limits.h> declares gettimeofday. */
26419
#define $ac_func innocuous_$ac_func
26421
/* System header to define __stub macros and hopefully few prototypes,
26422
which can conflict with char $ac_func (); below.
26423
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26424
<limits.h> exists even on freestanding compilers. */
26427
# include <limits.h>
26429
# include <assert.h>
26434
/* Override any GCC internal prototype to avoid an error.
26435
Use char because int might match the return type of a GCC
26436
builtin and then its argument prototype would still apply. */
26441
/* The GNU C library defines this for functions which it implements
26442
to always fail with ENOSYS. Some functions are actually named
26443
something starting with __ and the normal name is an alias. */
26444
#if defined __stub_$ac_func || defined __stub___$ac_func
26451
return $ac_func ();
26456
rm -f conftest.$ac_objext conftest$ac_exeext
26457
if { (ac_try="$ac_link"
26458
case "(($ac_try" in
26459
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26460
*) ac_try_echo=$ac_try;;
26462
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26463
(eval "$ac_link") 2>conftest.er1
26465
grep -v '^ *+' conftest.er1 >conftest.err
26467
cat conftest.err >&5
26468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469
(exit $ac_status); } && {
26470
test -z "$ac_c_werror_flag" ||
26471
test ! -s conftest.err
26472
} && test -s conftest$ac_exeext &&
26473
$as_test_x conftest$ac_exeext; then
26474
eval "$as_ac_var=yes"
26476
echo "$as_me: failed program was:" >&5
26477
sed 's/^/| /' conftest.$ac_ext >&5
26479
eval "$as_ac_var=no"
26482
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26483
conftest$ac_exeext conftest.$ac_ext
26485
ac_res=`eval echo '${'$as_ac_var'}'`
26486
{ echo "$as_me:$LINENO: result: $ac_res" >&5
26487
echo "${ECHO_T}$ac_res" >&6; }
26488
if test `eval echo '${'$as_ac_var'}'` = yes; then
26489
cat >>confdefs.h <<_ACEOF
26490
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26493
{ echo "$as_me:$LINENO: checking for _doprnt" >&5
26494
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
26495
if test "${ac_cv_func__doprnt+set}" = set; then
26496
echo $ECHO_N "(cached) $ECHO_C" >&6
26498
cat >conftest.$ac_ext <<_ACEOF
26501
cat confdefs.h >>conftest.$ac_ext
26502
cat >>conftest.$ac_ext <<_ACEOF
26503
/* end confdefs.h. */
26504
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26505
For example, HP-UX 11i <limits.h> declares gettimeofday. */
26506
#define _doprnt innocuous__doprnt
26508
/* System header to define __stub macros and hopefully few prototypes,
26509
which can conflict with char _doprnt (); below.
26510
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26511
<limits.h> exists even on freestanding compilers. */
26514
# include <limits.h>
26516
# include <assert.h>
26521
/* Override any GCC internal prototype to avoid an error.
26522
Use char because int might match the return type of a GCC
26523
builtin and then its argument prototype would still apply. */
26528
/* The GNU C library defines this for functions which it implements
26529
to always fail with ENOSYS. Some functions are actually named
26530
something starting with __ and the normal name is an alias. */
26531
#if defined __stub__doprnt || defined __stub____doprnt
26543
rm -f conftest.$ac_objext conftest$ac_exeext
26544
if { (ac_try="$ac_link"
26545
case "(($ac_try" in
26546
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26547
*) ac_try_echo=$ac_try;;
26549
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26550
(eval "$ac_link") 2>conftest.er1
26552
grep -v '^ *+' conftest.er1 >conftest.err
26554
cat conftest.err >&5
26555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556
(exit $ac_status); } && {
26557
test -z "$ac_c_werror_flag" ||
26558
test ! -s conftest.err
26559
} && test -s conftest$ac_exeext &&
26560
$as_test_x conftest$ac_exeext; then
26561
ac_cv_func__doprnt=yes
26563
echo "$as_me: failed program was:" >&5
26564
sed 's/^/| /' conftest.$ac_ext >&5
26566
ac_cv_func__doprnt=no
26569
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26570
conftest$ac_exeext conftest.$ac_ext
26572
{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26573
echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26574
if test $ac_cv_func__doprnt = yes; then
26576
cat >>confdefs.h <<\_ACEOF
26577
@%:@define HAVE_DOPRNT 1
26587
for ac_func in mkstemp
26589
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26590
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26591
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26592
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26593
echo $ECHO_N "(cached) $ECHO_C" >&6
26595
cat >conftest.$ac_ext <<_ACEOF
26598
cat confdefs.h >>conftest.$ac_ext
26599
cat >>conftest.$ac_ext <<_ACEOF
26600
/* end confdefs.h. */
26601
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26602
For example, HP-UX 11i <limits.h> declares gettimeofday. */
26603
#define $ac_func innocuous_$ac_func
26605
/* System header to define __stub macros and hopefully few prototypes,
26606
which can conflict with char $ac_func (); below.
26607
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26608
<limits.h> exists even on freestanding compilers. */
26611
# include <limits.h>
26613
# include <assert.h>
26618
/* Override any GCC internal prototype to avoid an error.
26619
Use char because int might match the return type of a GCC
26620
builtin and then its argument prototype would still apply. */
26625
/* The GNU C library defines this for functions which it implements
26626
to always fail with ENOSYS. Some functions are actually named
26627
something starting with __ and the normal name is an alias. */
26628
#if defined __stub_$ac_func || defined __stub___$ac_func
26635
return $ac_func ();
26640
rm -f conftest.$ac_objext conftest$ac_exeext
26641
if { (ac_try="$ac_link"
26642
case "(($ac_try" in
26643
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26644
*) ac_try_echo=$ac_try;;
26646
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26647
(eval "$ac_link") 2>conftest.er1
26649
grep -v '^ *+' conftest.er1 >conftest.err
26651
cat conftest.err >&5
26652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653
(exit $ac_status); } && {
26654
test -z "$ac_c_werror_flag" ||
26655
test ! -s conftest.err
26656
} && test -s conftest$ac_exeext &&
26657
$as_test_x conftest$ac_exeext; then
26658
eval "$as_ac_var=yes"
26660
echo "$as_me: failed program was:" >&5
26661
sed 's/^/| /' conftest.$ac_ext >&5
26663
eval "$as_ac_var=no"
26666
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26667
conftest$ac_exeext conftest.$ac_ext
26669
ac_res=`eval echo '${'$as_ac_var'}'`
26670
{ echo "$as_me:$LINENO: result: $ac_res" >&5
26671
echo "${ECHO_T}$ac_res" >&6; }
26672
if test `eval echo '${'$as_ac_var'}'` = yes; then
26673
cat >>confdefs.h <<_ACEOF
26674
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26681
############################################################
26682
# Enable/disable special memory allocator for debugging.
26683
############################################################
26685
# Check whether --enable-dmalloc was given.
26686
if test "${enable_dmalloc+set}" = set; then
26687
enableval=$enable_dmalloc;
26688
case "${enableval}" in
26690
cat >>confdefs.h <<\_ACEOF
26691
@%:@define DEBUG_MEMALLOC 1
26698
{ { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dmalloc" >&5
26699
echo "$as_me: error: bad value ${enableval} for --enable-dmalloc" >&2;}
26700
{ (exit 1); exit 1; }; }
26707
############################################################
26708
# Enable/disable extra code for debugging.
26709
############################################################
26711
# Check whether --enable-debug was given.
26712
if test "${enable_debug+set}" = set; then
26713
enableval=$enable_debug;
26714
case "${enableval}" in
26717
cat >>confdefs.h <<\_ACEOF
26721
cat >>confdefs.h <<\_ACEOF
26722
@%:@define DEBUG_OVERFLOW 1
26725
if test "$GCC" = yes; then
26733
{ { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
26734
echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
26735
{ (exit 1); exit 1; }; }
26744
if test "$GCC" = yes; then
26745
CFLAGS="$CFLAGS -W -Wall -Wno-long-long -Wformat -Wmissing-prototypes -Wstrict-prototypes -pedantic"
26748
############################################################
26749
# Generate the configuration header file.
26750
############################################################
26752
ac_config_headers="$ac_config_headers src/libjasper/include/jasper/jas_config_ac.h"
26755
############################################################
26756
# Generate the makefiles.
26757
############################################################
26759
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"
26761
cat >confcache <<\_ACEOF
26762
# This file is a shell script that caches the results of configure
26763
# tests run on this system so they can be shared between configure
26764
# scripts and configure runs, see configure's option --config-cache.
26765
# It is not useful on other systems. If it contains results you don't
26766
# want to keep, you may remove or edit it.
26768
# config.status only pays attention to the cache file if you give it
26769
# the --recheck option to rerun configure.
26771
# `ac_cv_env_foo' variables (set or unset) will be overridden when
26772
# loading this file, other *unset* `ac_cv_foo' will be assigned the
26773
# following values.
26777
# The following way of writing the cache mishandles newlines in values,
26778
# but we know of no workaround that is simple, portable, and efficient.
26779
# So, we kill variables containing newlines.
26780
# Ultrix sh set writes to stderr and can't be redirected directly,
26781
# and sets the high bit in the cache file unless we assign to the vars.
26783
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26784
eval ac_val=\$$ac_var
26788
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26789
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26792
_ | IFS | as_nl) ;; #(
26793
*) $as_unset $ac_var ;;
26799
case $as_nl`(ac_space=' '; set) 2>&1` in #(
26800
*${as_nl}ac_space=\ *)
26801
# `set' does not quote correctly, so add quotes (double-quote
26802
# substitution turns \\\\ into \\, and sed turns \\ into \).
26805
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26808
# `set' quotes correctly as required by POSIX, so do not add quotes.
26809
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26818
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26820
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26822
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26823
if test -w "$cache_file"; then
26824
test "x$cache_file" != "x/dev/null" &&
26825
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
26826
echo "$as_me: updating cache $cache_file" >&6;}
26827
cat confcache >$cache_file
26829
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26830
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26835
test "x$prefix" = xNONE && prefix=$ac_default_prefix
26836
# Let make expand exec_prefix.
26837
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26839
DEFS=-DHAVE_CONFIG_H
26843
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
26844
# 1. Remove the extension, and $U if already installed.
26845
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26846
ac_i=`echo "$ac_i" | sed "$ac_script"`
26847
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26848
# will be set to the directory where LIBOBJS objects are built.
26849
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26850
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26852
LIB@&t@OBJS=$ac_libobjs
26854
LTLIBOBJS=$ac_ltlibobjs
26857
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26858
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26859
Usually this means the macro was only invoked conditionally." >&5
26860
echo "$as_me: error: conditional \"AMDEP\" was never defined.
26861
Usually this means the macro was only invoked conditionally." >&2;}
26862
{ (exit 1); exit 1; }; }
26864
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26865
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26866
Usually this means the macro was only invoked conditionally." >&5
26867
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26868
Usually this means the macro was only invoked conditionally." >&2;}
26869
{ (exit 1); exit 1; }; }
26871
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26872
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26873
Usually this means the macro was only invoked conditionally." >&5
26874
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26875
Usually this means the macro was only invoked conditionally." >&2;}
26876
{ (exit 1); exit 1; }; }
26878
if test -z "${HAVE_LIBJPEG_TRUE}" && test -z "${HAVE_LIBJPEG_FALSE}"; then
26879
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBJPEG\" was never defined.
26880
Usually this means the macro was only invoked conditionally." >&5
26881
echo "$as_me: error: conditional \"HAVE_LIBJPEG\" was never defined.
26882
Usually this means the macro was only invoked conditionally." >&2;}
26883
{ (exit 1); exit 1; }; }
26885
if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
26886
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENGL\" was never defined.
26887
Usually this means the macro was only invoked conditionally." >&5
26888
echo "$as_me: error: conditional \"HAVE_OPENGL\" was never defined.
26889
Usually this means the macro was only invoked conditionally." >&2;}
26890
{ (exit 1); exit 1; }; }
26892
if test -z "${HAVE_SDL_TRUE}" && test -z "${HAVE_SDL_FALSE}"; then
26893
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_SDL\" was never defined.
26894
Usually this means the macro was only invoked conditionally." >&5
26895
echo "$as_me: error: conditional \"HAVE_SDL\" was never defined.
26896
Usually this means the macro was only invoked conditionally." >&2;}
26897
{ (exit 1); exit 1; }; }
26900
: ${CONFIG_STATUS=./config.status}
26901
ac_clean_files_save=$ac_clean_files
26902
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26903
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26904
echo "$as_me: creating $CONFIG_STATUS" >&6;}
26905
cat >$CONFIG_STATUS <<_ACEOF
26907
# Generated by $as_me.
26908
# Run this file to recreate the current configuration.
26909
# Compiler output produced by configure, useful for debugging
26910
# configure, is in config.log if it exists.
26913
ac_cs_recheck=false
26915
SHELL=\${CONFIG_SHELL-$SHELL}
26918
cat >>$CONFIG_STATUS <<\_ACEOF
26919
## --------------------- ##
26920
## M4sh Initialization. ##
26921
## --------------------- ##
26923
# Be more Bourne compatible
26924
DUALCASE=1; export DUALCASE # for MKS sh
26925
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26928
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26929
# is contrary to our usage. Disable this feature.
26930
alias -g '${1+"$@"}'='"$@"'
26931
setopt NO_GLOB_SUBST
26933
case `(set -o) 2>/dev/null` in
26934
*posix*) set -o posix ;;
26943
# Avoid depending upon Character Ranges.
26944
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26945
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26946
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26947
as_cr_digits='0123456789'
26948
as_cr_alnum=$as_cr_Letters$as_cr_digits
26950
# The user is always right.
26951
if test "${PATH_SEPARATOR+set}" != set; then
26952
echo "#! /bin/sh" >conf$$.sh
26953
echo "exit 0" >>conf$$.sh
26955
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26963
# Support unset when possible.
26964
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26972
# We need space, tab and new line, in precisely that order. Quoting is
26973
# there to prevent editors from complaining about space-tab.
26974
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26975
# splitting by setting IFS to empty value.)
26980
# Find who we are. Look in the path if we contain no directory separator.
26982
*[\\/]* ) as_myself=$0 ;;
26983
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26984
for as_dir in $PATH
26987
test -z "$as_dir" && as_dir=.
26988
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26994
# We did not find ourselves, most probably we were run as `sh COMMAND'
26995
# in which case we are not to be found in the path.
26996
if test "x$as_myself" = x; then
26999
if test ! -f "$as_myself"; then
27000
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27001
{ (exit 1); exit 1; }
27004
# Work around bugs in pre-3.0 UWIN ksh.
27005
for as_var in ENV MAIL MAILPATH
27006
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27014
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27015
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27016
LC_TELEPHONE LC_TIME
27018
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27019
eval $as_var=C; export $as_var
27021
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27025
# Required to use basename.
27026
if expr a : '\(a\)' >/dev/null 2>&1 &&
27027
test "X`expr 00001 : '.*\(...\)'`" = X001; then
27033
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27034
as_basename=basename
27040
# Name of the executable.
27041
as_me=`$as_basename -- "$0" ||
27042
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27043
X"$0" : 'X\(//\)$' \| \
27044
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27046
sed '/^.*\/\([^/][^/]*\)\/*$/{
27065
as_lineno_1=$LINENO
27066
as_lineno_2=$LINENO
27067
test "x$as_lineno_1" != "x$as_lineno_2" &&
27068
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27070
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27071
# uniformly replaced by the line number. The first 'sed' inserts a
27072
# line-number line after each line using $LINENO; the second 'sed'
27073
# does the real work. The second script uses 'N' to pair each
27074
# line-number line with the line containing $LINENO, and appends
27075
# trailing '-' during substitution so that $LINENO is not a special
27076
# case at line end.
27077
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27078
# scripts with optimization help from Paolo Bonzini. Blame Lee
27079
# E. McMahon (1931-1989) for sed's syntax. :-)
27091
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27094
' >$as_me.lineno &&
27095
chmod +x "$as_me.lineno" ||
27096
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27097
{ (exit 1); exit 1; }; }
27099
# Don't try to exec as it changes $[0], causing all sort of problems
27100
# (the dirname of $[0] is not the place where we might find the
27101
# original and so on. Autoconf is especially sensitive to this).
27102
. "./$as_me.lineno"
27103
# Exit status is that of the last command.
27108
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27114
ECHO_C= ECHO_N= ECHO_T=
27115
case `echo -n x` in
27117
case `echo 'x\c'` in
27118
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
27125
if expr a : '\(a\)' >/dev/null 2>&1 &&
27126
test "X`expr 00001 : '.*\(...\)'`" = X001; then
27132
rm -f conf$$ conf$$.exe conf$$.file
27133
if test -d conf$$.dir; then
27134
rm -f conf$$.dir/conf$$.file
27140
if ln -s conf$$.file conf$$ 2>/dev/null; then
27142
# ... but there are two gotchas:
27143
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27144
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27145
# In both cases, we have to default to `cp -p'.
27146
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27148
elif ln conf$$.file conf$$ 2>/dev/null; then
27153
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27154
rmdir conf$$.dir 2>/dev/null
27156
if mkdir -p . 2>/dev/null; then
27159
test -d ./-p && rmdir ./-p
27163
if test -x / >/dev/null 2>&1; then
27164
as_test_x='test -x'
27166
if ls -dL / >/dev/null 2>&1; then
27173
if test -d "$1"; then
27179
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27180
???[sx]*):;;*)false;;esac;fi
27184
as_executable_p=$as_test_x
27186
# Sed expression to map a string onto a valid CPP name.
27187
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27189
# Sed expression to map a string onto a valid variable name.
27190
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27195
# Save the log message, to keep $[0] and so on meaningful, and to
27196
# report actual input values of CONFIG_FILES etc. instead of their
27197
# values after options handling.
27199
This file was extended by jasper $as_me 1.701.0-gs5, which was
27200
generated by GNU Autoconf 2.61. Invocation command line was
27202
CONFIG_FILES = $CONFIG_FILES
27203
CONFIG_HEADERS = $CONFIG_HEADERS
27204
CONFIG_LINKS = $CONFIG_LINKS
27205
CONFIG_COMMANDS = $CONFIG_COMMANDS
27208
on `(hostname || uname -n) 2>/dev/null | sed 1q`
27213
cat >>$CONFIG_STATUS <<_ACEOF
27214
# Files that config.status was made for.
27215
config_files="$ac_config_files"
27216
config_headers="$ac_config_headers"
27217
config_commands="$ac_config_commands"
27221
cat >>$CONFIG_STATUS <<\_ACEOF
27223
\`$as_me' instantiates files from templates according to the
27224
current configuration.
27226
Usage: $0 [OPTIONS] [FILE]...
27228
-h, --help print this help, then exit
27229
-V, --version print version number and configuration settings, then exit
27230
-q, --quiet do not print progress messages
27231
-d, --debug don't remove temporary files
27232
--recheck update $as_me by reconfiguring in the same conditions
27233
--file=FILE[:TEMPLATE]
27234
instantiate the configuration file FILE
27235
--header=FILE[:TEMPLATE]
27236
instantiate the configuration header FILE
27238
Configuration files:
27241
Configuration headers:
27244
Configuration commands:
27247
Report bugs to <bug-autoconf@gnu.org>."
27250
cat >>$CONFIG_STATUS <<_ACEOF
27252
jasper config.status 1.701.0-gs5
27253
configured by $0, generated by GNU Autoconf 2.61,
27254
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27256
Copyright (C) 2006 Free Software Foundation, Inc.
27257
This config.status script is free software; the Free Software Foundation
27258
gives unlimited permission to copy, distribute and modify it."
27265
cat >>$CONFIG_STATUS <<\_ACEOF
27266
# If no file are specified by the user, then we need to provide default
27267
# value. By we need to know if files were specified by the user.
27273
ac_option=`expr "X$1" : 'X\([^=]*\)='`
27274
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27285
# Handling of the options.
27286
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27288
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27289
echo "$ac_cs_version"; exit ;;
27290
--debug | --debu | --deb | --de | --d | -d )
27292
--file | --fil | --fi | --f )
27294
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27295
ac_need_defaults=false;;
27296
--header | --heade | --head | --hea )
27298
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27299
ac_need_defaults=false;;
27301
# Conflict between --help and --header
27302
{ echo "$as_me: error: ambiguous option: $1
27303
Try \`$0 --help' for more information." >&2
27304
{ (exit 1); exit 1; }; };;
27305
--help | --hel | -h )
27306
echo "$ac_cs_usage"; exit ;;
27307
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
27308
| -silent | --silent | --silen | --sile | --sil | --si | --s)
27311
# This is an error.
27312
-*) { echo "$as_me: error: unrecognized option: $1
27313
Try \`$0 --help' for more information." >&2
27314
{ (exit 1); exit 1; }; } ;;
27316
*) ac_config_targets="$ac_config_targets $1"
27317
ac_need_defaults=false ;;
27323
ac_configure_extra_args=
27325
if $ac_cs_silent; then
27327
ac_configure_extra_args="$ac_configure_extra_args --silent"
27331
cat >>$CONFIG_STATUS <<_ACEOF
27332
if \$ac_cs_recheck; then
27333
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27334
CONFIG_SHELL=$SHELL
27335
export CONFIG_SHELL
27336
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27340
cat >>$CONFIG_STATUS <<\_ACEOF
27344
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
27345
@%:@@%:@ Running $as_me. @%:@@%:@
27351
cat >>$CONFIG_STATUS <<_ACEOF
27355
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27359
cat >>$CONFIG_STATUS <<\_ACEOF
27361
# Handling of arguments.
27362
for ac_config_target in $ac_config_targets
27364
case $ac_config_target in
27365
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27366
"src/libjasper/include/jasper/jas_config_ac.h") CONFIG_HEADERS="$CONFIG_HEADERS src/libjasper/include/jasper/jas_config_ac.h" ;;
27367
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27368
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27369
"src/appl/Makefile") CONFIG_FILES="$CONFIG_FILES src/appl/Makefile" ;;
27370
"src/libjasper/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/Makefile" ;;
27371
"src/libjasper/base/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/base/Makefile" ;;
27372
"src/libjasper/bmp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/bmp/Makefile" ;;
27373
"src/libjasper/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/include/Makefile" ;;
27374
"src/libjasper/include/jasper/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/include/jasper/Makefile" ;;
27375
"src/libjasper/jp2/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/jp2/Makefile" ;;
27376
"src/libjasper/jpc/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/jpc/Makefile" ;;
27377
"src/libjasper/jpg/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/jpg/Makefile" ;;
27378
"src/libjasper/mif/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/mif/Makefile" ;;
27379
"src/libjasper/pgx/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/pgx/Makefile" ;;
27380
"src/libjasper/pnm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/pnm/Makefile" ;;
27381
"src/libjasper/ras/Makefile") CONFIG_FILES="$CONFIG_FILES src/libjasper/ras/Makefile" ;;
27382
"src/msvc/Makefile") CONFIG_FILES="$CONFIG_FILES src/msvc/Makefile" ;;
27383
"jasper.spec") CONFIG_FILES="$CONFIG_FILES jasper.spec" ;;
27385
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27386
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27387
{ (exit 1); exit 1; }; };;
27392
# If the user did not use the arguments to specify the items to instantiate,
27393
# then the envvar interface is used. Set only those that are not.
27394
# We use the long form for the default assignment because of an extremely
27395
# bizarre bug on SunOS 4.1.3.
27396
if $ac_need_defaults; then
27397
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27398
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27399
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27402
# Have a temporary directory for convenience. Make it in the build tree
27403
# simply because there is no reason against having it here, and in addition,
27404
# creating and moving files from /tmp can sometimes cause problems.
27405
# Hook for its removal unless debugging.
27406
# Note that there is a small window in which the directory will not be cleaned:
27407
# after its creation but before its name has been assigned to `$tmp'.
27411
trap 'exit_status=$?
27412
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27414
trap '{ (exit 1); exit 1; }' 1 2 13 15
27416
# Create a (secure) tmp directory for tmp files.
27419
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27420
test -n "$tmp" && test -d "$tmp"
27423
tmp=./conf$$-$RANDOM
27424
(umask 077 && mkdir "$tmp")
27427
echo "$me: cannot create a temporary directory in ." >&2
27428
{ (exit 1); exit 1; }
27432
# Set up the sed scripts for CONFIG_FILES section.
27435
# No need to generate the scripts if there are no CONFIG_FILES.
27436
# This happens for instance when ./config.status config.h
27437
if test -n "$CONFIG_FILES"; then
27444
for ac_last_try in false false false false false :; do
27445
cat >conf$$subs.sed <<_ACEOF
27446
SHELL!$SHELL$ac_delim
27447
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27448
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27449
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27450
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27451
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27452
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27453
exec_prefix!$exec_prefix$ac_delim
27454
prefix!$prefix$ac_delim
27455
program_transform_name!$program_transform_name$ac_delim
27456
bindir!$bindir$ac_delim
27457
sbindir!$sbindir$ac_delim
27458
libexecdir!$libexecdir$ac_delim
27459
datarootdir!$datarootdir$ac_delim
27460
datadir!$datadir$ac_delim
27461
sysconfdir!$sysconfdir$ac_delim
27462
sharedstatedir!$sharedstatedir$ac_delim
27463
localstatedir!$localstatedir$ac_delim
27464
includedir!$includedir$ac_delim
27465
oldincludedir!$oldincludedir$ac_delim
27466
docdir!$docdir$ac_delim
27467
infodir!$infodir$ac_delim
27468
htmldir!$htmldir$ac_delim
27469
dvidir!$dvidir$ac_delim
27470
pdfdir!$pdfdir$ac_delim
27471
psdir!$psdir$ac_delim
27472
libdir!$libdir$ac_delim
27473
localedir!$localedir$ac_delim
27474
mandir!$mandir$ac_delim
27475
DEFS!$DEFS$ac_delim
27476
ECHO_C!$ECHO_C$ac_delim
27477
ECHO_N!$ECHO_N$ac_delim
27478
ECHO_T!$ECHO_T$ac_delim
27479
LIBS!$LIBS$ac_delim
27480
build_alias!$build_alias$ac_delim
27481
host_alias!$host_alias$ac_delim
27482
target_alias!$target_alias$ac_delim
27483
build!$build$ac_delim
27484
build_cpu!$build_cpu$ac_delim
27485
build_vendor!$build_vendor$ac_delim
27486
build_os!$build_os$ac_delim
27487
host!$host$ac_delim
27488
host_cpu!$host_cpu$ac_delim
27489
host_vendor!$host_vendor$ac_delim
27490
host_os!$host_os$ac_delim
27491
target!$target$ac_delim
27492
target_cpu!$target_cpu$ac_delim
27493
target_vendor!$target_vendor$ac_delim
27494
target_os!$target_os$ac_delim
27495
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27496
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27497
INSTALL_DATA!$INSTALL_DATA$ac_delim
27498
CYGPATH_W!$CYGPATH_W$ac_delim
27499
PACKAGE!$PACKAGE$ac_delim
27500
VERSION!$VERSION$ac_delim
27501
ACLOCAL!$ACLOCAL$ac_delim
27502
AUTOCONF!$AUTOCONF$ac_delim
27503
AUTOMAKE!$AUTOMAKE$ac_delim
27504
AUTOHEADER!$AUTOHEADER$ac_delim
27505
MAKEINFO!$MAKEINFO$ac_delim
27506
install_sh!$install_sh$ac_delim
27507
STRIP!$STRIP$ac_delim
27508
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27509
mkdir_p!$mkdir_p$ac_delim
27511
SET_MAKE!$SET_MAKE$ac_delim
27512
am__leading_dot!$am__leading_dot$ac_delim
27513
AMTAR!$AMTAR$ac_delim
27514
am__tar!$am__tar$ac_delim
27515
am__untar!$am__untar$ac_delim
27516
JAS_MAJOR_VERSION!$JAS_MAJOR_VERSION$ac_delim
27517
JAS_MINOR_VERSION!$JAS_MINOR_VERSION$ac_delim
27518
JAS_MICRO_VERSION!$JAS_MICRO_VERSION$ac_delim
27519
JAS_VERSION!$JAS_VERSION$ac_delim
27520
JAS_RPM_RELEASE!$JAS_RPM_RELEASE$ac_delim
27521
LT_RELEASE!$LT_RELEASE$ac_delim
27522
LT_CURRENT!$LT_CURRENT$ac_delim
27523
LT_REVISION!$LT_REVISION$ac_delim
27524
LT_AGE!$LT_AGE$ac_delim
27526
CFLAGS!$CFLAGS$ac_delim
27527
LDFLAGS!$LDFLAGS$ac_delim
27528
CPPFLAGS!$CPPFLAGS$ac_delim
27529
ac_ct_CC!$ac_ct_CC$ac_delim
27530
EXEEXT!$EXEEXT$ac_delim
27531
OBJEXT!$OBJEXT$ac_delim
27532
DEPDIR!$DEPDIR$ac_delim
27533
am__include!$am__include$ac_delim
27534
am__quote!$am__quote$ac_delim
27535
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27536
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27537
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27538
CCDEPMODE!$CCDEPMODE$ac_delim
27539
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27540
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27542
LN_S!$LN_S$ac_delim
27545
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27547
elif $ac_last_try; then
27548
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27549
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27550
{ (exit 1); exit 1; }; }
27552
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27556
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27557
if test -n "$ac_eof"; then
27558
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27559
ac_eof=`expr $ac_eof + 1`
27562
cat >>$CONFIG_STATUS <<_ACEOF
27563
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27564
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27567
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27568
s/^/s,@/; s/!/@,|#_!!_#|/
27571
s/'"$ac_delim"'$/,g/; t
27573
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27574
' >>$CONFIG_STATUS <conf$$subs.sed
27575
rm -f conf$$subs.sed
27576
cat >>$CONFIG_STATUS <<_ACEOF
27582
for ac_last_try in false false false false false :; do
27583
cat >conf$$subs.sed <<_ACEOF
27584
RANLIB!$RANLIB$ac_delim
27585
GREP!$GREP$ac_delim
27586
EGREP!$EGREP$ac_delim
27587
ECHO!$ECHO$ac_delim
27590
CXXFLAGS!$CXXFLAGS$ac_delim
27591
ac_ct_CXX!$ac_ct_CXX$ac_delim
27592
CXXDEPMODE!$CXXDEPMODE$ac_delim
27593
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27594
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27595
CXXCPP!$CXXCPP$ac_delim
27597
FFLAGS!$FFLAGS$ac_delim
27598
ac_ct_F77!$ac_ct_F77$ac_delim
27599
LIBTOOL!$LIBTOOL$ac_delim
27600
XMKMF!$XMKMF$ac_delim
27601
X_CFLAGS!$X_CFLAGS$ac_delim
27602
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
27603
X_LIBS!$X_LIBS$ac_delim
27604
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
27605
HAVE_LIBJPEG_TRUE!$HAVE_LIBJPEG_TRUE$ac_delim
27606
HAVE_LIBJPEG_FALSE!$HAVE_LIBJPEG_FALSE$ac_delim
27607
HAVE_OPENGL_TRUE!$HAVE_OPENGL_TRUE$ac_delim
27608
HAVE_OPENGL_FALSE!$HAVE_OPENGL_FALSE$ac_delim
27609
OPENGL_LIBS!$OPENGL_LIBS$ac_delim
27610
HAVE_SDL!$HAVE_SDL$ac_delim
27611
HAVE_SDL_TRUE!$HAVE_SDL_TRUE$ac_delim
27612
HAVE_SDL_FALSE!$HAVE_SDL_FALSE$ac_delim
27613
SDL_CFLAGS!$SDL_CFLAGS$ac_delim
27614
SDL_LIBS!$SDL_LIBS$ac_delim
27615
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
27616
LTLIBOBJS!$LTLIBOBJS$ac_delim
27619
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
27621
elif $ac_last_try; then
27622
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27623
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27624
{ (exit 1); exit 1; }; }
27626
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27630
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27631
if test -n "$ac_eof"; then
27632
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27633
ac_eof=`expr $ac_eof + 1`
27636
cat >>$CONFIG_STATUS <<_ACEOF
27637
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27638
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27641
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27642
s/^/s,@/; s/!/@,|#_!!_#|/
27645
s/'"$ac_delim"'$/,g/; t
27647
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27648
' >>$CONFIG_STATUS <conf$$subs.sed
27649
rm -f conf$$subs.sed
27650
cat >>$CONFIG_STATUS <<_ACEOF
27657
# VPATH may cause trouble with some makes, so we remove $(srcdir),
27658
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27659
# trailing colons and then remove the whole line if VPATH becomes empty
27660
# (actually we leave an empty line to preserve line numbers).
27661
if test "x$srcdir" = x.; then
27662
ac_vpsub='/^[ ]*VPATH[ ]*=/{
27663
s/:*\$(srcdir):*/:/
27664
s/:*\${srcdir}:*/:/
27666
s/^\([^=]*=[ ]*\):*/\1/
27672
cat >>$CONFIG_STATUS <<\_ACEOF
27673
fi # test -n "$CONFIG_FILES"
27676
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27679
:[FHLC]) ac_mode=$ac_tag; continue;;
27681
case $ac_mode$ac_tag in
27683
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27684
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27685
{ (exit 1); exit 1; }; };;
27686
:[FH]-) ac_tag=-:-;;
27687
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27704
-) ac_f="$tmp/stdin";;
27705
*) # Look for the file first in the build tree, then in the source tree
27706
# (if the path is not absolute). The absolute path cannot be DOS-style,
27707
# because $ac_f cannot contain `:'.
27711
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27713
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27714
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27715
{ (exit 1); exit 1; }; };;
27717
ac_file_inputs="$ac_file_inputs $ac_f"
27720
# Let's still pretend it is `configure' which instantiates (i.e., don't
27721
# use $as_me), people would be surprised to read:
27722
# /* config.h. Generated by config.status. */
27723
configure_input="Generated from "`IFS=:
27724
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27725
if test x"$ac_file" != x-; then
27726
configure_input="$ac_file. $configure_input"
27727
{ echo "$as_me:$LINENO: creating $ac_file" >&5
27728
echo "$as_me: creating $ac_file" >&6;}
27732
*:-:* | *:-) cat >"$tmp/stdin";;
27737
ac_dir=`$as_dirname -- "$ac_file" ||
27738
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27739
X"$ac_file" : 'X\(//\)[^/]' \| \
27740
X"$ac_file" : 'X\(//\)$' \| \
27741
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27743
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27747
/^X\(\/\/\)[^/].*/{
27762
-*) as_dir=./$as_dir;;
27764
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27768
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27769
*) as_qdir=$as_dir;;
27771
as_dirs="'$as_qdir' $as_dirs"
27772
as_dir=`$as_dirname -- "$as_dir" ||
27773
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27774
X"$as_dir" : 'X\(//\)[^/]' \| \
27775
X"$as_dir" : 'X\(//\)$' \| \
27776
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27778
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27782
/^X\(\/\/\)[^/].*/{
27795
test -d "$as_dir" && break
27797
test -z "$as_dirs" || eval "mkdir $as_dirs"
27798
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27799
echo "$as_me: error: cannot create directory $as_dir" >&2;}
27800
{ (exit 1); exit 1; }; }; }
27804
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27806
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27807
# A ".." for each directory in $ac_dir_suffix.
27808
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27809
case $ac_top_builddir_sub in
27810
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27811
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27814
ac_abs_top_builddir=$ac_pwd
27815
ac_abs_builddir=$ac_pwd$ac_dir_suffix
27816
# for backward compatibility:
27817
ac_top_builddir=$ac_top_build_prefix
27820
.) # We are building in place.
27822
ac_top_srcdir=$ac_top_builddir_sub
27823
ac_abs_top_srcdir=$ac_pwd ;;
27824
[\\/]* | ?:[\\/]* ) # Absolute name.
27825
ac_srcdir=$srcdir$ac_dir_suffix;
27826
ac_top_srcdir=$srcdir
27827
ac_abs_top_srcdir=$srcdir ;;
27828
*) # Relative name.
27829
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27830
ac_top_srcdir=$ac_top_build_prefix$srcdir
27831
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27833
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27843
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27844
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27848
cat >>$CONFIG_STATUS <<\_ACEOF
27849
# If the template does not know about datarootdir, expand it.
27850
# FIXME: This hack should be removed a few years after 2.60.
27851
ac_datarootdir_hack=; ac_datarootdir_seen=
27853
case `sed -n '/datarootdir/ {
27862
' $ac_file_inputs` in
27863
*datarootdir*) ac_datarootdir_seen=yes;;
27864
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27865
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27866
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27868
cat >>$CONFIG_STATUS <<_ACEOF
27869
ac_datarootdir_hack='
27870
s&@datadir@&$datadir&g
27871
s&@docdir@&$docdir&g
27872
s&@infodir@&$infodir&g
27873
s&@localedir@&$localedir&g
27874
s&@mandir@&$mandir&g
27875
s&\\\${datarootdir}&$datarootdir&g' ;;
27879
# Neutralize VPATH when `$srcdir' = `.'.
27880
# Shell code in configure.ac might set extrasub.
27881
# FIXME: do we really want to maintain this feature?
27882
cat >>$CONFIG_STATUS <<_ACEOF
27886
cat >>$CONFIG_STATUS <<\_ACEOF
27888
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27889
s&@configure_input@&$configure_input&;t t
27890
s&@top_builddir@&$ac_top_builddir_sub&;t t
27891
s&@srcdir@&$ac_srcdir&;t t
27892
s&@abs_srcdir@&$ac_abs_srcdir&;t t
27893
s&@top_srcdir@&$ac_top_srcdir&;t t
27894
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27895
s&@builddir@&$ac_builddir&;t t
27896
s&@abs_builddir@&$ac_abs_builddir&;t t
27897
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27898
s&@INSTALL@&$ac_INSTALL&;t t
27899
$ac_datarootdir_hack
27900
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27902
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27903
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27904
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27905
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27906
which seems to be undefined. Please make sure it is defined." >&5
27907
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27908
which seems to be undefined. Please make sure it is defined." >&2;}
27912
-) cat "$tmp/out"; rm -f "$tmp/out";;
27913
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27922
# Transform confdefs.h into a sed script `conftest.defines', that
27923
# substitutes the proper values into config.h.in to produce config.h.
27924
rm -f conftest.defines conftest.tail
27925
# First, append a space to every undef/define line, to ease matching.
27926
echo 's/$/ /' >conftest.defines
27927
# Then, protect against being on the right side of a sed subst, or in
27928
# an unquoted here document, in config.status. If some macros were
27929
# called several times there might be several #defines for the same
27930
# symbol, which is useless. But do not sort them, since the last
27931
# AC_DEFINE must be honored.
27932
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27933
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27934
# NAME is the cpp macro being defined, VALUE is the value it is being given.
27935
# PARAMS is the parameter list in the macro definition--in most cases, it's
27936
# just an empty string.
27937
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27938
ac_dB='\\)[ (].*,\\1define\\2'
27946
s/^[ ]*#[ ]*define[ ][ ]*//
27951
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27952
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27953
' >>conftest.defines
27955
# Remove the space that was appended to ease matching.
27956
# Then replace #undef with comments. This is necessary, for
27957
# example, in the case of _POSIX_SOURCE, which is predefined and required
27958
# on some systems where configure will not decide to define it.
27959
# (The regexp can be short, since the line contains either #define or #undef.)
27961
s,^[ #]*u.*,/* & */,' >>conftest.defines
27963
# Break up conftest.defines:
27964
ac_max_sed_lines=50
27966
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27967
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27968
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27970
ac_in='$ac_file_inputs'
27971
ac_out='"$tmp/out1"'
27972
ac_nxt='"$tmp/out2"'
27976
# Write a here document:
27977
cat >>$CONFIG_STATUS <<_ACEOF
27978
# First, check the format of the line:
27979
cat >"\$tmp/defines.sed" <<\\CEOF
27980
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27981
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27985
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27987
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27988
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27989
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27990
grep . conftest.tail >/dev/null || break
27991
rm -f conftest.defines
27992
mv conftest.tail conftest.defines
27994
rm -f conftest.defines conftest.tail
27996
echo "ac_result=$ac_in" >>$CONFIG_STATUS
27997
cat >>$CONFIG_STATUS <<\_ACEOF
27998
if test x"$ac_file" != x-; then
27999
echo "/* $configure_input */" >"$tmp/config.h"
28000
cat "$ac_result" >>"$tmp/config.h"
28001
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28002
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28003
echo "$as_me: $ac_file is unchanged" >&6;}
28006
mv "$tmp/config.h" $ac_file
28009
echo "/* $configure_input */"
28013
# Compute $ac_file's index in $config_headers.
28015
for _am_header in $config_headers :; do
28016
case $_am_header in
28017
$ac_file | $ac_file:* )
28020
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
28023
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
28024
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28025
X$ac_file : 'X\(//\)[^/]' \| \
28026
X$ac_file : 'X\(//\)$' \| \
28027
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
28029
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28033
/^X\(\/\/\)[^/].*/{
28045
s/.*/./; q'`/stamp-h$_am_stamp_count
28048
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28049
echo "$as_me: executing $ac_file commands" >&6;}
28054
case $ac_file$ac_mode in
28055
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28056
# Strip MF so we end up with the name of the file.
28057
mf=`echo "$mf" | sed -e 's/:.*$//'`
28058
# Check whether this is an Automake generated Makefile or not.
28059
# We used to match only the files named `Makefile.in', but
28060
# some people rename them; so instead we look at the file content.
28061
# Grep'ing the first line is not enough: some people post-process
28062
# each Makefile.in and add a new line on top of each file to say so.
28063
# So let's grep whole file.
28064
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28065
dirpart=`$as_dirname -- "$mf" ||
28066
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28067
X"$mf" : 'X\(//\)[^/]' \| \
28068
X"$mf" : 'X\(//\)$' \| \
28069
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28071
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28075
/^X\(\/\/\)[^/].*/{
28091
# Extract the definition of DEPDIR, am__include, and am__quote
28092
# from the Makefile without running `make'.
28093
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28094
test -z "$DEPDIR" && continue
28095
am__include=`sed -n 's/^am__include = //p' < "$mf"`
28096
test -z "am__include" && continue
28097
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28098
# When using ansi2knr, U may be empty or an underscore; expand it
28099
U=`sed -n 's/^U = //p' < "$mf"`
28100
# Find all dependency output files, they are included files with
28101
# $(DEPDIR) in their names. We invoke sed twice because it is the
28102
# simplest approach to changing $(DEPDIR) to its actual value in the
28104
for file in `sed -n "
28105
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28106
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28107
# Make sure the directory exists.
28108
test -f "$dirpart/$file" && continue
28109
fdir=`$as_dirname -- "$file" ||
28110
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28111
X"$file" : 'X\(//\)[^/]' \| \
28112
X"$file" : 'X\(//\)$' \| \
28113
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28115
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28119
/^X\(\/\/\)[^/].*/{
28132
{ as_dir=$dirpart/$fdir
28134
-*) as_dir=./$as_dir;;
28136
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28140
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28141
*) as_qdir=$as_dir;;
28143
as_dirs="'$as_qdir' $as_dirs"
28144
as_dir=`$as_dirname -- "$as_dir" ||
28145
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28146
X"$as_dir" : 'X\(//\)[^/]' \| \
28147
X"$as_dir" : 'X\(//\)$' \| \
28148
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28150
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28154
/^X\(\/\/\)[^/].*/{
28167
test -d "$as_dir" && break
28169
test -z "$as_dirs" || eval "mkdir $as_dirs"
28170
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28171
echo "$as_me: error: cannot create directory $as_dir" >&2;}
28172
{ (exit 1); exit 1; }; }; }
28173
# echo "creating $dirpart/$file"
28174
echo '# dummy' > "$dirpart/$file"
28183
{ (exit 0); exit 0; }
28185
chmod +x $CONFIG_STATUS
28186
ac_clean_files=$ac_clean_files_save
28189
# configure is writing to config.log, and then calls config.status.
28190
# config.status does its own redirection, appending to config.log.
28191
# Unfortunately, on DOS this fails, as config.log is still kept open
28192
# by configure, so config.status won't be able to write to it; its
28193
# output is simply discarded. So we exec the FD to /dev/null,
28194
# effectively closing config.log, so it can be properly (re)opened and
28195
# appended to by config.status. When coming back to configure, we
28196
# need to make the FD available again.
28197
if test "$no_create" != yes; then
28199
ac_config_status_args=
28200
test "$silent" = yes &&
28201
ac_config_status_args="$ac_config_status_args --quiet"
28203
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28205
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
28206
# would make configure fail if this is the last instruction.
28207
$ac_cs_success || { (exit 1); exit 1; }