2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.63 for libffcall/trampoline_r 0x010B.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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
# Pre-4.2 versions of Zsh do 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
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
as_echo_n='/usr/ucb/echo -n'
55
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
expr "X$arg" : "X\\(.*\\)$as_nl";
61
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
as_echo_n='sh -c $as_echo_n_body as_echo'
69
as_echo='sh -c $as_echo_body as_echo'
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
75
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81
# Support unset when possible.
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90
# We need space, tab and new line, in precisely that order. Quoting is
91
# there to prevent editors from complaining about space-tab.
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93
# splitting by setting IFS to empty value.)
96
# Find who we are. Look in the path if we contain no directory separator.
98
*[\\/]* ) as_myself=$0 ;;
99
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103
test -z "$as_dir" && as_dir=.
104
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
115
if test ! -f "$as_myself"; then
116
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
{ (exit 1); exit 1; }
120
# Work around bugs in pre-3.0 UWIN ksh.
121
for as_var in ENV MAIL MAILPATH
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134
# Required to use basename.
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
test "X`expr 00001 : '.*\(...\)'`" = X001; then
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149
# Name of the executable.
150
as_me=`$as_basename -- "$0" ||
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
X"$0" : 'X\(//\)$' \| \
153
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155
sed '/^.*\/\([^/][^/]*\)\/*$/{
173
if test "x$CONFIG_SHELL" = x; then
174
if (eval ":") 2>/dev/null; then
180
if test $as_have_required = yes && (eval ":
190
as_func_ret_success () {
193
as_func_ret_failure () {
198
if as_func_success; then
202
echo as_func_success failed.
205
if as_func_failure; then
207
echo as_func_failure succeeded.
210
if as_func_ret_success; then
214
echo as_func_ret_success failed.
217
if as_func_ret_failure; then
219
echo as_func_ret_failure succeeded.
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226
echo positional parameters were not saved.
229
test \$exitcode = 0) || { (exit 1); exit 1; }
234
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
") 2> /dev/null; then
240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244
test -z "$as_dir" && as_dir=.
247
for as_base in sh bash ksh sh5; do
248
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255
for as_shell in $as_candidate_shells $SHELL; do
256
# Try only shells that exist, to save several forks.
257
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
{ ("$as_shell") 2> /dev/null <<\_ASEOF
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
# is contrary to our usage. Disable this feature.
264
alias -g '${1+"$@"}'='"$@"'
267
case `(set -o) 2>/dev/null` in
268
*posix*) set -o posix ;;
277
CONFIG_SHELL=$as_shell
279
if { "$as_shell" 2> /dev/null <<\_ASEOF
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
# is contrary to our usage. Disable this feature.
285
alias -g '${1+"$@"}'='"$@"'
288
case `(set -o) 2>/dev/null` in
289
*posix*) set -o posix ;;
305
as_func_ret_success () {
308
as_func_ret_failure () {
313
if as_func_success; then
317
echo as_func_success failed.
320
if as_func_failure; then
322
echo as_func_failure succeeded.
325
if as_func_ret_success; then
329
echo as_func_ret_success failed.
332
if as_func_ret_failure; then
334
echo as_func_ret_failure succeeded.
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
341
echo positional parameters were not saved.
344
test $exitcode = 0) || { (exit 1); exit 1; }
349
test "x$as_lineno_1" != "x$as_lineno_2" &&
350
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361
if test "x$CONFIG_SHELL" != x; then
362
for as_var in BASH_ENV ENV
363
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370
if test $as_have_required = no; then
371
echo This script requires a shell more modern than all the
372
echo shells that I found on your system. Please install a
373
echo modern shell, or manually run the script under such a
374
echo shell if you do have one.
375
{ (exit 1); exit 1; }
385
(eval "as_func_return () {
394
as_func_ret_success () {
397
as_func_ret_failure () {
402
if as_func_success; then
406
echo as_func_success failed.
409
if as_func_failure; then
411
echo as_func_failure succeeded.
414
if as_func_ret_success; then
418
echo as_func_ret_success failed.
421
if as_func_ret_failure; then
423
echo as_func_ret_failure succeeded.
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430
echo positional parameters were not saved.
433
test \$exitcode = 0") || {
434
echo No shell found that supports shell functions.
435
echo Please tell bug-autoconf@gnu.org about your system,
436
echo including any error possibly output before this message.
437
echo This can help us improve future autoconf versions.
438
echo Configuration will now proceed without shell functions.
445
test "x$as_lineno_1" != "x$as_lineno_2" &&
446
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
# uniformly replaced by the line number. The first 'sed' inserts a
450
# line-number line after each line using $LINENO; the second 'sed'
451
# does the real work. The second script uses 'N' to pair each
452
# line-number line with the line containing $LINENO, and appends
453
# trailing '-' during substitution so that $LINENO is not a special
455
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
# scripts with optimization help from Paolo Bonzini. Blame Lee
457
# E. McMahon (1931-1989) for sed's syntax. :-)
469
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473
chmod +x "$as_me.lineno" ||
474
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475
{ (exit 1); exit 1; }; }
477
# Don't try to exec as it changes $[0], causing all sort of problems
478
# (the dirname of $[0] is not the place where we might find the
479
# original and so on. Autoconf is especially sensitive to this).
481
# Exit status is that of the last command.
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492
ECHO_C= ECHO_N= ECHO_T=
496
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
503
test "X`expr 00001 : '.*\(...\)'`" = X001; then
509
rm -f conf$$ conf$$.exe conf$$.file
510
if test -d conf$$.dir; then
511
rm -f conf$$.dir/conf$$.file
514
mkdir conf$$.dir 2>/dev/null
516
if (echo >conf$$.file) 2>/dev/null; then
517
if ln -s conf$$.file conf$$ 2>/dev/null; then
519
# ... but there are two gotchas:
520
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522
# In both cases, we have to default to `cp -p'.
523
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525
elif ln conf$$.file conf$$ 2>/dev/null; then
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534
rmdir conf$$.dir 2>/dev/null
536
if mkdir -p . 2>/dev/null; then
539
test -d ./-p && rmdir ./-p
543
if test -x / >/dev/null 2>&1; then
546
if ls -dL / >/dev/null 2>&1; then
553
if test -d "$1"; then
559
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560
???[sx]*):;;*)false;;esac;fi
564
as_executable_p=$as_test_x
566
# Sed expression to map a string onto a valid CPP name.
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569
# Sed expression to map a string onto a valid variable name.
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
# Check that we are running under the correct shell.
576
SHELL=${CONFIG_SHELL-/bin/sh}
580
# Remove one level of quotation (which was required for Make).
581
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
586
if test "X$1" = X--no-reexec; then
587
# Discard the --no-reexec flag, and continue.
589
elif test "X$1" = X--fallback-echo; then
590
# Avoid inline document here, it may be left over
592
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593
# Yippee, $echo works!
596
# Restart under the correct shell.
597
exec $SHELL "$0" --no-reexec ${1+"$@"}
600
if test "X$1" = X--fallback-echo; then
601
# used as fallback echo
609
# The HP-UX ksh and POSIX shell print the target directory to stdout
611
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613
if test -z "$ECHO"; then
614
if test "X${echo_test_string+set}" != Xset; then
615
# find a string as large as possible, as long as the shell can cope with it
616
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
619
echo_test_string=`eval $cmd` &&
620
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
627
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629
test "X$echo_testing_string" = "X$echo_test_string"; then
632
# The Solaris, AIX, and Digital Unix default echo programs unquote
633
# backslashes. This makes it impossible to quote backslashes using
634
# echo "$something" | sed 's/\\/\\\\/g'
636
# So, first we look for a working echo in the user's PATH.
638
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639
for dir in $PATH /usr/ucb; do
641
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644
test "X$echo_testing_string" = "X$echo_test_string"; then
651
if test "X$echo" = Xecho; then
652
# We didn't find a better echo, so look for alternatives.
653
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655
test "X$echo_testing_string" = "X$echo_test_string"; then
656
# This shell has a builtin print -r that does the trick.
658
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659
test "X$CONFIG_SHELL" != X/bin/ksh; then
660
# If we have ksh, try running configure again with it.
661
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662
export ORIGINAL_CONFIG_SHELL
663
CONFIG_SHELL=/bin/ksh
665
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
669
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671
test "X$echo_testing_string" = "X$echo_test_string"; then
674
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675
test "X$echo_testing_string" = 'X\t' &&
676
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677
test "X$echo_testing_string" = "X$echo_test_string"; then
678
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680
SHELL="$CONFIG_SHELL"
682
echo="$CONFIG_SHELL $0 --fallback-echo"
683
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684
test "X$echo_testing_string" = 'X\t' &&
685
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686
test "X$echo_testing_string" = "X$echo_test_string"; then
687
echo="$CONFIG_SHELL $0 --fallback-echo"
689
# maybe with a smaller string...
692
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
700
if test "$prev" != 'sed 50q "$0"'; then
701
echo_test_string=`eval $prev`
702
export echo_test_string
703
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705
# Oops. We lost completely, so just stick with echo.
714
# Copy echo and quote the copy suitably for passing to libtool from
715
# the Makefile, instead of quoting the original, which is used later.
717
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
724
tagnames=${tagnames+${tagnames},}CXX
726
tagnames=${tagnames+${tagnames},}F77
728
exec 7<&0 </dev/null 6>&1
731
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732
# so uname gets run too.
733
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
738
ac_default_prefix=/usr/local
740
ac_config_libobj_dir=.
746
SHELL=${CONFIG_SHELL-/bin/sh}
748
# Identity of this package.
749
PACKAGE_NAME='libffcall/trampoline_r'
750
PACKAGE_TARNAME='libffcall-trampoline_r'
751
PACKAGE_VERSION='0x010B'
752
PACKAGE_STRING='libffcall/trampoline_r 0x010B'
755
ac_unique_file="trampoline_r.h.in"
756
# Factoring default headers for most tests.
757
ac_includes_default="\
759
#ifdef HAVE_SYS_TYPES_H
760
# include <sys/types.h>
762
#ifdef HAVE_SYS_STAT_H
763
# include <sys/stat.h>
769
# ifdef HAVE_STDLIB_H
774
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
779
#ifdef HAVE_STRINGS_H
780
# include <strings.h>
782
#ifdef HAVE_INTTYPES_H
783
# include <inttypes.h>
792
ac_subst_vars='LTLIBOBJS
865
program_transform_name
877
enable_option_checking
886
ac_precious_vars='build_alias
903
# Initialize some variables set by options.
905
ac_init_version=false
906
ac_unrecognized_opts=
908
# The variables have the same names as the options, with
909
# dashes changed to underlines.
917
program_transform_name=s,x,x,
925
# Installation directory options.
926
# These are left unexpanded so users can "make install exec_prefix=/foo"
927
# and all the variables that are supposed to be based on exec_prefix
928
# by default will actually change.
929
# Use braces instead of parens because sh, perl, etc. also accept them.
930
# (The list follows the same order as the GNU Coding Standards.)
931
bindir='${exec_prefix}/bin'
932
sbindir='${exec_prefix}/sbin'
933
libexecdir='${exec_prefix}/libexec'
934
datarootdir='${prefix}/share'
935
datadir='${datarootdir}'
936
sysconfdir='${prefix}/etc'
937
sharedstatedir='${prefix}/com'
938
localstatedir='${prefix}/var'
939
includedir='${prefix}/include'
940
oldincludedir='/usr/include'
941
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942
infodir='${datarootdir}/info'
947
libdir='${exec_prefix}/lib'
948
localedir='${datarootdir}/locale'
949
mandir='${datarootdir}/man'
955
# If the previous option needs an argument, assign it.
956
if test -n "$ac_prev"; then
957
eval $ac_prev=\$ac_option
963
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967
# Accept the important Cygnus configure options, so we can diagnose typos.
969
case $ac_dashdash$ac_option in
973
-bindir | --bindir | --bindi | --bind | --bin | --bi)
975
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978
-build | --build | --buil | --bui | --bu)
979
ac_prev=build_alias ;;
980
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
981
build_alias=$ac_optarg ;;
983
-cache-file | --cache-file | --cache-fil | --cache-fi \
984
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985
ac_prev=cache_file ;;
986
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988
cache_file=$ac_optarg ;;
991
cache_file=config.cache ;;
993
-datadir | --datadir | --datadi | --datad)
995
-datadir=* | --datadir=* | --datadi=* | --datad=*)
996
datadir=$ac_optarg ;;
998
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999
| --dataroo | --dataro | --datar)
1000
ac_prev=datarootdir ;;
1001
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003
datarootdir=$ac_optarg ;;
1005
-disable-* | --disable-*)
1006
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007
# Reject names that are not valid shell variable names.
1008
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1010
{ (exit 1); exit 1; }; }
1011
ac_useropt_orig=$ac_useropt
1012
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013
case $ac_user_opts in
1015
"enable_$ac_useropt"
1017
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018
ac_unrecognized_sep=', ';;
1020
eval enable_$ac_useropt=no ;;
1022
-docdir | --docdir | --docdi | --doc | --do)
1024
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025
docdir=$ac_optarg ;;
1027
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030
dvidir=$ac_optarg ;;
1032
-enable-* | --enable-*)
1033
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034
# Reject names that are not valid shell variable names.
1035
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1037
{ (exit 1); exit 1; }; }
1038
ac_useropt_orig=$ac_useropt
1039
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040
case $ac_user_opts in
1042
"enable_$ac_useropt"
1044
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1045
ac_unrecognized_sep=', ';;
1047
eval enable_$ac_useropt=\$ac_optarg ;;
1049
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051
| --exec | --exe | --ex)
1052
ac_prev=exec_prefix ;;
1053
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055
| --exec=* | --exe=* | --ex=*)
1056
exec_prefix=$ac_optarg ;;
1058
-gas | --gas | --ga | --g)
1059
# Obsolete; use --with-gas.
1062
-help | --help | --hel | --he | -h)
1063
ac_init_help=long ;;
1064
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065
ac_init_help=recursive ;;
1066
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067
ac_init_help=short ;;
1069
-host | --host | --hos | --ho)
1070
ac_prev=host_alias ;;
1071
-host=* | --host=* | --hos=* | --ho=*)
1072
host_alias=$ac_optarg ;;
1074
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078
htmldir=$ac_optarg ;;
1080
-includedir | --includedir | --includedi | --included | --include \
1081
| --includ | --inclu | --incl | --inc)
1082
ac_prev=includedir ;;
1083
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084
| --includ=* | --inclu=* | --incl=* | --inc=*)
1085
includedir=$ac_optarg ;;
1087
-infodir | --infodir | --infodi | --infod | --info | --inf)
1089
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090
infodir=$ac_optarg ;;
1092
-libdir | --libdir | --libdi | --libd)
1094
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1095
libdir=$ac_optarg ;;
1097
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098
| --libexe | --libex | --libe)
1099
ac_prev=libexecdir ;;
1100
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101
| --libexe=* | --libex=* | --libe=*)
1102
libexecdir=$ac_optarg ;;
1104
-localedir | --localedir | --localedi | --localed | --locale)
1105
ac_prev=localedir ;;
1106
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107
localedir=$ac_optarg ;;
1109
-localstatedir | --localstatedir | --localstatedi | --localstated \
1110
| --localstate | --localstat | --localsta | --localst | --locals)
1111
ac_prev=localstatedir ;;
1112
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114
localstatedir=$ac_optarg ;;
1116
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119
mandir=$ac_optarg ;;
1121
-nfp | --nfp | --nf)
1122
# Obsolete; use --without-fp.
1125
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126
| --no-cr | --no-c | -n)
1129
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135
| --oldin | --oldi | --old | --ol | --o)
1136
ac_prev=oldincludedir ;;
1137
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140
oldincludedir=$ac_optarg ;;
1142
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145
prefix=$ac_optarg ;;
1147
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1148
| --program-pre | --program-pr | --program-p)
1149
ac_prev=program_prefix ;;
1150
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1151
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152
program_prefix=$ac_optarg ;;
1154
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1155
| --program-suf | --program-su | --program-s)
1156
ac_prev=program_suffix ;;
1157
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1158
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159
program_suffix=$ac_optarg ;;
1161
-program-transform-name | --program-transform-name \
1162
| --program-transform-nam | --program-transform-na \
1163
| --program-transform-n | --program-transform- \
1164
| --program-transform | --program-transfor \
1165
| --program-transfo | --program-transf \
1166
| --program-trans | --program-tran \
1167
| --progr-tra | --program-tr | --program-t)
1168
ac_prev=program_transform_name ;;
1169
-program-transform-name=* | --program-transform-name=* \
1170
| --program-transform-nam=* | --program-transform-na=* \
1171
| --program-transform-n=* | --program-transform-=* \
1172
| --program-transform=* | --program-transfor=* \
1173
| --program-transfo=* | --program-transf=* \
1174
| --program-trans=* | --program-tran=* \
1175
| --progr-tra=* | --program-tr=* | --program-t=*)
1176
program_transform_name=$ac_optarg ;;
1178
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181
pdfdir=$ac_optarg ;;
1183
-psdir | --psdir | --psdi | --psd | --ps)
1185
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189
| -silent | --silent | --silen | --sile | --sil)
1192
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196
sbindir=$ac_optarg ;;
1198
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1199
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200
| --sharedst | --shareds | --shared | --share | --shar \
1202
ac_prev=sharedstatedir ;;
1203
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207
sharedstatedir=$ac_optarg ;;
1209
-site | --site | --sit)
1211
-site=* | --site=* | --sit=*)
1214
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217
srcdir=$ac_optarg ;;
1219
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220
| --syscon | --sysco | --sysc | --sys | --sy)
1221
ac_prev=sysconfdir ;;
1222
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224
sysconfdir=$ac_optarg ;;
1226
-target | --target | --targe | --targ | --tar | --ta | --t)
1227
ac_prev=target_alias ;;
1228
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229
target_alias=$ac_optarg ;;
1231
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1234
-version | --version | --versio | --versi | --vers | -V)
1235
ac_init_version=: ;;
1238
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239
# Reject names that are not valid shell variable names.
1240
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1242
{ (exit 1); exit 1; }; }
1243
ac_useropt_orig=$ac_useropt
1244
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245
case $ac_user_opts in
1249
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250
ac_unrecognized_sep=', ';;
1252
eval with_$ac_useropt=\$ac_optarg ;;
1254
-without-* | --without-*)
1255
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256
# Reject names that are not valid shell variable names.
1257
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1259
{ (exit 1); exit 1; }; }
1260
ac_useropt_orig=$ac_useropt
1261
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262
case $ac_user_opts in
1266
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267
ac_unrecognized_sep=', ';;
1269
eval with_$ac_useropt=no ;;
1272
# Obsolete; use --with-x.
1275
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276
| --x-incl | --x-inc | --x-in | --x-i)
1277
ac_prev=x_includes ;;
1278
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1280
x_includes=$ac_optarg ;;
1282
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1283
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284
ac_prev=x_libraries ;;
1285
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1287
x_libraries=$ac_optarg ;;
1289
-*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1290
Try \`$0 --help' for more information." >&2
1291
{ (exit 1); exit 1; }; }
1295
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1296
# Reject names that are not valid shell variable names.
1297
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1298
{ $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1299
{ (exit 1); exit 1; }; }
1300
eval $ac_envvar=\$ac_optarg
1301
export $ac_envvar ;;
1304
# FIXME: should be removed in autoconf 3.0.
1305
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1306
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1307
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1308
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1314
if test -n "$ac_prev"; then
1315
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1316
{ $as_echo "$as_me: error: missing argument to $ac_option" >&2
1317
{ (exit 1); exit 1; }; }
1320
if test -n "$ac_unrecognized_opts"; then
1321
case $enable_option_checking in
1323
fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1324
{ (exit 1); exit 1; }; } ;;
1325
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1329
# Check all directory arguments for consistency.
1330
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331
datadir sysconfdir sharedstatedir localstatedir includedir \
1332
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333
libdir localedir mandir
1335
eval ac_val=\$$ac_var
1336
# Remove trailing slashes.
1339
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340
eval $ac_var=\$ac_val;;
1342
# Be sure to have absolute directory names.
1344
[\\/$]* | ?:[\\/]* ) continue;;
1345
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347
{ $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1348
{ (exit 1); exit 1; }; }
1351
# There might be people who depend on the old broken behavior: `$host'
1352
# used to hold the argument of --host etc.
1353
# FIXME: To remove some day.
1356
target=$target_alias
1358
# FIXME: To remove some day.
1359
if test "x$host_alias" != x; then
1360
if test "x$build_alias" = x; then
1361
cross_compiling=maybe
1362
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1363
If a cross compiler is detected then cross compile mode will be used." >&2
1364
elif test "x$build_alias" != "x$host_alias"; then
1370
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1372
test "$silent" = yes && exec 6>/dev/null
1375
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376
ac_ls_di=`ls -di .` &&
1377
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378
{ $as_echo "$as_me: error: working directory cannot be determined" >&2
1379
{ (exit 1); exit 1; }; }
1380
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381
{ $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1382
{ (exit 1); exit 1; }; }
1385
# Find the source files, if location was not specified.
1386
if test -z "$srcdir"; then
1387
ac_srcdir_defaulted=yes
1388
# Try the directory containing this script, then the parent directory.
1389
ac_confdir=`$as_dirname -- "$as_myself" ||
1390
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1391
X"$as_myself" : 'X\(//\)[^/]' \| \
1392
X"$as_myself" : 'X\(//\)$' \| \
1393
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1394
$as_echo X"$as_myself" |
1395
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413
if test ! -r "$srcdir/$ac_unique_file"; then
1417
ac_srcdir_defaulted=no
1419
if test ! -r "$srcdir/$ac_unique_file"; then
1420
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1421
{ $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1422
{ (exit 1); exit 1; }; }
1424
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1426
cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1427
{ (exit 1); exit 1; }; }
1429
# When building in place, set srcdir=.
1430
if test "$ac_abs_confdir" = "$ac_pwd"; then
1433
# Remove unnecessary trailing slashes from srcdir.
1434
# Double slashes in file names in object file debugging info
1435
# mess up M-x gdb in Emacs.
1437
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439
for ac_var in $ac_precious_vars; do
1440
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441
eval ac_env_${ac_var}_value=\$${ac_var}
1442
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447
# Report the --help message.
1449
if test "$ac_init_help" = "long"; then
1450
# Omit some internal or obsolete options to make the list less imposing.
1451
# This message is too long to be a string in the A/UX 3.1 sh.
1453
\`configure' configures libffcall/trampoline_r 0x010B to adapt to many kinds of systems.
1455
Usage: $0 [OPTION]... [VAR=VALUE]...
1457
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458
VAR=VALUE. See below for descriptions of some of the useful variables.
1460
Defaults for the options are specified in brackets.
1463
-h, --help display this help and exit
1464
--help=short display options specific to this package
1465
--help=recursive display the short help of all the included packages
1466
-V, --version display version information and exit
1467
-q, --quiet, --silent do not print \`checking...' messages
1468
--cache-file=FILE cache test results in FILE [disabled]
1469
-C, --config-cache alias for \`--cache-file=config.cache'
1470
-n, --no-create do not create output files
1471
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1473
Installation directories:
1474
--prefix=PREFIX install architecture-independent files in PREFIX
1475
[$ac_default_prefix]
1476
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479
By default, \`make install' will install all the files in
1480
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1481
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482
for instance \`--prefix=\$HOME'.
1484
For better control, use the options below.
1486
Fine tuning of the installation directories:
1487
--bindir=DIR user executables [EPREFIX/bin]
1488
--sbindir=DIR system admin executables [EPREFIX/sbin]
1489
--libexecdir=DIR program executables [EPREFIX/libexec]
1490
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493
--libdir=DIR object code libraries [EPREFIX/lib]
1494
--includedir=DIR C header files [PREFIX/include]
1495
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1496
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498
--infodir=DIR info documentation [DATAROOTDIR/info]
1499
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500
--mandir=DIR man documentation [DATAROOTDIR/man]
1501
--docdir=DIR documentation root
1502
[DATAROOTDIR/doc/libffcall-trampoline_r]
1503
--htmldir=DIR html documentation [DOCDIR]
1504
--dvidir=DIR dvi documentation [DOCDIR]
1505
--pdfdir=DIR pdf documentation [DOCDIR]
1506
--psdir=DIR ps documentation [DOCDIR]
1512
--build=BUILD configure for building on BUILD [guessed]
1513
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1517
if test -n "$ac_init_help"; then
1518
case $ac_init_help in
1519
short | recursive ) echo "Configuration of libffcall/trampoline_r 0x010B:";;
1524
--disable-option-checking ignore unrecognized --enable/--with options
1525
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1526
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1527
--enable-shared[=PKGS] build shared libraries [default=no]
1528
--enable-static[=PKGS] build static libraries [default=yes]
1529
--enable-fast-install[=PKGS]
1530
optimize for fast installation [default=yes]
1531
--disable-libtool-lock avoid locking (might break parallel builds)
1534
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1535
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1536
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1537
--with-pic try to use only PIC/non-PIC objects [default=use
1539
--with-tags[=TAGS] include additional configurations [automatic]
1541
Some influential environment variables:
1542
CC C compiler command
1543
CFLAGS C compiler flags
1544
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1545
nonstandard directory <lib dir>
1546
LIBS libraries to pass to the linker, e.g. -l<library>
1547
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1548
you have headers in a nonstandard directory <include dir>
1550
CXX C++ compiler command
1551
CXXFLAGS C++ compiler flags
1552
CXXCPP C++ preprocessor
1553
F77 Fortran 77 compiler command
1554
FFLAGS Fortran 77 compiler flags
1556
Use these variables to override the choices made by `configure' or to help
1557
it to find libraries and programs with nonstandard names/locations.
1563
if test "$ac_init_help" = "recursive"; then
1564
# If there are subdirs, report their specific --help.
1565
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566
test -d "$ac_dir" ||
1567
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1575
# A ".." for each directory in $ac_dir_suffix.
1576
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1577
case $ac_top_builddir_sub in
1578
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1582
ac_abs_top_builddir=$ac_pwd
1583
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1584
# for backward compatibility:
1585
ac_top_builddir=$ac_top_build_prefix
1588
.) # We are building in place.
1590
ac_top_srcdir=$ac_top_builddir_sub
1591
ac_abs_top_srcdir=$ac_pwd ;;
1592
[\\/]* | ?:[\\/]* ) # Absolute name.
1593
ac_srcdir=$srcdir$ac_dir_suffix;
1594
ac_top_srcdir=$srcdir
1595
ac_abs_top_srcdir=$srcdir ;;
1597
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1598
ac_top_srcdir=$ac_top_build_prefix$srcdir
1599
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
cd "$ac_dir" || { ac_status=$?; continue; }
1604
# Check for guested configure.
1605
if test -f "$ac_srcdir/configure.gnu"; then
1607
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1608
elif test -f "$ac_srcdir/configure"; then
1610
$SHELL "$ac_srcdir/configure" --help=recursive
1612
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614
cd "$ac_pwd" || { ac_status=$?; break; }
1618
test -n "$ac_init_help" && exit $ac_status
1619
if $ac_init_version; then
1621
libffcall/trampoline_r configure 0x010B
1622
generated by GNU Autoconf 2.63
1624
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1625
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1626
This configure script is free software; the Free Software Foundation
1627
gives unlimited permission to copy, distribute and modify it.
1631
cat >config.log <<_ACEOF
1632
This file contains any messages produced by compilers while
1633
running configure, to aid debugging if configure makes a mistake.
1635
It was created by libffcall/trampoline_r $as_me 0x010B, which was
1636
generated by GNU Autoconf 2.63. Invocation command line was
1648
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1649
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1650
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1651
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1652
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1654
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1655
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1657
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1658
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1659
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1660
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1661
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1662
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1663
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1667
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671
test -z "$as_dir" && as_dir=.
1672
$as_echo "PATH: $as_dir"
1688
# Keep a trace of the command line.
1689
# Strip out --no-create and --no-recursion so they do not pile up.
1690
# Strip out --silent because we don't want to record it for future runs.
1691
# Also quote any args containing shell meta-characters.
1692
# Make two passes to allow for proper duplicate-argument suppression.
1696
ac_must_keep_next=false
1702
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1703
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1704
| -silent | --silent | --silen | --sile | --sil)
1707
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1710
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1712
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1713
if test $ac_must_keep_next = true; then
1714
ac_must_keep_next=false # Got value, back to normal.
1717
*=* | --config-cache | -C | -disable-* | --disable-* \
1718
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1719
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1720
| -with-* | --with-* | -without-* | --without-* | --x)
1721
case "$ac_configure_args0 " in
1722
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1725
-* ) ac_must_keep_next=true ;;
1728
ac_configure_args="$ac_configure_args '$ac_arg'"
1733
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1734
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1736
# When interrupted or exit'd, cleanup temporary files, and complete
1737
# config.log. We remove comments because anyway the quotes in there
1738
# would cause problems or look ugly.
1739
# WARNING: Use '\'' to represent an apostrophe within the trap.
1740
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1741
trap 'exit_status=$?
1742
# Save into config.log some information that might help in debugging.
1747
## ---------------- ##
1748
## Cache variables. ##
1749
## ---------------- ##
1752
# The following way of writing the cache mishandles newlines in values,
1754
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1755
eval ac_val=\$$ac_var
1759
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1760
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1763
_ | IFS | as_nl) ;; #(
1764
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1765
*) $as_unset $ac_var ;;
1770
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1771
*${as_nl}ac_space=\ *)
1773
"s/'\''/'\''\\\\'\'''\''/g;
1774
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1777
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1785
## ----------------- ##
1786
## Output variables. ##
1787
## ----------------- ##
1790
for ac_var in $ac_subst_vars
1792
eval ac_val=\$$ac_var
1794
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1796
$as_echo "$ac_var='\''$ac_val'\''"
1800
if test -n "$ac_subst_files"; then
1802
## ------------------- ##
1803
## File substitutions. ##
1804
## ------------------- ##
1807
for ac_var in $ac_subst_files
1809
eval ac_val=\$$ac_var
1811
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813
$as_echo "$ac_var='\''$ac_val'\''"
1818
if test -s confdefs.h; then
1828
test "$ac_signal" != 0 &&
1829
$as_echo "$as_me: caught signal $ac_signal"
1830
$as_echo "$as_me: exit $exit_status"
1832
rm -f core *.core core.conftest.* &&
1833
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1836
for ac_signal in 1 2 13 15; do
1837
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1841
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1842
rm -f -r conftest* confdefs.h
1844
# Predefined preprocessor variables.
1846
cat >>confdefs.h <<_ACEOF
1847
#define PACKAGE_NAME "$PACKAGE_NAME"
1851
cat >>confdefs.h <<_ACEOF
1852
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1856
cat >>confdefs.h <<_ACEOF
1857
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1861
cat >>confdefs.h <<_ACEOF
1862
#define PACKAGE_STRING "$PACKAGE_STRING"
1866
cat >>confdefs.h <<_ACEOF
1867
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1871
# Let the site file select an alternate cache file if it wants to.
1872
# Prefer an explicitly selected file to automatically selected ones.
1875
if test -n "$CONFIG_SITE"; then
1876
ac_site_file1=$CONFIG_SITE
1877
elif test "x$prefix" != xNONE; then
1878
ac_site_file1=$prefix/share/config.site
1879
ac_site_file2=$prefix/etc/config.site
1881
ac_site_file1=$ac_default_prefix/share/config.site
1882
ac_site_file2=$ac_default_prefix/etc/config.site
1884
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1886
test "x$ac_site_file" = xNONE && continue
1887
if test -r "$ac_site_file"; then
1888
{ $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1889
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1890
sed 's/^/| /' "$ac_site_file" >&5
1895
if test -r "$cache_file"; then
1896
# Some versions of bash will fail to source /dev/null (special
1897
# files actually), so we avoid doing that.
1898
if test -f "$cache_file"; then
1899
{ $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1900
$as_echo "$as_me: loading cache $cache_file" >&6;}
1902
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1903
*) . "./$cache_file";;
1907
{ $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1908
$as_echo "$as_me: creating cache $cache_file" >&6;}
1912
# Check that the precious variables saved in the cache have kept the same
1914
ac_cache_corrupted=false
1915
for ac_var in $ac_precious_vars; do
1916
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1917
eval ac_new_set=\$ac_env_${ac_var}_set
1918
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1919
eval ac_new_val=\$ac_env_${ac_var}_value
1920
case $ac_old_set,$ac_new_set in
1922
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1923
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1924
ac_cache_corrupted=: ;;
1926
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1927
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1928
ac_cache_corrupted=: ;;
1931
if test "x$ac_old_val" != "x$ac_new_val"; then
1932
# differences in whitespace do not lead to failure.
1933
ac_old_val_w=`echo x $ac_old_val`
1934
ac_new_val_w=`echo x $ac_new_val`
1935
if test "$ac_old_val_w" != "$ac_new_val_w"; then
1936
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1937
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1938
ac_cache_corrupted=:
1940
{ $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1941
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1942
eval $ac_var=\$ac_old_val
1944
{ $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1945
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1946
{ $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1947
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1950
# Pass precious variables to config.status.
1951
if test "$ac_new_set" = set; then
1953
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1954
*) ac_arg=$ac_var=$ac_new_val ;;
1956
case " $ac_configure_args " in
1957
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1958
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1962
if $ac_cache_corrupted; then
1963
{ $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1964
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1965
{ $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1966
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1967
{ { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1968
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1969
{ (exit 1); exit 1; }; }
1997
ac_cpp='$CPP $CPPFLAGS'
1998
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2004
ac_config_headers="$ac_config_headers config.h"
2006
ac_config_headers="$ac_config_headers trampoline_r.h"
2008
ac_config_files="$ac_config_files Makefile"
2011
ac_cpp='$CPP $CPPFLAGS'
2012
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2013
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2014
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2015
if test -n "$ac_tool_prefix"; then
2016
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2017
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2018
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2019
$as_echo_n "checking for $ac_word... " >&6; }
2020
if test "${ac_cv_prog_CC+set}" = set; then
2021
$as_echo_n "(cached) " >&6
2023
if test -n "$CC"; then
2024
ac_cv_prog_CC="$CC" # Let the user override the test.
2026
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030
test -z "$as_dir" && as_dir=.
2031
for ac_exec_ext in '' $ac_executable_extensions; do
2032
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2033
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2034
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044
if test -n "$CC"; then
2045
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2046
$as_echo "$CC" >&6; }
2048
{ $as_echo "$as_me:$LINENO: result: no" >&5
2049
$as_echo "no" >&6; }
2054
if test -z "$ac_cv_prog_CC"; then
2056
# Extract the first word of "gcc", so it can be a program name with args.
2057
set dummy gcc; ac_word=$2
2058
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2059
$as_echo_n "checking for $ac_word... " >&6; }
2060
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2061
$as_echo_n "(cached) " >&6
2063
if test -n "$ac_ct_CC"; then
2064
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070
test -z "$as_dir" && as_dir=.
2071
for ac_exec_ext in '' $ac_executable_extensions; do
2072
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2073
ac_cv_prog_ac_ct_CC="gcc"
2074
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2084
if test -n "$ac_ct_CC"; then
2085
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2086
$as_echo "$ac_ct_CC" >&6; }
2088
{ $as_echo "$as_me:$LINENO: result: no" >&5
2089
$as_echo "no" >&6; }
2092
if test "x$ac_ct_CC" = x; then
2095
case $cross_compiling:$ac_tool_warned in
2097
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2098
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2099
ac_tool_warned=yes ;;
2107
if test -z "$CC"; then
2108
if test -n "$ac_tool_prefix"; then
2109
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2110
set dummy ${ac_tool_prefix}cc; ac_word=$2
2111
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2112
$as_echo_n "checking for $ac_word... " >&6; }
2113
if test "${ac_cv_prog_CC+set}" = set; then
2114
$as_echo_n "(cached) " >&6
2116
if test -n "$CC"; then
2117
ac_cv_prog_CC="$CC" # Let the user override the test.
2119
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123
test -z "$as_dir" && as_dir=.
2124
for ac_exec_ext in '' $ac_executable_extensions; do
2125
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126
ac_cv_prog_CC="${ac_tool_prefix}cc"
2127
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137
if test -n "$CC"; then
2138
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2139
$as_echo "$CC" >&6; }
2141
{ $as_echo "$as_me:$LINENO: result: no" >&5
2142
$as_echo "no" >&6; }
2148
if test -z "$CC"; then
2149
# Extract the first word of "cc", so it can be a program name with args.
2150
set dummy cc; ac_word=$2
2151
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2152
$as_echo_n "checking for $ac_word... " >&6; }
2153
if test "${ac_cv_prog_CC+set}" = set; then
2154
$as_echo_n "(cached) " >&6
2156
if test -n "$CC"; then
2157
ac_cv_prog_CC="$CC" # Let the user override the test.
2160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164
test -z "$as_dir" && as_dir=.
2165
for ac_exec_ext in '' $ac_executable_extensions; do
2166
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2168
ac_prog_rejected=yes
2172
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179
if test $ac_prog_rejected = yes; then
2180
# We found a bogon in the path, so make sure we never use it.
2181
set dummy $ac_cv_prog_CC
2183
if test $# != 0; then
2184
# We chose a different compiler from the bogus one.
2185
# However, it has the same basename, so the bogon will be chosen
2186
# first if we set CC to just the basename; use the full file name.
2188
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2194
if test -n "$CC"; then
2195
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2196
$as_echo "$CC" >&6; }
2198
{ $as_echo "$as_me:$LINENO: result: no" >&5
2199
$as_echo "no" >&6; }
2204
if test -z "$CC"; then
2205
if test -n "$ac_tool_prefix"; then
2206
for ac_prog in cl.exe
2208
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2209
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2210
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2211
$as_echo_n "checking for $ac_word... " >&6; }
2212
if test "${ac_cv_prog_CC+set}" = set; then
2213
$as_echo_n "(cached) " >&6
2215
if test -n "$CC"; then
2216
ac_cv_prog_CC="$CC" # Let the user override the test.
2218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222
test -z "$as_dir" && as_dir=.
2223
for ac_exec_ext in '' $ac_executable_extensions; do
2224
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2226
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236
if test -n "$CC"; then
2237
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2238
$as_echo "$CC" >&6; }
2240
{ $as_echo "$as_me:$LINENO: result: no" >&5
2241
$as_echo "no" >&6; }
2245
test -n "$CC" && break
2248
if test -z "$CC"; then
2250
for ac_prog in cl.exe
2252
# Extract the first word of "$ac_prog", so it can be a program name with args.
2253
set dummy $ac_prog; ac_word=$2
2254
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2255
$as_echo_n "checking for $ac_word... " >&6; }
2256
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2257
$as_echo_n "(cached) " >&6
2259
if test -n "$ac_ct_CC"; then
2260
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2262
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266
test -z "$as_dir" && as_dir=.
2267
for ac_exec_ext in '' $ac_executable_extensions; do
2268
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269
ac_cv_prog_ac_ct_CC="$ac_prog"
2270
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2280
if test -n "$ac_ct_CC"; then
2281
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2282
$as_echo "$ac_ct_CC" >&6; }
2284
{ $as_echo "$as_me:$LINENO: result: no" >&5
2285
$as_echo "no" >&6; }
2289
test -n "$ac_ct_CC" && break
2292
if test "x$ac_ct_CC" = x; then
2295
case $cross_compiling:$ac_tool_warned in
2297
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2298
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2299
ac_tool_warned=yes ;;
2308
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2309
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2311
See \`config.log' for more details." >&5
2312
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2313
See \`config.log' for more details." >&2;}
2314
{ (exit 1); exit 1; }; }; }
2316
# Provide some information about the compiler.
2317
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2320
{ (ac_try="$ac_compiler --version >&5"
2322
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323
*) ac_try_echo=$ac_try;;
2325
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2326
$as_echo "$ac_try_echo") >&5
2327
(eval "$ac_compiler --version >&5") 2>&5
2329
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330
(exit $ac_status); }
2331
{ (ac_try="$ac_compiler -v >&5"
2333
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334
*) ac_try_echo=$ac_try;;
2336
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2337
$as_echo "$ac_try_echo") >&5
2338
(eval "$ac_compiler -v >&5") 2>&5
2340
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341
(exit $ac_status); }
2342
{ (ac_try="$ac_compiler -V >&5"
2344
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345
*) ac_try_echo=$ac_try;;
2347
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2348
$as_echo "$ac_try_echo") >&5
2349
(eval "$ac_compiler -V >&5") 2>&5
2351
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352
(exit $ac_status); }
2354
cat >conftest.$ac_ext <<_ACEOF
2357
cat confdefs.h >>conftest.$ac_ext
2358
cat >>conftest.$ac_ext <<_ACEOF
2359
/* end confdefs.h. */
2369
ac_clean_files_save=$ac_clean_files
2370
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2371
# Try to create an executable without -o first, disregard a.out.
2372
# It will help us diagnose broken compilers, and finding out an intuition
2374
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2375
$as_echo_n "checking for C compiler default output file name... " >&6; }
2376
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2378
# The possible output files:
2379
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2382
for ac_file in $ac_files
2385
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2386
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2391
if { (ac_try="$ac_link_default"
2393
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394
*) ac_try_echo=$ac_try;;
2396
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2397
$as_echo "$ac_try_echo") >&5
2398
(eval "$ac_link_default") 2>&5
2400
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401
(exit $ac_status); }; then
2402
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2403
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2404
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2405
# so that the user can short-circuit this test for compilers unknown to
2407
for ac_file in $ac_files ''
2409
test -f "$ac_file" || continue
2411
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2414
# We found the default executable, but exeext='' is most
2418
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2420
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422
# We set ac_cv_exeext here because the later test for it is not
2423
# safe: cross compilers may not add the suffix if given an `-o'
2424
# argument, so we may need to know it at that point already.
2425
# Even if this section looks crufty: it has the advantage of
2432
test "$ac_cv_exeext" = no && ac_cv_exeext=
2438
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2439
$as_echo "$ac_file" >&6; }
2440
if test -z "$ac_file"; then
2441
$as_echo "$as_me: failed program was:" >&5
2442
sed 's/^/| /' conftest.$ac_ext >&5
2444
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2445
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2446
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2447
See \`config.log' for more details." >&5
2448
$as_echo "$as_me: error: C compiler cannot create executables
2449
See \`config.log' for more details." >&2;}
2450
{ (exit 77); exit 77; }; }; }
2453
ac_exeext=$ac_cv_exeext
2455
# Check that the compiler produces executables we can run. If not, either
2456
# the compiler is broken, or we cross compile.
2457
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2458
$as_echo_n "checking whether the C compiler works... " >&6; }
2459
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2460
# If not cross compiling, check that we can run a simple program.
2461
if test "$cross_compiling" != yes; then
2462
if { ac_try='./$ac_file'
2463
{ (case "(($ac_try" in
2464
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465
*) ac_try_echo=$ac_try;;
2467
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2468
$as_echo "$ac_try_echo") >&5
2469
(eval "$ac_try") 2>&5
2471
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472
(exit $ac_status); }; }; then
2475
if test "$cross_compiling" = maybe; then
2478
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2479
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2480
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2481
If you meant to cross compile, use \`--host'.
2482
See \`config.log' for more details." >&5
2483
$as_echo "$as_me: error: cannot run C compiled programs.
2484
If you meant to cross compile, use \`--host'.
2485
See \`config.log' for more details." >&2;}
2486
{ (exit 1); exit 1; }; }; }
2490
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2491
$as_echo "yes" >&6; }
2493
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2494
ac_clean_files=$ac_clean_files_save
2495
# Check that the compiler produces executables we can run. If not, either
2496
# the compiler is broken, or we cross compile.
2497
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2498
$as_echo_n "checking whether we are cross compiling... " >&6; }
2499
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2500
$as_echo "$cross_compiling" >&6; }
2502
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2503
$as_echo_n "checking for suffix of executables... " >&6; }
2504
if { (ac_try="$ac_link"
2506
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507
*) ac_try_echo=$ac_try;;
2509
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2510
$as_echo "$ac_try_echo") >&5
2511
(eval "$ac_link") 2>&5
2513
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514
(exit $ac_status); }; then
2515
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2516
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2517
# work properly (i.e., refer to `conftest.exe'), while it won't with
2519
for ac_file in conftest.exe conftest conftest.*; do
2520
test -f "$ac_file" || continue
2522
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2523
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2529
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2530
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2531
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2532
See \`config.log' for more details." >&5
2533
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2534
See \`config.log' for more details." >&2;}
2535
{ (exit 1); exit 1; }; }; }
2538
rm -f conftest$ac_cv_exeext
2539
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2540
$as_echo "$ac_cv_exeext" >&6; }
2542
rm -f conftest.$ac_ext
2543
EXEEXT=$ac_cv_exeext
2545
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2546
$as_echo_n "checking for suffix of object files... " >&6; }
2547
if test "${ac_cv_objext+set}" = set; then
2548
$as_echo_n "(cached) " >&6
2550
cat >conftest.$ac_ext <<_ACEOF
2553
cat confdefs.h >>conftest.$ac_ext
2554
cat >>conftest.$ac_ext <<_ACEOF
2555
/* end confdefs.h. */
2565
rm -f conftest.o conftest.obj
2566
if { (ac_try="$ac_compile"
2568
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569
*) ac_try_echo=$ac_try;;
2571
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2572
$as_echo "$ac_try_echo") >&5
2573
(eval "$ac_compile") 2>&5
2575
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576
(exit $ac_status); }; then
2577
for ac_file in conftest.o conftest.obj conftest.*; do
2578
test -f "$ac_file" || continue;
2580
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2581
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2586
$as_echo "$as_me: failed program was:" >&5
2587
sed 's/^/| /' conftest.$ac_ext >&5
2589
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2590
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2591
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2592
See \`config.log' for more details." >&5
2593
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2594
See \`config.log' for more details." >&2;}
2595
{ (exit 1); exit 1; }; }; }
2598
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2600
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2601
$as_echo "$ac_cv_objext" >&6; }
2602
OBJEXT=$ac_cv_objext
2604
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2605
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2606
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2607
$as_echo_n "(cached) " >&6
2609
cat >conftest.$ac_ext <<_ACEOF
2612
cat confdefs.h >>conftest.$ac_ext
2613
cat >>conftest.$ac_ext <<_ACEOF
2614
/* end confdefs.h. */
2627
rm -f conftest.$ac_objext
2628
if { (ac_try="$ac_compile"
2630
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631
*) ac_try_echo=$ac_try;;
2633
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2634
$as_echo "$ac_try_echo") >&5
2635
(eval "$ac_compile") 2>conftest.er1
2637
grep -v '^ *+' conftest.er1 >conftest.err
2639
cat conftest.err >&5
2640
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641
(exit $ac_status); } && {
2642
test -z "$ac_c_werror_flag" ||
2643
test ! -s conftest.err
2644
} && test -s conftest.$ac_objext; then
2647
$as_echo "$as_me: failed program was:" >&5
2648
sed 's/^/| /' conftest.$ac_ext >&5
2653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2657
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2658
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2659
if test $ac_compiler_gnu = yes; then
2664
ac_test_CFLAGS=${CFLAGS+set}
2665
ac_save_CFLAGS=$CFLAGS
2666
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2667
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2668
if test "${ac_cv_prog_cc_g+set}" = set; then
2669
$as_echo_n "(cached) " >&6
2671
ac_save_c_werror_flag=$ac_c_werror_flag
2672
ac_c_werror_flag=yes
2675
cat >conftest.$ac_ext <<_ACEOF
2678
cat confdefs.h >>conftest.$ac_ext
2679
cat >>conftest.$ac_ext <<_ACEOF
2680
/* end confdefs.h. */
2690
rm -f conftest.$ac_objext
2691
if { (ac_try="$ac_compile"
2693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694
*) ac_try_echo=$ac_try;;
2696
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2697
$as_echo "$ac_try_echo") >&5
2698
(eval "$ac_compile") 2>conftest.er1
2700
grep -v '^ *+' conftest.er1 >conftest.err
2702
cat conftest.err >&5
2703
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704
(exit $ac_status); } && {
2705
test -z "$ac_c_werror_flag" ||
2706
test ! -s conftest.err
2707
} && test -s conftest.$ac_objext; then
2710
$as_echo "$as_me: failed program was:" >&5
2711
sed 's/^/| /' conftest.$ac_ext >&5
2714
cat >conftest.$ac_ext <<_ACEOF
2717
cat confdefs.h >>conftest.$ac_ext
2718
cat >>conftest.$ac_ext <<_ACEOF
2719
/* end confdefs.h. */
2729
rm -f conftest.$ac_objext
2730
if { (ac_try="$ac_compile"
2732
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733
*) ac_try_echo=$ac_try;;
2735
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2736
$as_echo "$ac_try_echo") >&5
2737
(eval "$ac_compile") 2>conftest.er1
2739
grep -v '^ *+' conftest.er1 >conftest.err
2741
cat conftest.err >&5
2742
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743
(exit $ac_status); } && {
2744
test -z "$ac_c_werror_flag" ||
2745
test ! -s conftest.err
2746
} && test -s conftest.$ac_objext; then
2749
$as_echo "$as_me: failed program was:" >&5
2750
sed 's/^/| /' conftest.$ac_ext >&5
2752
ac_c_werror_flag=$ac_save_c_werror_flag
2754
cat >conftest.$ac_ext <<_ACEOF
2757
cat confdefs.h >>conftest.$ac_ext
2758
cat >>conftest.$ac_ext <<_ACEOF
2759
/* end confdefs.h. */
2769
rm -f conftest.$ac_objext
2770
if { (ac_try="$ac_compile"
2772
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773
*) ac_try_echo=$ac_try;;
2775
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2776
$as_echo "$ac_try_echo") >&5
2777
(eval "$ac_compile") 2>conftest.er1
2779
grep -v '^ *+' conftest.er1 >conftest.err
2781
cat conftest.err >&5
2782
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783
(exit $ac_status); } && {
2784
test -z "$ac_c_werror_flag" ||
2785
test ! -s conftest.err
2786
} && test -s conftest.$ac_objext; then
2789
$as_echo "$as_me: failed program was:" >&5
2790
sed 's/^/| /' conftest.$ac_ext >&5
2795
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2798
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802
ac_c_werror_flag=$ac_save_c_werror_flag
2804
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2805
$as_echo "$ac_cv_prog_cc_g" >&6; }
2806
if test "$ac_test_CFLAGS" = set; then
2807
CFLAGS=$ac_save_CFLAGS
2808
elif test $ac_cv_prog_cc_g = yes; then
2809
if test "$GCC" = yes; then
2815
if test "$GCC" = yes; then
2821
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2822
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2823
if test "${ac_cv_prog_cc_c89+set}" = set; then
2824
$as_echo_n "(cached) " >&6
2826
ac_cv_prog_cc_c89=no
2828
cat >conftest.$ac_ext <<_ACEOF
2831
cat confdefs.h >>conftest.$ac_ext
2832
cat >>conftest.$ac_ext <<_ACEOF
2833
/* end confdefs.h. */
2836
#include <sys/types.h>
2837
#include <sys/stat.h>
2838
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2839
struct buf { int x; };
2840
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2841
static char *e (p, i)
2847
static char *f (char * (*g) (char **, int), char **p, ...)
2852
s = g (p, va_arg (v,int));
2857
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2858
function prototypes and stuff, but not '\xHH' hex character constants.
2859
These don't provoke an error unfortunately, instead are silently treated
2860
as 'x'. The following induces an error, until -std is added to get
2861
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2862
array size at least. It's necessary to write '\x00'==0 to get something
2863
that's true only with -std. */
2864
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2866
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2867
inside strings and character constants. */
2869
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2871
int test (int i, double x);
2872
struct s1 {int (*f) (int a);};
2873
struct s2 {int (*f) (double a);};
2874
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2880
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2885
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2886
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2888
CC="$ac_save_CC $ac_arg"
2889
rm -f conftest.$ac_objext
2890
if { (ac_try="$ac_compile"
2892
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893
*) ac_try_echo=$ac_try;;
2895
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2896
$as_echo "$ac_try_echo") >&5
2897
(eval "$ac_compile") 2>conftest.er1
2899
grep -v '^ *+' conftest.er1 >conftest.err
2901
cat conftest.err >&5
2902
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903
(exit $ac_status); } && {
2904
test -z "$ac_c_werror_flag" ||
2905
test ! -s conftest.err
2906
} && test -s conftest.$ac_objext; then
2907
ac_cv_prog_cc_c89=$ac_arg
2909
$as_echo "$as_me: failed program was:" >&5
2910
sed 's/^/| /' conftest.$ac_ext >&5
2915
rm -f core conftest.err conftest.$ac_objext
2916
test "x$ac_cv_prog_cc_c89" != "xno" && break
2918
rm -f conftest.$ac_ext
2923
case "x$ac_cv_prog_cc_c89" in
2925
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
2926
$as_echo "none needed" >&6; } ;;
2928
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
2929
$as_echo "unsupported" >&6; } ;;
2931
CC="$CC $ac_cv_prog_cc_c89"
2932
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2933
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2938
ac_cpp='$CPP $CPPFLAGS'
2939
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944
ac_cpp='$CPP $CPPFLAGS'
2945
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2949
$as_echo_n "checking how to run the C preprocessor... " >&6; }
2950
# On Suns, sometimes $CPP names a directory.
2951
if test -n "$CPP" && test -d "$CPP"; then
2954
if test -z "$CPP"; then
2955
if test "${ac_cv_prog_CPP+set}" = set; then
2956
$as_echo_n "(cached) " >&6
2958
# Double quotes because CPP needs to be expanded
2959
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2962
for ac_c_preproc_warn_flag in '' yes
2964
# Use a header file that comes with gcc, so configuring glibc
2965
# with a fresh cross-compiler works.
2966
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2967
# <limits.h> exists even on freestanding compilers.
2968
# On the NeXT, cc -E runs the code through the compiler's parser,
2969
# not just through cpp. "Syntax error" is here to catch this case.
2970
cat >conftest.$ac_ext <<_ACEOF
2973
cat confdefs.h >>conftest.$ac_ext
2974
cat >>conftest.$ac_ext <<_ACEOF
2975
/* end confdefs.h. */
2977
# include <limits.h>
2979
# include <assert.h>
2983
if { (ac_try="$ac_cpp conftest.$ac_ext"
2985
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986
*) ac_try_echo=$ac_try;;
2988
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2989
$as_echo "$ac_try_echo") >&5
2990
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2992
grep -v '^ *+' conftest.er1 >conftest.err
2994
cat conftest.err >&5
2995
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996
(exit $ac_status); } >/dev/null && {
2997
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2998
test ! -s conftest.err
3002
$as_echo "$as_me: failed program was:" >&5
3003
sed 's/^/| /' conftest.$ac_ext >&5
3005
# Broken: fails on valid input.
3009
rm -f conftest.err conftest.$ac_ext
3011
# OK, works on sane cases. Now check whether nonexistent headers
3012
# can be detected and how.
3013
cat >conftest.$ac_ext <<_ACEOF
3016
cat confdefs.h >>conftest.$ac_ext
3017
cat >>conftest.$ac_ext <<_ACEOF
3018
/* end confdefs.h. */
3019
#include <ac_nonexistent.h>
3021
if { (ac_try="$ac_cpp conftest.$ac_ext"
3023
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024
*) ac_try_echo=$ac_try;;
3026
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3027
$as_echo "$ac_try_echo") >&5
3028
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3030
grep -v '^ *+' conftest.er1 >conftest.err
3032
cat conftest.err >&5
3033
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034
(exit $ac_status); } >/dev/null && {
3035
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3036
test ! -s conftest.err
3038
# Broken: success on invalid input.
3041
$as_echo "$as_me: failed program was:" >&5
3042
sed 's/^/| /' conftest.$ac_ext >&5
3044
# Passes both tests.
3049
rm -f conftest.err conftest.$ac_ext
3052
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3053
rm -f conftest.err conftest.$ac_ext
3054
if $ac_preproc_ok; then
3066
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3067
$as_echo "$CPP" >&6; }
3069
for ac_c_preproc_warn_flag in '' yes
3071
# Use a header file that comes with gcc, so configuring glibc
3072
# with a fresh cross-compiler works.
3073
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074
# <limits.h> exists even on freestanding compilers.
3075
# On the NeXT, cc -E runs the code through the compiler's parser,
3076
# not just through cpp. "Syntax error" is here to catch this case.
3077
cat >conftest.$ac_ext <<_ACEOF
3080
cat confdefs.h >>conftest.$ac_ext
3081
cat >>conftest.$ac_ext <<_ACEOF
3082
/* end confdefs.h. */
3084
# include <limits.h>
3086
# include <assert.h>
3090
if { (ac_try="$ac_cpp conftest.$ac_ext"
3092
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093
*) ac_try_echo=$ac_try;;
3095
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096
$as_echo "$ac_try_echo") >&5
3097
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3099
grep -v '^ *+' conftest.er1 >conftest.err
3101
cat conftest.err >&5
3102
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103
(exit $ac_status); } >/dev/null && {
3104
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3105
test ! -s conftest.err
3109
$as_echo "$as_me: failed program was:" >&5
3110
sed 's/^/| /' conftest.$ac_ext >&5
3112
# Broken: fails on valid input.
3116
rm -f conftest.err conftest.$ac_ext
3118
# OK, works on sane cases. Now check whether nonexistent headers
3119
# can be detected and how.
3120
cat >conftest.$ac_ext <<_ACEOF
3123
cat confdefs.h >>conftest.$ac_ext
3124
cat >>conftest.$ac_ext <<_ACEOF
3125
/* end confdefs.h. */
3126
#include <ac_nonexistent.h>
3128
if { (ac_try="$ac_cpp conftest.$ac_ext"
3130
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131
*) ac_try_echo=$ac_try;;
3133
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3134
$as_echo "$ac_try_echo") >&5
3135
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3137
grep -v '^ *+' conftest.er1 >conftest.err
3139
cat conftest.err >&5
3140
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141
(exit $ac_status); } >/dev/null && {
3142
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143
test ! -s conftest.err
3145
# Broken: success on invalid input.
3148
$as_echo "$as_me: failed program was:" >&5
3149
sed 's/^/| /' conftest.$ac_ext >&5
3151
# Passes both tests.
3156
rm -f conftest.err conftest.$ac_ext
3159
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160
rm -f conftest.err conftest.$ac_ext
3161
if $ac_preproc_ok; then
3164
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3165
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3167
See \`config.log' for more details." >&5
3168
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3169
See \`config.log' for more details." >&2;}
3170
{ (exit 1); exit 1; }; }; }
3174
ac_cpp='$CPP $CPPFLAGS'
3175
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3182
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3183
if test "${ac_cv_path_GREP+set}" = set; then
3184
$as_echo_n "(cached) " >&6
3186
if test -z "$GREP"; then
3187
ac_path_GREP_found=false
3188
# Loop through the user's path and test for each of PROGNAME-LIST
3189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3193
test -z "$as_dir" && as_dir=.
3194
for ac_prog in grep ggrep; do
3195
for ac_exec_ext in '' $ac_executable_extensions; do
3196
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3197
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3198
# Check for GNU ac_path_GREP and select it if it is found.
3199
# Check for GNU $ac_path_GREP
3200
case `"$ac_path_GREP" --version 2>&1` in
3202
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3205
$as_echo_n 0123456789 >"conftest.in"
3208
cat "conftest.in" "conftest.in" >"conftest.tmp"
3209
mv "conftest.tmp" "conftest.in"
3210
cp "conftest.in" "conftest.nl"
3211
$as_echo 'GREP' >> "conftest.nl"
3212
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3213
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3214
ac_count=`expr $ac_count + 1`
3215
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3216
# Best one so far, save it but keep looking for a better one
3217
ac_cv_path_GREP="$ac_path_GREP"
3218
ac_path_GREP_max=$ac_count
3220
# 10*(2^10) chars as input seems more than enough
3221
test $ac_count -gt 10 && break
3223
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3226
$ac_path_GREP_found && break 3
3231
if test -z "$ac_cv_path_GREP"; then
3232
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3233
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3234
{ (exit 1); exit 1; }; }
3237
ac_cv_path_GREP=$GREP
3241
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3242
$as_echo "$ac_cv_path_GREP" >&6; }
3243
GREP="$ac_cv_path_GREP"
3246
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3247
$as_echo_n "checking for egrep... " >&6; }
3248
if test "${ac_cv_path_EGREP+set}" = set; then
3249
$as_echo_n "(cached) " >&6
3251
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3252
then ac_cv_path_EGREP="$GREP -E"
3254
if test -z "$EGREP"; then
3255
ac_path_EGREP_found=false
3256
# Loop through the user's path and test for each of PROGNAME-LIST
3257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3261
test -z "$as_dir" && as_dir=.
3262
for ac_prog in egrep; do
3263
for ac_exec_ext in '' $ac_executable_extensions; do
3264
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3265
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3266
# Check for GNU ac_path_EGREP and select it if it is found.
3267
# Check for GNU $ac_path_EGREP
3268
case `"$ac_path_EGREP" --version 2>&1` in
3270
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3273
$as_echo_n 0123456789 >"conftest.in"
3276
cat "conftest.in" "conftest.in" >"conftest.tmp"
3277
mv "conftest.tmp" "conftest.in"
3278
cp "conftest.in" "conftest.nl"
3279
$as_echo 'EGREP' >> "conftest.nl"
3280
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3281
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3282
ac_count=`expr $ac_count + 1`
3283
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3284
# Best one so far, save it but keep looking for a better one
3285
ac_cv_path_EGREP="$ac_path_EGREP"
3286
ac_path_EGREP_max=$ac_count
3288
# 10*(2^10) chars as input seems more than enough
3289
test $ac_count -gt 10 && break
3291
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3294
$ac_path_EGREP_found && break 3
3299
if test -z "$ac_cv_path_EGREP"; then
3300
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3301
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3302
{ (exit 1); exit 1; }; }
3305
ac_cv_path_EGREP=$EGREP
3310
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3311
$as_echo "$ac_cv_path_EGREP" >&6; }
3312
EGREP="$ac_cv_path_EGREP"
3315
if test $ac_cv_c_compiler_gnu = yes; then
3316
{ $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3317
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
3318
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3319
$as_echo_n "(cached) " >&6
3321
ac_pattern="Autoconf.*'x'"
3322
cat >conftest.$ac_ext <<_ACEOF
3325
cat confdefs.h >>conftest.$ac_ext
3326
cat >>conftest.$ac_ext <<_ACEOF
3327
/* end confdefs.h. */
3331
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3332
$EGREP "$ac_pattern" >/dev/null 2>&1; then
3333
ac_cv_prog_gcc_traditional=yes
3335
ac_cv_prog_gcc_traditional=no
3340
if test $ac_cv_prog_gcc_traditional = no; then
3341
cat >conftest.$ac_ext <<_ACEOF
3344
cat confdefs.h >>conftest.$ac_ext
3345
cat >>conftest.$ac_ext <<_ACEOF
3346
/* end confdefs.h. */
3350
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3351
$EGREP "$ac_pattern" >/dev/null 2>&1; then
3352
ac_cv_prog_gcc_traditional=yes
3358
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3359
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3360
if test $ac_cv_prog_gcc_traditional = yes; then
3361
CC="$CC -traditional"
3366
{ $as_echo "$as_me:$LINENO: checking whether using GNU C" >&5
3367
$as_echo_n "checking whether using GNU C... " >&6; }
3368
if test "${cl_cv_prog_cc_gcc+set}" = set; then
3369
$as_echo_n "(cached) " >&6
3372
cat >conftest.$ac_ext <<_ACEOF
3375
cat confdefs.h >>conftest.$ac_ext
3376
cat >>conftest.$ac_ext <<_ACEOF
3377
/* end confdefs.h. */
3383
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3384
$EGREP "yes" >/dev/null 2>&1; then
3385
cl_cv_prog_cc_gcc=yes
3387
cl_cv_prog_cc_gcc=no
3393
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_cc_gcc" >&5
3394
$as_echo "$cl_cv_prog_cc_gcc" >&6; }
3395
if test $cl_cv_prog_cc_gcc = yes; then
3397
GCC_X_NONE='-x none'
3405
{ $as_echo "$as_me:$LINENO: checking for underscore in external names" >&5
3406
$as_echo_n "checking for underscore in external names... " >&6; }
3407
if test "${cl_cv_prog_as_underscore+set}" = set; then
3408
$as_echo_n "(cached) " >&6
3411
cat > conftest.c <<EOF
3415
int foo() { return 0; }
3417
# look for the assembly language name in the .s file
3418
{ ac_try='${CC-cc} -S conftest.c'
3419
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423
(exit $ac_status); }; } >/dev/null 2>&1
3424
if grep _foo conftest.s >/dev/null ; then
3425
cl_cv_prog_as_underscore=yes
3427
cl_cv_prog_as_underscore=no
3432
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_as_underscore" >&5
3433
$as_echo "$cl_cv_prog_as_underscore" >&6; }
3434
if test $cl_cv_prog_as_underscore = yes; then
3437
cat >>confdefs.h <<\_ACEOF
3438
#define ASM_UNDERSCORE /**/
3445
if test -n "$ac_tool_prefix"; then
3446
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3447
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3448
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3449
$as_echo_n "checking for $ac_word... " >&6; }
3450
if test "${ac_cv_prog_RANLIB+set}" = set; then
3451
$as_echo_n "(cached) " >&6
3453
if test -n "$RANLIB"; then
3454
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3456
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460
test -z "$as_dir" && as_dir=.
3461
for ac_exec_ext in '' $ac_executable_extensions; do
3462
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3463
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3464
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3473
RANLIB=$ac_cv_prog_RANLIB
3474
if test -n "$RANLIB"; then
3475
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3476
$as_echo "$RANLIB" >&6; }
3478
{ $as_echo "$as_me:$LINENO: result: no" >&5
3479
$as_echo "no" >&6; }
3484
if test -z "$ac_cv_prog_RANLIB"; then
3485
ac_ct_RANLIB=$RANLIB
3486
# Extract the first word of "ranlib", so it can be a program name with args.
3487
set dummy ranlib; ac_word=$2
3488
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3489
$as_echo_n "checking for $ac_word... " >&6; }
3490
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3491
$as_echo_n "(cached) " >&6
3493
if test -n "$ac_ct_RANLIB"; then
3494
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3496
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500
test -z "$as_dir" && as_dir=.
3501
for ac_exec_ext in '' $ac_executable_extensions; do
3502
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3503
ac_cv_prog_ac_ct_RANLIB="ranlib"
3504
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3513
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3514
if test -n "$ac_ct_RANLIB"; then
3515
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3516
$as_echo "$ac_ct_RANLIB" >&6; }
3518
{ $as_echo "$as_me:$LINENO: result: no" >&5
3519
$as_echo "no" >&6; }
3522
if test "x$ac_ct_RANLIB" = x; then
3525
case $cross_compiling:$ac_tool_warned in
3527
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3528
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3529
ac_tool_warned=yes ;;
3531
RANLIB=$ac_ct_RANLIB
3534
RANLIB="$ac_cv_prog_RANLIB"
3537
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3538
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3540
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3541
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3542
$as_echo_n "(cached) " >&6
3544
cat >conftest.make <<\_ACEOF
3547
@echo '@@@%%%=$(MAKE)=@@@%%%'
3549
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3550
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3552
eval ac_cv_prog_make_${ac_make}_set=yes;;
3554
eval ac_cv_prog_make_${ac_make}_set=no;;
3558
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3559
{ $as_echo "$as_me:$LINENO: result: yes" >&5
3560
$as_echo "yes" >&6; }
3563
{ $as_echo "$as_me:$LINENO: result: no" >&5
3564
$as_echo "no" >&6; }
3565
SET_MAKE="MAKE=${MAKE-make}"
3569
for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do
3570
if test -f "$ac_dir/install-sh"; then
3572
ac_install_sh="$ac_aux_dir/install-sh -c"
3574
elif test -f "$ac_dir/install.sh"; then
3576
ac_install_sh="$ac_aux_dir/install.sh -c"
3578
elif test -f "$ac_dir/shtool"; then
3580
ac_install_sh="$ac_aux_dir/shtool install -c"
3584
if test -z "$ac_aux_dir"; then
3585
{ { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../build-aux \"$srcdir\"/../../build-aux" >&5
3586
$as_echo "$as_me: error: cannot find install-sh or install.sh in ../../build-aux \"$srcdir\"/../../build-aux" >&2;}
3587
{ (exit 1); exit 1; }; }
3590
# These three variables are undocumented and unsupported,
3591
# and are intended to be withdrawn in a future Autoconf release.
3592
# They can cause serious problems if a builder's source tree is in a directory
3593
# whose full name contains unusual characters.
3594
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3595
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3596
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3599
# Find a good install program. We prefer a C program (faster),
3600
# so one script is as good as another. But avoid the broken or
3601
# incompatible versions:
3602
# SysV /etc/install, /usr/sbin/install
3603
# SunOS /usr/etc/install
3604
# IRIX /sbin/install
3606
# AmigaOS /C/install, which installs bootblocks on floppy discs
3607
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3608
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3609
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3610
# OS/2's system install, which has a completely different semantic
3611
# ./install, which can be erroneously created by make from ./install.sh.
3612
# Reject install programs that cannot install multiple files.
3613
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3614
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3615
if test -z "$INSTALL"; then
3616
if test "${ac_cv_path_install+set}" = set; then
3617
$as_echo_n "(cached) " >&6
3619
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623
test -z "$as_dir" && as_dir=.
3624
# Account for people who put trailing slashes in PATH elements.
3626
./ | .// | /cC/* | \
3627
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3628
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3631
# OSF1 and SCO ODT 3.0 have their own names for install.
3632
# Don't use installbsd from OSF since it installs stuff as root
3634
for ac_prog in ginstall scoinst install; do
3635
for ac_exec_ext in '' $ac_executable_extensions; do
3636
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3637
if test $ac_prog = install &&
3638
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3639
# AIX install. It has an incompatible calling convention.
3641
elif test $ac_prog = install &&
3642
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3643
# program-specific install script used by HP pwplus--don't use.
3646
rm -rf conftest.one conftest.two conftest.dir
3647
echo one > conftest.one
3648
echo two > conftest.two
3650
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3651
test -s conftest.one && test -s conftest.two &&
3652
test -s conftest.dir/conftest.one &&
3653
test -s conftest.dir/conftest.two
3655
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3668
rm -rf conftest.one conftest.two conftest.dir
3671
if test "${ac_cv_path_install+set}" = set; then
3672
INSTALL=$ac_cv_path_install
3674
# As a last resort, use the slow shell script. Don't cache a
3675
# value for INSTALL within a source directory, because that will
3676
# break other packages using the cache if that directory is
3677
# removed, or if the value is a relative name.
3678
INSTALL=$ac_install_sh
3681
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3682
$as_echo "$INSTALL" >&6; }
3684
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3685
# It thinks the first close brace ends the variable substitution.
3686
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3688
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3690
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3692
{ $as_echo "$as_me:$LINENO: checking how to make hard links" >&5
3693
$as_echo_n "checking how to make hard links... " >&6; }
3694
if test "${cl_cv_prog_LN+set}" = set; then
3695
$as_echo_n "(cached) " >&6
3698
rm -f conftestdata conftestfile
3699
echo data > conftestfile
3700
if ln conftestfile conftestdata 2>/dev/null; then
3703
cl_cv_prog_LN="cp -p"
3705
rm -f conftestdata conftestfile
3708
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_LN" >&5
3709
$as_echo "$cl_cv_prog_LN" >&6; }
3712
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3713
$as_echo_n "checking whether ln -s works... " >&6; }
3714
if test "${cl_cv_prog_LN_S_works+set}" = set; then
3715
$as_echo_n "(cached) " >&6
3718
if ln -s X conftestdata 2>/dev/null; then
3719
cl_cv_prog_LN_S_works=yes
3721
cl_cv_prog_LN_S_works=no
3726
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_LN_S_works" >&5
3727
$as_echo "$cl_cv_prog_LN_S_works" >&6; }
3728
if test $cl_cv_prog_LN_S_works = yes; then
3731
LN_S="$cl_cv_prog_LN"
3734
# Make sure we can run config.sub.
3735
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3736
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3737
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3738
{ (exit 1); exit 1; }; }
3740
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3741
$as_echo_n "checking build system type... " >&6; }
3742
if test "${ac_cv_build+set}" = set; then
3743
$as_echo_n "(cached) " >&6
3745
ac_build_alias=$build_alias
3746
test "x$ac_build_alias" = x &&
3747
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3748
test "x$ac_build_alias" = x &&
3749
{ { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3750
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3751
{ (exit 1); exit 1; }; }
3752
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3753
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3754
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3755
{ (exit 1); exit 1; }; }
3758
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3759
$as_echo "$ac_cv_build" >&6; }
3760
case $ac_cv_build in
3762
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3763
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3764
{ (exit 1); exit 1; }; };;
3767
ac_save_IFS=$IFS; IFS='-'
3773
# Remember, the first character of IFS is used to create $*,
3774
# except with old shells:
3777
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3780
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3781
$as_echo_n "checking host system type... " >&6; }
3782
if test "${ac_cv_host+set}" = set; then
3783
$as_echo_n "(cached) " >&6
3785
if test "x$host_alias" = x; then
3786
ac_cv_host=$ac_cv_build
3788
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3789
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3790
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3791
{ (exit 1); exit 1; }; }
3795
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3796
$as_echo "$ac_cv_host" >&6; }
3799
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3800
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3801
{ (exit 1); exit 1; }; };;
3804
ac_save_IFS=$IFS; IFS='-'
3810
# Remember, the first character of IFS is used to create $*,
3811
# except with old shells:
3814
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3822
alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
3825
hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
3829
host_cpu_abi=powerpc
3831
c1 | c2 | c32 | c34 | c38 | c4 )
3835
{ $as_echo "$as_me:$LINENO: checking for ARMel" >&5
3836
$as_echo_n "checking for ARMel... " >&6; }
3837
if test "${ffcall_cv_host_armel+set}" = set; then
3838
$as_echo_n "(cached) " >&6
3840
cat >conftest.$ac_ext <<_ACEOF
3843
cat confdefs.h >>conftest.$ac_ext
3844
cat >>conftest.$ac_ext <<_ACEOF
3845
/* end confdefs.h. */
3846
#if defined(__ARMEL__)
3851
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3852
$EGREP "yes" >/dev/null 2>&1; then
3853
ffcall_cv_host_armel=yes
3855
ffcall_cv_host_armel=no
3860
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_armel" >&5
3861
$as_echo "$ffcall_cv_host_armel" >&6; }
3862
if test $ffcall_cv_host_armel = yes; then
3869
{ $as_echo "$as_me:$LINENO: checking for 64-bit MIPS" >&5
3870
$as_echo_n "checking for 64-bit MIPS... " >&6; }
3871
if test "${ffcall_cv_host_mips64+set}" = set; then
3872
$as_echo_n "(cached) " >&6
3874
cat >conftest.$ac_ext <<_ACEOF
3877
cat confdefs.h >>conftest.$ac_ext
3878
cat >>conftest.$ac_ext <<_ACEOF
3879
/* end confdefs.h. */
3880
#if defined(_MIPS_SZLONG) && (_MIPS_SZLONG == 64)
3885
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3886
$EGREP "yes" >/dev/null 2>&1; then
3887
ffcall_cv_host_mips64=yes
3889
ffcall_cv_host_mips64=no
3894
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_mips64" >&5
3895
$as_echo "$ffcall_cv_host_mips64" >&6; }
3896
if test $ffcall_cv_host_mips64 = yes; then
3899
{ $as_echo "$as_me:$LINENO: checking for MIPS with n32 ABI" >&5
3900
$as_echo_n "checking for MIPS with n32 ABI... " >&6; }
3901
if test "${ffcall_cv_host_mipsn32+set}" = set; then
3902
$as_echo_n "(cached) " >&6
3904
cat >conftest.$ac_ext <<_ACEOF
3907
cat confdefs.h >>conftest.$ac_ext
3908
cat >>conftest.$ac_ext <<_ACEOF
3909
/* end confdefs.h. */
3915
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3916
$EGREP "yes" >/dev/null 2>&1; then
3917
ffcall_cv_host_mipsn32=yes
3919
ffcall_cv_host_mipsn32=no
3924
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_mipsn32" >&5
3925
$as_echo "$ffcall_cv_host_mipsn32" >&6; }
3926
if test $ffcall_cv_host_mipsn32 = yes; then
3927
host_cpu_abi=mipsn32
3934
{ $as_echo "$as_me:$LINENO: checking for 64-bit PowerPC" >&5
3935
$as_echo_n "checking for 64-bit PowerPC... " >&6; }
3936
if test "${ffcall_cv_host_powerpc64+set}" = set; then
3937
$as_echo_n "(cached) " >&6
3939
cat >conftest.$ac_ext <<_ACEOF
3942
cat confdefs.h >>conftest.$ac_ext
3943
cat >>conftest.$ac_ext <<_ACEOF
3944
/* end confdefs.h. */
3945
#if defined(__powerpc64__) || defined(_ARCH_PPC64)
3950
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3951
$EGREP "yes" >/dev/null 2>&1; then
3952
ffcall_cv_host_powerpc64=yes
3954
ffcall_cv_host_powerpc64=no
3959
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_powerpc64" >&5
3960
$as_echo "$ffcall_cv_host_powerpc64" >&6; }
3961
if test $ffcall_cv_host_powerpc64 = yes; then
3962
host_cpu_abi=powerpc64
3964
host_cpu_abi=powerpc
3968
{ $as_echo "$as_me:$LINENO: checking for 64-bit SPARC" >&5
3969
$as_echo_n "checking for 64-bit SPARC... " >&6; }
3970
if test "${ffcall_cv_host_sparc64+set}" = set; then
3971
$as_echo_n "(cached) " >&6
3973
cat >conftest.$ac_ext <<_ACEOF
3976
cat confdefs.h >>conftest.$ac_ext
3977
cat >>conftest.$ac_ext <<_ACEOF
3978
/* end confdefs.h. */
3979
#if defined(__sparcv9) || defined(__arch64__)
3984
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3985
$EGREP "yes" >/dev/null 2>&1; then
3986
ffcall_cv_host_sparc64=yes
3988
ffcall_cv_host_sparc64=no
3993
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_sparc64" >&5
3994
$as_echo "$ffcall_cv_host_sparc64" >&6; }
3995
if test $ffcall_cv_host_sparc64 = yes; then
3996
host_cpu_abi=sparc64
4002
{ $as_echo "$as_me:$LINENO: checking for 64-bit x86_64" >&5
4003
$as_echo_n "checking for 64-bit x86_64... " >&6; }
4004
if test "${ffcall_cv_host_x86_64+set}" = set; then
4005
$as_echo_n "(cached) " >&6
4007
cat >conftest.$ac_ext <<_ACEOF
4010
cat confdefs.h >>conftest.$ac_ext
4011
cat >>conftest.$ac_ext <<_ACEOF
4012
/* end confdefs.h. */
4013
#if defined(__LP64__) || defined(__x86_64__) || defined(__amd64__)
4018
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019
$EGREP "yes" >/dev/null 2>&1; then
4020
ffcall_cv_host_x86_64=yes
4022
ffcall_cv_host_x86_64=no
4027
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_x86_64" >&5
4028
$as_echo "$ffcall_cv_host_x86_64" >&6; }
4029
if test $ffcall_cv_host_x86_64 = yes; then
4036
host_cpu_abi=$host_cpu
4040
cat >> confdefs.h <<EOF
4041
#ifndef __${host_cpu_abi}__
4042
#define __${host_cpu_abi}__ 1
4047
# Check whether --enable-shared was given.
4048
if test "${enable_shared+set}" = set; then
4049
enableval=$enable_shared; p=${PACKAGE-default}
4051
yes) enable_shared=yes ;;
4052
no) enable_shared=no ;;
4055
# Look at the argument we got. We use all the common list separators.
4056
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4057
for pkg in $enableval; do
4059
if test "X$pkg" = "X$p"; then
4072
# Check whether --enable-static was given.
4073
if test "${enable_static+set}" = set; then
4074
enableval=$enable_static; p=${PACKAGE-default}
4076
yes) enable_static=yes ;;
4077
no) enable_static=no ;;
4080
# Look at the argument we got. We use all the common list separators.
4081
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4082
for pkg in $enableval; do
4084
if test "X$pkg" = "X$p"; then
4096
# Check whether --enable-fast-install was given.
4097
if test "${enable_fast_install+set}" = set; then
4098
enableval=$enable_fast_install; p=${PACKAGE-default}
4100
yes) enable_fast_install=yes ;;
4101
no) enable_fast_install=no ;;
4103
enable_fast_install=no
4104
# Look at the argument we got. We use all the common list separators.
4105
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4106
for pkg in $enableval; do
4108
if test "X$pkg" = "X$p"; then
4109
enable_fast_install=yes
4116
enable_fast_install=yes
4120
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4121
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4122
if test "${lt_cv_path_SED+set}" = set; then
4123
$as_echo_n "(cached) " >&6
4125
# Loop through the user's path and test for sed and gsed.
4126
# Then use that list of sed's as ones to test for truncation.
4127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131
test -z "$as_dir" && as_dir=.
4132
for lt_ac_prog in sed gsed; do
4133
for ac_exec_ext in '' $ac_executable_extensions; do
4134
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4135
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4143
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4144
# along with /bin/sed that truncates output.
4145
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4146
test ! -f $lt_ac_sed && continue
4147
cat /dev/null > conftest.in
4149
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4150
# Check for GNU sed and select it if it is found.
4151
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4152
lt_cv_path_SED=$lt_ac_sed
4156
cat conftest.in conftest.in >conftest.tmp
4157
mv conftest.tmp conftest.in
4158
cp conftest.in conftest.nl
4160
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4161
cmp -s conftest.out conftest.nl || break
4162
# 10000 chars as input seems more than enough
4163
test $lt_ac_count -gt 10 && break
4164
lt_ac_count=`expr $lt_ac_count + 1`
4165
if test $lt_ac_count -gt $lt_ac_max; then
4166
lt_ac_max=$lt_ac_count
4167
lt_cv_path_SED=$lt_ac_sed
4176
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
4177
$as_echo "$SED" >&6; }
4180
# Check whether --with-gnu-ld was given.
4181
if test "${with_gnu_ld+set}" = set; then
4182
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4188
if test "$GCC" = yes; then
4189
# Check if gcc -print-prog-name=ld gives a path.
4190
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4191
$as_echo_n "checking for ld used by $CC... " >&6; }
4194
# gcc leaves a trailing carriage return which upsets mingw
4195
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4197
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4200
# Accept absolute paths.
4202
re_direlt='/[^/][^/]*/\.\./'
4203
# Canonicalize the pathname of ld
4204
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4205
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4206
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4208
test -z "$LD" && LD="$ac_prog"
4211
# If it fails, then pretend we aren't using GCC.
4215
# If it is relative, then search for the first ld in PATH.
4219
elif test "$with_gnu_ld" = yes; then
4220
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4221
$as_echo_n "checking for GNU ld... " >&6; }
4223
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4224
$as_echo_n "checking for non-GNU ld... " >&6; }
4226
if test "${lt_cv_path_LD+set}" = set; then
4227
$as_echo_n "(cached) " >&6
4229
if test -z "$LD"; then
4230
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4231
for ac_dir in $PATH; do
4233
test -z "$ac_dir" && ac_dir=.
4234
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4235
lt_cv_path_LD="$ac_dir/$ac_prog"
4236
# Check to see if the program is GNU ld. I'd rather use --version,
4237
# but apparently some variants of GNU ld only accept -v.
4238
# Break only if it was the GNU/non-GNU ld that we prefer.
4239
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4240
*GNU* | *'with BFD'*)
4241
test "$with_gnu_ld" != no && break
4244
test "$with_gnu_ld" != yes && break
4251
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4256
if test -n "$LD"; then
4257
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
4258
$as_echo "$LD" >&6; }
4260
{ $as_echo "$as_me:$LINENO: result: no" >&5
4261
$as_echo "no" >&6; }
4263
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4264
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4265
{ (exit 1); exit 1; }; }
4266
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4267
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4268
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4269
$as_echo_n "(cached) " >&6
4271
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4272
case `$LD -v 2>&1 </dev/null` in
4273
*GNU* | *'with BFD'*)
4274
lt_cv_prog_gnu_ld=yes
4277
lt_cv_prog_gnu_ld=no
4281
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4282
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4283
with_gnu_ld=$lt_cv_prog_gnu_ld
4286
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4287
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4288
if test "${lt_cv_ld_reload_flag+set}" = set; then
4289
$as_echo_n "(cached) " >&6
4291
lt_cv_ld_reload_flag='-r'
4293
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4294
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4295
reload_flag=$lt_cv_ld_reload_flag
4296
case $reload_flag in
4298
*) reload_flag=" $reload_flag" ;;
4300
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4303
if test "$GCC" = yes; then
4304
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4306
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4311
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4312
$as_echo_n "checking for BSD-compatible nm... " >&6; }
4313
if test "${lt_cv_path_NM+set}" = set; then
4314
$as_echo_n "(cached) " >&6
4316
if test -n "$NM"; then
4317
# Let the user override the test.
4320
lt_nm_to_check="${ac_tool_prefix}nm"
4321
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4322
lt_nm_to_check="$lt_nm_to_check nm"
4324
for lt_tmp_nm in $lt_nm_to_check; do
4325
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4326
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4328
test -z "$ac_dir" && ac_dir=.
4329
tmp_nm="$ac_dir/$lt_tmp_nm"
4330
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4331
# Check to see if the nm accepts a BSD-compat flag.
4332
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4333
# nm: unknown option "B" ignored
4334
# Tru64's nm complains that /dev/null is an invalid object file
4335
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4336
*/dev/null* | *'Invalid file or object type'*)
4337
lt_cv_path_NM="$tmp_nm -B"
4341
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4343
lt_cv_path_NM="$tmp_nm -p"
4347
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4348
continue # so that we can try to find one that supports BSD flags
4357
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4360
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4361
$as_echo "$lt_cv_path_NM" >&6; }
4364
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4365
$as_echo_n "checking whether ln -s works... " >&6; }
4367
if test "$LN_S" = "ln -s"; then
4368
{ $as_echo "$as_me:$LINENO: result: yes" >&5
4369
$as_echo "yes" >&6; }
4371
{ $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4372
$as_echo "no, using $LN_S" >&6; }
4375
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4376
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4377
if test "${lt_cv_deplibs_check_method+set}" = set; then
4378
$as_echo_n "(cached) " >&6
4380
lt_cv_file_magic_cmd='$MAGIC_CMD'
4381
lt_cv_file_magic_test_file=
4382
lt_cv_deplibs_check_method='unknown'
4383
# Need to set the preceding variable on all platforms that support
4384
# interlibrary dependencies.
4385
# 'none' -- dependencies not supported.
4386
# `unknown' -- same as none, but documents that we really don't know.
4387
# 'pass_all' -- all dependencies passed with no checks.
4388
# 'test_compile' -- check by making test program.
4389
# 'file_magic [[regex]]' -- check by looking for files in library path
4390
# which responds to the $file_magic_cmd with a given extended regex.
4391
# If you have `file' or equivalent on your system and you're not sure
4392
# whether `pass_all' will *always* work, you probably want this one.
4396
lt_cv_deplibs_check_method=pass_all
4400
lt_cv_deplibs_check_method=pass_all
4404
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4405
lt_cv_file_magic_cmd='/usr/bin/file -L'
4406
lt_cv_file_magic_test_file=/shlib/libc.so
4410
# func_win32_libid is a shell function defined in ltmain.sh
4411
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4412
lt_cv_file_magic_cmd='func_win32_libid'
4416
# Base MSYS/MinGW do not provide the 'file' command needed by
4417
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4418
# unless we find 'file', for example because we are cross-compiling.
4419
if ( file / ) >/dev/null 2>&1; then
4420
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4421
lt_cv_file_magic_cmd='func_win32_libid'
4423
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4424
lt_cv_file_magic_cmd='$OBJDUMP -f'
4428
darwin* | rhapsody*)
4429
lt_cv_deplibs_check_method=pass_all
4432
freebsd* | dragonfly*)
4433
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4436
# Not sure whether the presence of OpenBSD here was a mistake.
4437
# Let's accept both of them until this is cleared up.
4438
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4439
lt_cv_file_magic_cmd=/usr/bin/file
4440
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4444
lt_cv_deplibs_check_method=pass_all
4449
lt_cv_deplibs_check_method=pass_all
4452
hpux10.20* | hpux11*)
4453
lt_cv_file_magic_cmd=/usr/bin/file
4456
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4457
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4460
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]'
4461
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4464
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4465
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4471
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4472
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4475
irix5* | irix6* | nonstopux*)
4477
*-32|*"-32 ") libmagic=32-bit;;
4478
*-n32|*"-n32 ") libmagic=N32;;
4479
*-64|*"-64 ") libmagic=64-bit;;
4480
*) libmagic=never-match;;
4482
lt_cv_deplibs_check_method=pass_all
4485
# This must be Linux ELF.
4486
linux* | k*bsd*-gnu)
4487
lt_cv_deplibs_check_method=pass_all
4491
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4492
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4494
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4499
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4500
lt_cv_file_magic_cmd=/usr/bin/file
4501
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4505
lt_cv_deplibs_check_method=unknown
4509
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4510
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4512
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4516
osf3* | osf4* | osf5*)
4517
lt_cv_deplibs_check_method=pass_all
4521
lt_cv_deplibs_check_method=pass_all
4525
lt_cv_deplibs_check_method=pass_all
4529
case $host_vendor in
4531
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]'
4532
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4535
lt_cv_deplibs_check_method=pass_all
4538
lt_cv_file_magic_cmd='/bin/file'
4539
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4542
lt_cv_file_magic_cmd='/bin/file'
4543
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4544
lt_cv_file_magic_test_file=/lib/libc.so
4547
lt_cv_deplibs_check_method=pass_all
4550
lt_cv_deplibs_check_method=pass_all
4555
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4556
lt_cv_deplibs_check_method=pass_all
4561
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4562
$as_echo "$lt_cv_deplibs_check_method" >&6; }
4563
file_magic_cmd=$lt_cv_file_magic_cmd
4564
deplibs_check_method=$lt_cv_deplibs_check_method
4565
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4570
# If no C compiler was specified, use CC.
4573
# If no C compiler flags were specified, use CFLAGS.
4574
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4576
# Allow CC to be a program name with arguments.
4579
# Check whether --enable-libtool-lock was given.
4580
if test "${enable_libtool_lock+set}" = set; then
4581
enableval=$enable_libtool_lock;
4584
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4586
# Some flags need to be propagated to the compiler or linker for good
4590
# Find out which ABI we are using.
4591
echo 'int i;' > conftest.$ac_ext
4592
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593
(eval $ac_compile) 2>&5
4595
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596
(exit $ac_status); }; then
4597
case `/usr/bin/file conftest.$ac_objext` in
4609
# Find out which ABI we are using.
4610
echo '#line 4610 "configure"' > conftest.$ac_ext
4611
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612
(eval $ac_compile) 2>&5
4614
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615
(exit $ac_status); }; then
4616
if test "$lt_cv_prog_gnu_ld" = yes; then
4617
case `/usr/bin/file conftest.$ac_objext` in
4619
LD="${LD-ld} -melf32bsmip"
4622
LD="${LD-ld} -melf32bmipn32"
4625
LD="${LD-ld} -melf64bmip"
4629
case `/usr/bin/file conftest.$ac_objext` in
4645
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4646
s390*-*linux*|sparc*-*linux*)
4647
# Find out which ABI we are using.
4648
echo 'int i;' > conftest.$ac_ext
4649
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4650
(eval $ac_compile) 2>&5
4652
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653
(exit $ac_status); }; then
4654
case `/usr/bin/file conftest.o` in
4657
x86_64-*kfreebsd*-gnu)
4658
LD="${LD-ld} -m elf_i386_fbsd"
4661
LD="${LD-ld} -m elf_i386"
4663
ppc64-*linux*|powerpc64-*linux*)
4664
LD="${LD-ld} -m elf32ppclinux"
4667
LD="${LD-ld} -m elf_s390"
4670
LD="${LD-ld} -m elf32_sparc"
4676
x86_64-*kfreebsd*-gnu)
4677
LD="${LD-ld} -m elf_x86_64_fbsd"
4680
LD="${LD-ld} -m elf_x86_64"
4682
ppc*-*linux*|powerpc*-*linux*)
4683
LD="${LD-ld} -m elf64ppc"
4686
LD="${LD-ld} -m elf64_s390"
4689
LD="${LD-ld} -m elf64_sparc"
4699
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4700
SAVE_CFLAGS="$CFLAGS"
4701
CFLAGS="$CFLAGS -belf"
4702
{ $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4703
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4704
if test "${lt_cv_cc_needs_belf+set}" = set; then
4705
$as_echo_n "(cached) " >&6
4708
ac_cpp='$CPP $CPPFLAGS'
4709
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4710
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4711
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4713
cat >conftest.$ac_ext <<_ACEOF
4716
cat confdefs.h >>conftest.$ac_ext
4717
cat >>conftest.$ac_ext <<_ACEOF
4718
/* end confdefs.h. */
4728
rm -f conftest.$ac_objext conftest$ac_exeext
4729
if { (ac_try="$ac_link"
4731
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732
*) ac_try_echo=$ac_try;;
4734
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4735
$as_echo "$ac_try_echo") >&5
4736
(eval "$ac_link") 2>conftest.er1
4738
grep -v '^ *+' conftest.er1 >conftest.err
4740
cat conftest.err >&5
4741
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742
(exit $ac_status); } && {
4743
test -z "$ac_c_werror_flag" ||
4744
test ! -s conftest.err
4745
} && test -s conftest$ac_exeext && {
4746
test "$cross_compiling" = yes ||
4747
$as_test_x conftest$ac_exeext
4749
lt_cv_cc_needs_belf=yes
4751
$as_echo "$as_me: failed program was:" >&5
4752
sed 's/^/| /' conftest.$ac_ext >&5
4754
lt_cv_cc_needs_belf=no
4757
rm -rf conftest.dSYM
4758
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4759
conftest$ac_exeext conftest.$ac_ext
4761
ac_cpp='$CPP $CPPFLAGS'
4762
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4763
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4768
$as_echo "$lt_cv_cc_needs_belf" >&6; }
4769
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4770
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4771
CFLAGS="$SAVE_CFLAGS"
4775
# Find out which ABI we are using.
4776
echo 'int i;' > conftest.$ac_ext
4777
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778
(eval $ac_compile) 2>&5
4780
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781
(exit $ac_status); }; then
4782
case `/usr/bin/file conftest.o` in
4784
case $lt_cv_prog_gnu_ld in
4785
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4787
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4801
need_locks="$enable_libtool_lock"
4804
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4805
$as_echo_n "checking for ANSI C header files... " >&6; }
4806
if test "${ac_cv_header_stdc+set}" = set; then
4807
$as_echo_n "(cached) " >&6
4809
cat >conftest.$ac_ext <<_ACEOF
4812
cat confdefs.h >>conftest.$ac_ext
4813
cat >>conftest.$ac_ext <<_ACEOF
4814
/* end confdefs.h. */
4828
rm -f conftest.$ac_objext
4829
if { (ac_try="$ac_compile"
4831
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832
*) ac_try_echo=$ac_try;;
4834
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4835
$as_echo "$ac_try_echo") >&5
4836
(eval "$ac_compile") 2>conftest.er1
4838
grep -v '^ *+' conftest.er1 >conftest.err
4840
cat conftest.err >&5
4841
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842
(exit $ac_status); } && {
4843
test -z "$ac_c_werror_flag" ||
4844
test ! -s conftest.err
4845
} && test -s conftest.$ac_objext; then
4846
ac_cv_header_stdc=yes
4848
$as_echo "$as_me: failed program was:" >&5
4849
sed 's/^/| /' conftest.$ac_ext >&5
4851
ac_cv_header_stdc=no
4854
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856
if test $ac_cv_header_stdc = yes; then
4857
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4858
cat >conftest.$ac_ext <<_ACEOF
4861
cat confdefs.h >>conftest.$ac_ext
4862
cat >>conftest.$ac_ext <<_ACEOF
4863
/* end confdefs.h. */
4867
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4868
$EGREP "memchr" >/dev/null 2>&1; then
4871
ac_cv_header_stdc=no
4877
if test $ac_cv_header_stdc = yes; then
4878
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4879
cat >conftest.$ac_ext <<_ACEOF
4882
cat confdefs.h >>conftest.$ac_ext
4883
cat >>conftest.$ac_ext <<_ACEOF
4884
/* end confdefs.h. */
4888
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4889
$EGREP "free" >/dev/null 2>&1; then
4892
ac_cv_header_stdc=no
4898
if test $ac_cv_header_stdc = yes; then
4899
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4900
if test "$cross_compiling" = yes; then
4903
cat >conftest.$ac_ext <<_ACEOF
4906
cat confdefs.h >>conftest.$ac_ext
4907
cat >>conftest.$ac_ext <<_ACEOF
4908
/* end confdefs.h. */
4911
#if ((' ' & 0x0FF) == 0x020)
4912
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4913
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4915
# define ISLOWER(c) \
4916
(('a' <= (c) && (c) <= 'i') \
4917
|| ('j' <= (c) && (c) <= 'r') \
4918
|| ('s' <= (c) && (c) <= 'z'))
4919
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4922
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4927
for (i = 0; i < 256; i++)
4928
if (XOR (islower (i), ISLOWER (i))
4929
|| toupper (i) != TOUPPER (i))
4934
rm -f conftest$ac_exeext
4935
if { (ac_try="$ac_link"
4937
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938
*) ac_try_echo=$ac_try;;
4940
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4941
$as_echo "$ac_try_echo") >&5
4942
(eval "$ac_link") 2>&5
4944
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4946
{ (case "(($ac_try" in
4947
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948
*) ac_try_echo=$ac_try;;
4950
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4951
$as_echo "$ac_try_echo") >&5
4952
(eval "$ac_try") 2>&5
4954
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955
(exit $ac_status); }; }; then
4958
$as_echo "$as_me: program exited with status $ac_status" >&5
4959
$as_echo "$as_me: failed program was:" >&5
4960
sed 's/^/| /' conftest.$ac_ext >&5
4963
ac_cv_header_stdc=no
4965
rm -rf conftest.dSYM
4966
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4972
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4973
$as_echo "$ac_cv_header_stdc" >&6; }
4974
if test $ac_cv_header_stdc = yes; then
4976
cat >>confdefs.h <<\_ACEOF
4977
#define STDC_HEADERS 1
4982
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4992
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4993
inttypes.h stdint.h unistd.h
4995
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4996
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4997
$as_echo_n "checking for $ac_header... " >&6; }
4998
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4999
$as_echo_n "(cached) " >&6
5001
cat >conftest.$ac_ext <<_ACEOF
5004
cat confdefs.h >>conftest.$ac_ext
5005
cat >>conftest.$ac_ext <<_ACEOF
5006
/* end confdefs.h. */
5007
$ac_includes_default
5009
#include <$ac_header>
5011
rm -f conftest.$ac_objext
5012
if { (ac_try="$ac_compile"
5014
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015
*) ac_try_echo=$ac_try;;
5017
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5018
$as_echo "$ac_try_echo") >&5
5019
(eval "$ac_compile") 2>conftest.er1
5021
grep -v '^ *+' conftest.er1 >conftest.err
5023
cat conftest.err >&5
5024
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025
(exit $ac_status); } && {
5026
test -z "$ac_c_werror_flag" ||
5027
test ! -s conftest.err
5028
} && test -s conftest.$ac_objext; then
5029
eval "$as_ac_Header=yes"
5031
$as_echo "$as_me: failed program was:" >&5
5032
sed 's/^/| /' conftest.$ac_ext >&5
5034
eval "$as_ac_Header=no"
5037
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039
ac_res=`eval 'as_val=${'$as_ac_Header'}
5040
$as_echo "$as_val"'`
5041
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5042
$as_echo "$ac_res" >&6; }
5043
as_val=`eval 'as_val=${'$as_ac_Header'}
5044
$as_echo "$as_val"'`
5045
if test "x$as_val" = x""yes; then
5046
cat >>confdefs.h <<_ACEOF
5047
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5056
for ac_header in dlfcn.h
5058
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5059
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5060
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5061
$as_echo_n "checking for $ac_header... " >&6; }
5062
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5063
$as_echo_n "(cached) " >&6
5065
ac_res=`eval 'as_val=${'$as_ac_Header'}
5066
$as_echo "$as_val"'`
5067
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5068
$as_echo "$ac_res" >&6; }
5070
# Is the header compilable?
5071
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5072
$as_echo_n "checking $ac_header usability... " >&6; }
5073
cat >conftest.$ac_ext <<_ACEOF
5076
cat confdefs.h >>conftest.$ac_ext
5077
cat >>conftest.$ac_ext <<_ACEOF
5078
/* end confdefs.h. */
5079
$ac_includes_default
5080
#include <$ac_header>
5082
rm -f conftest.$ac_objext
5083
if { (ac_try="$ac_compile"
5085
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086
*) ac_try_echo=$ac_try;;
5088
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5089
$as_echo "$ac_try_echo") >&5
5090
(eval "$ac_compile") 2>conftest.er1
5092
grep -v '^ *+' conftest.er1 >conftest.err
5094
cat conftest.err >&5
5095
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096
(exit $ac_status); } && {
5097
test -z "$ac_c_werror_flag" ||
5098
test ! -s conftest.err
5099
} && test -s conftest.$ac_objext; then
5100
ac_header_compiler=yes
5102
$as_echo "$as_me: failed program was:" >&5
5103
sed 's/^/| /' conftest.$ac_ext >&5
5105
ac_header_compiler=no
5108
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5110
$as_echo "$ac_header_compiler" >&6; }
5112
# Is the header present?
5113
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5114
$as_echo_n "checking $ac_header presence... " >&6; }
5115
cat >conftest.$ac_ext <<_ACEOF
5118
cat confdefs.h >>conftest.$ac_ext
5119
cat >>conftest.$ac_ext <<_ACEOF
5120
/* end confdefs.h. */
5121
#include <$ac_header>
5123
if { (ac_try="$ac_cpp conftest.$ac_ext"
5125
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126
*) ac_try_echo=$ac_try;;
5128
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5129
$as_echo "$ac_try_echo") >&5
5130
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5132
grep -v '^ *+' conftest.er1 >conftest.err
5134
cat conftest.err >&5
5135
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136
(exit $ac_status); } >/dev/null && {
5137
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5138
test ! -s conftest.err
5140
ac_header_preproc=yes
5142
$as_echo "$as_me: failed program was:" >&5
5143
sed 's/^/| /' conftest.$ac_ext >&5
5145
ac_header_preproc=no
5148
rm -f conftest.err conftest.$ac_ext
5149
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5150
$as_echo "$ac_header_preproc" >&6; }
5152
# So? What about this header?
5153
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5155
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5156
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5157
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5158
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5159
ac_header_preproc=yes
5162
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5163
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5164
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5165
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5166
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5167
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5168
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5169
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5170
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5171
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5172
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5173
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5177
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5178
$as_echo_n "checking for $ac_header... " >&6; }
5179
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5180
$as_echo_n "(cached) " >&6
5182
eval "$as_ac_Header=\$ac_header_preproc"
5184
ac_res=`eval 'as_val=${'$as_ac_Header'}
5185
$as_echo "$as_val"'`
5186
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5187
$as_echo "$ac_res" >&6; }
5190
as_val=`eval 'as_val=${'$as_ac_Header'}
5191
$as_echo "$as_val"'`
5192
if test "x$as_val" = x""yes; then
5193
cat >>confdefs.h <<_ACEOF
5194
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5202
ac_cpp='$CXXCPP $CPPFLAGS'
5203
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5206
if test -z "$CXX"; then
5207
if test -n "$CCC"; then
5210
if test -n "$ac_tool_prefix"; then
5211
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5213
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5214
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5215
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5216
$as_echo_n "checking for $ac_word... " >&6; }
5217
if test "${ac_cv_prog_CXX+set}" = set; then
5218
$as_echo_n "(cached) " >&6
5220
if test -n "$CXX"; then
5221
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227
test -z "$as_dir" && as_dir=.
5228
for ac_exec_ext in '' $ac_executable_extensions; do
5229
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5231
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241
if test -n "$CXX"; then
5242
{ $as_echo "$as_me:$LINENO: result: $CXX" >&5
5243
$as_echo "$CXX" >&6; }
5245
{ $as_echo "$as_me:$LINENO: result: no" >&5
5246
$as_echo "no" >&6; }
5250
test -n "$CXX" && break
5253
if test -z "$CXX"; then
5255
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5257
# Extract the first word of "$ac_prog", so it can be a program name with args.
5258
set dummy $ac_prog; ac_word=$2
5259
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5260
$as_echo_n "checking for $ac_word... " >&6; }
5261
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5262
$as_echo_n "(cached) " >&6
5264
if test -n "$ac_ct_CXX"; then
5265
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271
test -z "$as_dir" && as_dir=.
5272
for ac_exec_ext in '' $ac_executable_extensions; do
5273
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5274
ac_cv_prog_ac_ct_CXX="$ac_prog"
5275
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5285
if test -n "$ac_ct_CXX"; then
5286
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5287
$as_echo "$ac_ct_CXX" >&6; }
5289
{ $as_echo "$as_me:$LINENO: result: no" >&5
5290
$as_echo "no" >&6; }
5294
test -n "$ac_ct_CXX" && break
5297
if test "x$ac_ct_CXX" = x; then
5300
case $cross_compiling:$ac_tool_warned in
5302
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5303
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5304
ac_tool_warned=yes ;;
5312
# Provide some information about the compiler.
5313
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5316
{ (ac_try="$ac_compiler --version >&5"
5318
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319
*) ac_try_echo=$ac_try;;
5321
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5322
$as_echo "$ac_try_echo") >&5
5323
(eval "$ac_compiler --version >&5") 2>&5
5325
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326
(exit $ac_status); }
5327
{ (ac_try="$ac_compiler -v >&5"
5329
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330
*) ac_try_echo=$ac_try;;
5332
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5333
$as_echo "$ac_try_echo") >&5
5334
(eval "$ac_compiler -v >&5") 2>&5
5336
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337
(exit $ac_status); }
5338
{ (ac_try="$ac_compiler -V >&5"
5340
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341
*) ac_try_echo=$ac_try;;
5343
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5344
$as_echo "$ac_try_echo") >&5
5345
(eval "$ac_compiler -V >&5") 2>&5
5347
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348
(exit $ac_status); }
5350
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5351
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5352
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5353
$as_echo_n "(cached) " >&6
5355
cat >conftest.$ac_ext <<_ACEOF
5358
cat confdefs.h >>conftest.$ac_ext
5359
cat >>conftest.$ac_ext <<_ACEOF
5360
/* end confdefs.h. */
5373
rm -f conftest.$ac_objext
5374
if { (ac_try="$ac_compile"
5376
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377
*) ac_try_echo=$ac_try;;
5379
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5380
$as_echo "$ac_try_echo") >&5
5381
(eval "$ac_compile") 2>conftest.er1
5383
grep -v '^ *+' conftest.er1 >conftest.err
5385
cat conftest.err >&5
5386
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387
(exit $ac_status); } && {
5388
test -z "$ac_cxx_werror_flag" ||
5389
test ! -s conftest.err
5390
} && test -s conftest.$ac_objext; then
5393
$as_echo "$as_me: failed program was:" >&5
5394
sed 's/^/| /' conftest.$ac_ext >&5
5399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5403
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5404
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5405
if test $ac_compiler_gnu = yes; then
5410
ac_test_CXXFLAGS=${CXXFLAGS+set}
5411
ac_save_CXXFLAGS=$CXXFLAGS
5412
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5413
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5414
if test "${ac_cv_prog_cxx_g+set}" = set; then
5415
$as_echo_n "(cached) " >&6
5417
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5418
ac_cxx_werror_flag=yes
5421
cat >conftest.$ac_ext <<_ACEOF
5424
cat confdefs.h >>conftest.$ac_ext
5425
cat >>conftest.$ac_ext <<_ACEOF
5426
/* end confdefs.h. */
5436
rm -f conftest.$ac_objext
5437
if { (ac_try="$ac_compile"
5439
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440
*) ac_try_echo=$ac_try;;
5442
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5443
$as_echo "$ac_try_echo") >&5
5444
(eval "$ac_compile") 2>conftest.er1
5446
grep -v '^ *+' conftest.er1 >conftest.err
5448
cat conftest.err >&5
5449
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450
(exit $ac_status); } && {
5451
test -z "$ac_cxx_werror_flag" ||
5452
test ! -s conftest.err
5453
} && test -s conftest.$ac_objext; then
5454
ac_cv_prog_cxx_g=yes
5456
$as_echo "$as_me: failed program was:" >&5
5457
sed 's/^/| /' conftest.$ac_ext >&5
5460
cat >conftest.$ac_ext <<_ACEOF
5463
cat confdefs.h >>conftest.$ac_ext
5464
cat >>conftest.$ac_ext <<_ACEOF
5465
/* end confdefs.h. */
5475
rm -f conftest.$ac_objext
5476
if { (ac_try="$ac_compile"
5478
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479
*) ac_try_echo=$ac_try;;
5481
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5482
$as_echo "$ac_try_echo") >&5
5483
(eval "$ac_compile") 2>conftest.er1
5485
grep -v '^ *+' conftest.er1 >conftest.err
5487
cat conftest.err >&5
5488
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489
(exit $ac_status); } && {
5490
test -z "$ac_cxx_werror_flag" ||
5491
test ! -s conftest.err
5492
} && test -s conftest.$ac_objext; then
5495
$as_echo "$as_me: failed program was:" >&5
5496
sed 's/^/| /' conftest.$ac_ext >&5
5498
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5500
cat >conftest.$ac_ext <<_ACEOF
5503
cat confdefs.h >>conftest.$ac_ext
5504
cat >>conftest.$ac_ext <<_ACEOF
5505
/* end confdefs.h. */
5515
rm -f conftest.$ac_objext
5516
if { (ac_try="$ac_compile"
5518
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519
*) ac_try_echo=$ac_try;;
5521
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5522
$as_echo "$ac_try_echo") >&5
5523
(eval "$ac_compile") 2>conftest.er1
5525
grep -v '^ *+' conftest.er1 >conftest.err
5527
cat conftest.err >&5
5528
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529
(exit $ac_status); } && {
5530
test -z "$ac_cxx_werror_flag" ||
5531
test ! -s conftest.err
5532
} && test -s conftest.$ac_objext; then
5533
ac_cv_prog_cxx_g=yes
5535
$as_echo "$as_me: failed program was:" >&5
5536
sed 's/^/| /' conftest.$ac_ext >&5
5541
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5550
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5551
$as_echo "$ac_cv_prog_cxx_g" >&6; }
5552
if test "$ac_test_CXXFLAGS" = set; then
5553
CXXFLAGS=$ac_save_CXXFLAGS
5554
elif test $ac_cv_prog_cxx_g = yes; then
5555
if test "$GXX" = yes; then
5561
if test "$GXX" = yes; then
5568
ac_cpp='$CXXCPP $CPPFLAGS'
5569
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5570
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5571
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5575
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5576
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5577
(test "X$CXX" != "Xg++"))) ; then
5579
ac_cpp='$CXXCPP $CPPFLAGS'
5580
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5581
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5582
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5583
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5584
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5585
if test -z "$CXXCPP"; then
5586
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5587
$as_echo_n "(cached) " >&6
5589
# Double quotes because CXXCPP needs to be expanded
5590
for CXXCPP in "$CXX -E" "/lib/cpp"
5593
for ac_cxx_preproc_warn_flag in '' yes
5595
# Use a header file that comes with gcc, so configuring glibc
5596
# with a fresh cross-compiler works.
5597
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5598
# <limits.h> exists even on freestanding compilers.
5599
# On the NeXT, cc -E runs the code through the compiler's parser,
5600
# not just through cpp. "Syntax error" is here to catch this case.
5601
cat >conftest.$ac_ext <<_ACEOF
5604
cat confdefs.h >>conftest.$ac_ext
5605
cat >>conftest.$ac_ext <<_ACEOF
5606
/* end confdefs.h. */
5608
# include <limits.h>
5610
# include <assert.h>
5614
if { (ac_try="$ac_cpp conftest.$ac_ext"
5616
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617
*) ac_try_echo=$ac_try;;
5619
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5620
$as_echo "$ac_try_echo") >&5
5621
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5623
grep -v '^ *+' conftest.er1 >conftest.err
5625
cat conftest.err >&5
5626
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627
(exit $ac_status); } >/dev/null && {
5628
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5629
test ! -s conftest.err
5633
$as_echo "$as_me: failed program was:" >&5
5634
sed 's/^/| /' conftest.$ac_ext >&5
5636
# Broken: fails on valid input.
5640
rm -f conftest.err conftest.$ac_ext
5642
# OK, works on sane cases. Now check whether nonexistent headers
5643
# can be detected and how.
5644
cat >conftest.$ac_ext <<_ACEOF
5647
cat confdefs.h >>conftest.$ac_ext
5648
cat >>conftest.$ac_ext <<_ACEOF
5649
/* end confdefs.h. */
5650
#include <ac_nonexistent.h>
5652
if { (ac_try="$ac_cpp conftest.$ac_ext"
5654
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655
*) ac_try_echo=$ac_try;;
5657
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5658
$as_echo "$ac_try_echo") >&5
5659
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5661
grep -v '^ *+' conftest.er1 >conftest.err
5663
cat conftest.err >&5
5664
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665
(exit $ac_status); } >/dev/null && {
5666
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5667
test ! -s conftest.err
5669
# Broken: success on invalid input.
5672
$as_echo "$as_me: failed program was:" >&5
5673
sed 's/^/| /' conftest.$ac_ext >&5
5675
# Passes both tests.
5680
rm -f conftest.err conftest.$ac_ext
5683
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5684
rm -f conftest.err conftest.$ac_ext
5685
if $ac_preproc_ok; then
5690
ac_cv_prog_CXXCPP=$CXXCPP
5693
CXXCPP=$ac_cv_prog_CXXCPP
5695
ac_cv_prog_CXXCPP=$CXXCPP
5697
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5698
$as_echo "$CXXCPP" >&6; }
5700
for ac_cxx_preproc_warn_flag in '' yes
5702
# Use a header file that comes with gcc, so configuring glibc
5703
# with a fresh cross-compiler works.
5704
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5705
# <limits.h> exists even on freestanding compilers.
5706
# On the NeXT, cc -E runs the code through the compiler's parser,
5707
# not just through cpp. "Syntax error" is here to catch this case.
5708
cat >conftest.$ac_ext <<_ACEOF
5711
cat confdefs.h >>conftest.$ac_ext
5712
cat >>conftest.$ac_ext <<_ACEOF
5713
/* end confdefs.h. */
5715
# include <limits.h>
5717
# include <assert.h>
5721
if { (ac_try="$ac_cpp conftest.$ac_ext"
5723
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724
*) ac_try_echo=$ac_try;;
5726
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5727
$as_echo "$ac_try_echo") >&5
5728
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5730
grep -v '^ *+' conftest.er1 >conftest.err
5732
cat conftest.err >&5
5733
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734
(exit $ac_status); } >/dev/null && {
5735
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5736
test ! -s conftest.err
5740
$as_echo "$as_me: failed program was:" >&5
5741
sed 's/^/| /' conftest.$ac_ext >&5
5743
# Broken: fails on valid input.
5747
rm -f conftest.err conftest.$ac_ext
5749
# OK, works on sane cases. Now check whether nonexistent headers
5750
# can be detected and how.
5751
cat >conftest.$ac_ext <<_ACEOF
5754
cat confdefs.h >>conftest.$ac_ext
5755
cat >>conftest.$ac_ext <<_ACEOF
5756
/* end confdefs.h. */
5757
#include <ac_nonexistent.h>
5759
if { (ac_try="$ac_cpp conftest.$ac_ext"
5761
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762
*) ac_try_echo=$ac_try;;
5764
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5765
$as_echo "$ac_try_echo") >&5
5766
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5768
grep -v '^ *+' conftest.er1 >conftest.err
5770
cat conftest.err >&5
5771
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772
(exit $ac_status); } >/dev/null && {
5773
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5774
test ! -s conftest.err
5776
# Broken: success on invalid input.
5779
$as_echo "$as_me: failed program was:" >&5
5780
sed 's/^/| /' conftest.$ac_ext >&5
5782
# Passes both tests.
5787
rm -f conftest.err conftest.$ac_ext
5790
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5791
rm -f conftest.err conftest.$ac_ext
5792
if $ac_preproc_ok; then
5795
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5796
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5797
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5798
See \`config.log' for more details." >&5
5799
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5800
See \`config.log' for more details." >&2;}
5801
{ (exit 1); exit 1; }; }; }
5805
ac_cpp='$CXXCPP $CPPFLAGS'
5806
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5814
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5815
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5817
if test -n "$ac_tool_prefix"; then
5818
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
5820
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5821
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5822
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5823
$as_echo_n "checking for $ac_word... " >&6; }
5824
if test "${ac_cv_prog_F77+set}" = set; then
5825
$as_echo_n "(cached) " >&6
5827
if test -n "$F77"; then
5828
ac_cv_prog_F77="$F77" # Let the user override the test.
5830
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834
test -z "$as_dir" && as_dir=.
5835
for ac_exec_ext in '' $ac_executable_extensions; do
5836
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5837
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5838
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848
if test -n "$F77"; then
5849
{ $as_echo "$as_me:$LINENO: result: $F77" >&5
5850
$as_echo "$F77" >&6; }
5852
{ $as_echo "$as_me:$LINENO: result: no" >&5
5853
$as_echo "no" >&6; }
5857
test -n "$F77" && break
5860
if test -z "$F77"; then
5862
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
5864
# Extract the first word of "$ac_prog", so it can be a program name with args.
5865
set dummy $ac_prog; ac_word=$2
5866
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5867
$as_echo_n "checking for $ac_word... " >&6; }
5868
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5869
$as_echo_n "(cached) " >&6
5871
if test -n "$ac_ct_F77"; then
5872
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878
test -z "$as_dir" && as_dir=.
5879
for ac_exec_ext in '' $ac_executable_extensions; do
5880
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5881
ac_cv_prog_ac_ct_F77="$ac_prog"
5882
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5892
if test -n "$ac_ct_F77"; then
5893
{ $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5894
$as_echo "$ac_ct_F77" >&6; }
5896
{ $as_echo "$as_me:$LINENO: result: no" >&5
5897
$as_echo "no" >&6; }
5901
test -n "$ac_ct_F77" && break
5904
if test "x$ac_ct_F77" = x; then
5907
case $cross_compiling:$ac_tool_warned in
5909
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5910
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5911
ac_tool_warned=yes ;;
5918
# Provide some information about the compiler.
5919
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5922
{ (ac_try="$ac_compiler --version >&5"
5924
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925
*) ac_try_echo=$ac_try;;
5927
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5928
$as_echo "$ac_try_echo") >&5
5929
(eval "$ac_compiler --version >&5") 2>&5
5931
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932
(exit $ac_status); }
5933
{ (ac_try="$ac_compiler -v >&5"
5935
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936
*) ac_try_echo=$ac_try;;
5938
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5939
$as_echo "$ac_try_echo") >&5
5940
(eval "$ac_compiler -v >&5") 2>&5
5942
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943
(exit $ac_status); }
5944
{ (ac_try="$ac_compiler -V >&5"
5946
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947
*) ac_try_echo=$ac_try;;
5949
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5950
$as_echo "$ac_try_echo") >&5
5951
(eval "$ac_compiler -V >&5") 2>&5
5953
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954
(exit $ac_status); }
5957
# If we don't use `.F' as extension, the preprocessor is not run on the
5958
# input file. (Note that this only needs to work for GNU compilers.)
5961
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5962
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5963
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5964
$as_echo_n "(cached) " >&6
5966
cat >conftest.$ac_ext <<_ACEOF
5974
rm -f conftest.$ac_objext
5975
if { (ac_try="$ac_compile"
5977
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978
*) ac_try_echo=$ac_try;;
5980
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5981
$as_echo "$ac_try_echo") >&5
5982
(eval "$ac_compile") 2>conftest.er1
5984
grep -v '^ *+' conftest.er1 >conftest.err
5986
cat conftest.err >&5
5987
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988
(exit $ac_status); } && {
5989
test -z "$ac_f77_werror_flag" ||
5990
test ! -s conftest.err
5991
} && test -s conftest.$ac_objext; then
5994
$as_echo "$as_me: failed program was:" >&5
5995
sed 's/^/| /' conftest.$ac_ext >&5
6000
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6001
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6004
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6005
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6007
ac_test_FFLAGS=${FFLAGS+set}
6008
ac_save_FFLAGS=$FFLAGS
6010
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6011
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6012
if test "${ac_cv_prog_f77_g+set}" = set; then
6013
$as_echo_n "(cached) " >&6
6016
cat >conftest.$ac_ext <<_ACEOF
6021
rm -f conftest.$ac_objext
6022
if { (ac_try="$ac_compile"
6024
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025
*) ac_try_echo=$ac_try;;
6027
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6028
$as_echo "$ac_try_echo") >&5
6029
(eval "$ac_compile") 2>conftest.er1
6031
grep -v '^ *+' conftest.er1 >conftest.err
6033
cat conftest.err >&5
6034
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035
(exit $ac_status); } && {
6036
test -z "$ac_f77_werror_flag" ||
6037
test ! -s conftest.err
6038
} && test -s conftest.$ac_objext; then
6039
ac_cv_prog_f77_g=yes
6041
$as_echo "$as_me: failed program was:" >&5
6042
sed 's/^/| /' conftest.$ac_ext >&5
6047
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6051
$as_echo "$ac_cv_prog_f77_g" >&6; }
6052
if test "$ac_test_FFLAGS" = set; then
6053
FFLAGS=$ac_save_FFLAGS
6054
elif test $ac_cv_prog_f77_g = yes; then
6055
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6061
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6068
if test $ac_compiler_gnu = yes; then
6074
ac_cpp='$CPP $CPPFLAGS'
6075
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6076
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6077
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6081
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6082
# find the maximum length of command line arguments
6083
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6084
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6085
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6086
$as_echo_n "(cached) " >&6
6093
# On DJGPP, this test can blow up pretty badly due to problems in libc
6094
# (any single argument exceeding 2000 bytes causes a buffer overrun
6095
# during glob expansion). Even if it were fixed, the result of this
6096
# check would be larger than it should be.
6097
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6101
# Under GNU Hurd, this test is not required because there is
6102
# no limit to the length of command line arguments.
6103
# Libtool will interpret -1 as no limit whatsoever
6104
lt_cv_sys_max_cmd_len=-1;
6108
# On Win9x/ME, this test blows up -- it succeeds, but takes
6109
# about 5 minutes as the teststring grows exponentially.
6110
# Worse, since 9x/ME are not pre-emptively multitasking,
6111
# you end up with a "frozen" computer, even though with patience
6112
# the test eventually succeeds (with a max line length of 256k).
6113
# Instead, let's just punt: use the minimum linelength reported by
6114
# all of the supported platforms: 8192 (on NT/2K/XP).
6115
lt_cv_sys_max_cmd_len=8192;
6119
# On AmigaOS with pdksh, this test takes hours, literally.
6120
# So we just punt and use a minimum line length of 8192.
6121
lt_cv_sys_max_cmd_len=8192;
6124
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6125
# This has been around since 386BSD, at least. Likely further.
6126
if test -x /sbin/sysctl; then
6127
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6128
elif test -x /usr/sbin/sysctl; then
6129
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6131
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6133
# And add a safety zone
6134
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6135
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6139
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6140
lt_cv_sys_max_cmd_len=196608
6144
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6145
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6146
# nice to cause kernel panics so lets avoid the loop below.
6147
# First set a reasonable default.
6148
lt_cv_sys_max_cmd_len=16384
6150
if test -x /sbin/sysconfig; then
6151
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6152
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6157
lt_cv_sys_max_cmd_len=102400
6159
sysv5* | sco5v6* | sysv4.2uw2*)
6160
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6161
if test -n "$kargmax"; then
6162
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6164
lt_cv_sys_max_cmd_len=32768
6168
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6169
if test -n "$lt_cv_sys_max_cmd_len"; then
6170
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6171
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6173
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6174
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6175
= "XX$teststring") >/dev/null 2>&1 &&
6176
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6177
lt_cv_sys_max_cmd_len=$new_result &&
6178
test $i != 17 # 1/2 MB should be enough
6181
teststring=$teststring$teststring
6184
# Add a significant safety factor because C++ compilers can tack on massive
6185
# amounts of additional arguments before passing them to the linker.
6186
# It appears as though 1/2 is a usable value.
6187
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6194
if test -n $lt_cv_sys_max_cmd_len ; then
6195
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6196
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6198
{ $as_echo "$as_me:$LINENO: result: none" >&5
6199
$as_echo "none" >&6; }
6206
# Check for command to grab the raw symbol name followed by C symbol from nm.
6207
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6208
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6209
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6210
$as_echo_n "(cached) " >&6
6213
# These are sane defaults that work on at least a few old systems.
6214
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6216
# Character class describing NM global symbol codes.
6217
symcode='[BCDEGRST]'
6219
# Regexp to match symbols that can be accessed directly from C.
6220
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6222
# Transform an extracted symbol line into a proper C declaration
6223
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6225
# Transform an extracted symbol line into symbol name and symbol address
6226
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'"
6228
# Define system-specific variables.
6233
cygwin* | mingw* | pw32*)
6234
symcode='[ABCDGISTW]'
6236
hpux*) # Its linker distinguishes data from code symbols
6237
if test "$host_cpu" = ia64; then
6238
symcode='[ABCDEGRST]'
6240
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6241
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'"
6243
linux* | k*bsd*-gnu)
6244
if test "$host_cpu" = ia64; then
6245
symcode='[ABCDGIRSTW]'
6246
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6247
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'"
6251
symcode='[BCDEGRST]'
6254
symcode='[BCDEGQRST]'
6265
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6273
# Handle CRLF in mingw tool chain
6277
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6281
# If we're using GNU nm, then use its standard symbol codes.
6282
case `$NM -V 2>&1` in
6283
*GNU* | *'with BFD'*)
6284
symcode='[ABCDGIRSTW]' ;;
6287
# Try without a prefix undercore, then with it.
6288
for ac_symprfx in "" "_"; do
6290
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6291
symxfrm="\\1 $ac_symprfx\\2 \\2"
6293
# Write the raw and C identifiers.
6294
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6296
# Check to see that the pipe works correctly.
6300
cat > conftest.$ac_ext <<EOF
6305
void nm_test_func(){}
6309
int main(){nm_test_var='a';nm_test_func();return(0);}
6312
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6313
(eval $ac_compile) 2>&5
6315
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316
(exit $ac_status); }; then
6317
# Now try to grab the symbols.
6319
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6320
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6322
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323
(exit $ac_status); } && test -s "$nlist"; then
6324
# Try sorting and uniquifying the output.
6325
if sort "$nlist" | uniq > "$nlist"T; then
6326
mv -f "$nlist"T "$nlist"
6331
# Make sure that we snagged all the symbols we need.
6332
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6333
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6334
cat <<EOF > conftest.$ac_ext
6340
# Now generate the symbol file.
6341
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6343
cat <<EOF >> conftest.$ac_ext
6344
#if defined (__STDC__) && __STDC__
6345
# define lt_ptr_t void *
6347
# define lt_ptr_t char *
6351
/* The mapping between symbol names and symbols. */
6356
lt_preloaded_symbols[] =
6359
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6360
cat <<\EOF >> conftest.$ac_ext
6368
# Now try linking the two files.
6369
mv conftest.$ac_objext conftstm.$ac_objext
6370
lt_save_LIBS="$LIBS"
6371
lt_save_CFLAGS="$CFLAGS"
6372
LIBS="conftstm.$ac_objext"
6373
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6374
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6375
(eval $ac_link) 2>&5
6377
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6381
LIBS="$lt_save_LIBS"
6382
CFLAGS="$lt_save_CFLAGS"
6384
echo "cannot find nm_test_func in $nlist" >&5
6387
echo "cannot find nm_test_var in $nlist" >&5
6390
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6393
echo "$progname: failed program was:" >&5
6394
cat conftest.$ac_ext >&5
6396
rm -rf conftest* conftst*
6398
# Do not use the global_symbol_pipe unless it works.
6399
if test "$pipe_works" = yes; then
6402
lt_cv_sys_global_symbol_pipe=
6408
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6409
lt_cv_sys_global_symbol_to_cdecl=
6411
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6412
{ $as_echo "$as_me:$LINENO: result: failed" >&5
6413
$as_echo "failed" >&6; }
6415
{ $as_echo "$as_me:$LINENO: result: ok" >&5
6416
$as_echo "ok" >&6; }
6419
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6420
$as_echo_n "checking for objdir... " >&6; }
6421
if test "${lt_cv_objdir+set}" = set; then
6422
$as_echo_n "(cached) " >&6
6424
rm -f .libs 2>/dev/null
6425
mkdir .libs 2>/dev/null
6426
if test -d .libs; then
6429
# MS-DOS does not allow filenames that begin with a dot.
6432
rmdir .libs 2>/dev/null
6434
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6435
$as_echo "$lt_cv_objdir" >&6; }
6436
objdir=$lt_cv_objdir
6444
# AIX sometimes has problems with the GCC collect2 program. For some
6445
# reason, if we set the COLLECT_NAMES environment variable, the problems
6446
# vanish in a puff of smoke.
6447
if test "X${COLLECT_NAMES+set}" != Xset; then
6449
export COLLECT_NAMES
6454
# Sed substitution that helps us do robust quoting. It backslashifies
6455
# metacharacters that are still active within double-quoted strings.
6456
Xsed='sed -e 1s/^X//'
6457
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6459
# Same as above, but do not quote variable references.
6460
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6462
# Sed substitution to delay expansion of an escaped shell variable in a
6463
# double_quote_subst'ed string.
6464
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6466
# Sed substitution to avoid accidental globbing in evaled expressions
6467
no_glob_subst='s/\*/\\\*/g'
6473
default_ofile=libtool
6474
can_build_shared=yes
6476
# All known linkers require a `.a' archive for static linking (except MSVC,
6477
# which needs '.lib').
6479
ltmain="$ac_aux_dir/ltmain.sh"
6480
ofile="$default_ofile"
6481
with_gnu_ld="$lt_cv_prog_gnu_ld"
6483
if test -n "$ac_tool_prefix"; then
6484
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6485
set dummy ${ac_tool_prefix}ar; ac_word=$2
6486
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6487
$as_echo_n "checking for $ac_word... " >&6; }
6488
if test "${ac_cv_prog_AR+set}" = set; then
6489
$as_echo_n "(cached) " >&6
6491
if test -n "$AR"; then
6492
ac_cv_prog_AR="$AR" # Let the user override the test.
6494
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498
test -z "$as_dir" && as_dir=.
6499
for ac_exec_ext in '' $ac_executable_extensions; do
6500
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6501
ac_cv_prog_AR="${ac_tool_prefix}ar"
6502
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512
if test -n "$AR"; then
6513
{ $as_echo "$as_me:$LINENO: result: $AR" >&5
6514
$as_echo "$AR" >&6; }
6516
{ $as_echo "$as_me:$LINENO: result: no" >&5
6517
$as_echo "no" >&6; }
6522
if test -z "$ac_cv_prog_AR"; then
6524
# Extract the first word of "ar", so it can be a program name with args.
6525
set dummy ar; ac_word=$2
6526
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6527
$as_echo_n "checking for $ac_word... " >&6; }
6528
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6529
$as_echo_n "(cached) " >&6
6531
if test -n "$ac_ct_AR"; then
6532
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538
test -z "$as_dir" && as_dir=.
6539
for ac_exec_ext in '' $ac_executable_extensions; do
6540
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541
ac_cv_prog_ac_ct_AR="ar"
6542
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6552
if test -n "$ac_ct_AR"; then
6553
{ $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6554
$as_echo "$ac_ct_AR" >&6; }
6556
{ $as_echo "$as_me:$LINENO: result: no" >&5
6557
$as_echo "no" >&6; }
6560
if test "x$ac_ct_AR" = x; then
6563
case $cross_compiling:$ac_tool_warned in
6565
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6566
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6567
ac_tool_warned=yes ;;
6575
if test -n "$ac_tool_prefix"; then
6576
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6577
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6578
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6579
$as_echo_n "checking for $ac_word... " >&6; }
6580
if test "${ac_cv_prog_RANLIB+set}" = set; then
6581
$as_echo_n "(cached) " >&6
6583
if test -n "$RANLIB"; then
6584
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6586
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590
test -z "$as_dir" && as_dir=.
6591
for ac_exec_ext in '' $ac_executable_extensions; do
6592
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6593
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6594
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6603
RANLIB=$ac_cv_prog_RANLIB
6604
if test -n "$RANLIB"; then
6605
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6606
$as_echo "$RANLIB" >&6; }
6608
{ $as_echo "$as_me:$LINENO: result: no" >&5
6609
$as_echo "no" >&6; }
6614
if test -z "$ac_cv_prog_RANLIB"; then
6615
ac_ct_RANLIB=$RANLIB
6616
# Extract the first word of "ranlib", so it can be a program name with args.
6617
set dummy ranlib; ac_word=$2
6618
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6619
$as_echo_n "checking for $ac_word... " >&6; }
6620
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6621
$as_echo_n "(cached) " >&6
6623
if test -n "$ac_ct_RANLIB"; then
6624
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6626
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630
test -z "$as_dir" && as_dir=.
6631
for ac_exec_ext in '' $ac_executable_extensions; do
6632
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633
ac_cv_prog_ac_ct_RANLIB="ranlib"
6634
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6644
if test -n "$ac_ct_RANLIB"; then
6645
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6646
$as_echo "$ac_ct_RANLIB" >&6; }
6648
{ $as_echo "$as_me:$LINENO: result: no" >&5
6649
$as_echo "no" >&6; }
6652
if test "x$ac_ct_RANLIB" = x; then
6655
case $cross_compiling:$ac_tool_warned in
6657
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6658
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6659
ac_tool_warned=yes ;;
6661
RANLIB=$ac_ct_RANLIB
6664
RANLIB="$ac_cv_prog_RANLIB"
6667
if test -n "$ac_tool_prefix"; then
6668
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6669
set dummy ${ac_tool_prefix}strip; ac_word=$2
6670
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6671
$as_echo_n "checking for $ac_word... " >&6; }
6672
if test "${ac_cv_prog_STRIP+set}" = set; then
6673
$as_echo_n "(cached) " >&6
6675
if test -n "$STRIP"; then
6676
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682
test -z "$as_dir" && as_dir=.
6683
for ac_exec_ext in '' $ac_executable_extensions; do
6684
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6686
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695
STRIP=$ac_cv_prog_STRIP
6696
if test -n "$STRIP"; then
6697
{ $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6698
$as_echo "$STRIP" >&6; }
6700
{ $as_echo "$as_me:$LINENO: result: no" >&5
6701
$as_echo "no" >&6; }
6706
if test -z "$ac_cv_prog_STRIP"; then
6708
# Extract the first word of "strip", so it can be a program name with args.
6709
set dummy strip; ac_word=$2
6710
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6711
$as_echo_n "checking for $ac_word... " >&6; }
6712
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6713
$as_echo_n "(cached) " >&6
6715
if test -n "$ac_ct_STRIP"; then
6716
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722
test -z "$as_dir" && as_dir=.
6723
for ac_exec_ext in '' $ac_executable_extensions; do
6724
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725
ac_cv_prog_ac_ct_STRIP="strip"
6726
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6736
if test -n "$ac_ct_STRIP"; then
6737
{ $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6738
$as_echo "$ac_ct_STRIP" >&6; }
6740
{ $as_echo "$as_me:$LINENO: result: no" >&5
6741
$as_echo "no" >&6; }
6744
if test "x$ac_ct_STRIP" = x; then
6747
case $cross_compiling:$ac_tool_warned in
6749
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6750
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751
ac_tool_warned=yes ;;
6756
STRIP="$ac_cv_prog_STRIP"
6761
old_CFLAGS="$CFLAGS"
6763
# Set sane defaults for various variables
6764
test -z "$AR" && AR=ar
6765
test -z "$AR_FLAGS" && AR_FLAGS=cru
6766
test -z "$AS" && AS=as
6767
test -z "$CC" && CC=cc
6768
test -z "$LTCC" && LTCC=$CC
6769
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6770
test -z "$DLLTOOL" && DLLTOOL=dlltool
6771
test -z "$LD" && LD=ld
6772
test -z "$LN_S" && LN_S="ln -s"
6773
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6774
test -z "$NM" && NM=nm
6775
test -z "$SED" && SED=sed
6776
test -z "$OBJDUMP" && OBJDUMP=objdump
6777
test -z "$RANLIB" && RANLIB=:
6778
test -z "$STRIP" && STRIP=:
6779
test -z "$ac_objext" && ac_objext=o
6781
# Determine commands to create old-style static archives.
6782
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6783
old_postinstall_cmds='chmod 644 $oldlib'
6784
old_postuninstall_cmds=
6786
if test -n "$RANLIB"; then
6789
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6792
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6795
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6798
for cc_temp in $compiler""; do
6800
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6801
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6806
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6809
# Only perform the check for file, if the check method requires it
6810
case $deplibs_check_method in
6812
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6813
{ $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6814
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6815
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6816
$as_echo_n "(cached) " >&6
6820
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6823
lt_save_MAGIC_CMD="$MAGIC_CMD"
6824
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6825
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6826
for ac_dir in $ac_dummy; do
6828
test -z "$ac_dir" && ac_dir=.
6829
if test -f $ac_dir/${ac_tool_prefix}file; then
6830
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6831
if test -n "$file_magic_test_file"; then
6832
case $deplibs_check_method in
6834
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6835
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6836
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6837
$EGREP "$file_magic_regex" > /dev/null; then
6842
*** Warning: the command libtool uses to detect shared libraries,
6843
*** $file_magic_cmd, produces output that libtool cannot recognize.
6844
*** The result is that libtool may fail to recognize shared libraries
6845
*** as such. This will affect the creation of libtool libraries that
6846
*** depend on shared libraries, but programs linked with such libtool
6847
*** libraries will work regardless of this problem. Nevertheless, you
6848
*** may want to report the problem to your system manager and/or to
6849
*** bug-libtool@gnu.org
6859
MAGIC_CMD="$lt_save_MAGIC_CMD"
6864
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6865
if test -n "$MAGIC_CMD"; then
6866
{ $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6867
$as_echo "$MAGIC_CMD" >&6; }
6869
{ $as_echo "$as_me:$LINENO: result: no" >&5
6870
$as_echo "no" >&6; }
6873
if test -z "$lt_cv_path_MAGIC_CMD"; then
6874
if test -n "$ac_tool_prefix"; then
6875
{ $as_echo "$as_me:$LINENO: checking for file" >&5
6876
$as_echo_n "checking for file... " >&6; }
6877
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6878
$as_echo_n "(cached) " >&6
6882
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6885
lt_save_MAGIC_CMD="$MAGIC_CMD"
6886
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6887
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6888
for ac_dir in $ac_dummy; do
6890
test -z "$ac_dir" && ac_dir=.
6891
if test -f $ac_dir/file; then
6892
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6893
if test -n "$file_magic_test_file"; then
6894
case $deplibs_check_method in
6896
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6897
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6898
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6899
$EGREP "$file_magic_regex" > /dev/null; then
6904
*** Warning: the command libtool uses to detect shared libraries,
6905
*** $file_magic_cmd, produces output that libtool cannot recognize.
6906
*** The result is that libtool may fail to recognize shared libraries
6907
*** as such. This will affect the creation of libtool libraries that
6908
*** depend on shared libraries, but programs linked with such libtool
6909
*** libraries will work regardless of this problem. Nevertheless, you
6910
*** may want to report the problem to your system manager and/or to
6911
*** bug-libtool@gnu.org
6921
MAGIC_CMD="$lt_save_MAGIC_CMD"
6926
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6927
if test -n "$MAGIC_CMD"; then
6928
{ $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6929
$as_echo "$MAGIC_CMD" >&6; }
6931
{ $as_echo "$as_me:$LINENO: result: no" >&5
6932
$as_echo "no" >&6; }
6946
rhapsody* | darwin*)
6947
if test -n "$ac_tool_prefix"; then
6948
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6949
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6950
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6951
$as_echo_n "checking for $ac_word... " >&6; }
6952
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6953
$as_echo_n "(cached) " >&6
6955
if test -n "$DSYMUTIL"; then
6956
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6958
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962
test -z "$as_dir" && as_dir=.
6963
for ac_exec_ext in '' $ac_executable_extensions; do
6964
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6966
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6976
if test -n "$DSYMUTIL"; then
6977
{ $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6978
$as_echo "$DSYMUTIL" >&6; }
6980
{ $as_echo "$as_me:$LINENO: result: no" >&5
6981
$as_echo "no" >&6; }
6986
if test -z "$ac_cv_prog_DSYMUTIL"; then
6987
ac_ct_DSYMUTIL=$DSYMUTIL
6988
# Extract the first word of "dsymutil", so it can be a program name with args.
6989
set dummy dsymutil; ac_word=$2
6990
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6991
$as_echo_n "checking for $ac_word... " >&6; }
6992
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6993
$as_echo_n "(cached) " >&6
6995
if test -n "$ac_ct_DSYMUTIL"; then
6996
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6998
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002
test -z "$as_dir" && as_dir=.
7003
for ac_exec_ext in '' $ac_executable_extensions; do
7004
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7006
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7016
if test -n "$ac_ct_DSYMUTIL"; then
7017
{ $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7018
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7020
{ $as_echo "$as_me:$LINENO: result: no" >&5
7021
$as_echo "no" >&6; }
7024
if test "x$ac_ct_DSYMUTIL" = x; then
7027
case $cross_compiling:$ac_tool_warned in
7029
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7030
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7031
ac_tool_warned=yes ;;
7033
DSYMUTIL=$ac_ct_DSYMUTIL
7036
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7039
if test -n "$ac_tool_prefix"; then
7040
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7041
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7042
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7043
$as_echo_n "checking for $ac_word... " >&6; }
7044
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7045
$as_echo_n "(cached) " >&6
7047
if test -n "$NMEDIT"; then
7048
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7050
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054
test -z "$as_dir" && as_dir=.
7055
for ac_exec_ext in '' $ac_executable_extensions; do
7056
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7057
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7058
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067
NMEDIT=$ac_cv_prog_NMEDIT
7068
if test -n "$NMEDIT"; then
7069
{ $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7070
$as_echo "$NMEDIT" >&6; }
7072
{ $as_echo "$as_me:$LINENO: result: no" >&5
7073
$as_echo "no" >&6; }
7078
if test -z "$ac_cv_prog_NMEDIT"; then
7079
ac_ct_NMEDIT=$NMEDIT
7080
# Extract the first word of "nmedit", so it can be a program name with args.
7081
set dummy nmedit; ac_word=$2
7082
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7083
$as_echo_n "checking for $ac_word... " >&6; }
7084
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7085
$as_echo_n "(cached) " >&6
7087
if test -n "$ac_ct_NMEDIT"; then
7088
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094
test -z "$as_dir" && as_dir=.
7095
for ac_exec_ext in '' $ac_executable_extensions; do
7096
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7097
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7098
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7108
if test -n "$ac_ct_NMEDIT"; then
7109
{ $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7110
$as_echo "$ac_ct_NMEDIT" >&6; }
7112
{ $as_echo "$as_me:$LINENO: result: no" >&5
7113
$as_echo "no" >&6; }
7116
if test "x$ac_ct_NMEDIT" = x; then
7119
case $cross_compiling:$ac_tool_warned in
7121
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7122
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7123
ac_tool_warned=yes ;;
7125
NMEDIT=$ac_ct_NMEDIT
7128
NMEDIT="$ac_cv_prog_NMEDIT"
7132
{ $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7133
$as_echo_n "checking for -single_module linker flag... " >&6; }
7134
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7135
$as_echo_n "(cached) " >&6
7137
lt_cv_apple_cc_single_mod=no
7138
if test -z "${LT_MULTI_MODULE}"; then
7139
# By default we will add the -single_module flag. You can override
7140
# by either setting the environment variable LT_MULTI_MODULE
7141
# non-empty at configure time, or by adding -multi_module to the
7143
echo "int foo(void){return 1;}" > conftest.c
7144
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7145
-dynamiclib ${wl}-single_module conftest.c
7146
if test -f libconftest.dylib; then
7147
lt_cv_apple_cc_single_mod=yes
7148
rm -rf libconftest.dylib*
7153
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7154
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7155
{ $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7156
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7157
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7158
$as_echo_n "(cached) " >&6
7160
lt_cv_ld_exported_symbols_list=no
7161
save_LDFLAGS=$LDFLAGS
7162
echo "_main" > conftest.sym
7163
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7164
cat >conftest.$ac_ext <<_ACEOF
7167
cat confdefs.h >>conftest.$ac_ext
7168
cat >>conftest.$ac_ext <<_ACEOF
7169
/* end confdefs.h. */
7179
rm -f conftest.$ac_objext conftest$ac_exeext
7180
if { (ac_try="$ac_link"
7182
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7183
*) ac_try_echo=$ac_try;;
7185
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7186
$as_echo "$ac_try_echo") >&5
7187
(eval "$ac_link") 2>conftest.er1
7189
grep -v '^ *+' conftest.er1 >conftest.err
7191
cat conftest.err >&5
7192
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193
(exit $ac_status); } && {
7194
test -z "$ac_c_werror_flag" ||
7195
test ! -s conftest.err
7196
} && test -s conftest$ac_exeext && {
7197
test "$cross_compiling" = yes ||
7198
$as_test_x conftest$ac_exeext
7200
lt_cv_ld_exported_symbols_list=yes
7202
$as_echo "$as_me: failed program was:" >&5
7203
sed 's/^/| /' conftest.$ac_ext >&5
7205
lt_cv_ld_exported_symbols_list=no
7208
rm -rf conftest.dSYM
7209
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7210
conftest$ac_exeext conftest.$ac_ext
7211
LDFLAGS="$save_LDFLAGS"
7214
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7215
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7217
rhapsody* | darwin1.[0123])
7218
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7220
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7222
# if running on 10.5 or later, the deployment target defaults
7223
# to the OS version, if on x86, and 10.4, the deployment
7224
# target defaults to 10.4. Don't you love it?
7225
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7226
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7227
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7229
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7231
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7235
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7236
_lt_dar_single_mod='$single_module'
7238
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7239
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7241
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7243
if test "$DSYMUTIL" != ":"; then
7244
_lt_dsymutil="~$DSYMUTIL \$lib || :"
7255
# Check whether --enable-libtool-lock was given.
7256
if test "${enable_libtool_lock+set}" = set; then
7257
enableval=$enable_libtool_lock;
7260
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7263
# Check whether --with-pic was given.
7264
if test "${with_pic+set}" = set; then
7265
withval=$with_pic; pic_mode="$withval"
7270
test -z "$pic_mode" && pic_mode=default
7272
# Use C for the default configuration in the libtool script
7276
ac_cpp='$CPP $CPPFLAGS'
7277
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282
# Source file extension for C test sources.
7285
# Object file extension for compiled C test sources.
7289
# Code to be used in simple compile tests
7290
lt_simple_compile_test_code="int some_variable = 0;"
7292
# Code to be used in simple link tests
7293
lt_simple_link_test_code='int main(){return(0);}'
7296
# If no C compiler was specified, use CC.
7299
# If no C compiler flags were specified, use CFLAGS.
7300
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7302
# Allow CC to be a program name with arguments.
7306
# save warnings/boilerplate of simple test code
7307
ac_outfile=conftest.$ac_objext
7308
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7309
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7310
_lt_compiler_boilerplate=`cat conftest.err`
7313
ac_outfile=conftest.$ac_objext
7314
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7315
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7316
_lt_linker_boilerplate=`cat conftest.err`
7321
lt_prog_compiler_no_builtin_flag=
7323
if test "$GCC" = yes; then
7324
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7327
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7328
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7329
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7330
$as_echo_n "(cached) " >&6
7332
lt_cv_prog_compiler_rtti_exceptions=no
7333
ac_outfile=conftest.$ac_objext
7334
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7335
lt_compiler_flag="-fno-rtti -fno-exceptions"
7336
# Insert the option either (1) after the last *FLAGS variable, or
7337
# (2) before a word containing "conftest.", or (3) at the end.
7338
# Note that $ac_compile itself does not contain backslashes and begins
7339
# with a dollar sign (not a hyphen), so the echo should work correctly.
7340
# The option is referenced via a variable to avoid confusing sed.
7341
lt_compile=`echo "$ac_compile" | $SED \
7342
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7343
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7344
-e 's:$: $lt_compiler_flag:'`
7345
(eval echo "\"\$as_me:7345: $lt_compile\"" >&5)
7346
(eval "$lt_compile" 2>conftest.err)
7348
cat conftest.err >&5
7349
echo "$as_me:7349: \$? = $ac_status" >&5
7350
if (exit $ac_status) && test -s "$ac_outfile"; then
7351
# The compiler can only warn and ignore the option if not recognized
7352
# So say no if there are warnings other than the usual output.
7353
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7354
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7355
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7356
lt_cv_prog_compiler_rtti_exceptions=yes
7362
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7363
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7365
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7366
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7373
lt_prog_compiler_wl=
7374
lt_prog_compiler_pic=
7375
lt_prog_compiler_static=
7377
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7378
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7380
if test "$GCC" = yes; then
7381
lt_prog_compiler_wl='-Wl,'
7382
lt_prog_compiler_static='-static'
7386
# All AIX code is PIC.
7387
if test "$host_cpu" = ia64; then
7388
# AIX 5 now supports IA64 processor
7389
lt_prog_compiler_static='-Bstatic'
7394
# FIXME: we need at least 68020 code to build shared libraries, but
7395
# adding the `-m68020' flag to GCC prevents building anything better,
7397
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7400
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7401
# PIC is the default for these OSes.
7404
mingw* | cygwin* | pw32* | os2*)
7405
# This hack is so that the source file can tell whether it is being
7406
# built for inclusion in a dll (and should export symbols for example).
7407
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7408
# (--disable-auto-import) libraries
7409
lt_prog_compiler_pic='-DDLL_EXPORT'
7412
darwin* | rhapsody*)
7413
# PIC is the default on this platform
7414
# Common symbols not allowed in MH_DYLIB files
7415
lt_prog_compiler_pic='-fno-common'
7419
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7420
# Instead, we relocate shared libraries at runtime.
7424
# Just because we use GCC doesn't mean we suddenly get shared libraries
7425
# on systems that don't support them.
7426
lt_prog_compiler_can_build_shared=no
7431
if test -d /usr/nec; then
7432
lt_prog_compiler_pic=-Kconform_pic
7437
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7444
lt_prog_compiler_pic='-fPIC'
7450
lt_prog_compiler_pic='-fPIC'
7454
# PORTME Check for flag to pass linker flags through the system compiler.
7457
lt_prog_compiler_wl='-Wl,'
7458
if test "$host_cpu" = ia64; then
7459
# AIX 5 now supports IA64 processor
7460
lt_prog_compiler_static='-Bstatic'
7462
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7466
# PIC is the default on this platform
7467
# Common symbols not allowed in MH_DYLIB files
7468
case $cc_basename in
7470
lt_prog_compiler_pic='-qnocommon'
7471
lt_prog_compiler_wl='-Wl,'
7476
mingw* | cygwin* | pw32* | os2*)
7477
# This hack is so that the source file can tell whether it is being
7478
# built for inclusion in a dll (and should export symbols for example).
7479
lt_prog_compiler_pic='-DDLL_EXPORT'
7482
hpux9* | hpux10* | hpux11*)
7483
lt_prog_compiler_wl='-Wl,'
7484
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7491
lt_prog_compiler_pic='+Z'
7494
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7495
lt_prog_compiler_static='${wl}-a ${wl}archive'
7498
irix5* | irix6* | nonstopux*)
7499
lt_prog_compiler_wl='-Wl,'
7500
# PIC (with -KPIC) is the default.
7501
lt_prog_compiler_static='-non_shared'
7505
lt_prog_compiler_pic='-KPIC'
7506
lt_prog_compiler_static='-Bstatic'
7509
linux* | k*bsd*-gnu)
7510
case $cc_basename in
7512
lt_prog_compiler_wl='-Wl,'
7513
lt_prog_compiler_pic='-KPIC'
7514
lt_prog_compiler_static='-static'
7516
pgcc* | pgf77* | pgf90* | pgf95*)
7517
# Portland Group compilers (*not* the Pentium gcc compiler,
7518
# which looks to be a dead project)
7519
lt_prog_compiler_wl='-Wl,'
7520
lt_prog_compiler_pic='-fpic'
7521
lt_prog_compiler_static='-Bstatic'
7524
lt_prog_compiler_wl='-Wl,'
7525
# All Alpha code is PIC.
7526
lt_prog_compiler_static='-non_shared'
7529
case `$CC -V 2>&1 | sed 5q` in
7532
lt_prog_compiler_pic='-KPIC'
7533
lt_prog_compiler_static='-Bstatic'
7534
lt_prog_compiler_wl='-Wl,'
7537
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7538
lt_prog_compiler_pic='-KPIC'
7539
lt_prog_compiler_static='-Bstatic'
7540
lt_prog_compiler_wl=''
7547
osf3* | osf4* | osf5*)
7548
lt_prog_compiler_wl='-Wl,'
7549
# All OSF/1 code is PIC.
7550
lt_prog_compiler_static='-non_shared'
7554
lt_prog_compiler_static='-non_shared'
7558
lt_prog_compiler_pic='-KPIC'
7559
lt_prog_compiler_static='-Bstatic'
7560
case $cc_basename in
7562
lt_prog_compiler_wl='-Qoption ld ';;
7564
lt_prog_compiler_wl='-Wl,';;
7569
lt_prog_compiler_wl='-Qoption ld '
7570
lt_prog_compiler_pic='-PIC'
7571
lt_prog_compiler_static='-Bstatic'
7574
sysv4 | sysv4.2uw2* | sysv4.3*)
7575
lt_prog_compiler_wl='-Wl,'
7576
lt_prog_compiler_pic='-KPIC'
7577
lt_prog_compiler_static='-Bstatic'
7581
if test -d /usr/nec ;then
7582
lt_prog_compiler_pic='-Kconform_pic'
7583
lt_prog_compiler_static='-Bstatic'
7587
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7588
lt_prog_compiler_wl='-Wl,'
7589
lt_prog_compiler_pic='-KPIC'
7590
lt_prog_compiler_static='-Bstatic'
7594
lt_prog_compiler_wl='-Wl,'
7595
lt_prog_compiler_can_build_shared=no
7599
lt_prog_compiler_pic='-pic'
7600
lt_prog_compiler_static='-Bstatic'
7604
lt_prog_compiler_can_build_shared=no
7609
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7610
$as_echo "$lt_prog_compiler_pic" >&6; }
7613
# Check to make sure the PIC flag actually works.
7615
if test -n "$lt_prog_compiler_pic"; then
7617
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7618
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7619
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7620
$as_echo_n "(cached) " >&6
7622
lt_cv_prog_compiler_pic_works=no
7623
ac_outfile=conftest.$ac_objext
7624
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7625
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7626
# Insert the option either (1) after the last *FLAGS variable, or
7627
# (2) before a word containing "conftest.", or (3) at the end.
7628
# Note that $ac_compile itself does not contain backslashes and begins
7629
# with a dollar sign (not a hyphen), so the echo should work correctly.
7630
# The option is referenced via a variable to avoid confusing sed.
7631
lt_compile=`echo "$ac_compile" | $SED \
7632
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7633
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7634
-e 's:$: $lt_compiler_flag:'`
7635
(eval echo "\"\$as_me:7635: $lt_compile\"" >&5)
7636
(eval "$lt_compile" 2>conftest.err)
7638
cat conftest.err >&5
7639
echo "$as_me:7639: \$? = $ac_status" >&5
7640
if (exit $ac_status) && test -s "$ac_outfile"; then
7641
# The compiler can only warn and ignore the option if not recognized
7642
# So say no if there are warnings other than the usual output.
7643
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7644
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7645
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7646
lt_cv_prog_compiler_pic_works=yes
7652
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7653
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7655
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7656
case $lt_prog_compiler_pic in
7658
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7661
lt_prog_compiler_pic=
7662
lt_prog_compiler_can_build_shared=no
7667
# For platforms which do not support PIC, -DPIC is meaningless:
7669
lt_prog_compiler_pic=
7672
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7677
# Check to make sure the static flag actually works.
7679
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7680
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7681
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7682
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7683
$as_echo_n "(cached) " >&6
7685
lt_cv_prog_compiler_static_works=no
7686
save_LDFLAGS="$LDFLAGS"
7687
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7688
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7689
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7690
# The linker can only warn and ignore the option if not recognized
7691
# So say no if there are warnings
7692
if test -s conftest.err; then
7693
# Append any errors to the config.log.
7694
cat conftest.err 1>&5
7695
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7696
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7697
if diff conftest.exp conftest.er2 >/dev/null; then
7698
lt_cv_prog_compiler_static_works=yes
7701
lt_cv_prog_compiler_static_works=yes
7705
LDFLAGS="$save_LDFLAGS"
7708
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7709
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7711
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7714
lt_prog_compiler_static=
7718
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7719
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7720
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7721
$as_echo_n "(cached) " >&6
7723
lt_cv_prog_compiler_c_o=no
7724
$rm -r conftest 2>/dev/null
7728
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7730
lt_compiler_flag="-o out/conftest2.$ac_objext"
7731
# Insert the option either (1) after the last *FLAGS variable, or
7732
# (2) before a word containing "conftest.", or (3) at the end.
7733
# Note that $ac_compile itself does not contain backslashes and begins
7734
# with a dollar sign (not a hyphen), so the echo should work correctly.
7735
lt_compile=`echo "$ac_compile" | $SED \
7736
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7737
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7738
-e 's:$: $lt_compiler_flag:'`
7739
(eval echo "\"\$as_me:7739: $lt_compile\"" >&5)
7740
(eval "$lt_compile" 2>out/conftest.err)
7742
cat out/conftest.err >&5
7743
echo "$as_me:7743: \$? = $ac_status" >&5
7744
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7746
# The compiler can only warn and ignore the option if not recognized
7747
# So say no if there are warnings
7748
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7749
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7750
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7751
lt_cv_prog_compiler_c_o=yes
7756
# SGI C++ compiler will create directory out/ii_files/ for
7757
# template instantiation
7758
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7759
$rm out/* && rmdir out
7765
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7766
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7769
hard_links="nottested"
7770
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7771
# do not overwrite the value of need_locks provided by the user
7772
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7773
$as_echo_n "checking if we can lock with hard links... " >&6; }
7776
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7778
ln conftest.a conftest.b 2>&5 || hard_links=no
7779
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7780
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7781
$as_echo "$hard_links" >&6; }
7782
if test "$hard_links" = no; then
7783
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7784
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7791
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7792
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7795
allow_undefined_flag=
7796
enable_shared_with_static_runtimes=no
7798
archive_expsym_cmds=
7799
old_archive_From_new_cmds=
7800
old_archive_from_expsyms_cmds=
7801
export_dynamic_flag_spec=
7802
whole_archive_flag_spec=
7803
thread_safe_flag_spec=
7804
hardcode_libdir_flag_spec=
7805
hardcode_libdir_flag_spec_ld=
7806
hardcode_libdir_separator=
7809
hardcode_shlibpath_var=unsupported
7810
link_all_deplibs=unknown
7811
hardcode_automatic=no
7814
always_export_symbols=no
7815
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7816
# include_expsyms should be a list of space-separated symbols to be *always*
7817
# included in the symbol list
7819
# exclude_expsyms can be an extended regexp of symbols to exclude
7820
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7821
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7822
# as well as any symbol that contains `d'.
7823
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7824
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7825
# platforms (ab)use it in PIC code, but their linkers get confused if
7826
# the symbol is explicitly referenced. Since portable code cannot
7827
# rely on this symbol name, it's probably fine to never include it in
7828
# preloaded symbol tables.
7829
# Exclude shared library initialization/finalization symbols.
7830
extract_expsyms_cmds=
7831
# Just being paranoid about ensuring that cc_basename is set.
7832
for cc_temp in $compiler""; do
7834
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7835
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7840
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7843
cygwin* | mingw* | pw32*)
7844
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7845
# When not using gcc, we currently assume that we are using
7846
# Microsoft Visual C++.
7847
if test "$GCC" != yes; then
7852
# we just hope/assume this is gcc and not c89 (= MSVC++)
7861
if test "$with_gnu_ld" = yes; then
7862
# If archive_cmds runs LD, not CC, wlarc should be empty
7865
# Set some defaults for GNU ld with shared library support. These
7866
# are reset later if shared libraries are not supported. Putting them
7867
# here allows them to be overridden if necessary.
7868
runpath_var=LD_RUN_PATH
7869
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7870
export_dynamic_flag_spec='${wl}--export-dynamic'
7871
# ancient GNU ld didn't support --whole-archive et. al.
7872
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7873
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7875
whole_archive_flag_spec=
7877
supports_anon_versioning=no
7878
case `$LD -v 2>/dev/null` in
7879
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7880
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7881
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7882
*\ 2.11.*) ;; # other 2.11 versions
7883
*) supports_anon_versioning=yes ;;
7886
# See if GNU ld supports shared libraries.
7889
# On AIX/PPC, the GNU linker is very broken
7890
if test "$host_cpu" != ia64; then
7894
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7895
*** to be unable to reliably create shared libraries on AIX.
7896
*** Therefore, libtool is disabling shared libraries support. If you
7897
*** really care for shared libraries, you may want to modify your PATH
7898
*** so that a non-GNU linker is found, and then restart.
7905
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)'
7906
hardcode_libdir_flag_spec='-L$libdir'
7907
hardcode_minus_L=yes
7909
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7910
# that the semantics of dynamic libraries on AmigaOS, at least up
7911
# to version 4, is to share data among multiple programs linked
7912
# with the same dynamic library. Since this doesn't match the
7913
# behavior of shared libraries on other platforms, we can't use
7919
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7920
allow_undefined_flag=unsupported
7921
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7922
# support --undefined. This deserves some investigation. FIXME
7923
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7929
cygwin* | mingw* | pw32*)
7930
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7931
# as there is no search path for DLLs.
7932
hardcode_libdir_flag_spec='-L$libdir'
7933
allow_undefined_flag=unsupported
7934
always_export_symbols=no
7935
enable_shared_with_static_runtimes=yes
7936
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7938
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7939
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7940
# If the export-symbols file already is a .def file (1st line
7941
# is EXPORTS), use it as is; otherwise, prepend...
7942
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7943
cp $export_symbols $output_objdir/$soname.def;
7945
echo EXPORTS > $output_objdir/$soname.def;
7946
cat $export_symbols >> $output_objdir/$soname.def;
7948
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7956
hardcode_shlibpath_var=no
7957
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7958
export_dynamic_flag_spec='${wl}-E'
7959
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7960
# Instead, shared libraries are loaded at an image base (0x10000000 by
7961
# default) and relocated if they conflict, which is a slow very memory
7962
# consuming and fragmenting process. To avoid this, we pick a random,
7963
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7964
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7965
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7966
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7969
gnu* | linux* | k*bsd*-gnu)
7970
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7972
case $cc_basename,$host_cpu in
7973
pgcc*) # Portland Group C compiler
7974
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7975
tmp_addflag=' $pic_flag'
7977
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7978
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7979
tmp_addflag=' $pic_flag -Mnomain' ;;
7980
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7981
tmp_addflag=' -i_dynamic' ;;
7982
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7983
tmp_addflag=' -i_dynamic -nofor_main' ;;
7984
ifc* | ifort*) # Intel Fortran compiler
7985
tmp_addflag=' -nofor_main' ;;
7987
case `$CC -V 2>&1 | sed 5q` in
7988
*Sun\ C*) # Sun C 5.9
7989
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7990
tmp_sharedflag='-G' ;;
7991
*Sun\ F*) # Sun Fortran 8.3
7992
tmp_sharedflag='-G' ;;
7994
tmp_sharedflag='-shared' ;;
7996
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7998
if test $supports_anon_versioning = yes; then
7999
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8000
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8001
$echo "local: *; };" >> $output_objdir/$libname.ver~
8002
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8010
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8011
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8014
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8015
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8020
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8024
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8025
*** create shared libraries on Solaris systems. Therefore, libtool
8026
*** is disabling shared libraries support. We urge you to upgrade GNU
8027
*** binutils to release 2.9.1 or newer. Another option is to modify
8028
*** your PATH or compiler configuration so that the native linker is
8029
*** used, and then restart.
8032
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8033
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8034
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8040
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8041
case `$LD -v 2>&1` in
8042
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8046
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8047
*** reliably create shared libraries on SCO systems. Therefore, libtool
8048
*** is disabling shared libraries support. We urge you to upgrade GNU
8049
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8050
*** your PATH or compiler configuration so that the native linker is
8051
*** used, and then restart.
8056
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8057
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8058
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8059
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8068
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8071
hardcode_shlibpath_var=no
8075
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8076
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8077
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8084
if test "$ld_shlibs" = no; then
8086
hardcode_libdir_flag_spec=
8087
export_dynamic_flag_spec=
8088
whole_archive_flag_spec=
8091
# PORTME fill in a description of your system's linker (not GNU ld)
8094
allow_undefined_flag=unsupported
8095
always_export_symbols=yes
8096
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'
8097
# Note: this linker hardcodes the directories in LIBPATH if there
8098
# are no directories specified by -L.
8099
hardcode_minus_L=yes
8100
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8101
# Neither direct hardcoding nor static linking is supported with a
8103
hardcode_direct=unsupported
8108
if test "$host_cpu" = ia64; then
8109
# On IA64, the linker does run time linking by default, so we don't
8110
# have to do anything special.
8111
aix_use_runtimelinking=no
8112
exp_sym_flag='-Bexport'
8115
# If we're using GNU nm, then we don't want the "-C" option.
8116
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8117
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8118
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'
8120
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'
8122
aix_use_runtimelinking=no
8124
# Test if we are trying to use run time linking or normal
8125
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8126
# need to do runtime linking.
8127
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8128
for ld_flag in $LDFLAGS; do
8129
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8130
aix_use_runtimelinking=yes
8137
exp_sym_flag='-bexport'
8138
no_entry_flag='-bnoentry'
8141
# When large executables or shared objects are built, AIX ld can
8142
# have problems creating the table of contents. If linking a library
8143
# or program results in "error TOC overflow" add -mminimal-toc to
8144
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8145
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8149
hardcode_libdir_separator=':'
8150
link_all_deplibs=yes
8152
if test "$GCC" = yes; then
8153
case $host_os in aix4.[012]|aix4.[012].*)
8154
# We only want to do this on AIX 4.2 and lower, the check
8155
# below for broken collect2 doesn't work under 4.3+
8156
collect2name=`${CC} -print-prog-name=collect2`
8157
if test -f "$collect2name" && \
8158
strings "$collect2name" | grep resolve_lib_name >/dev/null
8160
# We have reworked collect2
8163
# We have old collect2
8164
hardcode_direct=unsupported
8165
# It fails to find uninstalled libraries when the uninstalled
8166
# path is not listed in the libpath. Setting hardcode_minus_L
8167
# to unsupported forces relinking
8168
hardcode_minus_L=yes
8169
hardcode_libdir_flag_spec='-L$libdir'
8170
hardcode_libdir_separator=
8174
shared_flag='-shared'
8175
if test "$aix_use_runtimelinking" = yes; then
8176
shared_flag="$shared_flag "'${wl}-G'
8180
if test "$host_cpu" = ia64; then
8181
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8182
# chokes on -Wl,-G. The following line is correct:
8185
if test "$aix_use_runtimelinking" = yes; then
8186
shared_flag='${wl}-G'
8188
shared_flag='${wl}-bM:SRE'
8193
# It seems that -bexpall does not export symbols beginning with
8194
# underscore (_), so it is better to generate a list of symbols to export.
8195
always_export_symbols=yes
8196
if test "$aix_use_runtimelinking" = yes; then
8197
# Warning - without using the other runtime loading flags (-brtl),
8198
# -berok will link without error, but may produce a broken library.
8199
allow_undefined_flag='-berok'
8200
# Determine the default libpath from the value encoded in an empty executable.
8201
cat >conftest.$ac_ext <<_ACEOF
8204
cat confdefs.h >>conftest.$ac_ext
8205
cat >>conftest.$ac_ext <<_ACEOF
8206
/* end confdefs.h. */
8216
rm -f conftest.$ac_objext conftest$ac_exeext
8217
if { (ac_try="$ac_link"
8219
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220
*) ac_try_echo=$ac_try;;
8222
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8223
$as_echo "$ac_try_echo") >&5
8224
(eval "$ac_link") 2>conftest.er1
8226
grep -v '^ *+' conftest.er1 >conftest.err
8228
cat conftest.err >&5
8229
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230
(exit $ac_status); } && {
8231
test -z "$ac_c_werror_flag" ||
8232
test ! -s conftest.err
8233
} && test -s conftest$ac_exeext && {
8234
test "$cross_compiling" = yes ||
8235
$as_test_x conftest$ac_exeext
8238
lt_aix_libpath_sed='
8239
/Import File Strings/,/^$/ {
8245
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8246
# Check for a 64-bit object if we didn't find anything.
8247
if test -z "$aix_libpath"; then
8248
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8251
$as_echo "$as_me: failed program was:" >&5
8252
sed 's/^/| /' conftest.$ac_ext >&5
8257
rm -rf conftest.dSYM
8258
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8259
conftest$ac_exeext conftest.$ac_ext
8260
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8262
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8263
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8265
if test "$host_cpu" = ia64; then
8266
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8267
allow_undefined_flag="-z nodefs"
8268
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8270
# Determine the default libpath from the value encoded in an empty executable.
8271
cat >conftest.$ac_ext <<_ACEOF
8274
cat confdefs.h >>conftest.$ac_ext
8275
cat >>conftest.$ac_ext <<_ACEOF
8276
/* end confdefs.h. */
8286
rm -f conftest.$ac_objext conftest$ac_exeext
8287
if { (ac_try="$ac_link"
8289
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290
*) ac_try_echo=$ac_try;;
8292
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8293
$as_echo "$ac_try_echo") >&5
8294
(eval "$ac_link") 2>conftest.er1
8296
grep -v '^ *+' conftest.er1 >conftest.err
8298
cat conftest.err >&5
8299
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300
(exit $ac_status); } && {
8301
test -z "$ac_c_werror_flag" ||
8302
test ! -s conftest.err
8303
} && test -s conftest$ac_exeext && {
8304
test "$cross_compiling" = yes ||
8305
$as_test_x conftest$ac_exeext
8308
lt_aix_libpath_sed='
8309
/Import File Strings/,/^$/ {
8315
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8316
# Check for a 64-bit object if we didn't find anything.
8317
if test -z "$aix_libpath"; then
8318
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8321
$as_echo "$as_me: failed program was:" >&5
8322
sed 's/^/| /' conftest.$ac_ext >&5
8327
rm -rf conftest.dSYM
8328
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8329
conftest$ac_exeext conftest.$ac_ext
8330
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8332
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8333
# Warning - without using the other run time loading flags,
8334
# -berok will link without error, but may produce a broken library.
8335
no_undefined_flag=' ${wl}-bernotok'
8336
allow_undefined_flag=' ${wl}-berok'
8337
# Exported symbols can be pulled into shared objects from archives
8338
whole_archive_flag_spec='$convenience'
8339
archive_cmds_need_lc=yes
8340
# This is similar to how AIX traditionally builds its shared libraries.
8341
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8347
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)'
8348
hardcode_libdir_flag_spec='-L$libdir'
8349
hardcode_minus_L=yes
8350
# see comment about different semantics on the GNU ld section
8355
export_dynamic_flag_spec=-rdynamic
8358
cygwin* | mingw* | pw32*)
8359
# When not using gcc, we currently assume that we are using
8360
# Microsoft Visual C++.
8361
# hardcode_libdir_flag_spec is actually meaningless, as there is
8362
# no search path for DLLs.
8363
hardcode_libdir_flag_spec=' '
8364
allow_undefined_flag=unsupported
8365
# Tell ltmain to make .lib files, not .a files.
8367
# Tell ltmain to make .dll files, not .so files.
8369
# FIXME: Setting linknames here is a bad hack.
8370
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8371
# The linker will automatically build a .lib file if we build a DLL.
8372
old_archive_From_new_cmds='true'
8373
# FIXME: Should let the user specify the lib program.
8374
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8375
fix_srcfile_path='`cygpath -w "$srcfile"`'
8376
enable_shared_with_static_runtimes=yes
8379
darwin* | rhapsody*)
8381
rhapsody* | darwin1.[012])
8382
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8385
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8386
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8388
case ${MACOSX_DEPLOYMENT_TARGET} in
8390
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8393
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8399
archive_cmds_need_lc=no
8401
hardcode_automatic=yes
8402
hardcode_shlibpath_var=unsupported
8403
whole_archive_flag_spec=''
8404
link_all_deplibs=yes
8405
if test "$GCC" = yes ; then
8406
output_verbose_link_cmd='echo'
8407
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8408
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8409
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8410
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8412
case $cc_basename in
8414
output_verbose_link_cmd='echo'
8415
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8416
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8417
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8418
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8419
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}'
8429
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8430
hardcode_libdir_flag_spec='-L$libdir'
8431
hardcode_shlibpath_var=no
8438
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8439
# support. Future versions do this automatically, but an explicit c++rt0.o
8440
# does not break anything, and helps significantly (at the cost of a little
8443
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8444
hardcode_libdir_flag_spec='-R$libdir'
8446
hardcode_shlibpath_var=no
8449
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8451
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8453
hardcode_minus_L=yes
8454
hardcode_shlibpath_var=no
8457
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8458
freebsd* | dragonfly*)
8459
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8460
hardcode_libdir_flag_spec='-R$libdir'
8462
hardcode_shlibpath_var=no
8466
if test "$GCC" = yes; then
8467
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'
8469
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'
8471
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8472
hardcode_libdir_separator=:
8475
# hardcode_minus_L: Not really in the search PATH,
8476
# but as the default location of the library.
8477
hardcode_minus_L=yes
8478
export_dynamic_flag_spec='${wl}-E'
8482
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8483
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8485
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8487
if test "$with_gnu_ld" = no; then
8488
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8489
hardcode_libdir_separator=:
8492
export_dynamic_flag_spec='${wl}-E'
8494
# hardcode_minus_L: Not really in the search PATH,
8495
# but as the default location of the library.
8496
hardcode_minus_L=yes
8501
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8504
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8507
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8510
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8516
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8519
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8522
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8526
if test "$with_gnu_ld" = no; then
8527
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8528
hardcode_libdir_separator=:
8532
hardcode_libdir_flag_spec_ld='+b $libdir'
8534
hardcode_shlibpath_var=no
8538
export_dynamic_flag_spec='${wl}-E'
8540
# hardcode_minus_L: Not really in the search PATH,
8541
# but as the default location of the library.
8542
hardcode_minus_L=yes
8548
irix5* | irix6* | nonstopux*)
8549
if test "$GCC" = yes; then
8550
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'
8552
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'
8553
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8555
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8556
hardcode_libdir_separator=:
8557
link_all_deplibs=yes
8561
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8562
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8564
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8566
hardcode_libdir_flag_spec='-R$libdir'
8568
hardcode_shlibpath_var=no
8572
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8574
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8575
hardcode_libdir_separator=:
8576
hardcode_shlibpath_var=no
8580
if test -f /usr/libexec/ld.so; then
8582
hardcode_shlibpath_var=no
8583
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8584
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8585
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8586
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8587
export_dynamic_flag_spec='${wl}-E'
8590
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8591
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8592
hardcode_libdir_flag_spec='-R$libdir'
8595
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8596
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8606
hardcode_libdir_flag_spec='-L$libdir'
8607
hardcode_minus_L=yes
8608
allow_undefined_flag=unsupported
8609
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'
8610
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8614
if test "$GCC" = yes; then
8615
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8616
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'
8618
allow_undefined_flag=' -expect_unresolved \*'
8619
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'
8621
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8622
hardcode_libdir_separator=:
8625
osf4* | osf5*) # as osf3* with the addition of -msym flag
8626
if test "$GCC" = yes; then
8627
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8628
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'
8629
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8631
allow_undefined_flag=' -expect_unresolved \*'
8632
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'
8633
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8634
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8636
# Both c and cxx compiler support -rpath directly
8637
hardcode_libdir_flag_spec='-rpath $libdir'
8639
hardcode_libdir_separator=:
8643
no_undefined_flag=' -z text'
8644
if test "$GCC" = yes; then
8646
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8647
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8648
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8651
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8652
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8653
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8655
hardcode_libdir_flag_spec='-R$libdir'
8656
hardcode_shlibpath_var=no
8658
solaris2.[0-5] | solaris2.[0-5].*) ;;
8660
# The compiler driver will combine and reorder linker options,
8661
# but understands `-z linker_flag'. GCC discards it without `$wl',
8662
# but is careful enough not to reorder.
8663
# Supported since Solaris 2.6 (maybe 2.5.1?)
8664
if test "$GCC" = yes; then
8665
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8667
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8671
link_all_deplibs=yes
8675
if test "x$host_vendor" = xsequent; then
8676
# Use $CC to link under sequent, because it throws in some extra .o
8677
# files that make .init and .fini sections work.
8678
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8680
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8682
hardcode_libdir_flag_spec='-L$libdir'
8684
hardcode_minus_L=yes
8685
hardcode_shlibpath_var=no
8689
case $host_vendor in
8691
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8692
hardcode_direct=yes # is this really true???
8695
## LD is ld it makes a PLAMLIB
8696
## CC just makes a GrossModule.
8697
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8698
reload_cmds='$CC -r -o $output$reload_objs'
8702
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8703
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8706
runpath_var='LD_RUN_PATH'
8707
hardcode_shlibpath_var=no
8711
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8712
hardcode_shlibpath_var=no
8713
export_dynamic_flag_spec='-Bexport'
8717
if test -d /usr/nec; then
8718
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8719
hardcode_shlibpath_var=no
8720
runpath_var=LD_RUN_PATH
8721
hardcode_runpath_var=yes
8726
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8727
no_undefined_flag='${wl}-z,text'
8728
archive_cmds_need_lc=no
8729
hardcode_shlibpath_var=no
8730
runpath_var='LD_RUN_PATH'
8732
if test "$GCC" = yes; then
8733
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8734
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8736
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8737
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8741
sysv5* | sco3.2v5* | sco5v6*)
8742
# Note: We can NOT use -z defs as we might desire, because we do not
8743
# link with -lc, and that would cause any symbols used from libc to
8744
# always be unresolved, which means just about no library would
8745
# ever link correctly. If we're not using GNU ld we use -z text
8746
# though, which does catch some bad symbols but isn't as heavy-handed
8748
no_undefined_flag='${wl}-z,text'
8749
allow_undefined_flag='${wl}-z,nodefs'
8750
archive_cmds_need_lc=no
8751
hardcode_shlibpath_var=no
8752
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8753
hardcode_libdir_separator=':'
8754
link_all_deplibs=yes
8755
export_dynamic_flag_spec='${wl}-Bexport'
8756
runpath_var='LD_RUN_PATH'
8758
if test "$GCC" = yes; then
8759
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8760
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8762
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8763
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8768
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8769
hardcode_libdir_flag_spec='-L$libdir'
8770
hardcode_shlibpath_var=no
8779
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8780
$as_echo "$ld_shlibs" >&6; }
8781
test "$ld_shlibs" = no && can_build_shared=no
8784
# Do we need to explicitly link libc?
8786
case "x$archive_cmds_need_lc" in
8788
# Assume -lc should be added
8789
archive_cmds_need_lc=yes
8791
if test "$enable_shared" = yes && test "$GCC" = yes; then
8792
case $archive_cmds in
8794
# FIXME: we may have to deal with multi-command sequences.
8797
# Test whether the compiler implicitly links with -lc since on some
8798
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8799
# to ld, don't add -lc before -lgcc.
8800
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8801
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8803
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8805
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8806
(eval $ac_compile) 2>&5
8808
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809
(exit $ac_status); } 2>conftest.err; then
8812
libobjs=conftest.$ac_objext
8814
wl=$lt_prog_compiler_wl
8815
pic_flag=$lt_prog_compiler_pic
8821
lt_save_allow_undefined_flag=$allow_undefined_flag
8822
allow_undefined_flag=
8823
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8824
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8826
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827
(exit $ac_status); }
8829
archive_cmds_need_lc=no
8831
archive_cmds_need_lc=yes
8833
allow_undefined_flag=$lt_save_allow_undefined_flag
8835
cat conftest.err 1>&5
8838
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8839
$as_echo "$archive_cmds_need_lc" >&6; }
8846
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8847
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8849
libname_spec='lib$name'
8857
shlibpath_overrides_runpath=unknown
8859
dynamic_linker="$host_os ld.so"
8860
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8862
if test "$GCC" = yes; then
8864
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8865
*) lt_awk_arg="/^libraries:/" ;;
8867
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8868
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8869
# if the path contains ";" then we assume it to be the separator
8870
# otherwise default to the standard path separator (i.e. ":") - it is
8871
# assumed that no part of a normal pathname contains ";" but that should
8872
# okay in the real world where ";" in dirpaths is itself problematic.
8873
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8875
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8877
# Ok, now we have the path, separated by spaces, we can step through it
8878
# and add multilib dir if necessary.
8879
lt_tmp_lt_search_path_spec=
8880
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8881
for lt_sys_path in $lt_search_path_spec; do
8882
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8883
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8885
test -d "$lt_sys_path" && \
8886
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8889
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8890
BEGIN {RS=" "; FS="/|\n";} {
8893
for (lt_i = NF; lt_i > 0; lt_i--) {
8894
if ($lt_i != "" && $lt_i != ".") {
8895
if ($lt_i == "..") {
8898
if (lt_count == 0) {
8899
lt_foo="/" $lt_i lt_foo;
8906
if (lt_foo != "") { lt_freq[lt_foo]++; }
8907
if (lt_freq[lt_foo] == 1) { print lt_foo; }
8909
sys_lib_search_path_spec=`echo $lt_search_path_spec`
8911
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8913
need_lib_prefix=unknown
8914
hardcode_into_libs=no
8916
# when you set need_version to no, make sure it does not cause -set_version
8917
# flags to be left without arguments
8918
need_version=unknown
8923
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8924
shlibpath_var=LIBPATH
8926
# AIX 3 has no versioning support, so we append a major version to the name.
8927
soname_spec='${libname}${release}${shared_ext}$major'
8934
hardcode_into_libs=yes
8935
if test "$host_cpu" = ia64; then
8936
# AIX 5 supports IA64
8937
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8938
shlibpath_var=LD_LIBRARY_PATH
8940
# With GCC up to 2.95.x, collect2 would create an import file
8941
# for dependence libraries. The import file would start with
8942
# the line `#! .'. This would cause the generated library to
8943
# depend on `.', always an invalid library. This was fixed in
8944
# development snapshots of GCC prior to 3.0.
8946
aix4 | aix4.[01] | aix4.[01].*)
8947
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8949
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8956
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8957
# soname into executable. Probably we can add versioning support to
8958
# collect2, so additional links can be useful in future.
8959
if test "$aix_use_runtimelinking" = yes; then
8960
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8961
# instead of lib<name>.a to let people know that these are not
8962
# typical AIX shared libraries.
8963
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8965
# We preserve .a as extension for shared libraries through AIX4.2
8966
# and later when we are not doing run time linking.
8967
library_names_spec='${libname}${release}.a $libname.a'
8968
soname_spec='${libname}${release}${shared_ext}$major'
8970
shlibpath_var=LIBPATH
8975
library_names_spec='$libname.ixlibrary $libname.a'
8976
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8977
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'
8981
library_names_spec='${libname}${shared_ext}'
8982
dynamic_linker="$host_os ld.so"
8983
shlibpath_var=LIBRARY_PATH
8989
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990
soname_spec='${libname}${release}${shared_ext}$major'
8991
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8992
shlibpath_var=LD_LIBRARY_PATH
8993
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8994
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8995
# the default ld.so.conf also contains /usr/contrib/lib and
8996
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8997
# libtool to hard-code these into programs
9000
cygwin* | mingw* | pw32*)
9001
version_type=windows
9006
case $GCC,$host_os in
9007
yes,cygwin* | yes,mingw* | yes,pw32*)
9008
library_names_spec='$libname.dll.a'
9009
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9010
postinstall_cmds='base_file=`basename \${file}`~
9011
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9012
dldir=$destdir/`dirname \$dlpath`~
9013
test -d \$dldir || mkdir -p \$dldir~
9014
$install_prog $dir/$dlname \$dldir/$dlname~
9015
chmod a+x \$dldir/$dlname'
9016
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9017
dlpath=$dir/\$dldll~
9019
shlibpath_overrides_runpath=yes
9023
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9024
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9025
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9028
# MinGW DLLs use traditional 'lib' prefix
9029
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9030
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9031
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9032
# It is most probably a Windows format PATH printed by
9033
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9034
# path with ; separators, and with drive letters. We can handle the
9035
# drive letters (cygwin fileutils understands them), so leave them,
9036
# especially as we might pass files found there to a mingw objdump,
9037
# which wouldn't understand a cygwinified path. Ahh.
9038
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9040
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9044
# pw32 DLLs use 'pw' prefix rather than 'lib'
9045
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9051
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9054
dynamic_linker='Win32 ld.exe'
9055
# FIXME: first we should search . and the directory the executable is in
9059
darwin* | rhapsody*)
9060
dynamic_linker="$host_os dyld"
9064
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9065
soname_spec='${libname}${release}${major}$shared_ext'
9066
shlibpath_overrides_runpath=yes
9067
shlibpath_var=DYLD_LIBRARY_PATH
9068
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9070
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9071
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9078
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9079
soname_spec='${libname}${release}${shared_ext}$major'
9080
shlibpath_var=LD_LIBRARY_PATH
9087
freebsd* | dragonfly*)
9088
# DragonFly does not have aout. When/if they implement a new
9089
# versioning mechanism, adjust this.
9090
if test -x /usr/bin/objformat; then
9091
objformat=`/usr/bin/objformat`
9094
freebsd[123]*) objformat=aout ;;
9098
version_type=freebsd-$objformat
9099
case $version_type in
9101
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9106
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9110
shlibpath_var=LD_LIBRARY_PATH
9113
shlibpath_overrides_runpath=yes
9115
freebsd3.[01]* | freebsdelf3.[01]*)
9116
shlibpath_overrides_runpath=yes
9117
hardcode_into_libs=yes
9119
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9120
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9121
shlibpath_overrides_runpath=no
9122
hardcode_into_libs=yes
9124
*) # from 4.6 on, and DragonFly
9125
shlibpath_overrides_runpath=yes
9126
hardcode_into_libs=yes
9135
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9136
soname_spec='${libname}${release}${shared_ext}$major'
9137
shlibpath_var=LD_LIBRARY_PATH
9138
hardcode_into_libs=yes
9141
hpux9* | hpux10* | hpux11*)
9142
# Give a soname corresponding to the major version so that dld.sl refuses to
9143
# link against other versions.
9150
hardcode_into_libs=yes
9151
dynamic_linker="$host_os dld.so"
9152
shlibpath_var=LD_LIBRARY_PATH
9153
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9154
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9155
soname_spec='${libname}${release}${shared_ext}$major'
9156
if test "X$HPUX_IA64_MODE" = X32; then
9157
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9159
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9161
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9165
hardcode_into_libs=yes
9166
dynamic_linker="$host_os dld.sl"
9167
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9168
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9169
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170
soname_spec='${libname}${release}${shared_ext}$major'
9171
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9172
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9176
dynamic_linker="$host_os dld.sl"
9177
shlibpath_var=SHLIB_PATH
9178
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9179
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180
soname_spec='${libname}${release}${shared_ext}$major'
9183
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9184
postinstall_cmds='chmod 555 $lib'
9191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9192
soname_spec='${libname}${release}${shared_ext}$major'
9193
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9194
shlibpath_var=LD_LIBRARY_PATH
9195
shlibpath_overrides_runpath=no
9196
hardcode_into_libs=yes
9199
irix5* | irix6* | nonstopux*)
9201
nonstopux*) version_type=nonstopux ;;
9203
if test "$lt_cv_prog_gnu_ld" = yes; then
9211
soname_spec='${libname}${release}${shared_ext}$major'
9212
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9214
irix5* | nonstopux*)
9218
case $LD in # libtool.m4 will add one of these switches to LD
9219
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9220
libsuff= shlibsuff= libmagic=32-bit;;
9221
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9222
libsuff=32 shlibsuff=N32 libmagic=N32;;
9223
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9224
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9225
*) libsuff= shlibsuff= libmagic=never-match;;
9229
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9230
shlibpath_overrides_runpath=no
9231
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9232
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9233
hardcode_into_libs=yes
9236
# No shared lib support for Linux oldld, aout, or coff.
9237
linux*oldld* | linux*aout* | linux*coff*)
9241
# This must be Linux ELF.
9242
linux* | k*bsd*-gnu)
9246
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247
soname_spec='${libname}${release}${shared_ext}$major'
9248
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9249
shlibpath_var=LD_LIBRARY_PATH
9250
shlibpath_overrides_runpath=no
9251
# This implies no fast_install, which is unacceptable.
9252
# Some rework will be needed to allow for fast_install
9253
# before this can be enabled.
9254
hardcode_into_libs=yes
9256
# Append ld.so.conf contents to the search path
9257
if test -f /etc/ld.so.conf; then
9258
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9259
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9262
# We used to test for /lib/ld.so.1 and disable shared libraries on
9263
# powerpc, because MkLinux only supported shared libraries with the
9264
# GNU dynamic linker. Since this was broken with cross compilers,
9265
# most powerpc-linux boxes support dynamic linking these days and
9266
# people can always --disable-shared, the test was removed, and we
9267
# assume the GNU/Linux dynamic linker is in use.
9268
dynamic_linker='GNU/Linux ld.so'
9275
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9276
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9277
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9278
dynamic_linker='NetBSD (a.out) ld.so'
9280
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9281
soname_spec='${libname}${release}${shared_ext}$major'
9282
dynamic_linker='NetBSD ld.elf_so'
9284
shlibpath_var=LD_LIBRARY_PATH
9285
shlibpath_overrides_runpath=yes
9286
hardcode_into_libs=yes
9291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9292
shlibpath_var=LD_LIBRARY_PATH
9293
shlibpath_overrides_runpath=yes
9300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301
soname_spec='${libname}${release}${shared_ext}$major'
9302
shlibpath_var=LD_LIBRARY_PATH
9303
shlibpath_overrides_runpath=yes
9308
sys_lib_dlsearch_path_spec="/usr/lib"
9310
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9312
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9313
*) need_version=no ;;
9315
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9316
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9317
shlibpath_var=LD_LIBRARY_PATH
9318
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9320
openbsd2.[89] | openbsd2.[89].*)
9321
shlibpath_overrides_runpath=no
9324
shlibpath_overrides_runpath=yes
9328
shlibpath_overrides_runpath=yes
9333
libname_spec='$name'
9336
library_names_spec='$libname${shared_ext} $libname.a'
9337
dynamic_linker='OS/2 ld.exe'
9338
shlibpath_var=LIBPATH
9341
osf3* | osf4* | osf5*)
9345
soname_spec='${libname}${release}${shared_ext}$major'
9346
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9347
shlibpath_var=LD_LIBRARY_PATH
9348
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9349
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9360
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361
soname_spec='${libname}${release}${shared_ext}$major'
9362
shlibpath_var=LD_LIBRARY_PATH
9363
shlibpath_overrides_runpath=yes
9364
hardcode_into_libs=yes
9365
# ldd complains unless libraries are executable
9366
postinstall_cmds='chmod +x $lib'
9371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9372
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9373
shlibpath_var=LD_LIBRARY_PATH
9374
shlibpath_overrides_runpath=yes
9375
if test "$with_gnu_ld" = yes; then
9383
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384
soname_spec='${libname}${release}${shared_ext}$major'
9385
shlibpath_var=LD_LIBRARY_PATH
9386
case $host_vendor in
9388
shlibpath_overrides_runpath=no
9390
export_dynamic_flag_spec='${wl}-Blargedynsym'
9391
runpath_var=LD_RUN_PATH
9399
shlibpath_overrides_runpath=no
9400
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9406
if test -d /usr/nec ;then
9408
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9409
soname_spec='$libname${shared_ext}.$major'
9410
shlibpath_var=LD_LIBRARY_PATH
9414
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9415
version_type=freebsd-elf
9418
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9419
soname_spec='${libname}${release}${shared_ext}$major'
9420
shlibpath_var=LD_LIBRARY_PATH
9421
hardcode_into_libs=yes
9422
if test "$with_gnu_ld" = yes; then
9423
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9424
shlibpath_overrides_runpath=no
9426
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9427
shlibpath_overrides_runpath=yes
9430
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9434
sys_lib_dlsearch_path_spec='/usr/lib'
9439
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440
soname_spec='${libname}${release}${shared_ext}$major'
9441
shlibpath_var=LD_LIBRARY_PATH
9448
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9449
$as_echo "$dynamic_linker" >&6; }
9450
test "$dynamic_linker" = no && can_build_shared=no
9452
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9453
$as_echo_n "(cached) " >&6
9455
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9458
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9459
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9460
$as_echo_n "(cached) " >&6
9462
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9465
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9467
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9468
if test "$GCC" = yes; then
9469
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9472
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9473
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9475
if test -n "$hardcode_libdir_flag_spec" || \
9476
test -n "$runpath_var" || \
9477
test "X$hardcode_automatic" = "Xyes" ; then
9479
# We can hardcode non-existant directories.
9480
if test "$hardcode_direct" != no &&
9481
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9482
# have to relink, otherwise we might link with an installed library
9483
# when we should be linking with a yet-to-be-installed one
9484
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9485
test "$hardcode_minus_L" != no; then
9486
# Linking always hardcodes the temporary library directory.
9487
hardcode_action=relink
9489
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9490
hardcode_action=immediate
9493
# We cannot hardcode anything, or else we can only hardcode existing
9495
hardcode_action=unsupported
9497
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9498
$as_echo "$hardcode_action" >&6; }
9500
if test "$hardcode_action" = relink; then
9501
# Fast installation is not supported
9502
enable_fast_install=no
9503
elif test "$shlibpath_overrides_runpath" = yes ||
9504
test "$enable_shared" = no; then
9505
# Fast installation is not necessary
9506
enable_fast_install=needless
9511
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9512
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9513
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9514
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9515
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9516
{ $as_echo "$as_me:$LINENO: result: yes" >&5
9517
$as_echo "yes" >&6; }
9519
# FIXME - insert some real tests, host_os isn't really good enough
9522
if test -n "$STRIP" ; then
9523
striplib="$STRIP -x"
9524
old_striplib="$STRIP -S"
9525
{ $as_echo "$as_me:$LINENO: result: yes" >&5
9526
$as_echo "yes" >&6; }
9528
{ $as_echo "$as_me:$LINENO: result: no" >&5
9529
$as_echo "no" >&6; }
9533
{ $as_echo "$as_me:$LINENO: result: no" >&5
9534
$as_echo "no" >&6; }
9539
if test "x$enable_dlopen" != xyes; then
9540
enable_dlopen=unknown
9541
enable_dlopen_self=unknown
9542
enable_dlopen_self_static=unknown
9549
lt_cv_dlopen="load_add_on"
9551
lt_cv_dlopen_self=yes
9555
lt_cv_dlopen="LoadLibrary"
9560
lt_cv_dlopen="dlopen"
9565
# if libdl is installed we need to link against it
9566
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9567
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9568
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9569
$as_echo_n "(cached) " >&6
9571
ac_check_lib_save_LIBS=$LIBS
9573
cat >conftest.$ac_ext <<_ACEOF
9576
cat confdefs.h >>conftest.$ac_ext
9577
cat >>conftest.$ac_ext <<_ACEOF
9578
/* end confdefs.h. */
9580
/* Override any GCC internal prototype to avoid an error.
9581
Use char because int might match the return type of a GCC
9582
builtin and then its argument prototype would still apply. */
9595
rm -f conftest.$ac_objext conftest$ac_exeext
9596
if { (ac_try="$ac_link"
9598
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599
*) ac_try_echo=$ac_try;;
9601
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9602
$as_echo "$ac_try_echo") >&5
9603
(eval "$ac_link") 2>conftest.er1
9605
grep -v '^ *+' conftest.er1 >conftest.err
9607
cat conftest.err >&5
9608
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609
(exit $ac_status); } && {
9610
test -z "$ac_c_werror_flag" ||
9611
test ! -s conftest.err
9612
} && test -s conftest$ac_exeext && {
9613
test "$cross_compiling" = yes ||
9614
$as_test_x conftest$ac_exeext
9616
ac_cv_lib_dl_dlopen=yes
9618
$as_echo "$as_me: failed program was:" >&5
9619
sed 's/^/| /' conftest.$ac_ext >&5
9621
ac_cv_lib_dl_dlopen=no
9624
rm -rf conftest.dSYM
9625
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9626
conftest$ac_exeext conftest.$ac_ext
9627
LIBS=$ac_check_lib_save_LIBS
9629
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9630
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9631
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9632
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9637
lt_cv_dlopen_self=yes
9644
{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9645
$as_echo_n "checking for shl_load... " >&6; }
9646
if test "${ac_cv_func_shl_load+set}" = set; then
9647
$as_echo_n "(cached) " >&6
9649
cat >conftest.$ac_ext <<_ACEOF
9652
cat confdefs.h >>conftest.$ac_ext
9653
cat >>conftest.$ac_ext <<_ACEOF
9654
/* end confdefs.h. */
9655
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9656
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9657
#define shl_load innocuous_shl_load
9659
/* System header to define __stub macros and hopefully few prototypes,
9660
which can conflict with char shl_load (); below.
9661
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9662
<limits.h> exists even on freestanding compilers. */
9665
# include <limits.h>
9667
# include <assert.h>
9672
/* Override any GCC internal prototype to avoid an error.
9673
Use char because int might match the return type of a GCC
9674
builtin and then its argument prototype would still apply. */
9679
/* The GNU C library defines this for functions which it implements
9680
to always fail with ENOSYS. Some functions are actually named
9681
something starting with __ and the normal name is an alias. */
9682
#if defined __stub_shl_load || defined __stub___shl_load
9694
rm -f conftest.$ac_objext conftest$ac_exeext
9695
if { (ac_try="$ac_link"
9697
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698
*) ac_try_echo=$ac_try;;
9700
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9701
$as_echo "$ac_try_echo") >&5
9702
(eval "$ac_link") 2>conftest.er1
9704
grep -v '^ *+' conftest.er1 >conftest.err
9706
cat conftest.err >&5
9707
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708
(exit $ac_status); } && {
9709
test -z "$ac_c_werror_flag" ||
9710
test ! -s conftest.err
9711
} && test -s conftest$ac_exeext && {
9712
test "$cross_compiling" = yes ||
9713
$as_test_x conftest$ac_exeext
9715
ac_cv_func_shl_load=yes
9717
$as_echo "$as_me: failed program was:" >&5
9718
sed 's/^/| /' conftest.$ac_ext >&5
9720
ac_cv_func_shl_load=no
9723
rm -rf conftest.dSYM
9724
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9725
conftest$ac_exeext conftest.$ac_ext
9727
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9728
$as_echo "$ac_cv_func_shl_load" >&6; }
9729
if test "x$ac_cv_func_shl_load" = x""yes; then
9730
lt_cv_dlopen="shl_load"
9732
{ $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9733
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9734
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9735
$as_echo_n "(cached) " >&6
9737
ac_check_lib_save_LIBS=$LIBS
9739
cat >conftest.$ac_ext <<_ACEOF
9742
cat confdefs.h >>conftest.$ac_ext
9743
cat >>conftest.$ac_ext <<_ACEOF
9744
/* end confdefs.h. */
9746
/* Override any GCC internal prototype to avoid an error.
9747
Use char because int might match the return type of a GCC
9748
builtin and then its argument prototype would still apply. */
9761
rm -f conftest.$ac_objext conftest$ac_exeext
9762
if { (ac_try="$ac_link"
9764
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765
*) ac_try_echo=$ac_try;;
9767
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9768
$as_echo "$ac_try_echo") >&5
9769
(eval "$ac_link") 2>conftest.er1
9771
grep -v '^ *+' conftest.er1 >conftest.err
9773
cat conftest.err >&5
9774
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775
(exit $ac_status); } && {
9776
test -z "$ac_c_werror_flag" ||
9777
test ! -s conftest.err
9778
} && test -s conftest$ac_exeext && {
9779
test "$cross_compiling" = yes ||
9780
$as_test_x conftest$ac_exeext
9782
ac_cv_lib_dld_shl_load=yes
9784
$as_echo "$as_me: failed program was:" >&5
9785
sed 's/^/| /' conftest.$ac_ext >&5
9787
ac_cv_lib_dld_shl_load=no
9790
rm -rf conftest.dSYM
9791
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9792
conftest$ac_exeext conftest.$ac_ext
9793
LIBS=$ac_check_lib_save_LIBS
9795
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9796
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9797
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9798
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9800
{ $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9801
$as_echo_n "checking for dlopen... " >&6; }
9802
if test "${ac_cv_func_dlopen+set}" = set; then
9803
$as_echo_n "(cached) " >&6
9805
cat >conftest.$ac_ext <<_ACEOF
9808
cat confdefs.h >>conftest.$ac_ext
9809
cat >>conftest.$ac_ext <<_ACEOF
9810
/* end confdefs.h. */
9811
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9812
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9813
#define dlopen innocuous_dlopen
9815
/* System header to define __stub macros and hopefully few prototypes,
9816
which can conflict with char dlopen (); below.
9817
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9818
<limits.h> exists even on freestanding compilers. */
9821
# include <limits.h>
9823
# include <assert.h>
9828
/* Override any GCC internal prototype to avoid an error.
9829
Use char because int might match the return type of a GCC
9830
builtin and then its argument prototype would still apply. */
9835
/* The GNU C library defines this for functions which it implements
9836
to always fail with ENOSYS. Some functions are actually named
9837
something starting with __ and the normal name is an alias. */
9838
#if defined __stub_dlopen || defined __stub___dlopen
9850
rm -f conftest.$ac_objext conftest$ac_exeext
9851
if { (ac_try="$ac_link"
9853
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854
*) ac_try_echo=$ac_try;;
9856
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9857
$as_echo "$ac_try_echo") >&5
9858
(eval "$ac_link") 2>conftest.er1
9860
grep -v '^ *+' conftest.er1 >conftest.err
9862
cat conftest.err >&5
9863
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864
(exit $ac_status); } && {
9865
test -z "$ac_c_werror_flag" ||
9866
test ! -s conftest.err
9867
} && test -s conftest$ac_exeext && {
9868
test "$cross_compiling" = yes ||
9869
$as_test_x conftest$ac_exeext
9871
ac_cv_func_dlopen=yes
9873
$as_echo "$as_me: failed program was:" >&5
9874
sed 's/^/| /' conftest.$ac_ext >&5
9876
ac_cv_func_dlopen=no
9879
rm -rf conftest.dSYM
9880
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9881
conftest$ac_exeext conftest.$ac_ext
9883
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9884
$as_echo "$ac_cv_func_dlopen" >&6; }
9885
if test "x$ac_cv_func_dlopen" = x""yes; then
9886
lt_cv_dlopen="dlopen"
9888
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9889
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9890
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9891
$as_echo_n "(cached) " >&6
9893
ac_check_lib_save_LIBS=$LIBS
9895
cat >conftest.$ac_ext <<_ACEOF
9898
cat confdefs.h >>conftest.$ac_ext
9899
cat >>conftest.$ac_ext <<_ACEOF
9900
/* end confdefs.h. */
9902
/* Override any GCC internal prototype to avoid an error.
9903
Use char because int might match the return type of a GCC
9904
builtin and then its argument prototype would still apply. */
9917
rm -f conftest.$ac_objext conftest$ac_exeext
9918
if { (ac_try="$ac_link"
9920
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921
*) ac_try_echo=$ac_try;;
9923
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9924
$as_echo "$ac_try_echo") >&5
9925
(eval "$ac_link") 2>conftest.er1
9927
grep -v '^ *+' conftest.er1 >conftest.err
9929
cat conftest.err >&5
9930
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931
(exit $ac_status); } && {
9932
test -z "$ac_c_werror_flag" ||
9933
test ! -s conftest.err
9934
} && test -s conftest$ac_exeext && {
9935
test "$cross_compiling" = yes ||
9936
$as_test_x conftest$ac_exeext
9938
ac_cv_lib_dl_dlopen=yes
9940
$as_echo "$as_me: failed program was:" >&5
9941
sed 's/^/| /' conftest.$ac_ext >&5
9943
ac_cv_lib_dl_dlopen=no
9946
rm -rf conftest.dSYM
9947
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9948
conftest$ac_exeext conftest.$ac_ext
9949
LIBS=$ac_check_lib_save_LIBS
9951
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9952
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9953
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9954
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9956
{ $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9957
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9958
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9959
$as_echo_n "(cached) " >&6
9961
ac_check_lib_save_LIBS=$LIBS
9963
cat >conftest.$ac_ext <<_ACEOF
9966
cat confdefs.h >>conftest.$ac_ext
9967
cat >>conftest.$ac_ext <<_ACEOF
9968
/* end confdefs.h. */
9970
/* Override any GCC internal prototype to avoid an error.
9971
Use char because int might match the return type of a GCC
9972
builtin and then its argument prototype would still apply. */
9985
rm -f conftest.$ac_objext conftest$ac_exeext
9986
if { (ac_try="$ac_link"
9988
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989
*) ac_try_echo=$ac_try;;
9991
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9992
$as_echo "$ac_try_echo") >&5
9993
(eval "$ac_link") 2>conftest.er1
9995
grep -v '^ *+' conftest.er1 >conftest.err
9997
cat conftest.err >&5
9998
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999
(exit $ac_status); } && {
10000
test -z "$ac_c_werror_flag" ||
10001
test ! -s conftest.err
10002
} && test -s conftest$ac_exeext && {
10003
test "$cross_compiling" = yes ||
10004
$as_test_x conftest$ac_exeext
10006
ac_cv_lib_svld_dlopen=yes
10008
$as_echo "$as_me: failed program was:" >&5
10009
sed 's/^/| /' conftest.$ac_ext >&5
10011
ac_cv_lib_svld_dlopen=no
10014
rm -rf conftest.dSYM
10015
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10016
conftest$ac_exeext conftest.$ac_ext
10017
LIBS=$ac_check_lib_save_LIBS
10019
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10020
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10021
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10022
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10024
{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10025
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10026
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10027
$as_echo_n "(cached) " >&6
10029
ac_check_lib_save_LIBS=$LIBS
10031
cat >conftest.$ac_ext <<_ACEOF
10034
cat confdefs.h >>conftest.$ac_ext
10035
cat >>conftest.$ac_ext <<_ACEOF
10036
/* end confdefs.h. */
10038
/* Override any GCC internal prototype to avoid an error.
10039
Use char because int might match the return type of a GCC
10040
builtin and then its argument prototype would still apply. */
10048
return dld_link ();
10053
rm -f conftest.$ac_objext conftest$ac_exeext
10054
if { (ac_try="$ac_link"
10055
case "(($ac_try" in
10056
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057
*) ac_try_echo=$ac_try;;
10059
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10060
$as_echo "$ac_try_echo") >&5
10061
(eval "$ac_link") 2>conftest.er1
10063
grep -v '^ *+' conftest.er1 >conftest.err
10065
cat conftest.err >&5
10066
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067
(exit $ac_status); } && {
10068
test -z "$ac_c_werror_flag" ||
10069
test ! -s conftest.err
10070
} && test -s conftest$ac_exeext && {
10071
test "$cross_compiling" = yes ||
10072
$as_test_x conftest$ac_exeext
10074
ac_cv_lib_dld_dld_link=yes
10076
$as_echo "$as_me: failed program was:" >&5
10077
sed 's/^/| /' conftest.$ac_ext >&5
10079
ac_cv_lib_dld_dld_link=no
10082
rm -rf conftest.dSYM
10083
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10084
conftest$ac_exeext conftest.$ac_ext
10085
LIBS=$ac_check_lib_save_LIBS
10087
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10088
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10089
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10090
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10111
if test "x$lt_cv_dlopen" != xno; then
10117
case $lt_cv_dlopen in
10119
save_CPPFLAGS="$CPPFLAGS"
10120
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10122
save_LDFLAGS="$LDFLAGS"
10123
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10126
LIBS="$lt_cv_dlopen_libs $LIBS"
10128
{ $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10129
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10130
if test "${lt_cv_dlopen_self+set}" = set; then
10131
$as_echo_n "(cached) " >&6
10133
if test "$cross_compiling" = yes; then :
10134
lt_cv_dlopen_self=cross
10136
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10137
lt_status=$lt_dlunknown
10138
cat > conftest.$ac_ext <<EOF
10139
#line 10139 "configure"
10140
#include "confdefs.h"
10149
# define LT_DLGLOBAL RTLD_GLOBAL
10152
# define LT_DLGLOBAL DL_GLOBAL
10154
# define LT_DLGLOBAL 0
10158
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10159
find out it does not work in some platform. */
10160
#ifndef LT_DLLAZY_OR_NOW
10162
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10165
# define LT_DLLAZY_OR_NOW DL_LAZY
10168
# define LT_DLLAZY_OR_NOW RTLD_NOW
10171
# define LT_DLLAZY_OR_NOW DL_NOW
10173
# define LT_DLLAZY_OR_NOW 0
10181
extern "C" void exit (int);
10184
void fnord() { int i=42;}
10187
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10188
int status = $lt_dlunknown;
10192
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10193
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10194
/* dlclose (self); */
10202
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10203
(eval $ac_link) 2>&5
10205
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10207
(./conftest; exit; ) >&5 2>/dev/null
10209
case x$lt_status in
10210
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10211
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10212
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10215
# compilation failed
10216
lt_cv_dlopen_self=no
10223
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10224
$as_echo "$lt_cv_dlopen_self" >&6; }
10226
if test "x$lt_cv_dlopen_self" = xyes; then
10227
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10228
{ $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10229
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10230
if test "${lt_cv_dlopen_self_static+set}" = set; then
10231
$as_echo_n "(cached) " >&6
10233
if test "$cross_compiling" = yes; then :
10234
lt_cv_dlopen_self_static=cross
10236
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10237
lt_status=$lt_dlunknown
10238
cat > conftest.$ac_ext <<EOF
10239
#line 10239 "configure"
10240
#include "confdefs.h"
10249
# define LT_DLGLOBAL RTLD_GLOBAL
10252
# define LT_DLGLOBAL DL_GLOBAL
10254
# define LT_DLGLOBAL 0
10258
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10259
find out it does not work in some platform. */
10260
#ifndef LT_DLLAZY_OR_NOW
10262
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10265
# define LT_DLLAZY_OR_NOW DL_LAZY
10268
# define LT_DLLAZY_OR_NOW RTLD_NOW
10271
# define LT_DLLAZY_OR_NOW DL_NOW
10273
# define LT_DLLAZY_OR_NOW 0
10281
extern "C" void exit (int);
10284
void fnord() { int i=42;}
10287
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10288
int status = $lt_dlunknown;
10292
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10293
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10294
/* dlclose (self); */
10302
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303
(eval $ac_link) 2>&5
10305
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10307
(./conftest; exit; ) >&5 2>/dev/null
10309
case x$lt_status in
10310
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10311
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10312
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10315
# compilation failed
10316
lt_cv_dlopen_self_static=no
10323
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10324
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10327
CPPFLAGS="$save_CPPFLAGS"
10328
LDFLAGS="$save_LDFLAGS"
10333
case $lt_cv_dlopen_self in
10334
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10335
*) enable_dlopen_self=unknown ;;
10338
case $lt_cv_dlopen_self_static in
10339
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10340
*) enable_dlopen_self_static=unknown ;;
10345
# Report which library types will actually be built
10346
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10347
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10348
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10349
$as_echo "$can_build_shared" >&6; }
10351
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10352
$as_echo_n "checking whether to build shared libraries... " >&6; }
10353
test "$can_build_shared" = "no" && enable_shared=no
10355
# On AIX, shared libraries and static libraries use the same namespace, and
10356
# are all built from PIC.
10359
test "$enable_shared" = yes && enable_static=no
10360
if test -n "$RANLIB"; then
10361
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10362
postinstall_cmds='$RANLIB $lib'
10367
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10368
test "$enable_shared" = yes && enable_static=no
10372
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10373
$as_echo "$enable_shared" >&6; }
10375
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10376
$as_echo_n "checking whether to build static libraries... " >&6; }
10377
# Make sure either enable_shared or enable_static is yes.
10378
test "$enable_shared" = yes || enable_static=yes
10379
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10380
$as_echo "$enable_static" >&6; }
10382
# The else clause should only fire when bootstrapping the
10383
# libtool distribution, otherwise you forgot to ship ltmain.sh
10384
# with your package, and you will get complaints that there are
10385
# no rules to generate ltmain.sh.
10386
if test -f "$ltmain"; then
10387
# See if we are running on zsh, and set the options which allow our commands through
10388
# without removal of \ escapes.
10389
if test -n "${ZSH_VERSION+set}" ; then
10390
setopt NO_GLOB_SUBST
10392
# Now quote all the things that may contain metacharacters while being
10393
# careful not to overquote the AC_SUBSTed values. We take copies of the
10394
# variables and quote the copies for generation of the libtool script.
10395
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10397
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10398
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10399
deplibs_check_method reload_flag reload_cmds need_locks \
10400
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10401
lt_cv_sys_global_symbol_to_c_name_address \
10402
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10403
old_postinstall_cmds old_postuninstall_cmds \
10407
lt_prog_compiler_wl \
10408
lt_prog_compiler_pic \
10409
lt_prog_compiler_static \
10410
lt_prog_compiler_no_builtin_flag \
10411
export_dynamic_flag_spec \
10412
thread_safe_flag_spec \
10413
whole_archive_flag_spec \
10414
enable_shared_with_static_runtimes \
10416
old_archive_from_new_cmds \
10421
compiler_lib_search_path \
10422
compiler_lib_search_dirs \
10424
archive_expsym_cmds \
10426
postuninstall_cmds \
10427
old_archive_from_expsyms_cmds \
10428
allow_undefined_flag \
10429
no_undefined_flag \
10430
export_symbols_cmds \
10431
hardcode_libdir_flag_spec \
10432
hardcode_libdir_flag_spec_ld \
10433
hardcode_libdir_separator \
10434
hardcode_automatic \
10436
module_expsym_cmds \
10437
lt_cv_prog_compiler_c_o \
10440
include_expsyms; do
10443
old_archive_cmds | \
10444
old_archive_from_new_cmds | \
10446
archive_expsym_cmds | \
10448
module_expsym_cmds | \
10449
old_archive_from_expsyms_cmds | \
10450
export_symbols_cmds | \
10451
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10452
postinstall_cmds | postuninstall_cmds | \
10453
old_postinstall_cmds | old_postuninstall_cmds | \
10454
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10455
# Double-quote double-evaled strings.
10456
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10459
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10465
*'\$0 --fallback-echo"')
10466
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10470
cfgfile="${ofile}T"
10471
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10473
{ $as_echo "$as_me:$LINENO: creating $ofile" >&5
10474
$as_echo "$as_me: creating $ofile" >&6;}
10476
cat <<__EOF__ >> "$cfgfile"
10479
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10480
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10481
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10483
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10484
# Free Software Foundation, Inc.
10486
# This file is part of GNU Libtool:
10487
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10489
# This program is free software; you can redistribute it and/or modify
10490
# it under the terms of the GNU General Public License as published by
10491
# the Free Software Foundation; either version 2 of the License, or
10492
# (at your option) any later version.
10494
# This program is distributed in the hope that it will be useful, but
10495
# WITHOUT ANY WARRANTY; without even the implied warranty of
10496
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10497
# General Public License for more details.
10499
# You should have received a copy of the GNU General Public License
10500
# along with this program; if not, write to the Free Software
10501
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10503
# As a special exception to the GNU General Public License, if you
10504
# distribute this file as part of a program that contains a
10505
# configuration script generated by Autoconf, you may include it under
10506
# the same distribution terms that you use for the rest of that program.
10508
# A sed program that does not truncate output.
10511
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10512
Xsed="$SED -e 1s/^X//"
10514
# The HP-UX ksh and POSIX shell print the target directory to stdout
10515
# if CDPATH is set.
10516
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10518
# The names of the tagged configurations supported by this script.
10521
# ### BEGIN LIBTOOL CONFIG
10523
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10525
# Shell to use when invoking shell scripts.
10528
# Whether or not to build shared libraries.
10529
build_libtool_libs=$enable_shared
10531
# Whether or not to build static libraries.
10532
build_old_libs=$enable_static
10534
# Whether or not to add -lc for building shared libraries.
10535
build_libtool_need_lc=$archive_cmds_need_lc
10537
# Whether or not to disallow shared libs when runtime libs are static
10538
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10540
# Whether or not to optimize for fast installation.
10541
fast_install=$enable_fast_install
10544
host_alias=$host_alias
10548
# The build system.
10549
build_alias=$build_alias
10553
# An echo program that does not interpret backslashes.
10558
AR_FLAGS=$lt_AR_FLAGS
10563
# LTCC compiler flags.
10564
LTCFLAGS=$lt_LTCFLAGS
10566
# A language-specific compiler.
10569
# Is the compiler the GNU C compiler?
10575
# The linker used to build libraries.
10578
# Whether we need hard or soft links.
10581
# A BSD-compatible nm program.
10584
# A symbol stripping program
10587
# Used to examine libraries when file_magic_cmd begins "file"
10588
MAGIC_CMD=$MAGIC_CMD
10590
# Used on cygwin: DLL creation program.
10593
# Used on cygwin: object dumper.
10596
# Used on cygwin: assembler.
10599
# The name of the directory that contains temporary libtool files.
10602
# How to create reloadable object files.
10603
reload_flag=$lt_reload_flag
10604
reload_cmds=$lt_reload_cmds
10606
# How to pass a linker flag through the compiler.
10607
wl=$lt_lt_prog_compiler_wl
10609
# Object file suffix (normally "o").
10610
objext="$ac_objext"
10612
# Old archive suffix (normally "a").
10615
# Shared library suffix (normally ".so").
10616
shrext_cmds='$shrext_cmds'
10618
# Executable file suffix (normally "").
10621
# Additional compiler flags for building library objects.
10622
pic_flag=$lt_lt_prog_compiler_pic
10625
# What is the maximum length of a command?
10626
max_cmd_len=$lt_cv_sys_max_cmd_len
10628
# Does compiler simultaneously support -c and -o options?
10629
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10631
# Must we lock files when doing compilation?
10632
need_locks=$lt_need_locks
10634
# Do we need the lib prefix for modules?
10635
need_lib_prefix=$need_lib_prefix
10637
# Do we need a version for libraries?
10638
need_version=$need_version
10640
# Whether dlopen is supported.
10641
dlopen_support=$enable_dlopen
10643
# Whether dlopen of programs is supported.
10644
dlopen_self=$enable_dlopen_self
10646
# Whether dlopen of statically linked programs is supported.
10647
dlopen_self_static=$enable_dlopen_self_static
10649
# Compiler flag to prevent dynamic linking.
10650
link_static_flag=$lt_lt_prog_compiler_static
10652
# Compiler flag to turn off builtin functions.
10653
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10655
# Compiler flag to allow reflexive dlopens.
10656
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10658
# Compiler flag to generate shared objects directly from archives.
10659
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10661
# Compiler flag to generate thread-safe objects.
10662
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10664
# Library versioning type.
10665
version_type=$version_type
10667
# Format of library name prefix.
10668
libname_spec=$lt_libname_spec
10670
# List of archive names. First name is the real one, the rest are links.
10671
# The last name is the one that the linker finds with -lNAME.
10672
library_names_spec=$lt_library_names_spec
10674
# The coded name of the library, if different from the real name.
10675
soname_spec=$lt_soname_spec
10677
# Commands used to build and install an old-style archive.
10679
old_archive_cmds=$lt_old_archive_cmds
10680
old_postinstall_cmds=$lt_old_postinstall_cmds
10681
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10683
# Create an old-style archive from a shared archive.
10684
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10686
# Create a temporary old-style archive to link instead of a shared archive.
10687
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10689
# Commands used to build and install a shared archive.
10690
archive_cmds=$lt_archive_cmds
10691
archive_expsym_cmds=$lt_archive_expsym_cmds
10692
postinstall_cmds=$lt_postinstall_cmds
10693
postuninstall_cmds=$lt_postuninstall_cmds
10695
# Commands used to build a loadable module (assumed same as above if empty)
10696
module_cmds=$lt_module_cmds
10697
module_expsym_cmds=$lt_module_expsym_cmds
10699
# Commands to strip libraries.
10700
old_striplib=$lt_old_striplib
10701
striplib=$lt_striplib
10703
# Dependencies to place before the objects being linked to create a
10705
predep_objects=$lt_predep_objects
10707
# Dependencies to place after the objects being linked to create a
10709
postdep_objects=$lt_postdep_objects
10711
# Dependencies to place before the objects being linked to create a
10713
predeps=$lt_predeps
10715
# Dependencies to place after the objects being linked to create a
10717
postdeps=$lt_postdeps
10719
# The directories searched by this compiler when creating a shared
10721
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10723
# The library search path used internally by the compiler when linking
10724
# a shared library.
10725
compiler_lib_search_path=$lt_compiler_lib_search_path
10727
# Method to check whether dependent libraries are shared objects.
10728
deplibs_check_method=$lt_deplibs_check_method
10730
# Command to use when deplibs_check_method == file_magic.
10731
file_magic_cmd=$lt_file_magic_cmd
10733
# Flag that allows shared libraries with undefined symbols to be built.
10734
allow_undefined_flag=$lt_allow_undefined_flag
10736
# Flag that forces no undefined symbols.
10737
no_undefined_flag=$lt_no_undefined_flag
10739
# Commands used to finish a libtool library installation in a directory.
10740
finish_cmds=$lt_finish_cmds
10742
# Same as above, but a single script fragment to be evaled but not shown.
10743
finish_eval=$lt_finish_eval
10745
# Take the output of nm and produce a listing of raw symbols and C names.
10746
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10748
# Transform the output of nm in a proper C declaration
10749
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10751
# Transform the output of nm in a C name address pair
10752
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10754
# This is the shared library runtime path variable.
10755
runpath_var=$runpath_var
10757
# This is the shared library path variable.
10758
shlibpath_var=$shlibpath_var
10760
# Is shlibpath searched before the hard-coded library search path?
10761
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10763
# How to hardcode a shared library path into an executable.
10764
hardcode_action=$hardcode_action
10766
# Whether we should hardcode library paths into libraries.
10767
hardcode_into_libs=$hardcode_into_libs
10769
# Flag to hardcode \$libdir into a binary during linking.
10770
# This must work even if \$libdir does not exist.
10771
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10773
# If ld is used when linking, flag to hardcode \$libdir into
10774
# a binary during linking. This must work even if \$libdir does
10776
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10778
# Whether we need a single -rpath flag with a separated argument.
10779
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10781
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10782
# resulting binary.
10783
hardcode_direct=$hardcode_direct
10785
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10786
# resulting binary.
10787
hardcode_minus_L=$hardcode_minus_L
10789
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10790
# the resulting binary.
10791
hardcode_shlibpath_var=$hardcode_shlibpath_var
10793
# Set to yes if building a shared library automatically hardcodes DIR into the library
10794
# and all subsequent libraries and executables linked against it.
10795
hardcode_automatic=$hardcode_automatic
10797
# Variables whose values should be saved in libtool wrapper scripts and
10798
# restored at relink time.
10799
variables_saved_for_relink="$variables_saved_for_relink"
10801
# Whether libtool must link a program against all its dependency libraries.
10802
link_all_deplibs=$link_all_deplibs
10804
# Compile-time system search path for libraries
10805
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10807
# Run-time system search path for libraries
10808
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10810
# Fix the shell variable \$srcfile for the compiler.
10811
fix_srcfile_path=$lt_fix_srcfile_path
10813
# Set to yes if exported symbols are required.
10814
always_export_symbols=$always_export_symbols
10816
# The commands to list exported symbols.
10817
export_symbols_cmds=$lt_export_symbols_cmds
10819
# The commands to extract the exported symbol list from a shared archive.
10820
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10822
# Symbols that should not be listed in the preloaded symbols.
10823
exclude_expsyms=$lt_exclude_expsyms
10825
# Symbols that must always be exported.
10826
include_expsyms=$lt_include_expsyms
10828
# ### END LIBTOOL CONFIG
10835
cat <<\EOF >> "$cfgfile"
10837
# AIX sometimes has problems with the GCC collect2 program. For some
10838
# reason, if we set the COLLECT_NAMES environment variable, the problems
10839
# vanish in a puff of smoke.
10840
if test "X${COLLECT_NAMES+set}" != Xset; then
10842
export COLLECT_NAMES
10848
# We use sed instead of cat because bash on DJGPP gets confused if
10849
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10850
# text mode, it properly converts lines to CR/LF. This bash problem
10851
# is reportedly fixed, but why not run on old versions too?
10852
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10854
mv -f "$cfgfile" "$ofile" || \
10855
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10859
# If there is no Makefile yet, we rely on a make rule to execute
10860
# `config.status --recheck' to rerun these tests and create the
10861
# libtool script then.
10862
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10863
if test -f "$ltmain_in"; then
10864
test -f Makefile && make "$ltmain"
10870
ac_cpp='$CPP $CPPFLAGS'
10871
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10872
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10873
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10878
# Check whether --with-tags was given.
10879
if test "${with_tags+set}" = set; then
10880
withval=$with_tags; tagnames="$withval"
10884
if test -f "$ltmain" && test -n "$tagnames"; then
10885
if test ! -f "${ofile}"; then
10886
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10887
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10890
if test -z "$LTCC"; then
10891
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10892
if test -z "$LTCC"; then
10893
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10894
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10896
{ $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10897
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10900
if test -z "$LTCFLAGS"; then
10901
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10904
# Extract list of available tagged configurations in $ofile.
10905
# Note that this assumes the entire list is on one line.
10906
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10908
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10909
for tagname in $tagnames; do
10911
# Check whether tagname contains only valid characters
10912
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10914
*) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10915
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
10916
{ (exit 1); exit 1; }; }
10920
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10922
{ { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10923
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10924
{ (exit 1); exit 1; }; }
10927
# Update the list of available tags.
10928
if test -n "$tagname"; then
10929
echo appending configuration tag \"$tagname\" to $ofile
10933
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10934
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10935
(test "X$CXX" != "Xg++"))) ; then
10937
ac_cpp='$CXXCPP $CPPFLAGS'
10938
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10939
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10940
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10945
archive_cmds_need_lc_CXX=no
10946
allow_undefined_flag_CXX=
10947
always_export_symbols_CXX=no
10948
archive_expsym_cmds_CXX=
10949
export_dynamic_flag_spec_CXX=
10950
hardcode_direct_CXX=no
10951
hardcode_libdir_flag_spec_CXX=
10952
hardcode_libdir_flag_spec_ld_CXX=
10953
hardcode_libdir_separator_CXX=
10954
hardcode_minus_L_CXX=no
10955
hardcode_shlibpath_var_CXX=unsupported
10956
hardcode_automatic_CXX=no
10958
module_expsym_cmds_CXX=
10959
link_all_deplibs_CXX=unknown
10960
old_archive_cmds_CXX=$old_archive_cmds
10961
no_undefined_flag_CXX=
10962
whole_archive_flag_spec_CXX=
10963
enable_shared_with_static_runtimes_CXX=no
10965
# Dependencies to place before and after the object being linked:
10966
predep_objects_CXX=
10967
postdep_objects_CXX=
10970
compiler_lib_search_path_CXX=
10971
compiler_lib_search_dirs_CXX=
10973
# Source file extension for C++ test sources.
10976
# Object file extension for compiled C++ test sources.
10980
# Code to be used in simple compile tests
10981
lt_simple_compile_test_code="int some_variable = 0;"
10983
# Code to be used in simple link tests
10984
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10986
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10988
# If no C compiler was specified, use CC.
10991
# If no C compiler flags were specified, use CFLAGS.
10992
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10994
# Allow CC to be a program name with arguments.
10998
# save warnings/boilerplate of simple test code
10999
ac_outfile=conftest.$ac_objext
11000
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11001
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11002
_lt_compiler_boilerplate=`cat conftest.err`
11005
ac_outfile=conftest.$ac_objext
11006
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11007
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11008
_lt_linker_boilerplate=`cat conftest.err`
11012
# Allow CC to be a program name with arguments.
11017
lt_save_with_gnu_ld=$with_gnu_ld
11018
lt_save_path_LD=$lt_cv_path_LD
11019
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11020
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11022
$as_unset lt_cv_prog_gnu_ld
11024
if test -n "${lt_cv_path_LDCXX+set}"; then
11025
lt_cv_path_LD=$lt_cv_path_LDCXX
11027
$as_unset lt_cv_path_LD
11029
test -z "${LDCXX+set}" || LD=$LDCXX
11033
for cc_temp in $compiler""; do
11035
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11036
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11041
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11044
# We don't want -fno-exception wen compiling C++ code, so set the
11045
# no_builtin_flag separately
11046
if test "$GXX" = yes; then
11047
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11049
lt_prog_compiler_no_builtin_flag_CXX=
11052
if test "$GXX" = yes; then
11053
# Set up default GNU C++ configuration
11056
# Check whether --with-gnu-ld was given.
11057
if test "${with_gnu_ld+set}" = set; then
11058
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11064
if test "$GCC" = yes; then
11065
# Check if gcc -print-prog-name=ld gives a path.
11066
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11067
$as_echo_n "checking for ld used by $CC... " >&6; }
11070
# gcc leaves a trailing carriage return which upsets mingw
11071
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11073
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11076
# Accept absolute paths.
11078
re_direlt='/[^/][^/]*/\.\./'
11079
# Canonicalize the pathname of ld
11080
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11081
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11082
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11084
test -z "$LD" && LD="$ac_prog"
11087
# If it fails, then pretend we aren't using GCC.
11091
# If it is relative, then search for the first ld in PATH.
11092
with_gnu_ld=unknown
11095
elif test "$with_gnu_ld" = yes; then
11096
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11097
$as_echo_n "checking for GNU ld... " >&6; }
11099
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11100
$as_echo_n "checking for non-GNU ld... " >&6; }
11102
if test "${lt_cv_path_LD+set}" = set; then
11103
$as_echo_n "(cached) " >&6
11105
if test -z "$LD"; then
11106
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11107
for ac_dir in $PATH; do
11109
test -z "$ac_dir" && ac_dir=.
11110
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11111
lt_cv_path_LD="$ac_dir/$ac_prog"
11112
# Check to see if the program is GNU ld. I'd rather use --version,
11113
# but apparently some variants of GNU ld only accept -v.
11114
# Break only if it was the GNU/non-GNU ld that we prefer.
11115
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11116
*GNU* | *'with BFD'*)
11117
test "$with_gnu_ld" != no && break
11120
test "$with_gnu_ld" != yes && break
11127
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11131
LD="$lt_cv_path_LD"
11132
if test -n "$LD"; then
11133
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
11134
$as_echo "$LD" >&6; }
11136
{ $as_echo "$as_me:$LINENO: result: no" >&5
11137
$as_echo "no" >&6; }
11139
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11140
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11141
{ (exit 1); exit 1; }; }
11142
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11143
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11144
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11145
$as_echo_n "(cached) " >&6
11147
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11148
case `$LD -v 2>&1 </dev/null` in
11149
*GNU* | *'with BFD'*)
11150
lt_cv_prog_gnu_ld=yes
11153
lt_cv_prog_gnu_ld=no
11157
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11158
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11159
with_gnu_ld=$lt_cv_prog_gnu_ld
11163
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11164
# archiving commands below assume that GNU ld is being used.
11165
if test "$with_gnu_ld" = yes; then
11166
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11167
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'
11169
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11170
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11172
# If archive_cmds runs LD, not CC, wlarc should be empty
11173
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11174
# investigate it a little bit more. (MM)
11177
# ancient GNU ld didn't support --whole-archive et. al.
11178
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11179
grep 'no-whole-archive' > /dev/null; then
11180
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11182
whole_archive_flag_spec_CXX=
11188
# A generic and very simple default shared library creation
11189
# command for GNU C++ for the case where it uses the native
11190
# linker, instead of GNU ld. If possible, this setting should
11191
# overridden to take advantage of the native linker features on
11192
# the platform it is being used on.
11193
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11196
# Commands to make compiler produce verbose output that lists
11197
# what "hidden" libraries, object files and flags are used when
11198
# linking a shared library.
11199
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11207
# PORTME: fill in a description of your system's C++ link characteristics
11208
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11209
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11213
# FIXME: insert proper C++ library support
11217
if test "$host_cpu" = ia64; then
11218
# On IA64, the linker does run time linking by default, so we don't
11219
# have to do anything special.
11220
aix_use_runtimelinking=no
11221
exp_sym_flag='-Bexport'
11224
aix_use_runtimelinking=no
11226
# Test if we are trying to use run time linking or normal
11227
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11228
# need to do runtime linking.
11229
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11230
for ld_flag in $LDFLAGS; do
11233
aix_use_runtimelinking=yes
11241
exp_sym_flag='-bexport'
11242
no_entry_flag='-bnoentry'
11245
# When large executables or shared objects are built, AIX ld can
11246
# have problems creating the table of contents. If linking a library
11247
# or program results in "error TOC overflow" add -mminimal-toc to
11248
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11249
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11251
archive_cmds_CXX=''
11252
hardcode_direct_CXX=yes
11253
hardcode_libdir_separator_CXX=':'
11254
link_all_deplibs_CXX=yes
11256
if test "$GXX" = yes; then
11257
case $host_os in aix4.[012]|aix4.[012].*)
11258
# We only want to do this on AIX 4.2 and lower, the check
11259
# below for broken collect2 doesn't work under 4.3+
11260
collect2name=`${CC} -print-prog-name=collect2`
11261
if test -f "$collect2name" && \
11262
strings "$collect2name" | grep resolve_lib_name >/dev/null
11264
# We have reworked collect2
11267
# We have old collect2
11268
hardcode_direct_CXX=unsupported
11269
# It fails to find uninstalled libraries when the uninstalled
11270
# path is not listed in the libpath. Setting hardcode_minus_L
11271
# to unsupported forces relinking
11272
hardcode_minus_L_CXX=yes
11273
hardcode_libdir_flag_spec_CXX='-L$libdir'
11274
hardcode_libdir_separator_CXX=
11278
shared_flag='-shared'
11279
if test "$aix_use_runtimelinking" = yes; then
11280
shared_flag="$shared_flag "'${wl}-G'
11284
if test "$host_cpu" = ia64; then
11285
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11286
# chokes on -Wl,-G. The following line is correct:
11289
if test "$aix_use_runtimelinking" = yes; then
11290
shared_flag='${wl}-G'
11292
shared_flag='${wl}-bM:SRE'
11297
# It seems that -bexpall does not export symbols beginning with
11298
# underscore (_), so it is better to generate a list of symbols to export.
11299
always_export_symbols_CXX=yes
11300
if test "$aix_use_runtimelinking" = yes; then
11301
# Warning - without using the other runtime loading flags (-brtl),
11302
# -berok will link without error, but may produce a broken library.
11303
allow_undefined_flag_CXX='-berok'
11304
# Determine the default libpath from the value encoded in an empty executable.
11305
cat >conftest.$ac_ext <<_ACEOF
11308
cat confdefs.h >>conftest.$ac_ext
11309
cat >>conftest.$ac_ext <<_ACEOF
11310
/* end confdefs.h. */
11320
rm -f conftest.$ac_objext conftest$ac_exeext
11321
if { (ac_try="$ac_link"
11322
case "(($ac_try" in
11323
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324
*) ac_try_echo=$ac_try;;
11326
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11327
$as_echo "$ac_try_echo") >&5
11328
(eval "$ac_link") 2>conftest.er1
11330
grep -v '^ *+' conftest.er1 >conftest.err
11332
cat conftest.err >&5
11333
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334
(exit $ac_status); } && {
11335
test -z "$ac_cxx_werror_flag" ||
11336
test ! -s conftest.err
11337
} && test -s conftest$ac_exeext && {
11338
test "$cross_compiling" = yes ||
11339
$as_test_x conftest$ac_exeext
11342
lt_aix_libpath_sed='
11343
/Import File Strings/,/^$/ {
11349
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11350
# Check for a 64-bit object if we didn't find anything.
11351
if test -z "$aix_libpath"; then
11352
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11355
$as_echo "$as_me: failed program was:" >&5
11356
sed 's/^/| /' conftest.$ac_ext >&5
11361
rm -rf conftest.dSYM
11362
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11363
conftest$ac_exeext conftest.$ac_ext
11364
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11366
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11368
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11370
if test "$host_cpu" = ia64; then
11371
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11372
allow_undefined_flag_CXX="-z nodefs"
11373
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11375
# Determine the default libpath from the value encoded in an empty executable.
11376
cat >conftest.$ac_ext <<_ACEOF
11379
cat confdefs.h >>conftest.$ac_ext
11380
cat >>conftest.$ac_ext <<_ACEOF
11381
/* end confdefs.h. */
11391
rm -f conftest.$ac_objext conftest$ac_exeext
11392
if { (ac_try="$ac_link"
11393
case "(($ac_try" in
11394
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395
*) ac_try_echo=$ac_try;;
11397
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11398
$as_echo "$ac_try_echo") >&5
11399
(eval "$ac_link") 2>conftest.er1
11401
grep -v '^ *+' conftest.er1 >conftest.err
11403
cat conftest.err >&5
11404
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405
(exit $ac_status); } && {
11406
test -z "$ac_cxx_werror_flag" ||
11407
test ! -s conftest.err
11408
} && test -s conftest$ac_exeext && {
11409
test "$cross_compiling" = yes ||
11410
$as_test_x conftest$ac_exeext
11413
lt_aix_libpath_sed='
11414
/Import File Strings/,/^$/ {
11420
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11421
# Check for a 64-bit object if we didn't find anything.
11422
if test -z "$aix_libpath"; then
11423
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11426
$as_echo "$as_me: failed program was:" >&5
11427
sed 's/^/| /' conftest.$ac_ext >&5
11432
rm -rf conftest.dSYM
11433
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11434
conftest$ac_exeext conftest.$ac_ext
11435
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11437
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11438
# Warning - without using the other run time loading flags,
11439
# -berok will link without error, but may produce a broken library.
11440
no_undefined_flag_CXX=' ${wl}-bernotok'
11441
allow_undefined_flag_CXX=' ${wl}-berok'
11442
# Exported symbols can be pulled into shared objects from archives
11443
whole_archive_flag_spec_CXX='$convenience'
11444
archive_cmds_need_lc_CXX=yes
11445
# This is similar to how AIX traditionally builds its shared libraries.
11446
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11452
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11453
allow_undefined_flag_CXX=unsupported
11454
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11455
# support --undefined. This deserves some investigation. FIXME
11456
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11463
case $cc_basename in
11465
# FIXME: insert proper C++ library support
11471
cygwin* | mingw* | pw32*)
11472
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11473
# as there is no search path for DLLs.
11474
hardcode_libdir_flag_spec_CXX='-L$libdir'
11475
allow_undefined_flag_CXX=unsupported
11476
always_export_symbols_CXX=no
11477
enable_shared_with_static_runtimes_CXX=yes
11479
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11480
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11481
# If the export-symbols file already is a .def file (1st line
11482
# is EXPORTS), use it as is; otherwise, prepend...
11483
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11484
cp $export_symbols $output_objdir/$soname.def;
11486
echo EXPORTS > $output_objdir/$soname.def;
11487
cat $export_symbols >> $output_objdir/$soname.def;
11489
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11494
darwin* | rhapsody*)
11495
archive_cmds_need_lc_CXX=no
11496
hardcode_direct_CXX=no
11497
hardcode_automatic_CXX=yes
11498
hardcode_shlibpath_var_CXX=unsupported
11499
whole_archive_flag_spec_CXX=''
11500
link_all_deplibs_CXX=yes
11501
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11502
if test "$GXX" = yes ; then
11503
output_verbose_link_cmd='echo'
11504
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11505
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11506
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11507
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11508
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11509
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11510
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11513
case $cc_basename in
11515
output_verbose_link_cmd='echo'
11516
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11517
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11518
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11519
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11520
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}'
11530
case $cc_basename in
11532
# FIXME: insert proper C++ library support
11536
# Green Hills C++ Compiler
11537
# FIXME: insert proper C++ library support
11541
# FIXME: insert proper C++ library support
11547
# C++ shared libraries reported to be fairly broken before switch to ELF
11551
archive_cmds_need_lc_CXX=no
11553
freebsd* | dragonfly*)
11554
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11561
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11562
hardcode_libdir_separator_CXX=:
11563
export_dynamic_flag_spec_CXX='${wl}-E'
11564
hardcode_direct_CXX=yes
11565
hardcode_minus_L_CXX=yes # Not in the search PATH,
11566
# but as the default
11567
# location of the library.
11569
case $cc_basename in
11571
# FIXME: insert proper C++ library support
11575
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'
11576
# Commands to make compiler produce verbose output that lists
11577
# what "hidden" libraries, object files and flags are used when
11578
# linking a shared library.
11580
# There doesn't appear to be a way to prevent this compiler from
11581
# explicitly linking system object files so we need to strip them
11582
# from the output so that they don't get included in the library
11584
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'
11587
if test "$GXX" = yes; then
11588
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'
11590
# FIXME: insert proper C++ library support
11597
if test $with_gnu_ld = no; then
11598
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11599
hardcode_libdir_separator_CXX=:
11604
export_dynamic_flag_spec_CXX='${wl}-E'
11610
hardcode_direct_CXX=no
11611
hardcode_shlibpath_var_CXX=no
11614
hardcode_direct_CXX=yes
11615
hardcode_minus_L_CXX=yes # Not in the search PATH,
11616
# but as the default
11617
# location of the library.
11621
case $cc_basename in
11623
# FIXME: insert proper C++ library support
11629
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11632
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11635
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11638
# Commands to make compiler produce verbose output that lists
11639
# what "hidden" libraries, object files and flags are used when
11640
# linking a shared library.
11642
# There doesn't appear to be a way to prevent this compiler from
11643
# explicitly linking system object files so we need to strip them
11644
# from the output so that they don't get included in the library
11646
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'
11649
if test "$GXX" = yes; then
11650
if test $with_gnu_ld = no; then
11653
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11656
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11659
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'
11664
# FIXME: insert proper C++ library support
11671
hardcode_direct_CXX=no
11672
hardcode_shlibpath_var_CXX=no
11673
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11674
export_dynamic_flag_spec_CXX='${wl}-E'
11675
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11676
# Instead, shared libraries are loaded at an image base (0x10000000 by
11677
# default) and relocated if they conflict, which is a slow very memory
11678
# consuming and fragmenting process. To avoid this, we pick a random,
11679
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11680
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11681
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11682
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11685
case $cc_basename in
11688
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11690
# Archives containing C++ object files must be created using
11691
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11692
# necessary to make sure instantiated templates are included
11694
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11697
if test "$GXX" = yes; then
11698
if test "$with_gnu_ld" = no; then
11699
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11701
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'
11704
link_all_deplibs_CXX=yes
11707
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11708
hardcode_libdir_separator_CXX=:
11710
linux* | k*bsd*-gnu)
11711
case $cc_basename in
11713
# Kuck and Associates, Inc. (KAI) C++ Compiler
11715
# KCC will only create a shared library if the output file
11716
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11717
# to its proper name (with version) after linking.
11718
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'
11719
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'
11720
# Commands to make compiler produce verbose output that lists
11721
# what "hidden" libraries, object files and flags are used when
11722
# linking a shared library.
11724
# There doesn't appear to be a way to prevent this compiler from
11725
# explicitly linking system object files so we need to strip them
11726
# from the output so that they don't get included in the library
11728
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'
11730
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11731
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11733
# Archives containing C++ object files must be created using
11734
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11735
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11740
# version 8.0 and above of icpc choke on multiply defined symbols
11741
# if we add $predep_objects and $postdep_objects, however 7.1 and
11742
# earlier do not add the objects themselves.
11743
case `$CC -V 2>&1` in
11745
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11746
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'
11748
*) # Version 8.0 or newer
11751
ia64*) tmp_idyn=' -i_dynamic';;
11753
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11754
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11757
archive_cmds_need_lc_CXX=no
11758
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11759
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11760
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11763
# Portland Group C++ compiler
11764
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11765
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11767
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11768
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11769
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11773
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11774
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'
11776
runpath_var=LD_RUN_PATH
11777
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11778
hardcode_libdir_separator_CXX=:
11780
# Commands to make compiler produce verbose output that lists
11781
# what "hidden" libraries, object files and flags are used when
11782
# linking a shared library.
11784
# There doesn't appear to be a way to prevent this compiler from
11785
# explicitly linking system object files so we need to strip them
11786
# from the output so that they don't get included in the library
11788
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'
11791
case `$CC -V 2>&1 | sed 5q` in
11794
no_undefined_flag_CXX=' -zdefs'
11795
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11796
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11797
hardcode_libdir_flag_spec_CXX='-R$libdir'
11798
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11800
# Not sure whether something based on
11801
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11803
output_verbose_link_cmd='echo'
11805
# Archives containing C++ object files must be created using
11806
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11807
# necessary to make sure instantiated templates are included
11809
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11816
# FIXME: insert proper C++ library support
11820
# FIXME: insert proper C++ library support
11824
case $cc_basename in
11826
# FIXME: insert proper C++ library support
11830
# FIXME: insert proper C++ library support
11836
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11837
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11839
hardcode_libdir_flag_spec_CXX='-R$libdir'
11840
hardcode_direct_CXX=yes
11841
hardcode_shlibpath_var_CXX=no
11843
# Workaround some broken pre-1.5 toolchains
11844
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11847
# C++ shared libraries are fairly broken
11851
if test -f /usr/libexec/ld.so; then
11852
hardcode_direct_CXX=yes
11853
hardcode_shlibpath_var_CXX=no
11854
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11855
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11856
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11857
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11858
export_dynamic_flag_spec_CXX='${wl}-E'
11859
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11861
output_verbose_link_cmd='echo'
11867
case $cc_basename in
11869
# Kuck and Associates, Inc. (KAI) C++ Compiler
11871
# KCC will only create a shared library if the output file
11872
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11873
# to its proper name (with version) after linking.
11874
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'
11876
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11877
hardcode_libdir_separator_CXX=:
11879
# Archives containing C++ object files must be created using
11880
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11881
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11885
# Rational C++ 2.4.1
11886
# FIXME: insert proper C++ library support
11890
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11891
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11893
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11894
hardcode_libdir_separator_CXX=:
11896
# Commands to make compiler produce verbose output that lists
11897
# what "hidden" libraries, object files and flags are used when
11898
# linking a shared library.
11900
# There doesn't appear to be a way to prevent this compiler from
11901
# explicitly linking system object files so we need to strip them
11902
# from the output so that they don't get included in the library
11904
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'
11907
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11908
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11909
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11911
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11912
hardcode_libdir_separator_CXX=:
11914
# Commands to make compiler produce verbose output that lists
11915
# what "hidden" libraries, object files and flags are used when
11916
# linking a shared library.
11917
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11920
# FIXME: insert proper C++ library support
11927
case $cc_basename in
11929
# Kuck and Associates, Inc. (KAI) C++ Compiler
11931
# KCC will only create a shared library if the output file
11932
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11933
# to its proper name (with version) after linking.
11934
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'
11936
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11937
hardcode_libdir_separator_CXX=:
11939
# Archives containing C++ object files must be created using
11940
# the KAI C++ compiler.
11941
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11944
# Rational C++ 2.4.1
11945
# FIXME: insert proper C++ library support
11949
allow_undefined_flag_CXX=' -expect_unresolved \*'
11950
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11951
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11952
echo "-hidden">> $lib.exp~
11953
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11956
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11957
hardcode_libdir_separator_CXX=:
11959
# Commands to make compiler produce verbose output that lists
11960
# what "hidden" libraries, object files and flags are used when
11961
# linking a shared library.
11963
# There doesn't appear to be a way to prevent this compiler from
11964
# explicitly linking system object files so we need to strip them
11965
# from the output so that they don't get included in the library
11967
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'
11970
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11971
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11972
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11974
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11975
hardcode_libdir_separator_CXX=:
11977
# Commands to make compiler produce verbose output that lists
11978
# what "hidden" libraries, object files and flags are used when
11979
# linking a shared library.
11980
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11983
# FIXME: insert proper C++ library support
11990
# FIXME: insert proper C++ library support
11994
case $cc_basename in
11997
# FIXME: insert proper C++ library support
12002
# FIXME: insert proper C++ library support
12006
# FIXME: insert proper C++ library support
12012
case $cc_basename in
12014
# Sun C++ 4.2, 5.x and Centerline C++
12015
archive_cmds_need_lc_CXX=yes
12016
no_undefined_flag_CXX=' -zdefs'
12017
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12018
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12019
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12021
hardcode_libdir_flag_spec_CXX='-R$libdir'
12022
hardcode_shlibpath_var_CXX=no
12024
solaris2.[0-5] | solaris2.[0-5].*) ;;
12026
# The compiler driver will combine and reorder linker options,
12027
# but understands `-z linker_flag'.
12028
# Supported since Solaris 2.6 (maybe 2.5.1?)
12029
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12032
link_all_deplibs_CXX=yes
12034
output_verbose_link_cmd='echo'
12036
# Archives containing C++ object files must be created using
12037
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12038
# necessary to make sure instantiated templates are included
12040
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12043
# Green Hills C++ Compiler
12044
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12046
# The C++ compiler must be used to create the archive.
12047
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12050
# GNU C++ compiler with Solaris linker
12051
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12052
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12053
if $CC --version | grep -v '^2\.7' > /dev/null; then
12054
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12055
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12056
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12058
# Commands to make compiler produce verbose output that lists
12059
# what "hidden" libraries, object files and flags are used when
12060
# linking a shared library.
12061
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12063
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12065
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12066
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12067
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12069
# Commands to make compiler produce verbose output that lists
12070
# what "hidden" libraries, object files and flags are used when
12071
# linking a shared library.
12072
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12075
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12077
solaris2.[0-5] | solaris2.[0-5].*) ;;
12079
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12086
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12087
no_undefined_flag_CXX='${wl}-z,text'
12088
archive_cmds_need_lc_CXX=no
12089
hardcode_shlibpath_var_CXX=no
12090
runpath_var='LD_RUN_PATH'
12092
case $cc_basename in
12094
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12095
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12098
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12099
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12103
sysv5* | sco3.2v5* | sco5v6*)
12104
# Note: We can NOT use -z defs as we might desire, because we do not
12105
# link with -lc, and that would cause any symbols used from libc to
12106
# always be unresolved, which means just about no library would
12107
# ever link correctly. If we're not using GNU ld we use -z text
12108
# though, which does catch some bad symbols but isn't as heavy-handed
12110
# For security reasons, it is highly recommended that you always
12111
# use absolute paths for naming shared libraries, and exclude the
12112
# DT_RUNPATH tag from executables and libraries. But doing so
12113
# requires that you compile everything twice, which is a pain.
12114
# So that behaviour is only enabled if SCOABSPATH is set to a
12115
# non-empty value in the environment. Most likely only useful for
12116
# creating official distributions of packages.
12117
# This is a hack until libtool officially supports absolute path
12118
# names for shared libraries.
12119
no_undefined_flag_CXX='${wl}-z,text'
12120
allow_undefined_flag_CXX='${wl}-z,nodefs'
12121
archive_cmds_need_lc_CXX=no
12122
hardcode_shlibpath_var_CXX=no
12123
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12124
hardcode_libdir_separator_CXX=':'
12125
link_all_deplibs_CXX=yes
12126
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12127
runpath_var='LD_RUN_PATH'
12129
case $cc_basename in
12131
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12132
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12135
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12136
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12141
case $cc_basename in
12143
# NonStop-UX NCC 3.20
12144
# FIXME: insert proper C++ library support
12148
# FIXME: insert proper C++ library support
12154
# FIXME: insert proper C++ library support
12158
# FIXME: insert proper C++ library support
12162
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12163
$as_echo "$ld_shlibs_CXX" >&6; }
12164
test "$ld_shlibs_CXX" = no && can_build_shared=no
12169
cat > conftest.$ac_ext <<EOF
12173
Foo (void) { a = 0; }
12179
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12180
(eval $ac_compile) 2>&5
12182
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183
(exit $ac_status); }; then
12184
# Parse the compiler output and extract the necessary
12185
# objects, libraries and library flags.
12187
# Sentinel used to keep track of whether or not we are before
12188
# the conftest object file.
12189
pre_test_object_deps_done=no
12191
# The `*' in the case matches for architectures that use `case' in
12192
# $output_verbose_cmd can trigger glob expansion during the loop
12193
# eval without this substitution.
12194
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12196
for p in `eval $output_verbose_link_cmd`; do
12200
# Some compilers place space between "-{L,R}" and the path.
12201
# Remove the space.
12202
if test $p = "-L" \
12203
|| test $p = "-R"; then
12210
if test "$pre_test_object_deps_done" = no; then
12213
# Internal compiler library paths should come after those
12214
# provided the user. The postdeps already come after the
12215
# user supplied libs so there is no need to process them.
12216
if test -z "$compiler_lib_search_path_CXX"; then
12217
compiler_lib_search_path_CXX="${prev}${p}"
12219
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12222
# The "-l" case would never come before the object being
12223
# linked, so don't bother handling this case.
12226
if test -z "$postdeps_CXX"; then
12227
postdeps_CXX="${prev}${p}"
12229
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12235
# This assumes that the test object file only shows up
12236
# once in the compiler output.
12237
if test "$p" = "conftest.$objext"; then
12238
pre_test_object_deps_done=yes
12242
if test "$pre_test_object_deps_done" = no; then
12243
if test -z "$predep_objects_CXX"; then
12244
predep_objects_CXX="$p"
12246
predep_objects_CXX="$predep_objects_CXX $p"
12249
if test -z "$postdep_objects_CXX"; then
12250
postdep_objects_CXX="$p"
12252
postdep_objects_CXX="$postdep_objects_CXX $p"
12257
*) ;; # Ignore the rest.
12265
echo "libtool.m4: error: problem compiling CXX test program"
12268
$rm -f confest.$objext
12270
compiler_lib_search_dirs_CXX=
12271
if test -n "$compiler_lib_search_path_CXX"; then
12272
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12275
# PORTME: override above test on systems where it is broken
12278
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12279
# hack all around it, let's just trust "g++" to DTRT.
12280
predep_objects_CXX=
12281
postdep_objects_CXX=
12286
case `$CC -V 2>&1 | sed 5q` in
12290
# The more standards-conforming stlport4 library is
12291
# incompatible with the Cstd library. Avoid specifying
12292
# it if it's in CXXFLAGS. Ignore libCrun as
12293
# -library=stlport4 depends on it.
12294
case " $CXX $CXXFLAGS " in
12295
*" -library=stlport4 "*)
12296
solaris_use_stlport4=yes
12299
if test "$solaris_use_stlport4" != yes; then
12300
postdeps_CXX='-library=Cstd -library=Crun'
12307
case $cc_basename in
12309
# The more standards-conforming stlport4 library is
12310
# incompatible with the Cstd library. Avoid specifying
12311
# it if it's in CXXFLAGS. Ignore libCrun as
12312
# -library=stlport4 depends on it.
12313
case " $CXX $CXXFLAGS " in
12314
*" -library=stlport4 "*)
12315
solaris_use_stlport4=yes
12319
# Adding this requires a known-good setup of shared libraries for
12320
# Sun compiler versions before 5.6, else PIC objects from an old
12321
# archive will be linked into the output, leading to subtle bugs.
12322
if test "$solaris_use_stlport4" != yes; then
12323
postdeps_CXX='-library=Cstd -library=Crun'
12330
case " $postdeps_CXX " in
12331
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12334
lt_prog_compiler_wl_CXX=
12335
lt_prog_compiler_pic_CXX=
12336
lt_prog_compiler_static_CXX=
12338
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12339
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12341
# C++ specific cases for pic, static, wl, etc.
12342
if test "$GXX" = yes; then
12343
lt_prog_compiler_wl_CXX='-Wl,'
12344
lt_prog_compiler_static_CXX='-static'
12348
# All AIX code is PIC.
12349
if test "$host_cpu" = ia64; then
12350
# AIX 5 now supports IA64 processor
12351
lt_prog_compiler_static_CXX='-Bstatic'
12355
# FIXME: we need at least 68020 code to build shared libraries, but
12356
# adding the `-m68020' flag to GCC prevents building anything better,
12358
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12360
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12361
# PIC is the default for these OSes.
12363
mingw* | cygwin* | os2* | pw32*)
12364
# This hack is so that the source file can tell whether it is being
12365
# built for inclusion in a dll (and should export symbols for example).
12366
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12367
# (--disable-auto-import) libraries
12368
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12370
darwin* | rhapsody*)
12371
# PIC is the default on this platform
12372
# Common symbols not allowed in MH_DYLIB files
12373
lt_prog_compiler_pic_CXX='-fno-common'
12376
# DJGPP does not support shared libraries at all
12377
lt_prog_compiler_pic_CXX=
12380
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12381
# Instead, we relocate shared libraries at runtime.
12384
if test -d /usr/nec; then
12385
lt_prog_compiler_pic_CXX=-Kconform_pic
12389
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12390
# not for PA HP-UX.
12395
lt_prog_compiler_pic_CXX='-fPIC'
12400
lt_prog_compiler_pic_CXX='-fPIC'
12406
# All AIX code is PIC.
12407
if test "$host_cpu" = ia64; then
12408
# AIX 5 now supports IA64 processor
12409
lt_prog_compiler_static_CXX='-Bstatic'
12411
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12415
case $cc_basename in
12417
# Green Hills C++ Compiler
12418
# _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"
12423
# PIC is the default on this platform
12424
# Common symbols not allowed in MH_DYLIB files
12425
case $cc_basename in
12427
lt_prog_compiler_pic_CXX='-qnocommon'
12428
lt_prog_compiler_wl_CXX='-Wl,'
12433
case $cc_basename in
12435
lt_prog_compiler_pic_CXX='-KPIC'
12438
# Green Hills C++ Compiler
12439
lt_prog_compiler_pic_CXX='-pic'
12445
freebsd* | dragonfly*)
12446
# FreeBSD uses GNU C++
12448
hpux9* | hpux10* | hpux11*)
12449
case $cc_basename in
12451
lt_prog_compiler_wl_CXX='-Wl,'
12452
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12453
if test "$host_cpu" != ia64; then
12454
lt_prog_compiler_pic_CXX='+Z'
12458
lt_prog_compiler_wl_CXX='-Wl,'
12459
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12465
lt_prog_compiler_pic_CXX='+Z'
12474
# This is c89, which is MS Visual C++ (no shared libs)
12475
# Anyone wants to do a port?
12477
irix5* | irix6* | nonstopux*)
12478
case $cc_basename in
12480
lt_prog_compiler_wl_CXX='-Wl,'
12481
lt_prog_compiler_static_CXX='-non_shared'
12482
# CC pic flag -KPIC is the default.
12488
linux* | k*bsd*-gnu)
12489
case $cc_basename in
12492
lt_prog_compiler_wl_CXX='--backend -Wl,'
12493
lt_prog_compiler_pic_CXX='-fPIC'
12497
lt_prog_compiler_wl_CXX='-Wl,'
12498
lt_prog_compiler_pic_CXX='-KPIC'
12499
lt_prog_compiler_static_CXX='-static'
12502
# Portland Group C++ compiler.
12503
lt_prog_compiler_wl_CXX='-Wl,'
12504
lt_prog_compiler_pic_CXX='-fpic'
12505
lt_prog_compiler_static_CXX='-Bstatic'
12509
# Make sure the PIC flag is empty. It appears that all Alpha
12510
# Linux and Compaq Tru64 Unix objects are PIC.
12511
lt_prog_compiler_pic_CXX=
12512
lt_prog_compiler_static_CXX='-non_shared'
12515
case `$CC -V 2>&1 | sed 5q` in
12518
lt_prog_compiler_pic_CXX='-KPIC'
12519
lt_prog_compiler_static_CXX='-Bstatic'
12520
lt_prog_compiler_wl_CXX='-Qoption ld '
12531
case $cc_basename in
12533
lt_prog_compiler_pic_CXX='-W c,exportall'
12541
osf3* | osf4* | osf5*)
12542
case $cc_basename in
12544
lt_prog_compiler_wl_CXX='--backend -Wl,'
12547
# Rational C++ 2.4.1
12548
lt_prog_compiler_pic_CXX='-pic'
12551
# Digital/Compaq C++
12552
lt_prog_compiler_wl_CXX='-Wl,'
12553
# Make sure the PIC flag is empty. It appears that all Alpha
12554
# Linux and Compaq Tru64 Unix objects are PIC.
12555
lt_prog_compiler_pic_CXX=
12556
lt_prog_compiler_static_CXX='-non_shared'
12565
case $cc_basename in
12567
# Sun C++ 4.2, 5.x and Centerline C++
12568
lt_prog_compiler_pic_CXX='-KPIC'
12569
lt_prog_compiler_static_CXX='-Bstatic'
12570
lt_prog_compiler_wl_CXX='-Qoption ld '
12573
# Green Hills C++ Compiler
12574
lt_prog_compiler_pic_CXX='-PIC'
12581
case $cc_basename in
12584
lt_prog_compiler_pic_CXX='-pic'
12585
lt_prog_compiler_static_CXX='-Bstatic'
12589
lt_prog_compiler_pic_CXX='-pic'
12596
case $cc_basename in
12598
# NonStop-UX NCC 3.20
12599
lt_prog_compiler_pic_CXX='-KPIC'
12605
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12606
case $cc_basename in
12608
lt_prog_compiler_wl_CXX='-Wl,'
12609
lt_prog_compiler_pic_CXX='-KPIC'
12610
lt_prog_compiler_static_CXX='-Bstatic'
12617
lt_prog_compiler_can_build_shared_CXX=no
12622
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12623
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12626
# Check to make sure the PIC flag actually works.
12628
if test -n "$lt_prog_compiler_pic_CXX"; then
12630
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12631
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12632
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12633
$as_echo_n "(cached) " >&6
12635
lt_cv_prog_compiler_pic_works_CXX=no
12636
ac_outfile=conftest.$ac_objext
12637
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12638
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12639
# Insert the option either (1) after the last *FLAGS variable, or
12640
# (2) before a word containing "conftest.", or (3) at the end.
12641
# Note that $ac_compile itself does not contain backslashes and begins
12642
# with a dollar sign (not a hyphen), so the echo should work correctly.
12643
# The option is referenced via a variable to avoid confusing sed.
12644
lt_compile=`echo "$ac_compile" | $SED \
12645
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12646
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12647
-e 's:$: $lt_compiler_flag:'`
12648
(eval echo "\"\$as_me:12648: $lt_compile\"" >&5)
12649
(eval "$lt_compile" 2>conftest.err)
12651
cat conftest.err >&5
12652
echo "$as_me:12652: \$? = $ac_status" >&5
12653
if (exit $ac_status) && test -s "$ac_outfile"; then
12654
# The compiler can only warn and ignore the option if not recognized
12655
# So say no if there are warnings other than the usual output.
12656
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12657
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12658
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12659
lt_cv_prog_compiler_pic_works_CXX=yes
12665
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12666
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12668
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12669
case $lt_prog_compiler_pic_CXX in
12671
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12674
lt_prog_compiler_pic_CXX=
12675
lt_prog_compiler_can_build_shared_CXX=no
12680
# For platforms which do not support PIC, -DPIC is meaningless:
12682
lt_prog_compiler_pic_CXX=
12685
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12690
# Check to make sure the static flag actually works.
12692
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12693
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12694
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12695
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12696
$as_echo_n "(cached) " >&6
12698
lt_cv_prog_compiler_static_works_CXX=no
12699
save_LDFLAGS="$LDFLAGS"
12700
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12701
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12702
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12703
# The linker can only warn and ignore the option if not recognized
12704
# So say no if there are warnings
12705
if test -s conftest.err; then
12706
# Append any errors to the config.log.
12707
cat conftest.err 1>&5
12708
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12709
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12710
if diff conftest.exp conftest.er2 >/dev/null; then
12711
lt_cv_prog_compiler_static_works_CXX=yes
12714
lt_cv_prog_compiler_static_works_CXX=yes
12718
LDFLAGS="$save_LDFLAGS"
12721
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12722
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12724
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12727
lt_prog_compiler_static_CXX=
12731
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12732
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12733
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12734
$as_echo_n "(cached) " >&6
12736
lt_cv_prog_compiler_c_o_CXX=no
12737
$rm -r conftest 2>/dev/null
12741
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12743
lt_compiler_flag="-o out/conftest2.$ac_objext"
12744
# Insert the option either (1) after the last *FLAGS variable, or
12745
# (2) before a word containing "conftest.", or (3) at the end.
12746
# Note that $ac_compile itself does not contain backslashes and begins
12747
# with a dollar sign (not a hyphen), so the echo should work correctly.
12748
lt_compile=`echo "$ac_compile" | $SED \
12749
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12750
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12751
-e 's:$: $lt_compiler_flag:'`
12752
(eval echo "\"\$as_me:12752: $lt_compile\"" >&5)
12753
(eval "$lt_compile" 2>out/conftest.err)
12755
cat out/conftest.err >&5
12756
echo "$as_me:12756: \$? = $ac_status" >&5
12757
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12759
# The compiler can only warn and ignore the option if not recognized
12760
# So say no if there are warnings
12761
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12762
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12763
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12764
lt_cv_prog_compiler_c_o_CXX=yes
12769
# SGI C++ compiler will create directory out/ii_files/ for
12770
# template instantiation
12771
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12772
$rm out/* && rmdir out
12778
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12779
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12782
hard_links="nottested"
12783
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12784
# do not overwrite the value of need_locks provided by the user
12785
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12786
$as_echo_n "checking if we can lock with hard links... " >&6; }
12789
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12791
ln conftest.a conftest.b 2>&5 || hard_links=no
12792
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12793
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12794
$as_echo "$hard_links" >&6; }
12795
if test "$hard_links" = no; then
12796
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12797
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12804
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12805
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12807
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12810
# If we're using GNU nm, then we don't want the "-C" option.
12811
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12812
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12813
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'
12815
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'
12819
export_symbols_cmds_CXX="$ltdll_cmds"
12822
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12825
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12828
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12830
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12831
$as_echo "$ld_shlibs_CXX" >&6; }
12832
test "$ld_shlibs_CXX" = no && can_build_shared=no
12835
# Do we need to explicitly link libc?
12837
case "x$archive_cmds_need_lc_CXX" in
12839
# Assume -lc should be added
12840
archive_cmds_need_lc_CXX=yes
12842
if test "$enable_shared" = yes && test "$GCC" = yes; then
12843
case $archive_cmds_CXX in
12845
# FIXME: we may have to deal with multi-command sequences.
12848
# Test whether the compiler implicitly links with -lc since on some
12849
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12850
# to ld, don't add -lc before -lgcc.
12851
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12852
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12854
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12856
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12857
(eval $ac_compile) 2>&5
12859
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860
(exit $ac_status); } 2>conftest.err; then
12863
libobjs=conftest.$ac_objext
12865
wl=$lt_prog_compiler_wl_CXX
12866
pic_flag=$lt_prog_compiler_pic_CXX
12872
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12873
allow_undefined_flag_CXX=
12874
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12875
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12877
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878
(exit $ac_status); }
12880
archive_cmds_need_lc_CXX=no
12882
archive_cmds_need_lc_CXX=yes
12884
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12886
cat conftest.err 1>&5
12889
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12890
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12897
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12898
$as_echo_n "checking dynamic linker characteristics... " >&6; }
12899
library_names_spec=
12900
libname_spec='lib$name'
12904
postuninstall_cmds=
12908
shlibpath_overrides_runpath=unknown
12910
dynamic_linker="$host_os ld.so"
12911
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12913
need_lib_prefix=unknown
12914
hardcode_into_libs=no
12916
# when you set need_version to no, make sure it does not cause -set_version
12917
# flags to be left without arguments
12918
need_version=unknown
12923
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12924
shlibpath_var=LIBPATH
12926
# AIX 3 has no versioning support, so we append a major version to the name.
12927
soname_spec='${libname}${release}${shared_ext}$major'
12934
hardcode_into_libs=yes
12935
if test "$host_cpu" = ia64; then
12936
# AIX 5 supports IA64
12937
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12938
shlibpath_var=LD_LIBRARY_PATH
12940
# With GCC up to 2.95.x, collect2 would create an import file
12941
# for dependence libraries. The import file would start with
12942
# the line `#! .'. This would cause the generated library to
12943
# depend on `.', always an invalid library. This was fixed in
12944
# development snapshots of GCC prior to 3.0.
12946
aix4 | aix4.[01] | aix4.[01].*)
12947
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12949
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12952
can_build_shared=no
12956
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12957
# soname into executable. Probably we can add versioning support to
12958
# collect2, so additional links can be useful in future.
12959
if test "$aix_use_runtimelinking" = yes; then
12960
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12961
# instead of lib<name>.a to let people know that these are not
12962
# typical AIX shared libraries.
12963
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12965
# We preserve .a as extension for shared libraries through AIX4.2
12966
# and later when we are not doing run time linking.
12967
library_names_spec='${libname}${release}.a $libname.a'
12968
soname_spec='${libname}${release}${shared_ext}$major'
12970
shlibpath_var=LIBPATH
12975
library_names_spec='$libname.ixlibrary $libname.a'
12976
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12977
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'
12981
library_names_spec='${libname}${shared_ext}'
12982
dynamic_linker="$host_os ld.so"
12983
shlibpath_var=LIBRARY_PATH
12989
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12990
soname_spec='${libname}${release}${shared_ext}$major'
12991
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12992
shlibpath_var=LD_LIBRARY_PATH
12993
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12994
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12995
# the default ld.so.conf also contains /usr/contrib/lib and
12996
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12997
# libtool to hard-code these into programs
13000
cygwin* | mingw* | pw32*)
13001
version_type=windows
13006
case $GCC,$host_os in
13007
yes,cygwin* | yes,mingw* | yes,pw32*)
13008
library_names_spec='$libname.dll.a'
13009
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13010
postinstall_cmds='base_file=`basename \${file}`~
13011
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13012
dldir=$destdir/`dirname \$dlpath`~
13013
test -d \$dldir || mkdir -p \$dldir~
13014
$install_prog $dir/$dlname \$dldir/$dlname~
13015
chmod a+x \$dldir/$dlname'
13016
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13017
dlpath=$dir/\$dldll~
13019
shlibpath_overrides_runpath=yes
13023
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13024
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13025
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13028
# MinGW DLLs use traditional 'lib' prefix
13029
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13030
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13031
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13032
# It is most probably a Windows format PATH printed by
13033
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13034
# path with ; separators, and with drive letters. We can handle the
13035
# drive letters (cygwin fileutils understands them), so leave them,
13036
# especially as we might pass files found there to a mingw objdump,
13037
# which wouldn't understand a cygwinified path. Ahh.
13038
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13040
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13044
# pw32 DLLs use 'pw' prefix rather than 'lib'
13045
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13051
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13054
dynamic_linker='Win32 ld.exe'
13055
# FIXME: first we should search . and the directory the executable is in
13059
darwin* | rhapsody*)
13060
dynamic_linker="$host_os dyld"
13061
version_type=darwin
13064
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13065
soname_spec='${libname}${release}${major}$shared_ext'
13066
shlibpath_overrides_runpath=yes
13067
shlibpath_var=DYLD_LIBRARY_PATH
13068
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13070
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13077
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13078
soname_spec='${libname}${release}${shared_ext}$major'
13079
shlibpath_var=LD_LIBRARY_PATH
13086
freebsd* | dragonfly*)
13087
# DragonFly does not have aout. When/if they implement a new
13088
# versioning mechanism, adjust this.
13089
if test -x /usr/bin/objformat; then
13090
objformat=`/usr/bin/objformat`
13093
freebsd[123]*) objformat=aout ;;
13094
*) objformat=elf ;;
13097
version_type=freebsd-$objformat
13098
case $version_type in
13100
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13105
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13109
shlibpath_var=LD_LIBRARY_PATH
13112
shlibpath_overrides_runpath=yes
13114
freebsd3.[01]* | freebsdelf3.[01]*)
13115
shlibpath_overrides_runpath=yes
13116
hardcode_into_libs=yes
13118
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13119
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13120
shlibpath_overrides_runpath=no
13121
hardcode_into_libs=yes
13123
*) # from 4.6 on, and DragonFly
13124
shlibpath_overrides_runpath=yes
13125
hardcode_into_libs=yes
13134
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13135
soname_spec='${libname}${release}${shared_ext}$major'
13136
shlibpath_var=LD_LIBRARY_PATH
13137
hardcode_into_libs=yes
13140
hpux9* | hpux10* | hpux11*)
13141
# Give a soname corresponding to the major version so that dld.sl refuses to
13142
# link against other versions.
13149
hardcode_into_libs=yes
13150
dynamic_linker="$host_os dld.so"
13151
shlibpath_var=LD_LIBRARY_PATH
13152
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13153
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13154
soname_spec='${libname}${release}${shared_ext}$major'
13155
if test "X$HPUX_IA64_MODE" = X32; then
13156
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13158
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13160
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13164
hardcode_into_libs=yes
13165
dynamic_linker="$host_os dld.sl"
13166
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13167
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13168
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13169
soname_spec='${libname}${release}${shared_ext}$major'
13170
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13171
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13175
dynamic_linker="$host_os dld.sl"
13176
shlibpath_var=SHLIB_PATH
13177
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13178
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13179
soname_spec='${libname}${release}${shared_ext}$major'
13182
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13183
postinstall_cmds='chmod 555 $lib'
13190
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13191
soname_spec='${libname}${release}${shared_ext}$major'
13192
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13193
shlibpath_var=LD_LIBRARY_PATH
13194
shlibpath_overrides_runpath=no
13195
hardcode_into_libs=yes
13198
irix5* | irix6* | nonstopux*)
13200
nonstopux*) version_type=nonstopux ;;
13202
if test "$lt_cv_prog_gnu_ld" = yes; then
13210
soname_spec='${libname}${release}${shared_ext}$major'
13211
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13213
irix5* | nonstopux*)
13214
libsuff= shlibsuff=
13217
case $LD in # libtool.m4 will add one of these switches to LD
13218
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13219
libsuff= shlibsuff= libmagic=32-bit;;
13220
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13221
libsuff=32 shlibsuff=N32 libmagic=N32;;
13222
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13223
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13224
*) libsuff= shlibsuff= libmagic=never-match;;
13228
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13229
shlibpath_overrides_runpath=no
13230
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13231
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13232
hardcode_into_libs=yes
13235
# No shared lib support for Linux oldld, aout, or coff.
13236
linux*oldld* | linux*aout* | linux*coff*)
13240
# This must be Linux ELF.
13241
linux* | k*bsd*-gnu)
13245
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13246
soname_spec='${libname}${release}${shared_ext}$major'
13247
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13248
shlibpath_var=LD_LIBRARY_PATH
13249
shlibpath_overrides_runpath=no
13250
# This implies no fast_install, which is unacceptable.
13251
# Some rework will be needed to allow for fast_install
13252
# before this can be enabled.
13253
hardcode_into_libs=yes
13255
# Append ld.so.conf contents to the search path
13256
if test -f /etc/ld.so.conf; then
13257
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13258
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13261
# We used to test for /lib/ld.so.1 and disable shared libraries on
13262
# powerpc, because MkLinux only supported shared libraries with the
13263
# GNU dynamic linker. Since this was broken with cross compilers,
13264
# most powerpc-linux boxes support dynamic linking these days and
13265
# people can always --disable-shared, the test was removed, and we
13266
# assume the GNU/Linux dynamic linker is in use.
13267
dynamic_linker='GNU/Linux ld.so'
13274
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13275
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13276
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13277
dynamic_linker='NetBSD (a.out) ld.so'
13279
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13280
soname_spec='${libname}${release}${shared_ext}$major'
13281
dynamic_linker='NetBSD ld.elf_so'
13283
shlibpath_var=LD_LIBRARY_PATH
13284
shlibpath_overrides_runpath=yes
13285
hardcode_into_libs=yes
13290
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13291
shlibpath_var=LD_LIBRARY_PATH
13292
shlibpath_overrides_runpath=yes
13299
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13300
soname_spec='${libname}${release}${shared_ext}$major'
13301
shlibpath_var=LD_LIBRARY_PATH
13302
shlibpath_overrides_runpath=yes
13307
sys_lib_dlsearch_path_spec="/usr/lib"
13309
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13311
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13312
*) need_version=no ;;
13314
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13315
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13316
shlibpath_var=LD_LIBRARY_PATH
13317
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13319
openbsd2.[89] | openbsd2.[89].*)
13320
shlibpath_overrides_runpath=no
13323
shlibpath_overrides_runpath=yes
13327
shlibpath_overrides_runpath=yes
13332
libname_spec='$name'
13335
library_names_spec='$libname${shared_ext} $libname.a'
13336
dynamic_linker='OS/2 ld.exe'
13337
shlibpath_var=LIBPATH
13340
osf3* | osf4* | osf5*)
13344
soname_spec='${libname}${release}${shared_ext}$major'
13345
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13346
shlibpath_var=LD_LIBRARY_PATH
13347
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13348
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13359
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13360
soname_spec='${libname}${release}${shared_ext}$major'
13361
shlibpath_var=LD_LIBRARY_PATH
13362
shlibpath_overrides_runpath=yes
13363
hardcode_into_libs=yes
13364
# ldd complains unless libraries are executable
13365
postinstall_cmds='chmod +x $lib'
13370
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13371
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13372
shlibpath_var=LD_LIBRARY_PATH
13373
shlibpath_overrides_runpath=yes
13374
if test "$with_gnu_ld" = yes; then
13382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13383
soname_spec='${libname}${release}${shared_ext}$major'
13384
shlibpath_var=LD_LIBRARY_PATH
13385
case $host_vendor in
13387
shlibpath_overrides_runpath=no
13389
export_dynamic_flag_spec='${wl}-Blargedynsym'
13390
runpath_var=LD_RUN_PATH
13398
shlibpath_overrides_runpath=no
13399
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13405
if test -d /usr/nec ;then
13407
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13408
soname_spec='$libname${shared_ext}.$major'
13409
shlibpath_var=LD_LIBRARY_PATH
13413
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13414
version_type=freebsd-elf
13417
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13418
soname_spec='${libname}${release}${shared_ext}$major'
13419
shlibpath_var=LD_LIBRARY_PATH
13420
hardcode_into_libs=yes
13421
if test "$with_gnu_ld" = yes; then
13422
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13423
shlibpath_overrides_runpath=no
13425
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13426
shlibpath_overrides_runpath=yes
13429
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13433
sys_lib_dlsearch_path_spec='/usr/lib'
13438
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13439
soname_spec='${libname}${release}${shared_ext}$major'
13440
shlibpath_var=LD_LIBRARY_PATH
13447
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13448
$as_echo "$dynamic_linker" >&6; }
13449
test "$dynamic_linker" = no && can_build_shared=no
13451
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13452
$as_echo_n "(cached) " >&6
13454
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13457
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13458
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13459
$as_echo_n "(cached) " >&6
13461
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13464
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13466
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13467
if test "$GCC" = yes; then
13468
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13471
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13472
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13473
hardcode_action_CXX=
13474
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13475
test -n "$runpath_var_CXX" || \
13476
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13478
# We can hardcode non-existant directories.
13479
if test "$hardcode_direct_CXX" != no &&
13480
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13481
# have to relink, otherwise we might link with an installed library
13482
# when we should be linking with a yet-to-be-installed one
13483
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13484
test "$hardcode_minus_L_CXX" != no; then
13485
# Linking always hardcodes the temporary library directory.
13486
hardcode_action_CXX=relink
13488
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13489
hardcode_action_CXX=immediate
13492
# We cannot hardcode anything, or else we can only hardcode existing
13494
hardcode_action_CXX=unsupported
13496
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13497
$as_echo "$hardcode_action_CXX" >&6; }
13499
if test "$hardcode_action_CXX" = relink; then
13500
# Fast installation is not supported
13501
enable_fast_install=no
13502
elif test "$shlibpath_overrides_runpath" = yes ||
13503
test "$enable_shared" = no; then
13504
# Fast installation is not necessary
13505
enable_fast_install=needless
13509
# The else clause should only fire when bootstrapping the
13510
# libtool distribution, otherwise you forgot to ship ltmain.sh
13511
# with your package, and you will get complaints that there are
13512
# no rules to generate ltmain.sh.
13513
if test -f "$ltmain"; then
13514
# See if we are running on zsh, and set the options which allow our commands through
13515
# without removal of \ escapes.
13516
if test -n "${ZSH_VERSION+set}" ; then
13517
setopt NO_GLOB_SUBST
13519
# Now quote all the things that may contain metacharacters while being
13520
# careful not to overquote the AC_SUBSTed values. We take copies of the
13521
# variables and quote the copies for generation of the libtool script.
13522
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13524
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13525
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13526
deplibs_check_method reload_flag reload_cmds need_locks \
13527
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13528
lt_cv_sys_global_symbol_to_c_name_address \
13529
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13530
old_postinstall_cmds old_postuninstall_cmds \
13534
lt_prog_compiler_wl_CXX \
13535
lt_prog_compiler_pic_CXX \
13536
lt_prog_compiler_static_CXX \
13537
lt_prog_compiler_no_builtin_flag_CXX \
13538
export_dynamic_flag_spec_CXX \
13539
thread_safe_flag_spec_CXX \
13540
whole_archive_flag_spec_CXX \
13541
enable_shared_with_static_runtimes_CXX \
13542
old_archive_cmds_CXX \
13543
old_archive_from_new_cmds_CXX \
13544
predep_objects_CXX \
13545
postdep_objects_CXX \
13548
compiler_lib_search_path_CXX \
13549
compiler_lib_search_dirs_CXX \
13551
archive_expsym_cmds_CXX \
13552
postinstall_cmds_CXX \
13553
postuninstall_cmds_CXX \
13554
old_archive_from_expsyms_cmds_CXX \
13555
allow_undefined_flag_CXX \
13556
no_undefined_flag_CXX \
13557
export_symbols_cmds_CXX \
13558
hardcode_libdir_flag_spec_CXX \
13559
hardcode_libdir_flag_spec_ld_CXX \
13560
hardcode_libdir_separator_CXX \
13561
hardcode_automatic_CXX \
13563
module_expsym_cmds_CXX \
13564
lt_cv_prog_compiler_c_o_CXX \
13565
fix_srcfile_path_CXX \
13566
exclude_expsyms_CXX \
13567
include_expsyms_CXX; do
13570
old_archive_cmds_CXX | \
13571
old_archive_from_new_cmds_CXX | \
13572
archive_cmds_CXX | \
13573
archive_expsym_cmds_CXX | \
13574
module_cmds_CXX | \
13575
module_expsym_cmds_CXX | \
13576
old_archive_from_expsyms_cmds_CXX | \
13577
export_symbols_cmds_CXX | \
13578
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13579
postinstall_cmds | postuninstall_cmds | \
13580
old_postinstall_cmds | old_postuninstall_cmds | \
13581
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13582
# Double-quote double-evaled strings.
13583
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13586
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13592
*'\$0 --fallback-echo"')
13593
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13599
cat <<__EOF__ >> "$cfgfile"
13600
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13602
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13604
# Shell to use when invoking shell scripts.
13607
# Whether or not to build shared libraries.
13608
build_libtool_libs=$enable_shared
13610
# Whether or not to build static libraries.
13611
build_old_libs=$enable_static
13613
# Whether or not to add -lc for building shared libraries.
13614
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13616
# Whether or not to disallow shared libs when runtime libs are static
13617
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13619
# Whether or not to optimize for fast installation.
13620
fast_install=$enable_fast_install
13623
host_alias=$host_alias
13627
# The build system.
13628
build_alias=$build_alias
13632
# An echo program that does not interpret backslashes.
13637
AR_FLAGS=$lt_AR_FLAGS
13642
# LTCC compiler flags.
13643
LTCFLAGS=$lt_LTCFLAGS
13645
# A language-specific compiler.
13646
CC=$lt_compiler_CXX
13648
# Is the compiler the GNU C compiler?
13654
# The linker used to build libraries.
13657
# Whether we need hard or soft links.
13660
# A BSD-compatible nm program.
13663
# A symbol stripping program
13666
# Used to examine libraries when file_magic_cmd begins "file"
13667
MAGIC_CMD=$MAGIC_CMD
13669
# Used on cygwin: DLL creation program.
13672
# Used on cygwin: object dumper.
13675
# Used on cygwin: assembler.
13678
# The name of the directory that contains temporary libtool files.
13681
# How to create reloadable object files.
13682
reload_flag=$lt_reload_flag
13683
reload_cmds=$lt_reload_cmds
13685
# How to pass a linker flag through the compiler.
13686
wl=$lt_lt_prog_compiler_wl_CXX
13688
# Object file suffix (normally "o").
13689
objext="$ac_objext"
13691
# Old archive suffix (normally "a").
13694
# Shared library suffix (normally ".so").
13695
shrext_cmds='$shrext_cmds'
13697
# Executable file suffix (normally "").
13700
# Additional compiler flags for building library objects.
13701
pic_flag=$lt_lt_prog_compiler_pic_CXX
13704
# What is the maximum length of a command?
13705
max_cmd_len=$lt_cv_sys_max_cmd_len
13707
# Does compiler simultaneously support -c and -o options?
13708
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13710
# Must we lock files when doing compilation?
13711
need_locks=$lt_need_locks
13713
# Do we need the lib prefix for modules?
13714
need_lib_prefix=$need_lib_prefix
13716
# Do we need a version for libraries?
13717
need_version=$need_version
13719
# Whether dlopen is supported.
13720
dlopen_support=$enable_dlopen
13722
# Whether dlopen of programs is supported.
13723
dlopen_self=$enable_dlopen_self
13725
# Whether dlopen of statically linked programs is supported.
13726
dlopen_self_static=$enable_dlopen_self_static
13728
# Compiler flag to prevent dynamic linking.
13729
link_static_flag=$lt_lt_prog_compiler_static_CXX
13731
# Compiler flag to turn off builtin functions.
13732
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13734
# Compiler flag to allow reflexive dlopens.
13735
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13737
# Compiler flag to generate shared objects directly from archives.
13738
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13740
# Compiler flag to generate thread-safe objects.
13741
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13743
# Library versioning type.
13744
version_type=$version_type
13746
# Format of library name prefix.
13747
libname_spec=$lt_libname_spec
13749
# List of archive names. First name is the real one, the rest are links.
13750
# The last name is the one that the linker finds with -lNAME.
13751
library_names_spec=$lt_library_names_spec
13753
# The coded name of the library, if different from the real name.
13754
soname_spec=$lt_soname_spec
13756
# Commands used to build and install an old-style archive.
13758
old_archive_cmds=$lt_old_archive_cmds_CXX
13759
old_postinstall_cmds=$lt_old_postinstall_cmds
13760
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13762
# Create an old-style archive from a shared archive.
13763
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13765
# Create a temporary old-style archive to link instead of a shared archive.
13766
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13768
# Commands used to build and install a shared archive.
13769
archive_cmds=$lt_archive_cmds_CXX
13770
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13771
postinstall_cmds=$lt_postinstall_cmds
13772
postuninstall_cmds=$lt_postuninstall_cmds
13774
# Commands used to build a loadable module (assumed same as above if empty)
13775
module_cmds=$lt_module_cmds_CXX
13776
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13778
# Commands to strip libraries.
13779
old_striplib=$lt_old_striplib
13780
striplib=$lt_striplib
13782
# Dependencies to place before the objects being linked to create a
13784
predep_objects=$lt_predep_objects_CXX
13786
# Dependencies to place after the objects being linked to create a
13788
postdep_objects=$lt_postdep_objects_CXX
13790
# Dependencies to place before the objects being linked to create a
13792
predeps=$lt_predeps_CXX
13794
# Dependencies to place after the objects being linked to create a
13796
postdeps=$lt_postdeps_CXX
13798
# The directories searched by this compiler when creating a shared
13800
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13802
# The library search path used internally by the compiler when linking
13803
# a shared library.
13804
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13806
# Method to check whether dependent libraries are shared objects.
13807
deplibs_check_method=$lt_deplibs_check_method
13809
# Command to use when deplibs_check_method == file_magic.
13810
file_magic_cmd=$lt_file_magic_cmd
13812
# Flag that allows shared libraries with undefined symbols to be built.
13813
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13815
# Flag that forces no undefined symbols.
13816
no_undefined_flag=$lt_no_undefined_flag_CXX
13818
# Commands used to finish a libtool library installation in a directory.
13819
finish_cmds=$lt_finish_cmds
13821
# Same as above, but a single script fragment to be evaled but not shown.
13822
finish_eval=$lt_finish_eval
13824
# Take the output of nm and produce a listing of raw symbols and C names.
13825
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13827
# Transform the output of nm in a proper C declaration
13828
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13830
# Transform the output of nm in a C name address pair
13831
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13833
# This is the shared library runtime path variable.
13834
runpath_var=$runpath_var
13836
# This is the shared library path variable.
13837
shlibpath_var=$shlibpath_var
13839
# Is shlibpath searched before the hard-coded library search path?
13840
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13842
# How to hardcode a shared library path into an executable.
13843
hardcode_action=$hardcode_action_CXX
13845
# Whether we should hardcode library paths into libraries.
13846
hardcode_into_libs=$hardcode_into_libs
13848
# Flag to hardcode \$libdir into a binary during linking.
13849
# This must work even if \$libdir does not exist.
13850
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13852
# If ld is used when linking, flag to hardcode \$libdir into
13853
# a binary during linking. This must work even if \$libdir does
13855
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13857
# Whether we need a single -rpath flag with a separated argument.
13858
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13860
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13861
# resulting binary.
13862
hardcode_direct=$hardcode_direct_CXX
13864
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13865
# resulting binary.
13866
hardcode_minus_L=$hardcode_minus_L_CXX
13868
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13869
# the resulting binary.
13870
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13872
# Set to yes if building a shared library automatically hardcodes DIR into the library
13873
# and all subsequent libraries and executables linked against it.
13874
hardcode_automatic=$hardcode_automatic_CXX
13876
# Variables whose values should be saved in libtool wrapper scripts and
13877
# restored at relink time.
13878
variables_saved_for_relink="$variables_saved_for_relink"
13880
# Whether libtool must link a program against all its dependency libraries.
13881
link_all_deplibs=$link_all_deplibs_CXX
13883
# Compile-time system search path for libraries
13884
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13886
# Run-time system search path for libraries
13887
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13889
# Fix the shell variable \$srcfile for the compiler.
13890
fix_srcfile_path=$lt_fix_srcfile_path
13892
# Set to yes if exported symbols are required.
13893
always_export_symbols=$always_export_symbols_CXX
13895
# The commands to list exported symbols.
13896
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13898
# The commands to extract the exported symbol list from a shared archive.
13899
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13901
# Symbols that should not be listed in the preloaded symbols.
13902
exclude_expsyms=$lt_exclude_expsyms_CXX
13904
# Symbols that must always be exported.
13905
include_expsyms=$lt_include_expsyms_CXX
13907
# ### END LIBTOOL TAG CONFIG: $tagname
13913
# If there is no Makefile yet, we rely on a make rule to execute
13914
# `config.status --recheck' to rerun these tests and create the
13915
# libtool script then.
13916
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13917
if test -f "$ltmain_in"; then
13918
test -f Makefile && make "$ltmain"
13924
ac_cpp='$CPP $CPPFLAGS'
13925
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13926
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13927
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13933
with_gnu_ldcxx=$with_gnu_ld
13934
with_gnu_ld=$lt_save_with_gnu_ld
13935
lt_cv_path_LDCXX=$lt_cv_path_LD
13936
lt_cv_path_LD=$lt_save_path_LD
13937
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13938
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13946
if test -n "$F77" && test "X$F77" != "Xno"; then
13949
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13950
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13951
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13954
archive_cmds_need_lc_F77=no
13955
allow_undefined_flag_F77=
13956
always_export_symbols_F77=no
13957
archive_expsym_cmds_F77=
13958
export_dynamic_flag_spec_F77=
13959
hardcode_direct_F77=no
13960
hardcode_libdir_flag_spec_F77=
13961
hardcode_libdir_flag_spec_ld_F77=
13962
hardcode_libdir_separator_F77=
13963
hardcode_minus_L_F77=no
13964
hardcode_automatic_F77=no
13966
module_expsym_cmds_F77=
13967
link_all_deplibs_F77=unknown
13968
old_archive_cmds_F77=$old_archive_cmds
13969
no_undefined_flag_F77=
13970
whole_archive_flag_spec_F77=
13971
enable_shared_with_static_runtimes_F77=no
13973
# Source file extension for f77 test sources.
13976
# Object file extension for compiled f77 test sources.
13980
# Code to be used in simple compile tests
13981
lt_simple_compile_test_code="\
13987
# Code to be used in simple link tests
13988
lt_simple_link_test_code="\
13993
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13995
# If no C compiler was specified, use CC.
13998
# If no C compiler flags were specified, use CFLAGS.
13999
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14001
# Allow CC to be a program name with arguments.
14005
# save warnings/boilerplate of simple test code
14006
ac_outfile=conftest.$ac_objext
14007
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14008
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14009
_lt_compiler_boilerplate=`cat conftest.err`
14012
ac_outfile=conftest.$ac_objext
14013
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14014
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14015
_lt_linker_boilerplate=`cat conftest.err`
14019
# Allow CC to be a program name with arguments.
14024
for cc_temp in $compiler""; do
14026
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14027
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14032
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14035
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14036
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14037
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14038
$as_echo "$can_build_shared" >&6; }
14040
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14041
$as_echo_n "checking whether to build shared libraries... " >&6; }
14042
test "$can_build_shared" = "no" && enable_shared=no
14044
# On AIX, shared libraries and static libraries use the same namespace, and
14045
# are all built from PIC.
14048
test "$enable_shared" = yes && enable_static=no
14049
if test -n "$RANLIB"; then
14050
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14051
postinstall_cmds='$RANLIB $lib'
14055
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14056
test "$enable_shared" = yes && enable_static=no
14060
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14061
$as_echo "$enable_shared" >&6; }
14063
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14064
$as_echo_n "checking whether to build static libraries... " >&6; }
14065
# Make sure either enable_shared or enable_static is yes.
14066
test "$enable_shared" = yes || enable_static=yes
14067
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14068
$as_echo "$enable_static" >&6; }
14073
lt_prog_compiler_wl_F77=
14074
lt_prog_compiler_pic_F77=
14075
lt_prog_compiler_static_F77=
14077
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14078
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14080
if test "$GCC" = yes; then
14081
lt_prog_compiler_wl_F77='-Wl,'
14082
lt_prog_compiler_static_F77='-static'
14086
# All AIX code is PIC.
14087
if test "$host_cpu" = ia64; then
14088
# AIX 5 now supports IA64 processor
14089
lt_prog_compiler_static_F77='-Bstatic'
14094
# FIXME: we need at least 68020 code to build shared libraries, but
14095
# adding the `-m68020' flag to GCC prevents building anything better,
14097
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14100
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14101
# PIC is the default for these OSes.
14104
mingw* | cygwin* | pw32* | os2*)
14105
# This hack is so that the source file can tell whether it is being
14106
# built for inclusion in a dll (and should export symbols for example).
14107
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14108
# (--disable-auto-import) libraries
14109
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14112
darwin* | rhapsody*)
14113
# PIC is the default on this platform
14114
# Common symbols not allowed in MH_DYLIB files
14115
lt_prog_compiler_pic_F77='-fno-common'
14119
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14120
# Instead, we relocate shared libraries at runtime.
14124
# Just because we use GCC doesn't mean we suddenly get shared libraries
14125
# on systems that don't support them.
14126
lt_prog_compiler_can_build_shared_F77=no
14131
if test -d /usr/nec; then
14132
lt_prog_compiler_pic_F77=-Kconform_pic
14137
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14138
# not for PA HP-UX.
14144
lt_prog_compiler_pic_F77='-fPIC'
14150
lt_prog_compiler_pic_F77='-fPIC'
14154
# PORTME Check for flag to pass linker flags through the system compiler.
14157
lt_prog_compiler_wl_F77='-Wl,'
14158
if test "$host_cpu" = ia64; then
14159
# AIX 5 now supports IA64 processor
14160
lt_prog_compiler_static_F77='-Bstatic'
14162
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14166
# PIC is the default on this platform
14167
# Common symbols not allowed in MH_DYLIB files
14168
case $cc_basename in
14170
lt_prog_compiler_pic_F77='-qnocommon'
14171
lt_prog_compiler_wl_F77='-Wl,'
14176
mingw* | cygwin* | pw32* | os2*)
14177
# This hack is so that the source file can tell whether it is being
14178
# built for inclusion in a dll (and should export symbols for example).
14179
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14182
hpux9* | hpux10* | hpux11*)
14183
lt_prog_compiler_wl_F77='-Wl,'
14184
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14185
# not for PA HP-UX.
14191
lt_prog_compiler_pic_F77='+Z'
14194
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14195
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14198
irix5* | irix6* | nonstopux*)
14199
lt_prog_compiler_wl_F77='-Wl,'
14200
# PIC (with -KPIC) is the default.
14201
lt_prog_compiler_static_F77='-non_shared'
14205
lt_prog_compiler_pic_F77='-KPIC'
14206
lt_prog_compiler_static_F77='-Bstatic'
14209
linux* | k*bsd*-gnu)
14210
case $cc_basename in
14212
lt_prog_compiler_wl_F77='-Wl,'
14213
lt_prog_compiler_pic_F77='-KPIC'
14214
lt_prog_compiler_static_F77='-static'
14216
pgcc* | pgf77* | pgf90* | pgf95*)
14217
# Portland Group compilers (*not* the Pentium gcc compiler,
14218
# which looks to be a dead project)
14219
lt_prog_compiler_wl_F77='-Wl,'
14220
lt_prog_compiler_pic_F77='-fpic'
14221
lt_prog_compiler_static_F77='-Bstatic'
14224
lt_prog_compiler_wl_F77='-Wl,'
14225
# All Alpha code is PIC.
14226
lt_prog_compiler_static_F77='-non_shared'
14229
case `$CC -V 2>&1 | sed 5q` in
14232
lt_prog_compiler_pic_F77='-KPIC'
14233
lt_prog_compiler_static_F77='-Bstatic'
14234
lt_prog_compiler_wl_F77='-Wl,'
14237
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14238
lt_prog_compiler_pic_F77='-KPIC'
14239
lt_prog_compiler_static_F77='-Bstatic'
14240
lt_prog_compiler_wl_F77=''
14247
osf3* | osf4* | osf5*)
14248
lt_prog_compiler_wl_F77='-Wl,'
14249
# All OSF/1 code is PIC.
14250
lt_prog_compiler_static_F77='-non_shared'
14254
lt_prog_compiler_static_F77='-non_shared'
14258
lt_prog_compiler_pic_F77='-KPIC'
14259
lt_prog_compiler_static_F77='-Bstatic'
14260
case $cc_basename in
14261
f77* | f90* | f95*)
14262
lt_prog_compiler_wl_F77='-Qoption ld ';;
14264
lt_prog_compiler_wl_F77='-Wl,';;
14269
lt_prog_compiler_wl_F77='-Qoption ld '
14270
lt_prog_compiler_pic_F77='-PIC'
14271
lt_prog_compiler_static_F77='-Bstatic'
14274
sysv4 | sysv4.2uw2* | sysv4.3*)
14275
lt_prog_compiler_wl_F77='-Wl,'
14276
lt_prog_compiler_pic_F77='-KPIC'
14277
lt_prog_compiler_static_F77='-Bstatic'
14281
if test -d /usr/nec ;then
14282
lt_prog_compiler_pic_F77='-Kconform_pic'
14283
lt_prog_compiler_static_F77='-Bstatic'
14287
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14288
lt_prog_compiler_wl_F77='-Wl,'
14289
lt_prog_compiler_pic_F77='-KPIC'
14290
lt_prog_compiler_static_F77='-Bstatic'
14294
lt_prog_compiler_wl_F77='-Wl,'
14295
lt_prog_compiler_can_build_shared_F77=no
14299
lt_prog_compiler_pic_F77='-pic'
14300
lt_prog_compiler_static_F77='-Bstatic'
14304
lt_prog_compiler_can_build_shared_F77=no
14309
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14310
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14313
# Check to make sure the PIC flag actually works.
14315
if test -n "$lt_prog_compiler_pic_F77"; then
14317
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14318
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14319
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14320
$as_echo_n "(cached) " >&6
14322
lt_cv_prog_compiler_pic_works_F77=no
14323
ac_outfile=conftest.$ac_objext
14324
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14325
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14326
# Insert the option either (1) after the last *FLAGS variable, or
14327
# (2) before a word containing "conftest.", or (3) at the end.
14328
# Note that $ac_compile itself does not contain backslashes and begins
14329
# with a dollar sign (not a hyphen), so the echo should work correctly.
14330
# The option is referenced via a variable to avoid confusing sed.
14331
lt_compile=`echo "$ac_compile" | $SED \
14332
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14333
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14334
-e 's:$: $lt_compiler_flag:'`
14335
(eval echo "\"\$as_me:14335: $lt_compile\"" >&5)
14336
(eval "$lt_compile" 2>conftest.err)
14338
cat conftest.err >&5
14339
echo "$as_me:14339: \$? = $ac_status" >&5
14340
if (exit $ac_status) && test -s "$ac_outfile"; then
14341
# The compiler can only warn and ignore the option if not recognized
14342
# So say no if there are warnings other than the usual output.
14343
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14344
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14345
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14346
lt_cv_prog_compiler_pic_works_F77=yes
14352
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14353
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14355
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14356
case $lt_prog_compiler_pic_F77 in
14358
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14361
lt_prog_compiler_pic_F77=
14362
lt_prog_compiler_can_build_shared_F77=no
14367
# For platforms which do not support PIC, -DPIC is meaningless:
14369
lt_prog_compiler_pic_F77=
14372
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14377
# Check to make sure the static flag actually works.
14379
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14380
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14381
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14382
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14383
$as_echo_n "(cached) " >&6
14385
lt_cv_prog_compiler_static_works_F77=no
14386
save_LDFLAGS="$LDFLAGS"
14387
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14388
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14389
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14390
# The linker can only warn and ignore the option if not recognized
14391
# So say no if there are warnings
14392
if test -s conftest.err; then
14393
# Append any errors to the config.log.
14394
cat conftest.err 1>&5
14395
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14396
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14397
if diff conftest.exp conftest.er2 >/dev/null; then
14398
lt_cv_prog_compiler_static_works_F77=yes
14401
lt_cv_prog_compiler_static_works_F77=yes
14405
LDFLAGS="$save_LDFLAGS"
14408
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14409
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14411
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14414
lt_prog_compiler_static_F77=
14418
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14419
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14420
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14421
$as_echo_n "(cached) " >&6
14423
lt_cv_prog_compiler_c_o_F77=no
14424
$rm -r conftest 2>/dev/null
14428
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14430
lt_compiler_flag="-o out/conftest2.$ac_objext"
14431
# Insert the option either (1) after the last *FLAGS variable, or
14432
# (2) before a word containing "conftest.", or (3) at the end.
14433
# Note that $ac_compile itself does not contain backslashes and begins
14434
# with a dollar sign (not a hyphen), so the echo should work correctly.
14435
lt_compile=`echo "$ac_compile" | $SED \
14436
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14437
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14438
-e 's:$: $lt_compiler_flag:'`
14439
(eval echo "\"\$as_me:14439: $lt_compile\"" >&5)
14440
(eval "$lt_compile" 2>out/conftest.err)
14442
cat out/conftest.err >&5
14443
echo "$as_me:14443: \$? = $ac_status" >&5
14444
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14446
# The compiler can only warn and ignore the option if not recognized
14447
# So say no if there are warnings
14448
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14449
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14450
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14451
lt_cv_prog_compiler_c_o_F77=yes
14456
# SGI C++ compiler will create directory out/ii_files/ for
14457
# template instantiation
14458
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14459
$rm out/* && rmdir out
14465
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14466
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14469
hard_links="nottested"
14470
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14471
# do not overwrite the value of need_locks provided by the user
14472
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14473
$as_echo_n "checking if we can lock with hard links... " >&6; }
14476
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14478
ln conftest.a conftest.b 2>&5 || hard_links=no
14479
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14480
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14481
$as_echo "$hard_links" >&6; }
14482
if test "$hard_links" = no; then
14483
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14484
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14491
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14492
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14495
allow_undefined_flag_F77=
14496
enable_shared_with_static_runtimes_F77=no
14498
archive_expsym_cmds_F77=
14499
old_archive_From_new_cmds_F77=
14500
old_archive_from_expsyms_cmds_F77=
14501
export_dynamic_flag_spec_F77=
14502
whole_archive_flag_spec_F77=
14503
thread_safe_flag_spec_F77=
14504
hardcode_libdir_flag_spec_F77=
14505
hardcode_libdir_flag_spec_ld_F77=
14506
hardcode_libdir_separator_F77=
14507
hardcode_direct_F77=no
14508
hardcode_minus_L_F77=no
14509
hardcode_shlibpath_var_F77=unsupported
14510
link_all_deplibs_F77=unknown
14511
hardcode_automatic_F77=no
14513
module_expsym_cmds_F77=
14514
always_export_symbols_F77=no
14515
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14516
# include_expsyms should be a list of space-separated symbols to be *always*
14517
# included in the symbol list
14518
include_expsyms_F77=
14519
# exclude_expsyms can be an extended regexp of symbols to exclude
14520
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14521
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14522
# as well as any symbol that contains `d'.
14523
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14524
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14525
# platforms (ab)use it in PIC code, but their linkers get confused if
14526
# the symbol is explicitly referenced. Since portable code cannot
14527
# rely on this symbol name, it's probably fine to never include it in
14528
# preloaded symbol tables.
14529
# Exclude shared library initialization/finalization symbols.
14530
extract_expsyms_cmds=
14531
# Just being paranoid about ensuring that cc_basename is set.
14532
for cc_temp in $compiler""; do
14534
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14535
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14540
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14543
cygwin* | mingw* | pw32*)
14544
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14545
# When not using gcc, we currently assume that we are using
14546
# Microsoft Visual C++.
14547
if test "$GCC" != yes; then
14552
# we just hope/assume this is gcc and not c89 (= MSVC++)
14561
if test "$with_gnu_ld" = yes; then
14562
# If archive_cmds runs LD, not CC, wlarc should be empty
14565
# Set some defaults for GNU ld with shared library support. These
14566
# are reset later if shared libraries are not supported. Putting them
14567
# here allows them to be overridden if necessary.
14568
runpath_var=LD_RUN_PATH
14569
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14570
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14571
# ancient GNU ld didn't support --whole-archive et. al.
14572
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14573
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14575
whole_archive_flag_spec_F77=
14577
supports_anon_versioning=no
14578
case `$LD -v 2>/dev/null` in
14579
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14580
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14581
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14582
*\ 2.11.*) ;; # other 2.11 versions
14583
*) supports_anon_versioning=yes ;;
14586
# See if GNU ld supports shared libraries.
14589
# On AIX/PPC, the GNU linker is very broken
14590
if test "$host_cpu" != ia64; then
14594
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14595
*** to be unable to reliably create shared libraries on AIX.
14596
*** Therefore, libtool is disabling shared libraries support. If you
14597
*** really care for shared libraries, you may want to modify your PATH
14598
*** so that a non-GNU linker is found, and then restart.
14605
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)'
14606
hardcode_libdir_flag_spec_F77='-L$libdir'
14607
hardcode_minus_L_F77=yes
14609
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14610
# that the semantics of dynamic libraries on AmigaOS, at least up
14611
# to version 4, is to share data among multiple programs linked
14612
# with the same dynamic library. Since this doesn't match the
14613
# behavior of shared libraries on other platforms, we can't use
14619
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14620
allow_undefined_flag_F77=unsupported
14621
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14622
# support --undefined. This deserves some investigation. FIXME
14623
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14629
cygwin* | mingw* | pw32*)
14630
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14631
# as there is no search path for DLLs.
14632
hardcode_libdir_flag_spec_F77='-L$libdir'
14633
allow_undefined_flag_F77=unsupported
14634
always_export_symbols_F77=no
14635
enable_shared_with_static_runtimes_F77=yes
14636
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14638
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14639
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14640
# If the export-symbols file already is a .def file (1st line
14641
# is EXPORTS), use it as is; otherwise, prepend...
14642
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14643
cp $export_symbols $output_objdir/$soname.def;
14645
echo EXPORTS > $output_objdir/$soname.def;
14646
cat $export_symbols >> $output_objdir/$soname.def;
14648
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14655
hardcode_direct_F77=no
14656
hardcode_shlibpath_var_F77=no
14657
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14658
export_dynamic_flag_spec_F77='${wl}-E'
14659
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14660
# Instead, shared libraries are loaded at an image base (0x10000000 by
14661
# default) and relocated if they conflict, which is a slow very memory
14662
# consuming and fragmenting process. To avoid this, we pick a random,
14663
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14664
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14665
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14666
archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14669
gnu* | linux* | k*bsd*-gnu)
14670
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14672
case $cc_basename,$host_cpu in
14673
pgcc*) # Portland Group C compiler
14674
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14675
tmp_addflag=' $pic_flag'
14677
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14678
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14679
tmp_addflag=' $pic_flag -Mnomain' ;;
14680
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14681
tmp_addflag=' -i_dynamic' ;;
14682
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14683
tmp_addflag=' -i_dynamic -nofor_main' ;;
14684
ifc* | ifort*) # Intel Fortran compiler
14685
tmp_addflag=' -nofor_main' ;;
14687
case `$CC -V 2>&1 | sed 5q` in
14688
*Sun\ C*) # Sun C 5.9
14689
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14690
tmp_sharedflag='-G' ;;
14691
*Sun\ F*) # Sun Fortran 8.3
14692
tmp_sharedflag='-G' ;;
14694
tmp_sharedflag='-shared' ;;
14696
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14698
if test $supports_anon_versioning = yes; then
14699
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14700
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14701
$echo "local: *; };" >> $output_objdir/$libname.ver~
14702
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14710
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14711
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14714
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14715
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14720
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14724
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14725
*** create shared libraries on Solaris systems. Therefore, libtool
14726
*** is disabling shared libraries support. We urge you to upgrade GNU
14727
*** binutils to release 2.9.1 or newer. Another option is to modify
14728
*** your PATH or compiler configuration so that the native linker is
14729
*** used, and then restart.
14732
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14733
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14734
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14740
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14741
case `$LD -v 2>&1` in
14742
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14746
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14747
*** reliably create shared libraries on SCO systems. Therefore, libtool
14748
*** is disabling shared libraries support. We urge you to upgrade GNU
14749
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14750
*** your PATH or compiler configuration so that the native linker is
14751
*** used, and then restart.
14756
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14757
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14758
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14759
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14768
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14770
hardcode_direct_F77=yes
14771
hardcode_shlibpath_var_F77=no
14775
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14776
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14777
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14784
if test "$ld_shlibs_F77" = no; then
14786
hardcode_libdir_flag_spec_F77=
14787
export_dynamic_flag_spec_F77=
14788
whole_archive_flag_spec_F77=
14791
# PORTME fill in a description of your system's linker (not GNU ld)
14794
allow_undefined_flag_F77=unsupported
14795
always_export_symbols_F77=yes
14796
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'
14797
# Note: this linker hardcodes the directories in LIBPATH if there
14798
# are no directories specified by -L.
14799
hardcode_minus_L_F77=yes
14800
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14801
# Neither direct hardcoding nor static linking is supported with a
14803
hardcode_direct_F77=unsupported
14808
if test "$host_cpu" = ia64; then
14809
# On IA64, the linker does run time linking by default, so we don't
14810
# have to do anything special.
14811
aix_use_runtimelinking=no
14812
exp_sym_flag='-Bexport'
14815
# If we're using GNU nm, then we don't want the "-C" option.
14816
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14817
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14818
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'
14820
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'
14822
aix_use_runtimelinking=no
14824
# Test if we are trying to use run time linking or normal
14825
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14826
# need to do runtime linking.
14827
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14828
for ld_flag in $LDFLAGS; do
14829
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14830
aix_use_runtimelinking=yes
14837
exp_sym_flag='-bexport'
14838
no_entry_flag='-bnoentry'
14841
# When large executables or shared objects are built, AIX ld can
14842
# have problems creating the table of contents. If linking a library
14843
# or program results in "error TOC overflow" add -mminimal-toc to
14844
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14845
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14847
archive_cmds_F77=''
14848
hardcode_direct_F77=yes
14849
hardcode_libdir_separator_F77=':'
14850
link_all_deplibs_F77=yes
14852
if test "$GCC" = yes; then
14853
case $host_os in aix4.[012]|aix4.[012].*)
14854
# We only want to do this on AIX 4.2 and lower, the check
14855
# below for broken collect2 doesn't work under 4.3+
14856
collect2name=`${CC} -print-prog-name=collect2`
14857
if test -f "$collect2name" && \
14858
strings "$collect2name" | grep resolve_lib_name >/dev/null
14860
# We have reworked collect2
14863
# We have old collect2
14864
hardcode_direct_F77=unsupported
14865
# It fails to find uninstalled libraries when the uninstalled
14866
# path is not listed in the libpath. Setting hardcode_minus_L
14867
# to unsupported forces relinking
14868
hardcode_minus_L_F77=yes
14869
hardcode_libdir_flag_spec_F77='-L$libdir'
14870
hardcode_libdir_separator_F77=
14874
shared_flag='-shared'
14875
if test "$aix_use_runtimelinking" = yes; then
14876
shared_flag="$shared_flag "'${wl}-G'
14880
if test "$host_cpu" = ia64; then
14881
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14882
# chokes on -Wl,-G. The following line is correct:
14885
if test "$aix_use_runtimelinking" = yes; then
14886
shared_flag='${wl}-G'
14888
shared_flag='${wl}-bM:SRE'
14893
# It seems that -bexpall does not export symbols beginning with
14894
# underscore (_), so it is better to generate a list of symbols to export.
14895
always_export_symbols_F77=yes
14896
if test "$aix_use_runtimelinking" = yes; then
14897
# Warning - without using the other runtime loading flags (-brtl),
14898
# -berok will link without error, but may produce a broken library.
14899
allow_undefined_flag_F77='-berok'
14900
# Determine the default libpath from the value encoded in an empty executable.
14901
cat >conftest.$ac_ext <<_ACEOF
14906
rm -f conftest.$ac_objext conftest$ac_exeext
14907
if { (ac_try="$ac_link"
14908
case "(($ac_try" in
14909
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910
*) ac_try_echo=$ac_try;;
14912
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14913
$as_echo "$ac_try_echo") >&5
14914
(eval "$ac_link") 2>conftest.er1
14916
grep -v '^ *+' conftest.er1 >conftest.err
14918
cat conftest.err >&5
14919
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920
(exit $ac_status); } && {
14921
test -z "$ac_f77_werror_flag" ||
14922
test ! -s conftest.err
14923
} && test -s conftest$ac_exeext && {
14924
test "$cross_compiling" = yes ||
14925
$as_test_x conftest$ac_exeext
14928
lt_aix_libpath_sed='
14929
/Import File Strings/,/^$/ {
14935
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14936
# Check for a 64-bit object if we didn't find anything.
14937
if test -z "$aix_libpath"; then
14938
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14941
$as_echo "$as_me: failed program was:" >&5
14942
sed 's/^/| /' conftest.$ac_ext >&5
14947
rm -rf conftest.dSYM
14948
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14949
conftest$ac_exeext conftest.$ac_ext
14950
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14952
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14953
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14955
if test "$host_cpu" = ia64; then
14956
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14957
allow_undefined_flag_F77="-z nodefs"
14958
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14960
# Determine the default libpath from the value encoded in an empty executable.
14961
cat >conftest.$ac_ext <<_ACEOF
14966
rm -f conftest.$ac_objext conftest$ac_exeext
14967
if { (ac_try="$ac_link"
14968
case "(($ac_try" in
14969
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970
*) ac_try_echo=$ac_try;;
14972
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14973
$as_echo "$ac_try_echo") >&5
14974
(eval "$ac_link") 2>conftest.er1
14976
grep -v '^ *+' conftest.er1 >conftest.err
14978
cat conftest.err >&5
14979
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980
(exit $ac_status); } && {
14981
test -z "$ac_f77_werror_flag" ||
14982
test ! -s conftest.err
14983
} && test -s conftest$ac_exeext && {
14984
test "$cross_compiling" = yes ||
14985
$as_test_x conftest$ac_exeext
14988
lt_aix_libpath_sed='
14989
/Import File Strings/,/^$/ {
14995
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14996
# Check for a 64-bit object if we didn't find anything.
14997
if test -z "$aix_libpath"; then
14998
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15001
$as_echo "$as_me: failed program was:" >&5
15002
sed 's/^/| /' conftest.$ac_ext >&5
15007
rm -rf conftest.dSYM
15008
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15009
conftest$ac_exeext conftest.$ac_ext
15010
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15012
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15013
# Warning - without using the other run time loading flags,
15014
# -berok will link without error, but may produce a broken library.
15015
no_undefined_flag_F77=' ${wl}-bernotok'
15016
allow_undefined_flag_F77=' ${wl}-berok'
15017
# Exported symbols can be pulled into shared objects from archives
15018
whole_archive_flag_spec_F77='$convenience'
15019
archive_cmds_need_lc_F77=yes
15020
# This is similar to how AIX traditionally builds its shared libraries.
15021
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15027
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)'
15028
hardcode_libdir_flag_spec_F77='-L$libdir'
15029
hardcode_minus_L_F77=yes
15030
# see comment about different semantics on the GNU ld section
15035
export_dynamic_flag_spec_F77=-rdynamic
15038
cygwin* | mingw* | pw32*)
15039
# When not using gcc, we currently assume that we are using
15040
# Microsoft Visual C++.
15041
# hardcode_libdir_flag_spec is actually meaningless, as there is
15042
# no search path for DLLs.
15043
hardcode_libdir_flag_spec_F77=' '
15044
allow_undefined_flag_F77=unsupported
15045
# Tell ltmain to make .lib files, not .a files.
15047
# Tell ltmain to make .dll files, not .so files.
15049
# FIXME: Setting linknames here is a bad hack.
15050
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15051
# The linker will automatically build a .lib file if we build a DLL.
15052
old_archive_From_new_cmds_F77='true'
15053
# FIXME: Should let the user specify the lib program.
15054
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15055
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15056
enable_shared_with_static_runtimes_F77=yes
15059
darwin* | rhapsody*)
15061
rhapsody* | darwin1.[012])
15062
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15065
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15066
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15068
case ${MACOSX_DEPLOYMENT_TARGET} in
15070
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15073
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15079
archive_cmds_need_lc_F77=no
15080
hardcode_direct_F77=no
15081
hardcode_automatic_F77=yes
15082
hardcode_shlibpath_var_F77=unsupported
15083
whole_archive_flag_spec_F77=''
15084
link_all_deplibs_F77=yes
15085
if test "$GCC" = yes ; then
15086
output_verbose_link_cmd='echo'
15087
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15088
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15089
archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15090
module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15092
case $cc_basename in
15094
output_verbose_link_cmd='echo'
15095
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15096
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15097
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15098
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15099
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}'
15109
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15110
hardcode_libdir_flag_spec_F77='-L$libdir'
15111
hardcode_shlibpath_var_F77=no
15118
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15119
# support. Future versions do this automatically, but an explicit c++rt0.o
15120
# does not break anything, and helps significantly (at the cost of a little
15123
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15124
hardcode_libdir_flag_spec_F77='-R$libdir'
15125
hardcode_direct_F77=yes
15126
hardcode_shlibpath_var_F77=no
15129
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15131
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15132
hardcode_direct_F77=yes
15133
hardcode_minus_L_F77=yes
15134
hardcode_shlibpath_var_F77=no
15137
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15138
freebsd* | dragonfly*)
15139
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15140
hardcode_libdir_flag_spec_F77='-R$libdir'
15141
hardcode_direct_F77=yes
15142
hardcode_shlibpath_var_F77=no
15146
if test "$GCC" = yes; then
15147
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'
15149
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'
15151
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15152
hardcode_libdir_separator_F77=:
15153
hardcode_direct_F77=yes
15155
# hardcode_minus_L: Not really in the search PATH,
15156
# but as the default location of the library.
15157
hardcode_minus_L_F77=yes
15158
export_dynamic_flag_spec_F77='${wl}-E'
15162
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15163
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15165
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15167
if test "$with_gnu_ld" = no; then
15168
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15169
hardcode_libdir_separator_F77=:
15171
hardcode_direct_F77=yes
15172
export_dynamic_flag_spec_F77='${wl}-E'
15174
# hardcode_minus_L: Not really in the search PATH,
15175
# but as the default location of the library.
15176
hardcode_minus_L_F77=yes
15181
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15184
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15187
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15190
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15196
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15199
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15202
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15206
if test "$with_gnu_ld" = no; then
15207
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15208
hardcode_libdir_separator_F77=:
15212
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15213
hardcode_direct_F77=no
15214
hardcode_shlibpath_var_F77=no
15217
hardcode_direct_F77=yes
15218
export_dynamic_flag_spec_F77='${wl}-E'
15220
# hardcode_minus_L: Not really in the search PATH,
15221
# but as the default location of the library.
15222
hardcode_minus_L_F77=yes
15228
irix5* | irix6* | nonstopux*)
15229
if test "$GCC" = yes; then
15230
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'
15232
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'
15233
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15235
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15236
hardcode_libdir_separator_F77=:
15237
link_all_deplibs_F77=yes
15241
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15242
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15244
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15246
hardcode_libdir_flag_spec_F77='-R$libdir'
15247
hardcode_direct_F77=yes
15248
hardcode_shlibpath_var_F77=no
15252
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15253
hardcode_direct_F77=yes
15254
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15255
hardcode_libdir_separator_F77=:
15256
hardcode_shlibpath_var_F77=no
15260
if test -f /usr/libexec/ld.so; then
15261
hardcode_direct_F77=yes
15262
hardcode_shlibpath_var_F77=no
15263
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15264
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15265
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15266
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15267
export_dynamic_flag_spec_F77='${wl}-E'
15270
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15271
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15272
hardcode_libdir_flag_spec_F77='-R$libdir'
15275
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15276
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15286
hardcode_libdir_flag_spec_F77='-L$libdir'
15287
hardcode_minus_L_F77=yes
15288
allow_undefined_flag_F77=unsupported
15289
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'
15290
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15294
if test "$GCC" = yes; then
15295
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15296
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'
15298
allow_undefined_flag_F77=' -expect_unresolved \*'
15299
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'
15301
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15302
hardcode_libdir_separator_F77=:
15305
osf4* | osf5*) # as osf3* with the addition of -msym flag
15306
if test "$GCC" = yes; then
15307
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15308
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'
15309
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15311
allow_undefined_flag_F77=' -expect_unresolved \*'
15312
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'
15313
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~
15314
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15316
# Both c and cxx compiler support -rpath directly
15317
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15319
hardcode_libdir_separator_F77=:
15323
no_undefined_flag_F77=' -z text'
15324
if test "$GCC" = yes; then
15326
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15327
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15328
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15331
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15332
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15333
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15335
hardcode_libdir_flag_spec_F77='-R$libdir'
15336
hardcode_shlibpath_var_F77=no
15338
solaris2.[0-5] | solaris2.[0-5].*) ;;
15340
# The compiler driver will combine and reorder linker options,
15341
# but understands `-z linker_flag'. GCC discards it without `$wl',
15342
# but is careful enough not to reorder.
15343
# Supported since Solaris 2.6 (maybe 2.5.1?)
15344
if test "$GCC" = yes; then
15345
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15347
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15351
link_all_deplibs_F77=yes
15355
if test "x$host_vendor" = xsequent; then
15356
# Use $CC to link under sequent, because it throws in some extra .o
15357
# files that make .init and .fini sections work.
15358
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15360
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15362
hardcode_libdir_flag_spec_F77='-L$libdir'
15363
hardcode_direct_F77=yes
15364
hardcode_minus_L_F77=yes
15365
hardcode_shlibpath_var_F77=no
15369
case $host_vendor in
15371
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15372
hardcode_direct_F77=yes # is this really true???
15375
## LD is ld it makes a PLAMLIB
15376
## CC just makes a GrossModule.
15377
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15378
reload_cmds_F77='$CC -r -o $output$reload_objs'
15379
hardcode_direct_F77=no
15382
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15383
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15386
runpath_var='LD_RUN_PATH'
15387
hardcode_shlibpath_var_F77=no
15391
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15392
hardcode_shlibpath_var_F77=no
15393
export_dynamic_flag_spec_F77='-Bexport'
15397
if test -d /usr/nec; then
15398
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15399
hardcode_shlibpath_var_F77=no
15400
runpath_var=LD_RUN_PATH
15401
hardcode_runpath_var=yes
15406
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15407
no_undefined_flag_F77='${wl}-z,text'
15408
archive_cmds_need_lc_F77=no
15409
hardcode_shlibpath_var_F77=no
15410
runpath_var='LD_RUN_PATH'
15412
if test "$GCC" = yes; then
15413
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15414
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15416
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15417
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15421
sysv5* | sco3.2v5* | sco5v6*)
15422
# Note: We can NOT use -z defs as we might desire, because we do not
15423
# link with -lc, and that would cause any symbols used from libc to
15424
# always be unresolved, which means just about no library would
15425
# ever link correctly. If we're not using GNU ld we use -z text
15426
# though, which does catch some bad symbols but isn't as heavy-handed
15428
no_undefined_flag_F77='${wl}-z,text'
15429
allow_undefined_flag_F77='${wl}-z,nodefs'
15430
archive_cmds_need_lc_F77=no
15431
hardcode_shlibpath_var_F77=no
15432
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15433
hardcode_libdir_separator_F77=':'
15434
link_all_deplibs_F77=yes
15435
export_dynamic_flag_spec_F77='${wl}-Bexport'
15436
runpath_var='LD_RUN_PATH'
15438
if test "$GCC" = yes; then
15439
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15440
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15442
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15443
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15448
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15449
hardcode_libdir_flag_spec_F77='-L$libdir'
15450
hardcode_shlibpath_var_F77=no
15459
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15460
$as_echo "$ld_shlibs_F77" >&6; }
15461
test "$ld_shlibs_F77" = no && can_build_shared=no
15464
# Do we need to explicitly link libc?
15466
case "x$archive_cmds_need_lc_F77" in
15468
# Assume -lc should be added
15469
archive_cmds_need_lc_F77=yes
15471
if test "$enable_shared" = yes && test "$GCC" = yes; then
15472
case $archive_cmds_F77 in
15474
# FIXME: we may have to deal with multi-command sequences.
15477
# Test whether the compiler implicitly links with -lc since on some
15478
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15479
# to ld, don't add -lc before -lgcc.
15480
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15481
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15483
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15485
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15486
(eval $ac_compile) 2>&5
15488
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489
(exit $ac_status); } 2>conftest.err; then
15492
libobjs=conftest.$ac_objext
15494
wl=$lt_prog_compiler_wl_F77
15495
pic_flag=$lt_prog_compiler_pic_F77
15501
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15502
allow_undefined_flag_F77=
15503
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15504
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15506
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507
(exit $ac_status); }
15509
archive_cmds_need_lc_F77=no
15511
archive_cmds_need_lc_F77=yes
15513
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15515
cat conftest.err 1>&5
15518
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15519
$as_echo "$archive_cmds_need_lc_F77" >&6; }
15526
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15527
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15528
library_names_spec=
15529
libname_spec='lib$name'
15533
postuninstall_cmds=
15537
shlibpath_overrides_runpath=unknown
15539
dynamic_linker="$host_os ld.so"
15540
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15542
need_lib_prefix=unknown
15543
hardcode_into_libs=no
15545
# when you set need_version to no, make sure it does not cause -set_version
15546
# flags to be left without arguments
15547
need_version=unknown
15552
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15553
shlibpath_var=LIBPATH
15555
# AIX 3 has no versioning support, so we append a major version to the name.
15556
soname_spec='${libname}${release}${shared_ext}$major'
15563
hardcode_into_libs=yes
15564
if test "$host_cpu" = ia64; then
15565
# AIX 5 supports IA64
15566
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15567
shlibpath_var=LD_LIBRARY_PATH
15569
# With GCC up to 2.95.x, collect2 would create an import file
15570
# for dependence libraries. The import file would start with
15571
# the line `#! .'. This would cause the generated library to
15572
# depend on `.', always an invalid library. This was fixed in
15573
# development snapshots of GCC prior to 3.0.
15575
aix4 | aix4.[01] | aix4.[01].*)
15576
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15578
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15581
can_build_shared=no
15585
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15586
# soname into executable. Probably we can add versioning support to
15587
# collect2, so additional links can be useful in future.
15588
if test "$aix_use_runtimelinking" = yes; then
15589
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15590
# instead of lib<name>.a to let people know that these are not
15591
# typical AIX shared libraries.
15592
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594
# We preserve .a as extension for shared libraries through AIX4.2
15595
# and later when we are not doing run time linking.
15596
library_names_spec='${libname}${release}.a $libname.a'
15597
soname_spec='${libname}${release}${shared_ext}$major'
15599
shlibpath_var=LIBPATH
15604
library_names_spec='$libname.ixlibrary $libname.a'
15605
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15606
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'
15610
library_names_spec='${libname}${shared_ext}'
15611
dynamic_linker="$host_os ld.so"
15612
shlibpath_var=LIBRARY_PATH
15618
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15619
soname_spec='${libname}${release}${shared_ext}$major'
15620
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15621
shlibpath_var=LD_LIBRARY_PATH
15622
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15623
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15624
# the default ld.so.conf also contains /usr/contrib/lib and
15625
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15626
# libtool to hard-code these into programs
15629
cygwin* | mingw* | pw32*)
15630
version_type=windows
15635
case $GCC,$host_os in
15636
yes,cygwin* | yes,mingw* | yes,pw32*)
15637
library_names_spec='$libname.dll.a'
15638
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15639
postinstall_cmds='base_file=`basename \${file}`~
15640
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15641
dldir=$destdir/`dirname \$dlpath`~
15642
test -d \$dldir || mkdir -p \$dldir~
15643
$install_prog $dir/$dlname \$dldir/$dlname~
15644
chmod a+x \$dldir/$dlname'
15645
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15646
dlpath=$dir/\$dldll~
15648
shlibpath_overrides_runpath=yes
15652
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15653
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15654
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15657
# MinGW DLLs use traditional 'lib' prefix
15658
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15659
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15660
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15661
# It is most probably a Windows format PATH printed by
15662
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15663
# path with ; separators, and with drive letters. We can handle the
15664
# drive letters (cygwin fileutils understands them), so leave them,
15665
# especially as we might pass files found there to a mingw objdump,
15666
# which wouldn't understand a cygwinified path. Ahh.
15667
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15669
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15673
# pw32 DLLs use 'pw' prefix rather than 'lib'
15674
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15680
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15683
dynamic_linker='Win32 ld.exe'
15684
# FIXME: first we should search . and the directory the executable is in
15688
darwin* | rhapsody*)
15689
dynamic_linker="$host_os dyld"
15690
version_type=darwin
15693
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15694
soname_spec='${libname}${release}${major}$shared_ext'
15695
shlibpath_overrides_runpath=yes
15696
shlibpath_var=DYLD_LIBRARY_PATH
15697
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15699
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15706
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15707
soname_spec='${libname}${release}${shared_ext}$major'
15708
shlibpath_var=LD_LIBRARY_PATH
15715
freebsd* | dragonfly*)
15716
# DragonFly does not have aout. When/if they implement a new
15717
# versioning mechanism, adjust this.
15718
if test -x /usr/bin/objformat; then
15719
objformat=`/usr/bin/objformat`
15722
freebsd[123]*) objformat=aout ;;
15723
*) objformat=elf ;;
15726
version_type=freebsd-$objformat
15727
case $version_type in
15729
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15734
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15738
shlibpath_var=LD_LIBRARY_PATH
15741
shlibpath_overrides_runpath=yes
15743
freebsd3.[01]* | freebsdelf3.[01]*)
15744
shlibpath_overrides_runpath=yes
15745
hardcode_into_libs=yes
15747
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15748
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15749
shlibpath_overrides_runpath=no
15750
hardcode_into_libs=yes
15752
*) # from 4.6 on, and DragonFly
15753
shlibpath_overrides_runpath=yes
15754
hardcode_into_libs=yes
15763
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15764
soname_spec='${libname}${release}${shared_ext}$major'
15765
shlibpath_var=LD_LIBRARY_PATH
15766
hardcode_into_libs=yes
15769
hpux9* | hpux10* | hpux11*)
15770
# Give a soname corresponding to the major version so that dld.sl refuses to
15771
# link against other versions.
15778
hardcode_into_libs=yes
15779
dynamic_linker="$host_os dld.so"
15780
shlibpath_var=LD_LIBRARY_PATH
15781
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15782
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15783
soname_spec='${libname}${release}${shared_ext}$major'
15784
if test "X$HPUX_IA64_MODE" = X32; then
15785
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15787
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15789
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15793
hardcode_into_libs=yes
15794
dynamic_linker="$host_os dld.sl"
15795
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15796
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15797
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15798
soname_spec='${libname}${release}${shared_ext}$major'
15799
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15800
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15804
dynamic_linker="$host_os dld.sl"
15805
shlibpath_var=SHLIB_PATH
15806
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15807
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15808
soname_spec='${libname}${release}${shared_ext}$major'
15811
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15812
postinstall_cmds='chmod 555 $lib'
15819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15820
soname_spec='${libname}${release}${shared_ext}$major'
15821
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15822
shlibpath_var=LD_LIBRARY_PATH
15823
shlibpath_overrides_runpath=no
15824
hardcode_into_libs=yes
15827
irix5* | irix6* | nonstopux*)
15829
nonstopux*) version_type=nonstopux ;;
15831
if test "$lt_cv_prog_gnu_ld" = yes; then
15839
soname_spec='${libname}${release}${shared_ext}$major'
15840
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15842
irix5* | nonstopux*)
15843
libsuff= shlibsuff=
15846
case $LD in # libtool.m4 will add one of these switches to LD
15847
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15848
libsuff= shlibsuff= libmagic=32-bit;;
15849
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15850
libsuff=32 shlibsuff=N32 libmagic=N32;;
15851
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15852
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15853
*) libsuff= shlibsuff= libmagic=never-match;;
15857
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15858
shlibpath_overrides_runpath=no
15859
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15860
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15861
hardcode_into_libs=yes
15864
# No shared lib support for Linux oldld, aout, or coff.
15865
linux*oldld* | linux*aout* | linux*coff*)
15869
# This must be Linux ELF.
15870
linux* | k*bsd*-gnu)
15874
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15875
soname_spec='${libname}${release}${shared_ext}$major'
15876
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15877
shlibpath_var=LD_LIBRARY_PATH
15878
shlibpath_overrides_runpath=no
15879
# This implies no fast_install, which is unacceptable.
15880
# Some rework will be needed to allow for fast_install
15881
# before this can be enabled.
15882
hardcode_into_libs=yes
15884
# Append ld.so.conf contents to the search path
15885
if test -f /etc/ld.so.conf; then
15886
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15887
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15890
# We used to test for /lib/ld.so.1 and disable shared libraries on
15891
# powerpc, because MkLinux only supported shared libraries with the
15892
# GNU dynamic linker. Since this was broken with cross compilers,
15893
# most powerpc-linux boxes support dynamic linking these days and
15894
# people can always --disable-shared, the test was removed, and we
15895
# assume the GNU/Linux dynamic linker is in use.
15896
dynamic_linker='GNU/Linux ld.so'
15903
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15904
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15905
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15906
dynamic_linker='NetBSD (a.out) ld.so'
15908
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15909
soname_spec='${libname}${release}${shared_ext}$major'
15910
dynamic_linker='NetBSD ld.elf_so'
15912
shlibpath_var=LD_LIBRARY_PATH
15913
shlibpath_overrides_runpath=yes
15914
hardcode_into_libs=yes
15919
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15920
shlibpath_var=LD_LIBRARY_PATH
15921
shlibpath_overrides_runpath=yes
15928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929
soname_spec='${libname}${release}${shared_ext}$major'
15930
shlibpath_var=LD_LIBRARY_PATH
15931
shlibpath_overrides_runpath=yes
15936
sys_lib_dlsearch_path_spec="/usr/lib"
15938
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15940
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15941
*) need_version=no ;;
15943
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15944
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15945
shlibpath_var=LD_LIBRARY_PATH
15946
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15948
openbsd2.[89] | openbsd2.[89].*)
15949
shlibpath_overrides_runpath=no
15952
shlibpath_overrides_runpath=yes
15956
shlibpath_overrides_runpath=yes
15961
libname_spec='$name'
15964
library_names_spec='$libname${shared_ext} $libname.a'
15965
dynamic_linker='OS/2 ld.exe'
15966
shlibpath_var=LIBPATH
15969
osf3* | osf4* | osf5*)
15973
soname_spec='${libname}${release}${shared_ext}$major'
15974
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15975
shlibpath_var=LD_LIBRARY_PATH
15976
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15977
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15988
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15989
soname_spec='${libname}${release}${shared_ext}$major'
15990
shlibpath_var=LD_LIBRARY_PATH
15991
shlibpath_overrides_runpath=yes
15992
hardcode_into_libs=yes
15993
# ldd complains unless libraries are executable
15994
postinstall_cmds='chmod +x $lib'
15999
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16000
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16001
shlibpath_var=LD_LIBRARY_PATH
16002
shlibpath_overrides_runpath=yes
16003
if test "$with_gnu_ld" = yes; then
16011
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16012
soname_spec='${libname}${release}${shared_ext}$major'
16013
shlibpath_var=LD_LIBRARY_PATH
16014
case $host_vendor in
16016
shlibpath_overrides_runpath=no
16018
export_dynamic_flag_spec='${wl}-Blargedynsym'
16019
runpath_var=LD_RUN_PATH
16027
shlibpath_overrides_runpath=no
16028
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16034
if test -d /usr/nec ;then
16036
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16037
soname_spec='$libname${shared_ext}.$major'
16038
shlibpath_var=LD_LIBRARY_PATH
16042
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16043
version_type=freebsd-elf
16046
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16047
soname_spec='${libname}${release}${shared_ext}$major'
16048
shlibpath_var=LD_LIBRARY_PATH
16049
hardcode_into_libs=yes
16050
if test "$with_gnu_ld" = yes; then
16051
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16052
shlibpath_overrides_runpath=no
16054
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16055
shlibpath_overrides_runpath=yes
16058
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16062
sys_lib_dlsearch_path_spec='/usr/lib'
16067
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16068
soname_spec='${libname}${release}${shared_ext}$major'
16069
shlibpath_var=LD_LIBRARY_PATH
16076
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16077
$as_echo "$dynamic_linker" >&6; }
16078
test "$dynamic_linker" = no && can_build_shared=no
16080
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16081
$as_echo_n "(cached) " >&6
16083
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16086
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16087
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16088
$as_echo_n "(cached) " >&6
16090
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16093
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16095
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16096
if test "$GCC" = yes; then
16097
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16100
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16101
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16102
hardcode_action_F77=
16103
if test -n "$hardcode_libdir_flag_spec_F77" || \
16104
test -n "$runpath_var_F77" || \
16105
test "X$hardcode_automatic_F77" = "Xyes" ; then
16107
# We can hardcode non-existant directories.
16108
if test "$hardcode_direct_F77" != no &&
16109
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16110
# have to relink, otherwise we might link with an installed library
16111
# when we should be linking with a yet-to-be-installed one
16112
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16113
test "$hardcode_minus_L_F77" != no; then
16114
# Linking always hardcodes the temporary library directory.
16115
hardcode_action_F77=relink
16117
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16118
hardcode_action_F77=immediate
16121
# We cannot hardcode anything, or else we can only hardcode existing
16123
hardcode_action_F77=unsupported
16125
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16126
$as_echo "$hardcode_action_F77" >&6; }
16128
if test "$hardcode_action_F77" = relink; then
16129
# Fast installation is not supported
16130
enable_fast_install=no
16131
elif test "$shlibpath_overrides_runpath" = yes ||
16132
test "$enable_shared" = no; then
16133
# Fast installation is not necessary
16134
enable_fast_install=needless
16138
# The else clause should only fire when bootstrapping the
16139
# libtool distribution, otherwise you forgot to ship ltmain.sh
16140
# with your package, and you will get complaints that there are
16141
# no rules to generate ltmain.sh.
16142
if test -f "$ltmain"; then
16143
# See if we are running on zsh, and set the options which allow our commands through
16144
# without removal of \ escapes.
16145
if test -n "${ZSH_VERSION+set}" ; then
16146
setopt NO_GLOB_SUBST
16148
# Now quote all the things that may contain metacharacters while being
16149
# careful not to overquote the AC_SUBSTed values. We take copies of the
16150
# variables and quote the copies for generation of the libtool script.
16151
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16153
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16154
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16155
deplibs_check_method reload_flag reload_cmds need_locks \
16156
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16157
lt_cv_sys_global_symbol_to_c_name_address \
16158
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16159
old_postinstall_cmds old_postuninstall_cmds \
16163
lt_prog_compiler_wl_F77 \
16164
lt_prog_compiler_pic_F77 \
16165
lt_prog_compiler_static_F77 \
16166
lt_prog_compiler_no_builtin_flag_F77 \
16167
export_dynamic_flag_spec_F77 \
16168
thread_safe_flag_spec_F77 \
16169
whole_archive_flag_spec_F77 \
16170
enable_shared_with_static_runtimes_F77 \
16171
old_archive_cmds_F77 \
16172
old_archive_from_new_cmds_F77 \
16173
predep_objects_F77 \
16174
postdep_objects_F77 \
16177
compiler_lib_search_path_F77 \
16178
compiler_lib_search_dirs_F77 \
16180
archive_expsym_cmds_F77 \
16181
postinstall_cmds_F77 \
16182
postuninstall_cmds_F77 \
16183
old_archive_from_expsyms_cmds_F77 \
16184
allow_undefined_flag_F77 \
16185
no_undefined_flag_F77 \
16186
export_symbols_cmds_F77 \
16187
hardcode_libdir_flag_spec_F77 \
16188
hardcode_libdir_flag_spec_ld_F77 \
16189
hardcode_libdir_separator_F77 \
16190
hardcode_automatic_F77 \
16192
module_expsym_cmds_F77 \
16193
lt_cv_prog_compiler_c_o_F77 \
16194
fix_srcfile_path_F77 \
16195
exclude_expsyms_F77 \
16196
include_expsyms_F77; do
16199
old_archive_cmds_F77 | \
16200
old_archive_from_new_cmds_F77 | \
16201
archive_cmds_F77 | \
16202
archive_expsym_cmds_F77 | \
16203
module_cmds_F77 | \
16204
module_expsym_cmds_F77 | \
16205
old_archive_from_expsyms_cmds_F77 | \
16206
export_symbols_cmds_F77 | \
16207
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16208
postinstall_cmds | postuninstall_cmds | \
16209
old_postinstall_cmds | old_postuninstall_cmds | \
16210
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16211
# Double-quote double-evaled strings.
16212
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16215
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16221
*'\$0 --fallback-echo"')
16222
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16228
cat <<__EOF__ >> "$cfgfile"
16229
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16231
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16233
# Shell to use when invoking shell scripts.
16236
# Whether or not to build shared libraries.
16237
build_libtool_libs=$enable_shared
16239
# Whether or not to build static libraries.
16240
build_old_libs=$enable_static
16242
# Whether or not to add -lc for building shared libraries.
16243
build_libtool_need_lc=$archive_cmds_need_lc_F77
16245
# Whether or not to disallow shared libs when runtime libs are static
16246
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16248
# Whether or not to optimize for fast installation.
16249
fast_install=$enable_fast_install
16252
host_alias=$host_alias
16256
# The build system.
16257
build_alias=$build_alias
16261
# An echo program that does not interpret backslashes.
16266
AR_FLAGS=$lt_AR_FLAGS
16271
# LTCC compiler flags.
16272
LTCFLAGS=$lt_LTCFLAGS
16274
# A language-specific compiler.
16275
CC=$lt_compiler_F77
16277
# Is the compiler the GNU C compiler?
16283
# The linker used to build libraries.
16286
# Whether we need hard or soft links.
16289
# A BSD-compatible nm program.
16292
# A symbol stripping program
16295
# Used to examine libraries when file_magic_cmd begins "file"
16296
MAGIC_CMD=$MAGIC_CMD
16298
# Used on cygwin: DLL creation program.
16301
# Used on cygwin: object dumper.
16304
# Used on cygwin: assembler.
16307
# The name of the directory that contains temporary libtool files.
16310
# How to create reloadable object files.
16311
reload_flag=$lt_reload_flag
16312
reload_cmds=$lt_reload_cmds
16314
# How to pass a linker flag through the compiler.
16315
wl=$lt_lt_prog_compiler_wl_F77
16317
# Object file suffix (normally "o").
16318
objext="$ac_objext"
16320
# Old archive suffix (normally "a").
16323
# Shared library suffix (normally ".so").
16324
shrext_cmds='$shrext_cmds'
16326
# Executable file suffix (normally "").
16329
# Additional compiler flags for building library objects.
16330
pic_flag=$lt_lt_prog_compiler_pic_F77
16333
# What is the maximum length of a command?
16334
max_cmd_len=$lt_cv_sys_max_cmd_len
16336
# Does compiler simultaneously support -c and -o options?
16337
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16339
# Must we lock files when doing compilation?
16340
need_locks=$lt_need_locks
16342
# Do we need the lib prefix for modules?
16343
need_lib_prefix=$need_lib_prefix
16345
# Do we need a version for libraries?
16346
need_version=$need_version
16348
# Whether dlopen is supported.
16349
dlopen_support=$enable_dlopen
16351
# Whether dlopen of programs is supported.
16352
dlopen_self=$enable_dlopen_self
16354
# Whether dlopen of statically linked programs is supported.
16355
dlopen_self_static=$enable_dlopen_self_static
16357
# Compiler flag to prevent dynamic linking.
16358
link_static_flag=$lt_lt_prog_compiler_static_F77
16360
# Compiler flag to turn off builtin functions.
16361
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16363
# Compiler flag to allow reflexive dlopens.
16364
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16366
# Compiler flag to generate shared objects directly from archives.
16367
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16369
# Compiler flag to generate thread-safe objects.
16370
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16372
# Library versioning type.
16373
version_type=$version_type
16375
# Format of library name prefix.
16376
libname_spec=$lt_libname_spec
16378
# List of archive names. First name is the real one, the rest are links.
16379
# The last name is the one that the linker finds with -lNAME.
16380
library_names_spec=$lt_library_names_spec
16382
# The coded name of the library, if different from the real name.
16383
soname_spec=$lt_soname_spec
16385
# Commands used to build and install an old-style archive.
16387
old_archive_cmds=$lt_old_archive_cmds_F77
16388
old_postinstall_cmds=$lt_old_postinstall_cmds
16389
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16391
# Create an old-style archive from a shared archive.
16392
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16394
# Create a temporary old-style archive to link instead of a shared archive.
16395
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16397
# Commands used to build and install a shared archive.
16398
archive_cmds=$lt_archive_cmds_F77
16399
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16400
postinstall_cmds=$lt_postinstall_cmds
16401
postuninstall_cmds=$lt_postuninstall_cmds
16403
# Commands used to build a loadable module (assumed same as above if empty)
16404
module_cmds=$lt_module_cmds_F77
16405
module_expsym_cmds=$lt_module_expsym_cmds_F77
16407
# Commands to strip libraries.
16408
old_striplib=$lt_old_striplib
16409
striplib=$lt_striplib
16411
# Dependencies to place before the objects being linked to create a
16413
predep_objects=$lt_predep_objects_F77
16415
# Dependencies to place after the objects being linked to create a
16417
postdep_objects=$lt_postdep_objects_F77
16419
# Dependencies to place before the objects being linked to create a
16421
predeps=$lt_predeps_F77
16423
# Dependencies to place after the objects being linked to create a
16425
postdeps=$lt_postdeps_F77
16427
# The directories searched by this compiler when creating a shared
16429
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16431
# The library search path used internally by the compiler when linking
16432
# a shared library.
16433
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16435
# Method to check whether dependent libraries are shared objects.
16436
deplibs_check_method=$lt_deplibs_check_method
16438
# Command to use when deplibs_check_method == file_magic.
16439
file_magic_cmd=$lt_file_magic_cmd
16441
# Flag that allows shared libraries with undefined symbols to be built.
16442
allow_undefined_flag=$lt_allow_undefined_flag_F77
16444
# Flag that forces no undefined symbols.
16445
no_undefined_flag=$lt_no_undefined_flag_F77
16447
# Commands used to finish a libtool library installation in a directory.
16448
finish_cmds=$lt_finish_cmds
16450
# Same as above, but a single script fragment to be evaled but not shown.
16451
finish_eval=$lt_finish_eval
16453
# Take the output of nm and produce a listing of raw symbols and C names.
16454
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16456
# Transform the output of nm in a proper C declaration
16457
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16459
# Transform the output of nm in a C name address pair
16460
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16462
# This is the shared library runtime path variable.
16463
runpath_var=$runpath_var
16465
# This is the shared library path variable.
16466
shlibpath_var=$shlibpath_var
16468
# Is shlibpath searched before the hard-coded library search path?
16469
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16471
# How to hardcode a shared library path into an executable.
16472
hardcode_action=$hardcode_action_F77
16474
# Whether we should hardcode library paths into libraries.
16475
hardcode_into_libs=$hardcode_into_libs
16477
# Flag to hardcode \$libdir into a binary during linking.
16478
# This must work even if \$libdir does not exist.
16479
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16481
# If ld is used when linking, flag to hardcode \$libdir into
16482
# a binary during linking. This must work even if \$libdir does
16484
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16486
# Whether we need a single -rpath flag with a separated argument.
16487
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16489
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16490
# resulting binary.
16491
hardcode_direct=$hardcode_direct_F77
16493
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16494
# resulting binary.
16495
hardcode_minus_L=$hardcode_minus_L_F77
16497
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16498
# the resulting binary.
16499
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16501
# Set to yes if building a shared library automatically hardcodes DIR into the library
16502
# and all subsequent libraries and executables linked against it.
16503
hardcode_automatic=$hardcode_automatic_F77
16505
# Variables whose values should be saved in libtool wrapper scripts and
16506
# restored at relink time.
16507
variables_saved_for_relink="$variables_saved_for_relink"
16509
# Whether libtool must link a program against all its dependency libraries.
16510
link_all_deplibs=$link_all_deplibs_F77
16512
# Compile-time system search path for libraries
16513
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16515
# Run-time system search path for libraries
16516
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16518
# Fix the shell variable \$srcfile for the compiler.
16519
fix_srcfile_path=$lt_fix_srcfile_path
16521
# Set to yes if exported symbols are required.
16522
always_export_symbols=$always_export_symbols_F77
16524
# The commands to list exported symbols.
16525
export_symbols_cmds=$lt_export_symbols_cmds_F77
16527
# The commands to extract the exported symbol list from a shared archive.
16528
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16530
# Symbols that should not be listed in the preloaded symbols.
16531
exclude_expsyms=$lt_exclude_expsyms_F77
16533
# Symbols that must always be exported.
16534
include_expsyms=$lt_include_expsyms_F77
16536
# ### END LIBTOOL TAG CONFIG: $tagname
16542
# If there is no Makefile yet, we rely on a make rule to execute
16543
# `config.status --recheck' to rerun these tests and create the
16544
# libtool script then.
16545
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16546
if test -f "$ltmain_in"; then
16547
test -f Makefile && make "$ltmain"
16553
ac_cpp='$CPP $CPPFLAGS'
16554
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16555
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16556
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16566
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16569
# Source file extension for Java test sources.
16572
# Object file extension for compiled Java test sources.
16576
# Code to be used in simple compile tests
16577
lt_simple_compile_test_code="class foo {}"
16579
# Code to be used in simple link tests
16580
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16582
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16584
# If no C compiler was specified, use CC.
16587
# If no C compiler flags were specified, use CFLAGS.
16588
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16590
# Allow CC to be a program name with arguments.
16594
# save warnings/boilerplate of simple test code
16595
ac_outfile=conftest.$ac_objext
16596
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16597
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16598
_lt_compiler_boilerplate=`cat conftest.err`
16601
ac_outfile=conftest.$ac_objext
16602
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16603
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16604
_lt_linker_boilerplate=`cat conftest.err`
16608
# Allow CC to be a program name with arguments.
16613
for cc_temp in $compiler""; do
16615
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16616
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16621
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16624
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16625
archive_cmds_need_lc_GCJ=no
16627
old_archive_cmds_GCJ=$old_archive_cmds
16630
lt_prog_compiler_no_builtin_flag_GCJ=
16632
if test "$GCC" = yes; then
16633
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16636
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16637
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16638
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16639
$as_echo_n "(cached) " >&6
16641
lt_cv_prog_compiler_rtti_exceptions=no
16642
ac_outfile=conftest.$ac_objext
16643
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16644
lt_compiler_flag="-fno-rtti -fno-exceptions"
16645
# Insert the option either (1) after the last *FLAGS variable, or
16646
# (2) before a word containing "conftest.", or (3) at the end.
16647
# Note that $ac_compile itself does not contain backslashes and begins
16648
# with a dollar sign (not a hyphen), so the echo should work correctly.
16649
# The option is referenced via a variable to avoid confusing sed.
16650
lt_compile=`echo "$ac_compile" | $SED \
16651
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16652
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16653
-e 's:$: $lt_compiler_flag:'`
16654
(eval echo "\"\$as_me:16654: $lt_compile\"" >&5)
16655
(eval "$lt_compile" 2>conftest.err)
16657
cat conftest.err >&5
16658
echo "$as_me:16658: \$? = $ac_status" >&5
16659
if (exit $ac_status) && test -s "$ac_outfile"; then
16660
# The compiler can only warn and ignore the option if not recognized
16661
# So say no if there are warnings other than the usual output.
16662
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16663
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16664
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16665
lt_cv_prog_compiler_rtti_exceptions=yes
16671
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16672
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16674
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16675
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16682
lt_prog_compiler_wl_GCJ=
16683
lt_prog_compiler_pic_GCJ=
16684
lt_prog_compiler_static_GCJ=
16686
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16687
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16689
if test "$GCC" = yes; then
16690
lt_prog_compiler_wl_GCJ='-Wl,'
16691
lt_prog_compiler_static_GCJ='-static'
16695
# All AIX code is PIC.
16696
if test "$host_cpu" = ia64; then
16697
# AIX 5 now supports IA64 processor
16698
lt_prog_compiler_static_GCJ='-Bstatic'
16703
# FIXME: we need at least 68020 code to build shared libraries, but
16704
# adding the `-m68020' flag to GCC prevents building anything better,
16706
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16709
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16710
# PIC is the default for these OSes.
16713
mingw* | cygwin* | pw32* | os2*)
16714
# This hack is so that the source file can tell whether it is being
16715
# built for inclusion in a dll (and should export symbols for example).
16716
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16717
# (--disable-auto-import) libraries
16721
darwin* | rhapsody*)
16722
# PIC is the default on this platform
16723
# Common symbols not allowed in MH_DYLIB files
16724
lt_prog_compiler_pic_GCJ='-fno-common'
16728
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16729
# Instead, we relocate shared libraries at runtime.
16733
# Just because we use GCC doesn't mean we suddenly get shared libraries
16734
# on systems that don't support them.
16735
lt_prog_compiler_can_build_shared_GCJ=no
16740
if test -d /usr/nec; then
16741
lt_prog_compiler_pic_GCJ=-Kconform_pic
16746
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16747
# not for PA HP-UX.
16753
lt_prog_compiler_pic_GCJ='-fPIC'
16759
lt_prog_compiler_pic_GCJ='-fPIC'
16763
# PORTME Check for flag to pass linker flags through the system compiler.
16766
lt_prog_compiler_wl_GCJ='-Wl,'
16767
if test "$host_cpu" = ia64; then
16768
# AIX 5 now supports IA64 processor
16769
lt_prog_compiler_static_GCJ='-Bstatic'
16771
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16775
# PIC is the default on this platform
16776
# Common symbols not allowed in MH_DYLIB files
16777
case $cc_basename in
16779
lt_prog_compiler_pic_GCJ='-qnocommon'
16780
lt_prog_compiler_wl_GCJ='-Wl,'
16785
mingw* | cygwin* | pw32* | os2*)
16786
# This hack is so that the source file can tell whether it is being
16787
# built for inclusion in a dll (and should export symbols for example).
16791
hpux9* | hpux10* | hpux11*)
16792
lt_prog_compiler_wl_GCJ='-Wl,'
16793
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16794
# not for PA HP-UX.
16800
lt_prog_compiler_pic_GCJ='+Z'
16803
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16804
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16807
irix5* | irix6* | nonstopux*)
16808
lt_prog_compiler_wl_GCJ='-Wl,'
16809
# PIC (with -KPIC) is the default.
16810
lt_prog_compiler_static_GCJ='-non_shared'
16814
lt_prog_compiler_pic_GCJ='-KPIC'
16815
lt_prog_compiler_static_GCJ='-Bstatic'
16818
linux* | k*bsd*-gnu)
16819
case $cc_basename in
16821
lt_prog_compiler_wl_GCJ='-Wl,'
16822
lt_prog_compiler_pic_GCJ='-KPIC'
16823
lt_prog_compiler_static_GCJ='-static'
16825
pgcc* | pgf77* | pgf90* | pgf95*)
16826
# Portland Group compilers (*not* the Pentium gcc compiler,
16827
# which looks to be a dead project)
16828
lt_prog_compiler_wl_GCJ='-Wl,'
16829
lt_prog_compiler_pic_GCJ='-fpic'
16830
lt_prog_compiler_static_GCJ='-Bstatic'
16833
lt_prog_compiler_wl_GCJ='-Wl,'
16834
# All Alpha code is PIC.
16835
lt_prog_compiler_static_GCJ='-non_shared'
16838
case `$CC -V 2>&1 | sed 5q` in
16841
lt_prog_compiler_pic_GCJ='-KPIC'
16842
lt_prog_compiler_static_GCJ='-Bstatic'
16843
lt_prog_compiler_wl_GCJ='-Wl,'
16846
# Sun Fortran 8.3 passes all unrecognized flags to the linker
16847
lt_prog_compiler_pic_GCJ='-KPIC'
16848
lt_prog_compiler_static_GCJ='-Bstatic'
16849
lt_prog_compiler_wl_GCJ=''
16856
osf3* | osf4* | osf5*)
16857
lt_prog_compiler_wl_GCJ='-Wl,'
16858
# All OSF/1 code is PIC.
16859
lt_prog_compiler_static_GCJ='-non_shared'
16863
lt_prog_compiler_static_GCJ='-non_shared'
16867
lt_prog_compiler_pic_GCJ='-KPIC'
16868
lt_prog_compiler_static_GCJ='-Bstatic'
16869
case $cc_basename in
16870
f77* | f90* | f95*)
16871
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16873
lt_prog_compiler_wl_GCJ='-Wl,';;
16878
lt_prog_compiler_wl_GCJ='-Qoption ld '
16879
lt_prog_compiler_pic_GCJ='-PIC'
16880
lt_prog_compiler_static_GCJ='-Bstatic'
16883
sysv4 | sysv4.2uw2* | sysv4.3*)
16884
lt_prog_compiler_wl_GCJ='-Wl,'
16885
lt_prog_compiler_pic_GCJ='-KPIC'
16886
lt_prog_compiler_static_GCJ='-Bstatic'
16890
if test -d /usr/nec ;then
16891
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16892
lt_prog_compiler_static_GCJ='-Bstatic'
16896
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16897
lt_prog_compiler_wl_GCJ='-Wl,'
16898
lt_prog_compiler_pic_GCJ='-KPIC'
16899
lt_prog_compiler_static_GCJ='-Bstatic'
16903
lt_prog_compiler_wl_GCJ='-Wl,'
16904
lt_prog_compiler_can_build_shared_GCJ=no
16908
lt_prog_compiler_pic_GCJ='-pic'
16909
lt_prog_compiler_static_GCJ='-Bstatic'
16913
lt_prog_compiler_can_build_shared_GCJ=no
16918
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16919
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16922
# Check to make sure the PIC flag actually works.
16924
if test -n "$lt_prog_compiler_pic_GCJ"; then
16926
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16927
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16928
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16929
$as_echo_n "(cached) " >&6
16931
lt_cv_prog_compiler_pic_works_GCJ=no
16932
ac_outfile=conftest.$ac_objext
16933
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16934
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16935
# Insert the option either (1) after the last *FLAGS variable, or
16936
# (2) before a word containing "conftest.", or (3) at the end.
16937
# Note that $ac_compile itself does not contain backslashes and begins
16938
# with a dollar sign (not a hyphen), so the echo should work correctly.
16939
# The option is referenced via a variable to avoid confusing sed.
16940
lt_compile=`echo "$ac_compile" | $SED \
16941
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16942
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16943
-e 's:$: $lt_compiler_flag:'`
16944
(eval echo "\"\$as_me:16944: $lt_compile\"" >&5)
16945
(eval "$lt_compile" 2>conftest.err)
16947
cat conftest.err >&5
16948
echo "$as_me:16948: \$? = $ac_status" >&5
16949
if (exit $ac_status) && test -s "$ac_outfile"; then
16950
# The compiler can only warn and ignore the option if not recognized
16951
# So say no if there are warnings other than the usual output.
16952
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16953
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16954
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16955
lt_cv_prog_compiler_pic_works_GCJ=yes
16961
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16962
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16964
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16965
case $lt_prog_compiler_pic_GCJ in
16967
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16970
lt_prog_compiler_pic_GCJ=
16971
lt_prog_compiler_can_build_shared_GCJ=no
16976
# For platforms which do not support PIC, -DPIC is meaningless:
16978
lt_prog_compiler_pic_GCJ=
16981
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16986
# Check to make sure the static flag actually works.
16988
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16989
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16990
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16991
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16992
$as_echo_n "(cached) " >&6
16994
lt_cv_prog_compiler_static_works_GCJ=no
16995
save_LDFLAGS="$LDFLAGS"
16996
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16997
echo "$lt_simple_link_test_code" > conftest.$ac_ext
16998
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16999
# The linker can only warn and ignore the option if not recognized
17000
# So say no if there are warnings
17001
if test -s conftest.err; then
17002
# Append any errors to the config.log.
17003
cat conftest.err 1>&5
17004
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17005
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17006
if diff conftest.exp conftest.er2 >/dev/null; then
17007
lt_cv_prog_compiler_static_works_GCJ=yes
17010
lt_cv_prog_compiler_static_works_GCJ=yes
17014
LDFLAGS="$save_LDFLAGS"
17017
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17018
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17020
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17023
lt_prog_compiler_static_GCJ=
17027
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17028
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17029
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17030
$as_echo_n "(cached) " >&6
17032
lt_cv_prog_compiler_c_o_GCJ=no
17033
$rm -r conftest 2>/dev/null
17037
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17039
lt_compiler_flag="-o out/conftest2.$ac_objext"
17040
# Insert the option either (1) after the last *FLAGS variable, or
17041
# (2) before a word containing "conftest.", or (3) at the end.
17042
# Note that $ac_compile itself does not contain backslashes and begins
17043
# with a dollar sign (not a hyphen), so the echo should work correctly.
17044
lt_compile=`echo "$ac_compile" | $SED \
17045
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17046
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17047
-e 's:$: $lt_compiler_flag:'`
17048
(eval echo "\"\$as_me:17048: $lt_compile\"" >&5)
17049
(eval "$lt_compile" 2>out/conftest.err)
17051
cat out/conftest.err >&5
17052
echo "$as_me:17052: \$? = $ac_status" >&5
17053
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17055
# The compiler can only warn and ignore the option if not recognized
17056
# So say no if there are warnings
17057
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17058
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17059
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17060
lt_cv_prog_compiler_c_o_GCJ=yes
17065
# SGI C++ compiler will create directory out/ii_files/ for
17066
# template instantiation
17067
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17068
$rm out/* && rmdir out
17074
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17075
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17078
hard_links="nottested"
17079
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17080
# do not overwrite the value of need_locks provided by the user
17081
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17082
$as_echo_n "checking if we can lock with hard links... " >&6; }
17085
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17087
ln conftest.a conftest.b 2>&5 || hard_links=no
17088
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17089
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17090
$as_echo "$hard_links" >&6; }
17091
if test "$hard_links" = no; then
17092
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17093
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17100
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17101
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17104
allow_undefined_flag_GCJ=
17105
enable_shared_with_static_runtimes_GCJ=no
17107
archive_expsym_cmds_GCJ=
17108
old_archive_From_new_cmds_GCJ=
17109
old_archive_from_expsyms_cmds_GCJ=
17110
export_dynamic_flag_spec_GCJ=
17111
whole_archive_flag_spec_GCJ=
17112
thread_safe_flag_spec_GCJ=
17113
hardcode_libdir_flag_spec_GCJ=
17114
hardcode_libdir_flag_spec_ld_GCJ=
17115
hardcode_libdir_separator_GCJ=
17116
hardcode_direct_GCJ=no
17117
hardcode_minus_L_GCJ=no
17118
hardcode_shlibpath_var_GCJ=unsupported
17119
link_all_deplibs_GCJ=unknown
17120
hardcode_automatic_GCJ=no
17122
module_expsym_cmds_GCJ=
17123
always_export_symbols_GCJ=no
17124
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17125
# include_expsyms should be a list of space-separated symbols to be *always*
17126
# included in the symbol list
17127
include_expsyms_GCJ=
17128
# exclude_expsyms can be an extended regexp of symbols to exclude
17129
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17130
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17131
# as well as any symbol that contains `d'.
17132
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17133
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17134
# platforms (ab)use it in PIC code, but their linkers get confused if
17135
# the symbol is explicitly referenced. Since portable code cannot
17136
# rely on this symbol name, it's probably fine to never include it in
17137
# preloaded symbol tables.
17138
# Exclude shared library initialization/finalization symbols.
17139
extract_expsyms_cmds=
17140
# Just being paranoid about ensuring that cc_basename is set.
17141
for cc_temp in $compiler""; do
17143
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17144
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17149
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17152
cygwin* | mingw* | pw32*)
17153
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17154
# When not using gcc, we currently assume that we are using
17155
# Microsoft Visual C++.
17156
if test "$GCC" != yes; then
17161
# we just hope/assume this is gcc and not c89 (= MSVC++)
17170
if test "$with_gnu_ld" = yes; then
17171
# If archive_cmds runs LD, not CC, wlarc should be empty
17174
# Set some defaults for GNU ld with shared library support. These
17175
# are reset later if shared libraries are not supported. Putting them
17176
# here allows them to be overridden if necessary.
17177
runpath_var=LD_RUN_PATH
17178
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17179
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17180
# ancient GNU ld didn't support --whole-archive et. al.
17181
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17182
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17184
whole_archive_flag_spec_GCJ=
17186
supports_anon_versioning=no
17187
case `$LD -v 2>/dev/null` in
17188
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17189
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17190
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17191
*\ 2.11.*) ;; # other 2.11 versions
17192
*) supports_anon_versioning=yes ;;
17195
# See if GNU ld supports shared libraries.
17198
# On AIX/PPC, the GNU linker is very broken
17199
if test "$host_cpu" != ia64; then
17203
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17204
*** to be unable to reliably create shared libraries on AIX.
17205
*** Therefore, libtool is disabling shared libraries support. If you
17206
*** really care for shared libraries, you may want to modify your PATH
17207
*** so that a non-GNU linker is found, and then restart.
17214
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)'
17215
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17216
hardcode_minus_L_GCJ=yes
17218
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17219
# that the semantics of dynamic libraries on AmigaOS, at least up
17220
# to version 4, is to share data among multiple programs linked
17221
# with the same dynamic library. Since this doesn't match the
17222
# behavior of shared libraries on other platforms, we can't use
17228
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17229
allow_undefined_flag_GCJ=unsupported
17230
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17231
# support --undefined. This deserves some investigation. FIXME
17232
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17238
cygwin* | mingw* | pw32*)
17239
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17240
# as there is no search path for DLLs.
17241
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17242
allow_undefined_flag_GCJ=unsupported
17243
always_export_symbols_GCJ=no
17244
enable_shared_with_static_runtimes_GCJ=yes
17245
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17247
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17248
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17249
# If the export-symbols file already is a .def file (1st line
17250
# is EXPORTS), use it as is; otherwise, prepend...
17251
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17252
cp $export_symbols $output_objdir/$soname.def;
17254
echo EXPORTS > $output_objdir/$soname.def;
17255
cat $export_symbols >> $output_objdir/$soname.def;
17257
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17264
hardcode_direct_GCJ=no
17265
hardcode_shlibpath_var_GCJ=no
17266
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17267
export_dynamic_flag_spec_GCJ='${wl}-E'
17268
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17269
# Instead, shared libraries are loaded at an image base (0x10000000 by
17270
# default) and relocated if they conflict, which is a slow very memory
17271
# consuming and fragmenting process. To avoid this, we pick a random,
17272
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17273
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17274
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17275
archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17278
gnu* | linux* | k*bsd*-gnu)
17279
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17281
case $cc_basename,$host_cpu in
17282
pgcc*) # Portland Group C compiler
17283
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17284
tmp_addflag=' $pic_flag'
17286
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17287
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17288
tmp_addflag=' $pic_flag -Mnomain' ;;
17289
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17290
tmp_addflag=' -i_dynamic' ;;
17291
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17292
tmp_addflag=' -i_dynamic -nofor_main' ;;
17293
ifc* | ifort*) # Intel Fortran compiler
17294
tmp_addflag=' -nofor_main' ;;
17296
case `$CC -V 2>&1 | sed 5q` in
17297
*Sun\ C*) # Sun C 5.9
17298
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17299
tmp_sharedflag='-G' ;;
17300
*Sun\ F*) # Sun Fortran 8.3
17301
tmp_sharedflag='-G' ;;
17303
tmp_sharedflag='-shared' ;;
17305
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17307
if test $supports_anon_versioning = yes; then
17308
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17309
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17310
$echo "local: *; };" >> $output_objdir/$libname.ver~
17311
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17319
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17320
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17323
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17324
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17329
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17333
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17334
*** create shared libraries on Solaris systems. Therefore, libtool
17335
*** is disabling shared libraries support. We urge you to upgrade GNU
17336
*** binutils to release 2.9.1 or newer. Another option is to modify
17337
*** your PATH or compiler configuration so that the native linker is
17338
*** used, and then restart.
17341
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17342
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17343
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17349
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17350
case `$LD -v 2>&1` in
17351
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17355
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17356
*** reliably create shared libraries on SCO systems. Therefore, libtool
17357
*** is disabling shared libraries support. We urge you to upgrade GNU
17358
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17359
*** your PATH or compiler configuration so that the native linker is
17360
*** used, and then restart.
17365
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17366
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17367
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17368
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17377
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17379
hardcode_direct_GCJ=yes
17380
hardcode_shlibpath_var_GCJ=no
17384
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17385
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17386
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17393
if test "$ld_shlibs_GCJ" = no; then
17395
hardcode_libdir_flag_spec_GCJ=
17396
export_dynamic_flag_spec_GCJ=
17397
whole_archive_flag_spec_GCJ=
17400
# PORTME fill in a description of your system's linker (not GNU ld)
17403
allow_undefined_flag_GCJ=unsupported
17404
always_export_symbols_GCJ=yes
17405
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'
17406
# Note: this linker hardcodes the directories in LIBPATH if there
17407
# are no directories specified by -L.
17408
hardcode_minus_L_GCJ=yes
17409
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17410
# Neither direct hardcoding nor static linking is supported with a
17412
hardcode_direct_GCJ=unsupported
17417
if test "$host_cpu" = ia64; then
17418
# On IA64, the linker does run time linking by default, so we don't
17419
# have to do anything special.
17420
aix_use_runtimelinking=no
17421
exp_sym_flag='-Bexport'
17424
# If we're using GNU nm, then we don't want the "-C" option.
17425
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17426
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17427
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'
17429
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'
17431
aix_use_runtimelinking=no
17433
# Test if we are trying to use run time linking or normal
17434
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17435
# need to do runtime linking.
17436
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17437
for ld_flag in $LDFLAGS; do
17438
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17439
aix_use_runtimelinking=yes
17446
exp_sym_flag='-bexport'
17447
no_entry_flag='-bnoentry'
17450
# When large executables or shared objects are built, AIX ld can
17451
# have problems creating the table of contents. If linking a library
17452
# or program results in "error TOC overflow" add -mminimal-toc to
17453
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17454
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17456
archive_cmds_GCJ=''
17457
hardcode_direct_GCJ=yes
17458
hardcode_libdir_separator_GCJ=':'
17459
link_all_deplibs_GCJ=yes
17461
if test "$GCC" = yes; then
17462
case $host_os in aix4.[012]|aix4.[012].*)
17463
# We only want to do this on AIX 4.2 and lower, the check
17464
# below for broken collect2 doesn't work under 4.3+
17465
collect2name=`${CC} -print-prog-name=collect2`
17466
if test -f "$collect2name" && \
17467
strings "$collect2name" | grep resolve_lib_name >/dev/null
17469
# We have reworked collect2
17472
# We have old collect2
17473
hardcode_direct_GCJ=unsupported
17474
# It fails to find uninstalled libraries when the uninstalled
17475
# path is not listed in the libpath. Setting hardcode_minus_L
17476
# to unsupported forces relinking
17477
hardcode_minus_L_GCJ=yes
17478
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17479
hardcode_libdir_separator_GCJ=
17483
shared_flag='-shared'
17484
if test "$aix_use_runtimelinking" = yes; then
17485
shared_flag="$shared_flag "'${wl}-G'
17489
if test "$host_cpu" = ia64; then
17490
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17491
# chokes on -Wl,-G. The following line is correct:
17494
if test "$aix_use_runtimelinking" = yes; then
17495
shared_flag='${wl}-G'
17497
shared_flag='${wl}-bM:SRE'
17502
# It seems that -bexpall does not export symbols beginning with
17503
# underscore (_), so it is better to generate a list of symbols to export.
17504
always_export_symbols_GCJ=yes
17505
if test "$aix_use_runtimelinking" = yes; then
17506
# Warning - without using the other runtime loading flags (-brtl),
17507
# -berok will link without error, but may produce a broken library.
17508
allow_undefined_flag_GCJ='-berok'
17509
# Determine the default libpath from the value encoded in an empty executable.
17510
cat >conftest.$ac_ext <<_ACEOF
17513
cat confdefs.h >>conftest.$ac_ext
17514
cat >>conftest.$ac_ext <<_ACEOF
17515
/* end confdefs.h. */
17525
rm -f conftest.$ac_objext conftest$ac_exeext
17526
if { (ac_try="$ac_link"
17527
case "(($ac_try" in
17528
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529
*) ac_try_echo=$ac_try;;
17531
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17532
$as_echo "$ac_try_echo") >&5
17533
(eval "$ac_link") 2>conftest.er1
17535
grep -v '^ *+' conftest.er1 >conftest.err
17537
cat conftest.err >&5
17538
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539
(exit $ac_status); } && {
17540
test -z "$ac_c_werror_flag" ||
17541
test ! -s conftest.err
17542
} && test -s conftest$ac_exeext && {
17543
test "$cross_compiling" = yes ||
17544
$as_test_x conftest$ac_exeext
17547
lt_aix_libpath_sed='
17548
/Import File Strings/,/^$/ {
17554
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17555
# Check for a 64-bit object if we didn't find anything.
17556
if test -z "$aix_libpath"; then
17557
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17560
$as_echo "$as_me: failed program was:" >&5
17561
sed 's/^/| /' conftest.$ac_ext >&5
17566
rm -rf conftest.dSYM
17567
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17568
conftest$ac_exeext conftest.$ac_ext
17569
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17571
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17572
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17574
if test "$host_cpu" = ia64; then
17575
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17576
allow_undefined_flag_GCJ="-z nodefs"
17577
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17579
# Determine the default libpath from the value encoded in an empty executable.
17580
cat >conftest.$ac_ext <<_ACEOF
17583
cat confdefs.h >>conftest.$ac_ext
17584
cat >>conftest.$ac_ext <<_ACEOF
17585
/* end confdefs.h. */
17595
rm -f conftest.$ac_objext conftest$ac_exeext
17596
if { (ac_try="$ac_link"
17597
case "(($ac_try" in
17598
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17599
*) ac_try_echo=$ac_try;;
17601
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17602
$as_echo "$ac_try_echo") >&5
17603
(eval "$ac_link") 2>conftest.er1
17605
grep -v '^ *+' conftest.er1 >conftest.err
17607
cat conftest.err >&5
17608
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609
(exit $ac_status); } && {
17610
test -z "$ac_c_werror_flag" ||
17611
test ! -s conftest.err
17612
} && test -s conftest$ac_exeext && {
17613
test "$cross_compiling" = yes ||
17614
$as_test_x conftest$ac_exeext
17617
lt_aix_libpath_sed='
17618
/Import File Strings/,/^$/ {
17624
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17625
# Check for a 64-bit object if we didn't find anything.
17626
if test -z "$aix_libpath"; then
17627
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17630
$as_echo "$as_me: failed program was:" >&5
17631
sed 's/^/| /' conftest.$ac_ext >&5
17636
rm -rf conftest.dSYM
17637
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17638
conftest$ac_exeext conftest.$ac_ext
17639
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17641
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17642
# Warning - without using the other run time loading flags,
17643
# -berok will link without error, but may produce a broken library.
17644
no_undefined_flag_GCJ=' ${wl}-bernotok'
17645
allow_undefined_flag_GCJ=' ${wl}-berok'
17646
# Exported symbols can be pulled into shared objects from archives
17647
whole_archive_flag_spec_GCJ='$convenience'
17648
archive_cmds_need_lc_GCJ=yes
17649
# This is similar to how AIX traditionally builds its shared libraries.
17650
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17656
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)'
17657
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17658
hardcode_minus_L_GCJ=yes
17659
# see comment about different semantics on the GNU ld section
17664
export_dynamic_flag_spec_GCJ=-rdynamic
17667
cygwin* | mingw* | pw32*)
17668
# When not using gcc, we currently assume that we are using
17669
# Microsoft Visual C++.
17670
# hardcode_libdir_flag_spec is actually meaningless, as there is
17671
# no search path for DLLs.
17672
hardcode_libdir_flag_spec_GCJ=' '
17673
allow_undefined_flag_GCJ=unsupported
17674
# Tell ltmain to make .lib files, not .a files.
17676
# Tell ltmain to make .dll files, not .so files.
17678
# FIXME: Setting linknames here is a bad hack.
17679
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17680
# The linker will automatically build a .lib file if we build a DLL.
17681
old_archive_From_new_cmds_GCJ='true'
17682
# FIXME: Should let the user specify the lib program.
17683
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17684
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17685
enable_shared_with_static_runtimes_GCJ=yes
17688
darwin* | rhapsody*)
17690
rhapsody* | darwin1.[012])
17691
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17694
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17695
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17697
case ${MACOSX_DEPLOYMENT_TARGET} in
17699
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17702
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17708
archive_cmds_need_lc_GCJ=no
17709
hardcode_direct_GCJ=no
17710
hardcode_automatic_GCJ=yes
17711
hardcode_shlibpath_var_GCJ=unsupported
17712
whole_archive_flag_spec_GCJ=''
17713
link_all_deplibs_GCJ=yes
17714
if test "$GCC" = yes ; then
17715
output_verbose_link_cmd='echo'
17716
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17717
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17718
archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17719
module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17721
case $cc_basename in
17723
output_verbose_link_cmd='echo'
17724
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17725
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17726
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17727
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17728
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}'
17738
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17739
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17740
hardcode_shlibpath_var_GCJ=no
17747
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17748
# support. Future versions do this automatically, but an explicit c++rt0.o
17749
# does not break anything, and helps significantly (at the cost of a little
17752
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17753
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17754
hardcode_direct_GCJ=yes
17755
hardcode_shlibpath_var_GCJ=no
17758
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17760
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17761
hardcode_direct_GCJ=yes
17762
hardcode_minus_L_GCJ=yes
17763
hardcode_shlibpath_var_GCJ=no
17766
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17767
freebsd* | dragonfly*)
17768
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17769
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17770
hardcode_direct_GCJ=yes
17771
hardcode_shlibpath_var_GCJ=no
17775
if test "$GCC" = yes; then
17776
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'
17778
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'
17780
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17781
hardcode_libdir_separator_GCJ=:
17782
hardcode_direct_GCJ=yes
17784
# hardcode_minus_L: Not really in the search PATH,
17785
# but as the default location of the library.
17786
hardcode_minus_L_GCJ=yes
17787
export_dynamic_flag_spec_GCJ='${wl}-E'
17791
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17792
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17794
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17796
if test "$with_gnu_ld" = no; then
17797
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17798
hardcode_libdir_separator_GCJ=:
17800
hardcode_direct_GCJ=yes
17801
export_dynamic_flag_spec_GCJ='${wl}-E'
17803
# hardcode_minus_L: Not really in the search PATH,
17804
# but as the default location of the library.
17805
hardcode_minus_L_GCJ=yes
17810
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17813
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17816
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17819
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17825
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17828
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17831
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17835
if test "$with_gnu_ld" = no; then
17836
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17837
hardcode_libdir_separator_GCJ=:
17841
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17842
hardcode_direct_GCJ=no
17843
hardcode_shlibpath_var_GCJ=no
17846
hardcode_direct_GCJ=yes
17847
export_dynamic_flag_spec_GCJ='${wl}-E'
17849
# hardcode_minus_L: Not really in the search PATH,
17850
# but as the default location of the library.
17851
hardcode_minus_L_GCJ=yes
17857
irix5* | irix6* | nonstopux*)
17858
if test "$GCC" = yes; then
17859
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'
17861
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'
17862
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17864
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17865
hardcode_libdir_separator_GCJ=:
17866
link_all_deplibs_GCJ=yes
17870
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17871
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17873
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17875
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17876
hardcode_direct_GCJ=yes
17877
hardcode_shlibpath_var_GCJ=no
17881
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17882
hardcode_direct_GCJ=yes
17883
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17884
hardcode_libdir_separator_GCJ=:
17885
hardcode_shlibpath_var_GCJ=no
17889
if test -f /usr/libexec/ld.so; then
17890
hardcode_direct_GCJ=yes
17891
hardcode_shlibpath_var_GCJ=no
17892
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17893
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17894
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17895
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17896
export_dynamic_flag_spec_GCJ='${wl}-E'
17899
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17900
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17901
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17904
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17905
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17915
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17916
hardcode_minus_L_GCJ=yes
17917
allow_undefined_flag_GCJ=unsupported
17918
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'
17919
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17923
if test "$GCC" = yes; then
17924
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17925
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'
17927
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17928
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'
17930
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17931
hardcode_libdir_separator_GCJ=:
17934
osf4* | osf5*) # as osf3* with the addition of -msym flag
17935
if test "$GCC" = yes; then
17936
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17937
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'
17938
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17940
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17941
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'
17942
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~
17943
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17945
# Both c and cxx compiler support -rpath directly
17946
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17948
hardcode_libdir_separator_GCJ=:
17952
no_undefined_flag_GCJ=' -z text'
17953
if test "$GCC" = yes; then
17955
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17956
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17957
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17960
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17961
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17962
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17964
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17965
hardcode_shlibpath_var_GCJ=no
17967
solaris2.[0-5] | solaris2.[0-5].*) ;;
17969
# The compiler driver will combine and reorder linker options,
17970
# but understands `-z linker_flag'. GCC discards it without `$wl',
17971
# but is careful enough not to reorder.
17972
# Supported since Solaris 2.6 (maybe 2.5.1?)
17973
if test "$GCC" = yes; then
17974
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17976
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17980
link_all_deplibs_GCJ=yes
17984
if test "x$host_vendor" = xsequent; then
17985
# Use $CC to link under sequent, because it throws in some extra .o
17986
# files that make .init and .fini sections work.
17987
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17989
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17991
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17992
hardcode_direct_GCJ=yes
17993
hardcode_minus_L_GCJ=yes
17994
hardcode_shlibpath_var_GCJ=no
17998
case $host_vendor in
18000
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18001
hardcode_direct_GCJ=yes # is this really true???
18004
## LD is ld it makes a PLAMLIB
18005
## CC just makes a GrossModule.
18006
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18007
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18008
hardcode_direct_GCJ=no
18011
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18012
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18015
runpath_var='LD_RUN_PATH'
18016
hardcode_shlibpath_var_GCJ=no
18020
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18021
hardcode_shlibpath_var_GCJ=no
18022
export_dynamic_flag_spec_GCJ='-Bexport'
18026
if test -d /usr/nec; then
18027
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18028
hardcode_shlibpath_var_GCJ=no
18029
runpath_var=LD_RUN_PATH
18030
hardcode_runpath_var=yes
18035
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18036
no_undefined_flag_GCJ='${wl}-z,text'
18037
archive_cmds_need_lc_GCJ=no
18038
hardcode_shlibpath_var_GCJ=no
18039
runpath_var='LD_RUN_PATH'
18041
if test "$GCC" = yes; then
18042
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18043
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18045
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18046
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18050
sysv5* | sco3.2v5* | sco5v6*)
18051
# Note: We can NOT use -z defs as we might desire, because we do not
18052
# link with -lc, and that would cause any symbols used from libc to
18053
# always be unresolved, which means just about no library would
18054
# ever link correctly. If we're not using GNU ld we use -z text
18055
# though, which does catch some bad symbols but isn't as heavy-handed
18057
no_undefined_flag_GCJ='${wl}-z,text'
18058
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18059
archive_cmds_need_lc_GCJ=no
18060
hardcode_shlibpath_var_GCJ=no
18061
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18062
hardcode_libdir_separator_GCJ=':'
18063
link_all_deplibs_GCJ=yes
18064
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18065
runpath_var='LD_RUN_PATH'
18067
if test "$GCC" = yes; then
18068
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18069
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18071
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18072
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18077
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18078
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18079
hardcode_shlibpath_var_GCJ=no
18088
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18089
$as_echo "$ld_shlibs_GCJ" >&6; }
18090
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18093
# Do we need to explicitly link libc?
18095
case "x$archive_cmds_need_lc_GCJ" in
18097
# Assume -lc should be added
18098
archive_cmds_need_lc_GCJ=yes
18100
if test "$enable_shared" = yes && test "$GCC" = yes; then
18101
case $archive_cmds_GCJ in
18103
# FIXME: we may have to deal with multi-command sequences.
18106
# Test whether the compiler implicitly links with -lc since on some
18107
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18108
# to ld, don't add -lc before -lgcc.
18109
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18110
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18112
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18114
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115
(eval $ac_compile) 2>&5
18117
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118
(exit $ac_status); } 2>conftest.err; then
18121
libobjs=conftest.$ac_objext
18123
wl=$lt_prog_compiler_wl_GCJ
18124
pic_flag=$lt_prog_compiler_pic_GCJ
18130
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18131
allow_undefined_flag_GCJ=
18132
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18133
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18135
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136
(exit $ac_status); }
18138
archive_cmds_need_lc_GCJ=no
18140
archive_cmds_need_lc_GCJ=yes
18142
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18144
cat conftest.err 1>&5
18147
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18148
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18155
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18156
$as_echo_n "checking dynamic linker characteristics... " >&6; }
18157
library_names_spec=
18158
libname_spec='lib$name'
18162
postuninstall_cmds=
18166
shlibpath_overrides_runpath=unknown
18168
dynamic_linker="$host_os ld.so"
18169
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18171
need_lib_prefix=unknown
18172
hardcode_into_libs=no
18174
# when you set need_version to no, make sure it does not cause -set_version
18175
# flags to be left without arguments
18176
need_version=unknown
18181
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18182
shlibpath_var=LIBPATH
18184
# AIX 3 has no versioning support, so we append a major version to the name.
18185
soname_spec='${libname}${release}${shared_ext}$major'
18192
hardcode_into_libs=yes
18193
if test "$host_cpu" = ia64; then
18194
# AIX 5 supports IA64
18195
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18196
shlibpath_var=LD_LIBRARY_PATH
18198
# With GCC up to 2.95.x, collect2 would create an import file
18199
# for dependence libraries. The import file would start with
18200
# the line `#! .'. This would cause the generated library to
18201
# depend on `.', always an invalid library. This was fixed in
18202
# development snapshots of GCC prior to 3.0.
18204
aix4 | aix4.[01] | aix4.[01].*)
18205
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18207
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18210
can_build_shared=no
18214
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18215
# soname into executable. Probably we can add versioning support to
18216
# collect2, so additional links can be useful in future.
18217
if test "$aix_use_runtimelinking" = yes; then
18218
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18219
# instead of lib<name>.a to let people know that these are not
18220
# typical AIX shared libraries.
18221
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18223
# We preserve .a as extension for shared libraries through AIX4.2
18224
# and later when we are not doing run time linking.
18225
library_names_spec='${libname}${release}.a $libname.a'
18226
soname_spec='${libname}${release}${shared_ext}$major'
18228
shlibpath_var=LIBPATH
18233
library_names_spec='$libname.ixlibrary $libname.a'
18234
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18235
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'
18239
library_names_spec='${libname}${shared_ext}'
18240
dynamic_linker="$host_os ld.so"
18241
shlibpath_var=LIBRARY_PATH
18247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18248
soname_spec='${libname}${release}${shared_ext}$major'
18249
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18250
shlibpath_var=LD_LIBRARY_PATH
18251
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18252
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18253
# the default ld.so.conf also contains /usr/contrib/lib and
18254
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18255
# libtool to hard-code these into programs
18258
cygwin* | mingw* | pw32*)
18259
version_type=windows
18264
case $GCC,$host_os in
18265
yes,cygwin* | yes,mingw* | yes,pw32*)
18266
library_names_spec='$libname.dll.a'
18267
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18268
postinstall_cmds='base_file=`basename \${file}`~
18269
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18270
dldir=$destdir/`dirname \$dlpath`~
18271
test -d \$dldir || mkdir -p \$dldir~
18272
$install_prog $dir/$dlname \$dldir/$dlname~
18273
chmod a+x \$dldir/$dlname'
18274
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18275
dlpath=$dir/\$dldll~
18277
shlibpath_overrides_runpath=yes
18281
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18282
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18283
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18286
# MinGW DLLs use traditional 'lib' prefix
18287
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18288
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18289
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18290
# It is most probably a Windows format PATH printed by
18291
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18292
# path with ; separators, and with drive letters. We can handle the
18293
# drive letters (cygwin fileutils understands them), so leave them,
18294
# especially as we might pass files found there to a mingw objdump,
18295
# which wouldn't understand a cygwinified path. Ahh.
18296
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18298
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18302
# pw32 DLLs use 'pw' prefix rather than 'lib'
18303
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18309
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18312
dynamic_linker='Win32 ld.exe'
18313
# FIXME: first we should search . and the directory the executable is in
18317
darwin* | rhapsody*)
18318
dynamic_linker="$host_os dyld"
18319
version_type=darwin
18322
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18323
soname_spec='${libname}${release}${major}$shared_ext'
18324
shlibpath_overrides_runpath=yes
18325
shlibpath_var=DYLD_LIBRARY_PATH
18326
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18328
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18335
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18336
soname_spec='${libname}${release}${shared_ext}$major'
18337
shlibpath_var=LD_LIBRARY_PATH
18344
freebsd* | dragonfly*)
18345
# DragonFly does not have aout. When/if they implement a new
18346
# versioning mechanism, adjust this.
18347
if test -x /usr/bin/objformat; then
18348
objformat=`/usr/bin/objformat`
18351
freebsd[123]*) objformat=aout ;;
18352
*) objformat=elf ;;
18355
version_type=freebsd-$objformat
18356
case $version_type in
18358
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18363
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18367
shlibpath_var=LD_LIBRARY_PATH
18370
shlibpath_overrides_runpath=yes
18372
freebsd3.[01]* | freebsdelf3.[01]*)
18373
shlibpath_overrides_runpath=yes
18374
hardcode_into_libs=yes
18376
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18377
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18378
shlibpath_overrides_runpath=no
18379
hardcode_into_libs=yes
18381
*) # from 4.6 on, and DragonFly
18382
shlibpath_overrides_runpath=yes
18383
hardcode_into_libs=yes
18392
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18393
soname_spec='${libname}${release}${shared_ext}$major'
18394
shlibpath_var=LD_LIBRARY_PATH
18395
hardcode_into_libs=yes
18398
hpux9* | hpux10* | hpux11*)
18399
# Give a soname corresponding to the major version so that dld.sl refuses to
18400
# link against other versions.
18407
hardcode_into_libs=yes
18408
dynamic_linker="$host_os dld.so"
18409
shlibpath_var=LD_LIBRARY_PATH
18410
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18411
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18412
soname_spec='${libname}${release}${shared_ext}$major'
18413
if test "X$HPUX_IA64_MODE" = X32; then
18414
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18416
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18418
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18422
hardcode_into_libs=yes
18423
dynamic_linker="$host_os dld.sl"
18424
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18425
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18426
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18427
soname_spec='${libname}${release}${shared_ext}$major'
18428
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18429
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18433
dynamic_linker="$host_os dld.sl"
18434
shlibpath_var=SHLIB_PATH
18435
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18436
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18437
soname_spec='${libname}${release}${shared_ext}$major'
18440
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18441
postinstall_cmds='chmod 555 $lib'
18448
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18449
soname_spec='${libname}${release}${shared_ext}$major'
18450
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18451
shlibpath_var=LD_LIBRARY_PATH
18452
shlibpath_overrides_runpath=no
18453
hardcode_into_libs=yes
18456
irix5* | irix6* | nonstopux*)
18458
nonstopux*) version_type=nonstopux ;;
18460
if test "$lt_cv_prog_gnu_ld" = yes; then
18468
soname_spec='${libname}${release}${shared_ext}$major'
18469
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18471
irix5* | nonstopux*)
18472
libsuff= shlibsuff=
18475
case $LD in # libtool.m4 will add one of these switches to LD
18476
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18477
libsuff= shlibsuff= libmagic=32-bit;;
18478
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18479
libsuff=32 shlibsuff=N32 libmagic=N32;;
18480
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18481
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18482
*) libsuff= shlibsuff= libmagic=never-match;;
18486
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18487
shlibpath_overrides_runpath=no
18488
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18489
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18490
hardcode_into_libs=yes
18493
# No shared lib support for Linux oldld, aout, or coff.
18494
linux*oldld* | linux*aout* | linux*coff*)
18498
# This must be Linux ELF.
18499
linux* | k*bsd*-gnu)
18503
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18504
soname_spec='${libname}${release}${shared_ext}$major'
18505
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18506
shlibpath_var=LD_LIBRARY_PATH
18507
shlibpath_overrides_runpath=no
18508
# This implies no fast_install, which is unacceptable.
18509
# Some rework will be needed to allow for fast_install
18510
# before this can be enabled.
18511
hardcode_into_libs=yes
18513
# Append ld.so.conf contents to the search path
18514
if test -f /etc/ld.so.conf; then
18515
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18516
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18519
# We used to test for /lib/ld.so.1 and disable shared libraries on
18520
# powerpc, because MkLinux only supported shared libraries with the
18521
# GNU dynamic linker. Since this was broken with cross compilers,
18522
# most powerpc-linux boxes support dynamic linking these days and
18523
# people can always --disable-shared, the test was removed, and we
18524
# assume the GNU/Linux dynamic linker is in use.
18525
dynamic_linker='GNU/Linux ld.so'
18532
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18533
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18534
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18535
dynamic_linker='NetBSD (a.out) ld.so'
18537
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18538
soname_spec='${libname}${release}${shared_ext}$major'
18539
dynamic_linker='NetBSD ld.elf_so'
18541
shlibpath_var=LD_LIBRARY_PATH
18542
shlibpath_overrides_runpath=yes
18543
hardcode_into_libs=yes
18548
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18549
shlibpath_var=LD_LIBRARY_PATH
18550
shlibpath_overrides_runpath=yes
18557
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18558
soname_spec='${libname}${release}${shared_ext}$major'
18559
shlibpath_var=LD_LIBRARY_PATH
18560
shlibpath_overrides_runpath=yes
18565
sys_lib_dlsearch_path_spec="/usr/lib"
18567
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18569
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18570
*) need_version=no ;;
18572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18573
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18574
shlibpath_var=LD_LIBRARY_PATH
18575
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18577
openbsd2.[89] | openbsd2.[89].*)
18578
shlibpath_overrides_runpath=no
18581
shlibpath_overrides_runpath=yes
18585
shlibpath_overrides_runpath=yes
18590
libname_spec='$name'
18593
library_names_spec='$libname${shared_ext} $libname.a'
18594
dynamic_linker='OS/2 ld.exe'
18595
shlibpath_var=LIBPATH
18598
osf3* | osf4* | osf5*)
18602
soname_spec='${libname}${release}${shared_ext}$major'
18603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18604
shlibpath_var=LD_LIBRARY_PATH
18605
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18606
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18617
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18618
soname_spec='${libname}${release}${shared_ext}$major'
18619
shlibpath_var=LD_LIBRARY_PATH
18620
shlibpath_overrides_runpath=yes
18621
hardcode_into_libs=yes
18622
# ldd complains unless libraries are executable
18623
postinstall_cmds='chmod +x $lib'
18628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18629
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18630
shlibpath_var=LD_LIBRARY_PATH
18631
shlibpath_overrides_runpath=yes
18632
if test "$with_gnu_ld" = yes; then
18640
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18641
soname_spec='${libname}${release}${shared_ext}$major'
18642
shlibpath_var=LD_LIBRARY_PATH
18643
case $host_vendor in
18645
shlibpath_overrides_runpath=no
18647
export_dynamic_flag_spec='${wl}-Blargedynsym'
18648
runpath_var=LD_RUN_PATH
18656
shlibpath_overrides_runpath=no
18657
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18663
if test -d /usr/nec ;then
18665
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18666
soname_spec='$libname${shared_ext}.$major'
18667
shlibpath_var=LD_LIBRARY_PATH
18671
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18672
version_type=freebsd-elf
18675
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18676
soname_spec='${libname}${release}${shared_ext}$major'
18677
shlibpath_var=LD_LIBRARY_PATH
18678
hardcode_into_libs=yes
18679
if test "$with_gnu_ld" = yes; then
18680
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18681
shlibpath_overrides_runpath=no
18683
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18684
shlibpath_overrides_runpath=yes
18687
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18691
sys_lib_dlsearch_path_spec='/usr/lib'
18696
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18697
soname_spec='${libname}${release}${shared_ext}$major'
18698
shlibpath_var=LD_LIBRARY_PATH
18705
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18706
$as_echo "$dynamic_linker" >&6; }
18707
test "$dynamic_linker" = no && can_build_shared=no
18709
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18710
$as_echo_n "(cached) " >&6
18712
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18715
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18716
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18717
$as_echo_n "(cached) " >&6
18719
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18722
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18724
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18725
if test "$GCC" = yes; then
18726
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18729
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18730
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18731
hardcode_action_GCJ=
18732
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18733
test -n "$runpath_var_GCJ" || \
18734
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18736
# We can hardcode non-existant directories.
18737
if test "$hardcode_direct_GCJ" != no &&
18738
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18739
# have to relink, otherwise we might link with an installed library
18740
# when we should be linking with a yet-to-be-installed one
18741
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18742
test "$hardcode_minus_L_GCJ" != no; then
18743
# Linking always hardcodes the temporary library directory.
18744
hardcode_action_GCJ=relink
18746
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18747
hardcode_action_GCJ=immediate
18750
# We cannot hardcode anything, or else we can only hardcode existing
18752
hardcode_action_GCJ=unsupported
18754
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18755
$as_echo "$hardcode_action_GCJ" >&6; }
18757
if test "$hardcode_action_GCJ" = relink; then
18758
# Fast installation is not supported
18759
enable_fast_install=no
18760
elif test "$shlibpath_overrides_runpath" = yes ||
18761
test "$enable_shared" = no; then
18762
# Fast installation is not necessary
18763
enable_fast_install=needless
18767
# The else clause should only fire when bootstrapping the
18768
# libtool distribution, otherwise you forgot to ship ltmain.sh
18769
# with your package, and you will get complaints that there are
18770
# no rules to generate ltmain.sh.
18771
if test -f "$ltmain"; then
18772
# See if we are running on zsh, and set the options which allow our commands through
18773
# without removal of \ escapes.
18774
if test -n "${ZSH_VERSION+set}" ; then
18775
setopt NO_GLOB_SUBST
18777
# Now quote all the things that may contain metacharacters while being
18778
# careful not to overquote the AC_SUBSTed values. We take copies of the
18779
# variables and quote the copies for generation of the libtool script.
18780
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18782
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18783
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18784
deplibs_check_method reload_flag reload_cmds need_locks \
18785
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18786
lt_cv_sys_global_symbol_to_c_name_address \
18787
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18788
old_postinstall_cmds old_postuninstall_cmds \
18792
lt_prog_compiler_wl_GCJ \
18793
lt_prog_compiler_pic_GCJ \
18794
lt_prog_compiler_static_GCJ \
18795
lt_prog_compiler_no_builtin_flag_GCJ \
18796
export_dynamic_flag_spec_GCJ \
18797
thread_safe_flag_spec_GCJ \
18798
whole_archive_flag_spec_GCJ \
18799
enable_shared_with_static_runtimes_GCJ \
18800
old_archive_cmds_GCJ \
18801
old_archive_from_new_cmds_GCJ \
18802
predep_objects_GCJ \
18803
postdep_objects_GCJ \
18806
compiler_lib_search_path_GCJ \
18807
compiler_lib_search_dirs_GCJ \
18809
archive_expsym_cmds_GCJ \
18810
postinstall_cmds_GCJ \
18811
postuninstall_cmds_GCJ \
18812
old_archive_from_expsyms_cmds_GCJ \
18813
allow_undefined_flag_GCJ \
18814
no_undefined_flag_GCJ \
18815
export_symbols_cmds_GCJ \
18816
hardcode_libdir_flag_spec_GCJ \
18817
hardcode_libdir_flag_spec_ld_GCJ \
18818
hardcode_libdir_separator_GCJ \
18819
hardcode_automatic_GCJ \
18821
module_expsym_cmds_GCJ \
18822
lt_cv_prog_compiler_c_o_GCJ \
18823
fix_srcfile_path_GCJ \
18824
exclude_expsyms_GCJ \
18825
include_expsyms_GCJ; do
18828
old_archive_cmds_GCJ | \
18829
old_archive_from_new_cmds_GCJ | \
18830
archive_cmds_GCJ | \
18831
archive_expsym_cmds_GCJ | \
18832
module_cmds_GCJ | \
18833
module_expsym_cmds_GCJ | \
18834
old_archive_from_expsyms_cmds_GCJ | \
18835
export_symbols_cmds_GCJ | \
18836
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18837
postinstall_cmds | postuninstall_cmds | \
18838
old_postinstall_cmds | old_postuninstall_cmds | \
18839
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18840
# Double-quote double-evaled strings.
18841
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18844
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18850
*'\$0 --fallback-echo"')
18851
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18857
cat <<__EOF__ >> "$cfgfile"
18858
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18860
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18862
# Shell to use when invoking shell scripts.
18865
# Whether or not to build shared libraries.
18866
build_libtool_libs=$enable_shared
18868
# Whether or not to build static libraries.
18869
build_old_libs=$enable_static
18871
# Whether or not to add -lc for building shared libraries.
18872
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18874
# Whether or not to disallow shared libs when runtime libs are static
18875
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18877
# Whether or not to optimize for fast installation.
18878
fast_install=$enable_fast_install
18881
host_alias=$host_alias
18885
# The build system.
18886
build_alias=$build_alias
18890
# An echo program that does not interpret backslashes.
18895
AR_FLAGS=$lt_AR_FLAGS
18900
# LTCC compiler flags.
18901
LTCFLAGS=$lt_LTCFLAGS
18903
# A language-specific compiler.
18904
CC=$lt_compiler_GCJ
18906
# Is the compiler the GNU C compiler?
18912
# The linker used to build libraries.
18915
# Whether we need hard or soft links.
18918
# A BSD-compatible nm program.
18921
# A symbol stripping program
18924
# Used to examine libraries when file_magic_cmd begins "file"
18925
MAGIC_CMD=$MAGIC_CMD
18927
# Used on cygwin: DLL creation program.
18930
# Used on cygwin: object dumper.
18933
# Used on cygwin: assembler.
18936
# The name of the directory that contains temporary libtool files.
18939
# How to create reloadable object files.
18940
reload_flag=$lt_reload_flag
18941
reload_cmds=$lt_reload_cmds
18943
# How to pass a linker flag through the compiler.
18944
wl=$lt_lt_prog_compiler_wl_GCJ
18946
# Object file suffix (normally "o").
18947
objext="$ac_objext"
18949
# Old archive suffix (normally "a").
18952
# Shared library suffix (normally ".so").
18953
shrext_cmds='$shrext_cmds'
18955
# Executable file suffix (normally "").
18958
# Additional compiler flags for building library objects.
18959
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18962
# What is the maximum length of a command?
18963
max_cmd_len=$lt_cv_sys_max_cmd_len
18965
# Does compiler simultaneously support -c and -o options?
18966
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18968
# Must we lock files when doing compilation?
18969
need_locks=$lt_need_locks
18971
# Do we need the lib prefix for modules?
18972
need_lib_prefix=$need_lib_prefix
18974
# Do we need a version for libraries?
18975
need_version=$need_version
18977
# Whether dlopen is supported.
18978
dlopen_support=$enable_dlopen
18980
# Whether dlopen of programs is supported.
18981
dlopen_self=$enable_dlopen_self
18983
# Whether dlopen of statically linked programs is supported.
18984
dlopen_self_static=$enable_dlopen_self_static
18986
# Compiler flag to prevent dynamic linking.
18987
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18989
# Compiler flag to turn off builtin functions.
18990
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18992
# Compiler flag to allow reflexive dlopens.
18993
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18995
# Compiler flag to generate shared objects directly from archives.
18996
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18998
# Compiler flag to generate thread-safe objects.
18999
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19001
# Library versioning type.
19002
version_type=$version_type
19004
# Format of library name prefix.
19005
libname_spec=$lt_libname_spec
19007
# List of archive names. First name is the real one, the rest are links.
19008
# The last name is the one that the linker finds with -lNAME.
19009
library_names_spec=$lt_library_names_spec
19011
# The coded name of the library, if different from the real name.
19012
soname_spec=$lt_soname_spec
19014
# Commands used to build and install an old-style archive.
19016
old_archive_cmds=$lt_old_archive_cmds_GCJ
19017
old_postinstall_cmds=$lt_old_postinstall_cmds
19018
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19020
# Create an old-style archive from a shared archive.
19021
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19023
# Create a temporary old-style archive to link instead of a shared archive.
19024
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19026
# Commands used to build and install a shared archive.
19027
archive_cmds=$lt_archive_cmds_GCJ
19028
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19029
postinstall_cmds=$lt_postinstall_cmds
19030
postuninstall_cmds=$lt_postuninstall_cmds
19032
# Commands used to build a loadable module (assumed same as above if empty)
19033
module_cmds=$lt_module_cmds_GCJ
19034
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19036
# Commands to strip libraries.
19037
old_striplib=$lt_old_striplib
19038
striplib=$lt_striplib
19040
# Dependencies to place before the objects being linked to create a
19042
predep_objects=$lt_predep_objects_GCJ
19044
# Dependencies to place after the objects being linked to create a
19046
postdep_objects=$lt_postdep_objects_GCJ
19048
# Dependencies to place before the objects being linked to create a
19050
predeps=$lt_predeps_GCJ
19052
# Dependencies to place after the objects being linked to create a
19054
postdeps=$lt_postdeps_GCJ
19056
# The directories searched by this compiler when creating a shared
19058
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19060
# The library search path used internally by the compiler when linking
19061
# a shared library.
19062
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19064
# Method to check whether dependent libraries are shared objects.
19065
deplibs_check_method=$lt_deplibs_check_method
19067
# Command to use when deplibs_check_method == file_magic.
19068
file_magic_cmd=$lt_file_magic_cmd
19070
# Flag that allows shared libraries with undefined symbols to be built.
19071
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19073
# Flag that forces no undefined symbols.
19074
no_undefined_flag=$lt_no_undefined_flag_GCJ
19076
# Commands used to finish a libtool library installation in a directory.
19077
finish_cmds=$lt_finish_cmds
19079
# Same as above, but a single script fragment to be evaled but not shown.
19080
finish_eval=$lt_finish_eval
19082
# Take the output of nm and produce a listing of raw symbols and C names.
19083
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19085
# Transform the output of nm in a proper C declaration
19086
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19088
# Transform the output of nm in a C name address pair
19089
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19091
# This is the shared library runtime path variable.
19092
runpath_var=$runpath_var
19094
# This is the shared library path variable.
19095
shlibpath_var=$shlibpath_var
19097
# Is shlibpath searched before the hard-coded library search path?
19098
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19100
# How to hardcode a shared library path into an executable.
19101
hardcode_action=$hardcode_action_GCJ
19103
# Whether we should hardcode library paths into libraries.
19104
hardcode_into_libs=$hardcode_into_libs
19106
# Flag to hardcode \$libdir into a binary during linking.
19107
# This must work even if \$libdir does not exist.
19108
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19110
# If ld is used when linking, flag to hardcode \$libdir into
19111
# a binary during linking. This must work even if \$libdir does
19113
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19115
# Whether we need a single -rpath flag with a separated argument.
19116
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19118
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19119
# resulting binary.
19120
hardcode_direct=$hardcode_direct_GCJ
19122
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19123
# resulting binary.
19124
hardcode_minus_L=$hardcode_minus_L_GCJ
19126
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19127
# the resulting binary.
19128
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19130
# Set to yes if building a shared library automatically hardcodes DIR into the library
19131
# and all subsequent libraries and executables linked against it.
19132
hardcode_automatic=$hardcode_automatic_GCJ
19134
# Variables whose values should be saved in libtool wrapper scripts and
19135
# restored at relink time.
19136
variables_saved_for_relink="$variables_saved_for_relink"
19138
# Whether libtool must link a program against all its dependency libraries.
19139
link_all_deplibs=$link_all_deplibs_GCJ
19141
# Compile-time system search path for libraries
19142
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19144
# Run-time system search path for libraries
19145
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19147
# Fix the shell variable \$srcfile for the compiler.
19148
fix_srcfile_path=$lt_fix_srcfile_path
19150
# Set to yes if exported symbols are required.
19151
always_export_symbols=$always_export_symbols_GCJ
19153
# The commands to list exported symbols.
19154
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19156
# The commands to extract the exported symbol list from a shared archive.
19157
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19159
# Symbols that should not be listed in the preloaded symbols.
19160
exclude_expsyms=$lt_exclude_expsyms_GCJ
19162
# Symbols that must always be exported.
19163
include_expsyms=$lt_include_expsyms_GCJ
19165
# ### END LIBTOOL TAG CONFIG: $tagname
19171
# If there is no Makefile yet, we rely on a make rule to execute
19172
# `config.status --recheck' to rerun these tests and create the
19173
# libtool script then.
19174
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19175
if test -f "$ltmain_in"; then
19176
test -f Makefile && make "$ltmain"
19182
ac_cpp='$CPP $CPPFLAGS'
19183
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19184
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19185
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19197
# Source file extension for RC test sources.
19200
# Object file extension for compiled RC test sources.
19204
# Code to be used in simple compile tests
19205
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19207
# Code to be used in simple link tests
19208
lt_simple_link_test_code="$lt_simple_compile_test_code"
19210
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19212
# If no C compiler was specified, use CC.
19215
# If no C compiler flags were specified, use CFLAGS.
19216
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19218
# Allow CC to be a program name with arguments.
19222
# save warnings/boilerplate of simple test code
19223
ac_outfile=conftest.$ac_objext
19224
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19225
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19226
_lt_compiler_boilerplate=`cat conftest.err`
19229
ac_outfile=conftest.$ac_objext
19230
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19231
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19232
_lt_linker_boilerplate=`cat conftest.err`
19236
# Allow CC to be a program name with arguments.
19241
for cc_temp in $compiler""; do
19243
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19244
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19249
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19251
lt_cv_prog_compiler_c_o_RC=yes
19253
# The else clause should only fire when bootstrapping the
19254
# libtool distribution, otherwise you forgot to ship ltmain.sh
19255
# with your package, and you will get complaints that there are
19256
# no rules to generate ltmain.sh.
19257
if test -f "$ltmain"; then
19258
# See if we are running on zsh, and set the options which allow our commands through
19259
# without removal of \ escapes.
19260
if test -n "${ZSH_VERSION+set}" ; then
19261
setopt NO_GLOB_SUBST
19263
# Now quote all the things that may contain metacharacters while being
19264
# careful not to overquote the AC_SUBSTed values. We take copies of the
19265
# variables and quote the copies for generation of the libtool script.
19266
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19268
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19269
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19270
deplibs_check_method reload_flag reload_cmds need_locks \
19271
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19272
lt_cv_sys_global_symbol_to_c_name_address \
19273
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19274
old_postinstall_cmds old_postuninstall_cmds \
19278
lt_prog_compiler_wl_RC \
19279
lt_prog_compiler_pic_RC \
19280
lt_prog_compiler_static_RC \
19281
lt_prog_compiler_no_builtin_flag_RC \
19282
export_dynamic_flag_spec_RC \
19283
thread_safe_flag_spec_RC \
19284
whole_archive_flag_spec_RC \
19285
enable_shared_with_static_runtimes_RC \
19286
old_archive_cmds_RC \
19287
old_archive_from_new_cmds_RC \
19288
predep_objects_RC \
19289
postdep_objects_RC \
19292
compiler_lib_search_path_RC \
19293
compiler_lib_search_dirs_RC \
19295
archive_expsym_cmds_RC \
19296
postinstall_cmds_RC \
19297
postuninstall_cmds_RC \
19298
old_archive_from_expsyms_cmds_RC \
19299
allow_undefined_flag_RC \
19300
no_undefined_flag_RC \
19301
export_symbols_cmds_RC \
19302
hardcode_libdir_flag_spec_RC \
19303
hardcode_libdir_flag_spec_ld_RC \
19304
hardcode_libdir_separator_RC \
19305
hardcode_automatic_RC \
19307
module_expsym_cmds_RC \
19308
lt_cv_prog_compiler_c_o_RC \
19309
fix_srcfile_path_RC \
19310
exclude_expsyms_RC \
19311
include_expsyms_RC; do
19314
old_archive_cmds_RC | \
19315
old_archive_from_new_cmds_RC | \
19316
archive_cmds_RC | \
19317
archive_expsym_cmds_RC | \
19319
module_expsym_cmds_RC | \
19320
old_archive_from_expsyms_cmds_RC | \
19321
export_symbols_cmds_RC | \
19322
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19323
postinstall_cmds | postuninstall_cmds | \
19324
old_postinstall_cmds | old_postuninstall_cmds | \
19325
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19326
# Double-quote double-evaled strings.
19327
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19330
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19336
*'\$0 --fallback-echo"')
19337
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19343
cat <<__EOF__ >> "$cfgfile"
19344
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19346
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19348
# Shell to use when invoking shell scripts.
19351
# Whether or not to build shared libraries.
19352
build_libtool_libs=$enable_shared
19354
# Whether or not to build static libraries.
19355
build_old_libs=$enable_static
19357
# Whether or not to add -lc for building shared libraries.
19358
build_libtool_need_lc=$archive_cmds_need_lc_RC
19360
# Whether or not to disallow shared libs when runtime libs are static
19361
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19363
# Whether or not to optimize for fast installation.
19364
fast_install=$enable_fast_install
19367
host_alias=$host_alias
19371
# The build system.
19372
build_alias=$build_alias
19376
# An echo program that does not interpret backslashes.
19381
AR_FLAGS=$lt_AR_FLAGS
19386
# LTCC compiler flags.
19387
LTCFLAGS=$lt_LTCFLAGS
19389
# A language-specific compiler.
19392
# Is the compiler the GNU C compiler?
19398
# The linker used to build libraries.
19401
# Whether we need hard or soft links.
19404
# A BSD-compatible nm program.
19407
# A symbol stripping program
19410
# Used to examine libraries when file_magic_cmd begins "file"
19411
MAGIC_CMD=$MAGIC_CMD
19413
# Used on cygwin: DLL creation program.
19416
# Used on cygwin: object dumper.
19419
# Used on cygwin: assembler.
19422
# The name of the directory that contains temporary libtool files.
19425
# How to create reloadable object files.
19426
reload_flag=$lt_reload_flag
19427
reload_cmds=$lt_reload_cmds
19429
# How to pass a linker flag through the compiler.
19430
wl=$lt_lt_prog_compiler_wl_RC
19432
# Object file suffix (normally "o").
19433
objext="$ac_objext"
19435
# Old archive suffix (normally "a").
19438
# Shared library suffix (normally ".so").
19439
shrext_cmds='$shrext_cmds'
19441
# Executable file suffix (normally "").
19444
# Additional compiler flags for building library objects.
19445
pic_flag=$lt_lt_prog_compiler_pic_RC
19448
# What is the maximum length of a command?
19449
max_cmd_len=$lt_cv_sys_max_cmd_len
19451
# Does compiler simultaneously support -c and -o options?
19452
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19454
# Must we lock files when doing compilation?
19455
need_locks=$lt_need_locks
19457
# Do we need the lib prefix for modules?
19458
need_lib_prefix=$need_lib_prefix
19460
# Do we need a version for libraries?
19461
need_version=$need_version
19463
# Whether dlopen is supported.
19464
dlopen_support=$enable_dlopen
19466
# Whether dlopen of programs is supported.
19467
dlopen_self=$enable_dlopen_self
19469
# Whether dlopen of statically linked programs is supported.
19470
dlopen_self_static=$enable_dlopen_self_static
19472
# Compiler flag to prevent dynamic linking.
19473
link_static_flag=$lt_lt_prog_compiler_static_RC
19475
# Compiler flag to turn off builtin functions.
19476
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19478
# Compiler flag to allow reflexive dlopens.
19479
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19481
# Compiler flag to generate shared objects directly from archives.
19482
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19484
# Compiler flag to generate thread-safe objects.
19485
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19487
# Library versioning type.
19488
version_type=$version_type
19490
# Format of library name prefix.
19491
libname_spec=$lt_libname_spec
19493
# List of archive names. First name is the real one, the rest are links.
19494
# The last name is the one that the linker finds with -lNAME.
19495
library_names_spec=$lt_library_names_spec
19497
# The coded name of the library, if different from the real name.
19498
soname_spec=$lt_soname_spec
19500
# Commands used to build and install an old-style archive.
19502
old_archive_cmds=$lt_old_archive_cmds_RC
19503
old_postinstall_cmds=$lt_old_postinstall_cmds
19504
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19506
# Create an old-style archive from a shared archive.
19507
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19509
# Create a temporary old-style archive to link instead of a shared archive.
19510
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19512
# Commands used to build and install a shared archive.
19513
archive_cmds=$lt_archive_cmds_RC
19514
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19515
postinstall_cmds=$lt_postinstall_cmds
19516
postuninstall_cmds=$lt_postuninstall_cmds
19518
# Commands used to build a loadable module (assumed same as above if empty)
19519
module_cmds=$lt_module_cmds_RC
19520
module_expsym_cmds=$lt_module_expsym_cmds_RC
19522
# Commands to strip libraries.
19523
old_striplib=$lt_old_striplib
19524
striplib=$lt_striplib
19526
# Dependencies to place before the objects being linked to create a
19528
predep_objects=$lt_predep_objects_RC
19530
# Dependencies to place after the objects being linked to create a
19532
postdep_objects=$lt_postdep_objects_RC
19534
# Dependencies to place before the objects being linked to create a
19536
predeps=$lt_predeps_RC
19538
# Dependencies to place after the objects being linked to create a
19540
postdeps=$lt_postdeps_RC
19542
# The directories searched by this compiler when creating a shared
19544
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19546
# The library search path used internally by the compiler when linking
19547
# a shared library.
19548
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19550
# Method to check whether dependent libraries are shared objects.
19551
deplibs_check_method=$lt_deplibs_check_method
19553
# Command to use when deplibs_check_method == file_magic.
19554
file_magic_cmd=$lt_file_magic_cmd
19556
# Flag that allows shared libraries with undefined symbols to be built.
19557
allow_undefined_flag=$lt_allow_undefined_flag_RC
19559
# Flag that forces no undefined symbols.
19560
no_undefined_flag=$lt_no_undefined_flag_RC
19562
# Commands used to finish a libtool library installation in a directory.
19563
finish_cmds=$lt_finish_cmds
19565
# Same as above, but a single script fragment to be evaled but not shown.
19566
finish_eval=$lt_finish_eval
19568
# Take the output of nm and produce a listing of raw symbols and C names.
19569
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19571
# Transform the output of nm in a proper C declaration
19572
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19574
# Transform the output of nm in a C name address pair
19575
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19577
# This is the shared library runtime path variable.
19578
runpath_var=$runpath_var
19580
# This is the shared library path variable.
19581
shlibpath_var=$shlibpath_var
19583
# Is shlibpath searched before the hard-coded library search path?
19584
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19586
# How to hardcode a shared library path into an executable.
19587
hardcode_action=$hardcode_action_RC
19589
# Whether we should hardcode library paths into libraries.
19590
hardcode_into_libs=$hardcode_into_libs
19592
# Flag to hardcode \$libdir into a binary during linking.
19593
# This must work even if \$libdir does not exist.
19594
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19596
# If ld is used when linking, flag to hardcode \$libdir into
19597
# a binary during linking. This must work even if \$libdir does
19599
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19601
# Whether we need a single -rpath flag with a separated argument.
19602
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19604
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19605
# resulting binary.
19606
hardcode_direct=$hardcode_direct_RC
19608
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19609
# resulting binary.
19610
hardcode_minus_L=$hardcode_minus_L_RC
19612
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19613
# the resulting binary.
19614
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19616
# Set to yes if building a shared library automatically hardcodes DIR into the library
19617
# and all subsequent libraries and executables linked against it.
19618
hardcode_automatic=$hardcode_automatic_RC
19620
# Variables whose values should be saved in libtool wrapper scripts and
19621
# restored at relink time.
19622
variables_saved_for_relink="$variables_saved_for_relink"
19624
# Whether libtool must link a program against all its dependency libraries.
19625
link_all_deplibs=$link_all_deplibs_RC
19627
# Compile-time system search path for libraries
19628
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19630
# Run-time system search path for libraries
19631
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19633
# Fix the shell variable \$srcfile for the compiler.
19634
fix_srcfile_path=$lt_fix_srcfile_path
19636
# Set to yes if exported symbols are required.
19637
always_export_symbols=$always_export_symbols_RC
19639
# The commands to list exported symbols.
19640
export_symbols_cmds=$lt_export_symbols_cmds_RC
19642
# The commands to extract the exported symbol list from a shared archive.
19643
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19645
# Symbols that should not be listed in the preloaded symbols.
19646
exclude_expsyms=$lt_exclude_expsyms_RC
19648
# Symbols that must always be exported.
19649
include_expsyms=$lt_include_expsyms_RC
19651
# ### END LIBTOOL TAG CONFIG: $tagname
19657
# If there is no Makefile yet, we rely on a make rule to execute
19658
# `config.status --recheck' to rerun these tests and create the
19659
# libtool script then.
19660
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19661
if test -f "$ltmain_in"; then
19662
test -f Makefile && make "$ltmain"
19668
ac_cpp='$CPP $CPPFLAGS'
19669
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19670
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19671
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19678
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19679
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19680
{ (exit 1); exit 1; }; }
19684
# Append the new tag name to the list of available tags.
19685
if test -n "$tagname" ; then
19686
available_tags="$available_tags $tagname"
19692
# Now substitute the updated list of available tags.
19693
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19694
mv "${ofile}T" "$ofile"
19698
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19699
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19700
{ (exit 1); exit 1; }; }
19706
# This can be used to rebuild libtool when needed
19707
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19709
# Always use our own libtool.
19710
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19712
# Prevent multiple expansion
19735
for ac_header in unistd_h
19737
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19738
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19739
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19740
$as_echo_n "checking for $ac_header... " >&6; }
19741
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19742
$as_echo_n "(cached) " >&6
19744
ac_res=`eval 'as_val=${'$as_ac_Header'}
19745
$as_echo "$as_val"'`
19746
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19747
$as_echo "$ac_res" >&6; }
19749
# Is the header compilable?
19750
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19751
$as_echo_n "checking $ac_header usability... " >&6; }
19752
cat >conftest.$ac_ext <<_ACEOF
19755
cat confdefs.h >>conftest.$ac_ext
19756
cat >>conftest.$ac_ext <<_ACEOF
19757
/* end confdefs.h. */
19758
$ac_includes_default
19759
#include <$ac_header>
19761
rm -f conftest.$ac_objext
19762
if { (ac_try="$ac_compile"
19763
case "(($ac_try" in
19764
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765
*) ac_try_echo=$ac_try;;
19767
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19768
$as_echo "$ac_try_echo") >&5
19769
(eval "$ac_compile") 2>conftest.er1
19771
grep -v '^ *+' conftest.er1 >conftest.err
19773
cat conftest.err >&5
19774
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775
(exit $ac_status); } && {
19776
test -z "$ac_c_werror_flag" ||
19777
test ! -s conftest.err
19778
} && test -s conftest.$ac_objext; then
19779
ac_header_compiler=yes
19781
$as_echo "$as_me: failed program was:" >&5
19782
sed 's/^/| /' conftest.$ac_ext >&5
19784
ac_header_compiler=no
19787
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19788
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19789
$as_echo "$ac_header_compiler" >&6; }
19791
# Is the header present?
19792
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19793
$as_echo_n "checking $ac_header presence... " >&6; }
19794
cat >conftest.$ac_ext <<_ACEOF
19797
cat confdefs.h >>conftest.$ac_ext
19798
cat >>conftest.$ac_ext <<_ACEOF
19799
/* end confdefs.h. */
19800
#include <$ac_header>
19802
if { (ac_try="$ac_cpp conftest.$ac_ext"
19803
case "(($ac_try" in
19804
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805
*) ac_try_echo=$ac_try;;
19807
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19808
$as_echo "$ac_try_echo") >&5
19809
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19811
grep -v '^ *+' conftest.er1 >conftest.err
19813
cat conftest.err >&5
19814
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815
(exit $ac_status); } >/dev/null && {
19816
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19817
test ! -s conftest.err
19819
ac_header_preproc=yes
19821
$as_echo "$as_me: failed program was:" >&5
19822
sed 's/^/| /' conftest.$ac_ext >&5
19824
ac_header_preproc=no
19827
rm -f conftest.err conftest.$ac_ext
19828
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19829
$as_echo "$ac_header_preproc" >&6; }
19831
# So? What about this header?
19832
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19834
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19835
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19836
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19837
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19838
ac_header_preproc=yes
19841
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19842
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19843
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19844
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19845
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19846
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19847
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19848
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19849
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19850
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19851
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19852
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19856
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19857
$as_echo_n "checking for $ac_header... " >&6; }
19858
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19859
$as_echo_n "(cached) " >&6
19861
eval "$as_ac_Header=\$ac_header_preproc"
19863
ac_res=`eval 'as_val=${'$as_ac_Header'}
19864
$as_echo "$as_val"'`
19865
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19866
$as_echo "$ac_res" >&6; }
19869
as_val=`eval 'as_val=${'$as_ac_Header'}
19870
$as_echo "$as_val"'`
19871
if test "x$as_val" = x""yes; then
19872
cat >>confdefs.h <<_ACEOF
19873
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19881
{ $as_echo "$as_me:$LINENO: checking for getpagesize" >&5
19882
$as_echo_n "checking for getpagesize... " >&6; }
19883
if test "${cl_cv_func_getpagesize+set}" = set; then
19884
$as_echo_n "(cached) " >&6
19886
cat >conftest.$ac_ext <<_ACEOF
19889
cat confdefs.h >>conftest.$ac_ext
19890
cat >>conftest.$ac_ext <<_ACEOF
19891
/* end confdefs.h. */
19893
#ifdef HAVE_UNISTD_H
19894
#include <sys/types.h>
19895
#include <unistd.h>
19906
rm -f conftest.$ac_objext conftest$ac_exeext
19907
if { (ac_try="$ac_link"
19908
case "(($ac_try" in
19909
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910
*) ac_try_echo=$ac_try;;
19912
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19913
$as_echo "$ac_try_echo") >&5
19914
(eval "$ac_link") 2>conftest.er1
19916
grep -v '^ *+' conftest.er1 >conftest.err
19918
cat conftest.err >&5
19919
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920
(exit $ac_status); } && {
19921
test -z "$ac_c_werror_flag" ||
19922
test ! -s conftest.err
19923
} && test -s conftest$ac_exeext && {
19924
test "$cross_compiling" = yes ||
19925
$as_test_x conftest$ac_exeext
19927
cl_cv_func_getpagesize=yes
19929
$as_echo "$as_me: failed program was:" >&5
19930
sed 's/^/| /' conftest.$ac_ext >&5
19932
cl_cv_func_getpagesize=no
19935
rm -rf conftest.dSYM
19936
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19937
conftest$ac_exeext conftest.$ac_ext
19939
{ $as_echo "$as_me:$LINENO: result: $cl_cv_func_getpagesize" >&5
19940
$as_echo "$cl_cv_func_getpagesize" >&6; }
19941
if test $cl_cv_func_getpagesize = yes; then
19943
cat >>confdefs.h <<\_ACEOF
19944
#define HAVE_GETPAGESIZE /**/
19950
if test -n "$have_getpagesize"; then
19951
{ $as_echo "$as_me:$LINENO: checking for getpagesize declaration" >&5
19952
$as_echo_n "checking for getpagesize declaration... " >&6; }
19953
if test "${cl_cv_proto_getpagesize+set}" = set; then
19954
$as_echo_n "(cached) " >&6
19957
cat >conftest.$ac_ext <<_ACEOF
19960
cat confdefs.h >>conftest.$ac_ext
19961
cat >>conftest.$ac_ext <<_ACEOF
19962
/* end confdefs.h. */
19964
#include <stdlib.h>
19965
#ifdef HAVE_UNISTD_H
19966
#include <unistd.h>
19984
rm -f conftest.$ac_objext
19985
if { (ac_try="$ac_compile"
19986
case "(($ac_try" in
19987
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988
*) ac_try_echo=$ac_try;;
19990
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19991
$as_echo "$ac_try_echo") >&5
19992
(eval "$ac_compile") 2>conftest.er1
19994
grep -v '^ *+' conftest.er1 >conftest.err
19996
cat conftest.err >&5
19997
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998
(exit $ac_status); } && {
19999
test -z "$ac_c_werror_flag" ||
20000
test ! -s conftest.err
20001
} && test -s conftest.$ac_objext; then
20002
cl_cv_proto_getpagesize_ret="int"
20004
$as_echo "$as_me: failed program was:" >&5
20005
sed 's/^/| /' conftest.$ac_ext >&5
20007
cl_cv_proto_getpagesize_ret="size_t"
20010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20013
cl_cv_proto_getpagesize="extern $cl_cv_proto_getpagesize_ret getpagesize (void);"
20016
cl_cv_proto_getpagesize=`echo "$cl_cv_proto_getpagesize" | tr -s ' ' | sed -e 's/( /(/'`
20017
{ $as_echo "$as_me:$LINENO: result: ${ac_t:-
20018
}$cl_cv_proto_getpagesize" >&5
20020
}$cl_cv_proto_getpagesize" >&6; }
20023
cat >>confdefs.h <<_ACEOF
20024
#define RETGETPAGESIZETYPE $cl_cv_proto_getpagesize_ret
20029
for ac_header in sys/param.h
20031
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20032
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20033
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20034
$as_echo_n "checking for $ac_header... " >&6; }
20035
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20036
$as_echo_n "(cached) " >&6
20038
ac_res=`eval 'as_val=${'$as_ac_Header'}
20039
$as_echo "$as_val"'`
20040
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20041
$as_echo "$ac_res" >&6; }
20043
# Is the header compilable?
20044
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20045
$as_echo_n "checking $ac_header usability... " >&6; }
20046
cat >conftest.$ac_ext <<_ACEOF
20049
cat confdefs.h >>conftest.$ac_ext
20050
cat >>conftest.$ac_ext <<_ACEOF
20051
/* end confdefs.h. */
20052
$ac_includes_default
20053
#include <$ac_header>
20055
rm -f conftest.$ac_objext
20056
if { (ac_try="$ac_compile"
20057
case "(($ac_try" in
20058
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059
*) ac_try_echo=$ac_try;;
20061
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20062
$as_echo "$ac_try_echo") >&5
20063
(eval "$ac_compile") 2>conftest.er1
20065
grep -v '^ *+' conftest.er1 >conftest.err
20067
cat conftest.err >&5
20068
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069
(exit $ac_status); } && {
20070
test -z "$ac_c_werror_flag" ||
20071
test ! -s conftest.err
20072
} && test -s conftest.$ac_objext; then
20073
ac_header_compiler=yes
20075
$as_echo "$as_me: failed program was:" >&5
20076
sed 's/^/| /' conftest.$ac_ext >&5
20078
ac_header_compiler=no
20081
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20082
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20083
$as_echo "$ac_header_compiler" >&6; }
20085
# Is the header present?
20086
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20087
$as_echo_n "checking $ac_header presence... " >&6; }
20088
cat >conftest.$ac_ext <<_ACEOF
20091
cat confdefs.h >>conftest.$ac_ext
20092
cat >>conftest.$ac_ext <<_ACEOF
20093
/* end confdefs.h. */
20094
#include <$ac_header>
20096
if { (ac_try="$ac_cpp conftest.$ac_ext"
20097
case "(($ac_try" in
20098
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099
*) ac_try_echo=$ac_try;;
20101
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20102
$as_echo "$ac_try_echo") >&5
20103
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20105
grep -v '^ *+' conftest.er1 >conftest.err
20107
cat conftest.err >&5
20108
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109
(exit $ac_status); } >/dev/null && {
20110
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20111
test ! -s conftest.err
20113
ac_header_preproc=yes
20115
$as_echo "$as_me: failed program was:" >&5
20116
sed 's/^/| /' conftest.$ac_ext >&5
20118
ac_header_preproc=no
20121
rm -f conftest.err conftest.$ac_ext
20122
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20123
$as_echo "$ac_header_preproc" >&6; }
20125
# So? What about this header?
20126
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20128
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20129
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20130
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20131
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20132
ac_header_preproc=yes
20135
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20136
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20137
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20138
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20139
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20140
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20141
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20142
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20143
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20144
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20145
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20146
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20150
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20151
$as_echo_n "checking for $ac_header... " >&6; }
20152
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20153
$as_echo_n "(cached) " >&6
20155
eval "$as_ac_Header=\$ac_header_preproc"
20157
ac_res=`eval 'as_val=${'$as_ac_Header'}
20158
$as_echo "$as_val"'`
20159
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20160
$as_echo "$ac_res" >&6; }
20163
as_val=`eval 'as_val=${'$as_ac_Header'}
20164
$as_echo "$as_val"'`
20165
if test "x$as_val" = x""yes; then
20166
cat >>confdefs.h <<_ACEOF
20167
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20176
{ $as_echo "$as_me:$LINENO: checking for vm_allocate" >&5
20177
$as_echo_n "checking for vm_allocate... " >&6; }
20178
if test "${cl_cv_func_vm+set}" = set; then
20179
$as_echo_n "(cached) " >&6
20181
cat >conftest.$ac_ext <<_ACEOF
20184
cat confdefs.h >>conftest.$ac_ext
20185
cat >>conftest.$ac_ext <<_ACEOF
20186
/* end confdefs.h. */
20191
vm_allocate(); task_self();
20196
rm -f conftest.$ac_objext conftest$ac_exeext
20197
if { (ac_try="$ac_link"
20198
case "(($ac_try" in
20199
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200
*) ac_try_echo=$ac_try;;
20202
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20203
$as_echo "$ac_try_echo") >&5
20204
(eval "$ac_link") 2>conftest.er1
20206
grep -v '^ *+' conftest.er1 >conftest.err
20208
cat conftest.err >&5
20209
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210
(exit $ac_status); } && {
20211
test -z "$ac_c_werror_flag" ||
20212
test ! -s conftest.err
20213
} && test -s conftest$ac_exeext && {
20214
test "$cross_compiling" = yes ||
20215
$as_test_x conftest$ac_exeext
20219
$as_echo "$as_me: failed program was:" >&5
20220
sed 's/^/| /' conftest.$ac_ext >&5
20225
rm -rf conftest.dSYM
20226
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20227
conftest$ac_exeext conftest.$ac_ext
20229
{ $as_echo "$as_me:$LINENO: result: $cl_cv_func_vm" >&5
20230
$as_echo "$cl_cv_func_vm" >&6; }
20231
if test $cl_cv_func_vm = yes; then
20233
cat >>confdefs.h <<\_ACEOF
20234
#define HAVE_MACH_VM /**/
20241
if test "${ac_cv_header_sys_mman_h+set}" = set; then
20242
{ $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
20243
$as_echo_n "checking for sys/mman.h... " >&6; }
20244
if test "${ac_cv_header_sys_mman_h+set}" = set; then
20245
$as_echo_n "(cached) " >&6
20247
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
20248
$as_echo "$ac_cv_header_sys_mman_h" >&6; }
20250
# Is the header compilable?
20251
{ $as_echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
20252
$as_echo_n "checking sys/mman.h usability... " >&6; }
20253
cat >conftest.$ac_ext <<_ACEOF
20256
cat confdefs.h >>conftest.$ac_ext
20257
cat >>conftest.$ac_ext <<_ACEOF
20258
/* end confdefs.h. */
20259
$ac_includes_default
20260
#include <sys/mman.h>
20262
rm -f conftest.$ac_objext
20263
if { (ac_try="$ac_compile"
20264
case "(($ac_try" in
20265
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266
*) ac_try_echo=$ac_try;;
20268
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20269
$as_echo "$ac_try_echo") >&5
20270
(eval "$ac_compile") 2>conftest.er1
20272
grep -v '^ *+' conftest.er1 >conftest.err
20274
cat conftest.err >&5
20275
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276
(exit $ac_status); } && {
20277
test -z "$ac_c_werror_flag" ||
20278
test ! -s conftest.err
20279
} && test -s conftest.$ac_objext; then
20280
ac_header_compiler=yes
20282
$as_echo "$as_me: failed program was:" >&5
20283
sed 's/^/| /' conftest.$ac_ext >&5
20285
ac_header_compiler=no
20288
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20289
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20290
$as_echo "$ac_header_compiler" >&6; }
20292
# Is the header present?
20293
{ $as_echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
20294
$as_echo_n "checking sys/mman.h presence... " >&6; }
20295
cat >conftest.$ac_ext <<_ACEOF
20298
cat confdefs.h >>conftest.$ac_ext
20299
cat >>conftest.$ac_ext <<_ACEOF
20300
/* end confdefs.h. */
20301
#include <sys/mman.h>
20303
if { (ac_try="$ac_cpp conftest.$ac_ext"
20304
case "(($ac_try" in
20305
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306
*) ac_try_echo=$ac_try;;
20308
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20309
$as_echo "$ac_try_echo") >&5
20310
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20312
grep -v '^ *+' conftest.er1 >conftest.err
20314
cat conftest.err >&5
20315
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316
(exit $ac_status); } >/dev/null && {
20317
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20318
test ! -s conftest.err
20320
ac_header_preproc=yes
20322
$as_echo "$as_me: failed program was:" >&5
20323
sed 's/^/| /' conftest.$ac_ext >&5
20325
ac_header_preproc=no
20328
rm -f conftest.err conftest.$ac_ext
20329
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20330
$as_echo "$ac_header_preproc" >&6; }
20332
# So? What about this header?
20333
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20335
{ $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
20336
$as_echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20337
{ $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
20338
$as_echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
20339
ac_header_preproc=yes
20342
{ $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
20343
$as_echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
20344
{ $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
20345
$as_echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
20346
{ $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
20347
$as_echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
20348
{ $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
20349
$as_echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
20350
{ $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
20351
$as_echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
20352
{ $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
20353
$as_echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
20357
{ $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
20358
$as_echo_n "checking for sys/mman.h... " >&6; }
20359
if test "${ac_cv_header_sys_mman_h+set}" = set; then
20360
$as_echo_n "(cached) " >&6
20362
ac_cv_header_sys_mman_h=$ac_header_preproc
20364
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
20365
$as_echo "$ac_cv_header_sys_mman_h" >&6; }
20368
if test "x$ac_cv_header_sys_mman_h" = x""yes; then
20374
if test -z "$no_mmap"; then
20375
{ $as_echo "$as_me:$LINENO: checking for mmap" >&5
20376
$as_echo_n "checking for mmap... " >&6; }
20377
if test "${ac_cv_func_mmap+set}" = set; then
20378
$as_echo_n "(cached) " >&6
20380
cat >conftest.$ac_ext <<_ACEOF
20383
cat confdefs.h >>conftest.$ac_ext
20384
cat >>conftest.$ac_ext <<_ACEOF
20385
/* end confdefs.h. */
20386
/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
20387
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20388
#define mmap innocuous_mmap
20390
/* System header to define __stub macros and hopefully few prototypes,
20391
which can conflict with char mmap (); below.
20392
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20393
<limits.h> exists even on freestanding compilers. */
20396
# include <limits.h>
20398
# include <assert.h>
20403
/* Override any GCC internal prototype to avoid an error.
20404
Use char because int might match the return type of a GCC
20405
builtin and then its argument prototype would still apply. */
20410
/* The GNU C library defines this for functions which it implements
20411
to always fail with ENOSYS. Some functions are actually named
20412
something starting with __ and the normal name is an alias. */
20413
#if defined __stub_mmap || defined __stub___mmap
20425
rm -f conftest.$ac_objext conftest$ac_exeext
20426
if { (ac_try="$ac_link"
20427
case "(($ac_try" in
20428
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429
*) ac_try_echo=$ac_try;;
20431
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20432
$as_echo "$ac_try_echo") >&5
20433
(eval "$ac_link") 2>conftest.er1
20435
grep -v '^ *+' conftest.er1 >conftest.err
20437
cat conftest.err >&5
20438
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439
(exit $ac_status); } && {
20440
test -z "$ac_c_werror_flag" ||
20441
test ! -s conftest.err
20442
} && test -s conftest$ac_exeext && {
20443
test "$cross_compiling" = yes ||
20444
$as_test_x conftest$ac_exeext
20446
ac_cv_func_mmap=yes
20448
$as_echo "$as_me: failed program was:" >&5
20449
sed 's/^/| /' conftest.$ac_ext >&5
20454
rm -rf conftest.dSYM
20455
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20456
conftest$ac_exeext conftest.$ac_ext
20458
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
20459
$as_echo "$ac_cv_func_mmap" >&6; }
20460
if test "x$ac_cv_func_mmap" = x""yes; then
20465
if test -z "$no_mmap"; then
20467
cat >>confdefs.h <<\_ACEOF
20468
#define HAVE_MMAP /**/
20471
{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
20472
$as_echo_n "checking for working mmap... " >&6; }
20473
if test "${cl_cv_func_mmap_works+set}" = set; then
20474
$as_echo_n "(cached) " >&6
20480
avoid=0x08000000 ;;
20481
mips-sgi-irix* | mips-dec-ultrix*)
20482
# UNIX_IRIX, UNIX_DEC_ULTRIX
20483
avoid=0x10000000 ;;
20486
avoid=0x20000000 ;;
20491
#include <stdlib.h>
20492
#ifdef HAVE_UNISTD_H
20493
#include <unistd.h>
20496
#include <sys/types.h>
20497
#include <sys/mman.h>
20500
mmap_prog_2="#define bits_to_avoid $avoid"'
20501
#define my_shift 24
20505
#define my_size 32768 /* hope that 32768 is a multiple of the page size */
20506
/* i*32 KB for i=1..31 gives a total of 15.5 MB, which is close to what we need */
20509
#define my_size 8192 /* hope that 8192 is a multiple of the page size */
20510
/* i*8 KB for i=1..64 gives a total of 16.25 MB, which is close to what we need */
20513
#define i_ok(i) ((i) & (bits_to_avoid >> my_shift) == 0)
20514
for (i=my_low; i<=my_high; i++)
20516
{ caddr_t addr = (caddr_t)(i << my_shift);
20517
/* Check for 8 MB, not 16 MB. This is more likely to work on Solaris 2. */
20519
long size = i*my_size;
20521
long size = ((i+1)/2)*my_size;
20523
if (mmap(addr,size,PROT_READ|PROT_WRITE,flags|MAP_FIXED,fd,0) == (void*)-1) exit(1);
20525
#define x(i) *(unsigned char *) ((i<<my_shift) + (i*i))
20526
#define y(i) (unsigned char)((3*i-4)*(7*i+3))
20527
for (i=my_low; i<=my_high; i++) if (i_ok(i)) { x(i) = y(i); }
20528
for (i=my_high; i>=my_low; i--) if (i_ok(i)) { if (x(i) != y(i)) exit(1); }
20532
if test "$cross_compiling" = yes; then
20533
: # When cross-compiling, don't assume anything.
20536
cat >conftest.$ac_ext <<_ACEOF
20539
cat confdefs.h >>conftest.$ac_ext
20540
cat >>conftest.$ac_ext <<_ACEOF
20541
/* end confdefs.h. */
20543
#include <stdlib.h>
20544
#if defined __MACH__ && defined __APPLE__
20545
/* Avoid a crash on MacOS X. */
20546
#include <mach/mach.h>
20547
#include <mach/mach_error.h>
20548
#include <mach/thread_status.h>
20549
#include <mach/exception.h>
20550
#include <mach/task.h>
20551
#include <pthread.h>
20552
/* The exception port on which our thread listens. */
20553
static mach_port_t our_exception_port;
20554
/* The main function of the thread listening for exceptions of type
20557
mach_exception_thread (void *arg)
20559
/* Buffer for a message to be received. */
20561
mach_msg_header_t head;
20562
mach_msg_body_t msgh_body;
20565
mach_msg_return_t retval;
20566
/* Wait for a message on the exception port. */
20567
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
20568
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
20569
if (retval != MACH_MSG_SUCCESS)
20574
nocrash_init (void)
20576
mach_port_t self = mach_task_self ();
20577
/* Allocate a port on which the thread shall listen for exceptions. */
20578
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
20580
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
20581
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
20582
MACH_MSG_TYPE_MAKE_SEND)
20584
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
20586
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
20587
/* Create the thread listening on the exception port. */
20588
pthread_attr_t attr;
20590
if (pthread_attr_init (&attr) == 0
20591
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
20592
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
20593
pthread_attr_destroy (&attr);
20594
/* Replace the exception port info for these exceptions with our own.
20595
Note that we replace the exception port for the entire task, not only
20596
for a particular thread. This has the effect that when our exception
20597
port gets the message, the thread specific exception port has already
20598
been asked, and we don't need to bother about it.
20599
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
20600
task_set_exception_ports (self, mask, our_exception_port,
20601
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
20607
/* Avoid a crash on POSIX systems. */
20608
#include <signal.h>
20609
/* A POSIX signal handler. */
20611
exception_handler (int sig)
20616
nocrash_init (void)
20619
signal (SIGSEGV, exception_handler);
20622
signal (SIGBUS, exception_handler);
20627
int flags = MAP_ANON | MAP_PRIVATE;
20633
rm -f conftest$ac_exeext
20634
if { (ac_try="$ac_link"
20635
case "(($ac_try" in
20636
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637
*) ac_try_echo=$ac_try;;
20639
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20640
$as_echo "$ac_try_echo") >&5
20641
(eval "$ac_link") 2>&5
20643
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20645
{ (case "(($ac_try" in
20646
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647
*) ac_try_echo=$ac_try;;
20649
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20650
$as_echo "$ac_try_echo") >&5
20651
(eval "$ac_try") 2>&5
20653
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654
(exit $ac_status); }; }; then
20656
cl_cv_func_mmap_anon=yes
20658
$as_echo "$as_me: program exited with status $ac_status" >&5
20659
$as_echo "$as_me: failed program was:" >&5
20660
sed 's/^/| /' conftest.$ac_ext >&5
20663
rm -rf conftest.dSYM
20664
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20668
if test "$cross_compiling" = yes; then
20669
: # When cross-compiling, don't assume anything.
20672
cat >conftest.$ac_ext <<_ACEOF
20675
cat confdefs.h >>conftest.$ac_ext
20676
cat >>conftest.$ac_ext <<_ACEOF
20677
/* end confdefs.h. */
20679
#include <stdlib.h>
20680
#if defined __MACH__ && defined __APPLE__
20681
/* Avoid a crash on MacOS X. */
20682
#include <mach/mach.h>
20683
#include <mach/mach_error.h>
20684
#include <mach/thread_status.h>
20685
#include <mach/exception.h>
20686
#include <mach/task.h>
20687
#include <pthread.h>
20688
/* The exception port on which our thread listens. */
20689
static mach_port_t our_exception_port;
20690
/* The main function of the thread listening for exceptions of type
20693
mach_exception_thread (void *arg)
20695
/* Buffer for a message to be received. */
20697
mach_msg_header_t head;
20698
mach_msg_body_t msgh_body;
20701
mach_msg_return_t retval;
20702
/* Wait for a message on the exception port. */
20703
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
20704
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
20705
if (retval != MACH_MSG_SUCCESS)
20710
nocrash_init (void)
20712
mach_port_t self = mach_task_self ();
20713
/* Allocate a port on which the thread shall listen for exceptions. */
20714
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
20716
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
20717
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
20718
MACH_MSG_TYPE_MAKE_SEND)
20720
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
20722
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
20723
/* Create the thread listening on the exception port. */
20724
pthread_attr_t attr;
20726
if (pthread_attr_init (&attr) == 0
20727
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
20728
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
20729
pthread_attr_destroy (&attr);
20730
/* Replace the exception port info for these exceptions with our own.
20731
Note that we replace the exception port for the entire task, not only
20732
for a particular thread. This has the effect that when our exception
20733
port gets the message, the thread specific exception port has already
20734
been asked, and we don't need to bother about it.
20735
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
20736
task_set_exception_ports (self, mask, our_exception_port,
20737
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
20743
/* Avoid a crash on POSIX systems. */
20744
#include <signal.h>
20745
/* A POSIX signal handler. */
20747
exception_handler (int sig)
20752
nocrash_init (void)
20755
signal (SIGSEGV, exception_handler);
20758
signal (SIGBUS, exception_handler);
20763
int flags = MAP_ANONYMOUS | MAP_PRIVATE;
20769
rm -f conftest$ac_exeext
20770
if { (ac_try="$ac_link"
20771
case "(($ac_try" in
20772
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773
*) ac_try_echo=$ac_try;;
20775
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20776
$as_echo "$ac_try_echo") >&5
20777
(eval "$ac_link") 2>&5
20779
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20781
{ (case "(($ac_try" in
20782
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783
*) ac_try_echo=$ac_try;;
20785
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20786
$as_echo "$ac_try_echo") >&5
20787
(eval "$ac_try") 2>&5
20789
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790
(exit $ac_status); }; }; then
20792
cl_cv_func_mmap_anonymous=yes
20794
$as_echo "$as_me: program exited with status $ac_status" >&5
20795
$as_echo "$as_me: failed program was:" >&5
20796
sed 's/^/| /' conftest.$ac_ext >&5
20799
rm -rf conftest.dSYM
20800
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20804
if test "$cross_compiling" = yes; then
20805
: # When cross-compiling, don't assume anything.
20808
cat >conftest.$ac_ext <<_ACEOF
20811
cat confdefs.h >>conftest.$ac_ext
20812
cat >>conftest.$ac_ext <<_ACEOF
20813
/* end confdefs.h. */
20815
#include <stdlib.h>
20816
#if defined __MACH__ && defined __APPLE__
20817
/* Avoid a crash on MacOS X. */
20818
#include <mach/mach.h>
20819
#include <mach/mach_error.h>
20820
#include <mach/thread_status.h>
20821
#include <mach/exception.h>
20822
#include <mach/task.h>
20823
#include <pthread.h>
20824
/* The exception port on which our thread listens. */
20825
static mach_port_t our_exception_port;
20826
/* The main function of the thread listening for exceptions of type
20829
mach_exception_thread (void *arg)
20831
/* Buffer for a message to be received. */
20833
mach_msg_header_t head;
20834
mach_msg_body_t msgh_body;
20837
mach_msg_return_t retval;
20838
/* Wait for a message on the exception port. */
20839
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
20840
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
20841
if (retval != MACH_MSG_SUCCESS)
20846
nocrash_init (void)
20848
mach_port_t self = mach_task_self ();
20849
/* Allocate a port on which the thread shall listen for exceptions. */
20850
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
20852
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
20853
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
20854
MACH_MSG_TYPE_MAKE_SEND)
20856
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
20858
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
20859
/* Create the thread listening on the exception port. */
20860
pthread_attr_t attr;
20862
if (pthread_attr_init (&attr) == 0
20863
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
20864
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
20865
pthread_attr_destroy (&attr);
20866
/* Replace the exception port info for these exceptions with our own.
20867
Note that we replace the exception port for the entire task, not only
20868
for a particular thread. This has the effect that when our exception
20869
port gets the message, the thread specific exception port has already
20870
been asked, and we don't need to bother about it.
20871
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
20872
task_set_exception_ports (self, mask, our_exception_port,
20873
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
20879
/* Avoid a crash on POSIX systems. */
20880
#include <signal.h>
20881
/* A POSIX signal handler. */
20883
exception_handler (int sig)
20888
nocrash_init (void)
20891
signal (SIGSEGV, exception_handler);
20894
signal (SIGBUS, exception_handler);
20902
int flags = MAP_FILE | MAP_PRIVATE;
20903
int fd = open("/dev/zero",O_RDONLY,0666);
20909
rm -f conftest$ac_exeext
20910
if { (ac_try="$ac_link"
20911
case "(($ac_try" in
20912
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913
*) ac_try_echo=$ac_try;;
20915
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20916
$as_echo "$ac_try_echo") >&5
20917
(eval "$ac_link") 2>&5
20919
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20921
{ (case "(($ac_try" in
20922
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923
*) ac_try_echo=$ac_try;;
20925
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20926
$as_echo "$ac_try_echo") >&5
20927
(eval "$ac_try") 2>&5
20929
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930
(exit $ac_status); }; }; then
20931
have_mmap_devzero=1
20932
cl_cv_func_mmap_devzero=yes
20934
$as_echo "$as_me: program exited with status $ac_status" >&5
20935
$as_echo "$as_me: failed program was:" >&5
20936
sed 's/^/| /' conftest.$ac_ext >&5
20938
( exit $ac_status )
20941
rm -rf conftest.dSYM
20942
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20946
if test -n "$retry_mmap"; then
20947
if test "$cross_compiling" = yes; then
20948
: # When cross-compiling, don't assume anything.
20951
cat >conftest.$ac_ext <<_ACEOF
20954
cat confdefs.h >>conftest.$ac_ext
20955
cat >>conftest.$ac_ext <<_ACEOF
20956
/* end confdefs.h. */
20958
#include <stdlib.h>
20959
#if defined __MACH__ && defined __APPLE__
20960
/* Avoid a crash on MacOS X. */
20961
#include <mach/mach.h>
20962
#include <mach/mach_error.h>
20963
#include <mach/thread_status.h>
20964
#include <mach/exception.h>
20965
#include <mach/task.h>
20966
#include <pthread.h>
20967
/* The exception port on which our thread listens. */
20968
static mach_port_t our_exception_port;
20969
/* The main function of the thread listening for exceptions of type
20972
mach_exception_thread (void *arg)
20974
/* Buffer for a message to be received. */
20976
mach_msg_header_t head;
20977
mach_msg_body_t msgh_body;
20980
mach_msg_return_t retval;
20981
/* Wait for a message on the exception port. */
20982
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
20983
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
20984
if (retval != MACH_MSG_SUCCESS)
20989
nocrash_init (void)
20991
mach_port_t self = mach_task_self ();
20992
/* Allocate a port on which the thread shall listen for exceptions. */
20993
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
20995
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
20996
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
20997
MACH_MSG_TYPE_MAKE_SEND)
20999
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
21001
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
21002
/* Create the thread listening on the exception port. */
21003
pthread_attr_t attr;
21005
if (pthread_attr_init (&attr) == 0
21006
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
21007
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
21008
pthread_attr_destroy (&attr);
21009
/* Replace the exception port info for these exceptions with our own.
21010
Note that we replace the exception port for the entire task, not only
21011
for a particular thread. This has the effect that when our exception
21012
port gets the message, the thread specific exception port has already
21013
been asked, and we don't need to bother about it.
21014
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
21015
task_set_exception_ports (self, mask, our_exception_port,
21016
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
21022
/* Avoid a crash on POSIX systems. */
21023
#include <signal.h>
21024
/* A POSIX signal handler. */
21026
exception_handler (int sig)
21031
nocrash_init (void)
21034
signal (SIGSEGV, exception_handler);
21037
signal (SIGBUS, exception_handler);
21041
#define FOR_SUN4_29
21046
int flags = MAP_FILE | MAP_PRIVATE;
21047
int fd = open("/dev/zero",O_RDONLY,0666);
21053
rm -f conftest$ac_exeext
21054
if { (ac_try="$ac_link"
21055
case "(($ac_try" in
21056
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057
*) ac_try_echo=$ac_try;;
21059
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21060
$as_echo "$ac_try_echo") >&5
21061
(eval "$ac_link") 2>&5
21063
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21065
{ (case "(($ac_try" in
21066
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067
*) ac_try_echo=$ac_try;;
21069
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21070
$as_echo "$ac_try_echo") >&5
21071
(eval "$ac_try") 2>&5
21073
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074
(exit $ac_status); }; }; then
21075
have_mmap_devzero=1
21076
cl_cv_func_mmap_devzero_sun4_29=yes
21078
$as_echo "$as_me: program exited with status $ac_status" >&5
21079
$as_echo "$as_me: failed program was:" >&5
21080
sed 's/^/| /' conftest.$ac_ext >&5
21083
rm -rf conftest.dSYM
21084
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21089
if test -n "$have_mmap_anon" -o -n "$have_mmap_devzero"; then
21090
cl_cv_func_mmap_works=yes
21092
cl_cv_func_mmap_works=no
21096
{ $as_echo "$as_me:$LINENO: result: $cl_cv_func_mmap_works" >&5
21097
$as_echo "$cl_cv_func_mmap_works" >&6; }
21098
if test "$cl_cv_func_mmap_anon" = yes; then
21100
cat >>confdefs.h <<\_ACEOF
21101
#define HAVE_MMAP_ANON /**/
21105
if test "$cl_cv_func_mmap_anonymous" = yes; then
21107
cat >>confdefs.h <<\_ACEOF
21108
#define HAVE_MMAP_ANONYMOUS /**/
21112
if test "$cl_cv_func_mmap_devzero" = yes; then
21114
cat >>confdefs.h <<\_ACEOF
21115
#define HAVE_MMAP_DEVZERO /**/
21119
if test "$cl_cv_func_mmap_devzero_sun4_29" = yes; then
21121
cat >>confdefs.h <<\_ACEOF
21122
#define HAVE_MMAP_DEVZERO_SUN4_29 /**/
21130
for ac_func in mprotect
21132
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21133
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21134
$as_echo_n "checking for $ac_func... " >&6; }
21135
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21136
$as_echo_n "(cached) " >&6
21138
cat >conftest.$ac_ext <<_ACEOF
21141
cat confdefs.h >>conftest.$ac_ext
21142
cat >>conftest.$ac_ext <<_ACEOF
21143
/* end confdefs.h. */
21144
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21145
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21146
#define $ac_func innocuous_$ac_func
21148
/* System header to define __stub macros and hopefully few prototypes,
21149
which can conflict with char $ac_func (); below.
21150
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21151
<limits.h> exists even on freestanding compilers. */
21154
# include <limits.h>
21156
# include <assert.h>
21161
/* Override any GCC internal prototype to avoid an error.
21162
Use char because int might match the return type of a GCC
21163
builtin and then its argument prototype would still apply. */
21168
/* The GNU C library defines this for functions which it implements
21169
to always fail with ENOSYS. Some functions are actually named
21170
something starting with __ and the normal name is an alias. */
21171
#if defined __stub_$ac_func || defined __stub___$ac_func
21178
return $ac_func ();
21183
rm -f conftest.$ac_objext conftest$ac_exeext
21184
if { (ac_try="$ac_link"
21185
case "(($ac_try" in
21186
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187
*) ac_try_echo=$ac_try;;
21189
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21190
$as_echo "$ac_try_echo") >&5
21191
(eval "$ac_link") 2>conftest.er1
21193
grep -v '^ *+' conftest.er1 >conftest.err
21195
cat conftest.err >&5
21196
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197
(exit $ac_status); } && {
21198
test -z "$ac_c_werror_flag" ||
21199
test ! -s conftest.err
21200
} && test -s conftest$ac_exeext && {
21201
test "$cross_compiling" = yes ||
21202
$as_test_x conftest$ac_exeext
21204
eval "$as_ac_var=yes"
21206
$as_echo "$as_me: failed program was:" >&5
21207
sed 's/^/| /' conftest.$ac_ext >&5
21209
eval "$as_ac_var=no"
21212
rm -rf conftest.dSYM
21213
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21214
conftest$ac_exeext conftest.$ac_ext
21216
ac_res=`eval 'as_val=${'$as_ac_var'}
21217
$as_echo "$as_val"'`
21218
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21219
$as_echo "$ac_res" >&6; }
21220
as_val=`eval 'as_val=${'$as_ac_var'}
21221
$as_echo "$as_val"'`
21222
if test "x$as_val" = x""yes; then
21223
cat >>confdefs.h <<_ACEOF
21224
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21229
if test $ac_cv_func_mprotect = yes; then
21230
{ $as_echo "$as_me:$LINENO: checking for working mprotect" >&5
21231
$as_echo_n "checking for working mprotect... " >&6; }
21232
if test "${cl_cv_func_mprotect_works+set}" = set; then
21233
$as_echo_n "(cached) " >&6
21237
#include <sys/types.h>
21238
/* declare malloc() */
21239
#include <stdlib.h>
21240
#ifdef HAVE_UNISTD_H
21241
#include <unistd.h>
21243
/* declare getpagesize() and mprotect() */
21244
#include <sys/mman.h>
21245
#ifndef HAVE_GETPAGESIZE
21246
#include <sys/param.h>
21247
#define getpagesize() PAGESIZE
21254
RETGETPAGESIZETYPE getpagesize (void);
21258
unsigned long pagesize = getpagesize();
21259
#define page_align(address) (char*)((unsigned long)(address) & -pagesize)
21261
if test "$cross_compiling" = yes; then
21262
# When cross-compiling, don't assume anything.
21265
cat >conftest.$ac_ext <<_ACEOF
21268
cat confdefs.h >>conftest.$ac_ext
21269
cat >>conftest.$ac_ext <<_ACEOF
21270
/* end confdefs.h. */
21272
if ((pagesize-1) & pagesize) exit(1);
21275
rm -f conftest$ac_exeext
21276
if { (ac_try="$ac_link"
21277
case "(($ac_try" in
21278
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279
*) ac_try_echo=$ac_try;;
21281
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21282
$as_echo "$ac_try_echo") >&5
21283
(eval "$ac_link") 2>&5
21285
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21287
{ (case "(($ac_try" in
21288
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289
*) ac_try_echo=$ac_try;;
21291
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21292
$as_echo "$ac_try_echo") >&5
21293
(eval "$ac_try") 2>&5
21295
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296
(exit $ac_status); }; }; then
21299
$as_echo "$as_me: program exited with status $ac_status" >&5
21300
$as_echo "$as_me: failed program was:" >&5
21301
sed 's/^/| /' conftest.$ac_ext >&5
21303
( exit $ac_status )
21306
rm -rf conftest.dSYM
21307
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21311
mprotect_prog="$mprotect_prog"'
21312
char* area = (char*) malloc(6*pagesize);
21313
char* fault_address = area + pagesize*7/2;
21315
if test -z "$no_mprotect"; then
21316
if test "$cross_compiling" = yes; then
21317
: # When cross-compiling, don't assume anything.
21320
cat >conftest.$ac_ext <<_ACEOF
21323
cat confdefs.h >>conftest.$ac_ext
21324
cat >>conftest.$ac_ext <<_ACEOF
21325
/* end confdefs.h. */
21327
#include <stdlib.h>
21328
#if defined __MACH__ && defined __APPLE__
21329
/* Avoid a crash on MacOS X. */
21330
#include <mach/mach.h>
21331
#include <mach/mach_error.h>
21332
#include <mach/thread_status.h>
21333
#include <mach/exception.h>
21334
#include <mach/task.h>
21335
#include <pthread.h>
21336
/* The exception port on which our thread listens. */
21337
static mach_port_t our_exception_port;
21338
/* The main function of the thread listening for exceptions of type
21341
mach_exception_thread (void *arg)
21343
/* Buffer for a message to be received. */
21345
mach_msg_header_t head;
21346
mach_msg_body_t msgh_body;
21349
mach_msg_return_t retval;
21350
/* Wait for a message on the exception port. */
21351
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
21352
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
21353
if (retval != MACH_MSG_SUCCESS)
21358
nocrash_init (void)
21360
mach_port_t self = mach_task_self ();
21361
/* Allocate a port on which the thread shall listen for exceptions. */
21362
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
21364
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
21365
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
21366
MACH_MSG_TYPE_MAKE_SEND)
21368
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
21370
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
21371
/* Create the thread listening on the exception port. */
21372
pthread_attr_t attr;
21374
if (pthread_attr_init (&attr) == 0
21375
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
21376
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
21377
pthread_attr_destroy (&attr);
21378
/* Replace the exception port info for these exceptions with our own.
21379
Note that we replace the exception port for the entire task, not only
21380
for a particular thread. This has the effect that when our exception
21381
port gets the message, the thread specific exception port has already
21382
been asked, and we don't need to bother about it.
21383
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
21384
task_set_exception_ports (self, mask, our_exception_port,
21385
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
21391
/* Avoid a crash on POSIX systems. */
21392
#include <signal.h>
21393
/* A POSIX signal handler. */
21395
exception_handler (int sig)
21400
nocrash_init (void)
21403
signal (SIGSEGV, exception_handler);
21406
signal (SIGBUS, exception_handler);
21412
if (mprotect(page_align(fault_address),pagesize,PROT_NONE) < 0) exit(0);
21413
foo = *fault_address; /* this should cause an exception or signal */
21416
rm -f conftest$ac_exeext
21417
if { (ac_try="$ac_link"
21418
case "(($ac_try" in
21419
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420
*) ac_try_echo=$ac_try;;
21422
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21423
$as_echo "$ac_try_echo") >&5
21424
(eval "$ac_link") 2>&5
21426
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21428
{ (case "(($ac_try" in
21429
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430
*) ac_try_echo=$ac_try;;
21432
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21433
$as_echo "$ac_try_echo") >&5
21434
(eval "$ac_try") 2>&5
21436
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437
(exit $ac_status); }; }; then
21440
$as_echo "$as_me: program exited with status $ac_status" >&5
21441
$as_echo "$as_me: failed program was:" >&5
21442
sed 's/^/| /' conftest.$ac_ext >&5
21445
rm -rf conftest.dSYM
21446
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21451
if test -z "$no_mprotect"; then
21452
if test "$cross_compiling" = yes; then
21453
: # When cross-compiling, don't assume anything.
21456
cat >conftest.$ac_ext <<_ACEOF
21459
cat confdefs.h >>conftest.$ac_ext
21460
cat >>conftest.$ac_ext <<_ACEOF
21461
/* end confdefs.h. */
21463
#include <stdlib.h>
21464
#if defined __MACH__ && defined __APPLE__
21465
/* Avoid a crash on MacOS X. */
21466
#include <mach/mach.h>
21467
#include <mach/mach_error.h>
21468
#include <mach/thread_status.h>
21469
#include <mach/exception.h>
21470
#include <mach/task.h>
21471
#include <pthread.h>
21472
/* The exception port on which our thread listens. */
21473
static mach_port_t our_exception_port;
21474
/* The main function of the thread listening for exceptions of type
21477
mach_exception_thread (void *arg)
21479
/* Buffer for a message to be received. */
21481
mach_msg_header_t head;
21482
mach_msg_body_t msgh_body;
21485
mach_msg_return_t retval;
21486
/* Wait for a message on the exception port. */
21487
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
21488
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
21489
if (retval != MACH_MSG_SUCCESS)
21494
nocrash_init (void)
21496
mach_port_t self = mach_task_self ();
21497
/* Allocate a port on which the thread shall listen for exceptions. */
21498
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
21500
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
21501
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
21502
MACH_MSG_TYPE_MAKE_SEND)
21504
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
21506
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
21507
/* Create the thread listening on the exception port. */
21508
pthread_attr_t attr;
21510
if (pthread_attr_init (&attr) == 0
21511
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
21512
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
21513
pthread_attr_destroy (&attr);
21514
/* Replace the exception port info for these exceptions with our own.
21515
Note that we replace the exception port for the entire task, not only
21516
for a particular thread. This has the effect that when our exception
21517
port gets the message, the thread specific exception port has already
21518
been asked, and we don't need to bother about it.
21519
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
21520
task_set_exception_ports (self, mask, our_exception_port,
21521
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
21527
/* Avoid a crash on POSIX systems. */
21528
#include <signal.h>
21529
/* A POSIX signal handler. */
21531
exception_handler (int sig)
21536
nocrash_init (void)
21539
signal (SIGSEGV, exception_handler);
21542
signal (SIGBUS, exception_handler);
21548
if (mprotect(page_align(fault_address),pagesize,PROT_NONE) < 0) exit(0);
21549
*fault_address = 'z'; /* this should cause an exception or signal */
21552
rm -f conftest$ac_exeext
21553
if { (ac_try="$ac_link"
21554
case "(($ac_try" in
21555
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21556
*) ac_try_echo=$ac_try;;
21558
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21559
$as_echo "$ac_try_echo") >&5
21560
(eval "$ac_link") 2>&5
21562
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21564
{ (case "(($ac_try" in
21565
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566
*) ac_try_echo=$ac_try;;
21568
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21569
$as_echo "$ac_try_echo") >&5
21570
(eval "$ac_try") 2>&5
21572
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573
(exit $ac_status); }; }; then
21576
$as_echo "$as_me: program exited with status $ac_status" >&5
21577
$as_echo "$as_me: failed program was:" >&5
21578
sed 's/^/| /' conftest.$ac_ext >&5
21581
rm -rf conftest.dSYM
21582
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21587
if test -z "$no_mprotect"; then
21588
if test "$cross_compiling" = yes; then
21589
: # When cross-compiling, don't assume anything.
21592
cat >conftest.$ac_ext <<_ACEOF
21595
cat confdefs.h >>conftest.$ac_ext
21596
cat >>conftest.$ac_ext <<_ACEOF
21597
/* end confdefs.h. */
21599
#include <stdlib.h>
21600
#if defined __MACH__ && defined __APPLE__
21601
/* Avoid a crash on MacOS X. */
21602
#include <mach/mach.h>
21603
#include <mach/mach_error.h>
21604
#include <mach/thread_status.h>
21605
#include <mach/exception.h>
21606
#include <mach/task.h>
21607
#include <pthread.h>
21608
/* The exception port on which our thread listens. */
21609
static mach_port_t our_exception_port;
21610
/* The main function of the thread listening for exceptions of type
21613
mach_exception_thread (void *arg)
21615
/* Buffer for a message to be received. */
21617
mach_msg_header_t head;
21618
mach_msg_body_t msgh_body;
21621
mach_msg_return_t retval;
21622
/* Wait for a message on the exception port. */
21623
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
21624
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
21625
if (retval != MACH_MSG_SUCCESS)
21630
nocrash_init (void)
21632
mach_port_t self = mach_task_self ();
21633
/* Allocate a port on which the thread shall listen for exceptions. */
21634
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
21636
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
21637
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
21638
MACH_MSG_TYPE_MAKE_SEND)
21640
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
21642
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
21643
/* Create the thread listening on the exception port. */
21644
pthread_attr_t attr;
21646
if (pthread_attr_init (&attr) == 0
21647
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
21648
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
21649
pthread_attr_destroy (&attr);
21650
/* Replace the exception port info for these exceptions with our own.
21651
Note that we replace the exception port for the entire task, not only
21652
for a particular thread. This has the effect that when our exception
21653
port gets the message, the thread specific exception port has already
21654
been asked, and we don't need to bother about it.
21655
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
21656
task_set_exception_ports (self, mask, our_exception_port,
21657
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
21663
/* Avoid a crash on POSIX systems. */
21664
#include <signal.h>
21665
/* A POSIX signal handler. */
21667
exception_handler (int sig)
21672
nocrash_init (void)
21675
signal (SIGSEGV, exception_handler);
21678
signal (SIGBUS, exception_handler);
21684
if (mprotect(page_align(fault_address),pagesize,PROT_READ) < 0) exit(0);
21685
*fault_address = 'z'; /* this should cause an exception or signal */
21688
rm -f conftest$ac_exeext
21689
if { (ac_try="$ac_link"
21690
case "(($ac_try" in
21691
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21692
*) ac_try_echo=$ac_try;;
21694
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21695
$as_echo "$ac_try_echo") >&5
21696
(eval "$ac_link") 2>&5
21698
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21700
{ (case "(($ac_try" in
21701
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702
*) ac_try_echo=$ac_try;;
21704
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21705
$as_echo "$ac_try_echo") >&5
21706
(eval "$ac_try") 2>&5
21708
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709
(exit $ac_status); }; }; then
21712
$as_echo "$as_me: program exited with status $ac_status" >&5
21713
$as_echo "$as_me: failed program was:" >&5
21714
sed 's/^/| /' conftest.$ac_ext >&5
21717
rm -rf conftest.dSYM
21718
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21723
if test -z "$no_mprotect"; then
21724
if test "$cross_compiling" = yes; then
21725
: # When cross-compiling, don't assume anything.
21728
cat >conftest.$ac_ext <<_ACEOF
21731
cat confdefs.h >>conftest.$ac_ext
21732
cat >>conftest.$ac_ext <<_ACEOF
21733
/* end confdefs.h. */
21735
#include <stdlib.h>
21736
#if defined __MACH__ && defined __APPLE__
21737
/* Avoid a crash on MacOS X. */
21738
#include <mach/mach.h>
21739
#include <mach/mach_error.h>
21740
#include <mach/thread_status.h>
21741
#include <mach/exception.h>
21742
#include <mach/task.h>
21743
#include <pthread.h>
21744
/* The exception port on which our thread listens. */
21745
static mach_port_t our_exception_port;
21746
/* The main function of the thread listening for exceptions of type
21749
mach_exception_thread (void *arg)
21751
/* Buffer for a message to be received. */
21753
mach_msg_header_t head;
21754
mach_msg_body_t msgh_body;
21757
mach_msg_return_t retval;
21758
/* Wait for a message on the exception port. */
21759
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
21760
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
21761
if (retval != MACH_MSG_SUCCESS)
21766
nocrash_init (void)
21768
mach_port_t self = mach_task_self ();
21769
/* Allocate a port on which the thread shall listen for exceptions. */
21770
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
21772
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
21773
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
21774
MACH_MSG_TYPE_MAKE_SEND)
21776
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
21778
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
21779
/* Create the thread listening on the exception port. */
21780
pthread_attr_t attr;
21782
if (pthread_attr_init (&attr) == 0
21783
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
21784
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
21785
pthread_attr_destroy (&attr);
21786
/* Replace the exception port info for these exceptions with our own.
21787
Note that we replace the exception port for the entire task, not only
21788
for a particular thread. This has the effect that when our exception
21789
port gets the message, the thread specific exception port has already
21790
been asked, and we don't need to bother about it.
21791
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
21792
task_set_exception_ports (self, mask, our_exception_port,
21793
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
21799
/* Avoid a crash on POSIX systems. */
21800
#include <signal.h>
21801
/* A POSIX signal handler. */
21803
exception_handler (int sig)
21808
nocrash_init (void)
21811
signal (SIGSEGV, exception_handler);
21814
signal (SIGBUS, exception_handler);
21820
if (mprotect(page_align(fault_address),pagesize,PROT_READ) < 0) exit(1);
21821
if (mprotect(page_align(fault_address),pagesize,PROT_READ|PROT_WRITE) < 0) exit(1);
21822
*fault_address = 'z'; /* this should not cause an exception or signal */
21825
rm -f conftest$ac_exeext
21826
if { (ac_try="$ac_link"
21827
case "(($ac_try" in
21828
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829
*) ac_try_echo=$ac_try;;
21831
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21832
$as_echo "$ac_try_echo") >&5
21833
(eval "$ac_link") 2>&5
21835
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21837
{ (case "(($ac_try" in
21838
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21839
*) ac_try_echo=$ac_try;;
21841
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21842
$as_echo "$ac_try_echo") >&5
21843
(eval "$ac_try") 2>&5
21845
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846
(exit $ac_status); }; }; then
21849
$as_echo "$as_me: program exited with status $ac_status" >&5
21850
$as_echo "$as_me: failed program was:" >&5
21851
sed 's/^/| /' conftest.$ac_ext >&5
21853
( exit $ac_status )
21856
rm -rf conftest.dSYM
21857
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21862
if test -z "$no_mprotect"; then
21863
cl_cv_func_mprotect_works=yes
21865
cl_cv_func_mprotect_works=no
21869
{ $as_echo "$as_me:$LINENO: result: $cl_cv_func_mprotect_works" >&5
21870
$as_echo "$cl_cv_func_mprotect_works" >&6; }
21871
if test $cl_cv_func_mprotect_works = yes; then
21873
cat >>confdefs.h <<\_ACEOF
21874
#define HAVE_WORKING_MPROTECT /**/
21881
for ac_header in sys/shm.h
21883
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21884
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21885
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21886
$as_echo_n "checking for $ac_header... " >&6; }
21887
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21888
$as_echo_n "(cached) " >&6
21890
ac_res=`eval 'as_val=${'$as_ac_Header'}
21891
$as_echo "$as_val"'`
21892
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21893
$as_echo "$ac_res" >&6; }
21895
# Is the header compilable?
21896
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21897
$as_echo_n "checking $ac_header usability... " >&6; }
21898
cat >conftest.$ac_ext <<_ACEOF
21901
cat confdefs.h >>conftest.$ac_ext
21902
cat >>conftest.$ac_ext <<_ACEOF
21903
/* end confdefs.h. */
21904
$ac_includes_default
21905
#include <$ac_header>
21907
rm -f conftest.$ac_objext
21908
if { (ac_try="$ac_compile"
21909
case "(($ac_try" in
21910
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911
*) ac_try_echo=$ac_try;;
21913
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21914
$as_echo "$ac_try_echo") >&5
21915
(eval "$ac_compile") 2>conftest.er1
21917
grep -v '^ *+' conftest.er1 >conftest.err
21919
cat conftest.err >&5
21920
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921
(exit $ac_status); } && {
21922
test -z "$ac_c_werror_flag" ||
21923
test ! -s conftest.err
21924
} && test -s conftest.$ac_objext; then
21925
ac_header_compiler=yes
21927
$as_echo "$as_me: failed program was:" >&5
21928
sed 's/^/| /' conftest.$ac_ext >&5
21930
ac_header_compiler=no
21933
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21934
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21935
$as_echo "$ac_header_compiler" >&6; }
21937
# Is the header present?
21938
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21939
$as_echo_n "checking $ac_header presence... " >&6; }
21940
cat >conftest.$ac_ext <<_ACEOF
21943
cat confdefs.h >>conftest.$ac_ext
21944
cat >>conftest.$ac_ext <<_ACEOF
21945
/* end confdefs.h. */
21946
#include <$ac_header>
21948
if { (ac_try="$ac_cpp conftest.$ac_ext"
21949
case "(($ac_try" in
21950
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951
*) ac_try_echo=$ac_try;;
21953
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21954
$as_echo "$ac_try_echo") >&5
21955
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21957
grep -v '^ *+' conftest.er1 >conftest.err
21959
cat conftest.err >&5
21960
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961
(exit $ac_status); } >/dev/null && {
21962
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21963
test ! -s conftest.err
21965
ac_header_preproc=yes
21967
$as_echo "$as_me: failed program was:" >&5
21968
sed 's/^/| /' conftest.$ac_ext >&5
21970
ac_header_preproc=no
21973
rm -f conftest.err conftest.$ac_ext
21974
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21975
$as_echo "$ac_header_preproc" >&6; }
21977
# So? What about this header?
21978
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21980
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21981
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21982
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21983
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21984
ac_header_preproc=yes
21987
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21988
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21989
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21990
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21991
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21992
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21993
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21994
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21995
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21996
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21997
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21998
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22002
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22003
$as_echo_n "checking for $ac_header... " >&6; }
22004
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22005
$as_echo_n "(cached) " >&6
22007
eval "$as_ac_Header=\$ac_header_preproc"
22009
ac_res=`eval 'as_val=${'$as_ac_Header'}
22010
$as_echo "$as_val"'`
22011
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22012
$as_echo "$ac_res" >&6; }
22015
as_val=`eval 'as_val=${'$as_ac_Header'}
22016
$as_echo "$as_val"'`
22017
if test "x$as_val" = x""yes; then
22018
cat >>confdefs.h <<_ACEOF
22019
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22026
if test $ac_cv_header_sys_shm_h = yes; then
22028
for ac_header in sys/ipc.h
22030
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22031
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22032
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22033
$as_echo_n "checking for $ac_header... " >&6; }
22034
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22035
$as_echo_n "(cached) " >&6
22037
ac_res=`eval 'as_val=${'$as_ac_Header'}
22038
$as_echo "$as_val"'`
22039
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22040
$as_echo "$ac_res" >&6; }
22042
# Is the header compilable?
22043
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22044
$as_echo_n "checking $ac_header usability... " >&6; }
22045
cat >conftest.$ac_ext <<_ACEOF
22048
cat confdefs.h >>conftest.$ac_ext
22049
cat >>conftest.$ac_ext <<_ACEOF
22050
/* end confdefs.h. */
22051
$ac_includes_default
22052
#include <$ac_header>
22054
rm -f conftest.$ac_objext
22055
if { (ac_try="$ac_compile"
22056
case "(($ac_try" in
22057
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058
*) ac_try_echo=$ac_try;;
22060
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22061
$as_echo "$ac_try_echo") >&5
22062
(eval "$ac_compile") 2>conftest.er1
22064
grep -v '^ *+' conftest.er1 >conftest.err
22066
cat conftest.err >&5
22067
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068
(exit $ac_status); } && {
22069
test -z "$ac_c_werror_flag" ||
22070
test ! -s conftest.err
22071
} && test -s conftest.$ac_objext; then
22072
ac_header_compiler=yes
22074
$as_echo "$as_me: failed program was:" >&5
22075
sed 's/^/| /' conftest.$ac_ext >&5
22077
ac_header_compiler=no
22080
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22081
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22082
$as_echo "$ac_header_compiler" >&6; }
22084
# Is the header present?
22085
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22086
$as_echo_n "checking $ac_header presence... " >&6; }
22087
cat >conftest.$ac_ext <<_ACEOF
22090
cat confdefs.h >>conftest.$ac_ext
22091
cat >>conftest.$ac_ext <<_ACEOF
22092
/* end confdefs.h. */
22093
#include <$ac_header>
22095
if { (ac_try="$ac_cpp conftest.$ac_ext"
22096
case "(($ac_try" in
22097
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098
*) ac_try_echo=$ac_try;;
22100
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22101
$as_echo "$ac_try_echo") >&5
22102
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22104
grep -v '^ *+' conftest.er1 >conftest.err
22106
cat conftest.err >&5
22107
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108
(exit $ac_status); } >/dev/null && {
22109
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22110
test ! -s conftest.err
22112
ac_header_preproc=yes
22114
$as_echo "$as_me: failed program was:" >&5
22115
sed 's/^/| /' conftest.$ac_ext >&5
22117
ac_header_preproc=no
22120
rm -f conftest.err conftest.$ac_ext
22121
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22122
$as_echo "$ac_header_preproc" >&6; }
22124
# So? What about this header?
22125
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22127
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22128
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22129
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22130
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22131
ac_header_preproc=yes
22134
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22135
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22136
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22137
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22138
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22139
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22140
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22141
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22142
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22143
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22144
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22145
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22149
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22150
$as_echo_n "checking for $ac_header... " >&6; }
22151
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22152
$as_echo_n "(cached) " >&6
22154
eval "$as_ac_Header=\$ac_header_preproc"
22156
ac_res=`eval 'as_val=${'$as_ac_Header'}
22157
$as_echo "$as_val"'`
22158
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22159
$as_echo "$ac_res" >&6; }
22162
as_val=`eval 'as_val=${'$as_ac_Header'}
22163
$as_echo "$as_val"'`
22164
if test "x$as_val" = x""yes; then
22165
cat >>confdefs.h <<_ACEOF
22166
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22175
if test "$ac_cv_header_sys_shm_h" = yes -a "$ac_cv_header_sys_ipc_h" = yes; then
22176
# This test is from Marcus Daniels
22177
{ $as_echo "$as_me:$LINENO: checking for working shared memory" >&5
22178
$as_echo_n "checking for working shared memory... " >&6; }
22179
if test "${cl_cv_sys_shm_works+set}" = set; then
22180
$as_echo_n "(cached) " >&6
22183
if test "$cross_compiling" = yes; then
22184
cl_cv_sys_shm_works="guessing no"
22186
cat >conftest.$ac_ext <<_ACEOF
22189
cat confdefs.h >>conftest.$ac_ext
22190
cat >>conftest.$ac_ext <<_ACEOF
22191
/* end confdefs.h. */
22192
#include <sys/types.h>
22193
#include <sys/ipc.h>
22194
#include <sys/shm.h>
22195
/* try attaching a single segment to multiple addresses */
22196
#define segsize 0x10000
22197
#define attaches 128
22198
#define base_addr 0x01000000
22200
{ int shmid, i; char* addr; char* result;
22201
if ((shmid = shmget(IPC_PRIVATE,segsize,0400)) < 0) exit(1);
22202
for (i=0, addr = (char*)0x01000000; i<attaches; i++, addr += segsize)
22203
if ((result = (char*)shmat(shmid,addr,SHM_RDONLY)) == (char*)(-1)) break;
22204
for (i=0, addr = (char*)0x01000000; i<attaches; i++, addr += segsize)
22206
shmctl(shmid,IPC_RMID,0);
22207
exit(result == (char*)(-1));
22210
rm -f conftest$ac_exeext
22211
if { (ac_try="$ac_link"
22212
case "(($ac_try" in
22213
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214
*) ac_try_echo=$ac_try;;
22216
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22217
$as_echo "$ac_try_echo") >&5
22218
(eval "$ac_link") 2>&5
22220
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22222
{ (case "(($ac_try" in
22223
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224
*) ac_try_echo=$ac_try;;
22226
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22227
$as_echo "$ac_try_echo") >&5
22228
(eval "$ac_try") 2>&5
22230
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231
(exit $ac_status); }; }; then
22232
cl_cv_sys_shm_works=yes
22234
$as_echo "$as_me: program exited with status $ac_status" >&5
22235
$as_echo "$as_me: failed program was:" >&5
22236
sed 's/^/| /' conftest.$ac_ext >&5
22238
( exit $ac_status )
22239
cl_cv_sys_shm_works=no
22241
rm -rf conftest.dSYM
22242
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22248
{ $as_echo "$as_me:$LINENO: result: $cl_cv_sys_shm_works" >&5
22249
$as_echo "$cl_cv_sys_shm_works" >&6; }
22251
case "$cl_cv_sys_shm_works" in
22254
cat >>confdefs.h <<\_ACEOF
22255
#define HAVE_SHM /**/
22259
for ac_header in sys/sysmacros.h
22261
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22262
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22263
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22264
$as_echo_n "checking for $ac_header... " >&6; }
22265
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22266
$as_echo_n "(cached) " >&6
22268
ac_res=`eval 'as_val=${'$as_ac_Header'}
22269
$as_echo "$as_val"'`
22270
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22271
$as_echo "$ac_res" >&6; }
22273
# Is the header compilable?
22274
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22275
$as_echo_n "checking $ac_header usability... " >&6; }
22276
cat >conftest.$ac_ext <<_ACEOF
22279
cat confdefs.h >>conftest.$ac_ext
22280
cat >>conftest.$ac_ext <<_ACEOF
22281
/* end confdefs.h. */
22282
$ac_includes_default
22283
#include <$ac_header>
22285
rm -f conftest.$ac_objext
22286
if { (ac_try="$ac_compile"
22287
case "(($ac_try" in
22288
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22289
*) ac_try_echo=$ac_try;;
22291
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22292
$as_echo "$ac_try_echo") >&5
22293
(eval "$ac_compile") 2>conftest.er1
22295
grep -v '^ *+' conftest.er1 >conftest.err
22297
cat conftest.err >&5
22298
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299
(exit $ac_status); } && {
22300
test -z "$ac_c_werror_flag" ||
22301
test ! -s conftest.err
22302
} && test -s conftest.$ac_objext; then
22303
ac_header_compiler=yes
22305
$as_echo "$as_me: failed program was:" >&5
22306
sed 's/^/| /' conftest.$ac_ext >&5
22308
ac_header_compiler=no
22311
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22312
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22313
$as_echo "$ac_header_compiler" >&6; }
22315
# Is the header present?
22316
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22317
$as_echo_n "checking $ac_header presence... " >&6; }
22318
cat >conftest.$ac_ext <<_ACEOF
22321
cat confdefs.h >>conftest.$ac_ext
22322
cat >>conftest.$ac_ext <<_ACEOF
22323
/* end confdefs.h. */
22324
#include <$ac_header>
22326
if { (ac_try="$ac_cpp conftest.$ac_ext"
22327
case "(($ac_try" in
22328
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329
*) ac_try_echo=$ac_try;;
22331
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22332
$as_echo "$ac_try_echo") >&5
22333
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22335
grep -v '^ *+' conftest.er1 >conftest.err
22337
cat conftest.err >&5
22338
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339
(exit $ac_status); } >/dev/null && {
22340
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22341
test ! -s conftest.err
22343
ac_header_preproc=yes
22345
$as_echo "$as_me: failed program was:" >&5
22346
sed 's/^/| /' conftest.$ac_ext >&5
22348
ac_header_preproc=no
22351
rm -f conftest.err conftest.$ac_ext
22352
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22353
$as_echo "$ac_header_preproc" >&6; }
22355
# So? What about this header?
22356
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22358
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22359
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22360
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22361
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22362
ac_header_preproc=yes
22365
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22366
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22367
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22368
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22369
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22370
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22371
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22372
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22373
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22374
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22375
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22376
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22380
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22381
$as_echo_n "checking for $ac_header... " >&6; }
22382
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22383
$as_echo_n "(cached) " >&6
22385
eval "$as_ac_Header=\$ac_header_preproc"
22387
ac_res=`eval 'as_val=${'$as_ac_Header'}
22388
$as_echo "$as_val"'`
22389
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22390
$as_echo "$ac_res" >&6; }
22393
as_val=`eval 'as_val=${'$as_ac_Header'}
22394
$as_echo "$as_val"'`
22395
if test "x$as_val" = x""yes; then
22396
cat >>confdefs.h <<_ACEOF
22397
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22408
{ $as_echo "$as_me:$LINENO: checking whether code in malloc()ed memory is executable" >&5
22409
$as_echo_n "checking whether code in malloc()ed memory is executable... " >&6; }
22410
if test "${ffcall_cv_codeexec+set}" = set; then
22411
$as_echo_n "(cached) " >&6
22414
hpux*) ffcall_cv_codeexec="guessing yes" ;;
22416
case "$host_cpu_abi"-"$host_os" in
22417
# On host=rs6000-*-aix3.2.5 malloc'ed memory is indeed not executable.
22418
powerpc-aix*) ffcall_cv_codeexec="guessing no" ;;
22420
if test "$cross_compiling" = yes; then
22421
ffcall_cv_codeexec="guessing yes"
22423
cat >conftest.$ac_ext <<_ACEOF
22426
cat confdefs.h >>conftest.$ac_ext
22427
cat >>conftest.$ac_ext <<_ACEOF
22428
/* end confdefs.h. */
22430
#include <stdlib.h>
22431
#if defined __MACH__ && defined __APPLE__
22432
/* Avoid a crash on MacOS X. */
22433
#include <mach/mach.h>
22434
#include <mach/mach_error.h>
22435
#include <mach/thread_status.h>
22436
#include <mach/exception.h>
22437
#include <mach/task.h>
22438
#include <pthread.h>
22439
/* The exception port on which our thread listens. */
22440
static mach_port_t our_exception_port;
22441
/* The main function of the thread listening for exceptions of type
22444
mach_exception_thread (void *arg)
22446
/* Buffer for a message to be received. */
22448
mach_msg_header_t head;
22449
mach_msg_body_t msgh_body;
22452
mach_msg_return_t retval;
22453
/* Wait for a message on the exception port. */
22454
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
22455
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
22456
if (retval != MACH_MSG_SUCCESS)
22461
nocrash_init (void)
22463
mach_port_t self = mach_task_self ();
22464
/* Allocate a port on which the thread shall listen for exceptions. */
22465
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
22467
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
22468
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
22469
MACH_MSG_TYPE_MAKE_SEND)
22471
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
22473
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
22474
/* Create the thread listening on the exception port. */
22475
pthread_attr_t attr;
22477
if (pthread_attr_init (&attr) == 0
22478
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
22479
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
22480
pthread_attr_destroy (&attr);
22481
/* Replace the exception port info for these exceptions with our own.
22482
Note that we replace the exception port for the entire task, not only
22483
for a particular thread. This has the effect that when our exception
22484
port gets the message, the thread specific exception port has already
22485
been asked, and we don't need to bother about it.
22486
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
22487
task_set_exception_ports (self, mask, our_exception_port,
22488
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
22494
/* Avoid a crash on POSIX systems. */
22495
#include <signal.h>
22496
/* A POSIX signal handler. */
22498
exception_handler (int sig)
22503
nocrash_init (void)
22506
signal (SIGSEGV, exception_handler);
22509
signal (SIGBUS, exception_handler);
22514
#include <sys/types.h>
22515
/* declare malloc() */
22516
#include <stdlib.h>
22517
int fun () { return 31415926; }
22520
{long size = (char*)&main - (char*)&fun;
22521
char* funcopy = (char*) malloc(size);
22523
for (i = 0; i < size; i++) { funcopy[i] = ((char*)&fun)[i]; }
22524
return !((*(int(*)())funcopy)() == 31415926);
22527
rm -f conftest$ac_exeext
22528
if { (ac_try="$ac_link"
22529
case "(($ac_try" in
22530
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22531
*) ac_try_echo=$ac_try;;
22533
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22534
$as_echo "$ac_try_echo") >&5
22535
(eval "$ac_link") 2>&5
22537
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22539
{ (case "(($ac_try" in
22540
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22541
*) ac_try_echo=$ac_try;;
22543
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22544
$as_echo "$ac_try_echo") >&5
22545
(eval "$ac_try") 2>&5
22547
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548
(exit $ac_status); }; }; then
22549
ffcall_cv_codeexec=yes
22551
$as_echo "$as_me: program exited with status $ac_status" >&5
22552
$as_echo "$as_me: failed program was:" >&5
22553
sed 's/^/| /' conftest.$ac_ext >&5
22555
( exit $ac_status )
22556
ffcall_cv_codeexec=no
22558
rm -rf conftest.dSYM
22559
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22569
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_codeexec" >&5
22570
$as_echo "$ffcall_cv_codeexec" >&6; }
22571
case "$ffcall_cv_codeexec" in
22573
cat >>confdefs.h <<\_ACEOF
22574
#define CODE_EXECUTABLE /**/
22582
if test ${host_cpu_abi} = hppa -o ${host_cpu_abi} = powerpc64 -o ${host_cpu_abi} = ia64; then
22583
CPU_OBJECTS="$CPU_OBJECTS "'tramp-$(CPU).lo'
22585
if test ${host_cpu_abi} = powerpc; then
22586
case "${host_os}" in
22587
aix*) CPU_OBJECTS="$CPU_OBJECTS "'tramp-$(CPU).lo' ;;
22591
if test ${host_cpu_abi} = sparc -o ${host_cpu_abi} = sparc64 -o ${host_cpu_abi} = alpha -o ${host_cpu_abi} = hppa -o ${host_cpu_abi} = convex -o ${host_cpu_abi} = arm -o ${host_cpu_abi} = armel; then
22592
CPU_OBJECTS="$CPU_OBJECTS "'cache-$(CPU).lo'
22594
if test ${host_cpu_abi} = powerpc; then
22595
case "${host_os}" in
22597
*) CPU_OBJECTS="$CPU_OBJECTS "'cache-$(CPU).lo' ;;
22601
if test ${host_cpu_abi} = mips -o ${host_cpu_abi} = mipsn32 -o ${host_cpu_abi} = mips64; then
22603
for ac_header in sys/cachectl.h
22605
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22606
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22607
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22608
$as_echo_n "checking for $ac_header... " >&6; }
22609
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22610
$as_echo_n "(cached) " >&6
22612
ac_res=`eval 'as_val=${'$as_ac_Header'}
22613
$as_echo "$as_val"'`
22614
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22615
$as_echo "$ac_res" >&6; }
22617
# Is the header compilable?
22618
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22619
$as_echo_n "checking $ac_header usability... " >&6; }
22620
cat >conftest.$ac_ext <<_ACEOF
22623
cat confdefs.h >>conftest.$ac_ext
22624
cat >>conftest.$ac_ext <<_ACEOF
22625
/* end confdefs.h. */
22626
$ac_includes_default
22627
#include <$ac_header>
22629
rm -f conftest.$ac_objext
22630
if { (ac_try="$ac_compile"
22631
case "(($ac_try" in
22632
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633
*) ac_try_echo=$ac_try;;
22635
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22636
$as_echo "$ac_try_echo") >&5
22637
(eval "$ac_compile") 2>conftest.er1
22639
grep -v '^ *+' conftest.er1 >conftest.err
22641
cat conftest.err >&5
22642
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643
(exit $ac_status); } && {
22644
test -z "$ac_c_werror_flag" ||
22645
test ! -s conftest.err
22646
} && test -s conftest.$ac_objext; then
22647
ac_header_compiler=yes
22649
$as_echo "$as_me: failed program was:" >&5
22650
sed 's/^/| /' conftest.$ac_ext >&5
22652
ac_header_compiler=no
22655
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22656
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22657
$as_echo "$ac_header_compiler" >&6; }
22659
# Is the header present?
22660
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22661
$as_echo_n "checking $ac_header presence... " >&6; }
22662
cat >conftest.$ac_ext <<_ACEOF
22665
cat confdefs.h >>conftest.$ac_ext
22666
cat >>conftest.$ac_ext <<_ACEOF
22667
/* end confdefs.h. */
22668
#include <$ac_header>
22670
if { (ac_try="$ac_cpp conftest.$ac_ext"
22671
case "(($ac_try" in
22672
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673
*) ac_try_echo=$ac_try;;
22675
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22676
$as_echo "$ac_try_echo") >&5
22677
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22679
grep -v '^ *+' conftest.er1 >conftest.err
22681
cat conftest.err >&5
22682
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683
(exit $ac_status); } >/dev/null && {
22684
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22685
test ! -s conftest.err
22687
ac_header_preproc=yes
22689
$as_echo "$as_me: failed program was:" >&5
22690
sed 's/^/| /' conftest.$ac_ext >&5
22692
ac_header_preproc=no
22695
rm -f conftest.err conftest.$ac_ext
22696
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22697
$as_echo "$ac_header_preproc" >&6; }
22699
# So? What about this header?
22700
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22702
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22703
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22704
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22705
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22706
ac_header_preproc=yes
22709
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22710
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22711
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22712
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22713
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22714
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22715
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22716
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22717
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22718
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22719
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22720
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22724
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22725
$as_echo_n "checking for $ac_header... " >&6; }
22726
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22727
$as_echo_n "(cached) " >&6
22729
eval "$as_ac_Header=\$ac_header_preproc"
22731
ac_res=`eval 'as_val=${'$as_ac_Header'}
22732
$as_echo "$as_val"'`
22733
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22734
$as_echo "$ac_res" >&6; }
22737
as_val=`eval 'as_val=${'$as_ac_Header'}
22738
$as_echo "$as_val"'`
22739
if test "x$as_val" = x""yes; then
22740
cat >>confdefs.h <<_ACEOF
22741
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22749
if test ${host_cpu_abi} = m88k; then
22751
for ac_header in sys/m88kbcs.h
22753
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22754
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22755
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22756
$as_echo_n "checking for $ac_header... " >&6; }
22757
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22758
$as_echo_n "(cached) " >&6
22760
ac_res=`eval 'as_val=${'$as_ac_Header'}
22761
$as_echo "$as_val"'`
22762
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22763
$as_echo "$ac_res" >&6; }
22765
# Is the header compilable?
22766
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22767
$as_echo_n "checking $ac_header usability... " >&6; }
22768
cat >conftest.$ac_ext <<_ACEOF
22771
cat confdefs.h >>conftest.$ac_ext
22772
cat >>conftest.$ac_ext <<_ACEOF
22773
/* end confdefs.h. */
22774
$ac_includes_default
22775
#include <$ac_header>
22777
rm -f conftest.$ac_objext
22778
if { (ac_try="$ac_compile"
22779
case "(($ac_try" in
22780
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22781
*) ac_try_echo=$ac_try;;
22783
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22784
$as_echo "$ac_try_echo") >&5
22785
(eval "$ac_compile") 2>conftest.er1
22787
grep -v '^ *+' conftest.er1 >conftest.err
22789
cat conftest.err >&5
22790
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791
(exit $ac_status); } && {
22792
test -z "$ac_c_werror_flag" ||
22793
test ! -s conftest.err
22794
} && test -s conftest.$ac_objext; then
22795
ac_header_compiler=yes
22797
$as_echo "$as_me: failed program was:" >&5
22798
sed 's/^/| /' conftest.$ac_ext >&5
22800
ac_header_compiler=no
22803
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22804
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22805
$as_echo "$ac_header_compiler" >&6; }
22807
# Is the header present?
22808
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22809
$as_echo_n "checking $ac_header presence... " >&6; }
22810
cat >conftest.$ac_ext <<_ACEOF
22813
cat confdefs.h >>conftest.$ac_ext
22814
cat >>conftest.$ac_ext <<_ACEOF
22815
/* end confdefs.h. */
22816
#include <$ac_header>
22818
if { (ac_try="$ac_cpp conftest.$ac_ext"
22819
case "(($ac_try" in
22820
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22821
*) ac_try_echo=$ac_try;;
22823
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22824
$as_echo "$ac_try_echo") >&5
22825
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22827
grep -v '^ *+' conftest.er1 >conftest.err
22829
cat conftest.err >&5
22830
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831
(exit $ac_status); } >/dev/null && {
22832
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22833
test ! -s conftest.err
22835
ac_header_preproc=yes
22837
$as_echo "$as_me: failed program was:" >&5
22838
sed 's/^/| /' conftest.$ac_ext >&5
22840
ac_header_preproc=no
22843
rm -f conftest.err conftest.$ac_ext
22844
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22845
$as_echo "$ac_header_preproc" >&6; }
22847
# So? What about this header?
22848
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22850
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22851
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22852
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22853
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22854
ac_header_preproc=yes
22857
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22858
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22859
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22860
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22861
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22862
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22863
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22864
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22865
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22866
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22867
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22868
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22872
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22873
$as_echo_n "checking for $ac_header... " >&6; }
22874
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22875
$as_echo_n "(cached) " >&6
22877
eval "$as_ac_Header=\$ac_header_preproc"
22879
ac_res=`eval 'as_val=${'$as_ac_Header'}
22880
$as_echo "$as_val"'`
22881
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22882
$as_echo "$ac_res" >&6; }
22885
as_val=`eval 'as_val=${'$as_ac_Header'}
22886
$as_echo "$as_val"'`
22887
if test "x$as_val" = x""yes; then
22888
cat >>confdefs.h <<_ACEOF
22889
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22897
cat >confcache <<\_ACEOF
22898
# This file is a shell script that caches the results of configure
22899
# tests run on this system so they can be shared between configure
22900
# scripts and configure runs, see configure's option --config-cache.
22901
# It is not useful on other systems. If it contains results you don't
22902
# want to keep, you may remove or edit it.
22904
# config.status only pays attention to the cache file if you give it
22905
# the --recheck option to rerun configure.
22907
# `ac_cv_env_foo' variables (set or unset) will be overridden when
22908
# loading this file, other *unset* `ac_cv_foo' will be assigned the
22909
# following values.
22913
# The following way of writing the cache mishandles newlines in values,
22914
# but we know of no workaround that is simple, portable, and efficient.
22915
# So, we kill variables containing newlines.
22916
# Ultrix sh set writes to stderr and can't be redirected directly,
22917
# and sets the high bit in the cache file unless we assign to the vars.
22919
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22920
eval ac_val=\$$ac_var
22924
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22925
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22928
_ | IFS | as_nl) ;; #(
22929
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22930
*) $as_unset $ac_var ;;
22936
case $as_nl`(ac_space=' '; set) 2>&1` in #(
22937
*${as_nl}ac_space=\ *)
22938
# `set' does not quote correctly, so add quotes (double-quote
22939
# substitution turns \\\\ into \\, and sed turns \\ into \).
22942
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22945
# `set' quotes correctly as required by POSIX, so do not add quotes.
22946
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22955
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22957
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22959
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22960
if test -w "$cache_file"; then
22961
test "x$cache_file" != "x/dev/null" &&
22962
{ $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22963
$as_echo "$as_me: updating cache $cache_file" >&6;}
22964
cat confcache >$cache_file
22966
{ $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22967
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22972
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22973
# Let make expand exec_prefix.
22974
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22976
DEFS=-DHAVE_CONFIG_H
22980
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22981
# 1. Remove the extension, and $U if already installed.
22982
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22983
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22984
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22985
# will be set to the directory where LIBOBJS objects are built.
22986
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22987
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22989
LIBOBJS=$ac_libobjs
22991
LTLIBOBJS=$ac_ltlibobjs
22995
: ${CONFIG_STATUS=./config.status}
22997
ac_clean_files_save=$ac_clean_files
22998
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22999
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23000
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23001
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23003
# Generated by $as_me.
23004
# Run this file to recreate the current configuration.
23005
# Compiler output produced by configure, useful for debugging
23006
# configure, is in config.log if it exists.
23009
ac_cs_recheck=false
23011
SHELL=\${CONFIG_SHELL-$SHELL}
23014
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23015
## --------------------- ##
23016
## M4sh Initialization. ##
23017
## --------------------- ##
23019
# Be more Bourne compatible
23020
DUALCASE=1; export DUALCASE # for MKS sh
23021
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23024
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23025
# is contrary to our usage. Disable this feature.
23026
alias -g '${1+"$@"}'='"$@"'
23027
setopt NO_GLOB_SUBST
23029
case `(set -o) 2>/dev/null` in
23030
*posix*) set -o posix ;;
23039
# Avoid depending upon Character Ranges.
23040
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23041
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23042
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23043
as_cr_digits='0123456789'
23044
as_cr_alnum=$as_cr_Letters$as_cr_digits
23049
# Printing a long string crashes Solaris 7 /usr/bin/printf.
23050
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23051
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23052
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23053
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23054
as_echo='printf %s\n'
23055
as_echo_n='printf %s'
23057
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23058
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23059
as_echo_n='/usr/ucb/echo -n'
23061
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23062
as_echo_n_body='eval
23066
expr "X$arg" : "X\\(.*\\)$as_nl";
23067
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23069
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23071
export as_echo_n_body
23072
as_echo_n='sh -c $as_echo_n_body as_echo'
23074
export as_echo_body
23075
as_echo='sh -c $as_echo_body as_echo'
23078
# The user is always right.
23079
if test "${PATH_SEPARATOR+set}" != set; then
23081
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23082
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23087
# Support unset when possible.
23088
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23096
# We need space, tab and new line, in precisely that order. Quoting is
23097
# there to prevent editors from complaining about space-tab.
23098
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23099
# splitting by setting IFS to empty value.)
23102
# Find who we are. Look in the path if we contain no directory separator.
23104
*[\\/]* ) as_myself=$0 ;;
23105
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23106
for as_dir in $PATH
23109
test -z "$as_dir" && as_dir=.
23110
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23116
# We did not find ourselves, most probably we were run as `sh COMMAND'
23117
# in which case we are not to be found in the path.
23118
if test "x$as_myself" = x; then
23121
if test ! -f "$as_myself"; then
23122
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23123
{ (exit 1); exit 1; }
23126
# Work around bugs in pre-3.0 UWIN ksh.
23127
for as_var in ENV MAIL MAILPATH
23128
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23140
# Required to use basename.
23141
if expr a : '\(a\)' >/dev/null 2>&1 &&
23142
test "X`expr 00001 : '.*\(...\)'`" = X001; then
23148
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23149
as_basename=basename
23155
# Name of the executable.
23156
as_me=`$as_basename -- "$0" ||
23157
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23158
X"$0" : 'X\(//\)$' \| \
23159
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23161
sed '/^.*\/\([^/][^/]*\)\/*$/{
23180
as_lineno_1=$LINENO
23181
as_lineno_2=$LINENO
23182
test "x$as_lineno_1" != "x$as_lineno_2" &&
23183
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23185
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23186
# uniformly replaced by the line number. The first 'sed' inserts a
23187
# line-number line after each line using $LINENO; the second 'sed'
23188
# does the real work. The second script uses 'N' to pair each
23189
# line-number line with the line containing $LINENO, and appends
23190
# trailing '-' during substitution so that $LINENO is not a special
23191
# case at line end.
23192
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23193
# scripts with optimization help from Paolo Bonzini. Blame Lee
23194
# E. McMahon (1931-1989) for sed's syntax. :-)
23206
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23209
' >$as_me.lineno &&
23210
chmod +x "$as_me.lineno" ||
23211
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23212
{ (exit 1); exit 1; }; }
23214
# Don't try to exec as it changes $[0], causing all sort of problems
23215
# (the dirname of $[0] is not the place where we might find the
23216
# original and so on. Autoconf is especially sensitive to this).
23217
. "./$as_me.lineno"
23218
# Exit status is that of the last command.
23223
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23229
ECHO_C= ECHO_N= ECHO_T=
23230
case `echo -n x` in
23232
case `echo 'x\c'` in
23233
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
23239
if expr a : '\(a\)' >/dev/null 2>&1 &&
23240
test "X`expr 00001 : '.*\(...\)'`" = X001; then
23246
rm -f conf$$ conf$$.exe conf$$.file
23247
if test -d conf$$.dir; then
23248
rm -f conf$$.dir/conf$$.file
23251
mkdir conf$$.dir 2>/dev/null
23253
if (echo >conf$$.file) 2>/dev/null; then
23254
if ln -s conf$$.file conf$$ 2>/dev/null; then
23256
# ... but there are two gotchas:
23257
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23258
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23259
# In both cases, we have to default to `cp -p'.
23260
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23262
elif ln conf$$.file conf$$ 2>/dev/null; then
23270
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23271
rmdir conf$$.dir 2>/dev/null
23273
if mkdir -p . 2>/dev/null; then
23276
test -d ./-p && rmdir ./-p
23280
if test -x / >/dev/null 2>&1; then
23281
as_test_x='test -x'
23283
if ls -dL / >/dev/null 2>&1; then
23290
if test -d "$1"; then
23296
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23297
???[sx]*):;;*)false;;esac;fi
23301
as_executable_p=$as_test_x
23303
# Sed expression to map a string onto a valid CPP name.
23304
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23306
# Sed expression to map a string onto a valid variable name.
23307
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23312
# Save the log message, to keep $[0] and so on meaningful, and to
23313
# report actual input values of CONFIG_FILES etc. instead of their
23314
# values after options handling.
23316
This file was extended by libffcall/trampoline_r $as_me 0x010B, which was
23317
generated by GNU Autoconf 2.63. Invocation command line was
23319
CONFIG_FILES = $CONFIG_FILES
23320
CONFIG_HEADERS = $CONFIG_HEADERS
23321
CONFIG_LINKS = $CONFIG_LINKS
23322
CONFIG_COMMANDS = $CONFIG_COMMANDS
23325
on `(hostname || uname -n) 2>/dev/null | sed 1q`
23330
case $ac_config_files in *"
23331
"*) set x $ac_config_files; shift; ac_config_files=$*;;
23334
case $ac_config_headers in *"
23335
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23339
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23340
# Files that config.status was made for.
23341
config_files="$ac_config_files"
23342
config_headers="$ac_config_headers"
23346
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23348
\`$as_me' instantiates files from templates according to the
23349
current configuration.
23351
Usage: $0 [OPTION]... [FILE]...
23353
-h, --help print this help, then exit
23354
-V, --version print version number and configuration settings, then exit
23355
-q, --quiet, --silent
23356
do not print progress messages
23357
-d, --debug don't remove temporary files
23358
--recheck update $as_me by reconfiguring in the same conditions
23359
--file=FILE[:TEMPLATE]
23360
instantiate the configuration file FILE
23361
--header=FILE[:TEMPLATE]
23362
instantiate the configuration header FILE
23364
Configuration files:
23367
Configuration headers:
23370
Report bugs to <bug-autoconf@gnu.org>."
23373
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23375
libffcall/trampoline_r config.status 0x010B
23376
configured by $0, generated by GNU Autoconf 2.63,
23377
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23379
Copyright (C) 2008 Free Software Foundation, Inc.
23380
This config.status script is free software; the Free Software Foundation
23381
gives unlimited permission to copy, distribute and modify it."
23386
test -n "\$AWK" || AWK=awk
23389
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23390
# The default lists apply if the user does not specify any file.
23396
ac_option=`expr "X$1" : 'X\([^=]*\)='`
23397
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23408
# Handling of the options.
23409
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23411
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23412
$as_echo "$ac_cs_version"; exit ;;
23413
--debug | --debu | --deb | --de | --d | -d )
23415
--file | --fil | --fi | --f )
23418
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23420
CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
23421
ac_need_defaults=false;;
23422
--header | --heade | --head | --hea )
23425
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23427
CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
23428
ac_need_defaults=false;;
23430
# Conflict between --help and --header
23431
{ $as_echo "$as_me: error: ambiguous option: $1
23432
Try \`$0 --help' for more information." >&2
23433
{ (exit 1); exit 1; }; };;
23434
--help | --hel | -h )
23435
$as_echo "$ac_cs_usage"; exit ;;
23436
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
23437
| -silent | --silent | --silen | --sile | --sil | --si | --s)
23440
# This is an error.
23441
-*) { $as_echo "$as_me: error: unrecognized option: $1
23442
Try \`$0 --help' for more information." >&2
23443
{ (exit 1); exit 1; }; } ;;
23445
*) ac_config_targets="$ac_config_targets $1"
23446
ac_need_defaults=false ;;
23452
ac_configure_extra_args=
23454
if $ac_cs_silent; then
23456
ac_configure_extra_args="$ac_configure_extra_args --silent"
23460
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23461
if \$ac_cs_recheck; then
23462
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23464
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23465
CONFIG_SHELL='$SHELL'
23466
export CONFIG_SHELL
23471
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23475
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23476
## Running $as_me. ##
23482
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23486
LIBFFCALL_VERSION=$PACKAGE_VERSION
23490
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23492
# Handling of arguments.
23493
for ac_config_target in $ac_config_targets
23495
case $ac_config_target in
23496
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23497
"trampoline_r.h") CONFIG_HEADERS="$CONFIG_HEADERS trampoline_r.h" ;;
23498
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23500
*) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23501
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23502
{ (exit 1); exit 1; }; };;
23507
# If the user did not use the arguments to specify the items to instantiate,
23508
# then the envvar interface is used. Set only those that are not.
23509
# We use the long form for the default assignment because of an extremely
23510
# bizarre bug on SunOS 4.1.3.
23511
if $ac_need_defaults; then
23512
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23513
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23516
# Have a temporary directory for convenience. Make it in the build tree
23517
# simply because there is no reason against having it here, and in addition,
23518
# creating and moving files from /tmp can sometimes cause problems.
23519
# Hook for its removal unless debugging.
23520
# Note that there is a small window in which the directory will not be cleaned:
23521
# after its creation but before its name has been assigned to `$tmp'.
23525
trap 'exit_status=$?
23526
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23528
trap '{ (exit 1); exit 1; }' 1 2 13 15
23530
# Create a (secure) tmp directory for tmp files.
23533
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23534
test -n "$tmp" && test -d "$tmp"
23537
tmp=./conf$$-$RANDOM
23538
(umask 077 && mkdir "$tmp")
23541
$as_echo "$as_me: cannot create a temporary directory in ." >&2
23542
{ (exit 1); exit 1; }
23545
# Set up the scripts for CONFIG_FILES section.
23546
# No need to generate them if there are no CONFIG_FILES.
23547
# This happens for instance with `./config.status config.h'.
23548
if test -n "$CONFIG_FILES"; then
23552
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23553
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23556
ac_cs_awk_cr=$ac_cr
23559
echo 'BEGIN {' >"$tmp/subs1.awk" &&
23564
echo "cat >conf$$subs.awk <<_ACEOF" &&
23565
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23567
} >conf$$subs.sh ||
23568
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23569
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23570
{ (exit 1); exit 1; }; }
23571
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23573
for ac_last_try in false false false false false :; do
23574
. ./conf$$subs.sh ||
23575
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23576
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23577
{ (exit 1); exit 1; }; }
23579
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23580
if test $ac_delim_n = $ac_delim_num; then
23582
elif $ac_last_try; then
23583
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23584
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23585
{ (exit 1); exit 1; }; }
23587
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23590
rm -f conf$$subs.sh
23592
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23593
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23597
s/^/S["/; s/!.*/"]=/
23607
s/\(.\{148\}\).*/\1/
23609
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23614
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23621
s/\(.\{148\}\).*/\1/
23623
s/["\\]/\\&/g; s/^/"/; s/$/"/
23627
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23632
' <conf$$subs.awk | sed '
23637
' >>$CONFIG_STATUS || ac_write_fail=1
23638
rm -f conf$$subs.awk
23639
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23641
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23642
for (key in S) S_is_set[key] = 1
23648
nfields = split(line, field, "@")
23650
len = length(field[1])
23651
for (i = 2; i < nfields; i++) {
23653
keylen = length(key)
23654
if (S_is_set[key]) {
23656
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23657
len += length(value) + length(field[++i])
23668
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23669
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23670
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23673
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23674
|| { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23675
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
23676
{ (exit 1); exit 1; }; }
23679
# VPATH may cause trouble with some makes, so we remove $(srcdir),
23680
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23681
# trailing colons and then remove the whole line if VPATH becomes empty
23682
# (actually we leave an empty line to preserve line numbers).
23683
if test "x$srcdir" = x.; then
23684
ac_vpsub='/^[ ]*VPATH[ ]*=/{
23685
s/:*\$(srcdir):*/:/
23686
s/:*\${srcdir}:*/:/
23688
s/^\([^=]*=[ ]*\):*/\1/
23694
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23695
fi # test -n "$CONFIG_FILES"
23697
# Set up the scripts for CONFIG_HEADERS section.
23698
# No need to generate them if there are no CONFIG_HEADERS.
23699
# This happens for instance with `./config.status Makefile'.
23700
if test -n "$CONFIG_HEADERS"; then
23701
cat >"$tmp/defines.awk" <<\_ACAWK ||
23705
# Transform confdefs.h into an awk script `defines.awk', embedded as
23706
# here-document in config.status, that substitutes the proper values into
23707
# config.h.in to produce config.h.
23709
# Create a delimiter string that does not exist in confdefs.h, to ease
23710
# handling of long lines.
23712
for ac_last_try in false false :; do
23713
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23714
if test -z "$ac_t"; then
23716
elif $ac_last_try; then
23717
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23718
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23719
{ (exit 1); exit 1; }; }
23721
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23725
# For the awk script, D is an array of macro values keyed by name,
23726
# likewise P contains macro parameters if any. Preserve backslash
23727
# newline sequences.
23729
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23731
s/.\{148\}/&'"$ac_delim"'/g
23734
s/^[ ]*#[ ]*define[ ][ ]*/ /
23741
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23743
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23747
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23748
D["\1"]=" \3\\\\\\n"\\/p
23750
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23755
s/.\{148\}/&'"$ac_delim"'/g
23760
s/["\\]/\\&/g; s/^/"/; s/$/"/p
23763
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23765
' <confdefs.h | sed '
23766
s/'"$ac_delim"'/"\\\
23767
"/g' >>$CONFIG_STATUS || ac_write_fail=1
23769
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23770
for (key in D) D_is_set[key] = 1
23773
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23775
split(line, arg, " ")
23776
if (arg[1] == "#") {
23780
defundef = substr(arg[1], 2)
23783
split(mac1, mac2, "(") #)
23785
prefix = substr(line, 1, index(line, defundef) - 1)
23786
if (D_is_set[macro]) {
23787
# Preserve the white space surrounding the "#".
23788
print prefix "define", macro P[macro] D[macro]
23791
# Replace #undef with comments. This is necessary, for example,
23792
# in the case of _POSIX_SOURCE, which is predefined and required
23793
# on some systems where configure will not decide to define it.
23794
if (defundef == "undef") {
23795
print "/*", prefix defundef, macro, "*/"
23803
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23804
{ { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23805
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23806
{ (exit 1); exit 1; }; }
23807
fi # test -n "$CONFIG_HEADERS"
23810
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
23815
:[FHLC]) ac_mode=$ac_tag; continue;;
23817
case $ac_mode$ac_tag in
23819
:L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23820
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23821
{ (exit 1); exit 1; }; };;
23822
:[FH]-) ac_tag=-:-;;
23823
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23840
-) ac_f="$tmp/stdin";;
23841
*) # Look for the file first in the build tree, then in the source tree
23842
# (if the path is not absolute). The absolute path cannot be DOS-style,
23843
# because $ac_f cannot contain `:'.
23847
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23849
{ { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23850
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23851
{ (exit 1); exit 1; }; };;
23853
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23854
ac_file_inputs="$ac_file_inputs '$ac_f'"
23857
# Let's still pretend it is `configure' which instantiates (i.e., don't
23858
# use $as_me), people would be surprised to read:
23859
# /* config.h. Generated by config.status. */
23860
configure_input='Generated from '`
23861
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23863
if test x"$ac_file" != x-; then
23864
configure_input="$ac_file. $configure_input"
23865
{ $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23866
$as_echo "$as_me: creating $ac_file" >&6;}
23868
# Neutralize special characters interpreted by sed in replacement strings.
23869
case $configure_input in #(
23870
*\&* | *\|* | *\\* )
23871
ac_sed_conf_input=`$as_echo "$configure_input" |
23872
sed 's/[\\\\&|]/\\\\&/g'`;; #(
23873
*) ac_sed_conf_input=$configure_input;;
23877
*:-:* | *:-) cat >"$tmp/stdin" \
23878
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23879
$as_echo "$as_me: error: could not create $ac_file" >&2;}
23880
{ (exit 1); exit 1; }; } ;;
23885
ac_dir=`$as_dirname -- "$ac_file" ||
23886
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23887
X"$ac_file" : 'X\(//\)[^/]' \| \
23888
X"$ac_file" : 'X\(//\)$' \| \
23889
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23890
$as_echo X"$ac_file" |
23891
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23895
/^X\(\/\/\)[^/].*/{
23910
-*) as_dir=./$as_dir;;
23912
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23916
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23917
*) as_qdir=$as_dir;;
23919
as_dirs="'$as_qdir' $as_dirs"
23920
as_dir=`$as_dirname -- "$as_dir" ||
23921
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23922
X"$as_dir" : 'X\(//\)[^/]' \| \
23923
X"$as_dir" : 'X\(//\)$' \| \
23924
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23925
$as_echo X"$as_dir" |
23926
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23930
/^X\(\/\/\)[^/].*/{
23943
test -d "$as_dir" && break
23945
test -z "$as_dirs" || eval "mkdir $as_dirs"
23946
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23947
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23948
{ (exit 1); exit 1; }; }; }
23952
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23954
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23955
# A ".." for each directory in $ac_dir_suffix.
23956
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23957
case $ac_top_builddir_sub in
23958
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23959
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23962
ac_abs_top_builddir=$ac_pwd
23963
ac_abs_builddir=$ac_pwd$ac_dir_suffix
23964
# for backward compatibility:
23965
ac_top_builddir=$ac_top_build_prefix
23968
.) # We are building in place.
23970
ac_top_srcdir=$ac_top_builddir_sub
23971
ac_abs_top_srcdir=$ac_pwd ;;
23972
[\\/]* | ?:[\\/]* ) # Absolute name.
23973
ac_srcdir=$srcdir$ac_dir_suffix;
23974
ac_top_srcdir=$srcdir
23975
ac_abs_top_srcdir=$srcdir ;;
23976
*) # Relative name.
23977
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23978
ac_top_srcdir=$ac_top_build_prefix$srcdir
23979
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23981
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23991
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23992
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23996
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23997
# If the template does not know about datarootdir, expand it.
23998
# FIXME: This hack should be removed a few years after 2.60.
23999
ac_datarootdir_hack=; ac_datarootdir_seen=
24012
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24013
*datarootdir*) ac_datarootdir_seen=yes;;
24014
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24015
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24016
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24018
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24019
ac_datarootdir_hack='
24020
s&@datadir@&$datadir&g
24021
s&@docdir@&$docdir&g
24022
s&@infodir@&$infodir&g
24023
s&@localedir@&$localedir&g
24024
s&@mandir@&$mandir&g
24025
s&\\\${datarootdir}&$datarootdir&g' ;;
24029
# Neutralize VPATH when `$srcdir' = `.'.
24030
# Shell code in configure.ac might set extrasub.
24031
# FIXME: do we really want to maintain this feature?
24032
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24033
ac_sed_extra="$ac_vpsub
24036
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24038
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24039
s|@configure_input@|$ac_sed_conf_input|;t t
24040
s&@top_builddir@&$ac_top_builddir_sub&;t t
24041
s&@top_build_prefix@&$ac_top_build_prefix&;t t
24042
s&@srcdir@&$ac_srcdir&;t t
24043
s&@abs_srcdir@&$ac_abs_srcdir&;t t
24044
s&@top_srcdir@&$ac_top_srcdir&;t t
24045
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24046
s&@builddir@&$ac_builddir&;t t
24047
s&@abs_builddir@&$ac_abs_builddir&;t t
24048
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24049
s&@INSTALL@&$ac_INSTALL&;t t
24050
$ac_datarootdir_hack
24052
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
24053
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24054
$as_echo "$as_me: error: could not create $ac_file" >&2;}
24055
{ (exit 1); exit 1; }; }
24057
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24058
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24059
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24060
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24061
which seems to be undefined. Please make sure it is defined." >&5
24062
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24063
which seems to be undefined. Please make sure it is defined." >&2;}
24067
-) cat "$tmp/out" && rm -f "$tmp/out";;
24068
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24070
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24071
$as_echo "$as_me: error: could not create $ac_file" >&2;}
24072
{ (exit 1); exit 1; }; }
24078
if test x"$ac_file" != x-; then
24080
$as_echo "/* $configure_input */" \
24081
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24082
} >"$tmp/config.h" \
24083
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24084
$as_echo "$as_me: error: could not create $ac_file" >&2;}
24085
{ (exit 1); exit 1; }; }
24086
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24087
{ $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24088
$as_echo "$as_me: $ac_file is unchanged" >&6;}
24091
mv "$tmp/config.h" "$ac_file" \
24092
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24093
$as_echo "$as_me: error: could not create $ac_file" >&2;}
24094
{ (exit 1); exit 1; }; }
24097
$as_echo "/* $configure_input */" \
24098
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24099
|| { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
24100
$as_echo "$as_me: error: could not create -" >&2;}
24101
{ (exit 1); exit 1; }; }
24109
case $ac_file$ac_mode in
24110
"trampoline_r.h":H) sed "s/@LIBFFCALL_VERSION@/${LIBFFCALL_VERSION}/" trampoline_r.h > tmp
24111
mv -f tmp trampoline_r.h ;;
24117
{ (exit 0); exit 0; }
24119
chmod +x $CONFIG_STATUS
24120
ac_clean_files=$ac_clean_files_save
24122
test $ac_write_fail = 0 ||
24123
{ { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
24124
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
24125
{ (exit 1); exit 1; }; }
24128
# configure is writing to config.log, and then calls config.status.
24129
# config.status does its own redirection, appending to config.log.
24130
# Unfortunately, on DOS this fails, as config.log is still kept open
24131
# by configure, so config.status won't be able to write to it; its
24132
# output is simply discarded. So we exec the FD to /dev/null,
24133
# effectively closing config.log, so it can be properly (re)opened and
24134
# appended to by config.status. When coming back to configure, we
24135
# need to make the FD available again.
24136
if test "$no_create" != yes; then
24138
ac_config_status_args=
24139
test "$silent" = yes &&
24140
ac_config_status_args="$ac_config_status_args --quiet"
24142
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24144
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
24145
# would make configure fail if this is the last instruction.
24146
$ac_cs_success || { (exit 1); exit 1; }
24148
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24149
{ $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24150
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}