2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.63 for xf86-input-synaptics 0.99.3.
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization. ##
13
## --------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in
26
*posix*) set -o posix ;;
35
# Avoid depending upon Character Ranges.
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
as_cr_digits='0123456789'
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
45
# Printing a long string crashes Solaris 7 /usr/bin/printf.
46
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83
# Support unset when possible.
84
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92
# We need space, tab and new line, in precisely that order. Quoting is
93
# there to prevent editors from complaining about space-tab.
94
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95
# splitting by setting IFS to empty value.)
98
# Find who we are. Look in the path if we contain no directory separator.
100
*[\\/]* ) as_myself=$0 ;;
101
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105
test -z "$as_dir" && as_dir=.
106
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112
# We did not find ourselves, most probably we were run as `sh COMMAND'
113
# in which case we are not to be found in the path.
114
if test "x$as_myself" = x; then
117
if test ! -f "$as_myself"; then
118
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119
{ (exit 1); exit 1; }
122
# Work around bugs in pre-3.0 UWIN ksh.
123
for as_var in ENV MAIL MAILPATH
124
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136
# Required to use basename.
137
if expr a : '\(a\)' >/dev/null 2>&1 &&
138
test "X`expr 00001 : '.*\(...\)'`" = X001; then
144
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151
# Name of the executable.
152
as_me=`$as_basename -- "$0" ||
153
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154
X"$0" : 'X\(//\)$' \| \
155
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157
sed '/^.*\/\([^/][^/]*\)\/*$/{
175
if test "x$CONFIG_SHELL" = x; then
176
if (eval ":") 2>/dev/null; then
182
if test $as_have_required = yes && (eval ":
192
as_func_ret_success () {
195
as_func_ret_failure () {
200
if as_func_success; then
204
echo as_func_success failed.
207
if as_func_failure; then
209
echo as_func_failure succeeded.
212
if as_func_ret_success; then
216
echo as_func_ret_success failed.
219
if as_func_ret_failure; then
221
echo as_func_ret_failure succeeded.
224
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228
echo positional parameters were not saved.
231
test \$exitcode = 0) || { (exit 1); exit 1; }
236
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238
") 2> /dev/null; then
242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246
test -z "$as_dir" && as_dir=.
249
for as_base in sh bash ksh sh5; do
250
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257
for as_shell in $as_candidate_shells $SHELL; do
258
# Try only shells that exist, to save several forks.
259
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260
{ ("$as_shell") 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
279
CONFIG_SHELL=$as_shell
281
if { "$as_shell" 2> /dev/null <<\_ASEOF
282
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286
# is contrary to our usage. Disable this feature.
287
alias -g '${1+"$@"}'='"$@"'
290
case `(set -o) 2>/dev/null` in
291
*posix*) set -o posix ;;
307
as_func_ret_success () {
310
as_func_ret_failure () {
315
if as_func_success; then
319
echo as_func_success failed.
322
if as_func_failure; then
324
echo as_func_failure succeeded.
327
if as_func_ret_success; then
331
echo as_func_ret_success failed.
334
if as_func_ret_failure; then
336
echo as_func_ret_failure succeeded.
339
if ( set x; as_func_ret_success y && test x = "$1" ); then
343
echo positional parameters were not saved.
346
test $exitcode = 0) || { (exit 1); exit 1; }
351
test "x$as_lineno_1" != "x$as_lineno_2" &&
352
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363
if test "x$CONFIG_SHELL" != x; then
364
for as_var in BASH_ENV ENV
365
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372
if test $as_have_required = no; then
373
echo This script requires a shell more modern than all the
374
echo shells that I found on your system. Please install a
375
echo modern shell, or manually run the script under such a
376
echo shell if you do have one.
377
{ (exit 1); exit 1; }
387
(eval "as_func_return () {
396
as_func_ret_success () {
399
as_func_ret_failure () {
404
if as_func_success; then
408
echo as_func_success failed.
411
if as_func_failure; then
413
echo as_func_failure succeeded.
416
if as_func_ret_success; then
420
echo as_func_ret_success failed.
423
if as_func_ret_failure; then
425
echo as_func_ret_failure succeeded.
428
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432
echo positional parameters were not saved.
435
test \$exitcode = 0") || {
436
echo No shell found that supports shell functions.
437
echo Please tell bug-autoconf@gnu.org about your system,
438
echo including any error possibly output before this message.
439
echo This can help us improve future autoconf versions.
440
echo Configuration will now proceed without shell functions.
447
test "x$as_lineno_1" != "x$as_lineno_2" &&
448
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451
# uniformly replaced by the line number. The first 'sed' inserts a
452
# line-number line after each line using $LINENO; the second 'sed'
453
# does the real work. The second script uses 'N' to pair each
454
# line-number line with the line containing $LINENO, and appends
455
# trailing '-' during substitution so that $LINENO is not a special
457
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458
# scripts with optimization help from Paolo Bonzini. Blame Lee
459
# E. McMahon (1931-1989) for sed's syntax. :-)
471
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475
chmod +x "$as_me.lineno" ||
476
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477
{ (exit 1); exit 1; }; }
479
# Don't try to exec as it changes $[0], causing all sort of problems
480
# (the dirname of $[0] is not the place where we might find the
481
# original and so on. Autoconf is especially sensitive to this).
483
# Exit status is that of the last command.
488
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494
ECHO_C= ECHO_N= ECHO_T=
498
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
504
if expr a : '\(a\)' >/dev/null 2>&1 &&
505
test "X`expr 00001 : '.*\(...\)'`" = X001; then
511
rm -f conf$$ conf$$.exe conf$$.file
512
if test -d conf$$.dir; then
513
rm -f conf$$.dir/conf$$.file
516
mkdir conf$$.dir 2>/dev/null
518
if (echo >conf$$.file) 2>/dev/null; then
519
if ln -s conf$$.file conf$$ 2>/dev/null; then
521
# ... but there are two gotchas:
522
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524
# In both cases, we have to default to `cp -p'.
525
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527
elif ln conf$$.file conf$$ 2>/dev/null; then
535
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536
rmdir conf$$.dir 2>/dev/null
538
if mkdir -p . 2>/dev/null; then
541
test -d ./-p && rmdir ./-p
545
if test -x / >/dev/null 2>&1; then
548
if ls -dL / >/dev/null 2>&1; then
555
if test -d "$1"; then
561
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562
???[sx]*):;;*)false;;esac;fi
566
as_executable_p=$as_test_x
568
# Sed expression to map a string onto a valid CPP name.
569
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571
# Sed expression to map a string onto a valid variable name.
572
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577
# Check that we are running under the correct shell.
578
SHELL=${CONFIG_SHELL-/bin/sh}
582
# Remove one level of quotation (which was required for Make).
583
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
588
if test "X$1" = X--no-reexec; then
589
# Discard the --no-reexec flag, and continue.
591
elif test "X$1" = X--fallback-echo; then
592
# Avoid inline document here, it may be left over
594
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595
# Yippee, $echo works!
598
# Restart under the correct shell.
599
exec $SHELL "$0" --no-reexec ${1+"$@"}
602
if test "X$1" = X--fallback-echo; then
603
# used as fallback echo
611
# The HP-UX ksh and POSIX shell print the target directory to stdout
613
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615
if test -z "$ECHO"; then
616
if test "X${echo_test_string+set}" != Xset; then
617
# find a string as large as possible, as long as the shell can cope with it
618
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621
echo_test_string=`eval $cmd` &&
622
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
629
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631
test "X$echo_testing_string" = "X$echo_test_string"; then
634
# The Solaris, AIX, and Digital Unix default echo programs unquote
635
# backslashes. This makes it impossible to quote backslashes using
636
# echo "$something" | sed 's/\\/\\\\/g'
638
# So, first we look for a working echo in the user's PATH.
640
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641
for dir in $PATH /usr/ucb; do
643
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646
test "X$echo_testing_string" = "X$echo_test_string"; then
653
if test "X$echo" = Xecho; then
654
# We didn't find a better echo, so look for alternatives.
655
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657
test "X$echo_testing_string" = "X$echo_test_string"; then
658
# This shell has a builtin print -r that does the trick.
660
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661
test "X$CONFIG_SHELL" != X/bin/ksh; then
662
# If we have ksh, try running configure again with it.
663
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664
export ORIGINAL_CONFIG_SHELL
665
CONFIG_SHELL=/bin/ksh
667
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
671
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673
test "X$echo_testing_string" = "X$echo_test_string"; then
676
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677
test "X$echo_testing_string" = 'X\t' &&
678
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679
test "X$echo_testing_string" = "X$echo_test_string"; then
680
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
682
SHELL="$CONFIG_SHELL"
684
echo="$CONFIG_SHELL $0 --fallback-echo"
685
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686
test "X$echo_testing_string" = 'X\t' &&
687
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688
test "X$echo_testing_string" = "X$echo_test_string"; then
689
echo="$CONFIG_SHELL $0 --fallback-echo"
691
# maybe with a smaller string...
694
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
702
if test "$prev" != 'sed 50q "$0"'; then
703
echo_test_string=`eval $prev`
704
export echo_test_string
705
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
707
# Oops. We lost completely, so just stick with echo.
716
# Copy echo and quote the copy suitably for passing to libtool from
717
# the Makefile, instead of quoting the original, which is used later.
719
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
726
tagnames=${tagnames+${tagnames},}CXX
728
tagnames=${tagnames+${tagnames},}F77
730
exec 7<&0 </dev/null 6>&1
733
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734
# so uname gets run too.
735
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
740
ac_default_prefix=/usr/local
742
ac_config_libobj_dir=.
748
SHELL=${CONFIG_SHELL-/bin/sh}
750
# Identity of this package.
751
PACKAGE_NAME='xf86-input-synaptics'
752
PACKAGE_TARNAME='xf86-input-synaptics'
753
PACKAGE_VERSION='0.99.3'
754
PACKAGE_STRING='xf86-input-synaptics 0.99.3'
755
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
757
ac_unique_file="Makefile.am"
758
# Factoring default headers for most tests.
759
ac_includes_default="\
761
#ifdef HAVE_SYS_TYPES_H
762
# include <sys/types.h>
764
#ifdef HAVE_SYS_STAT_H
765
# include <sys/stat.h>
771
# ifdef HAVE_STDLIB_H
776
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
781
#ifdef HAVE_STRINGS_H
782
# include <strings.h>
784
#ifdef HAVE_INTTYPES_H
785
# include <inttypes.h>
794
ac_subst_vars='LTLIBOBJS
817
BUILD_EVENTCOMM_FALSE
866
MAINTAINER_MODE_FALSE
876
INSTALL_STRIP_PROGRAM
918
program_transform_name
930
enable_option_checking
931
enable_maintainer_mode
935
enable_dependency_tracking
943
ac_precious_vars='build_alias
965
# Initialize some variables set by options.
967
ac_init_version=false
968
ac_unrecognized_opts=
970
# The variables have the same names as the options, with
971
# dashes changed to underlines.
979
program_transform_name=s,x,x,
987
# Installation directory options.
988
# These are left unexpanded so users can "make install exec_prefix=/foo"
989
# and all the variables that are supposed to be based on exec_prefix
990
# by default will actually change.
991
# Use braces instead of parens because sh, perl, etc. also accept them.
992
# (The list follows the same order as the GNU Coding Standards.)
993
bindir='${exec_prefix}/bin'
994
sbindir='${exec_prefix}/sbin'
995
libexecdir='${exec_prefix}/libexec'
996
datarootdir='${prefix}/share'
997
datadir='${datarootdir}'
998
sysconfdir='${prefix}/etc'
999
sharedstatedir='${prefix}/com'
1000
localstatedir='${prefix}/var'
1001
includedir='${prefix}/include'
1002
oldincludedir='/usr/include'
1003
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004
infodir='${datarootdir}/info'
1009
libdir='${exec_prefix}/lib'
1010
localedir='${datarootdir}/locale'
1011
mandir='${datarootdir}/man'
1017
# If the previous option needs an argument, assign it.
1018
if test -n "$ac_prev"; then
1019
eval $ac_prev=\$ac_option
1025
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1029
# Accept the important Cygnus configure options, so we can diagnose typos.
1031
case $ac_dashdash$ac_option in
1035
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1037
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038
bindir=$ac_optarg ;;
1040
-build | --build | --buil | --bui | --bu)
1041
ac_prev=build_alias ;;
1042
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043
build_alias=$ac_optarg ;;
1045
-cache-file | --cache-file | --cache-fil | --cache-fi \
1046
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047
ac_prev=cache_file ;;
1048
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050
cache_file=$ac_optarg ;;
1052
--config-cache | -C)
1053
cache_file=config.cache ;;
1055
-datadir | --datadir | --datadi | --datad)
1057
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1058
datadir=$ac_optarg ;;
1060
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061
| --dataroo | --dataro | --datar)
1062
ac_prev=datarootdir ;;
1063
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065
datarootdir=$ac_optarg ;;
1067
-disable-* | --disable-*)
1068
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069
# Reject names that are not valid shell variable names.
1070
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1072
{ (exit 1); exit 1; }; }
1073
ac_useropt_orig=$ac_useropt
1074
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075
case $ac_user_opts in
1077
"enable_$ac_useropt"
1079
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1080
ac_unrecognized_sep=', ';;
1082
eval enable_$ac_useropt=no ;;
1084
-docdir | --docdir | --docdi | --doc | --do)
1086
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087
docdir=$ac_optarg ;;
1089
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092
dvidir=$ac_optarg ;;
1094
-enable-* | --enable-*)
1095
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096
# Reject names that are not valid shell variable names.
1097
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1099
{ (exit 1); exit 1; }; }
1100
ac_useropt_orig=$ac_useropt
1101
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102
case $ac_user_opts in
1104
"enable_$ac_useropt"
1106
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107
ac_unrecognized_sep=', ';;
1109
eval enable_$ac_useropt=\$ac_optarg ;;
1111
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113
| --exec | --exe | --ex)
1114
ac_prev=exec_prefix ;;
1115
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117
| --exec=* | --exe=* | --ex=*)
1118
exec_prefix=$ac_optarg ;;
1120
-gas | --gas | --ga | --g)
1121
# Obsolete; use --with-gas.
1124
-help | --help | --hel | --he | -h)
1125
ac_init_help=long ;;
1126
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127
ac_init_help=recursive ;;
1128
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129
ac_init_help=short ;;
1131
-host | --host | --hos | --ho)
1132
ac_prev=host_alias ;;
1133
-host=* | --host=* | --hos=* | --ho=*)
1134
host_alias=$ac_optarg ;;
1136
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1138
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1140
htmldir=$ac_optarg ;;
1142
-includedir | --includedir | --includedi | --included | --include \
1143
| --includ | --inclu | --incl | --inc)
1144
ac_prev=includedir ;;
1145
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146
| --includ=* | --inclu=* | --incl=* | --inc=*)
1147
includedir=$ac_optarg ;;
1149
-infodir | --infodir | --infodi | --infod | --info | --inf)
1151
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152
infodir=$ac_optarg ;;
1154
-libdir | --libdir | --libdi | --libd)
1156
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1157
libdir=$ac_optarg ;;
1159
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160
| --libexe | --libex | --libe)
1161
ac_prev=libexecdir ;;
1162
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163
| --libexe=* | --libex=* | --libe=*)
1164
libexecdir=$ac_optarg ;;
1166
-localedir | --localedir | --localedi | --localed | --locale)
1167
ac_prev=localedir ;;
1168
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169
localedir=$ac_optarg ;;
1171
-localstatedir | --localstatedir | --localstatedi | --localstated \
1172
| --localstate | --localstat | --localsta | --localst | --locals)
1173
ac_prev=localstatedir ;;
1174
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176
localstatedir=$ac_optarg ;;
1178
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1180
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181
mandir=$ac_optarg ;;
1183
-nfp | --nfp | --nf)
1184
# Obsolete; use --without-fp.
1187
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188
| --no-cr | --no-c | -n)
1191
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1195
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197
| --oldin | --oldi | --old | --ol | --o)
1198
ac_prev=oldincludedir ;;
1199
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202
oldincludedir=$ac_optarg ;;
1204
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1206
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207
prefix=$ac_optarg ;;
1209
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1210
| --program-pre | --program-pr | --program-p)
1211
ac_prev=program_prefix ;;
1212
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1213
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214
program_prefix=$ac_optarg ;;
1216
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1217
| --program-suf | --program-su | --program-s)
1218
ac_prev=program_suffix ;;
1219
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1220
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221
program_suffix=$ac_optarg ;;
1223
-program-transform-name | --program-transform-name \
1224
| --program-transform-nam | --program-transform-na \
1225
| --program-transform-n | --program-transform- \
1226
| --program-transform | --program-transfor \
1227
| --program-transfo | --program-transf \
1228
| --program-trans | --program-tran \
1229
| --progr-tra | --program-tr | --program-t)
1230
ac_prev=program_transform_name ;;
1231
-program-transform-name=* | --program-transform-name=* \
1232
| --program-transform-nam=* | --program-transform-na=* \
1233
| --program-transform-n=* | --program-transform-=* \
1234
| --program-transform=* | --program-transfor=* \
1235
| --program-transfo=* | --program-transf=* \
1236
| --program-trans=* | --program-tran=* \
1237
| --progr-tra=* | --program-tr=* | --program-t=*)
1238
program_transform_name=$ac_optarg ;;
1240
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1242
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243
pdfdir=$ac_optarg ;;
1245
-psdir | --psdir | --psdi | --psd | --ps)
1247
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1250
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251
| -silent | --silent | --silen | --sile | --sil)
1254
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1256
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1258
sbindir=$ac_optarg ;;
1260
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1261
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262
| --sharedst | --shareds | --shared | --share | --shar \
1264
ac_prev=sharedstatedir ;;
1265
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1269
sharedstatedir=$ac_optarg ;;
1271
-site | --site | --sit)
1273
-site=* | --site=* | --sit=*)
1276
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1278
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279
srcdir=$ac_optarg ;;
1281
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282
| --syscon | --sysco | --sysc | --sys | --sy)
1283
ac_prev=sysconfdir ;;
1284
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286
sysconfdir=$ac_optarg ;;
1288
-target | --target | --targe | --targ | --tar | --ta | --t)
1289
ac_prev=target_alias ;;
1290
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291
target_alias=$ac_optarg ;;
1293
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1296
-version | --version | --versio | --versi | --vers | -V)
1297
ac_init_version=: ;;
1300
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301
# Reject names that are not valid shell variable names.
1302
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1304
{ (exit 1); exit 1; }; }
1305
ac_useropt_orig=$ac_useropt
1306
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307
case $ac_user_opts in
1311
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1312
ac_unrecognized_sep=', ';;
1314
eval with_$ac_useropt=\$ac_optarg ;;
1316
-without-* | --without-*)
1317
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1318
# Reject names that are not valid shell variable names.
1319
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1321
{ (exit 1); exit 1; }; }
1322
ac_useropt_orig=$ac_useropt
1323
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324
case $ac_user_opts in
1328
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1329
ac_unrecognized_sep=', ';;
1331
eval with_$ac_useropt=no ;;
1334
# Obsolete; use --with-x.
1337
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1338
| --x-incl | --x-inc | --x-in | --x-i)
1339
ac_prev=x_includes ;;
1340
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1341
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1342
x_includes=$ac_optarg ;;
1344
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1345
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1346
ac_prev=x_libraries ;;
1347
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1348
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1349
x_libraries=$ac_optarg ;;
1351
-*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1352
Try \`$0 --help' for more information." >&2
1353
{ (exit 1); exit 1; }; }
1357
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1358
# Reject names that are not valid shell variable names.
1359
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1360
{ $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1361
{ (exit 1); exit 1; }; }
1362
eval $ac_envvar=\$ac_optarg
1363
export $ac_envvar ;;
1366
# FIXME: should be removed in autoconf 3.0.
1367
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1368
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1369
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1370
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1376
if test -n "$ac_prev"; then
1377
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1378
{ $as_echo "$as_me: error: missing argument to $ac_option" >&2
1379
{ (exit 1); exit 1; }; }
1382
if test -n "$ac_unrecognized_opts"; then
1383
case $enable_option_checking in
1385
fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1386
{ (exit 1); exit 1; }; } ;;
1387
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1391
# Check all directory arguments for consistency.
1392
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393
datadir sysconfdir sharedstatedir localstatedir includedir \
1394
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395
libdir localedir mandir
1397
eval ac_val=\$$ac_var
1398
# Remove trailing slashes.
1401
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402
eval $ac_var=\$ac_val;;
1404
# Be sure to have absolute directory names.
1406
[\\/$]* | ?:[\\/]* ) continue;;
1407
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1409
{ $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1410
{ (exit 1); exit 1; }; }
1413
# There might be people who depend on the old broken behavior: `$host'
1414
# used to hold the argument of --host etc.
1415
# FIXME: To remove some day.
1418
target=$target_alias
1420
# FIXME: To remove some day.
1421
if test "x$host_alias" != x; then
1422
if test "x$build_alias" = x; then
1423
cross_compiling=maybe
1424
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1425
If a cross compiler is detected then cross compile mode will be used." >&2
1426
elif test "x$build_alias" != "x$host_alias"; then
1432
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1434
test "$silent" = yes && exec 6>/dev/null
1437
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1438
ac_ls_di=`ls -di .` &&
1439
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1440
{ $as_echo "$as_me: error: working directory cannot be determined" >&2
1441
{ (exit 1); exit 1; }; }
1442
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443
{ $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1444
{ (exit 1); exit 1; }; }
1447
# Find the source files, if location was not specified.
1448
if test -z "$srcdir"; then
1449
ac_srcdir_defaulted=yes
1450
# Try the directory containing this script, then the parent directory.
1451
ac_confdir=`$as_dirname -- "$as_myself" ||
1452
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453
X"$as_myself" : 'X\(//\)[^/]' \| \
1454
X"$as_myself" : 'X\(//\)$' \| \
1455
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456
$as_echo X"$as_myself" |
1457
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1475
if test ! -r "$srcdir/$ac_unique_file"; then
1479
ac_srcdir_defaulted=no
1481
if test ! -r "$srcdir/$ac_unique_file"; then
1482
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483
{ $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1484
{ (exit 1); exit 1; }; }
1486
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1488
cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1489
{ (exit 1); exit 1; }; }
1491
# When building in place, set srcdir=.
1492
if test "$ac_abs_confdir" = "$ac_pwd"; then
1495
# Remove unnecessary trailing slashes from srcdir.
1496
# Double slashes in file names in object file debugging info
1497
# mess up M-x gdb in Emacs.
1499
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1501
for ac_var in $ac_precious_vars; do
1502
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1503
eval ac_env_${ac_var}_value=\$${ac_var}
1504
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1505
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1509
# Report the --help message.
1511
if test "$ac_init_help" = "long"; then
1512
# Omit some internal or obsolete options to make the list less imposing.
1513
# This message is too long to be a string in the A/UX 3.1 sh.
1515
\`configure' configures xf86-input-synaptics 0.99.3 to adapt to many kinds of systems.
1517
Usage: $0 [OPTION]... [VAR=VALUE]...
1519
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1520
VAR=VALUE. See below for descriptions of some of the useful variables.
1522
Defaults for the options are specified in brackets.
1525
-h, --help display this help and exit
1526
--help=short display options specific to this package
1527
--help=recursive display the short help of all the included packages
1528
-V, --version display version information and exit
1529
-q, --quiet, --silent do not print \`checking...' messages
1530
--cache-file=FILE cache test results in FILE [disabled]
1531
-C, --config-cache alias for \`--cache-file=config.cache'
1532
-n, --no-create do not create output files
1533
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1535
Installation directories:
1536
--prefix=PREFIX install architecture-independent files in PREFIX
1537
[$ac_default_prefix]
1538
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1541
By default, \`make install' will install all the files in
1542
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1543
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1544
for instance \`--prefix=\$HOME'.
1546
For better control, use the options below.
1548
Fine tuning of the installation directories:
1549
--bindir=DIR user executables [EPREFIX/bin]
1550
--sbindir=DIR system admin executables [EPREFIX/sbin]
1551
--libexecdir=DIR program executables [EPREFIX/libexec]
1552
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1553
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1554
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1555
--libdir=DIR object code libraries [EPREFIX/lib]
1556
--includedir=DIR C header files [PREFIX/include]
1557
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1558
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1559
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1560
--infodir=DIR info documentation [DATAROOTDIR/info]
1561
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1562
--mandir=DIR man documentation [DATAROOTDIR/man]
1563
--docdir=DIR documentation root
1564
[DATAROOTDIR/doc/xf86-input-synaptics]
1565
--htmldir=DIR html documentation [DOCDIR]
1566
--dvidir=DIR dvi documentation [DOCDIR]
1567
--pdfdir=DIR pdf documentation [DOCDIR]
1568
--psdir=DIR ps documentation [DOCDIR]
1574
--program-prefix=PREFIX prepend PREFIX to installed program names
1575
--program-suffix=SUFFIX append SUFFIX to installed program names
1576
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1579
--build=BUILD configure for building on BUILD [guessed]
1580
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1584
if test -n "$ac_init_help"; then
1585
case $ac_init_help in
1586
short | recursive ) echo "Configuration of xf86-input-synaptics 0.99.3:";;
1591
--disable-option-checking ignore unrecognized --enable/--with options
1592
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1593
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1594
--enable-maintainer-mode enable make rules and dependencies not useful
1595
(and sometimes confusing) to the casual installer
1596
--enable-static[=PKGS] build static libraries [default=no]
1597
--enable-shared[=PKGS] build shared libraries [default=yes]
1598
--enable-fast-install[=PKGS]
1599
optimize for fast installation [default=yes]
1600
--disable-dependency-tracking speeds up one-time build
1601
--enable-dependency-tracking do not reject slow dependency extractors
1602
--disable-libtool-lock avoid locking (might break parallel builds)
1605
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1606
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1607
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1608
--with-pic try to use only PIC/non-PIC objects [default=use
1610
--with-tags[=TAGS] include additional configurations [automatic]
1611
--with-xorg-module-dir=DIR
1612
Default xorg module directory
1613
[default=$libdir/xorg/modules]
1614
--with-release-version=STRING
1615
Use release version string in package name
1617
Some influential environment variables:
1618
CC C compiler command
1619
CFLAGS C compiler flags
1620
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1621
nonstandard directory <lib dir>
1622
LIBS libraries to pass to the linker, e.g. -l<library>
1623
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1624
you have headers in a nonstandard directory <include dir>
1626
CXX C++ compiler command
1627
CXXFLAGS C++ compiler flags
1628
CXXCPP C++ preprocessor
1629
F77 Fortran 77 compiler command
1630
FFLAGS Fortran 77 compiler flags
1631
PKG_CONFIG path to pkg-config utility
1632
XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1633
XORG_LIBS linker flags for XORG, overriding pkg-config
1634
XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
1635
XLIB_LIBS linker flags for XLIB, overriding pkg-config
1637
Use these variables to override the choices made by `configure' or to help
1638
it to find libraries and programs with nonstandard names/locations.
1640
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1645
if test "$ac_init_help" = "recursive"; then
1646
# If there are subdirs, report their specific --help.
1647
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1648
test -d "$ac_dir" ||
1649
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1654
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1657
# A ".." for each directory in $ac_dir_suffix.
1658
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1659
case $ac_top_builddir_sub in
1660
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664
ac_abs_top_builddir=$ac_pwd
1665
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666
# for backward compatibility:
1667
ac_top_builddir=$ac_top_build_prefix
1670
.) # We are building in place.
1672
ac_top_srcdir=$ac_top_builddir_sub
1673
ac_abs_top_srcdir=$ac_pwd ;;
1674
[\\/]* | ?:[\\/]* ) # Absolute name.
1675
ac_srcdir=$srcdir$ac_dir_suffix;
1676
ac_top_srcdir=$srcdir
1677
ac_abs_top_srcdir=$srcdir ;;
1679
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680
ac_top_srcdir=$ac_top_build_prefix$srcdir
1681
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1683
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1685
cd "$ac_dir" || { ac_status=$?; continue; }
1686
# Check for guested configure.
1687
if test -f "$ac_srcdir/configure.gnu"; then
1689
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690
elif test -f "$ac_srcdir/configure"; then
1692
$SHELL "$ac_srcdir/configure" --help=recursive
1694
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1696
cd "$ac_pwd" || { ac_status=$?; break; }
1700
test -n "$ac_init_help" && exit $ac_status
1701
if $ac_init_version; then
1703
xf86-input-synaptics configure 0.99.3
1704
generated by GNU Autoconf 2.63
1706
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1707
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1708
This configure script is free software; the Free Software Foundation
1709
gives unlimited permission to copy, distribute and modify it.
1713
cat >config.log <<_ACEOF
1714
This file contains any messages produced by compilers while
1715
running configure, to aid debugging if configure makes a mistake.
1717
It was created by xf86-input-synaptics $as_me 0.99.3, which was
1718
generated by GNU Autoconf 2.63. Invocation command line was
1730
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1731
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1732
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1733
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1734
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1736
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1737
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1739
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1740
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1741
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1742
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1743
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1744
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1745
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1749
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753
test -z "$as_dir" && as_dir=.
1754
$as_echo "PATH: $as_dir"
1770
# Keep a trace of the command line.
1771
# Strip out --no-create and --no-recursion so they do not pile up.
1772
# Strip out --silent because we don't want to record it for future runs.
1773
# Also quote any args containing shell meta-characters.
1774
# Make two passes to allow for proper duplicate-argument suppression.
1778
ac_must_keep_next=false
1784
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1785
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1786
| -silent | --silent | --silen | --sile | --sil)
1789
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1792
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1794
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1795
if test $ac_must_keep_next = true; then
1796
ac_must_keep_next=false # Got value, back to normal.
1799
*=* | --config-cache | -C | -disable-* | --disable-* \
1800
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1801
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1802
| -with-* | --with-* | -without-* | --without-* | --x)
1803
case "$ac_configure_args0 " in
1804
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1807
-* ) ac_must_keep_next=true ;;
1810
ac_configure_args="$ac_configure_args '$ac_arg'"
1815
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1816
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1818
# When interrupted or exit'd, cleanup temporary files, and complete
1819
# config.log. We remove comments because anyway the quotes in there
1820
# would cause problems or look ugly.
1821
# WARNING: Use '\'' to represent an apostrophe within the trap.
1822
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1823
trap 'exit_status=$?
1824
# Save into config.log some information that might help in debugging.
1829
## ---------------- ##
1830
## Cache variables. ##
1831
## ---------------- ##
1834
# The following way of writing the cache mishandles newlines in values,
1836
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1837
eval ac_val=\$$ac_var
1841
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1842
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1845
_ | IFS | as_nl) ;; #(
1846
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1847
*) $as_unset $ac_var ;;
1852
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1853
*${as_nl}ac_space=\ *)
1855
"s/'\''/'\''\\\\'\'''\''/g;
1856
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1859
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1867
## ----------------- ##
1868
## Output variables. ##
1869
## ----------------- ##
1872
for ac_var in $ac_subst_vars
1874
eval ac_val=\$$ac_var
1876
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1878
$as_echo "$ac_var='\''$ac_val'\''"
1882
if test -n "$ac_subst_files"; then
1884
## ------------------- ##
1885
## File substitutions. ##
1886
## ------------------- ##
1889
for ac_var in $ac_subst_files
1891
eval ac_val=\$$ac_var
1893
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1895
$as_echo "$ac_var='\''$ac_val'\''"
1900
if test -s confdefs.h; then
1910
test "$ac_signal" != 0 &&
1911
$as_echo "$as_me: caught signal $ac_signal"
1912
$as_echo "$as_me: exit $exit_status"
1914
rm -f core *.core core.conftest.* &&
1915
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1918
for ac_signal in 1 2 13 15; do
1919
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1923
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1924
rm -f -r conftest* confdefs.h
1926
# Predefined preprocessor variables.
1928
cat >>confdefs.h <<_ACEOF
1929
#define PACKAGE_NAME "$PACKAGE_NAME"
1933
cat >>confdefs.h <<_ACEOF
1934
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1938
cat >>confdefs.h <<_ACEOF
1939
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1943
cat >>confdefs.h <<_ACEOF
1944
#define PACKAGE_STRING "$PACKAGE_STRING"
1948
cat >>confdefs.h <<_ACEOF
1949
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1953
# Let the site file select an alternate cache file if it wants to.
1954
# Prefer an explicitly selected file to automatically selected ones.
1957
if test -n "$CONFIG_SITE"; then
1958
ac_site_file1=$CONFIG_SITE
1959
elif test "x$prefix" != xNONE; then
1960
ac_site_file1=$prefix/share/config.site
1961
ac_site_file2=$prefix/etc/config.site
1963
ac_site_file1=$ac_default_prefix/share/config.site
1964
ac_site_file2=$ac_default_prefix/etc/config.site
1966
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1968
test "x$ac_site_file" = xNONE && continue
1969
if test -r "$ac_site_file"; then
1970
{ $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1971
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1972
sed 's/^/| /' "$ac_site_file" >&5
1977
if test -r "$cache_file"; then
1978
# Some versions of bash will fail to source /dev/null (special
1979
# files actually), so we avoid doing that.
1980
if test -f "$cache_file"; then
1981
{ $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1982
$as_echo "$as_me: loading cache $cache_file" >&6;}
1984
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1985
*) . "./$cache_file";;
1989
{ $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1990
$as_echo "$as_me: creating cache $cache_file" >&6;}
1994
# Check that the precious variables saved in the cache have kept the same
1996
ac_cache_corrupted=false
1997
for ac_var in $ac_precious_vars; do
1998
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1999
eval ac_new_set=\$ac_env_${ac_var}_set
2000
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2001
eval ac_new_val=\$ac_env_${ac_var}_value
2002
case $ac_old_set,$ac_new_set in
2004
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2005
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2006
ac_cache_corrupted=: ;;
2008
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2009
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2010
ac_cache_corrupted=: ;;
2013
if test "x$ac_old_val" != "x$ac_new_val"; then
2014
# differences in whitespace do not lead to failure.
2015
ac_old_val_w=`echo x $ac_old_val`
2016
ac_new_val_w=`echo x $ac_new_val`
2017
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2018
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2019
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2020
ac_cache_corrupted=:
2022
{ $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2023
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2024
eval $ac_var=\$ac_old_val
2026
{ $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2027
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2028
{ $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2029
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2032
# Pass precious variables to config.status.
2033
if test "$ac_new_set" = set; then
2035
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2036
*) ac_arg=$ac_var=$ac_new_val ;;
2038
case " $ac_configure_args " in
2039
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2040
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2044
if $ac_cache_corrupted; then
2045
{ $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2046
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2047
{ $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2048
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2049
{ { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2050
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2051
{ (exit 1); exit 1; }; }
2079
ac_cpp='$CPP $CPPFLAGS'
2080
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2081
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2082
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088
for ac_dir in . "$srcdir"/.; do
2089
if test -f "$ac_dir/install-sh"; then
2091
ac_install_sh="$ac_aux_dir/install-sh -c"
2093
elif test -f "$ac_dir/install.sh"; then
2095
ac_install_sh="$ac_aux_dir/install.sh -c"
2097
elif test -f "$ac_dir/shtool"; then
2099
ac_install_sh="$ac_aux_dir/shtool install -c"
2103
if test -z "$ac_aux_dir"; then
2104
{ { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2105
$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2106
{ (exit 1); exit 1; }; }
2109
# These three variables are undocumented and unsupported,
2110
# and are intended to be withdrawn in a future Autoconf release.
2111
# They can cause serious problems if a builder's source tree is in a directory
2112
# whose full name contains unusual characters.
2113
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2114
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2115
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2118
am__api_version='1.10'
2120
# Find a good install program. We prefer a C program (faster),
2121
# so one script is as good as another. But avoid the broken or
2122
# incompatible versions:
2123
# SysV /etc/install, /usr/sbin/install
2124
# SunOS /usr/etc/install
2125
# IRIX /sbin/install
2127
# AmigaOS /C/install, which installs bootblocks on floppy discs
2128
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2129
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2130
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2131
# OS/2's system install, which has a completely different semantic
2132
# ./install, which can be erroneously created by make from ./install.sh.
2133
# Reject install programs that cannot install multiple files.
2134
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2135
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2136
if test -z "$INSTALL"; then
2137
if test "${ac_cv_path_install+set}" = set; then
2138
$as_echo_n "(cached) " >&6
2140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144
test -z "$as_dir" && as_dir=.
2145
# Account for people who put trailing slashes in PATH elements.
2147
./ | .// | /cC/* | \
2148
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2149
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2152
# OSF1 and SCO ODT 3.0 have their own names for install.
2153
# Don't use installbsd from OSF since it installs stuff as root
2155
for ac_prog in ginstall scoinst install; do
2156
for ac_exec_ext in '' $ac_executable_extensions; do
2157
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2158
if test $ac_prog = install &&
2159
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2160
# AIX install. It has an incompatible calling convention.
2162
elif test $ac_prog = install &&
2163
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2164
# program-specific install script used by HP pwplus--don't use.
2167
rm -rf conftest.one conftest.two conftest.dir
2168
echo one > conftest.one
2169
echo two > conftest.two
2171
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2172
test -s conftest.one && test -s conftest.two &&
2173
test -s conftest.dir/conftest.one &&
2174
test -s conftest.dir/conftest.two
2176
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2189
rm -rf conftest.one conftest.two conftest.dir
2192
if test "${ac_cv_path_install+set}" = set; then
2193
INSTALL=$ac_cv_path_install
2195
# As a last resort, use the slow shell script. Don't cache a
2196
# value for INSTALL within a source directory, because that will
2197
# break other packages using the cache if that directory is
2198
# removed, or if the value is a relative name.
2199
INSTALL=$ac_install_sh
2202
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2203
$as_echo "$INSTALL" >&6; }
2205
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2206
# It thinks the first close brace ends the variable substitution.
2207
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2209
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2211
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2213
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2214
$as_echo_n "checking whether build environment is sane... " >&6; }
2217
echo timestamp > conftest.file
2218
# Do `set' in a subshell so we don't clobber the current shell's
2219
# arguments. Must try -L first in case configure is actually a
2220
# symlink; some systems play weird games with the mod time of symlinks
2221
# (eg FreeBSD returns the mod time of the symlink's containing
2224
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2225
if test "$*" = "X"; then
2227
set X `ls -t $srcdir/configure conftest.file`
2230
if test "$*" != "X $srcdir/configure conftest.file" \
2231
&& test "$*" != "X conftest.file $srcdir/configure"; then
2233
# If neither matched, then we have a broken ls. This can happen
2234
# if, for instance, CONFIG_SHELL is bash and it inherits a
2235
# broken ls alias from the environment. This has actually
2236
# happened. Such a system could not be considered "sane".
2237
{ { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2238
alias in your environment" >&5
2239
$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2240
alias in your environment" >&2;}
2241
{ (exit 1); exit 1; }; }
2244
test "$2" = conftest.file
2250
{ { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2251
Check your system clock" >&5
2252
$as_echo "$as_me: error: newly created file is older than distributed files!
2253
Check your system clock" >&2;}
2254
{ (exit 1); exit 1; }; }
2256
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2257
$as_echo "yes" >&6; }
2258
test "$program_prefix" != NONE &&
2259
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2260
# Use a double $ so make ignores it.
2261
test "$program_suffix" != NONE &&
2262
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2263
# Double any \ or $.
2264
# By default was `s,x,x', remove it if useless.
2265
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2266
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2268
# expand $ac_aux_dir to an absolute path
2269
am_aux_dir=`cd $ac_aux_dir && pwd`
2271
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2272
# Use eval to expand $SHELL
2273
if eval "$MISSING --run true"; then
2274
am_missing_run="$MISSING --run "
2277
{ $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2278
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2281
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2282
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2283
if test -z "$MKDIR_P"; then
2284
if test "${ac_cv_path_mkdir+set}" = set; then
2285
$as_echo_n "(cached) " >&6
2287
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2291
test -z "$as_dir" && as_dir=.
2292
for ac_prog in mkdir gmkdir; do
2293
for ac_exec_ext in '' $ac_executable_extensions; do
2294
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2295
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2296
'mkdir (GNU coreutils) '* | \
2297
'mkdir (coreutils) '* | \
2298
'mkdir (fileutils) '4.1*)
2299
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2309
if test "${ac_cv_path_mkdir+set}" = set; then
2310
MKDIR_P="$ac_cv_path_mkdir -p"
2312
# As a last resort, use the slow shell script. Don't cache a
2313
# value for MKDIR_P within a source directory, because that will
2314
# break other packages using the cache if that directory is
2315
# removed, or if the value is a relative name.
2316
test -d ./--version && rmdir ./--version
2317
MKDIR_P="$ac_install_sh -d"
2320
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2321
$as_echo "$MKDIR_P" >&6; }
2325
[\\/$]* | ?:[\\/]*) ;;
2326
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2329
for ac_prog in gawk mawk nawk awk
2331
# Extract the first word of "$ac_prog", so it can be a program name with args.
2332
set dummy $ac_prog; ac_word=$2
2333
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2334
$as_echo_n "checking for $ac_word... " >&6; }
2335
if test "${ac_cv_prog_AWK+set}" = set; then
2336
$as_echo_n "(cached) " >&6
2338
if test -n "$AWK"; then
2339
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2341
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345
test -z "$as_dir" && as_dir=.
2346
for ac_exec_ext in '' $ac_executable_extensions; do
2347
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348
ac_cv_prog_AWK="$ac_prog"
2349
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359
if test -n "$AWK"; then
2360
{ $as_echo "$as_me:$LINENO: result: $AWK" >&5
2361
$as_echo "$AWK" >&6; }
2363
{ $as_echo "$as_me:$LINENO: result: no" >&5
2364
$as_echo "no" >&6; }
2368
test -n "$AWK" && break
2371
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2372
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2374
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2375
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2376
$as_echo_n "(cached) " >&6
2378
cat >conftest.make <<\_ACEOF
2381
@echo '@@@%%%=$(MAKE)=@@@%%%'
2383
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2384
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2386
eval ac_cv_prog_make_${ac_make}_set=yes;;
2388
eval ac_cv_prog_make_${ac_make}_set=no;;
2392
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2393
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2394
$as_echo "yes" >&6; }
2397
{ $as_echo "$as_me:$LINENO: result: no" >&5
2398
$as_echo "no" >&6; }
2399
SET_MAKE="MAKE=${MAKE-make}"
2402
rm -rf .tst 2>/dev/null
2403
mkdir .tst 2>/dev/null
2404
if test -d .tst; then
2409
rmdir .tst 2>/dev/null
2411
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2412
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2413
# is not polluted with repeated "-I."
2414
am__isrc=' -I$(srcdir)'
2415
# test to see if srcdir already configured
2416
if test -f $srcdir/config.status; then
2417
{ { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2418
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2419
{ (exit 1); exit 1; }; }
2423
# test whether we have cygpath
2424
if test -z "$CYGPATH_W"; then
2425
if (cygpath --version) >/dev/null 2>/dev/null; then
2426
CYGPATH_W='cygpath -w'
2433
# Define the identity of the package.
2434
PACKAGE='xf86-input-synaptics'
2438
cat >>confdefs.h <<_ACEOF
2439
#define PACKAGE "$PACKAGE"
2443
cat >>confdefs.h <<_ACEOF
2444
#define VERSION "$VERSION"
2447
# Some tools Automake needs.
2449
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2452
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2455
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2458
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2461
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2463
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2465
# Installed binaries are usually stripped using `strip' when the user
2466
# run `make install-strip'. However `strip' might not be the right
2467
# tool to use in cross-compilation environments, therefore Automake
2468
# will honor the `STRIP' environment variable to overrule this program.
2469
if test "$cross_compiling" != no; then
2470
if test -n "$ac_tool_prefix"; then
2471
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2472
set dummy ${ac_tool_prefix}strip; ac_word=$2
2473
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2474
$as_echo_n "checking for $ac_word... " >&6; }
2475
if test "${ac_cv_prog_STRIP+set}" = set; then
2476
$as_echo_n "(cached) " >&6
2478
if test -n "$STRIP"; then
2479
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485
test -z "$as_dir" && as_dir=.
2486
for ac_exec_ext in '' $ac_executable_extensions; do
2487
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2489
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498
STRIP=$ac_cv_prog_STRIP
2499
if test -n "$STRIP"; then
2500
{ $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2501
$as_echo "$STRIP" >&6; }
2503
{ $as_echo "$as_me:$LINENO: result: no" >&5
2504
$as_echo "no" >&6; }
2509
if test -z "$ac_cv_prog_STRIP"; then
2511
# Extract the first word of "strip", so it can be a program name with args.
2512
set dummy strip; ac_word=$2
2513
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2514
$as_echo_n "checking for $ac_word... " >&6; }
2515
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2516
$as_echo_n "(cached) " >&6
2518
if test -n "$ac_ct_STRIP"; then
2519
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2521
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525
test -z "$as_dir" && as_dir=.
2526
for ac_exec_ext in '' $ac_executable_extensions; do
2527
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528
ac_cv_prog_ac_ct_STRIP="strip"
2529
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2539
if test -n "$ac_ct_STRIP"; then
2540
{ $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2541
$as_echo "$ac_ct_STRIP" >&6; }
2543
{ $as_echo "$as_me:$LINENO: result: no" >&5
2544
$as_echo "no" >&6; }
2547
if test "x$ac_ct_STRIP" = x; then
2550
case $cross_compiling:$ac_tool_warned in
2552
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2553
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2554
ac_tool_warned=yes ;;
2559
STRIP="$ac_cv_prog_STRIP"
2563
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2565
# We need awk for the "check" target. The system "awk" is bad on
2567
# Always define AMTAR for backward compatibility.
2569
AMTAR=${AMTAR-"${am_missing_run}tar"}
2571
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2578
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2579
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2580
# Check whether --enable-maintainer-mode was given.
2581
if test "${enable_maintainer_mode+set}" = set; then
2582
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2584
USE_MAINTAINER_MODE=no
2587
{ $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2588
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2589
if test $USE_MAINTAINER_MODE = yes; then
2590
MAINTAINER_MODE_TRUE=
2591
MAINTAINER_MODE_FALSE='#'
2593
MAINTAINER_MODE_TRUE='#'
2594
MAINTAINER_MODE_FALSE=
2597
MAINT=$MAINTAINER_MODE_TRUE
2601
DRIVER_NAME=synaptics
2604
ac_config_headers="$ac_config_headers config.h"
2607
# Checks for programs.
2608
# Check whether --enable-static was given.
2609
if test "${enable_static+set}" = set; then
2610
enableval=$enable_static; p=${PACKAGE-default}
2612
yes) enable_static=yes ;;
2613
no) enable_static=no ;;
2616
# Look at the argument we got. We use all the common list separators.
2617
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2618
for pkg in $enableval; do
2620
if test "X$pkg" = "X$p"; then
2633
# Check whether --enable-shared was given.
2634
if test "${enable_shared+set}" = set; then
2635
enableval=$enable_shared; p=${PACKAGE-default}
2637
yes) enable_shared=yes ;;
2638
no) enable_shared=no ;;
2641
# Look at the argument we got. We use all the common list separators.
2642
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2643
for pkg in $enableval; do
2645
if test "X$pkg" = "X$p"; then
2657
# Check whether --enable-fast-install was given.
2658
if test "${enable_fast_install+set}" = set; then
2659
enableval=$enable_fast_install; p=${PACKAGE-default}
2661
yes) enable_fast_install=yes ;;
2662
no) enable_fast_install=no ;;
2664
enable_fast_install=no
2665
# Look at the argument we got. We use all the common list separators.
2666
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2667
for pkg in $enableval; do
2669
if test "X$pkg" = "X$p"; then
2670
enable_fast_install=yes
2677
enable_fast_install=yes
2681
# Make sure we can run config.sub.
2682
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2683
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2684
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2685
{ (exit 1); exit 1; }; }
2687
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2688
$as_echo_n "checking build system type... " >&6; }
2689
if test "${ac_cv_build+set}" = set; then
2690
$as_echo_n "(cached) " >&6
2692
ac_build_alias=$build_alias
2693
test "x$ac_build_alias" = x &&
2694
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2695
test "x$ac_build_alias" = x &&
2696
{ { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2697
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2698
{ (exit 1); exit 1; }; }
2699
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2700
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2701
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2702
{ (exit 1); exit 1; }; }
2705
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2706
$as_echo "$ac_cv_build" >&6; }
2707
case $ac_cv_build in
2709
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2710
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2711
{ (exit 1); exit 1; }; };;
2714
ac_save_IFS=$IFS; IFS='-'
2720
# Remember, the first character of IFS is used to create $*,
2721
# except with old shells:
2724
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2727
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2728
$as_echo_n "checking host system type... " >&6; }
2729
if test "${ac_cv_host+set}" = set; then
2730
$as_echo_n "(cached) " >&6
2732
if test "x$host_alias" = x; then
2733
ac_cv_host=$ac_cv_build
2735
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2736
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2737
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2738
{ (exit 1); exit 1; }; }
2742
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2743
$as_echo "$ac_cv_host" >&6; }
2746
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2747
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2748
{ (exit 1); exit 1; }; };;
2751
ac_save_IFS=$IFS; IFS='-'
2757
# Remember, the first character of IFS is used to create $*,
2758
# except with old shells:
2761
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2764
DEPDIR="${am__leading_dot}deps"
2766
ac_config_commands="$ac_config_commands depfiles"
2769
am_make=${MAKE-make}
2770
cat > confinc << 'END'
2775
# If we don't find an include directive, just comment out the code.
2776
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2777
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2781
# First try GNU make style include.
2782
echo "include confinc" > confmf
2783
# We grep out `Entering directory' and `Leaving directory'
2784
# messages which can occur if `w' ends up in MAKEFLAGS.
2785
# In particular we don't look at `^make:' because GNU make might
2786
# be invoked under some other name (usually "gmake"), in which
2787
# case it prints its new name instead of `make'.
2788
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2793
# Now try BSD make style include.
2794
if test "$am__include" = "#"; then
2795
echo '.include "confinc"' > confmf
2796
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2797
am__include=.include
2804
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2805
$as_echo "$_am_result" >&6; }
2806
rm -f confinc confmf
2808
# Check whether --enable-dependency-tracking was given.
2809
if test "${enable_dependency_tracking+set}" = set; then
2810
enableval=$enable_dependency_tracking;
2813
if test "x$enable_dependency_tracking" != xno; then
2814
am_depcomp="$ac_aux_dir/depcomp"
2817
if test "x$enable_dependency_tracking" != xno; then
2827
ac_cpp='$CPP $CPPFLAGS'
2828
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2829
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2830
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2831
if test -n "$ac_tool_prefix"; then
2832
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2833
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2834
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2835
$as_echo_n "checking for $ac_word... " >&6; }
2836
if test "${ac_cv_prog_CC+set}" = set; then
2837
$as_echo_n "(cached) " >&6
2839
if test -n "$CC"; then
2840
ac_cv_prog_CC="$CC" # Let the user override the test.
2842
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846
test -z "$as_dir" && as_dir=.
2847
for ac_exec_ext in '' $ac_executable_extensions; do
2848
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2850
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860
if test -n "$CC"; then
2861
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2862
$as_echo "$CC" >&6; }
2864
{ $as_echo "$as_me:$LINENO: result: no" >&5
2865
$as_echo "no" >&6; }
2870
if test -z "$ac_cv_prog_CC"; then
2872
# Extract the first word of "gcc", so it can be a program name with args.
2873
set dummy gcc; ac_word=$2
2874
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2875
$as_echo_n "checking for $ac_word... " >&6; }
2876
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2877
$as_echo_n "(cached) " >&6
2879
if test -n "$ac_ct_CC"; then
2880
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2882
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886
test -z "$as_dir" && as_dir=.
2887
for ac_exec_ext in '' $ac_executable_extensions; do
2888
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889
ac_cv_prog_ac_ct_CC="gcc"
2890
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2900
if test -n "$ac_ct_CC"; then
2901
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2902
$as_echo "$ac_ct_CC" >&6; }
2904
{ $as_echo "$as_me:$LINENO: result: no" >&5
2905
$as_echo "no" >&6; }
2908
if test "x$ac_ct_CC" = x; then
2911
case $cross_compiling:$ac_tool_warned in
2913
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2914
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2915
ac_tool_warned=yes ;;
2923
if test -z "$CC"; then
2924
if test -n "$ac_tool_prefix"; then
2925
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2926
set dummy ${ac_tool_prefix}cc; ac_word=$2
2927
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2928
$as_echo_n "checking for $ac_word... " >&6; }
2929
if test "${ac_cv_prog_CC+set}" = set; then
2930
$as_echo_n "(cached) " >&6
2932
if test -n "$CC"; then
2933
ac_cv_prog_CC="$CC" # Let the user override the test.
2935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939
test -z "$as_dir" && as_dir=.
2940
for ac_exec_ext in '' $ac_executable_extensions; do
2941
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942
ac_cv_prog_CC="${ac_tool_prefix}cc"
2943
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953
if test -n "$CC"; then
2954
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2955
$as_echo "$CC" >&6; }
2957
{ $as_echo "$as_me:$LINENO: result: no" >&5
2958
$as_echo "no" >&6; }
2964
if test -z "$CC"; then
2965
# Extract the first word of "cc", so it can be a program name with args.
2966
set dummy cc; ac_word=$2
2967
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2968
$as_echo_n "checking for $ac_word... " >&6; }
2969
if test "${ac_cv_prog_CC+set}" = set; then
2970
$as_echo_n "(cached) " >&6
2972
if test -n "$CC"; then
2973
ac_cv_prog_CC="$CC" # Let the user override the test.
2976
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980
test -z "$as_dir" && as_dir=.
2981
for ac_exec_ext in '' $ac_executable_extensions; do
2982
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2984
ac_prog_rejected=yes
2988
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2995
if test $ac_prog_rejected = yes; then
2996
# We found a bogon in the path, so make sure we never use it.
2997
set dummy $ac_cv_prog_CC
2999
if test $# != 0; then
3000
# We chose a different compiler from the bogus one.
3001
# However, it has the same basename, so the bogon will be chosen
3002
# first if we set CC to just the basename; use the full file name.
3004
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3010
if test -n "$CC"; then
3011
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3012
$as_echo "$CC" >&6; }
3014
{ $as_echo "$as_me:$LINENO: result: no" >&5
3015
$as_echo "no" >&6; }
3020
if test -z "$CC"; then
3021
if test -n "$ac_tool_prefix"; then
3022
for ac_prog in cl.exe
3024
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3025
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3026
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3027
$as_echo_n "checking for $ac_word... " >&6; }
3028
if test "${ac_cv_prog_CC+set}" = set; then
3029
$as_echo_n "(cached) " >&6
3031
if test -n "$CC"; then
3032
ac_cv_prog_CC="$CC" # Let the user override the test.
3034
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038
test -z "$as_dir" && as_dir=.
3039
for ac_exec_ext in '' $ac_executable_extensions; do
3040
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3041
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3042
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052
if test -n "$CC"; then
3053
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3054
$as_echo "$CC" >&6; }
3056
{ $as_echo "$as_me:$LINENO: result: no" >&5
3057
$as_echo "no" >&6; }
3061
test -n "$CC" && break
3064
if test -z "$CC"; then
3066
for ac_prog in cl.exe
3068
# Extract the first word of "$ac_prog", so it can be a program name with args.
3069
set dummy $ac_prog; ac_word=$2
3070
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3071
$as_echo_n "checking for $ac_word... " >&6; }
3072
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3073
$as_echo_n "(cached) " >&6
3075
if test -n "$ac_ct_CC"; then
3076
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3078
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082
test -z "$as_dir" && as_dir=.
3083
for ac_exec_ext in '' $ac_executable_extensions; do
3084
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085
ac_cv_prog_ac_ct_CC="$ac_prog"
3086
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3096
if test -n "$ac_ct_CC"; then
3097
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3098
$as_echo "$ac_ct_CC" >&6; }
3100
{ $as_echo "$as_me:$LINENO: result: no" >&5
3101
$as_echo "no" >&6; }
3105
test -n "$ac_ct_CC" && break
3108
if test "x$ac_ct_CC" = x; then
3111
case $cross_compiling:$ac_tool_warned in
3113
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3114
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3115
ac_tool_warned=yes ;;
3124
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3125
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3127
See \`config.log' for more details." >&5
3128
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3129
See \`config.log' for more details." >&2;}
3130
{ (exit 1); exit 1; }; }; }
3132
# Provide some information about the compiler.
3133
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3136
{ (ac_try="$ac_compiler --version >&5"
3138
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139
*) ac_try_echo=$ac_try;;
3141
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3142
$as_echo "$ac_try_echo") >&5
3143
(eval "$ac_compiler --version >&5") 2>&5
3145
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146
(exit $ac_status); }
3147
{ (ac_try="$ac_compiler -v >&5"
3149
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150
*) ac_try_echo=$ac_try;;
3152
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3153
$as_echo "$ac_try_echo") >&5
3154
(eval "$ac_compiler -v >&5") 2>&5
3156
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157
(exit $ac_status); }
3158
{ (ac_try="$ac_compiler -V >&5"
3160
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161
*) ac_try_echo=$ac_try;;
3163
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3164
$as_echo "$ac_try_echo") >&5
3165
(eval "$ac_compiler -V >&5") 2>&5
3167
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168
(exit $ac_status); }
3170
cat >conftest.$ac_ext <<_ACEOF
3173
cat confdefs.h >>conftest.$ac_ext
3174
cat >>conftest.$ac_ext <<_ACEOF
3175
/* end confdefs.h. */
3185
ac_clean_files_save=$ac_clean_files
3186
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3187
# Try to create an executable without -o first, disregard a.out.
3188
# It will help us diagnose broken compilers, and finding out an intuition
3190
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3191
$as_echo_n "checking for C compiler default output file name... " >&6; }
3192
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3194
# The possible output files:
3195
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3198
for ac_file in $ac_files
3201
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3202
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3207
if { (ac_try="$ac_link_default"
3209
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210
*) ac_try_echo=$ac_try;;
3212
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3213
$as_echo "$ac_try_echo") >&5
3214
(eval "$ac_link_default") 2>&5
3216
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217
(exit $ac_status); }; then
3218
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3219
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3220
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3221
# so that the user can short-circuit this test for compilers unknown to
3223
for ac_file in $ac_files ''
3225
test -f "$ac_file" || continue
3227
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3230
# We found the default executable, but exeext='' is most
3234
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3236
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3238
# We set ac_cv_exeext here because the later test for it is not
3239
# safe: cross compilers may not add the suffix if given an `-o'
3240
# argument, so we may need to know it at that point already.
3241
# Even if this section looks crufty: it has the advantage of
3248
test "$ac_cv_exeext" = no && ac_cv_exeext=
3254
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3255
$as_echo "$ac_file" >&6; }
3256
if test -z "$ac_file"; then
3257
$as_echo "$as_me: failed program was:" >&5
3258
sed 's/^/| /' conftest.$ac_ext >&5
3260
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3261
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3263
See \`config.log' for more details." >&5
3264
$as_echo "$as_me: error: C compiler cannot create executables
3265
See \`config.log' for more details." >&2;}
3266
{ (exit 77); exit 77; }; }; }
3269
ac_exeext=$ac_cv_exeext
3271
# Check that the compiler produces executables we can run. If not, either
3272
# the compiler is broken, or we cross compile.
3273
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3274
$as_echo_n "checking whether the C compiler works... " >&6; }
3275
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3276
# If not cross compiling, check that we can run a simple program.
3277
if test "$cross_compiling" != yes; then
3278
if { ac_try='./$ac_file'
3279
{ (case "(($ac_try" in
3280
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281
*) ac_try_echo=$ac_try;;
3283
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3284
$as_echo "$ac_try_echo") >&5
3285
(eval "$ac_try") 2>&5
3287
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288
(exit $ac_status); }; }; then
3291
if test "$cross_compiling" = maybe; then
3294
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3295
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3297
If you meant to cross compile, use \`--host'.
3298
See \`config.log' for more details." >&5
3299
$as_echo "$as_me: error: cannot run C compiled programs.
3300
If you meant to cross compile, use \`--host'.
3301
See \`config.log' for more details." >&2;}
3302
{ (exit 1); exit 1; }; }; }
3306
{ $as_echo "$as_me:$LINENO: result: yes" >&5
3307
$as_echo "yes" >&6; }
3309
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3310
ac_clean_files=$ac_clean_files_save
3311
# Check that the compiler produces executables we can run. If not, either
3312
# the compiler is broken, or we cross compile.
3313
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3314
$as_echo_n "checking whether we are cross compiling... " >&6; }
3315
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3316
$as_echo "$cross_compiling" >&6; }
3318
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3319
$as_echo_n "checking for suffix of executables... " >&6; }
3320
if { (ac_try="$ac_link"
3322
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323
*) ac_try_echo=$ac_try;;
3325
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3326
$as_echo "$ac_try_echo") >&5
3327
(eval "$ac_link") 2>&5
3329
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330
(exit $ac_status); }; then
3331
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3332
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3333
# work properly (i.e., refer to `conftest.exe'), while it won't with
3335
for ac_file in conftest.exe conftest conftest.*; do
3336
test -f "$ac_file" || continue
3338
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3339
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3346
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3348
See \`config.log' for more details." >&5
3349
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3350
See \`config.log' for more details." >&2;}
3351
{ (exit 1); exit 1; }; }; }
3354
rm -f conftest$ac_cv_exeext
3355
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3356
$as_echo "$ac_cv_exeext" >&6; }
3358
rm -f conftest.$ac_ext
3359
EXEEXT=$ac_cv_exeext
3361
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3362
$as_echo_n "checking for suffix of object files... " >&6; }
3363
if test "${ac_cv_objext+set}" = set; then
3364
$as_echo_n "(cached) " >&6
3366
cat >conftest.$ac_ext <<_ACEOF
3369
cat confdefs.h >>conftest.$ac_ext
3370
cat >>conftest.$ac_ext <<_ACEOF
3371
/* end confdefs.h. */
3381
rm -f conftest.o conftest.obj
3382
if { (ac_try="$ac_compile"
3384
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385
*) ac_try_echo=$ac_try;;
3387
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3388
$as_echo "$ac_try_echo") >&5
3389
(eval "$ac_compile") 2>&5
3391
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392
(exit $ac_status); }; then
3393
for ac_file in conftest.o conftest.obj conftest.*; do
3394
test -f "$ac_file" || continue;
3396
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3397
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3402
$as_echo "$as_me: failed program was:" >&5
3403
sed 's/^/| /' conftest.$ac_ext >&5
3405
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3406
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3408
See \`config.log' for more details." >&5
3409
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3410
See \`config.log' for more details." >&2;}
3411
{ (exit 1); exit 1; }; }; }
3414
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3416
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3417
$as_echo "$ac_cv_objext" >&6; }
3418
OBJEXT=$ac_cv_objext
3420
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3421
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3422
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3423
$as_echo_n "(cached) " >&6
3425
cat >conftest.$ac_ext <<_ACEOF
3428
cat confdefs.h >>conftest.$ac_ext
3429
cat >>conftest.$ac_ext <<_ACEOF
3430
/* end confdefs.h. */
3443
rm -f conftest.$ac_objext
3444
if { (ac_try="$ac_compile"
3446
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447
*) ac_try_echo=$ac_try;;
3449
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3450
$as_echo "$ac_try_echo") >&5
3451
(eval "$ac_compile") 2>conftest.er1
3453
grep -v '^ *+' conftest.er1 >conftest.err
3455
cat conftest.err >&5
3456
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457
(exit $ac_status); } && {
3458
test -z "$ac_c_werror_flag" ||
3459
test ! -s conftest.err
3460
} && test -s conftest.$ac_objext; then
3463
$as_echo "$as_me: failed program was:" >&5
3464
sed 's/^/| /' conftest.$ac_ext >&5
3469
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3473
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3474
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3475
if test $ac_compiler_gnu = yes; then
3480
ac_test_CFLAGS=${CFLAGS+set}
3481
ac_save_CFLAGS=$CFLAGS
3482
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3483
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3484
if test "${ac_cv_prog_cc_g+set}" = set; then
3485
$as_echo_n "(cached) " >&6
3487
ac_save_c_werror_flag=$ac_c_werror_flag
3488
ac_c_werror_flag=yes
3491
cat >conftest.$ac_ext <<_ACEOF
3494
cat confdefs.h >>conftest.$ac_ext
3495
cat >>conftest.$ac_ext <<_ACEOF
3496
/* end confdefs.h. */
3506
rm -f conftest.$ac_objext
3507
if { (ac_try="$ac_compile"
3509
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510
*) ac_try_echo=$ac_try;;
3512
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3513
$as_echo "$ac_try_echo") >&5
3514
(eval "$ac_compile") 2>conftest.er1
3516
grep -v '^ *+' conftest.er1 >conftest.err
3518
cat conftest.err >&5
3519
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520
(exit $ac_status); } && {
3521
test -z "$ac_c_werror_flag" ||
3522
test ! -s conftest.err
3523
} && test -s conftest.$ac_objext; then
3526
$as_echo "$as_me: failed program was:" >&5
3527
sed 's/^/| /' conftest.$ac_ext >&5
3530
cat >conftest.$ac_ext <<_ACEOF
3533
cat confdefs.h >>conftest.$ac_ext
3534
cat >>conftest.$ac_ext <<_ACEOF
3535
/* end confdefs.h. */
3545
rm -f conftest.$ac_objext
3546
if { (ac_try="$ac_compile"
3548
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549
*) ac_try_echo=$ac_try;;
3551
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3552
$as_echo "$ac_try_echo") >&5
3553
(eval "$ac_compile") 2>conftest.er1
3555
grep -v '^ *+' conftest.er1 >conftest.err
3557
cat conftest.err >&5
3558
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559
(exit $ac_status); } && {
3560
test -z "$ac_c_werror_flag" ||
3561
test ! -s conftest.err
3562
} && test -s conftest.$ac_objext; then
3565
$as_echo "$as_me: failed program was:" >&5
3566
sed 's/^/| /' conftest.$ac_ext >&5
3568
ac_c_werror_flag=$ac_save_c_werror_flag
3570
cat >conftest.$ac_ext <<_ACEOF
3573
cat confdefs.h >>conftest.$ac_ext
3574
cat >>conftest.$ac_ext <<_ACEOF
3575
/* end confdefs.h. */
3585
rm -f conftest.$ac_objext
3586
if { (ac_try="$ac_compile"
3588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589
*) ac_try_echo=$ac_try;;
3591
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3592
$as_echo "$ac_try_echo") >&5
3593
(eval "$ac_compile") 2>conftest.er1
3595
grep -v '^ *+' conftest.er1 >conftest.err
3597
cat conftest.err >&5
3598
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599
(exit $ac_status); } && {
3600
test -z "$ac_c_werror_flag" ||
3601
test ! -s conftest.err
3602
} && test -s conftest.$ac_objext; then
3605
$as_echo "$as_me: failed program was:" >&5
3606
sed 's/^/| /' conftest.$ac_ext >&5
3611
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618
ac_c_werror_flag=$ac_save_c_werror_flag
3620
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3621
$as_echo "$ac_cv_prog_cc_g" >&6; }
3622
if test "$ac_test_CFLAGS" = set; then
3623
CFLAGS=$ac_save_CFLAGS
3624
elif test $ac_cv_prog_cc_g = yes; then
3625
if test "$GCC" = yes; then
3631
if test "$GCC" = yes; then
3637
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3638
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3639
if test "${ac_cv_prog_cc_c89+set}" = set; then
3640
$as_echo_n "(cached) " >&6
3642
ac_cv_prog_cc_c89=no
3644
cat >conftest.$ac_ext <<_ACEOF
3647
cat confdefs.h >>conftest.$ac_ext
3648
cat >>conftest.$ac_ext <<_ACEOF
3649
/* end confdefs.h. */
3652
#include <sys/types.h>
3653
#include <sys/stat.h>
3654
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3655
struct buf { int x; };
3656
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3657
static char *e (p, i)
3663
static char *f (char * (*g) (char **, int), char **p, ...)
3668
s = g (p, va_arg (v,int));
3673
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3674
function prototypes and stuff, but not '\xHH' hex character constants.
3675
These don't provoke an error unfortunately, instead are silently treated
3676
as 'x'. The following induces an error, until -std is added to get
3677
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3678
array size at least. It's necessary to write '\x00'==0 to get something
3679
that's true only with -std. */
3680
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3682
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3683
inside strings and character constants. */
3685
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3687
int test (int i, double x);
3688
struct s1 {int (*f) (int a);};
3689
struct s2 {int (*f) (double a);};
3690
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3696
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3701
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3702
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3704
CC="$ac_save_CC $ac_arg"
3705
rm -f conftest.$ac_objext
3706
if { (ac_try="$ac_compile"
3708
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709
*) ac_try_echo=$ac_try;;
3711
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3712
$as_echo "$ac_try_echo") >&5
3713
(eval "$ac_compile") 2>conftest.er1
3715
grep -v '^ *+' conftest.er1 >conftest.err
3717
cat conftest.err >&5
3718
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719
(exit $ac_status); } && {
3720
test -z "$ac_c_werror_flag" ||
3721
test ! -s conftest.err
3722
} && test -s conftest.$ac_objext; then
3723
ac_cv_prog_cc_c89=$ac_arg
3725
$as_echo "$as_me: failed program was:" >&5
3726
sed 's/^/| /' conftest.$ac_ext >&5
3731
rm -f core conftest.err conftest.$ac_objext
3732
test "x$ac_cv_prog_cc_c89" != "xno" && break
3734
rm -f conftest.$ac_ext
3739
case "x$ac_cv_prog_cc_c89" in
3741
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
3742
$as_echo "none needed" >&6; } ;;
3744
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
3745
$as_echo "unsupported" >&6; } ;;
3747
CC="$CC $ac_cv_prog_cc_c89"
3748
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3749
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3754
ac_cpp='$CPP $CPPFLAGS'
3755
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759
depcc="$CC" am_compiler_list=
3761
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3762
$as_echo_n "checking dependency style of $depcc... " >&6; }
3763
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3764
$as_echo_n "(cached) " >&6
3766
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3767
# We make a subdir and do the tests there. Otherwise we can end up
3768
# making bogus files that we don't know about and never remove. For
3769
# instance it was reported that on HP-UX the gcc test will end up
3770
# making a dummy file named `D' -- because `-MD' means `put the output
3773
# Copy depcomp to subdir because otherwise we won't find it if we're
3774
# using a relative directory.
3775
cp "$am_depcomp" conftest.dir
3777
# We will build objects and dependencies in a subdirectory because
3778
# it helps to detect inapplicable dependency modes. For instance
3779
# both Tru64's cc and ICC support -MD to output dependencies as a
3780
# side effect of compilation, but ICC will put the dependencies in
3781
# the current directory while Tru64 will put them in the object
3785
am_cv_CC_dependencies_compiler_type=none
3786
if test "$am_compiler_list" = ""; then
3787
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3789
for depmode in $am_compiler_list; do
3790
# Setup a source with many dependencies, because some compilers
3791
# like to wrap large dependency lists on column 80 (with \), and
3792
# we should not choose a depcomp mode which is confused by this.
3794
# We need to recreate these files for each test, as the compiler may
3795
# overwrite some of them when testing with obscure command lines.
3796
# This happens at least with the AIX C compiler.
3798
for i in 1 2 3 4 5 6; do
3799
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3800
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3801
# Solaris 8's {/usr,}/bin/sh.
3802
touch sub/conftst$i.h
3804
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3808
# after this tag, mechanisms are not by side-effect, so they'll
3809
# only be used when explicitly requested
3810
if test "x$enable_dependency_tracking" = xyes; then
3818
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3819
# mode. It turns out that the SunPro C++ compiler does not properly
3820
# handle `-M -o', and we need to detect this.
3821
if depmode=$depmode \
3822
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3823
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3824
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3825
>/dev/null 2>conftest.err &&
3826
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3827
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3828
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3829
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3830
# icc doesn't choke on unknown options, it will just issue warnings
3831
# or remarks (even with -Werror). So we grep stderr for any message
3832
# that says an option was ignored or not supported.
3833
# When given -MP, icc 7.0 and 7.1 complain thusly:
3834
# icc: Command line warning: ignoring option '-M'; no argument required
3835
# The diagnosis changed in icc 8.0:
3836
# icc: Command line remark: option '-MP' not supported
3837
if (grep 'ignoring option' conftest.err ||
3838
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3839
am_cv_CC_dependencies_compiler_type=$depmode
3848
am_cv_CC_dependencies_compiler_type=none
3852
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3853
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3854
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3857
test "x$enable_dependency_tracking" != xno \
3858
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3860
am__fastdepCC_FALSE='#'
3862
am__fastdepCC_TRUE='#'
3863
am__fastdepCC_FALSE=
3867
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3868
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3869
if test "${lt_cv_path_SED+set}" = set; then
3870
$as_echo_n "(cached) " >&6
3872
# Loop through the user's path and test for sed and gsed.
3873
# Then use that list of sed's as ones to test for truncation.
3874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878
test -z "$as_dir" && as_dir=.
3879
for lt_ac_prog in sed gsed; do
3880
for ac_exec_ext in '' $ac_executable_extensions; do
3881
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3882
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3890
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3891
# along with /bin/sed that truncates output.
3892
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3893
test ! -f $lt_ac_sed && continue
3894
cat /dev/null > conftest.in
3896
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3897
# Check for GNU sed and select it if it is found.
3898
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3899
lt_cv_path_SED=$lt_ac_sed
3903
cat conftest.in conftest.in >conftest.tmp
3904
mv conftest.tmp conftest.in
3905
cp conftest.in conftest.nl
3907
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3908
cmp -s conftest.out conftest.nl || break
3909
# 10000 chars as input seems more than enough
3910
test $lt_ac_count -gt 10 && break
3911
lt_ac_count=`expr $lt_ac_count + 1`
3912
if test $lt_ac_count -gt $lt_ac_max; then
3913
lt_ac_max=$lt_ac_count
3914
lt_cv_path_SED=$lt_ac_sed
3923
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3924
$as_echo "$SED" >&6; }
3926
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3927
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3928
if test "${ac_cv_path_GREP+set}" = set; then
3929
$as_echo_n "(cached) " >&6
3931
if test -z "$GREP"; then
3932
ac_path_GREP_found=false
3933
# Loop through the user's path and test for each of PROGNAME-LIST
3934
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3938
test -z "$as_dir" && as_dir=.
3939
for ac_prog in grep ggrep; do
3940
for ac_exec_ext in '' $ac_executable_extensions; do
3941
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3942
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3943
# Check for GNU ac_path_GREP and select it if it is found.
3944
# Check for GNU $ac_path_GREP
3945
case `"$ac_path_GREP" --version 2>&1` in
3947
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3950
$as_echo_n 0123456789 >"conftest.in"
3953
cat "conftest.in" "conftest.in" >"conftest.tmp"
3954
mv "conftest.tmp" "conftest.in"
3955
cp "conftest.in" "conftest.nl"
3956
$as_echo 'GREP' >> "conftest.nl"
3957
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3958
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3959
ac_count=`expr $ac_count + 1`
3960
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3961
# Best one so far, save it but keep looking for a better one
3962
ac_cv_path_GREP="$ac_path_GREP"
3963
ac_path_GREP_max=$ac_count
3965
# 10*(2^10) chars as input seems more than enough
3966
test $ac_count -gt 10 && break
3968
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3971
$ac_path_GREP_found && break 3
3976
if test -z "$ac_cv_path_GREP"; then
3977
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3978
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3979
{ (exit 1); exit 1; }; }
3982
ac_cv_path_GREP=$GREP
3986
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3987
$as_echo "$ac_cv_path_GREP" >&6; }
3988
GREP="$ac_cv_path_GREP"
3991
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3992
$as_echo_n "checking for egrep... " >&6; }
3993
if test "${ac_cv_path_EGREP+set}" = set; then
3994
$as_echo_n "(cached) " >&6
3996
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3997
then ac_cv_path_EGREP="$GREP -E"
3999
if test -z "$EGREP"; then
4000
ac_path_EGREP_found=false
4001
# Loop through the user's path and test for each of PROGNAME-LIST
4002
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4006
test -z "$as_dir" && as_dir=.
4007
for ac_prog in egrep; do
4008
for ac_exec_ext in '' $ac_executable_extensions; do
4009
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4010
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4011
# Check for GNU ac_path_EGREP and select it if it is found.
4012
# Check for GNU $ac_path_EGREP
4013
case `"$ac_path_EGREP" --version 2>&1` in
4015
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4018
$as_echo_n 0123456789 >"conftest.in"
4021
cat "conftest.in" "conftest.in" >"conftest.tmp"
4022
mv "conftest.tmp" "conftest.in"
4023
cp "conftest.in" "conftest.nl"
4024
$as_echo 'EGREP' >> "conftest.nl"
4025
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4026
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4027
ac_count=`expr $ac_count + 1`
4028
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4029
# Best one so far, save it but keep looking for a better one
4030
ac_cv_path_EGREP="$ac_path_EGREP"
4031
ac_path_EGREP_max=$ac_count
4033
# 10*(2^10) chars as input seems more than enough
4034
test $ac_count -gt 10 && break
4036
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4039
$ac_path_EGREP_found && break 3
4044
if test -z "$ac_cv_path_EGREP"; then
4045
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4046
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4047
{ (exit 1); exit 1; }; }
4050
ac_cv_path_EGREP=$EGREP
4055
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4056
$as_echo "$ac_cv_path_EGREP" >&6; }
4057
EGREP="$ac_cv_path_EGREP"
4061
# Check whether --with-gnu-ld was given.
4062
if test "${with_gnu_ld+set}" = set; then
4063
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4069
if test "$GCC" = yes; then
4070
# Check if gcc -print-prog-name=ld gives a path.
4071
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4072
$as_echo_n "checking for ld used by $CC... " >&6; }
4075
# gcc leaves a trailing carriage return which upsets mingw
4076
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4078
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4081
# Accept absolute paths.
4083
re_direlt='/[^/][^/]*/\.\./'
4084
# Canonicalize the pathname of ld
4085
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4086
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4087
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4089
test -z "$LD" && LD="$ac_prog"
4092
# If it fails, then pretend we aren't using GCC.
4096
# If it is relative, then search for the first ld in PATH.
4100
elif test "$with_gnu_ld" = yes; then
4101
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4102
$as_echo_n "checking for GNU ld... " >&6; }
4104
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4105
$as_echo_n "checking for non-GNU ld... " >&6; }
4107
if test "${lt_cv_path_LD+set}" = set; then
4108
$as_echo_n "(cached) " >&6
4110
if test -z "$LD"; then
4111
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4112
for ac_dir in $PATH; do
4114
test -z "$ac_dir" && ac_dir=.
4115
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4116
lt_cv_path_LD="$ac_dir/$ac_prog"
4117
# Check to see if the program is GNU ld. I'd rather use --version,
4118
# but apparently some variants of GNU ld only accept -v.
4119
# Break only if it was the GNU/non-GNU ld that we prefer.
4120
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4121
*GNU* | *'with BFD'*)
4122
test "$with_gnu_ld" != no && break
4125
test "$with_gnu_ld" != yes && break
4132
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4137
if test -n "$LD"; then
4138
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
4139
$as_echo "$LD" >&6; }
4141
{ $as_echo "$as_me:$LINENO: result: no" >&5
4142
$as_echo "no" >&6; }
4144
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4145
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4146
{ (exit 1); exit 1; }; }
4147
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4148
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4149
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4150
$as_echo_n "(cached) " >&6
4152
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4153
case `$LD -v 2>&1 </dev/null` in
4154
*GNU* | *'with BFD'*)
4155
lt_cv_prog_gnu_ld=yes
4158
lt_cv_prog_gnu_ld=no
4162
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4163
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4164
with_gnu_ld=$lt_cv_prog_gnu_ld
4167
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4168
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4169
if test "${lt_cv_ld_reload_flag+set}" = set; then
4170
$as_echo_n "(cached) " >&6
4172
lt_cv_ld_reload_flag='-r'
4174
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4175
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4176
reload_flag=$lt_cv_ld_reload_flag
4177
case $reload_flag in
4179
*) reload_flag=" $reload_flag" ;;
4181
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4184
if test "$GCC" = yes; then
4185
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4187
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4192
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4193
$as_echo_n "checking for BSD-compatible nm... " >&6; }
4194
if test "${lt_cv_path_NM+set}" = set; then
4195
$as_echo_n "(cached) " >&6
4197
if test -n "$NM"; then
4198
# Let the user override the test.
4201
lt_nm_to_check="${ac_tool_prefix}nm"
4202
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4203
lt_nm_to_check="$lt_nm_to_check nm"
4205
for lt_tmp_nm in $lt_nm_to_check; do
4206
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4207
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4209
test -z "$ac_dir" && ac_dir=.
4210
tmp_nm="$ac_dir/$lt_tmp_nm"
4211
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4212
# Check to see if the nm accepts a BSD-compat flag.
4213
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4214
# nm: unknown option "B" ignored
4215
# Tru64's nm complains that /dev/null is an invalid object file
4216
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4217
*/dev/null* | *'Invalid file or object type'*)
4218
lt_cv_path_NM="$tmp_nm -B"
4222
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4224
lt_cv_path_NM="$tmp_nm -p"
4228
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4229
continue # so that we can try to find one that supports BSD flags
4238
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4241
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4242
$as_echo "$lt_cv_path_NM" >&6; }
4245
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4246
$as_echo_n "checking whether ln -s works... " >&6; }
4248
if test "$LN_S" = "ln -s"; then
4249
{ $as_echo "$as_me:$LINENO: result: yes" >&5
4250
$as_echo "yes" >&6; }
4252
{ $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4253
$as_echo "no, using $LN_S" >&6; }
4256
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4257
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4258
if test "${lt_cv_deplibs_check_method+set}" = set; then
4259
$as_echo_n "(cached) " >&6
4261
lt_cv_file_magic_cmd='$MAGIC_CMD'
4262
lt_cv_file_magic_test_file=
4263
lt_cv_deplibs_check_method='unknown'
4264
# Need to set the preceding variable on all platforms that support
4265
# interlibrary dependencies.
4266
# 'none' -- dependencies not supported.
4267
# `unknown' -- same as none, but documents that we really don't know.
4268
# 'pass_all' -- all dependencies passed with no checks.
4269
# 'test_compile' -- check by making test program.
4270
# 'file_magic [[regex]]' -- check by looking for files in library path
4271
# which responds to the $file_magic_cmd with a given extended regex.
4272
# If you have `file' or equivalent on your system and you're not sure
4273
# whether `pass_all' will *always* work, you probably want this one.
4277
lt_cv_deplibs_check_method=pass_all
4281
lt_cv_deplibs_check_method=pass_all
4285
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4286
lt_cv_file_magic_cmd='/usr/bin/file -L'
4287
lt_cv_file_magic_test_file=/shlib/libc.so
4291
# func_win32_libid is a shell function defined in ltmain.sh
4292
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4293
lt_cv_file_magic_cmd='func_win32_libid'
4297
# Base MSYS/MinGW do not provide the 'file' command needed by
4298
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4299
# unless we find 'file', for example because we are cross-compiling.
4300
if ( file / ) >/dev/null 2>&1; then
4301
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4302
lt_cv_file_magic_cmd='func_win32_libid'
4304
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4305
lt_cv_file_magic_cmd='$OBJDUMP -f'
4309
darwin* | rhapsody*)
4310
lt_cv_deplibs_check_method=pass_all
4313
freebsd* | dragonfly*)
4314
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4317
# Not sure whether the presence of OpenBSD here was a mistake.
4318
# Let's accept both of them until this is cleared up.
4319
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4320
lt_cv_file_magic_cmd=/usr/bin/file
4321
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4325
lt_cv_deplibs_check_method=pass_all
4330
lt_cv_deplibs_check_method=pass_all
4333
hpux10.20* | hpux11*)
4334
lt_cv_file_magic_cmd=/usr/bin/file
4337
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4338
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4341
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]'
4342
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4345
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4346
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4352
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4353
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4356
irix5* | irix6* | nonstopux*)
4358
*-32|*"-32 ") libmagic=32-bit;;
4359
*-n32|*"-n32 ") libmagic=N32;;
4360
*-64|*"-64 ") libmagic=64-bit;;
4361
*) libmagic=never-match;;
4363
lt_cv_deplibs_check_method=pass_all
4366
# This must be Linux ELF.
4367
linux* | k*bsd*-gnu)
4368
lt_cv_deplibs_check_method=pass_all
4372
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4373
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4375
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4380
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4381
lt_cv_file_magic_cmd=/usr/bin/file
4382
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4386
lt_cv_deplibs_check_method=unknown
4390
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4391
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4393
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4397
osf3* | osf4* | osf5*)
4398
lt_cv_deplibs_check_method=pass_all
4402
lt_cv_deplibs_check_method=pass_all
4406
lt_cv_deplibs_check_method=pass_all
4410
case $host_vendor in
4412
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]'
4413
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4416
lt_cv_deplibs_check_method=pass_all
4419
lt_cv_file_magic_cmd='/bin/file'
4420
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4423
lt_cv_file_magic_cmd='/bin/file'
4424
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4425
lt_cv_file_magic_test_file=/lib/libc.so
4428
lt_cv_deplibs_check_method=pass_all
4431
lt_cv_deplibs_check_method=pass_all
4436
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4437
lt_cv_deplibs_check_method=pass_all
4442
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4443
$as_echo "$lt_cv_deplibs_check_method" >&6; }
4444
file_magic_cmd=$lt_cv_file_magic_cmd
4445
deplibs_check_method=$lt_cv_deplibs_check_method
4446
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4451
# If no C compiler was specified, use CC.
4454
# If no C compiler flags were specified, use CFLAGS.
4455
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4457
# Allow CC to be a program name with arguments.
4461
# Check whether --enable-libtool-lock was given.
4462
if test "${enable_libtool_lock+set}" = set; then
4463
enableval=$enable_libtool_lock;
4466
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4468
# Some flags need to be propagated to the compiler or linker for good
4472
# Find out which ABI we are using.
4473
echo 'int i;' > conftest.$ac_ext
4474
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475
(eval $ac_compile) 2>&5
4477
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478
(exit $ac_status); }; then
4479
case `/usr/bin/file conftest.$ac_objext` in
4491
# Find out which ABI we are using.
4492
echo '#line 4492 "configure"' > conftest.$ac_ext
4493
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4494
(eval $ac_compile) 2>&5
4496
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497
(exit $ac_status); }; then
4498
if test "$lt_cv_prog_gnu_ld" = yes; then
4499
case `/usr/bin/file conftest.$ac_objext` in
4501
LD="${LD-ld} -melf32bsmip"
4504
LD="${LD-ld} -melf32bmipn32"
4507
LD="${LD-ld} -melf64bmip"
4511
case `/usr/bin/file conftest.$ac_objext` in
4527
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4528
s390*-*linux*|sparc*-*linux*)
4529
# Find out which ABI we are using.
4530
echo 'int i;' > conftest.$ac_ext
4531
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4532
(eval $ac_compile) 2>&5
4534
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535
(exit $ac_status); }; then
4536
case `/usr/bin/file conftest.o` in
4539
x86_64-*kfreebsd*-gnu)
4540
LD="${LD-ld} -m elf_i386_fbsd"
4543
LD="${LD-ld} -m elf_i386"
4545
ppc64-*linux*|powerpc64-*linux*)
4546
LD="${LD-ld} -m elf32ppclinux"
4549
LD="${LD-ld} -m elf_s390"
4552
LD="${LD-ld} -m elf32_sparc"
4559
x86_64-*kfreebsd*-gnu)
4560
LD="${LD-ld} -m elf_x86_64_fbsd"
4563
LD="${LD-ld} -m elf_x86_64"
4565
ppc*-*linux*|powerpc*-*linux*)
4566
LD="${LD-ld} -m elf64ppc"
4569
LD="${LD-ld} -m elf64_s390"
4572
LD="${LD-ld} -m elf64_sparc"
4582
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4583
SAVE_CFLAGS="$CFLAGS"
4584
CFLAGS="$CFLAGS -belf"
4585
{ $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4586
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4587
if test "${lt_cv_cc_needs_belf+set}" = set; then
4588
$as_echo_n "(cached) " >&6
4591
ac_cpp='$CPP $CPPFLAGS'
4592
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4593
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4594
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596
cat >conftest.$ac_ext <<_ACEOF
4599
cat confdefs.h >>conftest.$ac_ext
4600
cat >>conftest.$ac_ext <<_ACEOF
4601
/* end confdefs.h. */
4611
rm -f conftest.$ac_objext conftest$ac_exeext
4612
if { (ac_try="$ac_link"
4614
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615
*) ac_try_echo=$ac_try;;
4617
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4618
$as_echo "$ac_try_echo") >&5
4619
(eval "$ac_link") 2>conftest.er1
4621
grep -v '^ *+' conftest.er1 >conftest.err
4623
cat conftest.err >&5
4624
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625
(exit $ac_status); } && {
4626
test -z "$ac_c_werror_flag" ||
4627
test ! -s conftest.err
4628
} && test -s conftest$ac_exeext && {
4629
test "$cross_compiling" = yes ||
4630
$as_test_x conftest$ac_exeext
4632
lt_cv_cc_needs_belf=yes
4634
$as_echo "$as_me: failed program was:" >&5
4635
sed 's/^/| /' conftest.$ac_ext >&5
4637
lt_cv_cc_needs_belf=no
4640
rm -rf conftest.dSYM
4641
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4642
conftest$ac_exeext conftest.$ac_ext
4644
ac_cpp='$CPP $CPPFLAGS'
4645
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4650
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4651
$as_echo "$lt_cv_cc_needs_belf" >&6; }
4652
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4653
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4654
CFLAGS="$SAVE_CFLAGS"
4658
# Find out which ABI we are using.
4659
echo 'int i;' > conftest.$ac_ext
4660
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661
(eval $ac_compile) 2>&5
4663
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664
(exit $ac_status); }; then
4665
case `/usr/bin/file conftest.o` in
4667
case $lt_cv_prog_gnu_ld in
4668
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4670
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4684
need_locks="$enable_libtool_lock"
4688
ac_cpp='$CPP $CPPFLAGS'
4689
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4690
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4691
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4692
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4693
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4694
# On Suns, sometimes $CPP names a directory.
4695
if test -n "$CPP" && test -d "$CPP"; then
4698
if test -z "$CPP"; then
4699
if test "${ac_cv_prog_CPP+set}" = set; then
4700
$as_echo_n "(cached) " >&6
4702
# Double quotes because CPP needs to be expanded
4703
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4706
for ac_c_preproc_warn_flag in '' yes
4708
# Use a header file that comes with gcc, so configuring glibc
4709
# with a fresh cross-compiler works.
4710
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4711
# <limits.h> exists even on freestanding compilers.
4712
# On the NeXT, cc -E runs the code through the compiler's parser,
4713
# not just through cpp. "Syntax error" is here to catch this case.
4714
cat >conftest.$ac_ext <<_ACEOF
4717
cat confdefs.h >>conftest.$ac_ext
4718
cat >>conftest.$ac_ext <<_ACEOF
4719
/* end confdefs.h. */
4721
# include <limits.h>
4723
# include <assert.h>
4727
if { (ac_try="$ac_cpp conftest.$ac_ext"
4729
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730
*) ac_try_echo=$ac_try;;
4732
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4733
$as_echo "$ac_try_echo") >&5
4734
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4736
grep -v '^ *+' conftest.er1 >conftest.err
4738
cat conftest.err >&5
4739
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740
(exit $ac_status); } >/dev/null && {
4741
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4742
test ! -s conftest.err
4746
$as_echo "$as_me: failed program was:" >&5
4747
sed 's/^/| /' conftest.$ac_ext >&5
4749
# Broken: fails on valid input.
4753
rm -f conftest.err conftest.$ac_ext
4755
# OK, works on sane cases. Now check whether nonexistent headers
4756
# can be detected and how.
4757
cat >conftest.$ac_ext <<_ACEOF
4760
cat confdefs.h >>conftest.$ac_ext
4761
cat >>conftest.$ac_ext <<_ACEOF
4762
/* end confdefs.h. */
4763
#include <ac_nonexistent.h>
4765
if { (ac_try="$ac_cpp conftest.$ac_ext"
4767
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768
*) ac_try_echo=$ac_try;;
4770
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4771
$as_echo "$ac_try_echo") >&5
4772
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4774
grep -v '^ *+' conftest.er1 >conftest.err
4776
cat conftest.err >&5
4777
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778
(exit $ac_status); } >/dev/null && {
4779
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4780
test ! -s conftest.err
4782
# Broken: success on invalid input.
4785
$as_echo "$as_me: failed program was:" >&5
4786
sed 's/^/| /' conftest.$ac_ext >&5
4788
# Passes both tests.
4793
rm -f conftest.err conftest.$ac_ext
4796
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4797
rm -f conftest.err conftest.$ac_ext
4798
if $ac_preproc_ok; then
4810
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4811
$as_echo "$CPP" >&6; }
4813
for ac_c_preproc_warn_flag in '' yes
4815
# Use a header file that comes with gcc, so configuring glibc
4816
# with a fresh cross-compiler works.
4817
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4818
# <limits.h> exists even on freestanding compilers.
4819
# On the NeXT, cc -E runs the code through the compiler's parser,
4820
# not just through cpp. "Syntax error" is here to catch this case.
4821
cat >conftest.$ac_ext <<_ACEOF
4824
cat confdefs.h >>conftest.$ac_ext
4825
cat >>conftest.$ac_ext <<_ACEOF
4826
/* end confdefs.h. */
4828
# include <limits.h>
4830
# include <assert.h>
4834
if { (ac_try="$ac_cpp conftest.$ac_ext"
4836
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837
*) ac_try_echo=$ac_try;;
4839
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4840
$as_echo "$ac_try_echo") >&5
4841
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4843
grep -v '^ *+' conftest.er1 >conftest.err
4845
cat conftest.err >&5
4846
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847
(exit $ac_status); } >/dev/null && {
4848
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4849
test ! -s conftest.err
4853
$as_echo "$as_me: failed program was:" >&5
4854
sed 's/^/| /' conftest.$ac_ext >&5
4856
# Broken: fails on valid input.
4860
rm -f conftest.err conftest.$ac_ext
4862
# OK, works on sane cases. Now check whether nonexistent headers
4863
# can be detected and how.
4864
cat >conftest.$ac_ext <<_ACEOF
4867
cat confdefs.h >>conftest.$ac_ext
4868
cat >>conftest.$ac_ext <<_ACEOF
4869
/* end confdefs.h. */
4870
#include <ac_nonexistent.h>
4872
if { (ac_try="$ac_cpp conftest.$ac_ext"
4874
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875
*) ac_try_echo=$ac_try;;
4877
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4878
$as_echo "$ac_try_echo") >&5
4879
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4881
grep -v '^ *+' conftest.er1 >conftest.err
4883
cat conftest.err >&5
4884
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885
(exit $ac_status); } >/dev/null && {
4886
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4887
test ! -s conftest.err
4889
# Broken: success on invalid input.
4892
$as_echo "$as_me: failed program was:" >&5
4893
sed 's/^/| /' conftest.$ac_ext >&5
4895
# Passes both tests.
4900
rm -f conftest.err conftest.$ac_ext
4903
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4904
rm -f conftest.err conftest.$ac_ext
4905
if $ac_preproc_ok; then
4908
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4909
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4910
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4911
See \`config.log' for more details." >&5
4912
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4913
See \`config.log' for more details." >&2;}
4914
{ (exit 1); exit 1; }; }; }
4918
ac_cpp='$CPP $CPPFLAGS'
4919
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4925
$as_echo_n "checking for ANSI C header files... " >&6; }
4926
if test "${ac_cv_header_stdc+set}" = set; then
4927
$as_echo_n "(cached) " >&6
4929
cat >conftest.$ac_ext <<_ACEOF
4932
cat confdefs.h >>conftest.$ac_ext
4933
cat >>conftest.$ac_ext <<_ACEOF
4934
/* end confdefs.h. */
4948
rm -f conftest.$ac_objext
4949
if { (ac_try="$ac_compile"
4951
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952
*) ac_try_echo=$ac_try;;
4954
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4955
$as_echo "$ac_try_echo") >&5
4956
(eval "$ac_compile") 2>conftest.er1
4958
grep -v '^ *+' conftest.er1 >conftest.err
4960
cat conftest.err >&5
4961
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962
(exit $ac_status); } && {
4963
test -z "$ac_c_werror_flag" ||
4964
test ! -s conftest.err
4965
} && test -s conftest.$ac_objext; then
4966
ac_cv_header_stdc=yes
4968
$as_echo "$as_me: failed program was:" >&5
4969
sed 's/^/| /' conftest.$ac_ext >&5
4971
ac_cv_header_stdc=no
4974
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976
if test $ac_cv_header_stdc = yes; then
4977
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4978
cat >conftest.$ac_ext <<_ACEOF
4981
cat confdefs.h >>conftest.$ac_ext
4982
cat >>conftest.$ac_ext <<_ACEOF
4983
/* end confdefs.h. */
4987
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4988
$EGREP "memchr" >/dev/null 2>&1; then
4991
ac_cv_header_stdc=no
4997
if test $ac_cv_header_stdc = yes; then
4998
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4999
cat >conftest.$ac_ext <<_ACEOF
5002
cat confdefs.h >>conftest.$ac_ext
5003
cat >>conftest.$ac_ext <<_ACEOF
5004
/* end confdefs.h. */
5008
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5009
$EGREP "free" >/dev/null 2>&1; then
5012
ac_cv_header_stdc=no
5018
if test $ac_cv_header_stdc = yes; then
5019
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5020
if test "$cross_compiling" = yes; then
5023
cat >conftest.$ac_ext <<_ACEOF
5026
cat confdefs.h >>conftest.$ac_ext
5027
cat >>conftest.$ac_ext <<_ACEOF
5028
/* end confdefs.h. */
5031
#if ((' ' & 0x0FF) == 0x020)
5032
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5033
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5035
# define ISLOWER(c) \
5036
(('a' <= (c) && (c) <= 'i') \
5037
|| ('j' <= (c) && (c) <= 'r') \
5038
|| ('s' <= (c) && (c) <= 'z'))
5039
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5042
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5047
for (i = 0; i < 256; i++)
5048
if (XOR (islower (i), ISLOWER (i))
5049
|| toupper (i) != TOUPPER (i))
5054
rm -f conftest$ac_exeext
5055
if { (ac_try="$ac_link"
5057
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058
*) ac_try_echo=$ac_try;;
5060
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5061
$as_echo "$ac_try_echo") >&5
5062
(eval "$ac_link") 2>&5
5064
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5066
{ (case "(($ac_try" in
5067
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5068
*) ac_try_echo=$ac_try;;
5070
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5071
$as_echo "$ac_try_echo") >&5
5072
(eval "$ac_try") 2>&5
5074
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075
(exit $ac_status); }; }; then
5078
$as_echo "$as_me: program exited with status $ac_status" >&5
5079
$as_echo "$as_me: failed program was:" >&5
5080
sed 's/^/| /' conftest.$ac_ext >&5
5083
ac_cv_header_stdc=no
5085
rm -rf conftest.dSYM
5086
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5092
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5093
$as_echo "$ac_cv_header_stdc" >&6; }
5094
if test $ac_cv_header_stdc = yes; then
5096
cat >>confdefs.h <<\_ACEOF
5097
#define STDC_HEADERS 1
5102
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5112
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5113
inttypes.h stdint.h unistd.h
5115
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5116
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5117
$as_echo_n "checking for $ac_header... " >&6; }
5118
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5119
$as_echo_n "(cached) " >&6
5121
cat >conftest.$ac_ext <<_ACEOF
5124
cat confdefs.h >>conftest.$ac_ext
5125
cat >>conftest.$ac_ext <<_ACEOF
5126
/* end confdefs.h. */
5127
$ac_includes_default
5129
#include <$ac_header>
5131
rm -f conftest.$ac_objext
5132
if { (ac_try="$ac_compile"
5134
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135
*) ac_try_echo=$ac_try;;
5137
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5138
$as_echo "$ac_try_echo") >&5
5139
(eval "$ac_compile") 2>conftest.er1
5141
grep -v '^ *+' conftest.er1 >conftest.err
5143
cat conftest.err >&5
5144
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145
(exit $ac_status); } && {
5146
test -z "$ac_c_werror_flag" ||
5147
test ! -s conftest.err
5148
} && test -s conftest.$ac_objext; then
5149
eval "$as_ac_Header=yes"
5151
$as_echo "$as_me: failed program was:" >&5
5152
sed 's/^/| /' conftest.$ac_ext >&5
5154
eval "$as_ac_Header=no"
5157
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159
ac_res=`eval 'as_val=${'$as_ac_Header'}
5160
$as_echo "$as_val"'`
5161
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5162
$as_echo "$ac_res" >&6; }
5163
as_val=`eval 'as_val=${'$as_ac_Header'}
5164
$as_echo "$as_val"'`
5165
if test "x$as_val" = x""yes; then
5166
cat >>confdefs.h <<_ACEOF
5167
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5176
for ac_header in dlfcn.h
5178
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5179
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5180
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5181
$as_echo_n "checking for $ac_header... " >&6; }
5182
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5183
$as_echo_n "(cached) " >&6
5185
ac_res=`eval 'as_val=${'$as_ac_Header'}
5186
$as_echo "$as_val"'`
5187
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5188
$as_echo "$ac_res" >&6; }
5190
# Is the header compilable?
5191
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5192
$as_echo_n "checking $ac_header usability... " >&6; }
5193
cat >conftest.$ac_ext <<_ACEOF
5196
cat confdefs.h >>conftest.$ac_ext
5197
cat >>conftest.$ac_ext <<_ACEOF
5198
/* end confdefs.h. */
5199
$ac_includes_default
5200
#include <$ac_header>
5202
rm -f conftest.$ac_objext
5203
if { (ac_try="$ac_compile"
5205
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206
*) ac_try_echo=$ac_try;;
5208
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5209
$as_echo "$ac_try_echo") >&5
5210
(eval "$ac_compile") 2>conftest.er1
5212
grep -v '^ *+' conftest.er1 >conftest.err
5214
cat conftest.err >&5
5215
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216
(exit $ac_status); } && {
5217
test -z "$ac_c_werror_flag" ||
5218
test ! -s conftest.err
5219
} && test -s conftest.$ac_objext; then
5220
ac_header_compiler=yes
5222
$as_echo "$as_me: failed program was:" >&5
5223
sed 's/^/| /' conftest.$ac_ext >&5
5225
ac_header_compiler=no
5228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5230
$as_echo "$ac_header_compiler" >&6; }
5232
# Is the header present?
5233
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5234
$as_echo_n "checking $ac_header presence... " >&6; }
5235
cat >conftest.$ac_ext <<_ACEOF
5238
cat confdefs.h >>conftest.$ac_ext
5239
cat >>conftest.$ac_ext <<_ACEOF
5240
/* end confdefs.h. */
5241
#include <$ac_header>
5243
if { (ac_try="$ac_cpp conftest.$ac_ext"
5245
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246
*) ac_try_echo=$ac_try;;
5248
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5249
$as_echo "$ac_try_echo") >&5
5250
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5252
grep -v '^ *+' conftest.er1 >conftest.err
5254
cat conftest.err >&5
5255
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256
(exit $ac_status); } >/dev/null && {
5257
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5258
test ! -s conftest.err
5260
ac_header_preproc=yes
5262
$as_echo "$as_me: failed program was:" >&5
5263
sed 's/^/| /' conftest.$ac_ext >&5
5265
ac_header_preproc=no
5268
rm -f conftest.err conftest.$ac_ext
5269
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5270
$as_echo "$ac_header_preproc" >&6; }
5272
# So? What about this header?
5273
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5275
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5276
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5277
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5278
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5279
ac_header_preproc=yes
5282
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5283
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5284
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5285
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5286
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5287
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5288
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5289
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5290
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5291
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5292
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5293
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5295
## ---------------------------------------------------------------------- ##
5296
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5297
## ---------------------------------------------------------------------- ##
5299
) | sed "s/^/$as_me: WARNING: /" >&2
5302
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5303
$as_echo_n "checking for $ac_header... " >&6; }
5304
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5305
$as_echo_n "(cached) " >&6
5307
eval "$as_ac_Header=\$ac_header_preproc"
5309
ac_res=`eval 'as_val=${'$as_ac_Header'}
5310
$as_echo "$as_val"'`
5311
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5312
$as_echo "$ac_res" >&6; }
5315
as_val=`eval 'as_val=${'$as_ac_Header'}
5316
$as_echo "$as_val"'`
5317
if test "x$as_val" = x""yes; then
5318
cat >>confdefs.h <<_ACEOF
5319
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5327
ac_cpp='$CXXCPP $CPPFLAGS'
5328
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5329
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5331
if test -z "$CXX"; then
5332
if test -n "$CCC"; then
5335
if test -n "$ac_tool_prefix"; then
5336
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5338
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5339
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5340
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5341
$as_echo_n "checking for $ac_word... " >&6; }
5342
if test "${ac_cv_prog_CXX+set}" = set; then
5343
$as_echo_n "(cached) " >&6
5345
if test -n "$CXX"; then
5346
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5348
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352
test -z "$as_dir" && as_dir=.
5353
for ac_exec_ext in '' $ac_executable_extensions; do
5354
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5356
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366
if test -n "$CXX"; then
5367
{ $as_echo "$as_me:$LINENO: result: $CXX" >&5
5368
$as_echo "$CXX" >&6; }
5370
{ $as_echo "$as_me:$LINENO: result: no" >&5
5371
$as_echo "no" >&6; }
5375
test -n "$CXX" && break
5378
if test -z "$CXX"; then
5380
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5382
# Extract the first word of "$ac_prog", so it can be a program name with args.
5383
set dummy $ac_prog; ac_word=$2
5384
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5385
$as_echo_n "checking for $ac_word... " >&6; }
5386
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5387
$as_echo_n "(cached) " >&6
5389
if test -n "$ac_ct_CXX"; then
5390
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5392
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396
test -z "$as_dir" && as_dir=.
5397
for ac_exec_ext in '' $ac_executable_extensions; do
5398
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5399
ac_cv_prog_ac_ct_CXX="$ac_prog"
5400
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5410
if test -n "$ac_ct_CXX"; then
5411
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5412
$as_echo "$ac_ct_CXX" >&6; }
5414
{ $as_echo "$as_me:$LINENO: result: no" >&5
5415
$as_echo "no" >&6; }
5419
test -n "$ac_ct_CXX" && break
5422
if test "x$ac_ct_CXX" = x; then
5425
case $cross_compiling:$ac_tool_warned in
5427
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5428
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5429
ac_tool_warned=yes ;;
5437
# Provide some information about the compiler.
5438
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5441
{ (ac_try="$ac_compiler --version >&5"
5443
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444
*) ac_try_echo=$ac_try;;
5446
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5447
$as_echo "$ac_try_echo") >&5
5448
(eval "$ac_compiler --version >&5") 2>&5
5450
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451
(exit $ac_status); }
5452
{ (ac_try="$ac_compiler -v >&5"
5454
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455
*) ac_try_echo=$ac_try;;
5457
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5458
$as_echo "$ac_try_echo") >&5
5459
(eval "$ac_compiler -v >&5") 2>&5
5461
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462
(exit $ac_status); }
5463
{ (ac_try="$ac_compiler -V >&5"
5465
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466
*) ac_try_echo=$ac_try;;
5468
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5469
$as_echo "$ac_try_echo") >&5
5470
(eval "$ac_compiler -V >&5") 2>&5
5472
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473
(exit $ac_status); }
5475
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5476
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5477
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5478
$as_echo_n "(cached) " >&6
5480
cat >conftest.$ac_ext <<_ACEOF
5483
cat confdefs.h >>conftest.$ac_ext
5484
cat >>conftest.$ac_ext <<_ACEOF
5485
/* end confdefs.h. */
5498
rm -f conftest.$ac_objext
5499
if { (ac_try="$ac_compile"
5501
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502
*) ac_try_echo=$ac_try;;
5504
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5505
$as_echo "$ac_try_echo") >&5
5506
(eval "$ac_compile") 2>conftest.er1
5508
grep -v '^ *+' conftest.er1 >conftest.err
5510
cat conftest.err >&5
5511
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512
(exit $ac_status); } && {
5513
test -z "$ac_cxx_werror_flag" ||
5514
test ! -s conftest.err
5515
} && test -s conftest.$ac_objext; then
5518
$as_echo "$as_me: failed program was:" >&5
5519
sed 's/^/| /' conftest.$ac_ext >&5
5524
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5528
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5529
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5530
if test $ac_compiler_gnu = yes; then
5535
ac_test_CXXFLAGS=${CXXFLAGS+set}
5536
ac_save_CXXFLAGS=$CXXFLAGS
5537
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5538
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5539
if test "${ac_cv_prog_cxx_g+set}" = set; then
5540
$as_echo_n "(cached) " >&6
5542
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5543
ac_cxx_werror_flag=yes
5546
cat >conftest.$ac_ext <<_ACEOF
5549
cat confdefs.h >>conftest.$ac_ext
5550
cat >>conftest.$ac_ext <<_ACEOF
5551
/* end confdefs.h. */
5561
rm -f conftest.$ac_objext
5562
if { (ac_try="$ac_compile"
5564
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565
*) ac_try_echo=$ac_try;;
5567
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5568
$as_echo "$ac_try_echo") >&5
5569
(eval "$ac_compile") 2>conftest.er1
5571
grep -v '^ *+' conftest.er1 >conftest.err
5573
cat conftest.err >&5
5574
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575
(exit $ac_status); } && {
5576
test -z "$ac_cxx_werror_flag" ||
5577
test ! -s conftest.err
5578
} && test -s conftest.$ac_objext; then
5579
ac_cv_prog_cxx_g=yes
5581
$as_echo "$as_me: failed program was:" >&5
5582
sed 's/^/| /' conftest.$ac_ext >&5
5585
cat >conftest.$ac_ext <<_ACEOF
5588
cat confdefs.h >>conftest.$ac_ext
5589
cat >>conftest.$ac_ext <<_ACEOF
5590
/* end confdefs.h. */
5600
rm -f conftest.$ac_objext
5601
if { (ac_try="$ac_compile"
5603
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604
*) ac_try_echo=$ac_try;;
5606
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5607
$as_echo "$ac_try_echo") >&5
5608
(eval "$ac_compile") 2>conftest.er1
5610
grep -v '^ *+' conftest.er1 >conftest.err
5612
cat conftest.err >&5
5613
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614
(exit $ac_status); } && {
5615
test -z "$ac_cxx_werror_flag" ||
5616
test ! -s conftest.err
5617
} && test -s conftest.$ac_objext; then
5620
$as_echo "$as_me: failed program was:" >&5
5621
sed 's/^/| /' conftest.$ac_ext >&5
5623
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5625
cat >conftest.$ac_ext <<_ACEOF
5628
cat confdefs.h >>conftest.$ac_ext
5629
cat >>conftest.$ac_ext <<_ACEOF
5630
/* end confdefs.h. */
5640
rm -f conftest.$ac_objext
5641
if { (ac_try="$ac_compile"
5643
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644
*) ac_try_echo=$ac_try;;
5646
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5647
$as_echo "$ac_try_echo") >&5
5648
(eval "$ac_compile") 2>conftest.er1
5650
grep -v '^ *+' conftest.er1 >conftest.err
5652
cat conftest.err >&5
5653
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654
(exit $ac_status); } && {
5655
test -z "$ac_cxx_werror_flag" ||
5656
test ! -s conftest.err
5657
} && test -s conftest.$ac_objext; then
5658
ac_cv_prog_cxx_g=yes
5660
$as_echo "$as_me: failed program was:" >&5
5661
sed 's/^/| /' conftest.$ac_ext >&5
5666
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5675
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5676
$as_echo "$ac_cv_prog_cxx_g" >&6; }
5677
if test "$ac_test_CXXFLAGS" = set; then
5678
CXXFLAGS=$ac_save_CXXFLAGS
5679
elif test $ac_cv_prog_cxx_g = yes; then
5680
if test "$GXX" = yes; then
5686
if test "$GXX" = yes; then
5693
ac_cpp='$CXXCPP $CPPFLAGS'
5694
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5695
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5696
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5698
depcc="$CXX" am_compiler_list=
5700
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5701
$as_echo_n "checking dependency style of $depcc... " >&6; }
5702
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5703
$as_echo_n "(cached) " >&6
5705
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5706
# We make a subdir and do the tests there. Otherwise we can end up
5707
# making bogus files that we don't know about and never remove. For
5708
# instance it was reported that on HP-UX the gcc test will end up
5709
# making a dummy file named `D' -- because `-MD' means `put the output
5712
# Copy depcomp to subdir because otherwise we won't find it if we're
5713
# using a relative directory.
5714
cp "$am_depcomp" conftest.dir
5716
# We will build objects and dependencies in a subdirectory because
5717
# it helps to detect inapplicable dependency modes. For instance
5718
# both Tru64's cc and ICC support -MD to output dependencies as a
5719
# side effect of compilation, but ICC will put the dependencies in
5720
# the current directory while Tru64 will put them in the object
5724
am_cv_CXX_dependencies_compiler_type=none
5725
if test "$am_compiler_list" = ""; then
5726
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5728
for depmode in $am_compiler_list; do
5729
# Setup a source with many dependencies, because some compilers
5730
# like to wrap large dependency lists on column 80 (with \), and
5731
# we should not choose a depcomp mode which is confused by this.
5733
# We need to recreate these files for each test, as the compiler may
5734
# overwrite some of them when testing with obscure command lines.
5735
# This happens at least with the AIX C compiler.
5737
for i in 1 2 3 4 5 6; do
5738
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5739
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5740
# Solaris 8's {/usr,}/bin/sh.
5741
touch sub/conftst$i.h
5743
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5747
# after this tag, mechanisms are not by side-effect, so they'll
5748
# only be used when explicitly requested
5749
if test "x$enable_dependency_tracking" = xyes; then
5757
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5758
# mode. It turns out that the SunPro C++ compiler does not properly
5759
# handle `-M -o', and we need to detect this.
5760
if depmode=$depmode \
5761
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5762
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5763
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5764
>/dev/null 2>conftest.err &&
5765
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5766
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5767
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5768
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5769
# icc doesn't choke on unknown options, it will just issue warnings
5770
# or remarks (even with -Werror). So we grep stderr for any message
5771
# that says an option was ignored or not supported.
5772
# When given -MP, icc 7.0 and 7.1 complain thusly:
5773
# icc: Command line warning: ignoring option '-M'; no argument required
5774
# The diagnosis changed in icc 8.0:
5775
# icc: Command line remark: option '-MP' not supported
5776
if (grep 'ignoring option' conftest.err ||
5777
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5778
am_cv_CXX_dependencies_compiler_type=$depmode
5787
am_cv_CXX_dependencies_compiler_type=none
5791
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5792
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5793
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5796
test "x$enable_dependency_tracking" != xno \
5797
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5798
am__fastdepCXX_TRUE=
5799
am__fastdepCXX_FALSE='#'
5801
am__fastdepCXX_TRUE='#'
5802
am__fastdepCXX_FALSE=
5808
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5809
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5810
(test "X$CXX" != "Xg++"))) ; then
5812
ac_cpp='$CXXCPP $CPPFLAGS'
5813
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5814
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5815
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5816
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5817
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5818
if test -z "$CXXCPP"; then
5819
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5820
$as_echo_n "(cached) " >&6
5822
# Double quotes because CXXCPP needs to be expanded
5823
for CXXCPP in "$CXX -E" "/lib/cpp"
5826
for ac_cxx_preproc_warn_flag in '' yes
5828
# Use a header file that comes with gcc, so configuring glibc
5829
# with a fresh cross-compiler works.
5830
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5831
# <limits.h> exists even on freestanding compilers.
5832
# On the NeXT, cc -E runs the code through the compiler's parser,
5833
# not just through cpp. "Syntax error" is here to catch this case.
5834
cat >conftest.$ac_ext <<_ACEOF
5837
cat confdefs.h >>conftest.$ac_ext
5838
cat >>conftest.$ac_ext <<_ACEOF
5839
/* end confdefs.h. */
5841
# include <limits.h>
5843
# include <assert.h>
5847
if { (ac_try="$ac_cpp conftest.$ac_ext"
5849
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850
*) ac_try_echo=$ac_try;;
5852
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5853
$as_echo "$ac_try_echo") >&5
5854
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5856
grep -v '^ *+' conftest.er1 >conftest.err
5858
cat conftest.err >&5
5859
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860
(exit $ac_status); } >/dev/null && {
5861
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5862
test ! -s conftest.err
5866
$as_echo "$as_me: failed program was:" >&5
5867
sed 's/^/| /' conftest.$ac_ext >&5
5869
# Broken: fails on valid input.
5873
rm -f conftest.err conftest.$ac_ext
5875
# OK, works on sane cases. Now check whether nonexistent headers
5876
# can be detected and how.
5877
cat >conftest.$ac_ext <<_ACEOF
5880
cat confdefs.h >>conftest.$ac_ext
5881
cat >>conftest.$ac_ext <<_ACEOF
5882
/* end confdefs.h. */
5883
#include <ac_nonexistent.h>
5885
if { (ac_try="$ac_cpp conftest.$ac_ext"
5887
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888
*) ac_try_echo=$ac_try;;
5890
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5891
$as_echo "$ac_try_echo") >&5
5892
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5894
grep -v '^ *+' conftest.er1 >conftest.err
5896
cat conftest.err >&5
5897
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898
(exit $ac_status); } >/dev/null && {
5899
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5900
test ! -s conftest.err
5902
# Broken: success on invalid input.
5905
$as_echo "$as_me: failed program was:" >&5
5906
sed 's/^/| /' conftest.$ac_ext >&5
5908
# Passes both tests.
5913
rm -f conftest.err conftest.$ac_ext
5916
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5917
rm -f conftest.err conftest.$ac_ext
5918
if $ac_preproc_ok; then
5923
ac_cv_prog_CXXCPP=$CXXCPP
5926
CXXCPP=$ac_cv_prog_CXXCPP
5928
ac_cv_prog_CXXCPP=$CXXCPP
5930
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5931
$as_echo "$CXXCPP" >&6; }
5933
for ac_cxx_preproc_warn_flag in '' yes
5935
# Use a header file that comes with gcc, so configuring glibc
5936
# with a fresh cross-compiler works.
5937
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5938
# <limits.h> exists even on freestanding compilers.
5939
# On the NeXT, cc -E runs the code through the compiler's parser,
5940
# not just through cpp. "Syntax error" is here to catch this case.
5941
cat >conftest.$ac_ext <<_ACEOF
5944
cat confdefs.h >>conftest.$ac_ext
5945
cat >>conftest.$ac_ext <<_ACEOF
5946
/* end confdefs.h. */
5948
# include <limits.h>
5950
# include <assert.h>
5954
if { (ac_try="$ac_cpp conftest.$ac_ext"
5956
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957
*) ac_try_echo=$ac_try;;
5959
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5960
$as_echo "$ac_try_echo") >&5
5961
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5963
grep -v '^ *+' conftest.er1 >conftest.err
5965
cat conftest.err >&5
5966
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967
(exit $ac_status); } >/dev/null && {
5968
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5969
test ! -s conftest.err
5973
$as_echo "$as_me: failed program was:" >&5
5974
sed 's/^/| /' conftest.$ac_ext >&5
5976
# Broken: fails on valid input.
5980
rm -f conftest.err conftest.$ac_ext
5982
# OK, works on sane cases. Now check whether nonexistent headers
5983
# can be detected and how.
5984
cat >conftest.$ac_ext <<_ACEOF
5987
cat confdefs.h >>conftest.$ac_ext
5988
cat >>conftest.$ac_ext <<_ACEOF
5989
/* end confdefs.h. */
5990
#include <ac_nonexistent.h>
5992
if { (ac_try="$ac_cpp conftest.$ac_ext"
5994
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995
*) ac_try_echo=$ac_try;;
5997
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5998
$as_echo "$ac_try_echo") >&5
5999
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6001
grep -v '^ *+' conftest.er1 >conftest.err
6003
cat conftest.err >&5
6004
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005
(exit $ac_status); } >/dev/null && {
6006
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6007
test ! -s conftest.err
6009
# Broken: success on invalid input.
6012
$as_echo "$as_me: failed program was:" >&5
6013
sed 's/^/| /' conftest.$ac_ext >&5
6015
# Passes both tests.
6020
rm -f conftest.err conftest.$ac_ext
6023
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6024
rm -f conftest.err conftest.$ac_ext
6025
if $ac_preproc_ok; then
6028
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6029
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6030
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6031
See \`config.log' for more details." >&5
6032
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6033
See \`config.log' for more details." >&2;}
6034
{ (exit 1); exit 1; }; }; }
6038
ac_cpp='$CXXCPP $CPPFLAGS'
6039
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6040
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6041
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6047
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6048
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6049
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6050
if test -n "$ac_tool_prefix"; then
6051
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
6053
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6054
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6055
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6056
$as_echo_n "checking for $ac_word... " >&6; }
6057
if test "${ac_cv_prog_F77+set}" = set; then
6058
$as_echo_n "(cached) " >&6
6060
if test -n "$F77"; then
6061
ac_cv_prog_F77="$F77" # Let the user override the test.
6063
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067
test -z "$as_dir" && as_dir=.
6068
for ac_exec_ext in '' $ac_executable_extensions; do
6069
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6071
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081
if test -n "$F77"; then
6082
{ $as_echo "$as_me:$LINENO: result: $F77" >&5
6083
$as_echo "$F77" >&6; }
6085
{ $as_echo "$as_me:$LINENO: result: no" >&5
6086
$as_echo "no" >&6; }
6090
test -n "$F77" && break
6093
if test -z "$F77"; then
6095
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
6097
# Extract the first word of "$ac_prog", so it can be a program name with args.
6098
set dummy $ac_prog; ac_word=$2
6099
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6100
$as_echo_n "checking for $ac_word... " >&6; }
6101
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6102
$as_echo_n "(cached) " >&6
6104
if test -n "$ac_ct_F77"; then
6105
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111
test -z "$as_dir" && as_dir=.
6112
for ac_exec_ext in '' $ac_executable_extensions; do
6113
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114
ac_cv_prog_ac_ct_F77="$ac_prog"
6115
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6125
if test -n "$ac_ct_F77"; then
6126
{ $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6127
$as_echo "$ac_ct_F77" >&6; }
6129
{ $as_echo "$as_me:$LINENO: result: no" >&5
6130
$as_echo "no" >&6; }
6134
test -n "$ac_ct_F77" && break
6137
if test "x$ac_ct_F77" = x; then
6140
case $cross_compiling:$ac_tool_warned in
6142
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6143
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6144
ac_tool_warned=yes ;;
6151
# Provide some information about the compiler.
6152
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6155
{ (ac_try="$ac_compiler --version >&5"
6157
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158
*) ac_try_echo=$ac_try;;
6160
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6161
$as_echo "$ac_try_echo") >&5
6162
(eval "$ac_compiler --version >&5") 2>&5
6164
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165
(exit $ac_status); }
6166
{ (ac_try="$ac_compiler -v >&5"
6168
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169
*) ac_try_echo=$ac_try;;
6171
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6172
$as_echo "$ac_try_echo") >&5
6173
(eval "$ac_compiler -v >&5") 2>&5
6175
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176
(exit $ac_status); }
6177
{ (ac_try="$ac_compiler -V >&5"
6179
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180
*) ac_try_echo=$ac_try;;
6182
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6183
$as_echo "$ac_try_echo") >&5
6184
(eval "$ac_compiler -V >&5") 2>&5
6186
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187
(exit $ac_status); }
6190
# If we don't use `.F' as extension, the preprocessor is not run on the
6191
# input file. (Note that this only needs to work for GNU compilers.)
6194
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6195
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6196
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6197
$as_echo_n "(cached) " >&6
6199
cat >conftest.$ac_ext <<_ACEOF
6207
rm -f conftest.$ac_objext
6208
if { (ac_try="$ac_compile"
6210
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211
*) ac_try_echo=$ac_try;;
6213
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6214
$as_echo "$ac_try_echo") >&5
6215
(eval "$ac_compile") 2>conftest.er1
6217
grep -v '^ *+' conftest.er1 >conftest.err
6219
cat conftest.err >&5
6220
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221
(exit $ac_status); } && {
6222
test -z "$ac_f77_werror_flag" ||
6223
test ! -s conftest.err
6224
} && test -s conftest.$ac_objext; then
6227
$as_echo "$as_me: failed program was:" >&5
6228
sed 's/^/| /' conftest.$ac_ext >&5
6233
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6237
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6238
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6240
ac_test_FFLAGS=${FFLAGS+set}
6241
ac_save_FFLAGS=$FFLAGS
6243
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6244
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6245
if test "${ac_cv_prog_f77_g+set}" = set; then
6246
$as_echo_n "(cached) " >&6
6249
cat >conftest.$ac_ext <<_ACEOF
6254
rm -f conftest.$ac_objext
6255
if { (ac_try="$ac_compile"
6257
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258
*) ac_try_echo=$ac_try;;
6260
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6261
$as_echo "$ac_try_echo") >&5
6262
(eval "$ac_compile") 2>conftest.er1
6264
grep -v '^ *+' conftest.er1 >conftest.err
6266
cat conftest.err >&5
6267
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268
(exit $ac_status); } && {
6269
test -z "$ac_f77_werror_flag" ||
6270
test ! -s conftest.err
6271
} && test -s conftest.$ac_objext; then
6272
ac_cv_prog_f77_g=yes
6274
$as_echo "$as_me: failed program was:" >&5
6275
sed 's/^/| /' conftest.$ac_ext >&5
6280
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6284
$as_echo "$ac_cv_prog_f77_g" >&6; }
6285
if test "$ac_test_FFLAGS" = set; then
6286
FFLAGS=$ac_save_FFLAGS
6287
elif test $ac_cv_prog_f77_g = yes; then
6288
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6294
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6301
if test $ac_compiler_gnu = yes; then
6307
ac_cpp='$CPP $CPPFLAGS'
6308
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6309
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6310
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6314
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6315
# find the maximum length of command line arguments
6316
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6317
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6318
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6319
$as_echo_n "(cached) " >&6
6326
# On DJGPP, this test can blow up pretty badly due to problems in libc
6327
# (any single argument exceeding 2000 bytes causes a buffer overrun
6328
# during glob expansion). Even if it were fixed, the result of this
6329
# check would be larger than it should be.
6330
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6334
# Under GNU Hurd, this test is not required because there is
6335
# no limit to the length of command line arguments.
6336
# Libtool will interpret -1 as no limit whatsoever
6337
lt_cv_sys_max_cmd_len=-1;
6341
# On Win9x/ME, this test blows up -- it succeeds, but takes
6342
# about 5 minutes as the teststring grows exponentially.
6343
# Worse, since 9x/ME are not pre-emptively multitasking,
6344
# you end up with a "frozen" computer, even though with patience
6345
# the test eventually succeeds (with a max line length of 256k).
6346
# Instead, let's just punt: use the minimum linelength reported by
6347
# all of the supported platforms: 8192 (on NT/2K/XP).
6348
lt_cv_sys_max_cmd_len=8192;
6352
# On AmigaOS with pdksh, this test takes hours, literally.
6353
# So we just punt and use a minimum line length of 8192.
6354
lt_cv_sys_max_cmd_len=8192;
6357
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6358
# This has been around since 386BSD, at least. Likely further.
6359
if test -x /sbin/sysctl; then
6360
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6361
elif test -x /usr/sbin/sysctl; then
6362
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6364
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6366
# And add a safety zone
6367
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6368
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6372
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6373
lt_cv_sys_max_cmd_len=196608
6377
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6378
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6379
# nice to cause kernel panics so lets avoid the loop below.
6380
# First set a reasonable default.
6381
lt_cv_sys_max_cmd_len=16384
6383
if test -x /sbin/sysconfig; then
6384
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6385
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6390
lt_cv_sys_max_cmd_len=102400
6392
sysv5* | sco5v6* | sysv4.2uw2*)
6393
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6394
if test -n "$kargmax"; then
6395
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6397
lt_cv_sys_max_cmd_len=32768
6401
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6402
if test -n "$lt_cv_sys_max_cmd_len"; then
6403
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6404
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6406
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6407
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6408
= "XX$teststring") >/dev/null 2>&1 &&
6409
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6410
lt_cv_sys_max_cmd_len=$new_result &&
6411
test $i != 17 # 1/2 MB should be enough
6414
teststring=$teststring$teststring
6417
# Add a significant safety factor because C++ compilers can tack on massive
6418
# amounts of additional arguments before passing them to the linker.
6419
# It appears as though 1/2 is a usable value.
6420
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6427
if test -n $lt_cv_sys_max_cmd_len ; then
6428
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6429
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6431
{ $as_echo "$as_me:$LINENO: result: none" >&5
6432
$as_echo "none" >&6; }
6439
# Check for command to grab the raw symbol name followed by C symbol from nm.
6440
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6441
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6442
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6443
$as_echo_n "(cached) " >&6
6446
# These are sane defaults that work on at least a few old systems.
6447
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6449
# Character class describing NM global symbol codes.
6450
symcode='[BCDEGRST]'
6452
# Regexp to match symbols that can be accessed directly from C.
6453
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6455
# Transform an extracted symbol line into a proper C declaration
6456
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6458
# Transform an extracted symbol line into symbol name and symbol address
6459
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'"
6461
# Define system-specific variables.
6466
cygwin* | mingw* | pw32*)
6467
symcode='[ABCDGISTW]'
6469
hpux*) # Its linker distinguishes data from code symbols
6470
if test "$host_cpu" = ia64; then
6471
symcode='[ABCDEGRST]'
6473
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6474
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'"
6476
linux* | k*bsd*-gnu)
6477
if test "$host_cpu" = ia64; then
6478
symcode='[ABCDGIRSTW]'
6479
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6480
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'"
6484
symcode='[BCDEGRST]'
6487
symcode='[BCDEGQRST]'
6498
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6506
# Handle CRLF in mingw tool chain
6510
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6514
# If we're using GNU nm, then use its standard symbol codes.
6515
case `$NM -V 2>&1` in
6516
*GNU* | *'with BFD'*)
6517
symcode='[ABCDGIRSTW]' ;;
6520
# Try without a prefix undercore, then with it.
6521
for ac_symprfx in "" "_"; do
6523
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6524
symxfrm="\\1 $ac_symprfx\\2 \\2"
6526
# Write the raw and C identifiers.
6527
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6529
# Check to see that the pipe works correctly.
6533
cat > conftest.$ac_ext <<EOF
6538
void nm_test_func(){}
6542
int main(){nm_test_var='a';nm_test_func();return(0);}
6545
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6546
(eval $ac_compile) 2>&5
6548
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549
(exit $ac_status); }; then
6550
# Now try to grab the symbols.
6552
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6553
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6555
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556
(exit $ac_status); } && test -s "$nlist"; then
6557
# Try sorting and uniquifying the output.
6558
if sort "$nlist" | uniq > "$nlist"T; then
6559
mv -f "$nlist"T "$nlist"
6564
# Make sure that we snagged all the symbols we need.
6565
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6566
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6567
cat <<EOF > conftest.$ac_ext
6573
# Now generate the symbol file.
6574
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6576
cat <<EOF >> conftest.$ac_ext
6577
#if defined (__STDC__) && __STDC__
6578
# define lt_ptr_t void *
6580
# define lt_ptr_t char *
6584
/* The mapping between symbol names and symbols. */
6589
lt_preloaded_symbols[] =
6592
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6593
cat <<\EOF >> conftest.$ac_ext
6601
# Now try linking the two files.
6602
mv conftest.$ac_objext conftstm.$ac_objext
6603
lt_save_LIBS="$LIBS"
6604
lt_save_CFLAGS="$CFLAGS"
6605
LIBS="conftstm.$ac_objext"
6606
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6607
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6608
(eval $ac_link) 2>&5
6610
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6614
LIBS="$lt_save_LIBS"
6615
CFLAGS="$lt_save_CFLAGS"
6617
echo "cannot find nm_test_func in $nlist" >&5
6620
echo "cannot find nm_test_var in $nlist" >&5
6623
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6626
echo "$progname: failed program was:" >&5
6627
cat conftest.$ac_ext >&5
6629
rm -rf conftest* conftst*
6631
# Do not use the global_symbol_pipe unless it works.
6632
if test "$pipe_works" = yes; then
6635
lt_cv_sys_global_symbol_pipe=
6641
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6642
lt_cv_sys_global_symbol_to_cdecl=
6644
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6645
{ $as_echo "$as_me:$LINENO: result: failed" >&5
6646
$as_echo "failed" >&6; }
6648
{ $as_echo "$as_me:$LINENO: result: ok" >&5
6649
$as_echo "ok" >&6; }
6652
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6653
$as_echo_n "checking for objdir... " >&6; }
6654
if test "${lt_cv_objdir+set}" = set; then
6655
$as_echo_n "(cached) " >&6
6657
rm -f .libs 2>/dev/null
6658
mkdir .libs 2>/dev/null
6659
if test -d .libs; then
6662
# MS-DOS does not allow filenames that begin with a dot.
6665
rmdir .libs 2>/dev/null
6667
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6668
$as_echo "$lt_cv_objdir" >&6; }
6669
objdir=$lt_cv_objdir
6677
# AIX sometimes has problems with the GCC collect2 program. For some
6678
# reason, if we set the COLLECT_NAMES environment variable, the problems
6679
# vanish in a puff of smoke.
6680
if test "X${COLLECT_NAMES+set}" != Xset; then
6682
export COLLECT_NAMES
6687
# Sed substitution that helps us do robust quoting. It backslashifies
6688
# metacharacters that are still active within double-quoted strings.
6689
Xsed='sed -e 1s/^X//'
6690
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6692
# Same as above, but do not quote variable references.
6693
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6695
# Sed substitution to delay expansion of an escaped shell variable in a
6696
# double_quote_subst'ed string.
6697
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6699
# Sed substitution to avoid accidental globbing in evaled expressions
6700
no_glob_subst='s/\*/\\\*/g'
6706
default_ofile=libtool
6707
can_build_shared=yes
6709
# All known linkers require a `.a' archive for static linking (except MSVC,
6710
# which needs '.lib').
6712
ltmain="$ac_aux_dir/ltmain.sh"
6713
ofile="$default_ofile"
6714
with_gnu_ld="$lt_cv_prog_gnu_ld"
6716
if test -n "$ac_tool_prefix"; then
6717
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6718
set dummy ${ac_tool_prefix}ar; ac_word=$2
6719
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6720
$as_echo_n "checking for $ac_word... " >&6; }
6721
if test "${ac_cv_prog_AR+set}" = set; then
6722
$as_echo_n "(cached) " >&6
6724
if test -n "$AR"; then
6725
ac_cv_prog_AR="$AR" # Let the user override the test.
6727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731
test -z "$as_dir" && as_dir=.
6732
for ac_exec_ext in '' $ac_executable_extensions; do
6733
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734
ac_cv_prog_AR="${ac_tool_prefix}ar"
6735
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745
if test -n "$AR"; then
6746
{ $as_echo "$as_me:$LINENO: result: $AR" >&5
6747
$as_echo "$AR" >&6; }
6749
{ $as_echo "$as_me:$LINENO: result: no" >&5
6750
$as_echo "no" >&6; }
6755
if test -z "$ac_cv_prog_AR"; then
6757
# Extract the first word of "ar", so it can be a program name with args.
6758
set dummy ar; ac_word=$2
6759
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6760
$as_echo_n "checking for $ac_word... " >&6; }
6761
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6762
$as_echo_n "(cached) " >&6
6764
if test -n "$ac_ct_AR"; then
6765
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771
test -z "$as_dir" && as_dir=.
6772
for ac_exec_ext in '' $ac_executable_extensions; do
6773
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774
ac_cv_prog_ac_ct_AR="ar"
6775
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6785
if test -n "$ac_ct_AR"; then
6786
{ $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6787
$as_echo "$ac_ct_AR" >&6; }
6789
{ $as_echo "$as_me:$LINENO: result: no" >&5
6790
$as_echo "no" >&6; }
6793
if test "x$ac_ct_AR" = x; then
6796
case $cross_compiling:$ac_tool_warned in
6798
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6799
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800
ac_tool_warned=yes ;;
6808
if test -n "$ac_tool_prefix"; then
6809
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6810
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6811
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6812
$as_echo_n "checking for $ac_word... " >&6; }
6813
if test "${ac_cv_prog_RANLIB+set}" = set; then
6814
$as_echo_n "(cached) " >&6
6816
if test -n "$RANLIB"; then
6817
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823
test -z "$as_dir" && as_dir=.
6824
for ac_exec_ext in '' $ac_executable_extensions; do
6825
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6827
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836
RANLIB=$ac_cv_prog_RANLIB
6837
if test -n "$RANLIB"; then
6838
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6839
$as_echo "$RANLIB" >&6; }
6841
{ $as_echo "$as_me:$LINENO: result: no" >&5
6842
$as_echo "no" >&6; }
6847
if test -z "$ac_cv_prog_RANLIB"; then
6848
ac_ct_RANLIB=$RANLIB
6849
# Extract the first word of "ranlib", so it can be a program name with args.
6850
set dummy ranlib; ac_word=$2
6851
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6852
$as_echo_n "checking for $ac_word... " >&6; }
6853
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6854
$as_echo_n "(cached) " >&6
6856
if test -n "$ac_ct_RANLIB"; then
6857
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863
test -z "$as_dir" && as_dir=.
6864
for ac_exec_ext in '' $ac_executable_extensions; do
6865
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866
ac_cv_prog_ac_ct_RANLIB="ranlib"
6867
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6877
if test -n "$ac_ct_RANLIB"; then
6878
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6879
$as_echo "$ac_ct_RANLIB" >&6; }
6881
{ $as_echo "$as_me:$LINENO: result: no" >&5
6882
$as_echo "no" >&6; }
6885
if test "x$ac_ct_RANLIB" = x; then
6888
case $cross_compiling:$ac_tool_warned in
6890
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6891
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892
ac_tool_warned=yes ;;
6894
RANLIB=$ac_ct_RANLIB
6897
RANLIB="$ac_cv_prog_RANLIB"
6900
if test -n "$ac_tool_prefix"; then
6901
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6902
set dummy ${ac_tool_prefix}strip; ac_word=$2
6903
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6904
$as_echo_n "checking for $ac_word... " >&6; }
6905
if test "${ac_cv_prog_STRIP+set}" = set; then
6906
$as_echo_n "(cached) " >&6
6908
if test -n "$STRIP"; then
6909
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915
test -z "$as_dir" && as_dir=.
6916
for ac_exec_ext in '' $ac_executable_extensions; do
6917
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6918
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6919
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928
STRIP=$ac_cv_prog_STRIP
6929
if test -n "$STRIP"; then
6930
{ $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6931
$as_echo "$STRIP" >&6; }
6933
{ $as_echo "$as_me:$LINENO: result: no" >&5
6934
$as_echo "no" >&6; }
6939
if test -z "$ac_cv_prog_STRIP"; then
6941
# Extract the first word of "strip", so it can be a program name with args.
6942
set dummy strip; ac_word=$2
6943
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6944
$as_echo_n "checking for $ac_word... " >&6; }
6945
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6946
$as_echo_n "(cached) " >&6
6948
if test -n "$ac_ct_STRIP"; then
6949
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6951
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955
test -z "$as_dir" && as_dir=.
6956
for ac_exec_ext in '' $ac_executable_extensions; do
6957
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958
ac_cv_prog_ac_ct_STRIP="strip"
6959
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6969
if test -n "$ac_ct_STRIP"; then
6970
{ $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6971
$as_echo "$ac_ct_STRIP" >&6; }
6973
{ $as_echo "$as_me:$LINENO: result: no" >&5
6974
$as_echo "no" >&6; }
6977
if test "x$ac_ct_STRIP" = x; then
6980
case $cross_compiling:$ac_tool_warned in
6982
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6983
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6984
ac_tool_warned=yes ;;
6989
STRIP="$ac_cv_prog_STRIP"
6994
old_CFLAGS="$CFLAGS"
6996
# Set sane defaults for various variables
6997
test -z "$AR" && AR=ar
6998
test -z "$AR_FLAGS" && AR_FLAGS=cru
6999
test -z "$AS" && AS=as
7000
test -z "$CC" && CC=cc
7001
test -z "$LTCC" && LTCC=$CC
7002
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7003
test -z "$DLLTOOL" && DLLTOOL=dlltool
7004
test -z "$LD" && LD=ld
7005
test -z "$LN_S" && LN_S="ln -s"
7006
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7007
test -z "$NM" && NM=nm
7008
test -z "$SED" && SED=sed
7009
test -z "$OBJDUMP" && OBJDUMP=objdump
7010
test -z "$RANLIB" && RANLIB=:
7011
test -z "$STRIP" && STRIP=:
7012
test -z "$ac_objext" && ac_objext=o
7014
# Determine commands to create old-style static archives.
7015
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7016
old_postinstall_cmds='chmod 644 $oldlib'
7017
old_postuninstall_cmds=
7019
if test -n "$RANLIB"; then
7022
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7025
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7028
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7031
for cc_temp in $compiler""; do
7033
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7034
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7039
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7042
# Only perform the check for file, if the check method requires it
7043
case $deplibs_check_method in
7045
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7046
{ $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7047
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7048
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7049
$as_echo_n "(cached) " >&6
7053
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7056
lt_save_MAGIC_CMD="$MAGIC_CMD"
7057
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7058
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7059
for ac_dir in $ac_dummy; do
7061
test -z "$ac_dir" && ac_dir=.
7062
if test -f $ac_dir/${ac_tool_prefix}file; then
7063
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7064
if test -n "$file_magic_test_file"; then
7065
case $deplibs_check_method in
7067
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7068
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7069
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7070
$EGREP "$file_magic_regex" > /dev/null; then
7075
*** Warning: the command libtool uses to detect shared libraries,
7076
*** $file_magic_cmd, produces output that libtool cannot recognize.
7077
*** The result is that libtool may fail to recognize shared libraries
7078
*** as such. This will affect the creation of libtool libraries that
7079
*** depend on shared libraries, but programs linked with such libtool
7080
*** libraries will work regardless of this problem. Nevertheless, you
7081
*** may want to report the problem to your system manager and/or to
7082
*** bug-libtool@gnu.org
7092
MAGIC_CMD="$lt_save_MAGIC_CMD"
7097
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7098
if test -n "$MAGIC_CMD"; then
7099
{ $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7100
$as_echo "$MAGIC_CMD" >&6; }
7102
{ $as_echo "$as_me:$LINENO: result: no" >&5
7103
$as_echo "no" >&6; }
7106
if test -z "$lt_cv_path_MAGIC_CMD"; then
7107
if test -n "$ac_tool_prefix"; then
7108
{ $as_echo "$as_me:$LINENO: checking for file" >&5
7109
$as_echo_n "checking for file... " >&6; }
7110
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7111
$as_echo_n "(cached) " >&6
7115
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7118
lt_save_MAGIC_CMD="$MAGIC_CMD"
7119
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7120
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7121
for ac_dir in $ac_dummy; do
7123
test -z "$ac_dir" && ac_dir=.
7124
if test -f $ac_dir/file; then
7125
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7126
if test -n "$file_magic_test_file"; then
7127
case $deplibs_check_method in
7129
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7130
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7131
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7132
$EGREP "$file_magic_regex" > /dev/null; then
7137
*** Warning: the command libtool uses to detect shared libraries,
7138
*** $file_magic_cmd, produces output that libtool cannot recognize.
7139
*** The result is that libtool may fail to recognize shared libraries
7140
*** as such. This will affect the creation of libtool libraries that
7141
*** depend on shared libraries, but programs linked with such libtool
7142
*** libraries will work regardless of this problem. Nevertheless, you
7143
*** may want to report the problem to your system manager and/or to
7144
*** bug-libtool@gnu.org
7154
MAGIC_CMD="$lt_save_MAGIC_CMD"
7159
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7160
if test -n "$MAGIC_CMD"; then
7161
{ $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7162
$as_echo "$MAGIC_CMD" >&6; }
7164
{ $as_echo "$as_me:$LINENO: result: no" >&5
7165
$as_echo "no" >&6; }
7179
rhapsody* | darwin*)
7180
if test -n "$ac_tool_prefix"; then
7181
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7182
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7183
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7184
$as_echo_n "checking for $ac_word... " >&6; }
7185
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7186
$as_echo_n "(cached) " >&6
7188
if test -n "$DSYMUTIL"; then
7189
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7191
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195
test -z "$as_dir" && as_dir=.
7196
for ac_exec_ext in '' $ac_executable_extensions; do
7197
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7198
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7199
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7209
if test -n "$DSYMUTIL"; then
7210
{ $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7211
$as_echo "$DSYMUTIL" >&6; }
7213
{ $as_echo "$as_me:$LINENO: result: no" >&5
7214
$as_echo "no" >&6; }
7219
if test -z "$ac_cv_prog_DSYMUTIL"; then
7220
ac_ct_DSYMUTIL=$DSYMUTIL
7221
# Extract the first word of "dsymutil", so it can be a program name with args.
7222
set dummy dsymutil; ac_word=$2
7223
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7224
$as_echo_n "checking for $ac_word... " >&6; }
7225
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7226
$as_echo_n "(cached) " >&6
7228
if test -n "$ac_ct_DSYMUTIL"; then
7229
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235
test -z "$as_dir" && as_dir=.
7236
for ac_exec_ext in '' $ac_executable_extensions; do
7237
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7238
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7239
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7249
if test -n "$ac_ct_DSYMUTIL"; then
7250
{ $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7251
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7253
{ $as_echo "$as_me:$LINENO: result: no" >&5
7254
$as_echo "no" >&6; }
7257
if test "x$ac_ct_DSYMUTIL" = x; then
7260
case $cross_compiling:$ac_tool_warned in
7262
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7263
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7264
ac_tool_warned=yes ;;
7266
DSYMUTIL=$ac_ct_DSYMUTIL
7269
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7272
if test -n "$ac_tool_prefix"; then
7273
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7274
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7275
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7276
$as_echo_n "checking for $ac_word... " >&6; }
7277
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7278
$as_echo_n "(cached) " >&6
7280
if test -n "$NMEDIT"; then
7281
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7283
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287
test -z "$as_dir" && as_dir=.
7288
for ac_exec_ext in '' $ac_executable_extensions; do
7289
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7291
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7300
NMEDIT=$ac_cv_prog_NMEDIT
7301
if test -n "$NMEDIT"; then
7302
{ $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7303
$as_echo "$NMEDIT" >&6; }
7305
{ $as_echo "$as_me:$LINENO: result: no" >&5
7306
$as_echo "no" >&6; }
7311
if test -z "$ac_cv_prog_NMEDIT"; then
7312
ac_ct_NMEDIT=$NMEDIT
7313
# Extract the first word of "nmedit", so it can be a program name with args.
7314
set dummy nmedit; ac_word=$2
7315
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7316
$as_echo_n "checking for $ac_word... " >&6; }
7317
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7318
$as_echo_n "(cached) " >&6
7320
if test -n "$ac_ct_NMEDIT"; then
7321
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327
test -z "$as_dir" && as_dir=.
7328
for ac_exec_ext in '' $ac_executable_extensions; do
7329
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7330
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7331
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7341
if test -n "$ac_ct_NMEDIT"; then
7342
{ $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7343
$as_echo "$ac_ct_NMEDIT" >&6; }
7345
{ $as_echo "$as_me:$LINENO: result: no" >&5
7346
$as_echo "no" >&6; }
7349
if test "x$ac_ct_NMEDIT" = x; then
7352
case $cross_compiling:$ac_tool_warned in
7354
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7355
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7356
ac_tool_warned=yes ;;
7358
NMEDIT=$ac_ct_NMEDIT
7361
NMEDIT="$ac_cv_prog_NMEDIT"
7365
{ $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7366
$as_echo_n "checking for -single_module linker flag... " >&6; }
7367
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7368
$as_echo_n "(cached) " >&6
7370
lt_cv_apple_cc_single_mod=no
7371
if test -z "${LT_MULTI_MODULE}"; then
7372
# By default we will add the -single_module flag. You can override
7373
# by either setting the environment variable LT_MULTI_MODULE
7374
# non-empty at configure time, or by adding -multi_module to the
7376
echo "int foo(void){return 1;}" > conftest.c
7377
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7378
-dynamiclib ${wl}-single_module conftest.c
7379
if test -f libconftest.dylib; then
7380
lt_cv_apple_cc_single_mod=yes
7381
rm -rf libconftest.dylib*
7386
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7387
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7388
{ $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7389
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7390
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7391
$as_echo_n "(cached) " >&6
7393
lt_cv_ld_exported_symbols_list=no
7394
save_LDFLAGS=$LDFLAGS
7395
echo "_main" > conftest.sym
7396
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7397
cat >conftest.$ac_ext <<_ACEOF
7400
cat confdefs.h >>conftest.$ac_ext
7401
cat >>conftest.$ac_ext <<_ACEOF
7402
/* end confdefs.h. */
7412
rm -f conftest.$ac_objext conftest$ac_exeext
7413
if { (ac_try="$ac_link"
7415
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416
*) ac_try_echo=$ac_try;;
7418
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7419
$as_echo "$ac_try_echo") >&5
7420
(eval "$ac_link") 2>conftest.er1
7422
grep -v '^ *+' conftest.er1 >conftest.err
7424
cat conftest.err >&5
7425
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426
(exit $ac_status); } && {
7427
test -z "$ac_c_werror_flag" ||
7428
test ! -s conftest.err
7429
} && test -s conftest$ac_exeext && {
7430
test "$cross_compiling" = yes ||
7431
$as_test_x conftest$ac_exeext
7433
lt_cv_ld_exported_symbols_list=yes
7435
$as_echo "$as_me: failed program was:" >&5
7436
sed 's/^/| /' conftest.$ac_ext >&5
7438
lt_cv_ld_exported_symbols_list=no
7441
rm -rf conftest.dSYM
7442
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7443
conftest$ac_exeext conftest.$ac_ext
7444
LDFLAGS="$save_LDFLAGS"
7447
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7448
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7450
rhapsody* | darwin1.[0123])
7451
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7453
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7455
# if running on 10.5 or later, the deployment target defaults
7456
# to the OS version, if on x86, and 10.4, the deployment
7457
# target defaults to 10.4. Don't you love it?
7458
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7459
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7460
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7462
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7464
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7468
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7469
_lt_dar_single_mod='$single_module'
7471
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7472
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7474
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7476
if test "$DSYMUTIL" != ":"; then
7477
_lt_dsymutil="~$DSYMUTIL \$lib || :"
7488
# Check whether --enable-libtool-lock was given.
7489
if test "${enable_libtool_lock+set}" = set; then
7490
enableval=$enable_libtool_lock;
7493
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7496
# Check whether --with-pic was given.
7497
if test "${with_pic+set}" = set; then
7498
withval=$with_pic; pic_mode="$withval"
7503
test -z "$pic_mode" && pic_mode=default
7505
# Use C for the default configuration in the libtool script
7509
ac_cpp='$CPP $CPPFLAGS'
7510
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7511
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7512
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7515
# Source file extension for C test sources.
7518
# Object file extension for compiled C test sources.
7522
# Code to be used in simple compile tests
7523
lt_simple_compile_test_code="int some_variable = 0;"
7525
# Code to be used in simple link tests
7526
lt_simple_link_test_code='int main(){return(0);}'
7529
# If no C compiler was specified, use CC.
7532
# If no C compiler flags were specified, use CFLAGS.
7533
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7535
# Allow CC to be a program name with arguments.
7539
# save warnings/boilerplate of simple test code
7540
ac_outfile=conftest.$ac_objext
7541
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7542
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7543
_lt_compiler_boilerplate=`cat conftest.err`
7546
ac_outfile=conftest.$ac_objext
7547
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7548
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7549
_lt_linker_boilerplate=`cat conftest.err`
7554
lt_prog_compiler_no_builtin_flag=
7556
if test "$GCC" = yes; then
7557
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7560
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7561
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7562
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7563
$as_echo_n "(cached) " >&6
7565
lt_cv_prog_compiler_rtti_exceptions=no
7566
ac_outfile=conftest.$ac_objext
7567
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7568
lt_compiler_flag="-fno-rtti -fno-exceptions"
7569
# Insert the option either (1) after the last *FLAGS variable, or
7570
# (2) before a word containing "conftest.", or (3) at the end.
7571
# Note that $ac_compile itself does not contain backslashes and begins
7572
# with a dollar sign (not a hyphen), so the echo should work correctly.
7573
# The option is referenced via a variable to avoid confusing sed.
7574
lt_compile=`echo "$ac_compile" | $SED \
7575
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7576
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7577
-e 's:$: $lt_compiler_flag:'`
7578
(eval echo "\"\$as_me:7578: $lt_compile\"" >&5)
7579
(eval "$lt_compile" 2>conftest.err)
7581
cat conftest.err >&5
7582
echo "$as_me:7582: \$? = $ac_status" >&5
7583
if (exit $ac_status) && test -s "$ac_outfile"; then
7584
# The compiler can only warn and ignore the option if not recognized
7585
# So say no if there are warnings other than the usual output.
7586
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7587
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7588
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7589
lt_cv_prog_compiler_rtti_exceptions=yes
7595
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7596
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7598
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7599
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7606
lt_prog_compiler_wl=
7607
lt_prog_compiler_pic=
7608
lt_prog_compiler_static=
7610
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7611
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7613
if test "$GCC" = yes; then
7614
lt_prog_compiler_wl='-Wl,'
7615
lt_prog_compiler_static='-static'
7619
# All AIX code is PIC.
7620
if test "$host_cpu" = ia64; then
7621
# AIX 5 now supports IA64 processor
7622
lt_prog_compiler_static='-Bstatic'
7627
# FIXME: we need at least 68020 code to build shared libraries, but
7628
# adding the `-m68020' flag to GCC prevents building anything better,
7630
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7633
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7634
# PIC is the default for these OSes.
7637
mingw* | cygwin* | pw32* | os2*)
7638
# This hack is so that the source file can tell whether it is being
7639
# built for inclusion in a dll (and should export symbols for example).
7640
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7641
# (--disable-auto-import) libraries
7642
lt_prog_compiler_pic='-DDLL_EXPORT'
7645
darwin* | rhapsody*)
7646
# PIC is the default on this platform
7647
# Common symbols not allowed in MH_DYLIB files
7648
lt_prog_compiler_pic='-fno-common'
7652
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7653
# Instead, we relocate shared libraries at runtime.
7657
# Just because we use GCC doesn't mean we suddenly get shared libraries
7658
# on systems that don't support them.
7659
lt_prog_compiler_can_build_shared=no
7664
if test -d /usr/nec; then
7665
lt_prog_compiler_pic=-Kconform_pic
7670
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7677
lt_prog_compiler_pic='-fPIC'
7683
lt_prog_compiler_pic='-fPIC'
7687
# PORTME Check for flag to pass linker flags through the system compiler.
7690
lt_prog_compiler_wl='-Wl,'
7691
if test "$host_cpu" = ia64; then
7692
# AIX 5 now supports IA64 processor
7693
lt_prog_compiler_static='-Bstatic'
7695
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7699
# PIC is the default on this platform
7700
# Common symbols not allowed in MH_DYLIB files
7701
case $cc_basename in
7703
lt_prog_compiler_pic='-qnocommon'
7704
lt_prog_compiler_wl='-Wl,'
7709
mingw* | cygwin* | pw32* | os2*)
7710
# This hack is so that the source file can tell whether it is being
7711
# built for inclusion in a dll (and should export symbols for example).
7712
lt_prog_compiler_pic='-DDLL_EXPORT'
7715
hpux9* | hpux10* | hpux11*)
7716
lt_prog_compiler_wl='-Wl,'
7717
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7724
lt_prog_compiler_pic='+Z'
7727
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7728
lt_prog_compiler_static='${wl}-a ${wl}archive'
7731
irix5* | irix6* | nonstopux*)
7732
lt_prog_compiler_wl='-Wl,'
7733
# PIC (with -KPIC) is the default.
7734
lt_prog_compiler_static='-non_shared'
7738
lt_prog_compiler_pic='-KPIC'
7739
lt_prog_compiler_static='-Bstatic'
7742
linux* | k*bsd*-gnu)
7743
case $cc_basename in
7745
lt_prog_compiler_wl='-Wl,'
7746
lt_prog_compiler_pic='-KPIC'
7747
lt_prog_compiler_static='-static'
7749
pgcc* | pgf77* | pgf90* | pgf95*)
7750
# Portland Group compilers (*not* the Pentium gcc compiler,
7751
# which looks to be a dead project)
7752
lt_prog_compiler_wl='-Wl,'
7753
lt_prog_compiler_pic='-fpic'
7754
lt_prog_compiler_static='-Bstatic'
7757
lt_prog_compiler_wl='-Wl,'
7758
# All Alpha code is PIC.
7759
lt_prog_compiler_static='-non_shared'
7762
case `$CC -V 2>&1 | sed 5q` in
7765
lt_prog_compiler_pic='-KPIC'
7766
lt_prog_compiler_static='-Bstatic'
7767
lt_prog_compiler_wl='-Wl,'
7770
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7771
lt_prog_compiler_pic='-KPIC'
7772
lt_prog_compiler_static='-Bstatic'
7773
lt_prog_compiler_wl=''
7780
osf3* | osf4* | osf5*)
7781
lt_prog_compiler_wl='-Wl,'
7782
# All OSF/1 code is PIC.
7783
lt_prog_compiler_static='-non_shared'
7787
lt_prog_compiler_static='-non_shared'
7791
lt_prog_compiler_pic='-KPIC'
7792
lt_prog_compiler_static='-Bstatic'
7793
case $cc_basename in
7795
lt_prog_compiler_wl='-Qoption ld ';;
7797
lt_prog_compiler_wl='-Wl,';;
7802
lt_prog_compiler_wl='-Qoption ld '
7803
lt_prog_compiler_pic='-PIC'
7804
lt_prog_compiler_static='-Bstatic'
7807
sysv4 | sysv4.2uw2* | sysv4.3*)
7808
lt_prog_compiler_wl='-Wl,'
7809
lt_prog_compiler_pic='-KPIC'
7810
lt_prog_compiler_static='-Bstatic'
7814
if test -d /usr/nec ;then
7815
lt_prog_compiler_pic='-Kconform_pic'
7816
lt_prog_compiler_static='-Bstatic'
7820
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7821
lt_prog_compiler_wl='-Wl,'
7822
lt_prog_compiler_pic='-KPIC'
7823
lt_prog_compiler_static='-Bstatic'
7827
lt_prog_compiler_wl='-Wl,'
7828
lt_prog_compiler_can_build_shared=no
7832
lt_prog_compiler_pic='-pic'
7833
lt_prog_compiler_static='-Bstatic'
7837
lt_prog_compiler_can_build_shared=no
7842
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7843
$as_echo "$lt_prog_compiler_pic" >&6; }
7846
# Check to make sure the PIC flag actually works.
7848
if test -n "$lt_prog_compiler_pic"; then
7850
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7851
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7852
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7853
$as_echo_n "(cached) " >&6
7855
lt_cv_prog_compiler_pic_works=no
7856
ac_outfile=conftest.$ac_objext
7857
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7858
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7859
# Insert the option either (1) after the last *FLAGS variable, or
7860
# (2) before a word containing "conftest.", or (3) at the end.
7861
# Note that $ac_compile itself does not contain backslashes and begins
7862
# with a dollar sign (not a hyphen), so the echo should work correctly.
7863
# The option is referenced via a variable to avoid confusing sed.
7864
lt_compile=`echo "$ac_compile" | $SED \
7865
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7866
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7867
-e 's:$: $lt_compiler_flag:'`
7868
(eval echo "\"\$as_me:7868: $lt_compile\"" >&5)
7869
(eval "$lt_compile" 2>conftest.err)
7871
cat conftest.err >&5
7872
echo "$as_me:7872: \$? = $ac_status" >&5
7873
if (exit $ac_status) && test -s "$ac_outfile"; then
7874
# The compiler can only warn and ignore the option if not recognized
7875
# So say no if there are warnings other than the usual output.
7876
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7877
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7878
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7879
lt_cv_prog_compiler_pic_works=yes
7885
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7886
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7888
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7889
case $lt_prog_compiler_pic in
7891
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7894
lt_prog_compiler_pic=
7895
lt_prog_compiler_can_build_shared=no
7900
# For platforms which do not support PIC, -DPIC is meaningless:
7902
lt_prog_compiler_pic=
7905
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7910
# Check to make sure the static flag actually works.
7912
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7913
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7914
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7915
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7916
$as_echo_n "(cached) " >&6
7918
lt_cv_prog_compiler_static_works=no
7919
save_LDFLAGS="$LDFLAGS"
7920
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7921
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7922
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7923
# The linker can only warn and ignore the option if not recognized
7924
# So say no if there are warnings
7925
if test -s conftest.err; then
7926
# Append any errors to the config.log.
7927
cat conftest.err 1>&5
7928
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7929
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7930
if diff conftest.exp conftest.er2 >/dev/null; then
7931
lt_cv_prog_compiler_static_works=yes
7934
lt_cv_prog_compiler_static_works=yes
7938
LDFLAGS="$save_LDFLAGS"
7941
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7942
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7944
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7947
lt_prog_compiler_static=
7951
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7952
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7953
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7954
$as_echo_n "(cached) " >&6
7956
lt_cv_prog_compiler_c_o=no
7957
$rm -r conftest 2>/dev/null
7961
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7963
lt_compiler_flag="-o out/conftest2.$ac_objext"
7964
# Insert the option either (1) after the last *FLAGS variable, or
7965
# (2) before a word containing "conftest.", or (3) at the end.
7966
# Note that $ac_compile itself does not contain backslashes and begins
7967
# with a dollar sign (not a hyphen), so the echo should work correctly.
7968
lt_compile=`echo "$ac_compile" | $SED \
7969
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7970
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7971
-e 's:$: $lt_compiler_flag:'`
7972
(eval echo "\"\$as_me:7972: $lt_compile\"" >&5)
7973
(eval "$lt_compile" 2>out/conftest.err)
7975
cat out/conftest.err >&5
7976
echo "$as_me:7976: \$? = $ac_status" >&5
7977
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7979
# The compiler can only warn and ignore the option if not recognized
7980
# So say no if there are warnings
7981
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7982
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7983
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7984
lt_cv_prog_compiler_c_o=yes
7989
# SGI C++ compiler will create directory out/ii_files/ for
7990
# template instantiation
7991
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7992
$rm out/* && rmdir out
7998
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7999
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8002
hard_links="nottested"
8003
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8004
# do not overwrite the value of need_locks provided by the user
8005
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8006
$as_echo_n "checking if we can lock with hard links... " >&6; }
8009
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8011
ln conftest.a conftest.b 2>&5 || hard_links=no
8012
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8013
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8014
$as_echo "$hard_links" >&6; }
8015
if test "$hard_links" = no; then
8016
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8017
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8024
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8025
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8028
allow_undefined_flag=
8029
enable_shared_with_static_runtimes=no
8031
archive_expsym_cmds=
8032
old_archive_From_new_cmds=
8033
old_archive_from_expsyms_cmds=
8034
export_dynamic_flag_spec=
8035
whole_archive_flag_spec=
8036
thread_safe_flag_spec=
8037
hardcode_libdir_flag_spec=
8038
hardcode_libdir_flag_spec_ld=
8039
hardcode_libdir_separator=
8042
hardcode_shlibpath_var=unsupported
8043
link_all_deplibs=unknown
8044
hardcode_automatic=no
8047
always_export_symbols=no
8048
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8049
# include_expsyms should be a list of space-separated symbols to be *always*
8050
# included in the symbol list
8052
# exclude_expsyms can be an extended regexp of symbols to exclude
8053
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8054
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8055
# as well as any symbol that contains `d'.
8056
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8057
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8058
# platforms (ab)use it in PIC code, but their linkers get confused if
8059
# the symbol is explicitly referenced. Since portable code cannot
8060
# rely on this symbol name, it's probably fine to never include it in
8061
# preloaded symbol tables.
8062
# Exclude shared library initialization/finalization symbols.
8063
extract_expsyms_cmds=
8064
# Just being paranoid about ensuring that cc_basename is set.
8065
for cc_temp in $compiler""; do
8067
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8068
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8073
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8076
cygwin* | mingw* | pw32*)
8077
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8078
# When not using gcc, we currently assume that we are using
8079
# Microsoft Visual C++.
8080
if test "$GCC" != yes; then
8085
# we just hope/assume this is gcc and not c89 (= MSVC++)
8094
if test "$with_gnu_ld" = yes; then
8095
# If archive_cmds runs LD, not CC, wlarc should be empty
8098
# Set some defaults for GNU ld with shared library support. These
8099
# are reset later if shared libraries are not supported. Putting them
8100
# here allows them to be overridden if necessary.
8101
runpath_var=LD_RUN_PATH
8102
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8103
export_dynamic_flag_spec='${wl}--export-dynamic'
8104
# ancient GNU ld didn't support --whole-archive et. al.
8105
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8106
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8108
whole_archive_flag_spec=
8110
supports_anon_versioning=no
8111
case `$LD -v 2>/dev/null` in
8112
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8113
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8114
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8115
*\ 2.11.*) ;; # other 2.11 versions
8116
*) supports_anon_versioning=yes ;;
8119
# See if GNU ld supports shared libraries.
8122
# On AIX/PPC, the GNU linker is very broken
8123
if test "$host_cpu" != ia64; then
8127
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8128
*** to be unable to reliably create shared libraries on AIX.
8129
*** Therefore, libtool is disabling shared libraries support. If you
8130
*** really care for shared libraries, you may want to modify your PATH
8131
*** so that a non-GNU linker is found, and then restart.
8138
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)'
8139
hardcode_libdir_flag_spec='-L$libdir'
8140
hardcode_minus_L=yes
8142
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8143
# that the semantics of dynamic libraries on AmigaOS, at least up
8144
# to version 4, is to share data among multiple programs linked
8145
# with the same dynamic library. Since this doesn't match the
8146
# behavior of shared libraries on other platforms, we can't use
8152
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8153
allow_undefined_flag=unsupported
8154
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8155
# support --undefined. This deserves some investigation. FIXME
8156
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8162
cygwin* | mingw* | pw32*)
8163
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8164
# as there is no search path for DLLs.
8165
hardcode_libdir_flag_spec='-L$libdir'
8166
allow_undefined_flag=unsupported
8167
always_export_symbols=no
8168
enable_shared_with_static_runtimes=yes
8169
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8171
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8172
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8173
# If the export-symbols file already is a .def file (1st line
8174
# is EXPORTS), use it as is; otherwise, prepend...
8175
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8176
cp $export_symbols $output_objdir/$soname.def;
8178
echo EXPORTS > $output_objdir/$soname.def;
8179
cat $export_symbols >> $output_objdir/$soname.def;
8181
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8189
hardcode_shlibpath_var=no
8190
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8191
export_dynamic_flag_spec='${wl}-E'
8192
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8193
# Instead, shared libraries are loaded at an image base (0x10000000 by
8194
# default) and relocated if they conflict, which is a slow very memory
8195
# consuming and fragmenting process. To avoid this, we pick a random,
8196
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8197
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8198
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8199
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'
8202
gnu* | linux* | k*bsd*-gnu)
8203
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8205
case $cc_basename,$host_cpu in
8206
pgcc*) # Portland Group C compiler
8207
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'
8208
tmp_addflag=' $pic_flag'
8210
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8211
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'
8212
tmp_addflag=' $pic_flag -Mnomain' ;;
8213
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8214
tmp_addflag=' -i_dynamic' ;;
8215
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8216
tmp_addflag=' -i_dynamic -nofor_main' ;;
8217
ifc* | ifort*) # Intel Fortran compiler
8218
tmp_addflag=' -nofor_main' ;;
8220
case `$CC -V 2>&1 | sed 5q` in
8221
*Sun\ C*) # Sun C 5.9
8222
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'
8223
tmp_sharedflag='-G' ;;
8224
*Sun\ F*) # Sun Fortran 8.3
8225
tmp_sharedflag='-G' ;;
8227
tmp_sharedflag='-shared' ;;
8229
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8231
if test $supports_anon_versioning = yes; then
8232
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8233
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8234
$echo "local: *; };" >> $output_objdir/$libname.ver~
8235
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8243
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8244
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8247
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8248
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8253
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8257
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8258
*** create shared libraries on Solaris systems. Therefore, libtool
8259
*** is disabling shared libraries support. We urge you to upgrade GNU
8260
*** binutils to release 2.9.1 or newer. Another option is to modify
8261
*** your PATH or compiler configuration so that the native linker is
8262
*** used, and then restart.
8265
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8266
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8267
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8273
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8274
case `$LD -v 2>&1` in
8275
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8279
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8280
*** reliably create shared libraries on SCO systems. Therefore, libtool
8281
*** is disabling shared libraries support. We urge you to upgrade GNU
8282
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8283
*** your PATH or compiler configuration so that the native linker is
8284
*** used, and then restart.
8289
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8290
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8291
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8292
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8301
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8304
hardcode_shlibpath_var=no
8308
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8309
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8310
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8317
if test "$ld_shlibs" = no; then
8319
hardcode_libdir_flag_spec=
8320
export_dynamic_flag_spec=
8321
whole_archive_flag_spec=
8324
# PORTME fill in a description of your system's linker (not GNU ld)
8327
allow_undefined_flag=unsupported
8328
always_export_symbols=yes
8329
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'
8330
# Note: this linker hardcodes the directories in LIBPATH if there
8331
# are no directories specified by -L.
8332
hardcode_minus_L=yes
8333
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8334
# Neither direct hardcoding nor static linking is supported with a
8336
hardcode_direct=unsupported
8341
if test "$host_cpu" = ia64; then
8342
# On IA64, the linker does run time linking by default, so we don't
8343
# have to do anything special.
8344
aix_use_runtimelinking=no
8345
exp_sym_flag='-Bexport'
8348
# If we're using GNU nm, then we don't want the "-C" option.
8349
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8350
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8351
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'
8353
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'
8355
aix_use_runtimelinking=no
8357
# Test if we are trying to use run time linking or normal
8358
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8359
# need to do runtime linking.
8360
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8361
for ld_flag in $LDFLAGS; do
8362
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8363
aix_use_runtimelinking=yes
8370
exp_sym_flag='-bexport'
8371
no_entry_flag='-bnoentry'
8374
# When large executables or shared objects are built, AIX ld can
8375
# have problems creating the table of contents. If linking a library
8376
# or program results in "error TOC overflow" add -mminimal-toc to
8377
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8378
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8382
hardcode_libdir_separator=':'
8383
link_all_deplibs=yes
8385
if test "$GCC" = yes; then
8386
case $host_os in aix4.[012]|aix4.[012].*)
8387
# We only want to do this on AIX 4.2 and lower, the check
8388
# below for broken collect2 doesn't work under 4.3+
8389
collect2name=`${CC} -print-prog-name=collect2`
8390
if test -f "$collect2name" && \
8391
strings "$collect2name" | grep resolve_lib_name >/dev/null
8393
# We have reworked collect2
8396
# We have old collect2
8397
hardcode_direct=unsupported
8398
# It fails to find uninstalled libraries when the uninstalled
8399
# path is not listed in the libpath. Setting hardcode_minus_L
8400
# to unsupported forces relinking
8401
hardcode_minus_L=yes
8402
hardcode_libdir_flag_spec='-L$libdir'
8403
hardcode_libdir_separator=
8407
shared_flag='-shared'
8408
if test "$aix_use_runtimelinking" = yes; then
8409
shared_flag="$shared_flag "'${wl}-G'
8413
if test "$host_cpu" = ia64; then
8414
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8415
# chokes on -Wl,-G. The following line is correct:
8418
if test "$aix_use_runtimelinking" = yes; then
8419
shared_flag='${wl}-G'
8421
shared_flag='${wl}-bM:SRE'
8426
# It seems that -bexpall does not export symbols beginning with
8427
# underscore (_), so it is better to generate a list of symbols to export.
8428
always_export_symbols=yes
8429
if test "$aix_use_runtimelinking" = yes; then
8430
# Warning - without using the other runtime loading flags (-brtl),
8431
# -berok will link without error, but may produce a broken library.
8432
allow_undefined_flag='-berok'
8433
# Determine the default libpath from the value encoded in an empty executable.
8434
cat >conftest.$ac_ext <<_ACEOF
8437
cat confdefs.h >>conftest.$ac_ext
8438
cat >>conftest.$ac_ext <<_ACEOF
8439
/* end confdefs.h. */
8449
rm -f conftest.$ac_objext conftest$ac_exeext
8450
if { (ac_try="$ac_link"
8452
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453
*) ac_try_echo=$ac_try;;
8455
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8456
$as_echo "$ac_try_echo") >&5
8457
(eval "$ac_link") 2>conftest.er1
8459
grep -v '^ *+' conftest.er1 >conftest.err
8461
cat conftest.err >&5
8462
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463
(exit $ac_status); } && {
8464
test -z "$ac_c_werror_flag" ||
8465
test ! -s conftest.err
8466
} && test -s conftest$ac_exeext && {
8467
test "$cross_compiling" = yes ||
8468
$as_test_x conftest$ac_exeext
8471
lt_aix_libpath_sed='
8472
/Import File Strings/,/^$/ {
8478
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8479
# Check for a 64-bit object if we didn't find anything.
8480
if test -z "$aix_libpath"; then
8481
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8484
$as_echo "$as_me: failed program was:" >&5
8485
sed 's/^/| /' conftest.$ac_ext >&5
8490
rm -rf conftest.dSYM
8491
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8492
conftest$ac_exeext conftest.$ac_ext
8493
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8495
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8496
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"
8498
if test "$host_cpu" = ia64; then
8499
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8500
allow_undefined_flag="-z nodefs"
8501
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"
8503
# Determine the default libpath from the value encoded in an empty executable.
8504
cat >conftest.$ac_ext <<_ACEOF
8507
cat confdefs.h >>conftest.$ac_ext
8508
cat >>conftest.$ac_ext <<_ACEOF
8509
/* end confdefs.h. */
8519
rm -f conftest.$ac_objext conftest$ac_exeext
8520
if { (ac_try="$ac_link"
8522
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523
*) ac_try_echo=$ac_try;;
8525
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8526
$as_echo "$ac_try_echo") >&5
8527
(eval "$ac_link") 2>conftest.er1
8529
grep -v '^ *+' conftest.er1 >conftest.err
8531
cat conftest.err >&5
8532
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533
(exit $ac_status); } && {
8534
test -z "$ac_c_werror_flag" ||
8535
test ! -s conftest.err
8536
} && test -s conftest$ac_exeext && {
8537
test "$cross_compiling" = yes ||
8538
$as_test_x conftest$ac_exeext
8541
lt_aix_libpath_sed='
8542
/Import File Strings/,/^$/ {
8548
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8549
# Check for a 64-bit object if we didn't find anything.
8550
if test -z "$aix_libpath"; then
8551
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8554
$as_echo "$as_me: failed program was:" >&5
8555
sed 's/^/| /' conftest.$ac_ext >&5
8560
rm -rf conftest.dSYM
8561
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8562
conftest$ac_exeext conftest.$ac_ext
8563
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8565
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8566
# Warning - without using the other run time loading flags,
8567
# -berok will link without error, but may produce a broken library.
8568
no_undefined_flag=' ${wl}-bernotok'
8569
allow_undefined_flag=' ${wl}-berok'
8570
# Exported symbols can be pulled into shared objects from archives
8571
whole_archive_flag_spec='$convenience'
8572
archive_cmds_need_lc=yes
8573
# This is similar to how AIX traditionally builds its shared libraries.
8574
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'
8580
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)'
8581
hardcode_libdir_flag_spec='-L$libdir'
8582
hardcode_minus_L=yes
8583
# see comment about different semantics on the GNU ld section
8588
export_dynamic_flag_spec=-rdynamic
8591
cygwin* | mingw* | pw32*)
8592
# When not using gcc, we currently assume that we are using
8593
# Microsoft Visual C++.
8594
# hardcode_libdir_flag_spec is actually meaningless, as there is
8595
# no search path for DLLs.
8596
hardcode_libdir_flag_spec=' '
8597
allow_undefined_flag=unsupported
8598
# Tell ltmain to make .lib files, not .a files.
8600
# Tell ltmain to make .dll files, not .so files.
8602
# FIXME: Setting linknames here is a bad hack.
8603
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8604
# The linker will automatically build a .lib file if we build a DLL.
8605
old_archive_From_new_cmds='true'
8606
# FIXME: Should let the user specify the lib program.
8607
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8608
fix_srcfile_path='`cygpath -w "$srcfile"`'
8609
enable_shared_with_static_runtimes=yes
8612
darwin* | rhapsody*)
8614
rhapsody* | darwin1.[012])
8615
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8618
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8619
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8621
case ${MACOSX_DEPLOYMENT_TARGET} in
8623
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8626
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8632
archive_cmds_need_lc=no
8634
hardcode_automatic=yes
8635
hardcode_shlibpath_var=unsupported
8636
whole_archive_flag_spec=''
8637
link_all_deplibs=yes
8638
if test "$GCC" = yes ; then
8639
output_verbose_link_cmd='echo'
8640
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8641
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8642
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}"
8643
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}"
8645
case $cc_basename in
8647
output_verbose_link_cmd='echo'
8648
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8649
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8650
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8651
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}'
8652
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}'
8662
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8663
hardcode_libdir_flag_spec='-L$libdir'
8664
hardcode_shlibpath_var=no
8671
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8672
# support. Future versions do this automatically, but an explicit c++rt0.o
8673
# does not break anything, and helps significantly (at the cost of a little
8676
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8677
hardcode_libdir_flag_spec='-R$libdir'
8679
hardcode_shlibpath_var=no
8682
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8684
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8686
hardcode_minus_L=yes
8687
hardcode_shlibpath_var=no
8690
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8691
freebsd* | dragonfly*)
8692
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8693
hardcode_libdir_flag_spec='-R$libdir'
8695
hardcode_shlibpath_var=no
8699
if test "$GCC" = yes; then
8700
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'
8702
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'
8704
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8705
hardcode_libdir_separator=:
8708
# hardcode_minus_L: Not really in the search PATH,
8709
# but as the default location of the library.
8710
hardcode_minus_L=yes
8711
export_dynamic_flag_spec='${wl}-E'
8715
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8716
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8718
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8720
if test "$with_gnu_ld" = no; then
8721
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8722
hardcode_libdir_separator=:
8725
export_dynamic_flag_spec='${wl}-E'
8727
# hardcode_minus_L: Not really in the search PATH,
8728
# but as the default location of the library.
8729
hardcode_minus_L=yes
8734
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8737
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8740
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8743
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8749
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8752
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8755
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8759
if test "$with_gnu_ld" = no; then
8760
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8761
hardcode_libdir_separator=:
8765
hardcode_libdir_flag_spec_ld='+b $libdir'
8767
hardcode_shlibpath_var=no
8771
export_dynamic_flag_spec='${wl}-E'
8773
# hardcode_minus_L: Not really in the search PATH,
8774
# but as the default location of the library.
8775
hardcode_minus_L=yes
8781
irix5* | irix6* | nonstopux*)
8782
if test "$GCC" = yes; then
8783
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'
8785
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'
8786
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8788
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8789
hardcode_libdir_separator=:
8790
link_all_deplibs=yes
8794
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8795
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8797
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8799
hardcode_libdir_flag_spec='-R$libdir'
8801
hardcode_shlibpath_var=no
8805
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8807
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8808
hardcode_libdir_separator=:
8809
hardcode_shlibpath_var=no
8813
if test -f /usr/libexec/ld.so; then
8815
hardcode_shlibpath_var=no
8816
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8817
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8818
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8819
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8820
export_dynamic_flag_spec='${wl}-E'
8823
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8824
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8825
hardcode_libdir_flag_spec='-R$libdir'
8828
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8829
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8839
hardcode_libdir_flag_spec='-L$libdir'
8840
hardcode_minus_L=yes
8841
allow_undefined_flag=unsupported
8842
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'
8843
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8847
if test "$GCC" = yes; then
8848
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8849
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'
8851
allow_undefined_flag=' -expect_unresolved \*'
8852
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'
8854
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8855
hardcode_libdir_separator=:
8858
osf4* | osf5*) # as osf3* with the addition of -msym flag
8859
if test "$GCC" = yes; then
8860
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8861
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'
8862
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8864
allow_undefined_flag=' -expect_unresolved \*'
8865
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'
8866
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8867
$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'
8869
# Both c and cxx compiler support -rpath directly
8870
hardcode_libdir_flag_spec='-rpath $libdir'
8872
hardcode_libdir_separator=:
8876
no_undefined_flag=' -z text'
8877
if test "$GCC" = yes; then
8879
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8880
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8881
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8884
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8885
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8886
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8888
hardcode_libdir_flag_spec='-R$libdir'
8889
hardcode_shlibpath_var=no
8891
solaris2.[0-5] | solaris2.[0-5].*) ;;
8893
# The compiler driver will combine and reorder linker options,
8894
# but understands `-z linker_flag'. GCC discards it without `$wl',
8895
# but is careful enough not to reorder.
8896
# Supported since Solaris 2.6 (maybe 2.5.1?)
8897
if test "$GCC" = yes; then
8898
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8900
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8904
link_all_deplibs=yes
8908
if test "x$host_vendor" = xsequent; then
8909
# Use $CC to link under sequent, because it throws in some extra .o
8910
# files that make .init and .fini sections work.
8911
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8913
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8915
hardcode_libdir_flag_spec='-L$libdir'
8917
hardcode_minus_L=yes
8918
hardcode_shlibpath_var=no
8922
case $host_vendor in
8924
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8925
hardcode_direct=yes # is this really true???
8928
## LD is ld it makes a PLAMLIB
8929
## CC just makes a GrossModule.
8930
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8931
reload_cmds='$CC -r -o $output$reload_objs'
8935
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8936
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8939
runpath_var='LD_RUN_PATH'
8940
hardcode_shlibpath_var=no
8944
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8945
hardcode_shlibpath_var=no
8946
export_dynamic_flag_spec='-Bexport'
8950
if test -d /usr/nec; then
8951
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8952
hardcode_shlibpath_var=no
8953
runpath_var=LD_RUN_PATH
8954
hardcode_runpath_var=yes
8959
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8960
no_undefined_flag='${wl}-z,text'
8961
archive_cmds_need_lc=no
8962
hardcode_shlibpath_var=no
8963
runpath_var='LD_RUN_PATH'
8965
if test "$GCC" = yes; then
8966
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8967
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8969
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8970
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8974
sysv5* | sco3.2v5* | sco5v6*)
8975
# Note: We can NOT use -z defs as we might desire, because we do not
8976
# link with -lc, and that would cause any symbols used from libc to
8977
# always be unresolved, which means just about no library would
8978
# ever link correctly. If we're not using GNU ld we use -z text
8979
# though, which does catch some bad symbols but isn't as heavy-handed
8981
no_undefined_flag='${wl}-z,text'
8982
allow_undefined_flag='${wl}-z,nodefs'
8983
archive_cmds_need_lc=no
8984
hardcode_shlibpath_var=no
8985
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8986
hardcode_libdir_separator=':'
8987
link_all_deplibs=yes
8988
export_dynamic_flag_spec='${wl}-Bexport'
8989
runpath_var='LD_RUN_PATH'
8991
if test "$GCC" = yes; then
8992
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8993
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8995
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8996
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9001
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9002
hardcode_libdir_flag_spec='-L$libdir'
9003
hardcode_shlibpath_var=no
9012
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9013
$as_echo "$ld_shlibs" >&6; }
9014
test "$ld_shlibs" = no && can_build_shared=no
9017
# Do we need to explicitly link libc?
9019
case "x$archive_cmds_need_lc" in
9021
# Assume -lc should be added
9022
archive_cmds_need_lc=yes
9024
if test "$enable_shared" = yes && test "$GCC" = yes; then
9025
case $archive_cmds in
9027
# FIXME: we may have to deal with multi-command sequences.
9030
# Test whether the compiler implicitly links with -lc since on some
9031
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9032
# to ld, don't add -lc before -lgcc.
9033
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9034
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9036
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9038
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9039
(eval $ac_compile) 2>&5
9041
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042
(exit $ac_status); } 2>conftest.err; then
9045
libobjs=conftest.$ac_objext
9047
wl=$lt_prog_compiler_wl
9048
pic_flag=$lt_prog_compiler_pic
9054
lt_save_allow_undefined_flag=$allow_undefined_flag
9055
allow_undefined_flag=
9056
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9057
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9059
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060
(exit $ac_status); }
9062
archive_cmds_need_lc=no
9064
archive_cmds_need_lc=yes
9066
allow_undefined_flag=$lt_save_allow_undefined_flag
9068
cat conftest.err 1>&5
9071
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9072
$as_echo "$archive_cmds_need_lc" >&6; }
9079
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9080
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9082
libname_spec='lib$name'
9090
shlibpath_overrides_runpath=unknown
9092
dynamic_linker="$host_os ld.so"
9093
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9095
if test "$GCC" = yes; then
9097
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9098
*) lt_awk_arg="/^libraries:/" ;;
9100
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9101
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9102
# if the path contains ";" then we assume it to be the separator
9103
# otherwise default to the standard path separator (i.e. ":") - it is
9104
# assumed that no part of a normal pathname contains ";" but that should
9105
# okay in the real world where ";" in dirpaths is itself problematic.
9106
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9108
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9110
# Ok, now we have the path, separated by spaces, we can step through it
9111
# and add multilib dir if necessary.
9112
lt_tmp_lt_search_path_spec=
9113
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9114
for lt_sys_path in $lt_search_path_spec; do
9115
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9116
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9118
test -d "$lt_sys_path" && \
9119
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9122
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9123
BEGIN {RS=" "; FS="/|\n";} {
9126
for (lt_i = NF; lt_i > 0; lt_i--) {
9127
if ($lt_i != "" && $lt_i != ".") {
9128
if ($lt_i == "..") {
9131
if (lt_count == 0) {
9132
lt_foo="/" $lt_i lt_foo;
9139
if (lt_foo != "") { lt_freq[lt_foo]++; }
9140
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9142
sys_lib_search_path_spec=`echo $lt_search_path_spec`
9144
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9146
need_lib_prefix=unknown
9147
hardcode_into_libs=no
9149
# when you set need_version to no, make sure it does not cause -set_version
9150
# flags to be left without arguments
9151
need_version=unknown
9156
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9157
shlibpath_var=LIBPATH
9159
# AIX 3 has no versioning support, so we append a major version to the name.
9160
soname_spec='${libname}${release}${shared_ext}$major'
9167
hardcode_into_libs=yes
9168
if test "$host_cpu" = ia64; then
9169
# AIX 5 supports IA64
9170
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9171
shlibpath_var=LD_LIBRARY_PATH
9173
# With GCC up to 2.95.x, collect2 would create an import file
9174
# for dependence libraries. The import file would start with
9175
# the line `#! .'. This would cause the generated library to
9176
# depend on `.', always an invalid library. This was fixed in
9177
# development snapshots of GCC prior to 3.0.
9179
aix4 | aix4.[01] | aix4.[01].*)
9180
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9182
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9189
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9190
# soname into executable. Probably we can add versioning support to
9191
# collect2, so additional links can be useful in future.
9192
if test "$aix_use_runtimelinking" = yes; then
9193
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9194
# instead of lib<name>.a to let people know that these are not
9195
# typical AIX shared libraries.
9196
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198
# We preserve .a as extension for shared libraries through AIX4.2
9199
# and later when we are not doing run time linking.
9200
library_names_spec='${libname}${release}.a $libname.a'
9201
soname_spec='${libname}${release}${shared_ext}$major'
9203
shlibpath_var=LIBPATH
9208
library_names_spec='$libname.ixlibrary $libname.a'
9209
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9210
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'
9214
library_names_spec='${libname}${shared_ext}'
9215
dynamic_linker="$host_os ld.so"
9216
shlibpath_var=LIBRARY_PATH
9222
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9223
soname_spec='${libname}${release}${shared_ext}$major'
9224
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9225
shlibpath_var=LD_LIBRARY_PATH
9226
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9227
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9228
# the default ld.so.conf also contains /usr/contrib/lib and
9229
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9230
# libtool to hard-code these into programs
9233
cygwin* | mingw* | pw32*)
9234
version_type=windows
9239
case $GCC,$host_os in
9240
yes,cygwin* | yes,mingw* | yes,pw32*)
9241
library_names_spec='$libname.dll.a'
9242
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9243
postinstall_cmds='base_file=`basename \${file}`~
9244
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9245
dldir=$destdir/`dirname \$dlpath`~
9246
test -d \$dldir || mkdir -p \$dldir~
9247
$install_prog $dir/$dlname \$dldir/$dlname~
9248
chmod a+x \$dldir/$dlname'
9249
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9250
dlpath=$dir/\$dldll~
9252
shlibpath_overrides_runpath=yes
9256
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9257
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9258
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9261
# MinGW DLLs use traditional 'lib' prefix
9262
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9263
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9264
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9265
# It is most probably a Windows format PATH printed by
9266
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9267
# path with ; separators, and with drive letters. We can handle the
9268
# drive letters (cygwin fileutils understands them), so leave them,
9269
# especially as we might pass files found there to a mingw objdump,
9270
# which wouldn't understand a cygwinified path. Ahh.
9271
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9273
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9277
# pw32 DLLs use 'pw' prefix rather than 'lib'
9278
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9284
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9287
dynamic_linker='Win32 ld.exe'
9288
# FIXME: first we should search . and the directory the executable is in
9292
darwin* | rhapsody*)
9293
dynamic_linker="$host_os dyld"
9297
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9298
soname_spec='${libname}${release}${major}$shared_ext'
9299
shlibpath_overrides_runpath=yes
9300
shlibpath_var=DYLD_LIBRARY_PATH
9301
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9303
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9304
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9311
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9312
soname_spec='${libname}${release}${shared_ext}$major'
9313
shlibpath_var=LD_LIBRARY_PATH
9320
freebsd* | dragonfly*)
9321
# DragonFly does not have aout. When/if they implement a new
9322
# versioning mechanism, adjust this.
9323
if test -x /usr/bin/objformat; then
9324
objformat=`/usr/bin/objformat`
9327
freebsd[123]*) objformat=aout ;;
9331
version_type=freebsd-$objformat
9332
case $version_type in
9334
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9339
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9343
shlibpath_var=LD_LIBRARY_PATH
9346
shlibpath_overrides_runpath=yes
9348
freebsd3.[01]* | freebsdelf3.[01]*)
9349
shlibpath_overrides_runpath=yes
9350
hardcode_into_libs=yes
9352
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9353
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9354
shlibpath_overrides_runpath=no
9355
hardcode_into_libs=yes
9357
*) # from 4.6 on, and DragonFly
9358
shlibpath_overrides_runpath=yes
9359
hardcode_into_libs=yes
9368
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9369
soname_spec='${libname}${release}${shared_ext}$major'
9370
shlibpath_var=LD_LIBRARY_PATH
9371
hardcode_into_libs=yes
9374
hpux9* | hpux10* | hpux11*)
9375
# Give a soname corresponding to the major version so that dld.sl refuses to
9376
# link against other versions.
9383
hardcode_into_libs=yes
9384
dynamic_linker="$host_os dld.so"
9385
shlibpath_var=LD_LIBRARY_PATH
9386
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9387
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9388
soname_spec='${libname}${release}${shared_ext}$major'
9389
if test "X$HPUX_IA64_MODE" = X32; then
9390
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9392
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9394
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9398
hardcode_into_libs=yes
9399
dynamic_linker="$host_os dld.sl"
9400
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9401
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9402
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9403
soname_spec='${libname}${release}${shared_ext}$major'
9404
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9405
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9409
dynamic_linker="$host_os dld.sl"
9410
shlibpath_var=SHLIB_PATH
9411
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9412
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9413
soname_spec='${libname}${release}${shared_ext}$major'
9416
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9417
postinstall_cmds='chmod 555 $lib'
9424
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9425
soname_spec='${libname}${release}${shared_ext}$major'
9426
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9427
shlibpath_var=LD_LIBRARY_PATH
9428
shlibpath_overrides_runpath=no
9429
hardcode_into_libs=yes
9432
irix5* | irix6* | nonstopux*)
9434
nonstopux*) version_type=nonstopux ;;
9436
if test "$lt_cv_prog_gnu_ld" = yes; then
9444
soname_spec='${libname}${release}${shared_ext}$major'
9445
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9447
irix5* | nonstopux*)
9451
case $LD in # libtool.m4 will add one of these switches to LD
9452
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9453
libsuff= shlibsuff= libmagic=32-bit;;
9454
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9455
libsuff=32 shlibsuff=N32 libmagic=N32;;
9456
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9457
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9458
*) libsuff= shlibsuff= libmagic=never-match;;
9462
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9463
shlibpath_overrides_runpath=no
9464
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9465
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9466
hardcode_into_libs=yes
9469
# No shared lib support for Linux oldld, aout, or coff.
9470
linux*oldld* | linux*aout* | linux*coff*)
9474
# This must be Linux ELF.
9475
linux* | k*bsd*-gnu)
9479
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9480
soname_spec='${libname}${release}${shared_ext}$major'
9481
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9482
shlibpath_var=LD_LIBRARY_PATH
9483
shlibpath_overrides_runpath=no
9484
# This implies no fast_install, which is unacceptable.
9485
# Some rework will be needed to allow for fast_install
9486
# before this can be enabled.
9487
hardcode_into_libs=yes
9488
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9489
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9491
# Append ld.so.conf contents to the search path
9492
if test -f /etc/ld.so.conf; then
9493
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' ' '`
9494
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9497
# We used to test for /lib/ld.so.1 and disable shared libraries on
9498
# powerpc, because MkLinux only supported shared libraries with the
9499
# GNU dynamic linker. Since this was broken with cross compilers,
9500
# most powerpc-linux boxes support dynamic linking these days and
9501
# people can always --disable-shared, the test was removed, and we
9502
# assume the GNU/Linux dynamic linker is in use.
9503
dynamic_linker='GNU/Linux ld.so'
9510
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9511
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9512
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9513
dynamic_linker='NetBSD (a.out) ld.so'
9515
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9516
soname_spec='${libname}${release}${shared_ext}$major'
9517
dynamic_linker='NetBSD ld.elf_so'
9519
shlibpath_var=LD_LIBRARY_PATH
9520
shlibpath_overrides_runpath=yes
9521
hardcode_into_libs=yes
9526
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527
shlibpath_var=LD_LIBRARY_PATH
9528
shlibpath_overrides_runpath=yes
9535
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9536
soname_spec='${libname}${release}${shared_ext}$major'
9537
shlibpath_var=LD_LIBRARY_PATH
9538
shlibpath_overrides_runpath=yes
9543
sys_lib_dlsearch_path_spec="/usr/lib"
9545
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9547
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9548
*) need_version=no ;;
9550
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9551
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9552
shlibpath_var=LD_LIBRARY_PATH
9553
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9555
openbsd2.[89] | openbsd2.[89].*)
9556
shlibpath_overrides_runpath=no
9559
shlibpath_overrides_runpath=yes
9563
shlibpath_overrides_runpath=yes
9568
libname_spec='$name'
9571
library_names_spec='$libname${shared_ext} $libname.a'
9572
dynamic_linker='OS/2 ld.exe'
9573
shlibpath_var=LIBPATH
9576
osf3* | osf4* | osf5*)
9580
soname_spec='${libname}${release}${shared_ext}$major'
9581
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9582
shlibpath_var=LD_LIBRARY_PATH
9583
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9584
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9595
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596
soname_spec='${libname}${release}${shared_ext}$major'
9597
shlibpath_var=LD_LIBRARY_PATH
9598
shlibpath_overrides_runpath=yes
9599
hardcode_into_libs=yes
9600
# ldd complains unless libraries are executable
9601
postinstall_cmds='chmod +x $lib'
9606
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9607
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9608
shlibpath_var=LD_LIBRARY_PATH
9609
shlibpath_overrides_runpath=yes
9610
if test "$with_gnu_ld" = yes; then
9618
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9619
soname_spec='${libname}${release}${shared_ext}$major'
9620
shlibpath_var=LD_LIBRARY_PATH
9621
case $host_vendor in
9623
shlibpath_overrides_runpath=no
9625
export_dynamic_flag_spec='${wl}-Blargedynsym'
9626
runpath_var=LD_RUN_PATH
9634
shlibpath_overrides_runpath=no
9635
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9641
if test -d /usr/nec ;then
9643
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9644
soname_spec='$libname${shared_ext}.$major'
9645
shlibpath_var=LD_LIBRARY_PATH
9649
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9650
version_type=freebsd-elf
9653
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9654
soname_spec='${libname}${release}${shared_ext}$major'
9655
shlibpath_var=LD_LIBRARY_PATH
9656
hardcode_into_libs=yes
9657
if test "$with_gnu_ld" = yes; then
9658
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9659
shlibpath_overrides_runpath=no
9661
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9662
shlibpath_overrides_runpath=yes
9665
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9669
sys_lib_dlsearch_path_spec='/usr/lib'
9674
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675
soname_spec='${libname}${release}${shared_ext}$major'
9676
shlibpath_var=LD_LIBRARY_PATH
9683
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9684
$as_echo "$dynamic_linker" >&6; }
9685
test "$dynamic_linker" = no && can_build_shared=no
9687
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9688
$as_echo_n "(cached) " >&6
9690
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9693
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9694
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9695
$as_echo_n "(cached) " >&6
9697
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9700
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9702
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9703
if test "$GCC" = yes; then
9704
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9707
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9708
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9710
if test -n "$hardcode_libdir_flag_spec" || \
9711
test -n "$runpath_var" || \
9712
test "X$hardcode_automatic" = "Xyes" ; then
9714
# We can hardcode non-existant directories.
9715
if test "$hardcode_direct" != no &&
9716
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9717
# have to relink, otherwise we might link with an installed library
9718
# when we should be linking with a yet-to-be-installed one
9719
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9720
test "$hardcode_minus_L" != no; then
9721
# Linking always hardcodes the temporary library directory.
9722
hardcode_action=relink
9724
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9725
hardcode_action=immediate
9728
# We cannot hardcode anything, or else we can only hardcode existing
9730
hardcode_action=unsupported
9732
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9733
$as_echo "$hardcode_action" >&6; }
9735
if test "$hardcode_action" = relink; then
9736
# Fast installation is not supported
9737
enable_fast_install=no
9738
elif test "$shlibpath_overrides_runpath" = yes ||
9739
test "$enable_shared" = no; then
9740
# Fast installation is not necessary
9741
enable_fast_install=needless
9746
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9747
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9748
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9749
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9750
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9751
{ $as_echo "$as_me:$LINENO: result: yes" >&5
9752
$as_echo "yes" >&6; }
9754
# FIXME - insert some real tests, host_os isn't really good enough
9757
if test -n "$STRIP" ; then
9758
striplib="$STRIP -x"
9759
old_striplib="$STRIP -S"
9760
{ $as_echo "$as_me:$LINENO: result: yes" >&5
9761
$as_echo "yes" >&6; }
9763
{ $as_echo "$as_me:$LINENO: result: no" >&5
9764
$as_echo "no" >&6; }
9768
{ $as_echo "$as_me:$LINENO: result: no" >&5
9769
$as_echo "no" >&6; }
9774
if test "x$enable_dlopen" != xyes; then
9775
enable_dlopen=unknown
9776
enable_dlopen_self=unknown
9777
enable_dlopen_self_static=unknown
9784
lt_cv_dlopen="load_add_on"
9786
lt_cv_dlopen_self=yes
9790
lt_cv_dlopen="LoadLibrary"
9795
lt_cv_dlopen="dlopen"
9800
# if libdl is installed we need to link against it
9801
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9802
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9803
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9804
$as_echo_n "(cached) " >&6
9806
ac_check_lib_save_LIBS=$LIBS
9808
cat >conftest.$ac_ext <<_ACEOF
9811
cat confdefs.h >>conftest.$ac_ext
9812
cat >>conftest.$ac_ext <<_ACEOF
9813
/* end confdefs.h. */
9815
/* Override any GCC internal prototype to avoid an error.
9816
Use char because int might match the return type of a GCC
9817
builtin and then its argument prototype would still apply. */
9830
rm -f conftest.$ac_objext conftest$ac_exeext
9831
if { (ac_try="$ac_link"
9833
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834
*) ac_try_echo=$ac_try;;
9836
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9837
$as_echo "$ac_try_echo") >&5
9838
(eval "$ac_link") 2>conftest.er1
9840
grep -v '^ *+' conftest.er1 >conftest.err
9842
cat conftest.err >&5
9843
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844
(exit $ac_status); } && {
9845
test -z "$ac_c_werror_flag" ||
9846
test ! -s conftest.err
9847
} && test -s conftest$ac_exeext && {
9848
test "$cross_compiling" = yes ||
9849
$as_test_x conftest$ac_exeext
9851
ac_cv_lib_dl_dlopen=yes
9853
$as_echo "$as_me: failed program was:" >&5
9854
sed 's/^/| /' conftest.$ac_ext >&5
9856
ac_cv_lib_dl_dlopen=no
9859
rm -rf conftest.dSYM
9860
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9861
conftest$ac_exeext conftest.$ac_ext
9862
LIBS=$ac_check_lib_save_LIBS
9864
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9865
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9866
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9867
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9872
lt_cv_dlopen_self=yes
9879
{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9880
$as_echo_n "checking for shl_load... " >&6; }
9881
if test "${ac_cv_func_shl_load+set}" = set; then
9882
$as_echo_n "(cached) " >&6
9884
cat >conftest.$ac_ext <<_ACEOF
9887
cat confdefs.h >>conftest.$ac_ext
9888
cat >>conftest.$ac_ext <<_ACEOF
9889
/* end confdefs.h. */
9890
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9891
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9892
#define shl_load innocuous_shl_load
9894
/* System header to define __stub macros and hopefully few prototypes,
9895
which can conflict with char shl_load (); below.
9896
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9897
<limits.h> exists even on freestanding compilers. */
9900
# include <limits.h>
9902
# include <assert.h>
9907
/* Override any GCC internal prototype to avoid an error.
9908
Use char because int might match the return type of a GCC
9909
builtin and then its argument prototype would still apply. */
9914
/* The GNU C library defines this for functions which it implements
9915
to always fail with ENOSYS. Some functions are actually named
9916
something starting with __ and the normal name is an alias. */
9917
#if defined __stub_shl_load || defined __stub___shl_load
9929
rm -f conftest.$ac_objext conftest$ac_exeext
9930
if { (ac_try="$ac_link"
9932
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933
*) ac_try_echo=$ac_try;;
9935
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9936
$as_echo "$ac_try_echo") >&5
9937
(eval "$ac_link") 2>conftest.er1
9939
grep -v '^ *+' conftest.er1 >conftest.err
9941
cat conftest.err >&5
9942
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943
(exit $ac_status); } && {
9944
test -z "$ac_c_werror_flag" ||
9945
test ! -s conftest.err
9946
} && test -s conftest$ac_exeext && {
9947
test "$cross_compiling" = yes ||
9948
$as_test_x conftest$ac_exeext
9950
ac_cv_func_shl_load=yes
9952
$as_echo "$as_me: failed program was:" >&5
9953
sed 's/^/| /' conftest.$ac_ext >&5
9955
ac_cv_func_shl_load=no
9958
rm -rf conftest.dSYM
9959
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9960
conftest$ac_exeext conftest.$ac_ext
9962
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9963
$as_echo "$ac_cv_func_shl_load" >&6; }
9964
if test "x$ac_cv_func_shl_load" = x""yes; then
9965
lt_cv_dlopen="shl_load"
9967
{ $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9968
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9969
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9970
$as_echo_n "(cached) " >&6
9972
ac_check_lib_save_LIBS=$LIBS
9974
cat >conftest.$ac_ext <<_ACEOF
9977
cat confdefs.h >>conftest.$ac_ext
9978
cat >>conftest.$ac_ext <<_ACEOF
9979
/* end confdefs.h. */
9981
/* Override any GCC internal prototype to avoid an error.
9982
Use char because int might match the return type of a GCC
9983
builtin and then its argument prototype would still apply. */
9996
rm -f conftest.$ac_objext conftest$ac_exeext
9997
if { (ac_try="$ac_link"
9999
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000
*) ac_try_echo=$ac_try;;
10002
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10003
$as_echo "$ac_try_echo") >&5
10004
(eval "$ac_link") 2>conftest.er1
10006
grep -v '^ *+' conftest.er1 >conftest.err
10008
cat conftest.err >&5
10009
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010
(exit $ac_status); } && {
10011
test -z "$ac_c_werror_flag" ||
10012
test ! -s conftest.err
10013
} && test -s conftest$ac_exeext && {
10014
test "$cross_compiling" = yes ||
10015
$as_test_x conftest$ac_exeext
10017
ac_cv_lib_dld_shl_load=yes
10019
$as_echo "$as_me: failed program was:" >&5
10020
sed 's/^/| /' conftest.$ac_ext >&5
10022
ac_cv_lib_dld_shl_load=no
10025
rm -rf conftest.dSYM
10026
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10027
conftest$ac_exeext conftest.$ac_ext
10028
LIBS=$ac_check_lib_save_LIBS
10030
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10031
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10032
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10033
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10035
{ $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10036
$as_echo_n "checking for dlopen... " >&6; }
10037
if test "${ac_cv_func_dlopen+set}" = set; then
10038
$as_echo_n "(cached) " >&6
10040
cat >conftest.$ac_ext <<_ACEOF
10043
cat confdefs.h >>conftest.$ac_ext
10044
cat >>conftest.$ac_ext <<_ACEOF
10045
/* end confdefs.h. */
10046
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10047
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10048
#define dlopen innocuous_dlopen
10050
/* System header to define __stub macros and hopefully few prototypes,
10051
which can conflict with char dlopen (); below.
10052
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10053
<limits.h> exists even on freestanding compilers. */
10056
# include <limits.h>
10058
# include <assert.h>
10063
/* Override any GCC internal prototype to avoid an error.
10064
Use char because int might match the return type of a GCC
10065
builtin and then its argument prototype would still apply. */
10070
/* The GNU C library defines this for functions which it implements
10071
to always fail with ENOSYS. Some functions are actually named
10072
something starting with __ and the normal name is an alias. */
10073
#if defined __stub_dlopen || defined __stub___dlopen
10085
rm -f conftest.$ac_objext conftest$ac_exeext
10086
if { (ac_try="$ac_link"
10087
case "(($ac_try" in
10088
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089
*) ac_try_echo=$ac_try;;
10091
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10092
$as_echo "$ac_try_echo") >&5
10093
(eval "$ac_link") 2>conftest.er1
10095
grep -v '^ *+' conftest.er1 >conftest.err
10097
cat conftest.err >&5
10098
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099
(exit $ac_status); } && {
10100
test -z "$ac_c_werror_flag" ||
10101
test ! -s conftest.err
10102
} && test -s conftest$ac_exeext && {
10103
test "$cross_compiling" = yes ||
10104
$as_test_x conftest$ac_exeext
10106
ac_cv_func_dlopen=yes
10108
$as_echo "$as_me: failed program was:" >&5
10109
sed 's/^/| /' conftest.$ac_ext >&5
10111
ac_cv_func_dlopen=no
10114
rm -rf conftest.dSYM
10115
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10116
conftest$ac_exeext conftest.$ac_ext
10118
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10119
$as_echo "$ac_cv_func_dlopen" >&6; }
10120
if test "x$ac_cv_func_dlopen" = x""yes; then
10121
lt_cv_dlopen="dlopen"
10123
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10124
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10125
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10126
$as_echo_n "(cached) " >&6
10128
ac_check_lib_save_LIBS=$LIBS
10130
cat >conftest.$ac_ext <<_ACEOF
10133
cat confdefs.h >>conftest.$ac_ext
10134
cat >>conftest.$ac_ext <<_ACEOF
10135
/* end confdefs.h. */
10137
/* Override any GCC internal prototype to avoid an error.
10138
Use char because int might match the return type of a GCC
10139
builtin and then its argument prototype would still apply. */
10152
rm -f conftest.$ac_objext conftest$ac_exeext
10153
if { (ac_try="$ac_link"
10154
case "(($ac_try" in
10155
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156
*) ac_try_echo=$ac_try;;
10158
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10159
$as_echo "$ac_try_echo") >&5
10160
(eval "$ac_link") 2>conftest.er1
10162
grep -v '^ *+' conftest.er1 >conftest.err
10164
cat conftest.err >&5
10165
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166
(exit $ac_status); } && {
10167
test -z "$ac_c_werror_flag" ||
10168
test ! -s conftest.err
10169
} && test -s conftest$ac_exeext && {
10170
test "$cross_compiling" = yes ||
10171
$as_test_x conftest$ac_exeext
10173
ac_cv_lib_dl_dlopen=yes
10175
$as_echo "$as_me: failed program was:" >&5
10176
sed 's/^/| /' conftest.$ac_ext >&5
10178
ac_cv_lib_dl_dlopen=no
10181
rm -rf conftest.dSYM
10182
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10183
conftest$ac_exeext conftest.$ac_ext
10184
LIBS=$ac_check_lib_save_LIBS
10186
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10187
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10188
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10189
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10191
{ $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10192
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10193
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10194
$as_echo_n "(cached) " >&6
10196
ac_check_lib_save_LIBS=$LIBS
10197
LIBS="-lsvld $LIBS"
10198
cat >conftest.$ac_ext <<_ACEOF
10201
cat confdefs.h >>conftest.$ac_ext
10202
cat >>conftest.$ac_ext <<_ACEOF
10203
/* end confdefs.h. */
10205
/* Override any GCC internal prototype to avoid an error.
10206
Use char because int might match the return type of a GCC
10207
builtin and then its argument prototype would still apply. */
10220
rm -f conftest.$ac_objext conftest$ac_exeext
10221
if { (ac_try="$ac_link"
10222
case "(($ac_try" in
10223
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224
*) ac_try_echo=$ac_try;;
10226
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10227
$as_echo "$ac_try_echo") >&5
10228
(eval "$ac_link") 2>conftest.er1
10230
grep -v '^ *+' conftest.er1 >conftest.err
10232
cat conftest.err >&5
10233
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234
(exit $ac_status); } && {
10235
test -z "$ac_c_werror_flag" ||
10236
test ! -s conftest.err
10237
} && test -s conftest$ac_exeext && {
10238
test "$cross_compiling" = yes ||
10239
$as_test_x conftest$ac_exeext
10241
ac_cv_lib_svld_dlopen=yes
10243
$as_echo "$as_me: failed program was:" >&5
10244
sed 's/^/| /' conftest.$ac_ext >&5
10246
ac_cv_lib_svld_dlopen=no
10249
rm -rf conftest.dSYM
10250
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10251
conftest$ac_exeext conftest.$ac_ext
10252
LIBS=$ac_check_lib_save_LIBS
10254
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10255
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10256
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10257
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10259
{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10260
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10261
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10262
$as_echo_n "(cached) " >&6
10264
ac_check_lib_save_LIBS=$LIBS
10266
cat >conftest.$ac_ext <<_ACEOF
10269
cat confdefs.h >>conftest.$ac_ext
10270
cat >>conftest.$ac_ext <<_ACEOF
10271
/* end confdefs.h. */
10273
/* Override any GCC internal prototype to avoid an error.
10274
Use char because int might match the return type of a GCC
10275
builtin and then its argument prototype would still apply. */
10283
return dld_link ();
10288
rm -f conftest.$ac_objext conftest$ac_exeext
10289
if { (ac_try="$ac_link"
10290
case "(($ac_try" in
10291
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292
*) ac_try_echo=$ac_try;;
10294
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10295
$as_echo "$ac_try_echo") >&5
10296
(eval "$ac_link") 2>conftest.er1
10298
grep -v '^ *+' conftest.er1 >conftest.err
10300
cat conftest.err >&5
10301
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302
(exit $ac_status); } && {
10303
test -z "$ac_c_werror_flag" ||
10304
test ! -s conftest.err
10305
} && test -s conftest$ac_exeext && {
10306
test "$cross_compiling" = yes ||
10307
$as_test_x conftest$ac_exeext
10309
ac_cv_lib_dld_dld_link=yes
10311
$as_echo "$as_me: failed program was:" >&5
10312
sed 's/^/| /' conftest.$ac_ext >&5
10314
ac_cv_lib_dld_dld_link=no
10317
rm -rf conftest.dSYM
10318
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10319
conftest$ac_exeext conftest.$ac_ext
10320
LIBS=$ac_check_lib_save_LIBS
10322
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10323
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10324
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10325
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10346
if test "x$lt_cv_dlopen" != xno; then
10352
case $lt_cv_dlopen in
10354
save_CPPFLAGS="$CPPFLAGS"
10355
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10357
save_LDFLAGS="$LDFLAGS"
10358
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10361
LIBS="$lt_cv_dlopen_libs $LIBS"
10363
{ $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10364
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10365
if test "${lt_cv_dlopen_self+set}" = set; then
10366
$as_echo_n "(cached) " >&6
10368
if test "$cross_compiling" = yes; then :
10369
lt_cv_dlopen_self=cross
10371
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10372
lt_status=$lt_dlunknown
10373
cat > conftest.$ac_ext <<EOF
10374
#line 10374 "configure"
10375
#include "confdefs.h"
10384
# define LT_DLGLOBAL RTLD_GLOBAL
10387
# define LT_DLGLOBAL DL_GLOBAL
10389
# define LT_DLGLOBAL 0
10393
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10394
find out it does not work in some platform. */
10395
#ifndef LT_DLLAZY_OR_NOW
10397
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10400
# define LT_DLLAZY_OR_NOW DL_LAZY
10403
# define LT_DLLAZY_OR_NOW RTLD_NOW
10406
# define LT_DLLAZY_OR_NOW DL_NOW
10408
# define LT_DLLAZY_OR_NOW 0
10416
extern "C" void exit (int);
10419
void fnord() { int i=42;}
10422
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10423
int status = $lt_dlunknown;
10427
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10428
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10429
/* dlclose (self); */
10437
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438
(eval $ac_link) 2>&5
10440
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10442
(./conftest; exit; ) >&5 2>/dev/null
10444
case x$lt_status in
10445
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10446
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10447
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10450
# compilation failed
10451
lt_cv_dlopen_self=no
10458
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10459
$as_echo "$lt_cv_dlopen_self" >&6; }
10461
if test "x$lt_cv_dlopen_self" = xyes; then
10462
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10463
{ $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10464
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10465
if test "${lt_cv_dlopen_self_static+set}" = set; then
10466
$as_echo_n "(cached) " >&6
10468
if test "$cross_compiling" = yes; then :
10469
lt_cv_dlopen_self_static=cross
10471
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10472
lt_status=$lt_dlunknown
10473
cat > conftest.$ac_ext <<EOF
10474
#line 10474 "configure"
10475
#include "confdefs.h"
10484
# define LT_DLGLOBAL RTLD_GLOBAL
10487
# define LT_DLGLOBAL DL_GLOBAL
10489
# define LT_DLGLOBAL 0
10493
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10494
find out it does not work in some platform. */
10495
#ifndef LT_DLLAZY_OR_NOW
10497
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10500
# define LT_DLLAZY_OR_NOW DL_LAZY
10503
# define LT_DLLAZY_OR_NOW RTLD_NOW
10506
# define LT_DLLAZY_OR_NOW DL_NOW
10508
# define LT_DLLAZY_OR_NOW 0
10516
extern "C" void exit (int);
10519
void fnord() { int i=42;}
10522
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10523
int status = $lt_dlunknown;
10527
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10528
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10529
/* dlclose (self); */
10537
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10538
(eval $ac_link) 2>&5
10540
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10542
(./conftest; exit; ) >&5 2>/dev/null
10544
case x$lt_status in
10545
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10546
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10547
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10550
# compilation failed
10551
lt_cv_dlopen_self_static=no
10558
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10559
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10562
CPPFLAGS="$save_CPPFLAGS"
10563
LDFLAGS="$save_LDFLAGS"
10568
case $lt_cv_dlopen_self in
10569
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10570
*) enable_dlopen_self=unknown ;;
10573
case $lt_cv_dlopen_self_static in
10574
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10575
*) enable_dlopen_self_static=unknown ;;
10580
# Report which library types will actually be built
10581
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10582
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10583
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10584
$as_echo "$can_build_shared" >&6; }
10586
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10587
$as_echo_n "checking whether to build shared libraries... " >&6; }
10588
test "$can_build_shared" = "no" && enable_shared=no
10590
# On AIX, shared libraries and static libraries use the same namespace, and
10591
# are all built from PIC.
10594
test "$enable_shared" = yes && enable_static=no
10595
if test -n "$RANLIB"; then
10596
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10597
postinstall_cmds='$RANLIB $lib'
10602
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10603
test "$enable_shared" = yes && enable_static=no
10607
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10608
$as_echo "$enable_shared" >&6; }
10610
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10611
$as_echo_n "checking whether to build static libraries... " >&6; }
10612
# Make sure either enable_shared or enable_static is yes.
10613
test "$enable_shared" = yes || enable_static=yes
10614
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10615
$as_echo "$enable_static" >&6; }
10617
# The else clause should only fire when bootstrapping the
10618
# libtool distribution, otherwise you forgot to ship ltmain.sh
10619
# with your package, and you will get complaints that there are
10620
# no rules to generate ltmain.sh.
10621
if test -f "$ltmain"; then
10622
# See if we are running on zsh, and set the options which allow our commands through
10623
# without removal of \ escapes.
10624
if test -n "${ZSH_VERSION+set}" ; then
10625
setopt NO_GLOB_SUBST
10627
# Now quote all the things that may contain metacharacters while being
10628
# careful not to overquote the AC_SUBSTed values. We take copies of the
10629
# variables and quote the copies for generation of the libtool script.
10630
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10632
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10633
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10634
deplibs_check_method reload_flag reload_cmds need_locks \
10635
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10636
lt_cv_sys_global_symbol_to_c_name_address \
10637
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10638
old_postinstall_cmds old_postuninstall_cmds \
10642
lt_prog_compiler_wl \
10643
lt_prog_compiler_pic \
10644
lt_prog_compiler_static \
10645
lt_prog_compiler_no_builtin_flag \
10646
export_dynamic_flag_spec \
10647
thread_safe_flag_spec \
10648
whole_archive_flag_spec \
10649
enable_shared_with_static_runtimes \
10651
old_archive_from_new_cmds \
10656
compiler_lib_search_path \
10657
compiler_lib_search_dirs \
10659
archive_expsym_cmds \
10661
postuninstall_cmds \
10662
old_archive_from_expsyms_cmds \
10663
allow_undefined_flag \
10664
no_undefined_flag \
10665
export_symbols_cmds \
10666
hardcode_libdir_flag_spec \
10667
hardcode_libdir_flag_spec_ld \
10668
hardcode_libdir_separator \
10669
hardcode_automatic \
10671
module_expsym_cmds \
10672
lt_cv_prog_compiler_c_o \
10675
include_expsyms; do
10678
old_archive_cmds | \
10679
old_archive_from_new_cmds | \
10681
archive_expsym_cmds | \
10683
module_expsym_cmds | \
10684
old_archive_from_expsyms_cmds | \
10685
export_symbols_cmds | \
10686
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10687
postinstall_cmds | postuninstall_cmds | \
10688
old_postinstall_cmds | old_postuninstall_cmds | \
10689
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10690
# Double-quote double-evaled strings.
10691
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10694
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10700
*'\$0 --fallback-echo"')
10701
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10705
cfgfile="${ofile}T"
10706
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10708
{ $as_echo "$as_me:$LINENO: creating $ofile" >&5
10709
$as_echo "$as_me: creating $ofile" >&6;}
10711
cat <<__EOF__ >> "$cfgfile"
10714
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10715
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10716
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10718
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10719
# Free Software Foundation, Inc.
10721
# This file is part of GNU Libtool:
10722
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10724
# This program is free software; you can redistribute it and/or modify
10725
# it under the terms of the GNU General Public License as published by
10726
# the Free Software Foundation; either version 2 of the License, or
10727
# (at your option) any later version.
10729
# This program is distributed in the hope that it will be useful, but
10730
# WITHOUT ANY WARRANTY; without even the implied warranty of
10731
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10732
# General Public License for more details.
10734
# You should have received a copy of the GNU General Public License
10735
# along with this program; if not, write to the Free Software
10736
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10738
# As a special exception to the GNU General Public License, if you
10739
# distribute this file as part of a program that contains a
10740
# configuration script generated by Autoconf, you may include it under
10741
# the same distribution terms that you use for the rest of that program.
10743
# A sed program that does not truncate output.
10746
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10747
Xsed="$SED -e 1s/^X//"
10749
# The HP-UX ksh and POSIX shell print the target directory to stdout
10750
# if CDPATH is set.
10751
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10753
# The names of the tagged configurations supported by this script.
10756
# ### BEGIN LIBTOOL CONFIG
10758
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10760
# Shell to use when invoking shell scripts.
10763
# Whether or not to build shared libraries.
10764
build_libtool_libs=$enable_shared
10766
# Whether or not to build static libraries.
10767
build_old_libs=$enable_static
10769
# Whether or not to add -lc for building shared libraries.
10770
build_libtool_need_lc=$archive_cmds_need_lc
10772
# Whether or not to disallow shared libs when runtime libs are static
10773
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10775
# Whether or not to optimize for fast installation.
10776
fast_install=$enable_fast_install
10779
host_alias=$host_alias
10783
# The build system.
10784
build_alias=$build_alias
10788
# An echo program that does not interpret backslashes.
10793
AR_FLAGS=$lt_AR_FLAGS
10798
# LTCC compiler flags.
10799
LTCFLAGS=$lt_LTCFLAGS
10801
# A language-specific compiler.
10804
# Is the compiler the GNU C compiler?
10810
# The linker used to build libraries.
10813
# Whether we need hard or soft links.
10816
# A BSD-compatible nm program.
10819
# A symbol stripping program
10822
# Used to examine libraries when file_magic_cmd begins "file"
10823
MAGIC_CMD=$MAGIC_CMD
10825
# Used on cygwin: DLL creation program.
10828
# Used on cygwin: object dumper.
10831
# Used on cygwin: assembler.
10834
# The name of the directory that contains temporary libtool files.
10837
# How to create reloadable object files.
10838
reload_flag=$lt_reload_flag
10839
reload_cmds=$lt_reload_cmds
10841
# How to pass a linker flag through the compiler.
10842
wl=$lt_lt_prog_compiler_wl
10844
# Object file suffix (normally "o").
10845
objext="$ac_objext"
10847
# Old archive suffix (normally "a").
10850
# Shared library suffix (normally ".so").
10851
shrext_cmds='$shrext_cmds'
10853
# Executable file suffix (normally "").
10856
# Additional compiler flags for building library objects.
10857
pic_flag=$lt_lt_prog_compiler_pic
10860
# What is the maximum length of a command?
10861
max_cmd_len=$lt_cv_sys_max_cmd_len
10863
# Does compiler simultaneously support -c and -o options?
10864
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10866
# Must we lock files when doing compilation?
10867
need_locks=$lt_need_locks
10869
# Do we need the lib prefix for modules?
10870
need_lib_prefix=$need_lib_prefix
10872
# Do we need a version for libraries?
10873
need_version=$need_version
10875
# Whether dlopen is supported.
10876
dlopen_support=$enable_dlopen
10878
# Whether dlopen of programs is supported.
10879
dlopen_self=$enable_dlopen_self
10881
# Whether dlopen of statically linked programs is supported.
10882
dlopen_self_static=$enable_dlopen_self_static
10884
# Compiler flag to prevent dynamic linking.
10885
link_static_flag=$lt_lt_prog_compiler_static
10887
# Compiler flag to turn off builtin functions.
10888
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10890
# Compiler flag to allow reflexive dlopens.
10891
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10893
# Compiler flag to generate shared objects directly from archives.
10894
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10896
# Compiler flag to generate thread-safe objects.
10897
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10899
# Library versioning type.
10900
version_type=$version_type
10902
# Format of library name prefix.
10903
libname_spec=$lt_libname_spec
10905
# List of archive names. First name is the real one, the rest are links.
10906
# The last name is the one that the linker finds with -lNAME.
10907
library_names_spec=$lt_library_names_spec
10909
# The coded name of the library, if different from the real name.
10910
soname_spec=$lt_soname_spec
10912
# Commands used to build and install an old-style archive.
10914
old_archive_cmds=$lt_old_archive_cmds
10915
old_postinstall_cmds=$lt_old_postinstall_cmds
10916
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10918
# Create an old-style archive from a shared archive.
10919
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10921
# Create a temporary old-style archive to link instead of a shared archive.
10922
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10924
# Commands used to build and install a shared archive.
10925
archive_cmds=$lt_archive_cmds
10926
archive_expsym_cmds=$lt_archive_expsym_cmds
10927
postinstall_cmds=$lt_postinstall_cmds
10928
postuninstall_cmds=$lt_postuninstall_cmds
10930
# Commands used to build a loadable module (assumed same as above if empty)
10931
module_cmds=$lt_module_cmds
10932
module_expsym_cmds=$lt_module_expsym_cmds
10934
# Commands to strip libraries.
10935
old_striplib=$lt_old_striplib
10936
striplib=$lt_striplib
10938
# Dependencies to place before the objects being linked to create a
10940
predep_objects=$lt_predep_objects
10942
# Dependencies to place after the objects being linked to create a
10944
postdep_objects=$lt_postdep_objects
10946
# Dependencies to place before the objects being linked to create a
10948
predeps=$lt_predeps
10950
# Dependencies to place after the objects being linked to create a
10952
postdeps=$lt_postdeps
10954
# The directories searched by this compiler when creating a shared
10956
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10958
# The library search path used internally by the compiler when linking
10959
# a shared library.
10960
compiler_lib_search_path=$lt_compiler_lib_search_path
10962
# Method to check whether dependent libraries are shared objects.
10963
deplibs_check_method=$lt_deplibs_check_method
10965
# Command to use when deplibs_check_method == file_magic.
10966
file_magic_cmd=$lt_file_magic_cmd
10968
# Flag that allows shared libraries with undefined symbols to be built.
10969
allow_undefined_flag=$lt_allow_undefined_flag
10971
# Flag that forces no undefined symbols.
10972
no_undefined_flag=$lt_no_undefined_flag
10974
# Commands used to finish a libtool library installation in a directory.
10975
finish_cmds=$lt_finish_cmds
10977
# Same as above, but a single script fragment to be evaled but not shown.
10978
finish_eval=$lt_finish_eval
10980
# Take the output of nm and produce a listing of raw symbols and C names.
10981
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10983
# Transform the output of nm in a proper C declaration
10984
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10986
# Transform the output of nm in a C name address pair
10987
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10989
# This is the shared library runtime path variable.
10990
runpath_var=$runpath_var
10992
# This is the shared library path variable.
10993
shlibpath_var=$shlibpath_var
10995
# Is shlibpath searched before the hard-coded library search path?
10996
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10998
# How to hardcode a shared library path into an executable.
10999
hardcode_action=$hardcode_action
11001
# Whether we should hardcode library paths into libraries.
11002
hardcode_into_libs=$hardcode_into_libs
11004
# Flag to hardcode \$libdir into a binary during linking.
11005
# This must work even if \$libdir does not exist.
11006
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11008
# If ld is used when linking, flag to hardcode \$libdir into
11009
# a binary during linking. This must work even if \$libdir does
11011
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11013
# Whether we need a single -rpath flag with a separated argument.
11014
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11016
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11017
# resulting binary.
11018
hardcode_direct=$hardcode_direct
11020
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11021
# resulting binary.
11022
hardcode_minus_L=$hardcode_minus_L
11024
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11025
# the resulting binary.
11026
hardcode_shlibpath_var=$hardcode_shlibpath_var
11028
# Set to yes if building a shared library automatically hardcodes DIR into the library
11029
# and all subsequent libraries and executables linked against it.
11030
hardcode_automatic=$hardcode_automatic
11032
# Variables whose values should be saved in libtool wrapper scripts and
11033
# restored at relink time.
11034
variables_saved_for_relink="$variables_saved_for_relink"
11036
# Whether libtool must link a program against all its dependency libraries.
11037
link_all_deplibs=$link_all_deplibs
11039
# Compile-time system search path for libraries
11040
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11042
# Run-time system search path for libraries
11043
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11045
# Fix the shell variable \$srcfile for the compiler.
11046
fix_srcfile_path=$lt_fix_srcfile_path
11048
# Set to yes if exported symbols are required.
11049
always_export_symbols=$always_export_symbols
11051
# The commands to list exported symbols.
11052
export_symbols_cmds=$lt_export_symbols_cmds
11054
# The commands to extract the exported symbol list from a shared archive.
11055
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11057
# Symbols that should not be listed in the preloaded symbols.
11058
exclude_expsyms=$lt_exclude_expsyms
11060
# Symbols that must always be exported.
11061
include_expsyms=$lt_include_expsyms
11063
# ### END LIBTOOL CONFIG
11070
cat <<\EOF >> "$cfgfile"
11072
# AIX sometimes has problems with the GCC collect2 program. For some
11073
# reason, if we set the COLLECT_NAMES environment variable, the problems
11074
# vanish in a puff of smoke.
11075
if test "X${COLLECT_NAMES+set}" != Xset; then
11077
export COLLECT_NAMES
11083
# We use sed instead of cat because bash on DJGPP gets confused if
11084
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11085
# text mode, it properly converts lines to CR/LF. This bash problem
11086
# is reportedly fixed, but why not run on old versions too?
11087
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11089
mv -f "$cfgfile" "$ofile" || \
11090
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11094
# If there is no Makefile yet, we rely on a make rule to execute
11095
# `config.status --recheck' to rerun these tests and create the
11096
# libtool script then.
11097
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11098
if test -f "$ltmain_in"; then
11099
test -f Makefile && make "$ltmain"
11105
ac_cpp='$CPP $CPPFLAGS'
11106
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11107
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11108
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11113
# Check whether --with-tags was given.
11114
if test "${with_tags+set}" = set; then
11115
withval=$with_tags; tagnames="$withval"
11119
if test -f "$ltmain" && test -n "$tagnames"; then
11120
if test ! -f "${ofile}"; then
11121
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11122
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11125
if test -z "$LTCC"; then
11126
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11127
if test -z "$LTCC"; then
11128
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11129
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11131
{ $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11132
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11135
if test -z "$LTCFLAGS"; then
11136
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11139
# Extract list of available tagged configurations in $ofile.
11140
# Note that this assumes the entire list is on one line.
11141
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11143
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11144
for tagname in $tagnames; do
11146
# Check whether tagname contains only valid characters
11147
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11149
*) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11150
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11151
{ (exit 1); exit 1; }; }
11155
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11157
{ { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11158
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11159
{ (exit 1); exit 1; }; }
11162
# Update the list of available tags.
11163
if test -n "$tagname"; then
11164
echo appending configuration tag \"$tagname\" to $ofile
11168
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11169
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11170
(test "X$CXX" != "Xg++"))) ; then
11172
ac_cpp='$CXXCPP $CPPFLAGS'
11173
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11174
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11175
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11180
archive_cmds_need_lc_CXX=no
11181
allow_undefined_flag_CXX=
11182
always_export_symbols_CXX=no
11183
archive_expsym_cmds_CXX=
11184
export_dynamic_flag_spec_CXX=
11185
hardcode_direct_CXX=no
11186
hardcode_libdir_flag_spec_CXX=
11187
hardcode_libdir_flag_spec_ld_CXX=
11188
hardcode_libdir_separator_CXX=
11189
hardcode_minus_L_CXX=no
11190
hardcode_shlibpath_var_CXX=unsupported
11191
hardcode_automatic_CXX=no
11193
module_expsym_cmds_CXX=
11194
link_all_deplibs_CXX=unknown
11195
old_archive_cmds_CXX=$old_archive_cmds
11196
no_undefined_flag_CXX=
11197
whole_archive_flag_spec_CXX=
11198
enable_shared_with_static_runtimes_CXX=no
11200
# Dependencies to place before and after the object being linked:
11201
predep_objects_CXX=
11202
postdep_objects_CXX=
11205
compiler_lib_search_path_CXX=
11206
compiler_lib_search_dirs_CXX=
11208
# Source file extension for C++ test sources.
11211
# Object file extension for compiled C++ test sources.
11215
# Code to be used in simple compile tests
11216
lt_simple_compile_test_code="int some_variable = 0;"
11218
# Code to be used in simple link tests
11219
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11221
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11223
# If no C compiler was specified, use CC.
11226
# If no C compiler flags were specified, use CFLAGS.
11227
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11229
# Allow CC to be a program name with arguments.
11233
# save warnings/boilerplate of simple test code
11234
ac_outfile=conftest.$ac_objext
11235
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11236
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11237
_lt_compiler_boilerplate=`cat conftest.err`
11240
ac_outfile=conftest.$ac_objext
11241
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11242
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11243
_lt_linker_boilerplate=`cat conftest.err`
11247
# Allow CC to be a program name with arguments.
11252
lt_save_with_gnu_ld=$with_gnu_ld
11253
lt_save_path_LD=$lt_cv_path_LD
11254
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11255
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11257
$as_unset lt_cv_prog_gnu_ld
11259
if test -n "${lt_cv_path_LDCXX+set}"; then
11260
lt_cv_path_LD=$lt_cv_path_LDCXX
11262
$as_unset lt_cv_path_LD
11264
test -z "${LDCXX+set}" || LD=$LDCXX
11268
for cc_temp in $compiler""; do
11270
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11271
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11276
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11279
# We don't want -fno-exception wen compiling C++ code, so set the
11280
# no_builtin_flag separately
11281
if test "$GXX" = yes; then
11282
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11284
lt_prog_compiler_no_builtin_flag_CXX=
11287
if test "$GXX" = yes; then
11288
# Set up default GNU C++ configuration
11291
# Check whether --with-gnu-ld was given.
11292
if test "${with_gnu_ld+set}" = set; then
11293
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11299
if test "$GCC" = yes; then
11300
# Check if gcc -print-prog-name=ld gives a path.
11301
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11302
$as_echo_n "checking for ld used by $CC... " >&6; }
11305
# gcc leaves a trailing carriage return which upsets mingw
11306
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11308
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11311
# Accept absolute paths.
11313
re_direlt='/[^/][^/]*/\.\./'
11314
# Canonicalize the pathname of ld
11315
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11316
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11317
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11319
test -z "$LD" && LD="$ac_prog"
11322
# If it fails, then pretend we aren't using GCC.
11326
# If it is relative, then search for the first ld in PATH.
11327
with_gnu_ld=unknown
11330
elif test "$with_gnu_ld" = yes; then
11331
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11332
$as_echo_n "checking for GNU ld... " >&6; }
11334
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11335
$as_echo_n "checking for non-GNU ld... " >&6; }
11337
if test "${lt_cv_path_LD+set}" = set; then
11338
$as_echo_n "(cached) " >&6
11340
if test -z "$LD"; then
11341
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11342
for ac_dir in $PATH; do
11344
test -z "$ac_dir" && ac_dir=.
11345
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11346
lt_cv_path_LD="$ac_dir/$ac_prog"
11347
# Check to see if the program is GNU ld. I'd rather use --version,
11348
# but apparently some variants of GNU ld only accept -v.
11349
# Break only if it was the GNU/non-GNU ld that we prefer.
11350
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11351
*GNU* | *'with BFD'*)
11352
test "$with_gnu_ld" != no && break
11355
test "$with_gnu_ld" != yes && break
11362
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11366
LD="$lt_cv_path_LD"
11367
if test -n "$LD"; then
11368
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
11369
$as_echo "$LD" >&6; }
11371
{ $as_echo "$as_me:$LINENO: result: no" >&5
11372
$as_echo "no" >&6; }
11374
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11375
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11376
{ (exit 1); exit 1; }; }
11377
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11378
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11379
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11380
$as_echo_n "(cached) " >&6
11382
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11383
case `$LD -v 2>&1 </dev/null` in
11384
*GNU* | *'with BFD'*)
11385
lt_cv_prog_gnu_ld=yes
11388
lt_cv_prog_gnu_ld=no
11392
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11393
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11394
with_gnu_ld=$lt_cv_prog_gnu_ld
11398
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11399
# archiving commands below assume that GNU ld is being used.
11400
if test "$with_gnu_ld" = yes; then
11401
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11402
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'
11404
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11405
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11407
# If archive_cmds runs LD, not CC, wlarc should be empty
11408
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11409
# investigate it a little bit more. (MM)
11412
# ancient GNU ld didn't support --whole-archive et. al.
11413
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11414
grep 'no-whole-archive' > /dev/null; then
11415
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11417
whole_archive_flag_spec_CXX=
11423
# A generic and very simple default shared library creation
11424
# command for GNU C++ for the case where it uses the native
11425
# linker, instead of GNU ld. If possible, this setting should
11426
# overridden to take advantage of the native linker features on
11427
# the platform it is being used on.
11428
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11431
# Commands to make compiler produce verbose output that lists
11432
# what "hidden" libraries, object files and flags are used when
11433
# linking a shared library.
11434
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11442
# PORTME: fill in a description of your system's C++ link characteristics
11443
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11444
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11448
# FIXME: insert proper C++ library support
11452
if test "$host_cpu" = ia64; then
11453
# On IA64, the linker does run time linking by default, so we don't
11454
# have to do anything special.
11455
aix_use_runtimelinking=no
11456
exp_sym_flag='-Bexport'
11459
aix_use_runtimelinking=no
11461
# Test if we are trying to use run time linking or normal
11462
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11463
# need to do runtime linking.
11464
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11465
for ld_flag in $LDFLAGS; do
11468
aix_use_runtimelinking=yes
11476
exp_sym_flag='-bexport'
11477
no_entry_flag='-bnoentry'
11480
# When large executables or shared objects are built, AIX ld can
11481
# have problems creating the table of contents. If linking a library
11482
# or program results in "error TOC overflow" add -mminimal-toc to
11483
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11484
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11486
archive_cmds_CXX=''
11487
hardcode_direct_CXX=yes
11488
hardcode_libdir_separator_CXX=':'
11489
link_all_deplibs_CXX=yes
11491
if test "$GXX" = yes; then
11492
case $host_os in aix4.[012]|aix4.[012].*)
11493
# We only want to do this on AIX 4.2 and lower, the check
11494
# below for broken collect2 doesn't work under 4.3+
11495
collect2name=`${CC} -print-prog-name=collect2`
11496
if test -f "$collect2name" && \
11497
strings "$collect2name" | grep resolve_lib_name >/dev/null
11499
# We have reworked collect2
11502
# We have old collect2
11503
hardcode_direct_CXX=unsupported
11504
# It fails to find uninstalled libraries when the uninstalled
11505
# path is not listed in the libpath. Setting hardcode_minus_L
11506
# to unsupported forces relinking
11507
hardcode_minus_L_CXX=yes
11508
hardcode_libdir_flag_spec_CXX='-L$libdir'
11509
hardcode_libdir_separator_CXX=
11513
shared_flag='-shared'
11514
if test "$aix_use_runtimelinking" = yes; then
11515
shared_flag="$shared_flag "'${wl}-G'
11519
if test "$host_cpu" = ia64; then
11520
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11521
# chokes on -Wl,-G. The following line is correct:
11524
if test "$aix_use_runtimelinking" = yes; then
11525
shared_flag='${wl}-G'
11527
shared_flag='${wl}-bM:SRE'
11532
# It seems that -bexpall does not export symbols beginning with
11533
# underscore (_), so it is better to generate a list of symbols to export.
11534
always_export_symbols_CXX=yes
11535
if test "$aix_use_runtimelinking" = yes; then
11536
# Warning - without using the other runtime loading flags (-brtl),
11537
# -berok will link without error, but may produce a broken library.
11538
allow_undefined_flag_CXX='-berok'
11539
# Determine the default libpath from the value encoded in an empty executable.
11540
cat >conftest.$ac_ext <<_ACEOF
11543
cat confdefs.h >>conftest.$ac_ext
11544
cat >>conftest.$ac_ext <<_ACEOF
11545
/* end confdefs.h. */
11555
rm -f conftest.$ac_objext conftest$ac_exeext
11556
if { (ac_try="$ac_link"
11557
case "(($ac_try" in
11558
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559
*) ac_try_echo=$ac_try;;
11561
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11562
$as_echo "$ac_try_echo") >&5
11563
(eval "$ac_link") 2>conftest.er1
11565
grep -v '^ *+' conftest.er1 >conftest.err
11567
cat conftest.err >&5
11568
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569
(exit $ac_status); } && {
11570
test -z "$ac_cxx_werror_flag" ||
11571
test ! -s conftest.err
11572
} && test -s conftest$ac_exeext && {
11573
test "$cross_compiling" = yes ||
11574
$as_test_x conftest$ac_exeext
11577
lt_aix_libpath_sed='
11578
/Import File Strings/,/^$/ {
11584
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11585
# Check for a 64-bit object if we didn't find anything.
11586
if test -z "$aix_libpath"; then
11587
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11590
$as_echo "$as_me: failed program was:" >&5
11591
sed 's/^/| /' conftest.$ac_ext >&5
11596
rm -rf conftest.dSYM
11597
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11598
conftest$ac_exeext conftest.$ac_ext
11599
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11601
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11603
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"
11605
if test "$host_cpu" = ia64; then
11606
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11607
allow_undefined_flag_CXX="-z nodefs"
11608
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"
11610
# Determine the default libpath from the value encoded in an empty executable.
11611
cat >conftest.$ac_ext <<_ACEOF
11614
cat confdefs.h >>conftest.$ac_ext
11615
cat >>conftest.$ac_ext <<_ACEOF
11616
/* end confdefs.h. */
11626
rm -f conftest.$ac_objext conftest$ac_exeext
11627
if { (ac_try="$ac_link"
11628
case "(($ac_try" in
11629
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630
*) ac_try_echo=$ac_try;;
11632
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11633
$as_echo "$ac_try_echo") >&5
11634
(eval "$ac_link") 2>conftest.er1
11636
grep -v '^ *+' conftest.er1 >conftest.err
11638
cat conftest.err >&5
11639
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640
(exit $ac_status); } && {
11641
test -z "$ac_cxx_werror_flag" ||
11642
test ! -s conftest.err
11643
} && test -s conftest$ac_exeext && {
11644
test "$cross_compiling" = yes ||
11645
$as_test_x conftest$ac_exeext
11648
lt_aix_libpath_sed='
11649
/Import File Strings/,/^$/ {
11655
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11656
# Check for a 64-bit object if we didn't find anything.
11657
if test -z "$aix_libpath"; then
11658
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11661
$as_echo "$as_me: failed program was:" >&5
11662
sed 's/^/| /' conftest.$ac_ext >&5
11667
rm -rf conftest.dSYM
11668
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11669
conftest$ac_exeext conftest.$ac_ext
11670
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11672
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11673
# Warning - without using the other run time loading flags,
11674
# -berok will link without error, but may produce a broken library.
11675
no_undefined_flag_CXX=' ${wl}-bernotok'
11676
allow_undefined_flag_CXX=' ${wl}-berok'
11677
# Exported symbols can be pulled into shared objects from archives
11678
whole_archive_flag_spec_CXX='$convenience'
11679
archive_cmds_need_lc_CXX=yes
11680
# This is similar to how AIX traditionally builds its shared libraries.
11681
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'
11687
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11688
allow_undefined_flag_CXX=unsupported
11689
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11690
# support --undefined. This deserves some investigation. FIXME
11691
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11698
case $cc_basename in
11700
# FIXME: insert proper C++ library support
11706
cygwin* | mingw* | pw32*)
11707
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11708
# as there is no search path for DLLs.
11709
hardcode_libdir_flag_spec_CXX='-L$libdir'
11710
allow_undefined_flag_CXX=unsupported
11711
always_export_symbols_CXX=no
11712
enable_shared_with_static_runtimes_CXX=yes
11714
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11715
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'
11716
# If the export-symbols file already is a .def file (1st line
11717
# is EXPORTS), use it as is; otherwise, prepend...
11718
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11719
cp $export_symbols $output_objdir/$soname.def;
11721
echo EXPORTS > $output_objdir/$soname.def;
11722
cat $export_symbols >> $output_objdir/$soname.def;
11724
$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'
11729
darwin* | rhapsody*)
11730
archive_cmds_need_lc_CXX=no
11731
hardcode_direct_CXX=no
11732
hardcode_automatic_CXX=yes
11733
hardcode_shlibpath_var_CXX=unsupported
11734
whole_archive_flag_spec_CXX=''
11735
link_all_deplibs_CXX=yes
11736
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11737
if test "$GXX" = yes ; then
11738
output_verbose_link_cmd='echo'
11739
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}"
11740
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11741
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}"
11742
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}"
11743
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11744
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}"
11745
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}"
11748
case $cc_basename in
11750
output_verbose_link_cmd='echo'
11751
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'
11752
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11753
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11754
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}'
11755
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}'
11765
case $cc_basename in
11767
# FIXME: insert proper C++ library support
11771
# Green Hills C++ Compiler
11772
# FIXME: insert proper C++ library support
11776
# FIXME: insert proper C++ library support
11782
# C++ shared libraries reported to be fairly broken before switch to ELF
11786
archive_cmds_need_lc_CXX=no
11788
freebsd* | dragonfly*)
11789
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11796
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11797
hardcode_libdir_separator_CXX=:
11798
export_dynamic_flag_spec_CXX='${wl}-E'
11799
hardcode_direct_CXX=yes
11800
hardcode_minus_L_CXX=yes # Not in the search PATH,
11801
# but as the default
11802
# location of the library.
11804
case $cc_basename in
11806
# FIXME: insert proper C++ library support
11810
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'
11811
# Commands to make compiler produce verbose output that lists
11812
# what "hidden" libraries, object files and flags are used when
11813
# linking a shared library.
11815
# There doesn't appear to be a way to prevent this compiler from
11816
# explicitly linking system object files so we need to strip them
11817
# from the output so that they don't get included in the library
11819
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'
11822
if test "$GXX" = yes; then
11823
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'
11825
# FIXME: insert proper C++ library support
11832
if test $with_gnu_ld = no; then
11833
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11834
hardcode_libdir_separator_CXX=:
11839
export_dynamic_flag_spec_CXX='${wl}-E'
11845
hardcode_direct_CXX=no
11846
hardcode_shlibpath_var_CXX=no
11849
hardcode_direct_CXX=yes
11850
hardcode_minus_L_CXX=yes # Not in the search PATH,
11851
# but as the default
11852
# location of the library.
11856
case $cc_basename in
11858
# FIXME: insert proper C++ library support
11864
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11867
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11870
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11873
# Commands to make compiler produce verbose output that lists
11874
# what "hidden" libraries, object files and flags are used when
11875
# linking a shared library.
11877
# There doesn't appear to be a way to prevent this compiler from
11878
# explicitly linking system object files so we need to strip them
11879
# from the output so that they don't get included in the library
11881
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'
11884
if test "$GXX" = yes; then
11885
if test $with_gnu_ld = no; then
11888
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11891
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11894
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'
11899
# FIXME: insert proper C++ library support
11906
hardcode_direct_CXX=no
11907
hardcode_shlibpath_var_CXX=no
11908
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11909
export_dynamic_flag_spec_CXX='${wl}-E'
11910
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11911
# Instead, shared libraries are loaded at an image base (0x10000000 by
11912
# default) and relocated if they conflict, which is a slow very memory
11913
# consuming and fragmenting process. To avoid this, we pick a random,
11914
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11915
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11916
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'
11917
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'
11920
case $cc_basename in
11923
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'
11925
# Archives containing C++ object files must be created using
11926
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11927
# necessary to make sure instantiated templates are included
11929
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11932
if test "$GXX" = yes; then
11933
if test "$with_gnu_ld" = no; then
11934
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'
11936
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'
11939
link_all_deplibs_CXX=yes
11942
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11943
hardcode_libdir_separator_CXX=:
11945
linux* | k*bsd*-gnu)
11946
case $cc_basename in
11948
# Kuck and Associates, Inc. (KAI) C++ Compiler
11950
# KCC will only create a shared library if the output file
11951
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11952
# to its proper name (with version) after linking.
11953
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'
11954
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'
11955
# Commands to make compiler produce verbose output that lists
11956
# what "hidden" libraries, object files and flags are used when
11957
# linking a shared library.
11959
# There doesn't appear to be a way to prevent this compiler from
11960
# explicitly linking system object files so we need to strip them
11961
# from the output so that they don't get included in the library
11963
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'
11965
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11966
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11968
# Archives containing C++ object files must be created using
11969
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11970
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11975
# version 8.0 and above of icpc choke on multiply defined symbols
11976
# if we add $predep_objects and $postdep_objects, however 7.1 and
11977
# earlier do not add the objects themselves.
11978
case `$CC -V 2>&1` in
11980
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11981
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'
11983
*) # Version 8.0 or newer
11986
ia64*) tmp_idyn=' -i_dynamic';;
11988
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11989
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'
11992
archive_cmds_need_lc_CXX=no
11993
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11994
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11995
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11998
# Portland Group C++ compiler
11999
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12000
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'
12002
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12003
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12004
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'
12008
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12009
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'
12011
runpath_var=LD_RUN_PATH
12012
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12013
hardcode_libdir_separator_CXX=:
12015
# Commands to make compiler produce verbose output that lists
12016
# what "hidden" libraries, object files and flags are used when
12017
# linking a shared library.
12019
# There doesn't appear to be a way to prevent this compiler from
12020
# explicitly linking system object files so we need to strip them
12021
# from the output so that they don't get included in the library
12023
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'
12026
case `$CC -V 2>&1 | sed 5q` in
12029
no_undefined_flag_CXX=' -zdefs'
12030
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12031
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'
12032
hardcode_libdir_flag_spec_CXX='-R$libdir'
12033
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'
12035
# Not sure whether something based on
12036
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12038
output_verbose_link_cmd='echo'
12040
# Archives containing C++ object files must be created using
12041
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12042
# necessary to make sure instantiated templates are included
12044
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12051
# FIXME: insert proper C++ library support
12055
# FIXME: insert proper C++ library support
12059
case $cc_basename in
12061
# FIXME: insert proper C++ library support
12065
# FIXME: insert proper C++ library support
12071
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12072
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12074
hardcode_libdir_flag_spec_CXX='-R$libdir'
12075
hardcode_direct_CXX=yes
12076
hardcode_shlibpath_var_CXX=no
12078
# Workaround some broken pre-1.5 toolchains
12079
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12082
# C++ shared libraries are fairly broken
12086
if test -f /usr/libexec/ld.so; then
12087
hardcode_direct_CXX=yes
12088
hardcode_shlibpath_var_CXX=no
12089
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12090
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12091
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12092
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12093
export_dynamic_flag_spec_CXX='${wl}-E'
12094
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12096
output_verbose_link_cmd='echo'
12102
case $cc_basename in
12104
# Kuck and Associates, Inc. (KAI) C++ Compiler
12106
# KCC will only create a shared library if the output file
12107
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12108
# to its proper name (with version) after linking.
12109
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'
12111
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12112
hardcode_libdir_separator_CXX=:
12114
# Archives containing C++ object files must be created using
12115
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12116
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12120
# Rational C++ 2.4.1
12121
# FIXME: insert proper C++ library support
12125
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12126
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'
12128
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12129
hardcode_libdir_separator_CXX=:
12131
# Commands to make compiler produce verbose output that lists
12132
# what "hidden" libraries, object files and flags are used when
12133
# linking a shared library.
12135
# There doesn't appear to be a way to prevent this compiler from
12136
# explicitly linking system object files so we need to strip them
12137
# from the output so that they don't get included in the library
12139
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'
12142
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12143
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12144
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'
12146
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12147
hardcode_libdir_separator_CXX=:
12149
# Commands to make compiler produce verbose output that lists
12150
# what "hidden" libraries, object files and flags are used when
12151
# linking a shared library.
12152
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12155
# FIXME: insert proper C++ library support
12162
case $cc_basename in
12164
# Kuck and Associates, Inc. (KAI) C++ Compiler
12166
# KCC will only create a shared library if the output file
12167
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12168
# to its proper name (with version) after linking.
12169
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'
12171
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12172
hardcode_libdir_separator_CXX=:
12174
# Archives containing C++ object files must be created using
12175
# the KAI C++ compiler.
12176
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12179
# Rational C++ 2.4.1
12180
# FIXME: insert proper C++ library support
12184
allow_undefined_flag_CXX=' -expect_unresolved \*'
12185
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'
12186
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12187
echo "-hidden">> $lib.exp~
12188
$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~
12191
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12192
hardcode_libdir_separator_CXX=:
12194
# Commands to make compiler produce verbose output that lists
12195
# what "hidden" libraries, object files and flags are used when
12196
# linking a shared library.
12198
# There doesn't appear to be a way to prevent this compiler from
12199
# explicitly linking system object files so we need to strip them
12200
# from the output so that they don't get included in the library
12202
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'
12205
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12206
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12207
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'
12209
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12210
hardcode_libdir_separator_CXX=:
12212
# Commands to make compiler produce verbose output that lists
12213
# what "hidden" libraries, object files and flags are used when
12214
# linking a shared library.
12215
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12218
# FIXME: insert proper C++ library support
12225
# FIXME: insert proper C++ library support
12229
case $cc_basename in
12232
# FIXME: insert proper C++ library support
12237
# FIXME: insert proper C++ library support
12241
# FIXME: insert proper C++ library support
12247
case $cc_basename in
12249
# Sun C++ 4.2, 5.x and Centerline C++
12250
archive_cmds_need_lc_CXX=yes
12251
no_undefined_flag_CXX=' -zdefs'
12252
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12253
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12254
$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'
12256
hardcode_libdir_flag_spec_CXX='-R$libdir'
12257
hardcode_shlibpath_var_CXX=no
12259
solaris2.[0-5] | solaris2.[0-5].*) ;;
12261
# The compiler driver will combine and reorder linker options,
12262
# but understands `-z linker_flag'.
12263
# Supported since Solaris 2.6 (maybe 2.5.1?)
12264
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12267
link_all_deplibs_CXX=yes
12269
output_verbose_link_cmd='echo'
12271
# Archives containing C++ object files must be created using
12272
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12273
# necessary to make sure instantiated templates are included
12275
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12278
# Green Hills C++ Compiler
12279
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12281
# The C++ compiler must be used to create the archive.
12282
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12285
# GNU C++ compiler with Solaris linker
12286
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12287
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12288
if $CC --version | grep -v '^2\.7' > /dev/null; then
12289
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12290
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12291
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12293
# Commands to make compiler produce verbose output that lists
12294
# what "hidden" libraries, object files and flags are used when
12295
# linking a shared library.
12296
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12298
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12300
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12301
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12302
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12304
# Commands to make compiler produce verbose output that lists
12305
# what "hidden" libraries, object files and flags are used when
12306
# linking a shared library.
12307
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12310
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12312
solaris2.[0-5] | solaris2.[0-5].*) ;;
12314
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12321
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12322
no_undefined_flag_CXX='${wl}-z,text'
12323
archive_cmds_need_lc_CXX=no
12324
hardcode_shlibpath_var_CXX=no
12325
runpath_var='LD_RUN_PATH'
12327
case $cc_basename in
12329
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12330
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12333
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12334
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12338
sysv5* | sco3.2v5* | sco5v6*)
12339
# Note: We can NOT use -z defs as we might desire, because we do not
12340
# link with -lc, and that would cause any symbols used from libc to
12341
# always be unresolved, which means just about no library would
12342
# ever link correctly. If we're not using GNU ld we use -z text
12343
# though, which does catch some bad symbols but isn't as heavy-handed
12345
# For security reasons, it is highly recommended that you always
12346
# use absolute paths for naming shared libraries, and exclude the
12347
# DT_RUNPATH tag from executables and libraries. But doing so
12348
# requires that you compile everything twice, which is a pain.
12349
# So that behaviour is only enabled if SCOABSPATH is set to a
12350
# non-empty value in the environment. Most likely only useful for
12351
# creating official distributions of packages.
12352
# This is a hack until libtool officially supports absolute path
12353
# names for shared libraries.
12354
no_undefined_flag_CXX='${wl}-z,text'
12355
allow_undefined_flag_CXX='${wl}-z,nodefs'
12356
archive_cmds_need_lc_CXX=no
12357
hardcode_shlibpath_var_CXX=no
12358
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12359
hardcode_libdir_separator_CXX=':'
12360
link_all_deplibs_CXX=yes
12361
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12362
runpath_var='LD_RUN_PATH'
12364
case $cc_basename in
12366
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12367
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12370
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12371
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12376
case $cc_basename in
12378
# NonStop-UX NCC 3.20
12379
# FIXME: insert proper C++ library support
12383
# FIXME: insert proper C++ library support
12389
# FIXME: insert proper C++ library support
12393
# FIXME: insert proper C++ library support
12397
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12398
$as_echo "$ld_shlibs_CXX" >&6; }
12399
test "$ld_shlibs_CXX" = no && can_build_shared=no
12404
cat > conftest.$ac_ext <<EOF
12408
Foo (void) { a = 0; }
12414
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12415
(eval $ac_compile) 2>&5
12417
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418
(exit $ac_status); }; then
12419
# Parse the compiler output and extract the necessary
12420
# objects, libraries and library flags.
12422
# Sentinel used to keep track of whether or not we are before
12423
# the conftest object file.
12424
pre_test_object_deps_done=no
12426
# The `*' in the case matches for architectures that use `case' in
12427
# $output_verbose_cmd can trigger glob expansion during the loop
12428
# eval without this substitution.
12429
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12431
for p in `eval $output_verbose_link_cmd`; do
12435
# Some compilers place space between "-{L,R}" and the path.
12436
# Remove the space.
12437
if test $p = "-L" \
12438
|| test $p = "-R"; then
12445
if test "$pre_test_object_deps_done" = no; then
12448
# Internal compiler library paths should come after those
12449
# provided the user. The postdeps already come after the
12450
# user supplied libs so there is no need to process them.
12451
if test -z "$compiler_lib_search_path_CXX"; then
12452
compiler_lib_search_path_CXX="${prev}${p}"
12454
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12457
# The "-l" case would never come before the object being
12458
# linked, so don't bother handling this case.
12461
if test -z "$postdeps_CXX"; then
12462
postdeps_CXX="${prev}${p}"
12464
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12470
# This assumes that the test object file only shows up
12471
# once in the compiler output.
12472
if test "$p" = "conftest.$objext"; then
12473
pre_test_object_deps_done=yes
12477
if test "$pre_test_object_deps_done" = no; then
12478
if test -z "$predep_objects_CXX"; then
12479
predep_objects_CXX="$p"
12481
predep_objects_CXX="$predep_objects_CXX $p"
12484
if test -z "$postdep_objects_CXX"; then
12485
postdep_objects_CXX="$p"
12487
postdep_objects_CXX="$postdep_objects_CXX $p"
12492
*) ;; # Ignore the rest.
12500
echo "libtool.m4: error: problem compiling CXX test program"
12503
$rm -f confest.$objext
12505
compiler_lib_search_dirs_CXX=
12506
if test -n "$compiler_lib_search_path_CXX"; then
12507
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12510
# PORTME: override above test on systems where it is broken
12513
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12514
# hack all around it, let's just trust "g++" to DTRT.
12515
predep_objects_CXX=
12516
postdep_objects_CXX=
12521
case `$CC -V 2>&1 | sed 5q` in
12525
# The more standards-conforming stlport4 library is
12526
# incompatible with the Cstd library. Avoid specifying
12527
# it if it's in CXXFLAGS. Ignore libCrun as
12528
# -library=stlport4 depends on it.
12529
case " $CXX $CXXFLAGS " in
12530
*" -library=stlport4 "*)
12531
solaris_use_stlport4=yes
12534
if test "$solaris_use_stlport4" != yes; then
12535
postdeps_CXX='-library=Cstd -library=Crun'
12542
case $cc_basename in
12544
# The more standards-conforming stlport4 library is
12545
# incompatible with the Cstd library. Avoid specifying
12546
# it if it's in CXXFLAGS. Ignore libCrun as
12547
# -library=stlport4 depends on it.
12548
case " $CXX $CXXFLAGS " in
12549
*" -library=stlport4 "*)
12550
solaris_use_stlport4=yes
12554
# Adding this requires a known-good setup of shared libraries for
12555
# Sun compiler versions before 5.6, else PIC objects from an old
12556
# archive will be linked into the output, leading to subtle bugs.
12557
if test "$solaris_use_stlport4" != yes; then
12558
postdeps_CXX='-library=Cstd -library=Crun'
12565
case " $postdeps_CXX " in
12566
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12569
lt_prog_compiler_wl_CXX=
12570
lt_prog_compiler_pic_CXX=
12571
lt_prog_compiler_static_CXX=
12573
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12574
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12576
# C++ specific cases for pic, static, wl, etc.
12577
if test "$GXX" = yes; then
12578
lt_prog_compiler_wl_CXX='-Wl,'
12579
lt_prog_compiler_static_CXX='-static'
12583
# All AIX code is PIC.
12584
if test "$host_cpu" = ia64; then
12585
# AIX 5 now supports IA64 processor
12586
lt_prog_compiler_static_CXX='-Bstatic'
12590
# FIXME: we need at least 68020 code to build shared libraries, but
12591
# adding the `-m68020' flag to GCC prevents building anything better,
12593
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12595
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12596
# PIC is the default for these OSes.
12598
mingw* | cygwin* | os2* | pw32*)
12599
# This hack is so that the source file can tell whether it is being
12600
# built for inclusion in a dll (and should export symbols for example).
12601
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12602
# (--disable-auto-import) libraries
12603
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12605
darwin* | rhapsody*)
12606
# PIC is the default on this platform
12607
# Common symbols not allowed in MH_DYLIB files
12608
lt_prog_compiler_pic_CXX='-fno-common'
12611
# DJGPP does not support shared libraries at all
12612
lt_prog_compiler_pic_CXX=
12615
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12616
# Instead, we relocate shared libraries at runtime.
12619
if test -d /usr/nec; then
12620
lt_prog_compiler_pic_CXX=-Kconform_pic
12624
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12625
# not for PA HP-UX.
12630
lt_prog_compiler_pic_CXX='-fPIC'
12635
lt_prog_compiler_pic_CXX='-fPIC'
12641
# All AIX code is PIC.
12642
if test "$host_cpu" = ia64; then
12643
# AIX 5 now supports IA64 processor
12644
lt_prog_compiler_static_CXX='-Bstatic'
12646
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12650
case $cc_basename in
12652
# Green Hills C++ Compiler
12653
# _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"
12658
# PIC is the default on this platform
12659
# Common symbols not allowed in MH_DYLIB files
12660
case $cc_basename in
12662
lt_prog_compiler_pic_CXX='-qnocommon'
12663
lt_prog_compiler_wl_CXX='-Wl,'
12668
case $cc_basename in
12670
lt_prog_compiler_pic_CXX='-KPIC'
12673
# Green Hills C++ Compiler
12674
lt_prog_compiler_pic_CXX='-pic'
12680
freebsd* | dragonfly*)
12681
# FreeBSD uses GNU C++
12683
hpux9* | hpux10* | hpux11*)
12684
case $cc_basename in
12686
lt_prog_compiler_wl_CXX='-Wl,'
12687
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12688
if test "$host_cpu" != ia64; then
12689
lt_prog_compiler_pic_CXX='+Z'
12693
lt_prog_compiler_wl_CXX='-Wl,'
12694
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12700
lt_prog_compiler_pic_CXX='+Z'
12709
# This is c89, which is MS Visual C++ (no shared libs)
12710
# Anyone wants to do a port?
12712
irix5* | irix6* | nonstopux*)
12713
case $cc_basename in
12715
lt_prog_compiler_wl_CXX='-Wl,'
12716
lt_prog_compiler_static_CXX='-non_shared'
12717
# CC pic flag -KPIC is the default.
12723
linux* | k*bsd*-gnu)
12724
case $cc_basename in
12727
lt_prog_compiler_wl_CXX='--backend -Wl,'
12728
lt_prog_compiler_pic_CXX='-fPIC'
12732
lt_prog_compiler_wl_CXX='-Wl,'
12733
lt_prog_compiler_pic_CXX='-KPIC'
12734
lt_prog_compiler_static_CXX='-static'
12737
# Portland Group C++ compiler.
12738
lt_prog_compiler_wl_CXX='-Wl,'
12739
lt_prog_compiler_pic_CXX='-fpic'
12740
lt_prog_compiler_static_CXX='-Bstatic'
12744
# Make sure the PIC flag is empty. It appears that all Alpha
12745
# Linux and Compaq Tru64 Unix objects are PIC.
12746
lt_prog_compiler_pic_CXX=
12747
lt_prog_compiler_static_CXX='-non_shared'
12750
case `$CC -V 2>&1 | sed 5q` in
12753
lt_prog_compiler_pic_CXX='-KPIC'
12754
lt_prog_compiler_static_CXX='-Bstatic'
12755
lt_prog_compiler_wl_CXX='-Qoption ld '
12766
case $cc_basename in
12768
lt_prog_compiler_pic_CXX='-W c,exportall'
12776
osf3* | osf4* | osf5*)
12777
case $cc_basename in
12779
lt_prog_compiler_wl_CXX='--backend -Wl,'
12782
# Rational C++ 2.4.1
12783
lt_prog_compiler_pic_CXX='-pic'
12786
# Digital/Compaq C++
12787
lt_prog_compiler_wl_CXX='-Wl,'
12788
# Make sure the PIC flag is empty. It appears that all Alpha
12789
# Linux and Compaq Tru64 Unix objects are PIC.
12790
lt_prog_compiler_pic_CXX=
12791
lt_prog_compiler_static_CXX='-non_shared'
12800
case $cc_basename in
12802
# Sun C++ 4.2, 5.x and Centerline C++
12803
lt_prog_compiler_pic_CXX='-KPIC'
12804
lt_prog_compiler_static_CXX='-Bstatic'
12805
lt_prog_compiler_wl_CXX='-Qoption ld '
12808
# Green Hills C++ Compiler
12809
lt_prog_compiler_pic_CXX='-PIC'
12816
case $cc_basename in
12819
lt_prog_compiler_pic_CXX='-pic'
12820
lt_prog_compiler_static_CXX='-Bstatic'
12824
lt_prog_compiler_pic_CXX='-pic'
12831
case $cc_basename in
12833
# NonStop-UX NCC 3.20
12834
lt_prog_compiler_pic_CXX='-KPIC'
12840
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12841
case $cc_basename in
12843
lt_prog_compiler_wl_CXX='-Wl,'
12844
lt_prog_compiler_pic_CXX='-KPIC'
12845
lt_prog_compiler_static_CXX='-Bstatic'
12852
lt_prog_compiler_can_build_shared_CXX=no
12857
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12858
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12861
# Check to make sure the PIC flag actually works.
12863
if test -n "$lt_prog_compiler_pic_CXX"; then
12865
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12866
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12867
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12868
$as_echo_n "(cached) " >&6
12870
lt_cv_prog_compiler_pic_works_CXX=no
12871
ac_outfile=conftest.$ac_objext
12872
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12873
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12874
# Insert the option either (1) after the last *FLAGS variable, or
12875
# (2) before a word containing "conftest.", or (3) at the end.
12876
# Note that $ac_compile itself does not contain backslashes and begins
12877
# with a dollar sign (not a hyphen), so the echo should work correctly.
12878
# The option is referenced via a variable to avoid confusing sed.
12879
lt_compile=`echo "$ac_compile" | $SED \
12880
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12881
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12882
-e 's:$: $lt_compiler_flag:'`
12883
(eval echo "\"\$as_me:12883: $lt_compile\"" >&5)
12884
(eval "$lt_compile" 2>conftest.err)
12886
cat conftest.err >&5
12887
echo "$as_me:12887: \$? = $ac_status" >&5
12888
if (exit $ac_status) && test -s "$ac_outfile"; then
12889
# The compiler can only warn and ignore the option if not recognized
12890
# So say no if there are warnings other than the usual output.
12891
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12892
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12893
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12894
lt_cv_prog_compiler_pic_works_CXX=yes
12900
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12901
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12903
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12904
case $lt_prog_compiler_pic_CXX in
12906
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12909
lt_prog_compiler_pic_CXX=
12910
lt_prog_compiler_can_build_shared_CXX=no
12915
# For platforms which do not support PIC, -DPIC is meaningless:
12917
lt_prog_compiler_pic_CXX=
12920
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12925
# Check to make sure the static flag actually works.
12927
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12928
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12929
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12930
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12931
$as_echo_n "(cached) " >&6
12933
lt_cv_prog_compiler_static_works_CXX=no
12934
save_LDFLAGS="$LDFLAGS"
12935
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12936
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12937
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12938
# The linker can only warn and ignore the option if not recognized
12939
# So say no if there are warnings
12940
if test -s conftest.err; then
12941
# Append any errors to the config.log.
12942
cat conftest.err 1>&5
12943
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12944
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12945
if diff conftest.exp conftest.er2 >/dev/null; then
12946
lt_cv_prog_compiler_static_works_CXX=yes
12949
lt_cv_prog_compiler_static_works_CXX=yes
12953
LDFLAGS="$save_LDFLAGS"
12956
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12957
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12959
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12962
lt_prog_compiler_static_CXX=
12966
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12967
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12968
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12969
$as_echo_n "(cached) " >&6
12971
lt_cv_prog_compiler_c_o_CXX=no
12972
$rm -r conftest 2>/dev/null
12976
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12978
lt_compiler_flag="-o out/conftest2.$ac_objext"
12979
# Insert the option either (1) after the last *FLAGS variable, or
12980
# (2) before a word containing "conftest.", or (3) at the end.
12981
# Note that $ac_compile itself does not contain backslashes and begins
12982
# with a dollar sign (not a hyphen), so the echo should work correctly.
12983
lt_compile=`echo "$ac_compile" | $SED \
12984
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12985
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12986
-e 's:$: $lt_compiler_flag:'`
12987
(eval echo "\"\$as_me:12987: $lt_compile\"" >&5)
12988
(eval "$lt_compile" 2>out/conftest.err)
12990
cat out/conftest.err >&5
12991
echo "$as_me:12991: \$? = $ac_status" >&5
12992
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12994
# The compiler can only warn and ignore the option if not recognized
12995
# So say no if there are warnings
12996
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12997
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12998
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12999
lt_cv_prog_compiler_c_o_CXX=yes
13004
# SGI C++ compiler will create directory out/ii_files/ for
13005
# template instantiation
13006
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13007
$rm out/* && rmdir out
13013
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13014
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13017
hard_links="nottested"
13018
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13019
# do not overwrite the value of need_locks provided by the user
13020
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13021
$as_echo_n "checking if we can lock with hard links... " >&6; }
13024
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13026
ln conftest.a conftest.b 2>&5 || hard_links=no
13027
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13028
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13029
$as_echo "$hard_links" >&6; }
13030
if test "$hard_links" = no; then
13031
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13032
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13039
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13040
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13042
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13045
# If we're using GNU nm, then we don't want the "-C" option.
13046
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13047
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13048
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'
13050
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'
13054
export_symbols_cmds_CXX="$ltdll_cmds"
13057
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'
13060
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13063
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13065
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13066
$as_echo "$ld_shlibs_CXX" >&6; }
13067
test "$ld_shlibs_CXX" = no && can_build_shared=no
13070
# Do we need to explicitly link libc?
13072
case "x$archive_cmds_need_lc_CXX" in
13074
# Assume -lc should be added
13075
archive_cmds_need_lc_CXX=yes
13077
if test "$enable_shared" = yes && test "$GCC" = yes; then
13078
case $archive_cmds_CXX in
13080
# FIXME: we may have to deal with multi-command sequences.
13083
# Test whether the compiler implicitly links with -lc since on some
13084
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13085
# to ld, don't add -lc before -lgcc.
13086
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13087
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13089
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13091
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13092
(eval $ac_compile) 2>&5
13094
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095
(exit $ac_status); } 2>conftest.err; then
13098
libobjs=conftest.$ac_objext
13100
wl=$lt_prog_compiler_wl_CXX
13101
pic_flag=$lt_prog_compiler_pic_CXX
13107
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13108
allow_undefined_flag_CXX=
13109
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13110
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13112
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113
(exit $ac_status); }
13115
archive_cmds_need_lc_CXX=no
13117
archive_cmds_need_lc_CXX=yes
13119
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13121
cat conftest.err 1>&5
13124
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13125
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13132
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13133
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13134
library_names_spec=
13135
libname_spec='lib$name'
13139
postuninstall_cmds=
13143
shlibpath_overrides_runpath=unknown
13145
dynamic_linker="$host_os ld.so"
13146
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13148
need_lib_prefix=unknown
13149
hardcode_into_libs=no
13151
# when you set need_version to no, make sure it does not cause -set_version
13152
# flags to be left without arguments
13153
need_version=unknown
13158
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13159
shlibpath_var=LIBPATH
13161
# AIX 3 has no versioning support, so we append a major version to the name.
13162
soname_spec='${libname}${release}${shared_ext}$major'
13169
hardcode_into_libs=yes
13170
if test "$host_cpu" = ia64; then
13171
# AIX 5 supports IA64
13172
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13173
shlibpath_var=LD_LIBRARY_PATH
13175
# With GCC up to 2.95.x, collect2 would create an import file
13176
# for dependence libraries. The import file would start with
13177
# the line `#! .'. This would cause the generated library to
13178
# depend on `.', always an invalid library. This was fixed in
13179
# development snapshots of GCC prior to 3.0.
13181
aix4 | aix4.[01] | aix4.[01].*)
13182
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13184
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13187
can_build_shared=no
13191
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13192
# soname into executable. Probably we can add versioning support to
13193
# collect2, so additional links can be useful in future.
13194
if test "$aix_use_runtimelinking" = yes; then
13195
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13196
# instead of lib<name>.a to let people know that these are not
13197
# typical AIX shared libraries.
13198
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13200
# We preserve .a as extension for shared libraries through AIX4.2
13201
# and later when we are not doing run time linking.
13202
library_names_spec='${libname}${release}.a $libname.a'
13203
soname_spec='${libname}${release}${shared_ext}$major'
13205
shlibpath_var=LIBPATH
13210
library_names_spec='$libname.ixlibrary $libname.a'
13211
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13212
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'
13216
library_names_spec='${libname}${shared_ext}'
13217
dynamic_linker="$host_os ld.so"
13218
shlibpath_var=LIBRARY_PATH
13224
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13225
soname_spec='${libname}${release}${shared_ext}$major'
13226
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13227
shlibpath_var=LD_LIBRARY_PATH
13228
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13229
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13230
# the default ld.so.conf also contains /usr/contrib/lib and
13231
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13232
# libtool to hard-code these into programs
13235
cygwin* | mingw* | pw32*)
13236
version_type=windows
13241
case $GCC,$host_os in
13242
yes,cygwin* | yes,mingw* | yes,pw32*)
13243
library_names_spec='$libname.dll.a'
13244
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13245
postinstall_cmds='base_file=`basename \${file}`~
13246
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13247
dldir=$destdir/`dirname \$dlpath`~
13248
test -d \$dldir || mkdir -p \$dldir~
13249
$install_prog $dir/$dlname \$dldir/$dlname~
13250
chmod a+x \$dldir/$dlname'
13251
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13252
dlpath=$dir/\$dldll~
13254
shlibpath_overrides_runpath=yes
13258
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13259
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13260
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13263
# MinGW DLLs use traditional 'lib' prefix
13264
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13265
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13266
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13267
# It is most probably a Windows format PATH printed by
13268
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13269
# path with ; separators, and with drive letters. We can handle the
13270
# drive letters (cygwin fileutils understands them), so leave them,
13271
# especially as we might pass files found there to a mingw objdump,
13272
# which wouldn't understand a cygwinified path. Ahh.
13273
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13275
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13279
# pw32 DLLs use 'pw' prefix rather than 'lib'
13280
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13286
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13289
dynamic_linker='Win32 ld.exe'
13290
# FIXME: first we should search . and the directory the executable is in
13294
darwin* | rhapsody*)
13295
dynamic_linker="$host_os dyld"
13296
version_type=darwin
13299
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13300
soname_spec='${libname}${release}${major}$shared_ext'
13301
shlibpath_overrides_runpath=yes
13302
shlibpath_var=DYLD_LIBRARY_PATH
13303
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13305
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13312
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13313
soname_spec='${libname}${release}${shared_ext}$major'
13314
shlibpath_var=LD_LIBRARY_PATH
13321
freebsd* | dragonfly*)
13322
# DragonFly does not have aout. When/if they implement a new
13323
# versioning mechanism, adjust this.
13324
if test -x /usr/bin/objformat; then
13325
objformat=`/usr/bin/objformat`
13328
freebsd[123]*) objformat=aout ;;
13329
*) objformat=elf ;;
13332
version_type=freebsd-$objformat
13333
case $version_type in
13335
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13340
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13344
shlibpath_var=LD_LIBRARY_PATH
13347
shlibpath_overrides_runpath=yes
13349
freebsd3.[01]* | freebsdelf3.[01]*)
13350
shlibpath_overrides_runpath=yes
13351
hardcode_into_libs=yes
13353
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13354
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13355
shlibpath_overrides_runpath=no
13356
hardcode_into_libs=yes
13358
*) # from 4.6 on, and DragonFly
13359
shlibpath_overrides_runpath=yes
13360
hardcode_into_libs=yes
13369
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13370
soname_spec='${libname}${release}${shared_ext}$major'
13371
shlibpath_var=LD_LIBRARY_PATH
13372
hardcode_into_libs=yes
13375
hpux9* | hpux10* | hpux11*)
13376
# Give a soname corresponding to the major version so that dld.sl refuses to
13377
# link against other versions.
13384
hardcode_into_libs=yes
13385
dynamic_linker="$host_os dld.so"
13386
shlibpath_var=LD_LIBRARY_PATH
13387
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13388
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389
soname_spec='${libname}${release}${shared_ext}$major'
13390
if test "X$HPUX_IA64_MODE" = X32; then
13391
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13393
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13395
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13399
hardcode_into_libs=yes
13400
dynamic_linker="$host_os dld.sl"
13401
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13402
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13403
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13404
soname_spec='${libname}${release}${shared_ext}$major'
13405
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13406
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13410
dynamic_linker="$host_os dld.sl"
13411
shlibpath_var=SHLIB_PATH
13412
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13413
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13414
soname_spec='${libname}${release}${shared_ext}$major'
13417
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13418
postinstall_cmds='chmod 555 $lib'
13425
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13426
soname_spec='${libname}${release}${shared_ext}$major'
13427
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13428
shlibpath_var=LD_LIBRARY_PATH
13429
shlibpath_overrides_runpath=no
13430
hardcode_into_libs=yes
13433
irix5* | irix6* | nonstopux*)
13435
nonstopux*) version_type=nonstopux ;;
13437
if test "$lt_cv_prog_gnu_ld" = yes; then
13445
soname_spec='${libname}${release}${shared_ext}$major'
13446
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13448
irix5* | nonstopux*)
13449
libsuff= shlibsuff=
13452
case $LD in # libtool.m4 will add one of these switches to LD
13453
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13454
libsuff= shlibsuff= libmagic=32-bit;;
13455
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13456
libsuff=32 shlibsuff=N32 libmagic=N32;;
13457
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13458
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13459
*) libsuff= shlibsuff= libmagic=never-match;;
13463
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13464
shlibpath_overrides_runpath=no
13465
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13466
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13467
hardcode_into_libs=yes
13470
# No shared lib support for Linux oldld, aout, or coff.
13471
linux*oldld* | linux*aout* | linux*coff*)
13475
# This must be Linux ELF.
13476
linux* | k*bsd*-gnu)
13480
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13481
soname_spec='${libname}${release}${shared_ext}$major'
13482
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13483
shlibpath_var=LD_LIBRARY_PATH
13484
shlibpath_overrides_runpath=no
13485
# This implies no fast_install, which is unacceptable.
13486
# Some rework will be needed to allow for fast_install
13487
# before this can be enabled.
13488
hardcode_into_libs=yes
13489
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13490
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13492
# Append ld.so.conf contents to the search path
13493
if test -f /etc/ld.so.conf; then
13494
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' ' '`
13495
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13498
# We used to test for /lib/ld.so.1 and disable shared libraries on
13499
# powerpc, because MkLinux only supported shared libraries with the
13500
# GNU dynamic linker. Since this was broken with cross compilers,
13501
# most powerpc-linux boxes support dynamic linking these days and
13502
# people can always --disable-shared, the test was removed, and we
13503
# assume the GNU/Linux dynamic linker is in use.
13504
dynamic_linker='GNU/Linux ld.so'
13511
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13512
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13513
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13514
dynamic_linker='NetBSD (a.out) ld.so'
13516
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13517
soname_spec='${libname}${release}${shared_ext}$major'
13518
dynamic_linker='NetBSD ld.elf_so'
13520
shlibpath_var=LD_LIBRARY_PATH
13521
shlibpath_overrides_runpath=yes
13522
hardcode_into_libs=yes
13527
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13528
shlibpath_var=LD_LIBRARY_PATH
13529
shlibpath_overrides_runpath=yes
13536
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13537
soname_spec='${libname}${release}${shared_ext}$major'
13538
shlibpath_var=LD_LIBRARY_PATH
13539
shlibpath_overrides_runpath=yes
13544
sys_lib_dlsearch_path_spec="/usr/lib"
13546
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13548
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13549
*) need_version=no ;;
13551
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13552
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13553
shlibpath_var=LD_LIBRARY_PATH
13554
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13556
openbsd2.[89] | openbsd2.[89].*)
13557
shlibpath_overrides_runpath=no
13560
shlibpath_overrides_runpath=yes
13564
shlibpath_overrides_runpath=yes
13569
libname_spec='$name'
13572
library_names_spec='$libname${shared_ext} $libname.a'
13573
dynamic_linker='OS/2 ld.exe'
13574
shlibpath_var=LIBPATH
13577
osf3* | osf4* | osf5*)
13581
soname_spec='${libname}${release}${shared_ext}$major'
13582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13583
shlibpath_var=LD_LIBRARY_PATH
13584
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13585
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13596
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13597
soname_spec='${libname}${release}${shared_ext}$major'
13598
shlibpath_var=LD_LIBRARY_PATH
13599
shlibpath_overrides_runpath=yes
13600
hardcode_into_libs=yes
13601
# ldd complains unless libraries are executable
13602
postinstall_cmds='chmod +x $lib'
13607
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13608
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13609
shlibpath_var=LD_LIBRARY_PATH
13610
shlibpath_overrides_runpath=yes
13611
if test "$with_gnu_ld" = yes; then
13619
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13620
soname_spec='${libname}${release}${shared_ext}$major'
13621
shlibpath_var=LD_LIBRARY_PATH
13622
case $host_vendor in
13624
shlibpath_overrides_runpath=no
13626
export_dynamic_flag_spec='${wl}-Blargedynsym'
13627
runpath_var=LD_RUN_PATH
13635
shlibpath_overrides_runpath=no
13636
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13642
if test -d /usr/nec ;then
13644
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13645
soname_spec='$libname${shared_ext}.$major'
13646
shlibpath_var=LD_LIBRARY_PATH
13650
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13651
version_type=freebsd-elf
13654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13655
soname_spec='${libname}${release}${shared_ext}$major'
13656
shlibpath_var=LD_LIBRARY_PATH
13657
hardcode_into_libs=yes
13658
if test "$with_gnu_ld" = yes; then
13659
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13660
shlibpath_overrides_runpath=no
13662
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13663
shlibpath_overrides_runpath=yes
13666
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13670
sys_lib_dlsearch_path_spec='/usr/lib'
13675
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13676
soname_spec='${libname}${release}${shared_ext}$major'
13677
shlibpath_var=LD_LIBRARY_PATH
13684
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13685
$as_echo "$dynamic_linker" >&6; }
13686
test "$dynamic_linker" = no && can_build_shared=no
13688
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13689
$as_echo_n "(cached) " >&6
13691
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13694
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13695
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13696
$as_echo_n "(cached) " >&6
13698
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13701
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13703
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13704
if test "$GCC" = yes; then
13705
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13708
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13709
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13710
hardcode_action_CXX=
13711
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13712
test -n "$runpath_var_CXX" || \
13713
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13715
# We can hardcode non-existant directories.
13716
if test "$hardcode_direct_CXX" != no &&
13717
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13718
# have to relink, otherwise we might link with an installed library
13719
# when we should be linking with a yet-to-be-installed one
13720
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13721
test "$hardcode_minus_L_CXX" != no; then
13722
# Linking always hardcodes the temporary library directory.
13723
hardcode_action_CXX=relink
13725
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13726
hardcode_action_CXX=immediate
13729
# We cannot hardcode anything, or else we can only hardcode existing
13731
hardcode_action_CXX=unsupported
13733
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13734
$as_echo "$hardcode_action_CXX" >&6; }
13736
if test "$hardcode_action_CXX" = relink; then
13737
# Fast installation is not supported
13738
enable_fast_install=no
13739
elif test "$shlibpath_overrides_runpath" = yes ||
13740
test "$enable_shared" = no; then
13741
# Fast installation is not necessary
13742
enable_fast_install=needless
13746
# The else clause should only fire when bootstrapping the
13747
# libtool distribution, otherwise you forgot to ship ltmain.sh
13748
# with your package, and you will get complaints that there are
13749
# no rules to generate ltmain.sh.
13750
if test -f "$ltmain"; then
13751
# See if we are running on zsh, and set the options which allow our commands through
13752
# without removal of \ escapes.
13753
if test -n "${ZSH_VERSION+set}" ; then
13754
setopt NO_GLOB_SUBST
13756
# Now quote all the things that may contain metacharacters while being
13757
# careful not to overquote the AC_SUBSTed values. We take copies of the
13758
# variables and quote the copies for generation of the libtool script.
13759
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13761
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13762
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13763
deplibs_check_method reload_flag reload_cmds need_locks \
13764
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13765
lt_cv_sys_global_symbol_to_c_name_address \
13766
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13767
old_postinstall_cmds old_postuninstall_cmds \
13771
lt_prog_compiler_wl_CXX \
13772
lt_prog_compiler_pic_CXX \
13773
lt_prog_compiler_static_CXX \
13774
lt_prog_compiler_no_builtin_flag_CXX \
13775
export_dynamic_flag_spec_CXX \
13776
thread_safe_flag_spec_CXX \
13777
whole_archive_flag_spec_CXX \
13778
enable_shared_with_static_runtimes_CXX \
13779
old_archive_cmds_CXX \
13780
old_archive_from_new_cmds_CXX \
13781
predep_objects_CXX \
13782
postdep_objects_CXX \
13785
compiler_lib_search_path_CXX \
13786
compiler_lib_search_dirs_CXX \
13788
archive_expsym_cmds_CXX \
13789
postinstall_cmds_CXX \
13790
postuninstall_cmds_CXX \
13791
old_archive_from_expsyms_cmds_CXX \
13792
allow_undefined_flag_CXX \
13793
no_undefined_flag_CXX \
13794
export_symbols_cmds_CXX \
13795
hardcode_libdir_flag_spec_CXX \
13796
hardcode_libdir_flag_spec_ld_CXX \
13797
hardcode_libdir_separator_CXX \
13798
hardcode_automatic_CXX \
13800
module_expsym_cmds_CXX \
13801
lt_cv_prog_compiler_c_o_CXX \
13802
fix_srcfile_path_CXX \
13803
exclude_expsyms_CXX \
13804
include_expsyms_CXX; do
13807
old_archive_cmds_CXX | \
13808
old_archive_from_new_cmds_CXX | \
13809
archive_cmds_CXX | \
13810
archive_expsym_cmds_CXX | \
13811
module_cmds_CXX | \
13812
module_expsym_cmds_CXX | \
13813
old_archive_from_expsyms_cmds_CXX | \
13814
export_symbols_cmds_CXX | \
13815
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13816
postinstall_cmds | postuninstall_cmds | \
13817
old_postinstall_cmds | old_postuninstall_cmds | \
13818
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13819
# Double-quote double-evaled strings.
13820
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13823
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13829
*'\$0 --fallback-echo"')
13830
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13836
cat <<__EOF__ >> "$cfgfile"
13837
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13839
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13841
# Shell to use when invoking shell scripts.
13844
# Whether or not to build shared libraries.
13845
build_libtool_libs=$enable_shared
13847
# Whether or not to build static libraries.
13848
build_old_libs=$enable_static
13850
# Whether or not to add -lc for building shared libraries.
13851
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13853
# Whether or not to disallow shared libs when runtime libs are static
13854
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13856
# Whether or not to optimize for fast installation.
13857
fast_install=$enable_fast_install
13860
host_alias=$host_alias
13864
# The build system.
13865
build_alias=$build_alias
13869
# An echo program that does not interpret backslashes.
13874
AR_FLAGS=$lt_AR_FLAGS
13879
# LTCC compiler flags.
13880
LTCFLAGS=$lt_LTCFLAGS
13882
# A language-specific compiler.
13883
CC=$lt_compiler_CXX
13885
# Is the compiler the GNU C compiler?
13891
# The linker used to build libraries.
13894
# Whether we need hard or soft links.
13897
# A BSD-compatible nm program.
13900
# A symbol stripping program
13903
# Used to examine libraries when file_magic_cmd begins "file"
13904
MAGIC_CMD=$MAGIC_CMD
13906
# Used on cygwin: DLL creation program.
13909
# Used on cygwin: object dumper.
13912
# Used on cygwin: assembler.
13915
# The name of the directory that contains temporary libtool files.
13918
# How to create reloadable object files.
13919
reload_flag=$lt_reload_flag
13920
reload_cmds=$lt_reload_cmds
13922
# How to pass a linker flag through the compiler.
13923
wl=$lt_lt_prog_compiler_wl_CXX
13925
# Object file suffix (normally "o").
13926
objext="$ac_objext"
13928
# Old archive suffix (normally "a").
13931
# Shared library suffix (normally ".so").
13932
shrext_cmds='$shrext_cmds'
13934
# Executable file suffix (normally "").
13937
# Additional compiler flags for building library objects.
13938
pic_flag=$lt_lt_prog_compiler_pic_CXX
13941
# What is the maximum length of a command?
13942
max_cmd_len=$lt_cv_sys_max_cmd_len
13944
# Does compiler simultaneously support -c and -o options?
13945
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13947
# Must we lock files when doing compilation?
13948
need_locks=$lt_need_locks
13950
# Do we need the lib prefix for modules?
13951
need_lib_prefix=$need_lib_prefix
13953
# Do we need a version for libraries?
13954
need_version=$need_version
13956
# Whether dlopen is supported.
13957
dlopen_support=$enable_dlopen
13959
# Whether dlopen of programs is supported.
13960
dlopen_self=$enable_dlopen_self
13962
# Whether dlopen of statically linked programs is supported.
13963
dlopen_self_static=$enable_dlopen_self_static
13965
# Compiler flag to prevent dynamic linking.
13966
link_static_flag=$lt_lt_prog_compiler_static_CXX
13968
# Compiler flag to turn off builtin functions.
13969
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13971
# Compiler flag to allow reflexive dlopens.
13972
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13974
# Compiler flag to generate shared objects directly from archives.
13975
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13977
# Compiler flag to generate thread-safe objects.
13978
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13980
# Library versioning type.
13981
version_type=$version_type
13983
# Format of library name prefix.
13984
libname_spec=$lt_libname_spec
13986
# List of archive names. First name is the real one, the rest are links.
13987
# The last name is the one that the linker finds with -lNAME.
13988
library_names_spec=$lt_library_names_spec
13990
# The coded name of the library, if different from the real name.
13991
soname_spec=$lt_soname_spec
13993
# Commands used to build and install an old-style archive.
13995
old_archive_cmds=$lt_old_archive_cmds_CXX
13996
old_postinstall_cmds=$lt_old_postinstall_cmds
13997
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13999
# Create an old-style archive from a shared archive.
14000
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14002
# Create a temporary old-style archive to link instead of a shared archive.
14003
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14005
# Commands used to build and install a shared archive.
14006
archive_cmds=$lt_archive_cmds_CXX
14007
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14008
postinstall_cmds=$lt_postinstall_cmds
14009
postuninstall_cmds=$lt_postuninstall_cmds
14011
# Commands used to build a loadable module (assumed same as above if empty)
14012
module_cmds=$lt_module_cmds_CXX
14013
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14015
# Commands to strip libraries.
14016
old_striplib=$lt_old_striplib
14017
striplib=$lt_striplib
14019
# Dependencies to place before the objects being linked to create a
14021
predep_objects=$lt_predep_objects_CXX
14023
# Dependencies to place after the objects being linked to create a
14025
postdep_objects=$lt_postdep_objects_CXX
14027
# Dependencies to place before the objects being linked to create a
14029
predeps=$lt_predeps_CXX
14031
# Dependencies to place after the objects being linked to create a
14033
postdeps=$lt_postdeps_CXX
14035
# The directories searched by this compiler when creating a shared
14037
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14039
# The library search path used internally by the compiler when linking
14040
# a shared library.
14041
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14043
# Method to check whether dependent libraries are shared objects.
14044
deplibs_check_method=$lt_deplibs_check_method
14046
# Command to use when deplibs_check_method == file_magic.
14047
file_magic_cmd=$lt_file_magic_cmd
14049
# Flag that allows shared libraries with undefined symbols to be built.
14050
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14052
# Flag that forces no undefined symbols.
14053
no_undefined_flag=$lt_no_undefined_flag_CXX
14055
# Commands used to finish a libtool library installation in a directory.
14056
finish_cmds=$lt_finish_cmds
14058
# Same as above, but a single script fragment to be evaled but not shown.
14059
finish_eval=$lt_finish_eval
14061
# Take the output of nm and produce a listing of raw symbols and C names.
14062
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14064
# Transform the output of nm in a proper C declaration
14065
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14067
# Transform the output of nm in a C name address pair
14068
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14070
# This is the shared library runtime path variable.
14071
runpath_var=$runpath_var
14073
# This is the shared library path variable.
14074
shlibpath_var=$shlibpath_var
14076
# Is shlibpath searched before the hard-coded library search path?
14077
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14079
# How to hardcode a shared library path into an executable.
14080
hardcode_action=$hardcode_action_CXX
14082
# Whether we should hardcode library paths into libraries.
14083
hardcode_into_libs=$hardcode_into_libs
14085
# Flag to hardcode \$libdir into a binary during linking.
14086
# This must work even if \$libdir does not exist.
14087
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14089
# If ld is used when linking, flag to hardcode \$libdir into
14090
# a binary during linking. This must work even if \$libdir does
14092
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14094
# Whether we need a single -rpath flag with a separated argument.
14095
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14097
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14098
# resulting binary.
14099
hardcode_direct=$hardcode_direct_CXX
14101
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14102
# resulting binary.
14103
hardcode_minus_L=$hardcode_minus_L_CXX
14105
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14106
# the resulting binary.
14107
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14109
# Set to yes if building a shared library automatically hardcodes DIR into the library
14110
# and all subsequent libraries and executables linked against it.
14111
hardcode_automatic=$hardcode_automatic_CXX
14113
# Variables whose values should be saved in libtool wrapper scripts and
14114
# restored at relink time.
14115
variables_saved_for_relink="$variables_saved_for_relink"
14117
# Whether libtool must link a program against all its dependency libraries.
14118
link_all_deplibs=$link_all_deplibs_CXX
14120
# Compile-time system search path for libraries
14121
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14123
# Run-time system search path for libraries
14124
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14126
# Fix the shell variable \$srcfile for the compiler.
14127
fix_srcfile_path=$lt_fix_srcfile_path
14129
# Set to yes if exported symbols are required.
14130
always_export_symbols=$always_export_symbols_CXX
14132
# The commands to list exported symbols.
14133
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14135
# The commands to extract the exported symbol list from a shared archive.
14136
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14138
# Symbols that should not be listed in the preloaded symbols.
14139
exclude_expsyms=$lt_exclude_expsyms_CXX
14141
# Symbols that must always be exported.
14142
include_expsyms=$lt_include_expsyms_CXX
14144
# ### END LIBTOOL TAG CONFIG: $tagname
14150
# If there is no Makefile yet, we rely on a make rule to execute
14151
# `config.status --recheck' to rerun these tests and create the
14152
# libtool script then.
14153
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14154
if test -f "$ltmain_in"; then
14155
test -f Makefile && make "$ltmain"
14161
ac_cpp='$CPP $CPPFLAGS'
14162
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14163
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14164
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14170
with_gnu_ldcxx=$with_gnu_ld
14171
with_gnu_ld=$lt_save_with_gnu_ld
14172
lt_cv_path_LDCXX=$lt_cv_path_LD
14173
lt_cv_path_LD=$lt_save_path_LD
14174
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14175
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14183
if test -n "$F77" && test "X$F77" != "Xno"; then
14186
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14187
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14188
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14191
archive_cmds_need_lc_F77=no
14192
allow_undefined_flag_F77=
14193
always_export_symbols_F77=no
14194
archive_expsym_cmds_F77=
14195
export_dynamic_flag_spec_F77=
14196
hardcode_direct_F77=no
14197
hardcode_libdir_flag_spec_F77=
14198
hardcode_libdir_flag_spec_ld_F77=
14199
hardcode_libdir_separator_F77=
14200
hardcode_minus_L_F77=no
14201
hardcode_automatic_F77=no
14203
module_expsym_cmds_F77=
14204
link_all_deplibs_F77=unknown
14205
old_archive_cmds_F77=$old_archive_cmds
14206
no_undefined_flag_F77=
14207
whole_archive_flag_spec_F77=
14208
enable_shared_with_static_runtimes_F77=no
14210
# Source file extension for f77 test sources.
14213
# Object file extension for compiled f77 test sources.
14217
# Code to be used in simple compile tests
14218
lt_simple_compile_test_code="\
14224
# Code to be used in simple link tests
14225
lt_simple_link_test_code="\
14230
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14232
# If no C compiler was specified, use CC.
14235
# If no C compiler flags were specified, use CFLAGS.
14236
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14238
# Allow CC to be a program name with arguments.
14242
# save warnings/boilerplate of simple test code
14243
ac_outfile=conftest.$ac_objext
14244
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14245
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14246
_lt_compiler_boilerplate=`cat conftest.err`
14249
ac_outfile=conftest.$ac_objext
14250
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14251
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14252
_lt_linker_boilerplate=`cat conftest.err`
14256
# Allow CC to be a program name with arguments.
14261
for cc_temp in $compiler""; do
14263
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14264
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14269
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14272
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14273
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14274
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14275
$as_echo "$can_build_shared" >&6; }
14277
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14278
$as_echo_n "checking whether to build shared libraries... " >&6; }
14279
test "$can_build_shared" = "no" && enable_shared=no
14281
# On AIX, shared libraries and static libraries use the same namespace, and
14282
# are all built from PIC.
14285
test "$enable_shared" = yes && enable_static=no
14286
if test -n "$RANLIB"; then
14287
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14288
postinstall_cmds='$RANLIB $lib'
14292
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14293
test "$enable_shared" = yes && enable_static=no
14297
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14298
$as_echo "$enable_shared" >&6; }
14300
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14301
$as_echo_n "checking whether to build static libraries... " >&6; }
14302
# Make sure either enable_shared or enable_static is yes.
14303
test "$enable_shared" = yes || enable_static=yes
14304
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14305
$as_echo "$enable_static" >&6; }
14310
lt_prog_compiler_wl_F77=
14311
lt_prog_compiler_pic_F77=
14312
lt_prog_compiler_static_F77=
14314
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14315
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14317
if test "$GCC" = yes; then
14318
lt_prog_compiler_wl_F77='-Wl,'
14319
lt_prog_compiler_static_F77='-static'
14323
# All AIX code is PIC.
14324
if test "$host_cpu" = ia64; then
14325
# AIX 5 now supports IA64 processor
14326
lt_prog_compiler_static_F77='-Bstatic'
14331
# FIXME: we need at least 68020 code to build shared libraries, but
14332
# adding the `-m68020' flag to GCC prevents building anything better,
14334
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14337
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14338
# PIC is the default for these OSes.
14341
mingw* | cygwin* | pw32* | os2*)
14342
# This hack is so that the source file can tell whether it is being
14343
# built for inclusion in a dll (and should export symbols for example).
14344
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14345
# (--disable-auto-import) libraries
14346
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14349
darwin* | rhapsody*)
14350
# PIC is the default on this platform
14351
# Common symbols not allowed in MH_DYLIB files
14352
lt_prog_compiler_pic_F77='-fno-common'
14356
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14357
# Instead, we relocate shared libraries at runtime.
14361
# Just because we use GCC doesn't mean we suddenly get shared libraries
14362
# on systems that don't support them.
14363
lt_prog_compiler_can_build_shared_F77=no
14368
if test -d /usr/nec; then
14369
lt_prog_compiler_pic_F77=-Kconform_pic
14374
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14375
# not for PA HP-UX.
14381
lt_prog_compiler_pic_F77='-fPIC'
14387
lt_prog_compiler_pic_F77='-fPIC'
14391
# PORTME Check for flag to pass linker flags through the system compiler.
14394
lt_prog_compiler_wl_F77='-Wl,'
14395
if test "$host_cpu" = ia64; then
14396
# AIX 5 now supports IA64 processor
14397
lt_prog_compiler_static_F77='-Bstatic'
14399
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14403
# PIC is the default on this platform
14404
# Common symbols not allowed in MH_DYLIB files
14405
case $cc_basename in
14407
lt_prog_compiler_pic_F77='-qnocommon'
14408
lt_prog_compiler_wl_F77='-Wl,'
14413
mingw* | cygwin* | pw32* | os2*)
14414
# This hack is so that the source file can tell whether it is being
14415
# built for inclusion in a dll (and should export symbols for example).
14416
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14419
hpux9* | hpux10* | hpux11*)
14420
lt_prog_compiler_wl_F77='-Wl,'
14421
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14422
# not for PA HP-UX.
14428
lt_prog_compiler_pic_F77='+Z'
14431
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14432
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14435
irix5* | irix6* | nonstopux*)
14436
lt_prog_compiler_wl_F77='-Wl,'
14437
# PIC (with -KPIC) is the default.
14438
lt_prog_compiler_static_F77='-non_shared'
14442
lt_prog_compiler_pic_F77='-KPIC'
14443
lt_prog_compiler_static_F77='-Bstatic'
14446
linux* | k*bsd*-gnu)
14447
case $cc_basename in
14449
lt_prog_compiler_wl_F77='-Wl,'
14450
lt_prog_compiler_pic_F77='-KPIC'
14451
lt_prog_compiler_static_F77='-static'
14453
pgcc* | pgf77* | pgf90* | pgf95*)
14454
# Portland Group compilers (*not* the Pentium gcc compiler,
14455
# which looks to be a dead project)
14456
lt_prog_compiler_wl_F77='-Wl,'
14457
lt_prog_compiler_pic_F77='-fpic'
14458
lt_prog_compiler_static_F77='-Bstatic'
14461
lt_prog_compiler_wl_F77='-Wl,'
14462
# All Alpha code is PIC.
14463
lt_prog_compiler_static_F77='-non_shared'
14466
case `$CC -V 2>&1 | sed 5q` in
14469
lt_prog_compiler_pic_F77='-KPIC'
14470
lt_prog_compiler_static_F77='-Bstatic'
14471
lt_prog_compiler_wl_F77='-Wl,'
14474
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14475
lt_prog_compiler_pic_F77='-KPIC'
14476
lt_prog_compiler_static_F77='-Bstatic'
14477
lt_prog_compiler_wl_F77=''
14484
osf3* | osf4* | osf5*)
14485
lt_prog_compiler_wl_F77='-Wl,'
14486
# All OSF/1 code is PIC.
14487
lt_prog_compiler_static_F77='-non_shared'
14491
lt_prog_compiler_static_F77='-non_shared'
14495
lt_prog_compiler_pic_F77='-KPIC'
14496
lt_prog_compiler_static_F77='-Bstatic'
14497
case $cc_basename in
14498
f77* | f90* | f95*)
14499
lt_prog_compiler_wl_F77='-Qoption ld ';;
14501
lt_prog_compiler_wl_F77='-Wl,';;
14506
lt_prog_compiler_wl_F77='-Qoption ld '
14507
lt_prog_compiler_pic_F77='-PIC'
14508
lt_prog_compiler_static_F77='-Bstatic'
14511
sysv4 | sysv4.2uw2* | sysv4.3*)
14512
lt_prog_compiler_wl_F77='-Wl,'
14513
lt_prog_compiler_pic_F77='-KPIC'
14514
lt_prog_compiler_static_F77='-Bstatic'
14518
if test -d /usr/nec ;then
14519
lt_prog_compiler_pic_F77='-Kconform_pic'
14520
lt_prog_compiler_static_F77='-Bstatic'
14524
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14525
lt_prog_compiler_wl_F77='-Wl,'
14526
lt_prog_compiler_pic_F77='-KPIC'
14527
lt_prog_compiler_static_F77='-Bstatic'
14531
lt_prog_compiler_wl_F77='-Wl,'
14532
lt_prog_compiler_can_build_shared_F77=no
14536
lt_prog_compiler_pic_F77='-pic'
14537
lt_prog_compiler_static_F77='-Bstatic'
14541
lt_prog_compiler_can_build_shared_F77=no
14546
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14547
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14550
# Check to make sure the PIC flag actually works.
14552
if test -n "$lt_prog_compiler_pic_F77"; then
14554
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14555
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14556
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14557
$as_echo_n "(cached) " >&6
14559
lt_cv_prog_compiler_pic_works_F77=no
14560
ac_outfile=conftest.$ac_objext
14561
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14562
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14563
# Insert the option either (1) after the last *FLAGS variable, or
14564
# (2) before a word containing "conftest.", or (3) at the end.
14565
# Note that $ac_compile itself does not contain backslashes and begins
14566
# with a dollar sign (not a hyphen), so the echo should work correctly.
14567
# The option is referenced via a variable to avoid confusing sed.
14568
lt_compile=`echo "$ac_compile" | $SED \
14569
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14570
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14571
-e 's:$: $lt_compiler_flag:'`
14572
(eval echo "\"\$as_me:14572: $lt_compile\"" >&5)
14573
(eval "$lt_compile" 2>conftest.err)
14575
cat conftest.err >&5
14576
echo "$as_me:14576: \$? = $ac_status" >&5
14577
if (exit $ac_status) && test -s "$ac_outfile"; then
14578
# The compiler can only warn and ignore the option if not recognized
14579
# So say no if there are warnings other than the usual output.
14580
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14581
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14582
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14583
lt_cv_prog_compiler_pic_works_F77=yes
14589
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14590
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14592
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14593
case $lt_prog_compiler_pic_F77 in
14595
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14598
lt_prog_compiler_pic_F77=
14599
lt_prog_compiler_can_build_shared_F77=no
14604
# For platforms which do not support PIC, -DPIC is meaningless:
14606
lt_prog_compiler_pic_F77=
14609
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14614
# Check to make sure the static flag actually works.
14616
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14617
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14618
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14619
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14620
$as_echo_n "(cached) " >&6
14622
lt_cv_prog_compiler_static_works_F77=no
14623
save_LDFLAGS="$LDFLAGS"
14624
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14625
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14626
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14627
# The linker can only warn and ignore the option if not recognized
14628
# So say no if there are warnings
14629
if test -s conftest.err; then
14630
# Append any errors to the config.log.
14631
cat conftest.err 1>&5
14632
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14633
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14634
if diff conftest.exp conftest.er2 >/dev/null; then
14635
lt_cv_prog_compiler_static_works_F77=yes
14638
lt_cv_prog_compiler_static_works_F77=yes
14642
LDFLAGS="$save_LDFLAGS"
14645
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14646
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14648
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14651
lt_prog_compiler_static_F77=
14655
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14656
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14657
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14658
$as_echo_n "(cached) " >&6
14660
lt_cv_prog_compiler_c_o_F77=no
14661
$rm -r conftest 2>/dev/null
14665
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14667
lt_compiler_flag="-o out/conftest2.$ac_objext"
14668
# Insert the option either (1) after the last *FLAGS variable, or
14669
# (2) before a word containing "conftest.", or (3) at the end.
14670
# Note that $ac_compile itself does not contain backslashes and begins
14671
# with a dollar sign (not a hyphen), so the echo should work correctly.
14672
lt_compile=`echo "$ac_compile" | $SED \
14673
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14674
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14675
-e 's:$: $lt_compiler_flag:'`
14676
(eval echo "\"\$as_me:14676: $lt_compile\"" >&5)
14677
(eval "$lt_compile" 2>out/conftest.err)
14679
cat out/conftest.err >&5
14680
echo "$as_me:14680: \$? = $ac_status" >&5
14681
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14683
# The compiler can only warn and ignore the option if not recognized
14684
# So say no if there are warnings
14685
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14686
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14687
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14688
lt_cv_prog_compiler_c_o_F77=yes
14693
# SGI C++ compiler will create directory out/ii_files/ for
14694
# template instantiation
14695
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14696
$rm out/* && rmdir out
14702
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14703
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14706
hard_links="nottested"
14707
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14708
# do not overwrite the value of need_locks provided by the user
14709
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14710
$as_echo_n "checking if we can lock with hard links... " >&6; }
14713
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14715
ln conftest.a conftest.b 2>&5 || hard_links=no
14716
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14717
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14718
$as_echo "$hard_links" >&6; }
14719
if test "$hard_links" = no; then
14720
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14721
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14728
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14729
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14732
allow_undefined_flag_F77=
14733
enable_shared_with_static_runtimes_F77=no
14735
archive_expsym_cmds_F77=
14736
old_archive_From_new_cmds_F77=
14737
old_archive_from_expsyms_cmds_F77=
14738
export_dynamic_flag_spec_F77=
14739
whole_archive_flag_spec_F77=
14740
thread_safe_flag_spec_F77=
14741
hardcode_libdir_flag_spec_F77=
14742
hardcode_libdir_flag_spec_ld_F77=
14743
hardcode_libdir_separator_F77=
14744
hardcode_direct_F77=no
14745
hardcode_minus_L_F77=no
14746
hardcode_shlibpath_var_F77=unsupported
14747
link_all_deplibs_F77=unknown
14748
hardcode_automatic_F77=no
14750
module_expsym_cmds_F77=
14751
always_export_symbols_F77=no
14752
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14753
# include_expsyms should be a list of space-separated symbols to be *always*
14754
# included in the symbol list
14755
include_expsyms_F77=
14756
# exclude_expsyms can be an extended regexp of symbols to exclude
14757
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14758
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14759
# as well as any symbol that contains `d'.
14760
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14761
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14762
# platforms (ab)use it in PIC code, but their linkers get confused if
14763
# the symbol is explicitly referenced. Since portable code cannot
14764
# rely on this symbol name, it's probably fine to never include it in
14765
# preloaded symbol tables.
14766
# Exclude shared library initialization/finalization symbols.
14767
extract_expsyms_cmds=
14768
# Just being paranoid about ensuring that cc_basename is set.
14769
for cc_temp in $compiler""; do
14771
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14772
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14777
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14780
cygwin* | mingw* | pw32*)
14781
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14782
# When not using gcc, we currently assume that we are using
14783
# Microsoft Visual C++.
14784
if test "$GCC" != yes; then
14789
# we just hope/assume this is gcc and not c89 (= MSVC++)
14798
if test "$with_gnu_ld" = yes; then
14799
# If archive_cmds runs LD, not CC, wlarc should be empty
14802
# Set some defaults for GNU ld with shared library support. These
14803
# are reset later if shared libraries are not supported. Putting them
14804
# here allows them to be overridden if necessary.
14805
runpath_var=LD_RUN_PATH
14806
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14807
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14808
# ancient GNU ld didn't support --whole-archive et. al.
14809
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14810
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14812
whole_archive_flag_spec_F77=
14814
supports_anon_versioning=no
14815
case `$LD -v 2>/dev/null` in
14816
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14817
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14818
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14819
*\ 2.11.*) ;; # other 2.11 versions
14820
*) supports_anon_versioning=yes ;;
14823
# See if GNU ld supports shared libraries.
14826
# On AIX/PPC, the GNU linker is very broken
14827
if test "$host_cpu" != ia64; then
14831
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14832
*** to be unable to reliably create shared libraries on AIX.
14833
*** Therefore, libtool is disabling shared libraries support. If you
14834
*** really care for shared libraries, you may want to modify your PATH
14835
*** so that a non-GNU linker is found, and then restart.
14842
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)'
14843
hardcode_libdir_flag_spec_F77='-L$libdir'
14844
hardcode_minus_L_F77=yes
14846
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14847
# that the semantics of dynamic libraries on AmigaOS, at least up
14848
# to version 4, is to share data among multiple programs linked
14849
# with the same dynamic library. Since this doesn't match the
14850
# behavior of shared libraries on other platforms, we can't use
14856
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14857
allow_undefined_flag_F77=unsupported
14858
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14859
# support --undefined. This deserves some investigation. FIXME
14860
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14866
cygwin* | mingw* | pw32*)
14867
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14868
# as there is no search path for DLLs.
14869
hardcode_libdir_flag_spec_F77='-L$libdir'
14870
allow_undefined_flag_F77=unsupported
14871
always_export_symbols_F77=no
14872
enable_shared_with_static_runtimes_F77=yes
14873
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14875
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14876
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14877
# If the export-symbols file already is a .def file (1st line
14878
# is EXPORTS), use it as is; otherwise, prepend...
14879
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14880
cp $export_symbols $output_objdir/$soname.def;
14882
echo EXPORTS > $output_objdir/$soname.def;
14883
cat $export_symbols >> $output_objdir/$soname.def;
14885
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14892
hardcode_direct_F77=no
14893
hardcode_shlibpath_var_F77=no
14894
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14895
export_dynamic_flag_spec_F77='${wl}-E'
14896
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14897
# Instead, shared libraries are loaded at an image base (0x10000000 by
14898
# default) and relocated if they conflict, which is a slow very memory
14899
# consuming and fragmenting process. To avoid this, we pick a random,
14900
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14901
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14902
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'
14903
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'
14906
gnu* | linux* | k*bsd*-gnu)
14907
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14909
case $cc_basename,$host_cpu in
14910
pgcc*) # Portland Group C compiler
14911
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'
14912
tmp_addflag=' $pic_flag'
14914
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14915
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'
14916
tmp_addflag=' $pic_flag -Mnomain' ;;
14917
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14918
tmp_addflag=' -i_dynamic' ;;
14919
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14920
tmp_addflag=' -i_dynamic -nofor_main' ;;
14921
ifc* | ifort*) # Intel Fortran compiler
14922
tmp_addflag=' -nofor_main' ;;
14924
case `$CC -V 2>&1 | sed 5q` in
14925
*Sun\ C*) # Sun C 5.9
14926
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'
14927
tmp_sharedflag='-G' ;;
14928
*Sun\ F*) # Sun Fortran 8.3
14929
tmp_sharedflag='-G' ;;
14931
tmp_sharedflag='-shared' ;;
14933
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14935
if test $supports_anon_versioning = yes; then
14936
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14937
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14938
$echo "local: *; };" >> $output_objdir/$libname.ver~
14939
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14947
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14948
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14951
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14952
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14957
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14961
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14962
*** create shared libraries on Solaris systems. Therefore, libtool
14963
*** is disabling shared libraries support. We urge you to upgrade GNU
14964
*** binutils to release 2.9.1 or newer. Another option is to modify
14965
*** your PATH or compiler configuration so that the native linker is
14966
*** used, and then restart.
14969
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14970
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14971
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14977
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14978
case `$LD -v 2>&1` in
14979
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14983
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14984
*** reliably create shared libraries on SCO systems. Therefore, libtool
14985
*** is disabling shared libraries support. We urge you to upgrade GNU
14986
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14987
*** your PATH or compiler configuration so that the native linker is
14988
*** used, and then restart.
14993
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14994
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14995
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14996
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15005
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15007
hardcode_direct_F77=yes
15008
hardcode_shlibpath_var_F77=no
15012
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15013
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15014
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15021
if test "$ld_shlibs_F77" = no; then
15023
hardcode_libdir_flag_spec_F77=
15024
export_dynamic_flag_spec_F77=
15025
whole_archive_flag_spec_F77=
15028
# PORTME fill in a description of your system's linker (not GNU ld)
15031
allow_undefined_flag_F77=unsupported
15032
always_export_symbols_F77=yes
15033
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'
15034
# Note: this linker hardcodes the directories in LIBPATH if there
15035
# are no directories specified by -L.
15036
hardcode_minus_L_F77=yes
15037
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15038
# Neither direct hardcoding nor static linking is supported with a
15040
hardcode_direct_F77=unsupported
15045
if test "$host_cpu" = ia64; then
15046
# On IA64, the linker does run time linking by default, so we don't
15047
# have to do anything special.
15048
aix_use_runtimelinking=no
15049
exp_sym_flag='-Bexport'
15052
# If we're using GNU nm, then we don't want the "-C" option.
15053
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15054
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15055
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'
15057
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'
15059
aix_use_runtimelinking=no
15061
# Test if we are trying to use run time linking or normal
15062
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15063
# need to do runtime linking.
15064
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15065
for ld_flag in $LDFLAGS; do
15066
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15067
aix_use_runtimelinking=yes
15074
exp_sym_flag='-bexport'
15075
no_entry_flag='-bnoentry'
15078
# When large executables or shared objects are built, AIX ld can
15079
# have problems creating the table of contents. If linking a library
15080
# or program results in "error TOC overflow" add -mminimal-toc to
15081
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15082
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15084
archive_cmds_F77=''
15085
hardcode_direct_F77=yes
15086
hardcode_libdir_separator_F77=':'
15087
link_all_deplibs_F77=yes
15089
if test "$GCC" = yes; then
15090
case $host_os in aix4.[012]|aix4.[012].*)
15091
# We only want to do this on AIX 4.2 and lower, the check
15092
# below for broken collect2 doesn't work under 4.3+
15093
collect2name=`${CC} -print-prog-name=collect2`
15094
if test -f "$collect2name" && \
15095
strings "$collect2name" | grep resolve_lib_name >/dev/null
15097
# We have reworked collect2
15100
# We have old collect2
15101
hardcode_direct_F77=unsupported
15102
# It fails to find uninstalled libraries when the uninstalled
15103
# path is not listed in the libpath. Setting hardcode_minus_L
15104
# to unsupported forces relinking
15105
hardcode_minus_L_F77=yes
15106
hardcode_libdir_flag_spec_F77='-L$libdir'
15107
hardcode_libdir_separator_F77=
15111
shared_flag='-shared'
15112
if test "$aix_use_runtimelinking" = yes; then
15113
shared_flag="$shared_flag "'${wl}-G'
15117
if test "$host_cpu" = ia64; then
15118
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15119
# chokes on -Wl,-G. The following line is correct:
15122
if test "$aix_use_runtimelinking" = yes; then
15123
shared_flag='${wl}-G'
15125
shared_flag='${wl}-bM:SRE'
15130
# It seems that -bexpall does not export symbols beginning with
15131
# underscore (_), so it is better to generate a list of symbols to export.
15132
always_export_symbols_F77=yes
15133
if test "$aix_use_runtimelinking" = yes; then
15134
# Warning - without using the other runtime loading flags (-brtl),
15135
# -berok will link without error, but may produce a broken library.
15136
allow_undefined_flag_F77='-berok'
15137
# Determine the default libpath from the value encoded in an empty executable.
15138
cat >conftest.$ac_ext <<_ACEOF
15143
rm -f conftest.$ac_objext conftest$ac_exeext
15144
if { (ac_try="$ac_link"
15145
case "(($ac_try" in
15146
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147
*) ac_try_echo=$ac_try;;
15149
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15150
$as_echo "$ac_try_echo") >&5
15151
(eval "$ac_link") 2>conftest.er1
15153
grep -v '^ *+' conftest.er1 >conftest.err
15155
cat conftest.err >&5
15156
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157
(exit $ac_status); } && {
15158
test -z "$ac_f77_werror_flag" ||
15159
test ! -s conftest.err
15160
} && test -s conftest$ac_exeext && {
15161
test "$cross_compiling" = yes ||
15162
$as_test_x conftest$ac_exeext
15165
lt_aix_libpath_sed='
15166
/Import File Strings/,/^$/ {
15172
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15173
# Check for a 64-bit object if we didn't find anything.
15174
if test -z "$aix_libpath"; then
15175
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15178
$as_echo "$as_me: failed program was:" >&5
15179
sed 's/^/| /' conftest.$ac_ext >&5
15184
rm -rf conftest.dSYM
15185
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15186
conftest$ac_exeext conftest.$ac_ext
15187
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15189
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15190
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"
15192
if test "$host_cpu" = ia64; then
15193
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15194
allow_undefined_flag_F77="-z nodefs"
15195
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"
15197
# Determine the default libpath from the value encoded in an empty executable.
15198
cat >conftest.$ac_ext <<_ACEOF
15203
rm -f conftest.$ac_objext conftest$ac_exeext
15204
if { (ac_try="$ac_link"
15205
case "(($ac_try" in
15206
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207
*) ac_try_echo=$ac_try;;
15209
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15210
$as_echo "$ac_try_echo") >&5
15211
(eval "$ac_link") 2>conftest.er1
15213
grep -v '^ *+' conftest.er1 >conftest.err
15215
cat conftest.err >&5
15216
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217
(exit $ac_status); } && {
15218
test -z "$ac_f77_werror_flag" ||
15219
test ! -s conftest.err
15220
} && test -s conftest$ac_exeext && {
15221
test "$cross_compiling" = yes ||
15222
$as_test_x conftest$ac_exeext
15225
lt_aix_libpath_sed='
15226
/Import File Strings/,/^$/ {
15232
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15233
# Check for a 64-bit object if we didn't find anything.
15234
if test -z "$aix_libpath"; then
15235
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15238
$as_echo "$as_me: failed program was:" >&5
15239
sed 's/^/| /' conftest.$ac_ext >&5
15244
rm -rf conftest.dSYM
15245
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15246
conftest$ac_exeext conftest.$ac_ext
15247
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15249
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15250
# Warning - without using the other run time loading flags,
15251
# -berok will link without error, but may produce a broken library.
15252
no_undefined_flag_F77=' ${wl}-bernotok'
15253
allow_undefined_flag_F77=' ${wl}-berok'
15254
# Exported symbols can be pulled into shared objects from archives
15255
whole_archive_flag_spec_F77='$convenience'
15256
archive_cmds_need_lc_F77=yes
15257
# This is similar to how AIX traditionally builds its shared libraries.
15258
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'
15264
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)'
15265
hardcode_libdir_flag_spec_F77='-L$libdir'
15266
hardcode_minus_L_F77=yes
15267
# see comment about different semantics on the GNU ld section
15272
export_dynamic_flag_spec_F77=-rdynamic
15275
cygwin* | mingw* | pw32*)
15276
# When not using gcc, we currently assume that we are using
15277
# Microsoft Visual C++.
15278
# hardcode_libdir_flag_spec is actually meaningless, as there is
15279
# no search path for DLLs.
15280
hardcode_libdir_flag_spec_F77=' '
15281
allow_undefined_flag_F77=unsupported
15282
# Tell ltmain to make .lib files, not .a files.
15284
# Tell ltmain to make .dll files, not .so files.
15286
# FIXME: Setting linknames here is a bad hack.
15287
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15288
# The linker will automatically build a .lib file if we build a DLL.
15289
old_archive_From_new_cmds_F77='true'
15290
# FIXME: Should let the user specify the lib program.
15291
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15292
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15293
enable_shared_with_static_runtimes_F77=yes
15296
darwin* | rhapsody*)
15298
rhapsody* | darwin1.[012])
15299
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15302
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15303
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15305
case ${MACOSX_DEPLOYMENT_TARGET} in
15307
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15310
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15316
archive_cmds_need_lc_F77=no
15317
hardcode_direct_F77=no
15318
hardcode_automatic_F77=yes
15319
hardcode_shlibpath_var_F77=unsupported
15320
whole_archive_flag_spec_F77=''
15321
link_all_deplibs_F77=yes
15322
if test "$GCC" = yes ; then
15323
output_verbose_link_cmd='echo'
15324
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}"
15325
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15326
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}"
15327
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}"
15329
case $cc_basename in
15331
output_verbose_link_cmd='echo'
15332
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15333
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15334
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15335
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}'
15336
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}'
15346
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15347
hardcode_libdir_flag_spec_F77='-L$libdir'
15348
hardcode_shlibpath_var_F77=no
15355
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15356
# support. Future versions do this automatically, but an explicit c++rt0.o
15357
# does not break anything, and helps significantly (at the cost of a little
15360
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15361
hardcode_libdir_flag_spec_F77='-R$libdir'
15362
hardcode_direct_F77=yes
15363
hardcode_shlibpath_var_F77=no
15366
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15368
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15369
hardcode_direct_F77=yes
15370
hardcode_minus_L_F77=yes
15371
hardcode_shlibpath_var_F77=no
15374
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15375
freebsd* | dragonfly*)
15376
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15377
hardcode_libdir_flag_spec_F77='-R$libdir'
15378
hardcode_direct_F77=yes
15379
hardcode_shlibpath_var_F77=no
15383
if test "$GCC" = yes; then
15384
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'
15386
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'
15388
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15389
hardcode_libdir_separator_F77=:
15390
hardcode_direct_F77=yes
15392
# hardcode_minus_L: Not really in the search PATH,
15393
# but as the default location of the library.
15394
hardcode_minus_L_F77=yes
15395
export_dynamic_flag_spec_F77='${wl}-E'
15399
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15400
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15402
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15404
if test "$with_gnu_ld" = no; then
15405
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15406
hardcode_libdir_separator_F77=:
15408
hardcode_direct_F77=yes
15409
export_dynamic_flag_spec_F77='${wl}-E'
15411
# hardcode_minus_L: Not really in the search PATH,
15412
# but as the default location of the library.
15413
hardcode_minus_L_F77=yes
15418
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15421
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15424
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15427
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15433
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15436
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15439
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15443
if test "$with_gnu_ld" = no; then
15444
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15445
hardcode_libdir_separator_F77=:
15449
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15450
hardcode_direct_F77=no
15451
hardcode_shlibpath_var_F77=no
15454
hardcode_direct_F77=yes
15455
export_dynamic_flag_spec_F77='${wl}-E'
15457
# hardcode_minus_L: Not really in the search PATH,
15458
# but as the default location of the library.
15459
hardcode_minus_L_F77=yes
15465
irix5* | irix6* | nonstopux*)
15466
if test "$GCC" = yes; then
15467
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'
15469
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'
15470
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15472
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15473
hardcode_libdir_separator_F77=:
15474
link_all_deplibs_F77=yes
15478
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15479
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15481
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15483
hardcode_libdir_flag_spec_F77='-R$libdir'
15484
hardcode_direct_F77=yes
15485
hardcode_shlibpath_var_F77=no
15489
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15490
hardcode_direct_F77=yes
15491
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15492
hardcode_libdir_separator_F77=:
15493
hardcode_shlibpath_var_F77=no
15497
if test -f /usr/libexec/ld.so; then
15498
hardcode_direct_F77=yes
15499
hardcode_shlibpath_var_F77=no
15500
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15501
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15502
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15503
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15504
export_dynamic_flag_spec_F77='${wl}-E'
15507
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15508
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15509
hardcode_libdir_flag_spec_F77='-R$libdir'
15512
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15513
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15523
hardcode_libdir_flag_spec_F77='-L$libdir'
15524
hardcode_minus_L_F77=yes
15525
allow_undefined_flag_F77=unsupported
15526
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'
15527
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15531
if test "$GCC" = yes; then
15532
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15533
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'
15535
allow_undefined_flag_F77=' -expect_unresolved \*'
15536
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'
15538
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15539
hardcode_libdir_separator_F77=:
15542
osf4* | osf5*) # as osf3* with the addition of -msym flag
15543
if test "$GCC" = yes; then
15544
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15545
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'
15546
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15548
allow_undefined_flag_F77=' -expect_unresolved \*'
15549
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'
15550
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~
15551
$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'
15553
# Both c and cxx compiler support -rpath directly
15554
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15556
hardcode_libdir_separator_F77=:
15560
no_undefined_flag_F77=' -z text'
15561
if test "$GCC" = yes; then
15563
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15564
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15565
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15568
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15569
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15570
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15572
hardcode_libdir_flag_spec_F77='-R$libdir'
15573
hardcode_shlibpath_var_F77=no
15575
solaris2.[0-5] | solaris2.[0-5].*) ;;
15577
# The compiler driver will combine and reorder linker options,
15578
# but understands `-z linker_flag'. GCC discards it without `$wl',
15579
# but is careful enough not to reorder.
15580
# Supported since Solaris 2.6 (maybe 2.5.1?)
15581
if test "$GCC" = yes; then
15582
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15584
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15588
link_all_deplibs_F77=yes
15592
if test "x$host_vendor" = xsequent; then
15593
# Use $CC to link under sequent, because it throws in some extra .o
15594
# files that make .init and .fini sections work.
15595
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15597
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15599
hardcode_libdir_flag_spec_F77='-L$libdir'
15600
hardcode_direct_F77=yes
15601
hardcode_minus_L_F77=yes
15602
hardcode_shlibpath_var_F77=no
15606
case $host_vendor in
15608
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15609
hardcode_direct_F77=yes # is this really true???
15612
## LD is ld it makes a PLAMLIB
15613
## CC just makes a GrossModule.
15614
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15615
reload_cmds_F77='$CC -r -o $output$reload_objs'
15616
hardcode_direct_F77=no
15619
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15620
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15623
runpath_var='LD_RUN_PATH'
15624
hardcode_shlibpath_var_F77=no
15628
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15629
hardcode_shlibpath_var_F77=no
15630
export_dynamic_flag_spec_F77='-Bexport'
15634
if test -d /usr/nec; then
15635
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15636
hardcode_shlibpath_var_F77=no
15637
runpath_var=LD_RUN_PATH
15638
hardcode_runpath_var=yes
15643
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15644
no_undefined_flag_F77='${wl}-z,text'
15645
archive_cmds_need_lc_F77=no
15646
hardcode_shlibpath_var_F77=no
15647
runpath_var='LD_RUN_PATH'
15649
if test "$GCC" = yes; then
15650
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15651
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15653
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15654
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15658
sysv5* | sco3.2v5* | sco5v6*)
15659
# Note: We can NOT use -z defs as we might desire, because we do not
15660
# link with -lc, and that would cause any symbols used from libc to
15661
# always be unresolved, which means just about no library would
15662
# ever link correctly. If we're not using GNU ld we use -z text
15663
# though, which does catch some bad symbols but isn't as heavy-handed
15665
no_undefined_flag_F77='${wl}-z,text'
15666
allow_undefined_flag_F77='${wl}-z,nodefs'
15667
archive_cmds_need_lc_F77=no
15668
hardcode_shlibpath_var_F77=no
15669
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15670
hardcode_libdir_separator_F77=':'
15671
link_all_deplibs_F77=yes
15672
export_dynamic_flag_spec_F77='${wl}-Bexport'
15673
runpath_var='LD_RUN_PATH'
15675
if test "$GCC" = yes; then
15676
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15677
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15679
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15680
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15685
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15686
hardcode_libdir_flag_spec_F77='-L$libdir'
15687
hardcode_shlibpath_var_F77=no
15696
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15697
$as_echo "$ld_shlibs_F77" >&6; }
15698
test "$ld_shlibs_F77" = no && can_build_shared=no
15701
# Do we need to explicitly link libc?
15703
case "x$archive_cmds_need_lc_F77" in
15705
# Assume -lc should be added
15706
archive_cmds_need_lc_F77=yes
15708
if test "$enable_shared" = yes && test "$GCC" = yes; then
15709
case $archive_cmds_F77 in
15711
# FIXME: we may have to deal with multi-command sequences.
15714
# Test whether the compiler implicitly links with -lc since on some
15715
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15716
# to ld, don't add -lc before -lgcc.
15717
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15718
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15720
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15722
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15723
(eval $ac_compile) 2>&5
15725
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726
(exit $ac_status); } 2>conftest.err; then
15729
libobjs=conftest.$ac_objext
15731
wl=$lt_prog_compiler_wl_F77
15732
pic_flag=$lt_prog_compiler_pic_F77
15738
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15739
allow_undefined_flag_F77=
15740
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15741
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15743
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744
(exit $ac_status); }
15746
archive_cmds_need_lc_F77=no
15748
archive_cmds_need_lc_F77=yes
15750
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15752
cat conftest.err 1>&5
15755
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15756
$as_echo "$archive_cmds_need_lc_F77" >&6; }
15763
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15764
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15765
library_names_spec=
15766
libname_spec='lib$name'
15770
postuninstall_cmds=
15774
shlibpath_overrides_runpath=unknown
15776
dynamic_linker="$host_os ld.so"
15777
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15779
need_lib_prefix=unknown
15780
hardcode_into_libs=no
15782
# when you set need_version to no, make sure it does not cause -set_version
15783
# flags to be left without arguments
15784
need_version=unknown
15789
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15790
shlibpath_var=LIBPATH
15792
# AIX 3 has no versioning support, so we append a major version to the name.
15793
soname_spec='${libname}${release}${shared_ext}$major'
15800
hardcode_into_libs=yes
15801
if test "$host_cpu" = ia64; then
15802
# AIX 5 supports IA64
15803
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15804
shlibpath_var=LD_LIBRARY_PATH
15806
# With GCC up to 2.95.x, collect2 would create an import file
15807
# for dependence libraries. The import file would start with
15808
# the line `#! .'. This would cause the generated library to
15809
# depend on `.', always an invalid library. This was fixed in
15810
# development snapshots of GCC prior to 3.0.
15812
aix4 | aix4.[01] | aix4.[01].*)
15813
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15815
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15818
can_build_shared=no
15822
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15823
# soname into executable. Probably we can add versioning support to
15824
# collect2, so additional links can be useful in future.
15825
if test "$aix_use_runtimelinking" = yes; then
15826
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15827
# instead of lib<name>.a to let people know that these are not
15828
# typical AIX shared libraries.
15829
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15831
# We preserve .a as extension for shared libraries through AIX4.2
15832
# and later when we are not doing run time linking.
15833
library_names_spec='${libname}${release}.a $libname.a'
15834
soname_spec='${libname}${release}${shared_ext}$major'
15836
shlibpath_var=LIBPATH
15841
library_names_spec='$libname.ixlibrary $libname.a'
15842
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15843
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'
15847
library_names_spec='${libname}${shared_ext}'
15848
dynamic_linker="$host_os ld.so"
15849
shlibpath_var=LIBRARY_PATH
15855
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15856
soname_spec='${libname}${release}${shared_ext}$major'
15857
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15858
shlibpath_var=LD_LIBRARY_PATH
15859
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15860
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15861
# the default ld.so.conf also contains /usr/contrib/lib and
15862
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15863
# libtool to hard-code these into programs
15866
cygwin* | mingw* | pw32*)
15867
version_type=windows
15872
case $GCC,$host_os in
15873
yes,cygwin* | yes,mingw* | yes,pw32*)
15874
library_names_spec='$libname.dll.a'
15875
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15876
postinstall_cmds='base_file=`basename \${file}`~
15877
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15878
dldir=$destdir/`dirname \$dlpath`~
15879
test -d \$dldir || mkdir -p \$dldir~
15880
$install_prog $dir/$dlname \$dldir/$dlname~
15881
chmod a+x \$dldir/$dlname'
15882
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15883
dlpath=$dir/\$dldll~
15885
shlibpath_overrides_runpath=yes
15889
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15890
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15891
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15894
# MinGW DLLs use traditional 'lib' prefix
15895
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15896
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15897
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15898
# It is most probably a Windows format PATH printed by
15899
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15900
# path with ; separators, and with drive letters. We can handle the
15901
# drive letters (cygwin fileutils understands them), so leave them,
15902
# especially as we might pass files found there to a mingw objdump,
15903
# which wouldn't understand a cygwinified path. Ahh.
15904
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15906
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15910
# pw32 DLLs use 'pw' prefix rather than 'lib'
15911
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15917
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15920
dynamic_linker='Win32 ld.exe'
15921
# FIXME: first we should search . and the directory the executable is in
15925
darwin* | rhapsody*)
15926
dynamic_linker="$host_os dyld"
15927
version_type=darwin
15930
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15931
soname_spec='${libname}${release}${major}$shared_ext'
15932
shlibpath_overrides_runpath=yes
15933
shlibpath_var=DYLD_LIBRARY_PATH
15934
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15936
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15943
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15944
soname_spec='${libname}${release}${shared_ext}$major'
15945
shlibpath_var=LD_LIBRARY_PATH
15952
freebsd* | dragonfly*)
15953
# DragonFly does not have aout. When/if they implement a new
15954
# versioning mechanism, adjust this.
15955
if test -x /usr/bin/objformat; then
15956
objformat=`/usr/bin/objformat`
15959
freebsd[123]*) objformat=aout ;;
15960
*) objformat=elf ;;
15963
version_type=freebsd-$objformat
15964
case $version_type in
15966
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15971
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15975
shlibpath_var=LD_LIBRARY_PATH
15978
shlibpath_overrides_runpath=yes
15980
freebsd3.[01]* | freebsdelf3.[01]*)
15981
shlibpath_overrides_runpath=yes
15982
hardcode_into_libs=yes
15984
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15985
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15986
shlibpath_overrides_runpath=no
15987
hardcode_into_libs=yes
15989
*) # from 4.6 on, and DragonFly
15990
shlibpath_overrides_runpath=yes
15991
hardcode_into_libs=yes
16000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16001
soname_spec='${libname}${release}${shared_ext}$major'
16002
shlibpath_var=LD_LIBRARY_PATH
16003
hardcode_into_libs=yes
16006
hpux9* | hpux10* | hpux11*)
16007
# Give a soname corresponding to the major version so that dld.sl refuses to
16008
# link against other versions.
16015
hardcode_into_libs=yes
16016
dynamic_linker="$host_os dld.so"
16017
shlibpath_var=LD_LIBRARY_PATH
16018
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16019
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16020
soname_spec='${libname}${release}${shared_ext}$major'
16021
if test "X$HPUX_IA64_MODE" = X32; then
16022
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16024
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16026
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16030
hardcode_into_libs=yes
16031
dynamic_linker="$host_os dld.sl"
16032
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16033
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16034
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16035
soname_spec='${libname}${release}${shared_ext}$major'
16036
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16037
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16041
dynamic_linker="$host_os dld.sl"
16042
shlibpath_var=SHLIB_PATH
16043
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16044
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045
soname_spec='${libname}${release}${shared_ext}$major'
16048
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16049
postinstall_cmds='chmod 555 $lib'
16056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16057
soname_spec='${libname}${release}${shared_ext}$major'
16058
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16059
shlibpath_var=LD_LIBRARY_PATH
16060
shlibpath_overrides_runpath=no
16061
hardcode_into_libs=yes
16064
irix5* | irix6* | nonstopux*)
16066
nonstopux*) version_type=nonstopux ;;
16068
if test "$lt_cv_prog_gnu_ld" = yes; then
16076
soname_spec='${libname}${release}${shared_ext}$major'
16077
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16079
irix5* | nonstopux*)
16080
libsuff= shlibsuff=
16083
case $LD in # libtool.m4 will add one of these switches to LD
16084
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16085
libsuff= shlibsuff= libmagic=32-bit;;
16086
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16087
libsuff=32 shlibsuff=N32 libmagic=N32;;
16088
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16089
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16090
*) libsuff= shlibsuff= libmagic=never-match;;
16094
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16095
shlibpath_overrides_runpath=no
16096
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16097
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16098
hardcode_into_libs=yes
16101
# No shared lib support for Linux oldld, aout, or coff.
16102
linux*oldld* | linux*aout* | linux*coff*)
16106
# This must be Linux ELF.
16107
linux* | k*bsd*-gnu)
16111
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112
soname_spec='${libname}${release}${shared_ext}$major'
16113
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16114
shlibpath_var=LD_LIBRARY_PATH
16115
shlibpath_overrides_runpath=no
16116
# This implies no fast_install, which is unacceptable.
16117
# Some rework will be needed to allow for fast_install
16118
# before this can be enabled.
16119
hardcode_into_libs=yes
16120
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16121
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16123
# Append ld.so.conf contents to the search path
16124
if test -f /etc/ld.so.conf; then
16125
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' ' '`
16126
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16129
# We used to test for /lib/ld.so.1 and disable shared libraries on
16130
# powerpc, because MkLinux only supported shared libraries with the
16131
# GNU dynamic linker. Since this was broken with cross compilers,
16132
# most powerpc-linux boxes support dynamic linking these days and
16133
# people can always --disable-shared, the test was removed, and we
16134
# assume the GNU/Linux dynamic linker is in use.
16135
dynamic_linker='GNU/Linux ld.so'
16142
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16143
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16144
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16145
dynamic_linker='NetBSD (a.out) ld.so'
16147
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16148
soname_spec='${libname}${release}${shared_ext}$major'
16149
dynamic_linker='NetBSD ld.elf_so'
16151
shlibpath_var=LD_LIBRARY_PATH
16152
shlibpath_overrides_runpath=yes
16153
hardcode_into_libs=yes
16158
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16159
shlibpath_var=LD_LIBRARY_PATH
16160
shlibpath_overrides_runpath=yes
16167
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16168
soname_spec='${libname}${release}${shared_ext}$major'
16169
shlibpath_var=LD_LIBRARY_PATH
16170
shlibpath_overrides_runpath=yes
16175
sys_lib_dlsearch_path_spec="/usr/lib"
16177
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16179
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16180
*) need_version=no ;;
16182
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16183
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16184
shlibpath_var=LD_LIBRARY_PATH
16185
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16187
openbsd2.[89] | openbsd2.[89].*)
16188
shlibpath_overrides_runpath=no
16191
shlibpath_overrides_runpath=yes
16195
shlibpath_overrides_runpath=yes
16200
libname_spec='$name'
16203
library_names_spec='$libname${shared_ext} $libname.a'
16204
dynamic_linker='OS/2 ld.exe'
16205
shlibpath_var=LIBPATH
16208
osf3* | osf4* | osf5*)
16212
soname_spec='${libname}${release}${shared_ext}$major'
16213
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214
shlibpath_var=LD_LIBRARY_PATH
16215
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16216
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16227
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228
soname_spec='${libname}${release}${shared_ext}$major'
16229
shlibpath_var=LD_LIBRARY_PATH
16230
shlibpath_overrides_runpath=yes
16231
hardcode_into_libs=yes
16232
# ldd complains unless libraries are executable
16233
postinstall_cmds='chmod +x $lib'
16238
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16239
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16240
shlibpath_var=LD_LIBRARY_PATH
16241
shlibpath_overrides_runpath=yes
16242
if test "$with_gnu_ld" = yes; then
16250
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251
soname_spec='${libname}${release}${shared_ext}$major'
16252
shlibpath_var=LD_LIBRARY_PATH
16253
case $host_vendor in
16255
shlibpath_overrides_runpath=no
16257
export_dynamic_flag_spec='${wl}-Blargedynsym'
16258
runpath_var=LD_RUN_PATH
16266
shlibpath_overrides_runpath=no
16267
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16273
if test -d /usr/nec ;then
16275
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16276
soname_spec='$libname${shared_ext}.$major'
16277
shlibpath_var=LD_LIBRARY_PATH
16281
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16282
version_type=freebsd-elf
16285
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16286
soname_spec='${libname}${release}${shared_ext}$major'
16287
shlibpath_var=LD_LIBRARY_PATH
16288
hardcode_into_libs=yes
16289
if test "$with_gnu_ld" = yes; then
16290
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16291
shlibpath_overrides_runpath=no
16293
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16294
shlibpath_overrides_runpath=yes
16297
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16301
sys_lib_dlsearch_path_spec='/usr/lib'
16306
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16307
soname_spec='${libname}${release}${shared_ext}$major'
16308
shlibpath_var=LD_LIBRARY_PATH
16315
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16316
$as_echo "$dynamic_linker" >&6; }
16317
test "$dynamic_linker" = no && can_build_shared=no
16319
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16320
$as_echo_n "(cached) " >&6
16322
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16325
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16326
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16327
$as_echo_n "(cached) " >&6
16329
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16332
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16334
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16335
if test "$GCC" = yes; then
16336
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16339
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16340
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16341
hardcode_action_F77=
16342
if test -n "$hardcode_libdir_flag_spec_F77" || \
16343
test -n "$runpath_var_F77" || \
16344
test "X$hardcode_automatic_F77" = "Xyes" ; then
16346
# We can hardcode non-existant directories.
16347
if test "$hardcode_direct_F77" != no &&
16348
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16349
# have to relink, otherwise we might link with an installed library
16350
# when we should be linking with a yet-to-be-installed one
16351
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16352
test "$hardcode_minus_L_F77" != no; then
16353
# Linking always hardcodes the temporary library directory.
16354
hardcode_action_F77=relink
16356
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16357
hardcode_action_F77=immediate
16360
# We cannot hardcode anything, or else we can only hardcode existing
16362
hardcode_action_F77=unsupported
16364
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16365
$as_echo "$hardcode_action_F77" >&6; }
16367
if test "$hardcode_action_F77" = relink; then
16368
# Fast installation is not supported
16369
enable_fast_install=no
16370
elif test "$shlibpath_overrides_runpath" = yes ||
16371
test "$enable_shared" = no; then
16372
# Fast installation is not necessary
16373
enable_fast_install=needless
16377
# The else clause should only fire when bootstrapping the
16378
# libtool distribution, otherwise you forgot to ship ltmain.sh
16379
# with your package, and you will get complaints that there are
16380
# no rules to generate ltmain.sh.
16381
if test -f "$ltmain"; then
16382
# See if we are running on zsh, and set the options which allow our commands through
16383
# without removal of \ escapes.
16384
if test -n "${ZSH_VERSION+set}" ; then
16385
setopt NO_GLOB_SUBST
16387
# Now quote all the things that may contain metacharacters while being
16388
# careful not to overquote the AC_SUBSTed values. We take copies of the
16389
# variables and quote the copies for generation of the libtool script.
16390
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16392
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16393
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16394
deplibs_check_method reload_flag reload_cmds need_locks \
16395
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16396
lt_cv_sys_global_symbol_to_c_name_address \
16397
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16398
old_postinstall_cmds old_postuninstall_cmds \
16402
lt_prog_compiler_wl_F77 \
16403
lt_prog_compiler_pic_F77 \
16404
lt_prog_compiler_static_F77 \
16405
lt_prog_compiler_no_builtin_flag_F77 \
16406
export_dynamic_flag_spec_F77 \
16407
thread_safe_flag_spec_F77 \
16408
whole_archive_flag_spec_F77 \
16409
enable_shared_with_static_runtimes_F77 \
16410
old_archive_cmds_F77 \
16411
old_archive_from_new_cmds_F77 \
16412
predep_objects_F77 \
16413
postdep_objects_F77 \
16416
compiler_lib_search_path_F77 \
16417
compiler_lib_search_dirs_F77 \
16419
archive_expsym_cmds_F77 \
16420
postinstall_cmds_F77 \
16421
postuninstall_cmds_F77 \
16422
old_archive_from_expsyms_cmds_F77 \
16423
allow_undefined_flag_F77 \
16424
no_undefined_flag_F77 \
16425
export_symbols_cmds_F77 \
16426
hardcode_libdir_flag_spec_F77 \
16427
hardcode_libdir_flag_spec_ld_F77 \
16428
hardcode_libdir_separator_F77 \
16429
hardcode_automatic_F77 \
16431
module_expsym_cmds_F77 \
16432
lt_cv_prog_compiler_c_o_F77 \
16433
fix_srcfile_path_F77 \
16434
exclude_expsyms_F77 \
16435
include_expsyms_F77; do
16438
old_archive_cmds_F77 | \
16439
old_archive_from_new_cmds_F77 | \
16440
archive_cmds_F77 | \
16441
archive_expsym_cmds_F77 | \
16442
module_cmds_F77 | \
16443
module_expsym_cmds_F77 | \
16444
old_archive_from_expsyms_cmds_F77 | \
16445
export_symbols_cmds_F77 | \
16446
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16447
postinstall_cmds | postuninstall_cmds | \
16448
old_postinstall_cmds | old_postuninstall_cmds | \
16449
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16450
# Double-quote double-evaled strings.
16451
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16454
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16460
*'\$0 --fallback-echo"')
16461
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16467
cat <<__EOF__ >> "$cfgfile"
16468
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16470
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16472
# Shell to use when invoking shell scripts.
16475
# Whether or not to build shared libraries.
16476
build_libtool_libs=$enable_shared
16478
# Whether or not to build static libraries.
16479
build_old_libs=$enable_static
16481
# Whether or not to add -lc for building shared libraries.
16482
build_libtool_need_lc=$archive_cmds_need_lc_F77
16484
# Whether or not to disallow shared libs when runtime libs are static
16485
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16487
# Whether or not to optimize for fast installation.
16488
fast_install=$enable_fast_install
16491
host_alias=$host_alias
16495
# The build system.
16496
build_alias=$build_alias
16500
# An echo program that does not interpret backslashes.
16505
AR_FLAGS=$lt_AR_FLAGS
16510
# LTCC compiler flags.
16511
LTCFLAGS=$lt_LTCFLAGS
16513
# A language-specific compiler.
16514
CC=$lt_compiler_F77
16516
# Is the compiler the GNU C compiler?
16522
# The linker used to build libraries.
16525
# Whether we need hard or soft links.
16528
# A BSD-compatible nm program.
16531
# A symbol stripping program
16534
# Used to examine libraries when file_magic_cmd begins "file"
16535
MAGIC_CMD=$MAGIC_CMD
16537
# Used on cygwin: DLL creation program.
16540
# Used on cygwin: object dumper.
16543
# Used on cygwin: assembler.
16546
# The name of the directory that contains temporary libtool files.
16549
# How to create reloadable object files.
16550
reload_flag=$lt_reload_flag
16551
reload_cmds=$lt_reload_cmds
16553
# How to pass a linker flag through the compiler.
16554
wl=$lt_lt_prog_compiler_wl_F77
16556
# Object file suffix (normally "o").
16557
objext="$ac_objext"
16559
# Old archive suffix (normally "a").
16562
# Shared library suffix (normally ".so").
16563
shrext_cmds='$shrext_cmds'
16565
# Executable file suffix (normally "").
16568
# Additional compiler flags for building library objects.
16569
pic_flag=$lt_lt_prog_compiler_pic_F77
16572
# What is the maximum length of a command?
16573
max_cmd_len=$lt_cv_sys_max_cmd_len
16575
# Does compiler simultaneously support -c and -o options?
16576
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16578
# Must we lock files when doing compilation?
16579
need_locks=$lt_need_locks
16581
# Do we need the lib prefix for modules?
16582
need_lib_prefix=$need_lib_prefix
16584
# Do we need a version for libraries?
16585
need_version=$need_version
16587
# Whether dlopen is supported.
16588
dlopen_support=$enable_dlopen
16590
# Whether dlopen of programs is supported.
16591
dlopen_self=$enable_dlopen_self
16593
# Whether dlopen of statically linked programs is supported.
16594
dlopen_self_static=$enable_dlopen_self_static
16596
# Compiler flag to prevent dynamic linking.
16597
link_static_flag=$lt_lt_prog_compiler_static_F77
16599
# Compiler flag to turn off builtin functions.
16600
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16602
# Compiler flag to allow reflexive dlopens.
16603
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16605
# Compiler flag to generate shared objects directly from archives.
16606
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16608
# Compiler flag to generate thread-safe objects.
16609
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16611
# Library versioning type.
16612
version_type=$version_type
16614
# Format of library name prefix.
16615
libname_spec=$lt_libname_spec
16617
# List of archive names. First name is the real one, the rest are links.
16618
# The last name is the one that the linker finds with -lNAME.
16619
library_names_spec=$lt_library_names_spec
16621
# The coded name of the library, if different from the real name.
16622
soname_spec=$lt_soname_spec
16624
# Commands used to build and install an old-style archive.
16626
old_archive_cmds=$lt_old_archive_cmds_F77
16627
old_postinstall_cmds=$lt_old_postinstall_cmds
16628
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16630
# Create an old-style archive from a shared archive.
16631
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16633
# Create a temporary old-style archive to link instead of a shared archive.
16634
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16636
# Commands used to build and install a shared archive.
16637
archive_cmds=$lt_archive_cmds_F77
16638
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16639
postinstall_cmds=$lt_postinstall_cmds
16640
postuninstall_cmds=$lt_postuninstall_cmds
16642
# Commands used to build a loadable module (assumed same as above if empty)
16643
module_cmds=$lt_module_cmds_F77
16644
module_expsym_cmds=$lt_module_expsym_cmds_F77
16646
# Commands to strip libraries.
16647
old_striplib=$lt_old_striplib
16648
striplib=$lt_striplib
16650
# Dependencies to place before the objects being linked to create a
16652
predep_objects=$lt_predep_objects_F77
16654
# Dependencies to place after the objects being linked to create a
16656
postdep_objects=$lt_postdep_objects_F77
16658
# Dependencies to place before the objects being linked to create a
16660
predeps=$lt_predeps_F77
16662
# Dependencies to place after the objects being linked to create a
16664
postdeps=$lt_postdeps_F77
16666
# The directories searched by this compiler when creating a shared
16668
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16670
# The library search path used internally by the compiler when linking
16671
# a shared library.
16672
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16674
# Method to check whether dependent libraries are shared objects.
16675
deplibs_check_method=$lt_deplibs_check_method
16677
# Command to use when deplibs_check_method == file_magic.
16678
file_magic_cmd=$lt_file_magic_cmd
16680
# Flag that allows shared libraries with undefined symbols to be built.
16681
allow_undefined_flag=$lt_allow_undefined_flag_F77
16683
# Flag that forces no undefined symbols.
16684
no_undefined_flag=$lt_no_undefined_flag_F77
16686
# Commands used to finish a libtool library installation in a directory.
16687
finish_cmds=$lt_finish_cmds
16689
# Same as above, but a single script fragment to be evaled but not shown.
16690
finish_eval=$lt_finish_eval
16692
# Take the output of nm and produce a listing of raw symbols and C names.
16693
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16695
# Transform the output of nm in a proper C declaration
16696
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16698
# Transform the output of nm in a C name address pair
16699
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16701
# This is the shared library runtime path variable.
16702
runpath_var=$runpath_var
16704
# This is the shared library path variable.
16705
shlibpath_var=$shlibpath_var
16707
# Is shlibpath searched before the hard-coded library search path?
16708
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16710
# How to hardcode a shared library path into an executable.
16711
hardcode_action=$hardcode_action_F77
16713
# Whether we should hardcode library paths into libraries.
16714
hardcode_into_libs=$hardcode_into_libs
16716
# Flag to hardcode \$libdir into a binary during linking.
16717
# This must work even if \$libdir does not exist.
16718
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16720
# If ld is used when linking, flag to hardcode \$libdir into
16721
# a binary during linking. This must work even if \$libdir does
16723
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16725
# Whether we need a single -rpath flag with a separated argument.
16726
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16728
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16729
# resulting binary.
16730
hardcode_direct=$hardcode_direct_F77
16732
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16733
# resulting binary.
16734
hardcode_minus_L=$hardcode_minus_L_F77
16736
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16737
# the resulting binary.
16738
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16740
# Set to yes if building a shared library automatically hardcodes DIR into the library
16741
# and all subsequent libraries and executables linked against it.
16742
hardcode_automatic=$hardcode_automatic_F77
16744
# Variables whose values should be saved in libtool wrapper scripts and
16745
# restored at relink time.
16746
variables_saved_for_relink="$variables_saved_for_relink"
16748
# Whether libtool must link a program against all its dependency libraries.
16749
link_all_deplibs=$link_all_deplibs_F77
16751
# Compile-time system search path for libraries
16752
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16754
# Run-time system search path for libraries
16755
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16757
# Fix the shell variable \$srcfile for the compiler.
16758
fix_srcfile_path=$lt_fix_srcfile_path
16760
# Set to yes if exported symbols are required.
16761
always_export_symbols=$always_export_symbols_F77
16763
# The commands to list exported symbols.
16764
export_symbols_cmds=$lt_export_symbols_cmds_F77
16766
# The commands to extract the exported symbol list from a shared archive.
16767
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16769
# Symbols that should not be listed in the preloaded symbols.
16770
exclude_expsyms=$lt_exclude_expsyms_F77
16772
# Symbols that must always be exported.
16773
include_expsyms=$lt_include_expsyms_F77
16775
# ### END LIBTOOL TAG CONFIG: $tagname
16781
# If there is no Makefile yet, we rely on a make rule to execute
16782
# `config.status --recheck' to rerun these tests and create the
16783
# libtool script then.
16784
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16785
if test -f "$ltmain_in"; then
16786
test -f Makefile && make "$ltmain"
16792
ac_cpp='$CPP $CPPFLAGS'
16793
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16794
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16795
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16805
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16808
# Source file extension for Java test sources.
16811
# Object file extension for compiled Java test sources.
16815
# Code to be used in simple compile tests
16816
lt_simple_compile_test_code="class foo {}"
16818
# Code to be used in simple link tests
16819
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16821
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16823
# If no C compiler was specified, use CC.
16826
# If no C compiler flags were specified, use CFLAGS.
16827
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16829
# Allow CC to be a program name with arguments.
16833
# save warnings/boilerplate of simple test code
16834
ac_outfile=conftest.$ac_objext
16835
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16836
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16837
_lt_compiler_boilerplate=`cat conftest.err`
16840
ac_outfile=conftest.$ac_objext
16841
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16842
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16843
_lt_linker_boilerplate=`cat conftest.err`
16847
# Allow CC to be a program name with arguments.
16852
for cc_temp in $compiler""; do
16854
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16855
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16860
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16863
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16864
archive_cmds_need_lc_GCJ=no
16866
old_archive_cmds_GCJ=$old_archive_cmds
16869
lt_prog_compiler_no_builtin_flag_GCJ=
16871
if test "$GCC" = yes; then
16872
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16875
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16876
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16877
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16878
$as_echo_n "(cached) " >&6
16880
lt_cv_prog_compiler_rtti_exceptions=no
16881
ac_outfile=conftest.$ac_objext
16882
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16883
lt_compiler_flag="-fno-rtti -fno-exceptions"
16884
# Insert the option either (1) after the last *FLAGS variable, or
16885
# (2) before a word containing "conftest.", or (3) at the end.
16886
# Note that $ac_compile itself does not contain backslashes and begins
16887
# with a dollar sign (not a hyphen), so the echo should work correctly.
16888
# The option is referenced via a variable to avoid confusing sed.
16889
lt_compile=`echo "$ac_compile" | $SED \
16890
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16891
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16892
-e 's:$: $lt_compiler_flag:'`
16893
(eval echo "\"\$as_me:16893: $lt_compile\"" >&5)
16894
(eval "$lt_compile" 2>conftest.err)
16896
cat conftest.err >&5
16897
echo "$as_me:16897: \$? = $ac_status" >&5
16898
if (exit $ac_status) && test -s "$ac_outfile"; then
16899
# The compiler can only warn and ignore the option if not recognized
16900
# So say no if there are warnings other than the usual output.
16901
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16902
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16903
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16904
lt_cv_prog_compiler_rtti_exceptions=yes
16910
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16911
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16913
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16914
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16921
lt_prog_compiler_wl_GCJ=
16922
lt_prog_compiler_pic_GCJ=
16923
lt_prog_compiler_static_GCJ=
16925
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16926
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16928
if test "$GCC" = yes; then
16929
lt_prog_compiler_wl_GCJ='-Wl,'
16930
lt_prog_compiler_static_GCJ='-static'
16934
# All AIX code is PIC.
16935
if test "$host_cpu" = ia64; then
16936
# AIX 5 now supports IA64 processor
16937
lt_prog_compiler_static_GCJ='-Bstatic'
16942
# FIXME: we need at least 68020 code to build shared libraries, but
16943
# adding the `-m68020' flag to GCC prevents building anything better,
16945
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16948
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16949
# PIC is the default for these OSes.
16952
mingw* | cygwin* | pw32* | os2*)
16953
# This hack is so that the source file can tell whether it is being
16954
# built for inclusion in a dll (and should export symbols for example).
16955
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16956
# (--disable-auto-import) libraries
16960
darwin* | rhapsody*)
16961
# PIC is the default on this platform
16962
# Common symbols not allowed in MH_DYLIB files
16963
lt_prog_compiler_pic_GCJ='-fno-common'
16967
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16968
# Instead, we relocate shared libraries at runtime.
16972
# Just because we use GCC doesn't mean we suddenly get shared libraries
16973
# on systems that don't support them.
16974
lt_prog_compiler_can_build_shared_GCJ=no
16979
if test -d /usr/nec; then
16980
lt_prog_compiler_pic_GCJ=-Kconform_pic
16985
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16986
# not for PA HP-UX.
16992
lt_prog_compiler_pic_GCJ='-fPIC'
16998
lt_prog_compiler_pic_GCJ='-fPIC'
17002
# PORTME Check for flag to pass linker flags through the system compiler.
17005
lt_prog_compiler_wl_GCJ='-Wl,'
17006
if test "$host_cpu" = ia64; then
17007
# AIX 5 now supports IA64 processor
17008
lt_prog_compiler_static_GCJ='-Bstatic'
17010
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17014
# PIC is the default on this platform
17015
# Common symbols not allowed in MH_DYLIB files
17016
case $cc_basename in
17018
lt_prog_compiler_pic_GCJ='-qnocommon'
17019
lt_prog_compiler_wl_GCJ='-Wl,'
17024
mingw* | cygwin* | pw32* | os2*)
17025
# This hack is so that the source file can tell whether it is being
17026
# built for inclusion in a dll (and should export symbols for example).
17030
hpux9* | hpux10* | hpux11*)
17031
lt_prog_compiler_wl_GCJ='-Wl,'
17032
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17033
# not for PA HP-UX.
17039
lt_prog_compiler_pic_GCJ='+Z'
17042
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17043
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17046
irix5* | irix6* | nonstopux*)
17047
lt_prog_compiler_wl_GCJ='-Wl,'
17048
# PIC (with -KPIC) is the default.
17049
lt_prog_compiler_static_GCJ='-non_shared'
17053
lt_prog_compiler_pic_GCJ='-KPIC'
17054
lt_prog_compiler_static_GCJ='-Bstatic'
17057
linux* | k*bsd*-gnu)
17058
case $cc_basename in
17060
lt_prog_compiler_wl_GCJ='-Wl,'
17061
lt_prog_compiler_pic_GCJ='-KPIC'
17062
lt_prog_compiler_static_GCJ='-static'
17064
pgcc* | pgf77* | pgf90* | pgf95*)
17065
# Portland Group compilers (*not* the Pentium gcc compiler,
17066
# which looks to be a dead project)
17067
lt_prog_compiler_wl_GCJ='-Wl,'
17068
lt_prog_compiler_pic_GCJ='-fpic'
17069
lt_prog_compiler_static_GCJ='-Bstatic'
17072
lt_prog_compiler_wl_GCJ='-Wl,'
17073
# All Alpha code is PIC.
17074
lt_prog_compiler_static_GCJ='-non_shared'
17077
case `$CC -V 2>&1 | sed 5q` in
17080
lt_prog_compiler_pic_GCJ='-KPIC'
17081
lt_prog_compiler_static_GCJ='-Bstatic'
17082
lt_prog_compiler_wl_GCJ='-Wl,'
17085
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17086
lt_prog_compiler_pic_GCJ='-KPIC'
17087
lt_prog_compiler_static_GCJ='-Bstatic'
17088
lt_prog_compiler_wl_GCJ=''
17095
osf3* | osf4* | osf5*)
17096
lt_prog_compiler_wl_GCJ='-Wl,'
17097
# All OSF/1 code is PIC.
17098
lt_prog_compiler_static_GCJ='-non_shared'
17102
lt_prog_compiler_static_GCJ='-non_shared'
17106
lt_prog_compiler_pic_GCJ='-KPIC'
17107
lt_prog_compiler_static_GCJ='-Bstatic'
17108
case $cc_basename in
17109
f77* | f90* | f95*)
17110
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17112
lt_prog_compiler_wl_GCJ='-Wl,';;
17117
lt_prog_compiler_wl_GCJ='-Qoption ld '
17118
lt_prog_compiler_pic_GCJ='-PIC'
17119
lt_prog_compiler_static_GCJ='-Bstatic'
17122
sysv4 | sysv4.2uw2* | sysv4.3*)
17123
lt_prog_compiler_wl_GCJ='-Wl,'
17124
lt_prog_compiler_pic_GCJ='-KPIC'
17125
lt_prog_compiler_static_GCJ='-Bstatic'
17129
if test -d /usr/nec ;then
17130
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17131
lt_prog_compiler_static_GCJ='-Bstatic'
17135
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17136
lt_prog_compiler_wl_GCJ='-Wl,'
17137
lt_prog_compiler_pic_GCJ='-KPIC'
17138
lt_prog_compiler_static_GCJ='-Bstatic'
17142
lt_prog_compiler_wl_GCJ='-Wl,'
17143
lt_prog_compiler_can_build_shared_GCJ=no
17147
lt_prog_compiler_pic_GCJ='-pic'
17148
lt_prog_compiler_static_GCJ='-Bstatic'
17152
lt_prog_compiler_can_build_shared_GCJ=no
17157
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17158
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17161
# Check to make sure the PIC flag actually works.
17163
if test -n "$lt_prog_compiler_pic_GCJ"; then
17165
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17166
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17167
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17168
$as_echo_n "(cached) " >&6
17170
lt_cv_prog_compiler_pic_works_GCJ=no
17171
ac_outfile=conftest.$ac_objext
17172
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17173
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17174
# Insert the option either (1) after the last *FLAGS variable, or
17175
# (2) before a word containing "conftest.", or (3) at the end.
17176
# Note that $ac_compile itself does not contain backslashes and begins
17177
# with a dollar sign (not a hyphen), so the echo should work correctly.
17178
# The option is referenced via a variable to avoid confusing sed.
17179
lt_compile=`echo "$ac_compile" | $SED \
17180
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17181
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17182
-e 's:$: $lt_compiler_flag:'`
17183
(eval echo "\"\$as_me:17183: $lt_compile\"" >&5)
17184
(eval "$lt_compile" 2>conftest.err)
17186
cat conftest.err >&5
17187
echo "$as_me:17187: \$? = $ac_status" >&5
17188
if (exit $ac_status) && test -s "$ac_outfile"; then
17189
# The compiler can only warn and ignore the option if not recognized
17190
# So say no if there are warnings other than the usual output.
17191
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17192
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17193
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17194
lt_cv_prog_compiler_pic_works_GCJ=yes
17200
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17201
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17203
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17204
case $lt_prog_compiler_pic_GCJ in
17206
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17209
lt_prog_compiler_pic_GCJ=
17210
lt_prog_compiler_can_build_shared_GCJ=no
17215
# For platforms which do not support PIC, -DPIC is meaningless:
17217
lt_prog_compiler_pic_GCJ=
17220
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17225
# Check to make sure the static flag actually works.
17227
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17228
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17229
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17230
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17231
$as_echo_n "(cached) " >&6
17233
lt_cv_prog_compiler_static_works_GCJ=no
17234
save_LDFLAGS="$LDFLAGS"
17235
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17236
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17237
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17238
# The linker can only warn and ignore the option if not recognized
17239
# So say no if there are warnings
17240
if test -s conftest.err; then
17241
# Append any errors to the config.log.
17242
cat conftest.err 1>&5
17243
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17244
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17245
if diff conftest.exp conftest.er2 >/dev/null; then
17246
lt_cv_prog_compiler_static_works_GCJ=yes
17249
lt_cv_prog_compiler_static_works_GCJ=yes
17253
LDFLAGS="$save_LDFLAGS"
17256
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17257
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17259
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17262
lt_prog_compiler_static_GCJ=
17266
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17267
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17268
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17269
$as_echo_n "(cached) " >&6
17271
lt_cv_prog_compiler_c_o_GCJ=no
17272
$rm -r conftest 2>/dev/null
17276
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17278
lt_compiler_flag="-o out/conftest2.$ac_objext"
17279
# Insert the option either (1) after the last *FLAGS variable, or
17280
# (2) before a word containing "conftest.", or (3) at the end.
17281
# Note that $ac_compile itself does not contain backslashes and begins
17282
# with a dollar sign (not a hyphen), so the echo should work correctly.
17283
lt_compile=`echo "$ac_compile" | $SED \
17284
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17285
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17286
-e 's:$: $lt_compiler_flag:'`
17287
(eval echo "\"\$as_me:17287: $lt_compile\"" >&5)
17288
(eval "$lt_compile" 2>out/conftest.err)
17290
cat out/conftest.err >&5
17291
echo "$as_me:17291: \$? = $ac_status" >&5
17292
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17294
# The compiler can only warn and ignore the option if not recognized
17295
# So say no if there are warnings
17296
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17297
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17298
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17299
lt_cv_prog_compiler_c_o_GCJ=yes
17304
# SGI C++ compiler will create directory out/ii_files/ for
17305
# template instantiation
17306
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17307
$rm out/* && rmdir out
17313
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17314
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17317
hard_links="nottested"
17318
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17319
# do not overwrite the value of need_locks provided by the user
17320
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17321
$as_echo_n "checking if we can lock with hard links... " >&6; }
17324
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17326
ln conftest.a conftest.b 2>&5 || hard_links=no
17327
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17328
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17329
$as_echo "$hard_links" >&6; }
17330
if test "$hard_links" = no; then
17331
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17332
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17339
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17340
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17343
allow_undefined_flag_GCJ=
17344
enable_shared_with_static_runtimes_GCJ=no
17346
archive_expsym_cmds_GCJ=
17347
old_archive_From_new_cmds_GCJ=
17348
old_archive_from_expsyms_cmds_GCJ=
17349
export_dynamic_flag_spec_GCJ=
17350
whole_archive_flag_spec_GCJ=
17351
thread_safe_flag_spec_GCJ=
17352
hardcode_libdir_flag_spec_GCJ=
17353
hardcode_libdir_flag_spec_ld_GCJ=
17354
hardcode_libdir_separator_GCJ=
17355
hardcode_direct_GCJ=no
17356
hardcode_minus_L_GCJ=no
17357
hardcode_shlibpath_var_GCJ=unsupported
17358
link_all_deplibs_GCJ=unknown
17359
hardcode_automatic_GCJ=no
17361
module_expsym_cmds_GCJ=
17362
always_export_symbols_GCJ=no
17363
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17364
# include_expsyms should be a list of space-separated symbols to be *always*
17365
# included in the symbol list
17366
include_expsyms_GCJ=
17367
# exclude_expsyms can be an extended regexp of symbols to exclude
17368
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17369
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17370
# as well as any symbol that contains `d'.
17371
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17372
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17373
# platforms (ab)use it in PIC code, but their linkers get confused if
17374
# the symbol is explicitly referenced. Since portable code cannot
17375
# rely on this symbol name, it's probably fine to never include it in
17376
# preloaded symbol tables.
17377
# Exclude shared library initialization/finalization symbols.
17378
extract_expsyms_cmds=
17379
# Just being paranoid about ensuring that cc_basename is set.
17380
for cc_temp in $compiler""; do
17382
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17383
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17388
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17391
cygwin* | mingw* | pw32*)
17392
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17393
# When not using gcc, we currently assume that we are using
17394
# Microsoft Visual C++.
17395
if test "$GCC" != yes; then
17400
# we just hope/assume this is gcc and not c89 (= MSVC++)
17409
if test "$with_gnu_ld" = yes; then
17410
# If archive_cmds runs LD, not CC, wlarc should be empty
17413
# Set some defaults for GNU ld with shared library support. These
17414
# are reset later if shared libraries are not supported. Putting them
17415
# here allows them to be overridden if necessary.
17416
runpath_var=LD_RUN_PATH
17417
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17418
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17419
# ancient GNU ld didn't support --whole-archive et. al.
17420
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17421
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17423
whole_archive_flag_spec_GCJ=
17425
supports_anon_versioning=no
17426
case `$LD -v 2>/dev/null` in
17427
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17428
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17429
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17430
*\ 2.11.*) ;; # other 2.11 versions
17431
*) supports_anon_versioning=yes ;;
17434
# See if GNU ld supports shared libraries.
17437
# On AIX/PPC, the GNU linker is very broken
17438
if test "$host_cpu" != ia64; then
17442
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17443
*** to be unable to reliably create shared libraries on AIX.
17444
*** Therefore, libtool is disabling shared libraries support. If you
17445
*** really care for shared libraries, you may want to modify your PATH
17446
*** so that a non-GNU linker is found, and then restart.
17453
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)'
17454
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17455
hardcode_minus_L_GCJ=yes
17457
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17458
# that the semantics of dynamic libraries on AmigaOS, at least up
17459
# to version 4, is to share data among multiple programs linked
17460
# with the same dynamic library. Since this doesn't match the
17461
# behavior of shared libraries on other platforms, we can't use
17467
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17468
allow_undefined_flag_GCJ=unsupported
17469
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17470
# support --undefined. This deserves some investigation. FIXME
17471
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17477
cygwin* | mingw* | pw32*)
17478
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17479
# as there is no search path for DLLs.
17480
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17481
allow_undefined_flag_GCJ=unsupported
17482
always_export_symbols_GCJ=no
17483
enable_shared_with_static_runtimes_GCJ=yes
17484
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17486
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17487
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17488
# If the export-symbols file already is a .def file (1st line
17489
# is EXPORTS), use it as is; otherwise, prepend...
17490
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17491
cp $export_symbols $output_objdir/$soname.def;
17493
echo EXPORTS > $output_objdir/$soname.def;
17494
cat $export_symbols >> $output_objdir/$soname.def;
17496
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17503
hardcode_direct_GCJ=no
17504
hardcode_shlibpath_var_GCJ=no
17505
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17506
export_dynamic_flag_spec_GCJ='${wl}-E'
17507
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17508
# Instead, shared libraries are loaded at an image base (0x10000000 by
17509
# default) and relocated if they conflict, which is a slow very memory
17510
# consuming and fragmenting process. To avoid this, we pick a random,
17511
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17512
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17513
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'
17514
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'
17517
gnu* | linux* | k*bsd*-gnu)
17518
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17520
case $cc_basename,$host_cpu in
17521
pgcc*) # Portland Group C compiler
17522
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'
17523
tmp_addflag=' $pic_flag'
17525
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17526
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'
17527
tmp_addflag=' $pic_flag -Mnomain' ;;
17528
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17529
tmp_addflag=' -i_dynamic' ;;
17530
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17531
tmp_addflag=' -i_dynamic -nofor_main' ;;
17532
ifc* | ifort*) # Intel Fortran compiler
17533
tmp_addflag=' -nofor_main' ;;
17535
case `$CC -V 2>&1 | sed 5q` in
17536
*Sun\ C*) # Sun C 5.9
17537
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'
17538
tmp_sharedflag='-G' ;;
17539
*Sun\ F*) # Sun Fortran 8.3
17540
tmp_sharedflag='-G' ;;
17542
tmp_sharedflag='-shared' ;;
17544
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17546
if test $supports_anon_versioning = yes; then
17547
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17548
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17549
$echo "local: *; };" >> $output_objdir/$libname.ver~
17550
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17558
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17559
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17562
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17563
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17568
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17572
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17573
*** create shared libraries on Solaris systems. Therefore, libtool
17574
*** is disabling shared libraries support. We urge you to upgrade GNU
17575
*** binutils to release 2.9.1 or newer. Another option is to modify
17576
*** your PATH or compiler configuration so that the native linker is
17577
*** used, and then restart.
17580
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17581
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17582
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17588
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17589
case `$LD -v 2>&1` in
17590
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17594
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17595
*** reliably create shared libraries on SCO systems. Therefore, libtool
17596
*** is disabling shared libraries support. We urge you to upgrade GNU
17597
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17598
*** your PATH or compiler configuration so that the native linker is
17599
*** used, and then restart.
17604
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17605
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17606
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17607
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17616
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17618
hardcode_direct_GCJ=yes
17619
hardcode_shlibpath_var_GCJ=no
17623
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17624
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17625
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17632
if test "$ld_shlibs_GCJ" = no; then
17634
hardcode_libdir_flag_spec_GCJ=
17635
export_dynamic_flag_spec_GCJ=
17636
whole_archive_flag_spec_GCJ=
17639
# PORTME fill in a description of your system's linker (not GNU ld)
17642
allow_undefined_flag_GCJ=unsupported
17643
always_export_symbols_GCJ=yes
17644
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'
17645
# Note: this linker hardcodes the directories in LIBPATH if there
17646
# are no directories specified by -L.
17647
hardcode_minus_L_GCJ=yes
17648
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17649
# Neither direct hardcoding nor static linking is supported with a
17651
hardcode_direct_GCJ=unsupported
17656
if test "$host_cpu" = ia64; then
17657
# On IA64, the linker does run time linking by default, so we don't
17658
# have to do anything special.
17659
aix_use_runtimelinking=no
17660
exp_sym_flag='-Bexport'
17663
# If we're using GNU nm, then we don't want the "-C" option.
17664
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17665
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17666
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'
17668
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'
17670
aix_use_runtimelinking=no
17672
# Test if we are trying to use run time linking or normal
17673
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17674
# need to do runtime linking.
17675
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17676
for ld_flag in $LDFLAGS; do
17677
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17678
aix_use_runtimelinking=yes
17685
exp_sym_flag='-bexport'
17686
no_entry_flag='-bnoentry'
17689
# When large executables or shared objects are built, AIX ld can
17690
# have problems creating the table of contents. If linking a library
17691
# or program results in "error TOC overflow" add -mminimal-toc to
17692
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17693
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17695
archive_cmds_GCJ=''
17696
hardcode_direct_GCJ=yes
17697
hardcode_libdir_separator_GCJ=':'
17698
link_all_deplibs_GCJ=yes
17700
if test "$GCC" = yes; then
17701
case $host_os in aix4.[012]|aix4.[012].*)
17702
# We only want to do this on AIX 4.2 and lower, the check
17703
# below for broken collect2 doesn't work under 4.3+
17704
collect2name=`${CC} -print-prog-name=collect2`
17705
if test -f "$collect2name" && \
17706
strings "$collect2name" | grep resolve_lib_name >/dev/null
17708
# We have reworked collect2
17711
# We have old collect2
17712
hardcode_direct_GCJ=unsupported
17713
# It fails to find uninstalled libraries when the uninstalled
17714
# path is not listed in the libpath. Setting hardcode_minus_L
17715
# to unsupported forces relinking
17716
hardcode_minus_L_GCJ=yes
17717
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17718
hardcode_libdir_separator_GCJ=
17722
shared_flag='-shared'
17723
if test "$aix_use_runtimelinking" = yes; then
17724
shared_flag="$shared_flag "'${wl}-G'
17728
if test "$host_cpu" = ia64; then
17729
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17730
# chokes on -Wl,-G. The following line is correct:
17733
if test "$aix_use_runtimelinking" = yes; then
17734
shared_flag='${wl}-G'
17736
shared_flag='${wl}-bM:SRE'
17741
# It seems that -bexpall does not export symbols beginning with
17742
# underscore (_), so it is better to generate a list of symbols to export.
17743
always_export_symbols_GCJ=yes
17744
if test "$aix_use_runtimelinking" = yes; then
17745
# Warning - without using the other runtime loading flags (-brtl),
17746
# -berok will link without error, but may produce a broken library.
17747
allow_undefined_flag_GCJ='-berok'
17748
# Determine the default libpath from the value encoded in an empty executable.
17749
cat >conftest.$ac_ext <<_ACEOF
17752
cat confdefs.h >>conftest.$ac_ext
17753
cat >>conftest.$ac_ext <<_ACEOF
17754
/* end confdefs.h. */
17764
rm -f conftest.$ac_objext conftest$ac_exeext
17765
if { (ac_try="$ac_link"
17766
case "(($ac_try" in
17767
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768
*) ac_try_echo=$ac_try;;
17770
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17771
$as_echo "$ac_try_echo") >&5
17772
(eval "$ac_link") 2>conftest.er1
17774
grep -v '^ *+' conftest.er1 >conftest.err
17776
cat conftest.err >&5
17777
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778
(exit $ac_status); } && {
17779
test -z "$ac_c_werror_flag" ||
17780
test ! -s conftest.err
17781
} && test -s conftest$ac_exeext && {
17782
test "$cross_compiling" = yes ||
17783
$as_test_x conftest$ac_exeext
17786
lt_aix_libpath_sed='
17787
/Import File Strings/,/^$/ {
17793
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17794
# Check for a 64-bit object if we didn't find anything.
17795
if test -z "$aix_libpath"; then
17796
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17799
$as_echo "$as_me: failed program was:" >&5
17800
sed 's/^/| /' conftest.$ac_ext >&5
17805
rm -rf conftest.dSYM
17806
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17807
conftest$ac_exeext conftest.$ac_ext
17808
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17810
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17811
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"
17813
if test "$host_cpu" = ia64; then
17814
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17815
allow_undefined_flag_GCJ="-z nodefs"
17816
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"
17818
# Determine the default libpath from the value encoded in an empty executable.
17819
cat >conftest.$ac_ext <<_ACEOF
17822
cat confdefs.h >>conftest.$ac_ext
17823
cat >>conftest.$ac_ext <<_ACEOF
17824
/* end confdefs.h. */
17834
rm -f conftest.$ac_objext conftest$ac_exeext
17835
if { (ac_try="$ac_link"
17836
case "(($ac_try" in
17837
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838
*) ac_try_echo=$ac_try;;
17840
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17841
$as_echo "$ac_try_echo") >&5
17842
(eval "$ac_link") 2>conftest.er1
17844
grep -v '^ *+' conftest.er1 >conftest.err
17846
cat conftest.err >&5
17847
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848
(exit $ac_status); } && {
17849
test -z "$ac_c_werror_flag" ||
17850
test ! -s conftest.err
17851
} && test -s conftest$ac_exeext && {
17852
test "$cross_compiling" = yes ||
17853
$as_test_x conftest$ac_exeext
17856
lt_aix_libpath_sed='
17857
/Import File Strings/,/^$/ {
17863
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17864
# Check for a 64-bit object if we didn't find anything.
17865
if test -z "$aix_libpath"; then
17866
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17869
$as_echo "$as_me: failed program was:" >&5
17870
sed 's/^/| /' conftest.$ac_ext >&5
17875
rm -rf conftest.dSYM
17876
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17877
conftest$ac_exeext conftest.$ac_ext
17878
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17880
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17881
# Warning - without using the other run time loading flags,
17882
# -berok will link without error, but may produce a broken library.
17883
no_undefined_flag_GCJ=' ${wl}-bernotok'
17884
allow_undefined_flag_GCJ=' ${wl}-berok'
17885
# Exported symbols can be pulled into shared objects from archives
17886
whole_archive_flag_spec_GCJ='$convenience'
17887
archive_cmds_need_lc_GCJ=yes
17888
# This is similar to how AIX traditionally builds its shared libraries.
17889
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'
17895
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)'
17896
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17897
hardcode_minus_L_GCJ=yes
17898
# see comment about different semantics on the GNU ld section
17903
export_dynamic_flag_spec_GCJ=-rdynamic
17906
cygwin* | mingw* | pw32*)
17907
# When not using gcc, we currently assume that we are using
17908
# Microsoft Visual C++.
17909
# hardcode_libdir_flag_spec is actually meaningless, as there is
17910
# no search path for DLLs.
17911
hardcode_libdir_flag_spec_GCJ=' '
17912
allow_undefined_flag_GCJ=unsupported
17913
# Tell ltmain to make .lib files, not .a files.
17915
# Tell ltmain to make .dll files, not .so files.
17917
# FIXME: Setting linknames here is a bad hack.
17918
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17919
# The linker will automatically build a .lib file if we build a DLL.
17920
old_archive_From_new_cmds_GCJ='true'
17921
# FIXME: Should let the user specify the lib program.
17922
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17923
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17924
enable_shared_with_static_runtimes_GCJ=yes
17927
darwin* | rhapsody*)
17929
rhapsody* | darwin1.[012])
17930
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17933
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17934
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17936
case ${MACOSX_DEPLOYMENT_TARGET} in
17938
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17941
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17947
archive_cmds_need_lc_GCJ=no
17948
hardcode_direct_GCJ=no
17949
hardcode_automatic_GCJ=yes
17950
hardcode_shlibpath_var_GCJ=unsupported
17951
whole_archive_flag_spec_GCJ=''
17952
link_all_deplibs_GCJ=yes
17953
if test "$GCC" = yes ; then
17954
output_verbose_link_cmd='echo'
17955
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}"
17956
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17957
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}"
17958
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}"
17960
case $cc_basename in
17962
output_verbose_link_cmd='echo'
17963
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17964
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17965
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17966
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}'
17967
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}'
17977
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17978
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17979
hardcode_shlibpath_var_GCJ=no
17986
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17987
# support. Future versions do this automatically, but an explicit c++rt0.o
17988
# does not break anything, and helps significantly (at the cost of a little
17991
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17992
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17993
hardcode_direct_GCJ=yes
17994
hardcode_shlibpath_var_GCJ=no
17997
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17999
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18000
hardcode_direct_GCJ=yes
18001
hardcode_minus_L_GCJ=yes
18002
hardcode_shlibpath_var_GCJ=no
18005
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18006
freebsd* | dragonfly*)
18007
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18008
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18009
hardcode_direct_GCJ=yes
18010
hardcode_shlibpath_var_GCJ=no
18014
if test "$GCC" = yes; then
18015
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'
18017
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'
18019
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18020
hardcode_libdir_separator_GCJ=:
18021
hardcode_direct_GCJ=yes
18023
# hardcode_minus_L: Not really in the search PATH,
18024
# but as the default location of the library.
18025
hardcode_minus_L_GCJ=yes
18026
export_dynamic_flag_spec_GCJ='${wl}-E'
18030
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18031
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18033
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18035
if test "$with_gnu_ld" = no; then
18036
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18037
hardcode_libdir_separator_GCJ=:
18039
hardcode_direct_GCJ=yes
18040
export_dynamic_flag_spec_GCJ='${wl}-E'
18042
# hardcode_minus_L: Not really in the search PATH,
18043
# but as the default location of the library.
18044
hardcode_minus_L_GCJ=yes
18049
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18052
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18055
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18058
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18064
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18067
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18070
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18074
if test "$with_gnu_ld" = no; then
18075
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18076
hardcode_libdir_separator_GCJ=:
18080
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18081
hardcode_direct_GCJ=no
18082
hardcode_shlibpath_var_GCJ=no
18085
hardcode_direct_GCJ=yes
18086
export_dynamic_flag_spec_GCJ='${wl}-E'
18088
# hardcode_minus_L: Not really in the search PATH,
18089
# but as the default location of the library.
18090
hardcode_minus_L_GCJ=yes
18096
irix5* | irix6* | nonstopux*)
18097
if test "$GCC" = yes; then
18098
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'
18100
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'
18101
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18103
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18104
hardcode_libdir_separator_GCJ=:
18105
link_all_deplibs_GCJ=yes
18109
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18110
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18112
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18114
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18115
hardcode_direct_GCJ=yes
18116
hardcode_shlibpath_var_GCJ=no
18120
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18121
hardcode_direct_GCJ=yes
18122
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18123
hardcode_libdir_separator_GCJ=:
18124
hardcode_shlibpath_var_GCJ=no
18128
if test -f /usr/libexec/ld.so; then
18129
hardcode_direct_GCJ=yes
18130
hardcode_shlibpath_var_GCJ=no
18131
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18132
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18133
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18134
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18135
export_dynamic_flag_spec_GCJ='${wl}-E'
18138
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18139
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18140
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18143
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18144
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18154
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18155
hardcode_minus_L_GCJ=yes
18156
allow_undefined_flag_GCJ=unsupported
18157
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'
18158
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18162
if test "$GCC" = yes; then
18163
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18164
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'
18166
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18167
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'
18169
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18170
hardcode_libdir_separator_GCJ=:
18173
osf4* | osf5*) # as osf3* with the addition of -msym flag
18174
if test "$GCC" = yes; then
18175
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18176
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'
18177
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18179
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18180
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'
18181
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~
18182
$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'
18184
# Both c and cxx compiler support -rpath directly
18185
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18187
hardcode_libdir_separator_GCJ=:
18191
no_undefined_flag_GCJ=' -z text'
18192
if test "$GCC" = yes; then
18194
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18195
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18196
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18199
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18200
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18201
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18203
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18204
hardcode_shlibpath_var_GCJ=no
18206
solaris2.[0-5] | solaris2.[0-5].*) ;;
18208
# The compiler driver will combine and reorder linker options,
18209
# but understands `-z linker_flag'. GCC discards it without `$wl',
18210
# but is careful enough not to reorder.
18211
# Supported since Solaris 2.6 (maybe 2.5.1?)
18212
if test "$GCC" = yes; then
18213
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18215
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18219
link_all_deplibs_GCJ=yes
18223
if test "x$host_vendor" = xsequent; then
18224
# Use $CC to link under sequent, because it throws in some extra .o
18225
# files that make .init and .fini sections work.
18226
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18228
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18230
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18231
hardcode_direct_GCJ=yes
18232
hardcode_minus_L_GCJ=yes
18233
hardcode_shlibpath_var_GCJ=no
18237
case $host_vendor in
18239
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18240
hardcode_direct_GCJ=yes # is this really true???
18243
## LD is ld it makes a PLAMLIB
18244
## CC just makes a GrossModule.
18245
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18246
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18247
hardcode_direct_GCJ=no
18250
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18251
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18254
runpath_var='LD_RUN_PATH'
18255
hardcode_shlibpath_var_GCJ=no
18259
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18260
hardcode_shlibpath_var_GCJ=no
18261
export_dynamic_flag_spec_GCJ='-Bexport'
18265
if test -d /usr/nec; then
18266
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18267
hardcode_shlibpath_var_GCJ=no
18268
runpath_var=LD_RUN_PATH
18269
hardcode_runpath_var=yes
18274
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18275
no_undefined_flag_GCJ='${wl}-z,text'
18276
archive_cmds_need_lc_GCJ=no
18277
hardcode_shlibpath_var_GCJ=no
18278
runpath_var='LD_RUN_PATH'
18280
if test "$GCC" = yes; then
18281
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18282
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18284
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18285
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18289
sysv5* | sco3.2v5* | sco5v6*)
18290
# Note: We can NOT use -z defs as we might desire, because we do not
18291
# link with -lc, and that would cause any symbols used from libc to
18292
# always be unresolved, which means just about no library would
18293
# ever link correctly. If we're not using GNU ld we use -z text
18294
# though, which does catch some bad symbols but isn't as heavy-handed
18296
no_undefined_flag_GCJ='${wl}-z,text'
18297
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18298
archive_cmds_need_lc_GCJ=no
18299
hardcode_shlibpath_var_GCJ=no
18300
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18301
hardcode_libdir_separator_GCJ=':'
18302
link_all_deplibs_GCJ=yes
18303
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18304
runpath_var='LD_RUN_PATH'
18306
if test "$GCC" = yes; then
18307
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18308
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18310
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18311
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18316
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18317
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18318
hardcode_shlibpath_var_GCJ=no
18327
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18328
$as_echo "$ld_shlibs_GCJ" >&6; }
18329
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18332
# Do we need to explicitly link libc?
18334
case "x$archive_cmds_need_lc_GCJ" in
18336
# Assume -lc should be added
18337
archive_cmds_need_lc_GCJ=yes
18339
if test "$enable_shared" = yes && test "$GCC" = yes; then
18340
case $archive_cmds_GCJ in
18342
# FIXME: we may have to deal with multi-command sequences.
18345
# Test whether the compiler implicitly links with -lc since on some
18346
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18347
# to ld, don't add -lc before -lgcc.
18348
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18349
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18351
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18353
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18354
(eval $ac_compile) 2>&5
18356
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357
(exit $ac_status); } 2>conftest.err; then
18360
libobjs=conftest.$ac_objext
18362
wl=$lt_prog_compiler_wl_GCJ
18363
pic_flag=$lt_prog_compiler_pic_GCJ
18369
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18370
allow_undefined_flag_GCJ=
18371
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18372
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18374
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375
(exit $ac_status); }
18377
archive_cmds_need_lc_GCJ=no
18379
archive_cmds_need_lc_GCJ=yes
18381
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18383
cat conftest.err 1>&5
18386
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18387
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18394
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18395
$as_echo_n "checking dynamic linker characteristics... " >&6; }
18396
library_names_spec=
18397
libname_spec='lib$name'
18401
postuninstall_cmds=
18405
shlibpath_overrides_runpath=unknown
18407
dynamic_linker="$host_os ld.so"
18408
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18410
need_lib_prefix=unknown
18411
hardcode_into_libs=no
18413
# when you set need_version to no, make sure it does not cause -set_version
18414
# flags to be left without arguments
18415
need_version=unknown
18420
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18421
shlibpath_var=LIBPATH
18423
# AIX 3 has no versioning support, so we append a major version to the name.
18424
soname_spec='${libname}${release}${shared_ext}$major'
18431
hardcode_into_libs=yes
18432
if test "$host_cpu" = ia64; then
18433
# AIX 5 supports IA64
18434
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18435
shlibpath_var=LD_LIBRARY_PATH
18437
# With GCC up to 2.95.x, collect2 would create an import file
18438
# for dependence libraries. The import file would start with
18439
# the line `#! .'. This would cause the generated library to
18440
# depend on `.', always an invalid library. This was fixed in
18441
# development snapshots of GCC prior to 3.0.
18443
aix4 | aix4.[01] | aix4.[01].*)
18444
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18446
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18449
can_build_shared=no
18453
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18454
# soname into executable. Probably we can add versioning support to
18455
# collect2, so additional links can be useful in future.
18456
if test "$aix_use_runtimelinking" = yes; then
18457
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18458
# instead of lib<name>.a to let people know that these are not
18459
# typical AIX shared libraries.
18460
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18462
# We preserve .a as extension for shared libraries through AIX4.2
18463
# and later when we are not doing run time linking.
18464
library_names_spec='${libname}${release}.a $libname.a'
18465
soname_spec='${libname}${release}${shared_ext}$major'
18467
shlibpath_var=LIBPATH
18472
library_names_spec='$libname.ixlibrary $libname.a'
18473
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18474
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'
18478
library_names_spec='${libname}${shared_ext}'
18479
dynamic_linker="$host_os ld.so"
18480
shlibpath_var=LIBRARY_PATH
18486
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18487
soname_spec='${libname}${release}${shared_ext}$major'
18488
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18489
shlibpath_var=LD_LIBRARY_PATH
18490
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18491
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18492
# the default ld.so.conf also contains /usr/contrib/lib and
18493
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18494
# libtool to hard-code these into programs
18497
cygwin* | mingw* | pw32*)
18498
version_type=windows
18503
case $GCC,$host_os in
18504
yes,cygwin* | yes,mingw* | yes,pw32*)
18505
library_names_spec='$libname.dll.a'
18506
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18507
postinstall_cmds='base_file=`basename \${file}`~
18508
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18509
dldir=$destdir/`dirname \$dlpath`~
18510
test -d \$dldir || mkdir -p \$dldir~
18511
$install_prog $dir/$dlname \$dldir/$dlname~
18512
chmod a+x \$dldir/$dlname'
18513
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18514
dlpath=$dir/\$dldll~
18516
shlibpath_overrides_runpath=yes
18520
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18521
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18522
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18525
# MinGW DLLs use traditional 'lib' prefix
18526
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18527
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18528
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18529
# It is most probably a Windows format PATH printed by
18530
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18531
# path with ; separators, and with drive letters. We can handle the
18532
# drive letters (cygwin fileutils understands them), so leave them,
18533
# especially as we might pass files found there to a mingw objdump,
18534
# which wouldn't understand a cygwinified path. Ahh.
18535
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18537
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18541
# pw32 DLLs use 'pw' prefix rather than 'lib'
18542
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18548
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18551
dynamic_linker='Win32 ld.exe'
18552
# FIXME: first we should search . and the directory the executable is in
18556
darwin* | rhapsody*)
18557
dynamic_linker="$host_os dyld"
18558
version_type=darwin
18561
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18562
soname_spec='${libname}${release}${major}$shared_ext'
18563
shlibpath_overrides_runpath=yes
18564
shlibpath_var=DYLD_LIBRARY_PATH
18565
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18567
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18574
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18575
soname_spec='${libname}${release}${shared_ext}$major'
18576
shlibpath_var=LD_LIBRARY_PATH
18583
freebsd* | dragonfly*)
18584
# DragonFly does not have aout. When/if they implement a new
18585
# versioning mechanism, adjust this.
18586
if test -x /usr/bin/objformat; then
18587
objformat=`/usr/bin/objformat`
18590
freebsd[123]*) objformat=aout ;;
18591
*) objformat=elf ;;
18594
version_type=freebsd-$objformat
18595
case $version_type in
18597
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18602
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18606
shlibpath_var=LD_LIBRARY_PATH
18609
shlibpath_overrides_runpath=yes
18611
freebsd3.[01]* | freebsdelf3.[01]*)
18612
shlibpath_overrides_runpath=yes
18613
hardcode_into_libs=yes
18615
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18616
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18617
shlibpath_overrides_runpath=no
18618
hardcode_into_libs=yes
18620
*) # from 4.6 on, and DragonFly
18621
shlibpath_overrides_runpath=yes
18622
hardcode_into_libs=yes
18631
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18632
soname_spec='${libname}${release}${shared_ext}$major'
18633
shlibpath_var=LD_LIBRARY_PATH
18634
hardcode_into_libs=yes
18637
hpux9* | hpux10* | hpux11*)
18638
# Give a soname corresponding to the major version so that dld.sl refuses to
18639
# link against other versions.
18646
hardcode_into_libs=yes
18647
dynamic_linker="$host_os dld.so"
18648
shlibpath_var=LD_LIBRARY_PATH
18649
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18650
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18651
soname_spec='${libname}${release}${shared_ext}$major'
18652
if test "X$HPUX_IA64_MODE" = X32; then
18653
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18655
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18657
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18661
hardcode_into_libs=yes
18662
dynamic_linker="$host_os dld.sl"
18663
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18664
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18665
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18666
soname_spec='${libname}${release}${shared_ext}$major'
18667
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18668
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18672
dynamic_linker="$host_os dld.sl"
18673
shlibpath_var=SHLIB_PATH
18674
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18675
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18676
soname_spec='${libname}${release}${shared_ext}$major'
18679
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18680
postinstall_cmds='chmod 555 $lib'
18687
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18688
soname_spec='${libname}${release}${shared_ext}$major'
18689
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18690
shlibpath_var=LD_LIBRARY_PATH
18691
shlibpath_overrides_runpath=no
18692
hardcode_into_libs=yes
18695
irix5* | irix6* | nonstopux*)
18697
nonstopux*) version_type=nonstopux ;;
18699
if test "$lt_cv_prog_gnu_ld" = yes; then
18707
soname_spec='${libname}${release}${shared_ext}$major'
18708
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18710
irix5* | nonstopux*)
18711
libsuff= shlibsuff=
18714
case $LD in # libtool.m4 will add one of these switches to LD
18715
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18716
libsuff= shlibsuff= libmagic=32-bit;;
18717
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18718
libsuff=32 shlibsuff=N32 libmagic=N32;;
18719
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18720
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18721
*) libsuff= shlibsuff= libmagic=never-match;;
18725
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18726
shlibpath_overrides_runpath=no
18727
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18728
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18729
hardcode_into_libs=yes
18732
# No shared lib support for Linux oldld, aout, or coff.
18733
linux*oldld* | linux*aout* | linux*coff*)
18737
# This must be Linux ELF.
18738
linux* | k*bsd*-gnu)
18742
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18743
soname_spec='${libname}${release}${shared_ext}$major'
18744
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18745
shlibpath_var=LD_LIBRARY_PATH
18746
shlibpath_overrides_runpath=no
18747
# This implies no fast_install, which is unacceptable.
18748
# Some rework will be needed to allow for fast_install
18749
# before this can be enabled.
18750
hardcode_into_libs=yes
18751
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18752
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18754
# Append ld.so.conf contents to the search path
18755
if test -f /etc/ld.so.conf; then
18756
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' ' '`
18757
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18760
# We used to test for /lib/ld.so.1 and disable shared libraries on
18761
# powerpc, because MkLinux only supported shared libraries with the
18762
# GNU dynamic linker. Since this was broken with cross compilers,
18763
# most powerpc-linux boxes support dynamic linking these days and
18764
# people can always --disable-shared, the test was removed, and we
18765
# assume the GNU/Linux dynamic linker is in use.
18766
dynamic_linker='GNU/Linux ld.so'
18773
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18774
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18775
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18776
dynamic_linker='NetBSD (a.out) ld.so'
18778
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18779
soname_spec='${libname}${release}${shared_ext}$major'
18780
dynamic_linker='NetBSD ld.elf_so'
18782
shlibpath_var=LD_LIBRARY_PATH
18783
shlibpath_overrides_runpath=yes
18784
hardcode_into_libs=yes
18789
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18790
shlibpath_var=LD_LIBRARY_PATH
18791
shlibpath_overrides_runpath=yes
18798
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18799
soname_spec='${libname}${release}${shared_ext}$major'
18800
shlibpath_var=LD_LIBRARY_PATH
18801
shlibpath_overrides_runpath=yes
18806
sys_lib_dlsearch_path_spec="/usr/lib"
18808
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18810
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18811
*) need_version=no ;;
18813
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18814
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18815
shlibpath_var=LD_LIBRARY_PATH
18816
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18818
openbsd2.[89] | openbsd2.[89].*)
18819
shlibpath_overrides_runpath=no
18822
shlibpath_overrides_runpath=yes
18826
shlibpath_overrides_runpath=yes
18831
libname_spec='$name'
18834
library_names_spec='$libname${shared_ext} $libname.a'
18835
dynamic_linker='OS/2 ld.exe'
18836
shlibpath_var=LIBPATH
18839
osf3* | osf4* | osf5*)
18843
soname_spec='${libname}${release}${shared_ext}$major'
18844
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18845
shlibpath_var=LD_LIBRARY_PATH
18846
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18847
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18858
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18859
soname_spec='${libname}${release}${shared_ext}$major'
18860
shlibpath_var=LD_LIBRARY_PATH
18861
shlibpath_overrides_runpath=yes
18862
hardcode_into_libs=yes
18863
# ldd complains unless libraries are executable
18864
postinstall_cmds='chmod +x $lib'
18869
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18870
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18871
shlibpath_var=LD_LIBRARY_PATH
18872
shlibpath_overrides_runpath=yes
18873
if test "$with_gnu_ld" = yes; then
18881
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18882
soname_spec='${libname}${release}${shared_ext}$major'
18883
shlibpath_var=LD_LIBRARY_PATH
18884
case $host_vendor in
18886
shlibpath_overrides_runpath=no
18888
export_dynamic_flag_spec='${wl}-Blargedynsym'
18889
runpath_var=LD_RUN_PATH
18897
shlibpath_overrides_runpath=no
18898
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18904
if test -d /usr/nec ;then
18906
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18907
soname_spec='$libname${shared_ext}.$major'
18908
shlibpath_var=LD_LIBRARY_PATH
18912
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18913
version_type=freebsd-elf
18916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18917
soname_spec='${libname}${release}${shared_ext}$major'
18918
shlibpath_var=LD_LIBRARY_PATH
18919
hardcode_into_libs=yes
18920
if test "$with_gnu_ld" = yes; then
18921
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18922
shlibpath_overrides_runpath=no
18924
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18925
shlibpath_overrides_runpath=yes
18928
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18932
sys_lib_dlsearch_path_spec='/usr/lib'
18937
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18938
soname_spec='${libname}${release}${shared_ext}$major'
18939
shlibpath_var=LD_LIBRARY_PATH
18946
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18947
$as_echo "$dynamic_linker" >&6; }
18948
test "$dynamic_linker" = no && can_build_shared=no
18950
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18951
$as_echo_n "(cached) " >&6
18953
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18956
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18957
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18958
$as_echo_n "(cached) " >&6
18960
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18963
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18965
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18966
if test "$GCC" = yes; then
18967
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18970
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18971
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18972
hardcode_action_GCJ=
18973
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18974
test -n "$runpath_var_GCJ" || \
18975
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18977
# We can hardcode non-existant directories.
18978
if test "$hardcode_direct_GCJ" != no &&
18979
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18980
# have to relink, otherwise we might link with an installed library
18981
# when we should be linking with a yet-to-be-installed one
18982
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18983
test "$hardcode_minus_L_GCJ" != no; then
18984
# Linking always hardcodes the temporary library directory.
18985
hardcode_action_GCJ=relink
18987
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18988
hardcode_action_GCJ=immediate
18991
# We cannot hardcode anything, or else we can only hardcode existing
18993
hardcode_action_GCJ=unsupported
18995
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18996
$as_echo "$hardcode_action_GCJ" >&6; }
18998
if test "$hardcode_action_GCJ" = relink; then
18999
# Fast installation is not supported
19000
enable_fast_install=no
19001
elif test "$shlibpath_overrides_runpath" = yes ||
19002
test "$enable_shared" = no; then
19003
# Fast installation is not necessary
19004
enable_fast_install=needless
19008
# The else clause should only fire when bootstrapping the
19009
# libtool distribution, otherwise you forgot to ship ltmain.sh
19010
# with your package, and you will get complaints that there are
19011
# no rules to generate ltmain.sh.
19012
if test -f "$ltmain"; then
19013
# See if we are running on zsh, and set the options which allow our commands through
19014
# without removal of \ escapes.
19015
if test -n "${ZSH_VERSION+set}" ; then
19016
setopt NO_GLOB_SUBST
19018
# Now quote all the things that may contain metacharacters while being
19019
# careful not to overquote the AC_SUBSTed values. We take copies of the
19020
# variables and quote the copies for generation of the libtool script.
19021
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19023
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19024
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19025
deplibs_check_method reload_flag reload_cmds need_locks \
19026
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19027
lt_cv_sys_global_symbol_to_c_name_address \
19028
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19029
old_postinstall_cmds old_postuninstall_cmds \
19033
lt_prog_compiler_wl_GCJ \
19034
lt_prog_compiler_pic_GCJ \
19035
lt_prog_compiler_static_GCJ \
19036
lt_prog_compiler_no_builtin_flag_GCJ \
19037
export_dynamic_flag_spec_GCJ \
19038
thread_safe_flag_spec_GCJ \
19039
whole_archive_flag_spec_GCJ \
19040
enable_shared_with_static_runtimes_GCJ \
19041
old_archive_cmds_GCJ \
19042
old_archive_from_new_cmds_GCJ \
19043
predep_objects_GCJ \
19044
postdep_objects_GCJ \
19047
compiler_lib_search_path_GCJ \
19048
compiler_lib_search_dirs_GCJ \
19050
archive_expsym_cmds_GCJ \
19051
postinstall_cmds_GCJ \
19052
postuninstall_cmds_GCJ \
19053
old_archive_from_expsyms_cmds_GCJ \
19054
allow_undefined_flag_GCJ \
19055
no_undefined_flag_GCJ \
19056
export_symbols_cmds_GCJ \
19057
hardcode_libdir_flag_spec_GCJ \
19058
hardcode_libdir_flag_spec_ld_GCJ \
19059
hardcode_libdir_separator_GCJ \
19060
hardcode_automatic_GCJ \
19062
module_expsym_cmds_GCJ \
19063
lt_cv_prog_compiler_c_o_GCJ \
19064
fix_srcfile_path_GCJ \
19065
exclude_expsyms_GCJ \
19066
include_expsyms_GCJ; do
19069
old_archive_cmds_GCJ | \
19070
old_archive_from_new_cmds_GCJ | \
19071
archive_cmds_GCJ | \
19072
archive_expsym_cmds_GCJ | \
19073
module_cmds_GCJ | \
19074
module_expsym_cmds_GCJ | \
19075
old_archive_from_expsyms_cmds_GCJ | \
19076
export_symbols_cmds_GCJ | \
19077
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19078
postinstall_cmds | postuninstall_cmds | \
19079
old_postinstall_cmds | old_postuninstall_cmds | \
19080
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19081
# Double-quote double-evaled strings.
19082
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19085
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19091
*'\$0 --fallback-echo"')
19092
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19098
cat <<__EOF__ >> "$cfgfile"
19099
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19101
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19103
# Shell to use when invoking shell scripts.
19106
# Whether or not to build shared libraries.
19107
build_libtool_libs=$enable_shared
19109
# Whether or not to build static libraries.
19110
build_old_libs=$enable_static
19112
# Whether or not to add -lc for building shared libraries.
19113
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19115
# Whether or not to disallow shared libs when runtime libs are static
19116
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19118
# Whether or not to optimize for fast installation.
19119
fast_install=$enable_fast_install
19122
host_alias=$host_alias
19126
# The build system.
19127
build_alias=$build_alias
19131
# An echo program that does not interpret backslashes.
19136
AR_FLAGS=$lt_AR_FLAGS
19141
# LTCC compiler flags.
19142
LTCFLAGS=$lt_LTCFLAGS
19144
# A language-specific compiler.
19145
CC=$lt_compiler_GCJ
19147
# Is the compiler the GNU C compiler?
19153
# The linker used to build libraries.
19156
# Whether we need hard or soft links.
19159
# A BSD-compatible nm program.
19162
# A symbol stripping program
19165
# Used to examine libraries when file_magic_cmd begins "file"
19166
MAGIC_CMD=$MAGIC_CMD
19168
# Used on cygwin: DLL creation program.
19171
# Used on cygwin: object dumper.
19174
# Used on cygwin: assembler.
19177
# The name of the directory that contains temporary libtool files.
19180
# How to create reloadable object files.
19181
reload_flag=$lt_reload_flag
19182
reload_cmds=$lt_reload_cmds
19184
# How to pass a linker flag through the compiler.
19185
wl=$lt_lt_prog_compiler_wl_GCJ
19187
# Object file suffix (normally "o").
19188
objext="$ac_objext"
19190
# Old archive suffix (normally "a").
19193
# Shared library suffix (normally ".so").
19194
shrext_cmds='$shrext_cmds'
19196
# Executable file suffix (normally "").
19199
# Additional compiler flags for building library objects.
19200
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19203
# What is the maximum length of a command?
19204
max_cmd_len=$lt_cv_sys_max_cmd_len
19206
# Does compiler simultaneously support -c and -o options?
19207
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19209
# Must we lock files when doing compilation?
19210
need_locks=$lt_need_locks
19212
# Do we need the lib prefix for modules?
19213
need_lib_prefix=$need_lib_prefix
19215
# Do we need a version for libraries?
19216
need_version=$need_version
19218
# Whether dlopen is supported.
19219
dlopen_support=$enable_dlopen
19221
# Whether dlopen of programs is supported.
19222
dlopen_self=$enable_dlopen_self
19224
# Whether dlopen of statically linked programs is supported.
19225
dlopen_self_static=$enable_dlopen_self_static
19227
# Compiler flag to prevent dynamic linking.
19228
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19230
# Compiler flag to turn off builtin functions.
19231
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19233
# Compiler flag to allow reflexive dlopens.
19234
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19236
# Compiler flag to generate shared objects directly from archives.
19237
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19239
# Compiler flag to generate thread-safe objects.
19240
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19242
# Library versioning type.
19243
version_type=$version_type
19245
# Format of library name prefix.
19246
libname_spec=$lt_libname_spec
19248
# List of archive names. First name is the real one, the rest are links.
19249
# The last name is the one that the linker finds with -lNAME.
19250
library_names_spec=$lt_library_names_spec
19252
# The coded name of the library, if different from the real name.
19253
soname_spec=$lt_soname_spec
19255
# Commands used to build and install an old-style archive.
19257
old_archive_cmds=$lt_old_archive_cmds_GCJ
19258
old_postinstall_cmds=$lt_old_postinstall_cmds
19259
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19261
# Create an old-style archive from a shared archive.
19262
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19264
# Create a temporary old-style archive to link instead of a shared archive.
19265
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19267
# Commands used to build and install a shared archive.
19268
archive_cmds=$lt_archive_cmds_GCJ
19269
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19270
postinstall_cmds=$lt_postinstall_cmds
19271
postuninstall_cmds=$lt_postuninstall_cmds
19273
# Commands used to build a loadable module (assumed same as above if empty)
19274
module_cmds=$lt_module_cmds_GCJ
19275
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19277
# Commands to strip libraries.
19278
old_striplib=$lt_old_striplib
19279
striplib=$lt_striplib
19281
# Dependencies to place before the objects being linked to create a
19283
predep_objects=$lt_predep_objects_GCJ
19285
# Dependencies to place after the objects being linked to create a
19287
postdep_objects=$lt_postdep_objects_GCJ
19289
# Dependencies to place before the objects being linked to create a
19291
predeps=$lt_predeps_GCJ
19293
# Dependencies to place after the objects being linked to create a
19295
postdeps=$lt_postdeps_GCJ
19297
# The directories searched by this compiler when creating a shared
19299
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19301
# The library search path used internally by the compiler when linking
19302
# a shared library.
19303
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19305
# Method to check whether dependent libraries are shared objects.
19306
deplibs_check_method=$lt_deplibs_check_method
19308
# Command to use when deplibs_check_method == file_magic.
19309
file_magic_cmd=$lt_file_magic_cmd
19311
# Flag that allows shared libraries with undefined symbols to be built.
19312
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19314
# Flag that forces no undefined symbols.
19315
no_undefined_flag=$lt_no_undefined_flag_GCJ
19317
# Commands used to finish a libtool library installation in a directory.
19318
finish_cmds=$lt_finish_cmds
19320
# Same as above, but a single script fragment to be evaled but not shown.
19321
finish_eval=$lt_finish_eval
19323
# Take the output of nm and produce a listing of raw symbols and C names.
19324
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19326
# Transform the output of nm in a proper C declaration
19327
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19329
# Transform the output of nm in a C name address pair
19330
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19332
# This is the shared library runtime path variable.
19333
runpath_var=$runpath_var
19335
# This is the shared library path variable.
19336
shlibpath_var=$shlibpath_var
19338
# Is shlibpath searched before the hard-coded library search path?
19339
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19341
# How to hardcode a shared library path into an executable.
19342
hardcode_action=$hardcode_action_GCJ
19344
# Whether we should hardcode library paths into libraries.
19345
hardcode_into_libs=$hardcode_into_libs
19347
# Flag to hardcode \$libdir into a binary during linking.
19348
# This must work even if \$libdir does not exist.
19349
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19351
# If ld is used when linking, flag to hardcode \$libdir into
19352
# a binary during linking. This must work even if \$libdir does
19354
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19356
# Whether we need a single -rpath flag with a separated argument.
19357
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19359
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19360
# resulting binary.
19361
hardcode_direct=$hardcode_direct_GCJ
19363
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19364
# resulting binary.
19365
hardcode_minus_L=$hardcode_minus_L_GCJ
19367
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19368
# the resulting binary.
19369
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19371
# Set to yes if building a shared library automatically hardcodes DIR into the library
19372
# and all subsequent libraries and executables linked against it.
19373
hardcode_automatic=$hardcode_automatic_GCJ
19375
# Variables whose values should be saved in libtool wrapper scripts and
19376
# restored at relink time.
19377
variables_saved_for_relink="$variables_saved_for_relink"
19379
# Whether libtool must link a program against all its dependency libraries.
19380
link_all_deplibs=$link_all_deplibs_GCJ
19382
# Compile-time system search path for libraries
19383
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19385
# Run-time system search path for libraries
19386
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19388
# Fix the shell variable \$srcfile for the compiler.
19389
fix_srcfile_path=$lt_fix_srcfile_path
19391
# Set to yes if exported symbols are required.
19392
always_export_symbols=$always_export_symbols_GCJ
19394
# The commands to list exported symbols.
19395
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19397
# The commands to extract the exported symbol list from a shared archive.
19398
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19400
# Symbols that should not be listed in the preloaded symbols.
19401
exclude_expsyms=$lt_exclude_expsyms_GCJ
19403
# Symbols that must always be exported.
19404
include_expsyms=$lt_include_expsyms_GCJ
19406
# ### END LIBTOOL TAG CONFIG: $tagname
19412
# If there is no Makefile yet, we rely on a make rule to execute
19413
# `config.status --recheck' to rerun these tests and create the
19414
# libtool script then.
19415
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19416
if test -f "$ltmain_in"; then
19417
test -f Makefile && make "$ltmain"
19423
ac_cpp='$CPP $CPPFLAGS'
19424
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19425
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19426
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19438
# Source file extension for RC test sources.
19441
# Object file extension for compiled RC test sources.
19445
# Code to be used in simple compile tests
19446
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19448
# Code to be used in simple link tests
19449
lt_simple_link_test_code="$lt_simple_compile_test_code"
19451
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19453
# If no C compiler was specified, use CC.
19456
# If no C compiler flags were specified, use CFLAGS.
19457
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19459
# Allow CC to be a program name with arguments.
19463
# save warnings/boilerplate of simple test code
19464
ac_outfile=conftest.$ac_objext
19465
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19466
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19467
_lt_compiler_boilerplate=`cat conftest.err`
19470
ac_outfile=conftest.$ac_objext
19471
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19472
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19473
_lt_linker_boilerplate=`cat conftest.err`
19477
# Allow CC to be a program name with arguments.
19482
for cc_temp in $compiler""; do
19484
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19485
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19490
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19492
lt_cv_prog_compiler_c_o_RC=yes
19494
# The else clause should only fire when bootstrapping the
19495
# libtool distribution, otherwise you forgot to ship ltmain.sh
19496
# with your package, and you will get complaints that there are
19497
# no rules to generate ltmain.sh.
19498
if test -f "$ltmain"; then
19499
# See if we are running on zsh, and set the options which allow our commands through
19500
# without removal of \ escapes.
19501
if test -n "${ZSH_VERSION+set}" ; then
19502
setopt NO_GLOB_SUBST
19504
# Now quote all the things that may contain metacharacters while being
19505
# careful not to overquote the AC_SUBSTed values. We take copies of the
19506
# variables and quote the copies for generation of the libtool script.
19507
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19509
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19510
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19511
deplibs_check_method reload_flag reload_cmds need_locks \
19512
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19513
lt_cv_sys_global_symbol_to_c_name_address \
19514
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19515
old_postinstall_cmds old_postuninstall_cmds \
19519
lt_prog_compiler_wl_RC \
19520
lt_prog_compiler_pic_RC \
19521
lt_prog_compiler_static_RC \
19522
lt_prog_compiler_no_builtin_flag_RC \
19523
export_dynamic_flag_spec_RC \
19524
thread_safe_flag_spec_RC \
19525
whole_archive_flag_spec_RC \
19526
enable_shared_with_static_runtimes_RC \
19527
old_archive_cmds_RC \
19528
old_archive_from_new_cmds_RC \
19529
predep_objects_RC \
19530
postdep_objects_RC \
19533
compiler_lib_search_path_RC \
19534
compiler_lib_search_dirs_RC \
19536
archive_expsym_cmds_RC \
19537
postinstall_cmds_RC \
19538
postuninstall_cmds_RC \
19539
old_archive_from_expsyms_cmds_RC \
19540
allow_undefined_flag_RC \
19541
no_undefined_flag_RC \
19542
export_symbols_cmds_RC \
19543
hardcode_libdir_flag_spec_RC \
19544
hardcode_libdir_flag_spec_ld_RC \
19545
hardcode_libdir_separator_RC \
19546
hardcode_automatic_RC \
19548
module_expsym_cmds_RC \
19549
lt_cv_prog_compiler_c_o_RC \
19550
fix_srcfile_path_RC \
19551
exclude_expsyms_RC \
19552
include_expsyms_RC; do
19555
old_archive_cmds_RC | \
19556
old_archive_from_new_cmds_RC | \
19557
archive_cmds_RC | \
19558
archive_expsym_cmds_RC | \
19560
module_expsym_cmds_RC | \
19561
old_archive_from_expsyms_cmds_RC | \
19562
export_symbols_cmds_RC | \
19563
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19564
postinstall_cmds | postuninstall_cmds | \
19565
old_postinstall_cmds | old_postuninstall_cmds | \
19566
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19567
# Double-quote double-evaled strings.
19568
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19571
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19577
*'\$0 --fallback-echo"')
19578
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19584
cat <<__EOF__ >> "$cfgfile"
19585
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19587
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19589
# Shell to use when invoking shell scripts.
19592
# Whether or not to build shared libraries.
19593
build_libtool_libs=$enable_shared
19595
# Whether or not to build static libraries.
19596
build_old_libs=$enable_static
19598
# Whether or not to add -lc for building shared libraries.
19599
build_libtool_need_lc=$archive_cmds_need_lc_RC
19601
# Whether or not to disallow shared libs when runtime libs are static
19602
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19604
# Whether or not to optimize for fast installation.
19605
fast_install=$enable_fast_install
19608
host_alias=$host_alias
19612
# The build system.
19613
build_alias=$build_alias
19617
# An echo program that does not interpret backslashes.
19622
AR_FLAGS=$lt_AR_FLAGS
19627
# LTCC compiler flags.
19628
LTCFLAGS=$lt_LTCFLAGS
19630
# A language-specific compiler.
19633
# Is the compiler the GNU C compiler?
19639
# The linker used to build libraries.
19642
# Whether we need hard or soft links.
19645
# A BSD-compatible nm program.
19648
# A symbol stripping program
19651
# Used to examine libraries when file_magic_cmd begins "file"
19652
MAGIC_CMD=$MAGIC_CMD
19654
# Used on cygwin: DLL creation program.
19657
# Used on cygwin: object dumper.
19660
# Used on cygwin: assembler.
19663
# The name of the directory that contains temporary libtool files.
19666
# How to create reloadable object files.
19667
reload_flag=$lt_reload_flag
19668
reload_cmds=$lt_reload_cmds
19670
# How to pass a linker flag through the compiler.
19671
wl=$lt_lt_prog_compiler_wl_RC
19673
# Object file suffix (normally "o").
19674
objext="$ac_objext"
19676
# Old archive suffix (normally "a").
19679
# Shared library suffix (normally ".so").
19680
shrext_cmds='$shrext_cmds'
19682
# Executable file suffix (normally "").
19685
# Additional compiler flags for building library objects.
19686
pic_flag=$lt_lt_prog_compiler_pic_RC
19689
# What is the maximum length of a command?
19690
max_cmd_len=$lt_cv_sys_max_cmd_len
19692
# Does compiler simultaneously support -c and -o options?
19693
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19695
# Must we lock files when doing compilation?
19696
need_locks=$lt_need_locks
19698
# Do we need the lib prefix for modules?
19699
need_lib_prefix=$need_lib_prefix
19701
# Do we need a version for libraries?
19702
need_version=$need_version
19704
# Whether dlopen is supported.
19705
dlopen_support=$enable_dlopen
19707
# Whether dlopen of programs is supported.
19708
dlopen_self=$enable_dlopen_self
19710
# Whether dlopen of statically linked programs is supported.
19711
dlopen_self_static=$enable_dlopen_self_static
19713
# Compiler flag to prevent dynamic linking.
19714
link_static_flag=$lt_lt_prog_compiler_static_RC
19716
# Compiler flag to turn off builtin functions.
19717
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19719
# Compiler flag to allow reflexive dlopens.
19720
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19722
# Compiler flag to generate shared objects directly from archives.
19723
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19725
# Compiler flag to generate thread-safe objects.
19726
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19728
# Library versioning type.
19729
version_type=$version_type
19731
# Format of library name prefix.
19732
libname_spec=$lt_libname_spec
19734
# List of archive names. First name is the real one, the rest are links.
19735
# The last name is the one that the linker finds with -lNAME.
19736
library_names_spec=$lt_library_names_spec
19738
# The coded name of the library, if different from the real name.
19739
soname_spec=$lt_soname_spec
19741
# Commands used to build and install an old-style archive.
19743
old_archive_cmds=$lt_old_archive_cmds_RC
19744
old_postinstall_cmds=$lt_old_postinstall_cmds
19745
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19747
# Create an old-style archive from a shared archive.
19748
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19750
# Create a temporary old-style archive to link instead of a shared archive.
19751
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19753
# Commands used to build and install a shared archive.
19754
archive_cmds=$lt_archive_cmds_RC
19755
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19756
postinstall_cmds=$lt_postinstall_cmds
19757
postuninstall_cmds=$lt_postuninstall_cmds
19759
# Commands used to build a loadable module (assumed same as above if empty)
19760
module_cmds=$lt_module_cmds_RC
19761
module_expsym_cmds=$lt_module_expsym_cmds_RC
19763
# Commands to strip libraries.
19764
old_striplib=$lt_old_striplib
19765
striplib=$lt_striplib
19767
# Dependencies to place before the objects being linked to create a
19769
predep_objects=$lt_predep_objects_RC
19771
# Dependencies to place after the objects being linked to create a
19773
postdep_objects=$lt_postdep_objects_RC
19775
# Dependencies to place before the objects being linked to create a
19777
predeps=$lt_predeps_RC
19779
# Dependencies to place after the objects being linked to create a
19781
postdeps=$lt_postdeps_RC
19783
# The directories searched by this compiler when creating a shared
19785
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19787
# The library search path used internally by the compiler when linking
19788
# a shared library.
19789
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19791
# Method to check whether dependent libraries are shared objects.
19792
deplibs_check_method=$lt_deplibs_check_method
19794
# Command to use when deplibs_check_method == file_magic.
19795
file_magic_cmd=$lt_file_magic_cmd
19797
# Flag that allows shared libraries with undefined symbols to be built.
19798
allow_undefined_flag=$lt_allow_undefined_flag_RC
19800
# Flag that forces no undefined symbols.
19801
no_undefined_flag=$lt_no_undefined_flag_RC
19803
# Commands used to finish a libtool library installation in a directory.
19804
finish_cmds=$lt_finish_cmds
19806
# Same as above, but a single script fragment to be evaled but not shown.
19807
finish_eval=$lt_finish_eval
19809
# Take the output of nm and produce a listing of raw symbols and C names.
19810
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19812
# Transform the output of nm in a proper C declaration
19813
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19815
# Transform the output of nm in a C name address pair
19816
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19818
# This is the shared library runtime path variable.
19819
runpath_var=$runpath_var
19821
# This is the shared library path variable.
19822
shlibpath_var=$shlibpath_var
19824
# Is shlibpath searched before the hard-coded library search path?
19825
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19827
# How to hardcode a shared library path into an executable.
19828
hardcode_action=$hardcode_action_RC
19830
# Whether we should hardcode library paths into libraries.
19831
hardcode_into_libs=$hardcode_into_libs
19833
# Flag to hardcode \$libdir into a binary during linking.
19834
# This must work even if \$libdir does not exist.
19835
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19837
# If ld is used when linking, flag to hardcode \$libdir into
19838
# a binary during linking. This must work even if \$libdir does
19840
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19842
# Whether we need a single -rpath flag with a separated argument.
19843
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19845
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19846
# resulting binary.
19847
hardcode_direct=$hardcode_direct_RC
19849
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19850
# resulting binary.
19851
hardcode_minus_L=$hardcode_minus_L_RC
19853
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19854
# the resulting binary.
19855
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19857
# Set to yes if building a shared library automatically hardcodes DIR into the library
19858
# and all subsequent libraries and executables linked against it.
19859
hardcode_automatic=$hardcode_automatic_RC
19861
# Variables whose values should be saved in libtool wrapper scripts and
19862
# restored at relink time.
19863
variables_saved_for_relink="$variables_saved_for_relink"
19865
# Whether libtool must link a program against all its dependency libraries.
19866
link_all_deplibs=$link_all_deplibs_RC
19868
# Compile-time system search path for libraries
19869
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19871
# Run-time system search path for libraries
19872
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19874
# Fix the shell variable \$srcfile for the compiler.
19875
fix_srcfile_path=$lt_fix_srcfile_path
19877
# Set to yes if exported symbols are required.
19878
always_export_symbols=$always_export_symbols_RC
19880
# The commands to list exported symbols.
19881
export_symbols_cmds=$lt_export_symbols_cmds_RC
19883
# The commands to extract the exported symbol list from a shared archive.
19884
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19886
# Symbols that should not be listed in the preloaded symbols.
19887
exclude_expsyms=$lt_exclude_expsyms_RC
19889
# Symbols that must always be exported.
19890
include_expsyms=$lt_include_expsyms_RC
19892
# ### END LIBTOOL TAG CONFIG: $tagname
19898
# If there is no Makefile yet, we rely on a make rule to execute
19899
# `config.status --recheck' to rerun these tests and create the
19900
# libtool script then.
19901
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19902
if test -f "$ltmain_in"; then
19903
test -f Makefile && make "$ltmain"
19909
ac_cpp='$CPP $CPPFLAGS'
19910
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19911
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19912
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19919
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19920
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19921
{ (exit 1); exit 1; }; }
19925
# Append the new tag name to the list of available tags.
19926
if test -n "$tagname" ; then
19927
available_tags="$available_tags $tagname"
19933
# Now substitute the updated list of available tags.
19934
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19935
mv "${ofile}T" "$ofile"
19939
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19940
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19941
{ (exit 1); exit 1; }; }
19947
# This can be used to rebuild libtool when needed
19948
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19950
# Always use our own libtool.
19951
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19953
# Prevent multiple expansion
19975
ac_cpp='$CPP $CPPFLAGS'
19976
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19977
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19978
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19979
if test -n "$ac_tool_prefix"; then
19980
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19981
set dummy ${ac_tool_prefix}gcc; ac_word=$2
19982
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19983
$as_echo_n "checking for $ac_word... " >&6; }
19984
if test "${ac_cv_prog_CC+set}" = set; then
19985
$as_echo_n "(cached) " >&6
19987
if test -n "$CC"; then
19988
ac_cv_prog_CC="$CC" # Let the user override the test.
19990
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19991
for as_dir in $PATH
19994
test -z "$as_dir" && as_dir=.
19995
for ac_exec_ext in '' $ac_executable_extensions; do
19996
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19997
ac_cv_prog_CC="${ac_tool_prefix}gcc"
19998
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20008
if test -n "$CC"; then
20009
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
20010
$as_echo "$CC" >&6; }
20012
{ $as_echo "$as_me:$LINENO: result: no" >&5
20013
$as_echo "no" >&6; }
20018
if test -z "$ac_cv_prog_CC"; then
20020
# Extract the first word of "gcc", so it can be a program name with args.
20021
set dummy gcc; ac_word=$2
20022
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20023
$as_echo_n "checking for $ac_word... " >&6; }
20024
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20025
$as_echo_n "(cached) " >&6
20027
if test -n "$ac_ct_CC"; then
20028
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20031
for as_dir in $PATH
20034
test -z "$as_dir" && as_dir=.
20035
for ac_exec_ext in '' $ac_executable_extensions; do
20036
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20037
ac_cv_prog_ac_ct_CC="gcc"
20038
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20047
ac_ct_CC=$ac_cv_prog_ac_ct_CC
20048
if test -n "$ac_ct_CC"; then
20049
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20050
$as_echo "$ac_ct_CC" >&6; }
20052
{ $as_echo "$as_me:$LINENO: result: no" >&5
20053
$as_echo "no" >&6; }
20056
if test "x$ac_ct_CC" = x; then
20059
case $cross_compiling:$ac_tool_warned in
20061
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20062
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20063
ac_tool_warned=yes ;;
20068
CC="$ac_cv_prog_CC"
20071
if test -z "$CC"; then
20072
if test -n "$ac_tool_prefix"; then
20073
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20074
set dummy ${ac_tool_prefix}cc; ac_word=$2
20075
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20076
$as_echo_n "checking for $ac_word... " >&6; }
20077
if test "${ac_cv_prog_CC+set}" = set; then
20078
$as_echo_n "(cached) " >&6
20080
if test -n "$CC"; then
20081
ac_cv_prog_CC="$CC" # Let the user override the test.
20083
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20084
for as_dir in $PATH
20087
test -z "$as_dir" && as_dir=.
20088
for ac_exec_ext in '' $ac_executable_extensions; do
20089
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20090
ac_cv_prog_CC="${ac_tool_prefix}cc"
20091
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20101
if test -n "$CC"; then
20102
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
20103
$as_echo "$CC" >&6; }
20105
{ $as_echo "$as_me:$LINENO: result: no" >&5
20106
$as_echo "no" >&6; }
20112
if test -z "$CC"; then
20113
# Extract the first word of "cc", so it can be a program name with args.
20114
set dummy cc; ac_word=$2
20115
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20116
$as_echo_n "checking for $ac_word... " >&6; }
20117
if test "${ac_cv_prog_CC+set}" = set; then
20118
$as_echo_n "(cached) " >&6
20120
if test -n "$CC"; then
20121
ac_cv_prog_CC="$CC" # Let the user override the test.
20123
ac_prog_rejected=no
20124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20125
for as_dir in $PATH
20128
test -z "$as_dir" && as_dir=.
20129
for ac_exec_ext in '' $ac_executable_extensions; do
20130
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20131
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20132
ac_prog_rejected=yes
20136
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20143
if test $ac_prog_rejected = yes; then
20144
# We found a bogon in the path, so make sure we never use it.
20145
set dummy $ac_cv_prog_CC
20147
if test $# != 0; then
20148
# We chose a different compiler from the bogus one.
20149
# However, it has the same basename, so the bogon will be chosen
20150
# first if we set CC to just the basename; use the full file name.
20152
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20158
if test -n "$CC"; then
20159
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
20160
$as_echo "$CC" >&6; }
20162
{ $as_echo "$as_me:$LINENO: result: no" >&5
20163
$as_echo "no" >&6; }
20168
if test -z "$CC"; then
20169
if test -n "$ac_tool_prefix"; then
20170
for ac_prog in cl.exe
20172
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20173
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20174
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20175
$as_echo_n "checking for $ac_word... " >&6; }
20176
if test "${ac_cv_prog_CC+set}" = set; then
20177
$as_echo_n "(cached) " >&6
20179
if test -n "$CC"; then
20180
ac_cv_prog_CC="$CC" # Let the user override the test.
20182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20183
for as_dir in $PATH
20186
test -z "$as_dir" && as_dir=.
20187
for ac_exec_ext in '' $ac_executable_extensions; do
20188
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20189
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20190
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20200
if test -n "$CC"; then
20201
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
20202
$as_echo "$CC" >&6; }
20204
{ $as_echo "$as_me:$LINENO: result: no" >&5
20205
$as_echo "no" >&6; }
20209
test -n "$CC" && break
20212
if test -z "$CC"; then
20214
for ac_prog in cl.exe
20216
# Extract the first word of "$ac_prog", so it can be a program name with args.
20217
set dummy $ac_prog; ac_word=$2
20218
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20219
$as_echo_n "checking for $ac_word... " >&6; }
20220
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20221
$as_echo_n "(cached) " >&6
20223
if test -n "$ac_ct_CC"; then
20224
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20227
for as_dir in $PATH
20230
test -z "$as_dir" && as_dir=.
20231
for ac_exec_ext in '' $ac_executable_extensions; do
20232
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20233
ac_cv_prog_ac_ct_CC="$ac_prog"
20234
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20243
ac_ct_CC=$ac_cv_prog_ac_ct_CC
20244
if test -n "$ac_ct_CC"; then
20245
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20246
$as_echo "$ac_ct_CC" >&6; }
20248
{ $as_echo "$as_me:$LINENO: result: no" >&5
20249
$as_echo "no" >&6; }
20253
test -n "$ac_ct_CC" && break
20256
if test "x$ac_ct_CC" = x; then
20259
case $cross_compiling:$ac_tool_warned in
20261
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20262
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20263
ac_tool_warned=yes ;;
20272
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20273
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20274
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20275
See \`config.log' for more details." >&5
20276
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20277
See \`config.log' for more details." >&2;}
20278
{ (exit 1); exit 1; }; }; }
20280
# Provide some information about the compiler.
20281
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20284
{ (ac_try="$ac_compiler --version >&5"
20285
case "(($ac_try" in
20286
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287
*) ac_try_echo=$ac_try;;
20289
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20290
$as_echo "$ac_try_echo") >&5
20291
(eval "$ac_compiler --version >&5") 2>&5
20293
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294
(exit $ac_status); }
20295
{ (ac_try="$ac_compiler -v >&5"
20296
case "(($ac_try" in
20297
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298
*) ac_try_echo=$ac_try;;
20300
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20301
$as_echo "$ac_try_echo") >&5
20302
(eval "$ac_compiler -v >&5") 2>&5
20304
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305
(exit $ac_status); }
20306
{ (ac_try="$ac_compiler -V >&5"
20307
case "(($ac_try" in
20308
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309
*) ac_try_echo=$ac_try;;
20311
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20312
$as_echo "$ac_try_echo") >&5
20313
(eval "$ac_compiler -V >&5") 2>&5
20315
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316
(exit $ac_status); }
20318
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20319
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20320
if test "${ac_cv_c_compiler_gnu+set}" = set; then
20321
$as_echo_n "(cached) " >&6
20323
cat >conftest.$ac_ext <<_ACEOF
20326
cat confdefs.h >>conftest.$ac_ext
20327
cat >>conftest.$ac_ext <<_ACEOF
20328
/* end confdefs.h. */
20341
rm -f conftest.$ac_objext
20342
if { (ac_try="$ac_compile"
20343
case "(($ac_try" in
20344
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345
*) ac_try_echo=$ac_try;;
20347
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20348
$as_echo "$ac_try_echo") >&5
20349
(eval "$ac_compile") 2>conftest.er1
20351
grep -v '^ *+' conftest.er1 >conftest.err
20353
cat conftest.err >&5
20354
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355
(exit $ac_status); } && {
20356
test -z "$ac_c_werror_flag" ||
20357
test ! -s conftest.err
20358
} && test -s conftest.$ac_objext; then
20359
ac_compiler_gnu=yes
20361
$as_echo "$as_me: failed program was:" >&5
20362
sed 's/^/| /' conftest.$ac_ext >&5
20367
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20368
ac_cv_c_compiler_gnu=$ac_compiler_gnu
20371
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20372
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20373
if test $ac_compiler_gnu = yes; then
20378
ac_test_CFLAGS=${CFLAGS+set}
20379
ac_save_CFLAGS=$CFLAGS
20380
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20381
$as_echo_n "checking whether $CC accepts -g... " >&6; }
20382
if test "${ac_cv_prog_cc_g+set}" = set; then
20383
$as_echo_n "(cached) " >&6
20385
ac_save_c_werror_flag=$ac_c_werror_flag
20386
ac_c_werror_flag=yes
20389
cat >conftest.$ac_ext <<_ACEOF
20392
cat confdefs.h >>conftest.$ac_ext
20393
cat >>conftest.$ac_ext <<_ACEOF
20394
/* end confdefs.h. */
20404
rm -f conftest.$ac_objext
20405
if { (ac_try="$ac_compile"
20406
case "(($ac_try" in
20407
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408
*) ac_try_echo=$ac_try;;
20410
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20411
$as_echo "$ac_try_echo") >&5
20412
(eval "$ac_compile") 2>conftest.er1
20414
grep -v '^ *+' conftest.er1 >conftest.err
20416
cat conftest.err >&5
20417
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418
(exit $ac_status); } && {
20419
test -z "$ac_c_werror_flag" ||
20420
test ! -s conftest.err
20421
} && test -s conftest.$ac_objext; then
20422
ac_cv_prog_cc_g=yes
20424
$as_echo "$as_me: failed program was:" >&5
20425
sed 's/^/| /' conftest.$ac_ext >&5
20428
cat >conftest.$ac_ext <<_ACEOF
20431
cat confdefs.h >>conftest.$ac_ext
20432
cat >>conftest.$ac_ext <<_ACEOF
20433
/* end confdefs.h. */
20443
rm -f conftest.$ac_objext
20444
if { (ac_try="$ac_compile"
20445
case "(($ac_try" in
20446
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20447
*) ac_try_echo=$ac_try;;
20449
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20450
$as_echo "$ac_try_echo") >&5
20451
(eval "$ac_compile") 2>conftest.er1
20453
grep -v '^ *+' conftest.er1 >conftest.err
20455
cat conftest.err >&5
20456
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457
(exit $ac_status); } && {
20458
test -z "$ac_c_werror_flag" ||
20459
test ! -s conftest.err
20460
} && test -s conftest.$ac_objext; then
20463
$as_echo "$as_me: failed program was:" >&5
20464
sed 's/^/| /' conftest.$ac_ext >&5
20466
ac_c_werror_flag=$ac_save_c_werror_flag
20468
cat >conftest.$ac_ext <<_ACEOF
20471
cat confdefs.h >>conftest.$ac_ext
20472
cat >>conftest.$ac_ext <<_ACEOF
20473
/* end confdefs.h. */
20483
rm -f conftest.$ac_objext
20484
if { (ac_try="$ac_compile"
20485
case "(($ac_try" in
20486
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487
*) ac_try_echo=$ac_try;;
20489
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20490
$as_echo "$ac_try_echo") >&5
20491
(eval "$ac_compile") 2>conftest.er1
20493
grep -v '^ *+' conftest.er1 >conftest.err
20495
cat conftest.err >&5
20496
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497
(exit $ac_status); } && {
20498
test -z "$ac_c_werror_flag" ||
20499
test ! -s conftest.err
20500
} && test -s conftest.$ac_objext; then
20501
ac_cv_prog_cc_g=yes
20503
$as_echo "$as_me: failed program was:" >&5
20504
sed 's/^/| /' conftest.$ac_ext >&5
20509
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20512
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20516
ac_c_werror_flag=$ac_save_c_werror_flag
20518
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20519
$as_echo "$ac_cv_prog_cc_g" >&6; }
20520
if test "$ac_test_CFLAGS" = set; then
20521
CFLAGS=$ac_save_CFLAGS
20522
elif test $ac_cv_prog_cc_g = yes; then
20523
if test "$GCC" = yes; then
20529
if test "$GCC" = yes; then
20535
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20536
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20537
if test "${ac_cv_prog_cc_c89+set}" = set; then
20538
$as_echo_n "(cached) " >&6
20540
ac_cv_prog_cc_c89=no
20542
cat >conftest.$ac_ext <<_ACEOF
20545
cat confdefs.h >>conftest.$ac_ext
20546
cat >>conftest.$ac_ext <<_ACEOF
20547
/* end confdefs.h. */
20548
#include <stdarg.h>
20550
#include <sys/types.h>
20551
#include <sys/stat.h>
20552
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20553
struct buf { int x; };
20554
FILE * (*rcsopen) (struct buf *, struct stat *, int);
20555
static char *e (p, i)
20561
static char *f (char * (*g) (char **, int), char **p, ...)
20566
s = g (p, va_arg (v,int));
20571
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20572
function prototypes and stuff, but not '\xHH' hex character constants.
20573
These don't provoke an error unfortunately, instead are silently treated
20574
as 'x'. The following induces an error, until -std is added to get
20575
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20576
array size at least. It's necessary to write '\x00'==0 to get something
20577
that's true only with -std. */
20578
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20580
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20581
inside strings and character constants. */
20583
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20585
int test (int i, double x);
20586
struct s1 {int (*f) (int a);};
20587
struct s2 {int (*f) (double a);};
20588
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20594
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20599
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20600
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20602
CC="$ac_save_CC $ac_arg"
20603
rm -f conftest.$ac_objext
20604
if { (ac_try="$ac_compile"
20605
case "(($ac_try" in
20606
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20607
*) ac_try_echo=$ac_try;;
20609
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20610
$as_echo "$ac_try_echo") >&5
20611
(eval "$ac_compile") 2>conftest.er1
20613
grep -v '^ *+' conftest.er1 >conftest.err
20615
cat conftest.err >&5
20616
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617
(exit $ac_status); } && {
20618
test -z "$ac_c_werror_flag" ||
20619
test ! -s conftest.err
20620
} && test -s conftest.$ac_objext; then
20621
ac_cv_prog_cc_c89=$ac_arg
20623
$as_echo "$as_me: failed program was:" >&5
20624
sed 's/^/| /' conftest.$ac_ext >&5
20629
rm -f core conftest.err conftest.$ac_objext
20630
test "x$ac_cv_prog_cc_c89" != "xno" && break
20632
rm -f conftest.$ac_ext
20637
case "x$ac_cv_prog_cc_c89" in
20639
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
20640
$as_echo "none needed" >&6; } ;;
20642
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
20643
$as_echo "unsupported" >&6; } ;;
20645
CC="$CC $ac_cv_prog_cc_c89"
20646
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20647
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20652
ac_cpp='$CPP $CPPFLAGS'
20653
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20654
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20655
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20657
depcc="$CC" am_compiler_list=
20659
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20660
$as_echo_n "checking dependency style of $depcc... " >&6; }
20661
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20662
$as_echo_n "(cached) " >&6
20664
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20665
# We make a subdir and do the tests there. Otherwise we can end up
20666
# making bogus files that we don't know about and never remove. For
20667
# instance it was reported that on HP-UX the gcc test will end up
20668
# making a dummy file named `D' -- because `-MD' means `put the output
20671
# Copy depcomp to subdir because otherwise we won't find it if we're
20672
# using a relative directory.
20673
cp "$am_depcomp" conftest.dir
20675
# We will build objects and dependencies in a subdirectory because
20676
# it helps to detect inapplicable dependency modes. For instance
20677
# both Tru64's cc and ICC support -MD to output dependencies as a
20678
# side effect of compilation, but ICC will put the dependencies in
20679
# the current directory while Tru64 will put them in the object
20683
am_cv_CC_dependencies_compiler_type=none
20684
if test "$am_compiler_list" = ""; then
20685
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20687
for depmode in $am_compiler_list; do
20688
# Setup a source with many dependencies, because some compilers
20689
# like to wrap large dependency lists on column 80 (with \), and
20690
# we should not choose a depcomp mode which is confused by this.
20692
# We need to recreate these files for each test, as the compiler may
20693
# overwrite some of them when testing with obscure command lines.
20694
# This happens at least with the AIX C compiler.
20696
for i in 1 2 3 4 5 6; do
20697
echo '#include "conftst'$i'.h"' >> sub/conftest.c
20698
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20699
# Solaris 8's {/usr,}/bin/sh.
20700
touch sub/conftst$i.h
20702
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20706
# after this tag, mechanisms are not by side-effect, so they'll
20707
# only be used when explicitly requested
20708
if test "x$enable_dependency_tracking" = xyes; then
20716
# We check with `-c' and `-o' for the sake of the "dashmstdout"
20717
# mode. It turns out that the SunPro C++ compiler does not properly
20718
# handle `-M -o', and we need to detect this.
20719
if depmode=$depmode \
20720
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20721
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20722
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20723
>/dev/null 2>conftest.err &&
20724
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20725
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20726
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20727
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20728
# icc doesn't choke on unknown options, it will just issue warnings
20729
# or remarks (even with -Werror). So we grep stderr for any message
20730
# that says an option was ignored or not supported.
20731
# When given -MP, icc 7.0 and 7.1 complain thusly:
20732
# icc: Command line warning: ignoring option '-M'; no argument required
20733
# The diagnosis changed in icc 8.0:
20734
# icc: Command line remark: option '-MP' not supported
20735
if (grep 'ignoring option' conftest.err ||
20736
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20737
am_cv_CC_dependencies_compiler_type=$depmode
20744
rm -rf conftest.dir
20746
am_cv_CC_dependencies_compiler_type=none
20750
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20751
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20752
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20755
test "x$enable_dependency_tracking" != xno \
20756
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20757
am__fastdepCC_TRUE=
20758
am__fastdepCC_FALSE='#'
20760
am__fastdepCC_TRUE='#'
20761
am__fastdepCC_FALSE=
20769
{ $as_echo "$as_me:$LINENO: checking which optional backends will be build" >&5
20770
$as_echo_n "checking which optional backends will be build... " >&6; }
20773
{ $as_echo "$as_me:$LINENO: result: eventcomm" >&5
20774
$as_echo "eventcomm" >&6; }
20775
BUILD_EVENTCOMM="yes"
20778
*freebsd* | *openbsd* | *netbsd* | *dragonfly*)
20779
{ $as_echo "$as_me:$LINENO: result: psmcomm" >&5
20780
$as_echo "psmcomm" >&6; }
20781
BUILD_EVENTCOMM="no"
20782
BUILD_PSMCOMM="yes"
20785
{ $as_echo "$as_me:$LINENO: result: none" >&5
20786
$as_echo "none" >&6; }
20787
BUILD_EVENTCOMM="no"
20791
if test "x${BUILD_EVENTCOMM}" = "xyes"; then
20792
BUILD_EVENTCOMM_TRUE=
20793
BUILD_EVENTCOMM_FALSE='#'
20795
BUILD_EVENTCOMM_TRUE='#'
20796
BUILD_EVENTCOMM_FALSE=
20799
if test "x${BUILD_EVENTCOMM}" = "xyes" ; then
20801
cat >>confdefs.h <<\_ACEOF
20802
#define BUILD_EVENTCOMM 1
20806
if test "x${BUILD_PSMCOMM}" = "xyes"; then
20807
BUILD_PSMCOMM_TRUE=
20808
BUILD_PSMCOMM_FALSE='#'
20810
BUILD_PSMCOMM_TRUE='#'
20811
BUILD_PSMCOMM_FALSE=
20814
if test "x${BUILD_PSMCOMM}" = "xyes" ; then
20816
cat >>confdefs.h <<\_ACEOF
20817
#define BUILD_PSMCOMM 1
20822
#AC_DEFINE(XFree86LOADER,1,[Stub define for loadable drivers])
20824
#AC_ARG_ENABLE(XINPUT, AS_HELP_STRING([--enable-xinput],
20825
# [Build XInput support (default: yes)]),
20826
# [XINPUT=$enableval],[XINPUT=yes])
20827
#AM_CONDITIONAL(XINPUT, test "x$XINPUT" = "xyes")
20828
#if test "x$XINPUT" = "xyes" ; then
20829
# AC_DEFINE(XINPUT,1,[Enable XInput support])
20832
#AC_ARG_ENABLE(XKB, AS_HELP_STRING([--enable-xkb],
20833
# [Build XKB support (default: yes)]),
20834
# [XKB=$enableval],[XKB=yes])
20835
#AM_CONDITIONAL(XKB, test "x$XKB" = "xyes")
20836
#if test "x$XKB" = "xyes" ; then
20837
# AC_DEFINE(XKB,1,[Enable XKB support])
20841
# Check whether --with-xorg-module-dir was given.
20842
if test "${with_xorg_module_dir+set}" = set; then
20843
withval=$with_xorg_module_dir; moduledir="$withval"
20845
moduledir="$libdir/xorg/modules"
20848
inputdir=${moduledir}/input
20851
# Checks for extensions
20853
SAVE_CFLAGS="$CFLAGS"
20854
CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20855
cat >conftest.$ac_ext <<_ACEOF
20858
cat confdefs.h >>conftest.$ac_ext
20859
cat >>conftest.$ac_ext <<_ACEOF
20860
/* end confdefs.h. */
20862
#include "xorg-server.h"
20864
#error RANDR not defined
20875
rm -f conftest.$ac_objext
20876
if { (ac_try="$ac_compile"
20877
case "(($ac_try" in
20878
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879
*) ac_try_echo=$ac_try;;
20881
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20882
$as_echo "$ac_try_echo") >&5
20883
(eval "$ac_compile") 2>conftest.er1
20885
grep -v '^ *+' conftest.er1 >conftest.err
20887
cat conftest.err >&5
20888
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889
(exit $ac_status); } && {
20890
test -z "$ac_c_werror_flag" ||
20891
test ! -s conftest.err
20892
} && test -s conftest.$ac_objext; then
20895
$as_echo "$as_me: failed program was:" >&5
20896
sed 's/^/| /' conftest.$ac_ext >&5
20901
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902
CFLAGS="$SAVE_CFLAGS"
20903
{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20904
$as_echo_n "checking if RANDR is defined... " >&6; }
20905
{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20906
$as_echo "$_EXT_CHECK" >&6; }
20907
if test "$_EXT_CHECK" != no; then
20908
REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20912
SAVE_CFLAGS="$CFLAGS"
20913
CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20914
cat >conftest.$ac_ext <<_ACEOF
20917
cat confdefs.h >>conftest.$ac_ext
20918
cat >>conftest.$ac_ext <<_ACEOF
20919
/* end confdefs.h. */
20921
#include "xorg-server.h"
20922
#if !defined XINPUT
20923
#error XINPUT not defined
20934
rm -f conftest.$ac_objext
20935
if { (ac_try="$ac_compile"
20936
case "(($ac_try" in
20937
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20938
*) ac_try_echo=$ac_try;;
20940
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20941
$as_echo "$ac_try_echo") >&5
20942
(eval "$ac_compile") 2>conftest.er1
20944
grep -v '^ *+' conftest.er1 >conftest.err
20946
cat conftest.err >&5
20947
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948
(exit $ac_status); } && {
20949
test -z "$ac_c_werror_flag" ||
20950
test ! -s conftest.err
20951
} && test -s conftest.$ac_objext; then
20954
$as_echo "$as_me: failed program was:" >&5
20955
sed 's/^/| /' conftest.$ac_ext >&5
20960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20961
CFLAGS="$SAVE_CFLAGS"
20962
{ $as_echo "$as_me:$LINENO: checking if XINPUT is defined" >&5
20963
$as_echo_n "checking if XINPUT is defined... " >&6; }
20964
{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20965
$as_echo "$_EXT_CHECK" >&6; }
20966
if test "$_EXT_CHECK" != no; then
20967
REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
20971
# Checks for pkg-config packages
20974
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20975
if test -n "$ac_tool_prefix"; then
20976
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20977
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20978
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20979
$as_echo_n "checking for $ac_word... " >&6; }
20980
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20981
$as_echo_n "(cached) " >&6
20983
case $PKG_CONFIG in
20985
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20988
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20989
for as_dir in $PATH
20992
test -z "$as_dir" && as_dir=.
20993
for ac_exec_ext in '' $ac_executable_extensions; do
20994
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20995
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20996
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21006
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21007
if test -n "$PKG_CONFIG"; then
21008
{ $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21009
$as_echo "$PKG_CONFIG" >&6; }
21011
{ $as_echo "$as_me:$LINENO: result: no" >&5
21012
$as_echo "no" >&6; }
21017
if test -z "$ac_cv_path_PKG_CONFIG"; then
21018
ac_pt_PKG_CONFIG=$PKG_CONFIG
21019
# Extract the first word of "pkg-config", so it can be a program name with args.
21020
set dummy pkg-config; ac_word=$2
21021
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21022
$as_echo_n "checking for $ac_word... " >&6; }
21023
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21024
$as_echo_n "(cached) " >&6
21026
case $ac_pt_PKG_CONFIG in
21028
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21031
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21032
for as_dir in $PATH
21035
test -z "$as_dir" && as_dir=.
21036
for ac_exec_ext in '' $ac_executable_extensions; do
21037
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21038
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21039
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21049
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21050
if test -n "$ac_pt_PKG_CONFIG"; then
21051
{ $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21052
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21054
{ $as_echo "$as_me:$LINENO: result: no" >&5
21055
$as_echo "no" >&6; }
21058
if test "x$ac_pt_PKG_CONFIG" = x; then
21061
case $cross_compiling:$ac_tool_warned in
21063
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21064
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21065
ac_tool_warned=yes ;;
21067
PKG_CONFIG=$ac_pt_PKG_CONFIG
21070
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21074
if test -n "$PKG_CONFIG"; then
21075
_pkg_min_version=0.9.0
21076
{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21077
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21078
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21079
{ $as_echo "$as_me:$LINENO: result: yes" >&5
21080
$as_echo "yes" >&6; }
21082
{ $as_echo "$as_me:$LINENO: result: no" >&5
21083
$as_echo "no" >&6; }
21090
{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
21091
$as_echo_n "checking for XORG... " >&6; }
21093
if test -n "$XORG_CFLAGS"; then
21094
pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21095
elif test -n "$PKG_CONFIG"; then
21096
if test -n "$PKG_CONFIG" && \
21097
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto \$REQUIRED_MODULES\"") >&5
21098
($PKG_CONFIG --exists --print-errors "xorg-server xproto $REQUIRED_MODULES") 2>&5
21100
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101
(exit $ac_status); }; then
21102
pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto $REQUIRED_MODULES" 2>/dev/null`
21109
if test -n "$XORG_LIBS"; then
21110
pkg_cv_XORG_LIBS="$XORG_LIBS"
21111
elif test -n "$PKG_CONFIG"; then
21112
if test -n "$PKG_CONFIG" && \
21113
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto \$REQUIRED_MODULES\"") >&5
21114
($PKG_CONFIG --exists --print-errors "xorg-server xproto $REQUIRED_MODULES") 2>&5
21116
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117
(exit $ac_status); }; then
21118
pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto $REQUIRED_MODULES" 2>/dev/null`
21128
if test $pkg_failed = yes; then
21130
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21131
_pkg_short_errors_supported=yes
21133
_pkg_short_errors_supported=no
21135
if test $_pkg_short_errors_supported = yes; then
21136
XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server xproto $REQUIRED_MODULES" 2>&1`
21138
XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server xproto $REQUIRED_MODULES" 2>&1`
21140
# Put the nasty error message in config.log where it belongs
21141
echo "$XORG_PKG_ERRORS" >&5
21143
{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server xproto $REQUIRED_MODULES) were not met:
21147
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21148
installed software in a non-standard prefix.
21150
Alternatively, you may set the environment variables XORG_CFLAGS
21151
and XORG_LIBS to avoid the need to call pkg-config.
21152
See the pkg-config man page for more details.
21154
$as_echo "$as_me: error: Package requirements (xorg-server xproto $REQUIRED_MODULES) were not met:
21158
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21159
installed software in a non-standard prefix.
21161
Alternatively, you may set the environment variables XORG_CFLAGS
21162
and XORG_LIBS to avoid the need to call pkg-config.
21163
See the pkg-config man page for more details.
21165
{ (exit 1); exit 1; }; }
21166
elif test $pkg_failed = untried; then
21167
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21168
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21169
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21170
is in your PATH or set the PKG_CONFIG environment variable to the full
21171
path to pkg-config.
21173
Alternatively, you may set the environment variables XORG_CFLAGS
21174
and XORG_LIBS to avoid the need to call pkg-config.
21175
See the pkg-config man page for more details.
21177
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21178
See \`config.log' for more details." >&5
21179
$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21180
is in your PATH or set the PKG_CONFIG environment variable to the full
21181
path to pkg-config.
21183
Alternatively, you may set the environment variables XORG_CFLAGS
21184
and XORG_LIBS to avoid the need to call pkg-config.
21185
See the pkg-config man page for more details.
21187
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21188
See \`config.log' for more details." >&2;}
21189
{ (exit 1); exit 1; }; }; }
21191
XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21192
XORG_LIBS=$pkg_cv_XORG_LIBS
21193
{ $as_echo "$as_me:$LINENO: result: yes" >&5
21194
$as_echo "yes" >&6; }
21197
sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21200
CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src'
21203
# Checks for libraries.
21206
{ $as_echo "$as_me:$LINENO: checking for XLIB" >&5
21207
$as_echo_n "checking for XLIB... " >&6; }
21209
if test -n "$XLIB_CFLAGS"; then
21210
pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
21211
elif test -n "$PKG_CONFIG"; then
21212
if test -n "$PKG_CONFIG" && \
21213
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
21214
($PKG_CONFIG --exists --print-errors "x11") 2>&5
21216
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217
(exit $ac_status); }; then
21218
pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
21225
if test -n "$XLIB_LIBS"; then
21226
pkg_cv_XLIB_LIBS="$XLIB_LIBS"
21227
elif test -n "$PKG_CONFIG"; then
21228
if test -n "$PKG_CONFIG" && \
21229
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
21230
($PKG_CONFIG --exists --print-errors "x11") 2>&5
21232
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233
(exit $ac_status); }; then
21234
pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
21244
if test $pkg_failed = yes; then
21246
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21247
_pkg_short_errors_supported=yes
21249
_pkg_short_errors_supported=no
21251
if test $_pkg_short_errors_supported = yes; then
21252
XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
21254
XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
21256
# Put the nasty error message in config.log where it belongs
21257
echo "$XLIB_PKG_ERRORS" >&5
21259
{ { $as_echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
21263
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21264
installed software in a non-standard prefix.
21266
Alternatively, you may set the environment variables XLIB_CFLAGS
21267
and XLIB_LIBS to avoid the need to call pkg-config.
21268
See the pkg-config man page for more details.
21270
$as_echo "$as_me: error: Package requirements (x11) were not met:
21274
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21275
installed software in a non-standard prefix.
21277
Alternatively, you may set the environment variables XLIB_CFLAGS
21278
and XLIB_LIBS to avoid the need to call pkg-config.
21279
See the pkg-config man page for more details.
21281
{ (exit 1); exit 1; }; }
21282
elif test $pkg_failed = untried; then
21283
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21284
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21285
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21286
is in your PATH or set the PKG_CONFIG environment variable to the full
21287
path to pkg-config.
21289
Alternatively, you may set the environment variables XLIB_CFLAGS
21290
and XLIB_LIBS to avoid the need to call pkg-config.
21291
See the pkg-config man page for more details.
21293
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21294
See \`config.log' for more details." >&5
21295
$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21296
is in your PATH or set the PKG_CONFIG environment variable to the full
21297
path to pkg-config.
21299
Alternatively, you may set the environment variables XLIB_CFLAGS
21300
and XLIB_LIBS to avoid the need to call pkg-config.
21301
See the pkg-config man page for more details.
21303
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21304
See \`config.log' for more details." >&2;}
21305
{ (exit 1); exit 1; }; }; }
21307
XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
21308
XLIB_LIBS=$pkg_cv_XLIB_LIBS
21309
{ $as_echo "$as_me:$LINENO: result: yes" >&5
21310
$as_echo "yes" >&6; }
21312
fi # needed for syndaemon
21314
# Checks for header files.
21315
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21316
$as_echo_n "checking for ANSI C header files... " >&6; }
21317
if test "${ac_cv_header_stdc+set}" = set; then
21318
$as_echo_n "(cached) " >&6
21320
cat >conftest.$ac_ext <<_ACEOF
21323
cat confdefs.h >>conftest.$ac_ext
21324
cat >>conftest.$ac_ext <<_ACEOF
21325
/* end confdefs.h. */
21326
#include <stdlib.h>
21327
#include <stdarg.h>
21328
#include <string.h>
21339
rm -f conftest.$ac_objext
21340
if { (ac_try="$ac_compile"
21341
case "(($ac_try" in
21342
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21343
*) ac_try_echo=$ac_try;;
21345
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21346
$as_echo "$ac_try_echo") >&5
21347
(eval "$ac_compile") 2>conftest.er1
21349
grep -v '^ *+' conftest.er1 >conftest.err
21351
cat conftest.err >&5
21352
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353
(exit $ac_status); } && {
21354
test -z "$ac_c_werror_flag" ||
21355
test ! -s conftest.err
21356
} && test -s conftest.$ac_objext; then
21357
ac_cv_header_stdc=yes
21359
$as_echo "$as_me: failed program was:" >&5
21360
sed 's/^/| /' conftest.$ac_ext >&5
21362
ac_cv_header_stdc=no
21365
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21367
if test $ac_cv_header_stdc = yes; then
21368
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21369
cat >conftest.$ac_ext <<_ACEOF
21372
cat confdefs.h >>conftest.$ac_ext
21373
cat >>conftest.$ac_ext <<_ACEOF
21374
/* end confdefs.h. */
21375
#include <string.h>
21378
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21379
$EGREP "memchr" >/dev/null 2>&1; then
21382
ac_cv_header_stdc=no
21388
if test $ac_cv_header_stdc = yes; then
21389
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21390
cat >conftest.$ac_ext <<_ACEOF
21393
cat confdefs.h >>conftest.$ac_ext
21394
cat >>conftest.$ac_ext <<_ACEOF
21395
/* end confdefs.h. */
21396
#include <stdlib.h>
21399
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21400
$EGREP "free" >/dev/null 2>&1; then
21403
ac_cv_header_stdc=no
21409
if test $ac_cv_header_stdc = yes; then
21410
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21411
if test "$cross_compiling" = yes; then
21414
cat >conftest.$ac_ext <<_ACEOF
21417
cat confdefs.h >>conftest.$ac_ext
21418
cat >>conftest.$ac_ext <<_ACEOF
21419
/* end confdefs.h. */
21421
#include <stdlib.h>
21422
#if ((' ' & 0x0FF) == 0x020)
21423
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21424
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21426
# define ISLOWER(c) \
21427
(('a' <= (c) && (c) <= 'i') \
21428
|| ('j' <= (c) && (c) <= 'r') \
21429
|| ('s' <= (c) && (c) <= 'z'))
21430
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21433
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21438
for (i = 0; i < 256; i++)
21439
if (XOR (islower (i), ISLOWER (i))
21440
|| toupper (i) != TOUPPER (i))
21445
rm -f conftest$ac_exeext
21446
if { (ac_try="$ac_link"
21447
case "(($ac_try" in
21448
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449
*) ac_try_echo=$ac_try;;
21451
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21452
$as_echo "$ac_try_echo") >&5
21453
(eval "$ac_link") 2>&5
21455
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21457
{ (case "(($ac_try" in
21458
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459
*) ac_try_echo=$ac_try;;
21461
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21462
$as_echo "$ac_try_echo") >&5
21463
(eval "$ac_try") 2>&5
21465
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466
(exit $ac_status); }; }; then
21469
$as_echo "$as_me: program exited with status $ac_status" >&5
21470
$as_echo "$as_me: failed program was:" >&5
21471
sed 's/^/| /' conftest.$ac_ext >&5
21473
( exit $ac_status )
21474
ac_cv_header_stdc=no
21476
rm -rf conftest.dSYM
21477
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21483
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21484
$as_echo "$ac_cv_header_stdc" >&6; }
21485
if test $ac_cv_header_stdc = yes; then
21487
cat >>confdefs.h <<\_ACEOF
21488
#define STDC_HEADERS 1
21497
if test x$APP_MAN_SUFFIX = x ; then
21500
if test x$APP_MAN_DIR = x ; then
21501
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21504
if test x$LIB_MAN_SUFFIX = x ; then
21507
if test x$LIB_MAN_DIR = x ; then
21508
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21511
if test x$FILE_MAN_SUFFIX = x ; then
21513
solaris*) FILE_MAN_SUFFIX=4 ;;
21514
*) FILE_MAN_SUFFIX=5 ;;
21517
if test x$FILE_MAN_DIR = x ; then
21518
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21521
if test x$MISC_MAN_SUFFIX = x ; then
21523
solaris*) MISC_MAN_SUFFIX=5 ;;
21524
*) MISC_MAN_SUFFIX=7 ;;
21527
if test x$MISC_MAN_DIR = x ; then
21528
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21531
if test x$DRIVER_MAN_SUFFIX = x ; then
21533
solaris*) DRIVER_MAN_SUFFIX=7 ;;
21534
*) DRIVER_MAN_SUFFIX=4 ;;
21537
if test x$DRIVER_MAN_DIR = x ; then
21538
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21541
if test x$ADMIN_MAN_SUFFIX = x ; then
21543
solaris*) ADMIN_MAN_SUFFIX=1m ;;
21544
*) ADMIN_MAN_SUFFIX=8 ;;
21547
if test x$ADMIN_MAN_DIR = x ; then
21548
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21567
# Check whether --with-release-version was given.
21568
if test "${with_release_version+set}" = set; then
21569
withval=$with_release_version; RELEASE_VERSION="$withval"
21574
if test "x$RELEASE_VERSION" != "x"; then
21575
PACKAGE="$PACKAGE-$RELEASE_VERSION"
21576
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21577
{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21578
$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21581
cat >>confdefs.h <<_ACEOF
21582
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21585
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
21586
if test "x$PVM" = "x"; then
21590
cat >>confdefs.h <<_ACEOF
21591
#define PACKAGE_VERSION_MINOR $PVM
21594
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
21595
if test "x$PVP" = "x"; then
21599
cat >>confdefs.h <<_ACEOF
21600
#define PACKAGE_VERSION_PATCHLEVEL $PVP
21605
ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile tools/Makefile fdi/Makefile include/Makefile xorg-synaptics.pc"
21607
cat >confcache <<\_ACEOF
21608
# This file is a shell script that caches the results of configure
21609
# tests run on this system so they can be shared between configure
21610
# scripts and configure runs, see configure's option --config-cache.
21611
# It is not useful on other systems. If it contains results you don't
21612
# want to keep, you may remove or edit it.
21614
# config.status only pays attention to the cache file if you give it
21615
# the --recheck option to rerun configure.
21617
# `ac_cv_env_foo' variables (set or unset) will be overridden when
21618
# loading this file, other *unset* `ac_cv_foo' will be assigned the
21619
# following values.
21623
# The following way of writing the cache mishandles newlines in values,
21624
# but we know of no workaround that is simple, portable, and efficient.
21625
# So, we kill variables containing newlines.
21626
# Ultrix sh set writes to stderr and can't be redirected directly,
21627
# and sets the high bit in the cache file unless we assign to the vars.
21629
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21630
eval ac_val=\$$ac_var
21634
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21635
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21638
_ | IFS | as_nl) ;; #(
21639
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21640
*) $as_unset $ac_var ;;
21646
case $as_nl`(ac_space=' '; set) 2>&1` in #(
21647
*${as_nl}ac_space=\ *)
21648
# `set' does not quote correctly, so add quotes (double-quote
21649
# substitution turns \\\\ into \\, and sed turns \\ into \).
21652
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21655
# `set' quotes correctly as required by POSIX, so do not add quotes.
21656
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21665
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21667
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21669
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21670
if test -w "$cache_file"; then
21671
test "x$cache_file" != "x/dev/null" &&
21672
{ $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21673
$as_echo "$as_me: updating cache $cache_file" >&6;}
21674
cat confcache >$cache_file
21676
{ $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21677
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21682
test "x$prefix" = xNONE && prefix=$ac_default_prefix
21683
# Let make expand exec_prefix.
21684
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21686
DEFS=-DHAVE_CONFIG_H
21690
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21691
# 1. Remove the extension, and $U if already installed.
21692
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21693
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21694
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21695
# will be set to the directory where LIBOBJS objects are built.
21696
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21697
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21699
LIBOBJS=$ac_libobjs
21701
LTLIBOBJS=$ac_ltlibobjs
21704
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21705
{ { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21706
Usually this means the macro was only invoked conditionally." >&5
21707
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21708
Usually this means the macro was only invoked conditionally." >&2;}
21709
{ (exit 1); exit 1; }; }
21711
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21712
{ { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21713
Usually this means the macro was only invoked conditionally." >&5
21714
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21715
Usually this means the macro was only invoked conditionally." >&2;}
21716
{ (exit 1); exit 1; }; }
21718
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21719
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21720
Usually this means the macro was only invoked conditionally." >&5
21721
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21722
Usually this means the macro was only invoked conditionally." >&2;}
21723
{ (exit 1); exit 1; }; }
21725
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21726
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21727
Usually this means the macro was only invoked conditionally." >&5
21728
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21729
Usually this means the macro was only invoked conditionally." >&2;}
21730
{ (exit 1); exit 1; }; }
21732
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21733
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21734
Usually this means the macro was only invoked conditionally." >&5
21735
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21736
Usually this means the macro was only invoked conditionally." >&2;}
21737
{ (exit 1); exit 1; }; }
21739
if test -z "${BUILD_EVENTCOMM_TRUE}" && test -z "${BUILD_EVENTCOMM_FALSE}"; then
21740
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_EVENTCOMM\" was never defined.
21741
Usually this means the macro was only invoked conditionally." >&5
21742
$as_echo "$as_me: error: conditional \"BUILD_EVENTCOMM\" was never defined.
21743
Usually this means the macro was only invoked conditionally." >&2;}
21744
{ (exit 1); exit 1; }; }
21746
if test -z "${BUILD_PSMCOMM_TRUE}" && test -z "${BUILD_PSMCOMM_FALSE}"; then
21747
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PSMCOMM\" was never defined.
21748
Usually this means the macro was only invoked conditionally." >&5
21749
$as_echo "$as_me: error: conditional \"BUILD_PSMCOMM\" was never defined.
21750
Usually this means the macro was only invoked conditionally." >&2;}
21751
{ (exit 1); exit 1; }; }
21754
: ${CONFIG_STATUS=./config.status}
21756
ac_clean_files_save=$ac_clean_files
21757
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21758
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21759
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21760
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21762
# Generated by $as_me.
21763
# Run this file to recreate the current configuration.
21764
# Compiler output produced by configure, useful for debugging
21765
# configure, is in config.log if it exists.
21768
ac_cs_recheck=false
21770
SHELL=\${CONFIG_SHELL-$SHELL}
21773
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21774
## --------------------- ##
21775
## M4sh Initialization. ##
21776
## --------------------- ##
21778
# Be more Bourne compatible
21779
DUALCASE=1; export DUALCASE # for MKS sh
21780
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21783
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21784
# is contrary to our usage. Disable this feature.
21785
alias -g '${1+"$@"}'='"$@"'
21786
setopt NO_GLOB_SUBST
21788
case `(set -o) 2>/dev/null` in
21789
*posix*) set -o posix ;;
21798
# Avoid depending upon Character Ranges.
21799
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21800
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21801
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21802
as_cr_digits='0123456789'
21803
as_cr_alnum=$as_cr_Letters$as_cr_digits
21808
# Printing a long string crashes Solaris 7 /usr/bin/printf.
21809
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21810
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21811
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21812
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21813
as_echo='printf %s\n'
21814
as_echo_n='printf %s'
21816
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21817
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21818
as_echo_n='/usr/ucb/echo -n'
21820
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21821
as_echo_n_body='eval
21825
expr "X$arg" : "X\\(.*\\)$as_nl";
21826
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21828
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21830
export as_echo_n_body
21831
as_echo_n='sh -c $as_echo_n_body as_echo'
21833
export as_echo_body
21834
as_echo='sh -c $as_echo_body as_echo'
21837
# The user is always right.
21838
if test "${PATH_SEPARATOR+set}" != set; then
21840
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21841
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21846
# Support unset when possible.
21847
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21855
# We need space, tab and new line, in precisely that order. Quoting is
21856
# there to prevent editors from complaining about space-tab.
21857
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21858
# splitting by setting IFS to empty value.)
21861
# Find who we are. Look in the path if we contain no directory separator.
21863
*[\\/]* ) as_myself=$0 ;;
21864
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21865
for as_dir in $PATH
21868
test -z "$as_dir" && as_dir=.
21869
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21875
# We did not find ourselves, most probably we were run as `sh COMMAND'
21876
# in which case we are not to be found in the path.
21877
if test "x$as_myself" = x; then
21880
if test ! -f "$as_myself"; then
21881
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21882
{ (exit 1); exit 1; }
21885
# Work around bugs in pre-3.0 UWIN ksh.
21886
for as_var in ENV MAIL MAILPATH
21887
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21899
# Required to use basename.
21900
if expr a : '\(a\)' >/dev/null 2>&1 &&
21901
test "X`expr 00001 : '.*\(...\)'`" = X001; then
21907
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21908
as_basename=basename
21914
# Name of the executable.
21915
as_me=`$as_basename -- "$0" ||
21916
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21917
X"$0" : 'X\(//\)$' \| \
21918
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21920
sed '/^.*\/\([^/][^/]*\)\/*$/{
21939
as_lineno_1=$LINENO
21940
as_lineno_2=$LINENO
21941
test "x$as_lineno_1" != "x$as_lineno_2" &&
21942
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21944
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21945
# uniformly replaced by the line number. The first 'sed' inserts a
21946
# line-number line after each line using $LINENO; the second 'sed'
21947
# does the real work. The second script uses 'N' to pair each
21948
# line-number line with the line containing $LINENO, and appends
21949
# trailing '-' during substitution so that $LINENO is not a special
21950
# case at line end.
21951
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21952
# scripts with optimization help from Paolo Bonzini. Blame Lee
21953
# E. McMahon (1931-1989) for sed's syntax. :-)
21965
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21968
' >$as_me.lineno &&
21969
chmod +x "$as_me.lineno" ||
21970
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21971
{ (exit 1); exit 1; }; }
21973
# Don't try to exec as it changes $[0], causing all sort of problems
21974
# (the dirname of $[0] is not the place where we might find the
21975
# original and so on. Autoconf is especially sensitive to this).
21976
. "./$as_me.lineno"
21977
# Exit status is that of the last command.
21982
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21988
ECHO_C= ECHO_N= ECHO_T=
21989
case `echo -n x` in
21991
case `echo 'x\c'` in
21992
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
21998
if expr a : '\(a\)' >/dev/null 2>&1 &&
21999
test "X`expr 00001 : '.*\(...\)'`" = X001; then
22005
rm -f conf$$ conf$$.exe conf$$.file
22006
if test -d conf$$.dir; then
22007
rm -f conf$$.dir/conf$$.file
22010
mkdir conf$$.dir 2>/dev/null
22012
if (echo >conf$$.file) 2>/dev/null; then
22013
if ln -s conf$$.file conf$$ 2>/dev/null; then
22015
# ... but there are two gotchas:
22016
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22017
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22018
# In both cases, we have to default to `cp -p'.
22019
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22021
elif ln conf$$.file conf$$ 2>/dev/null; then
22029
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22030
rmdir conf$$.dir 2>/dev/null
22032
if mkdir -p . 2>/dev/null; then
22035
test -d ./-p && rmdir ./-p
22039
if test -x / >/dev/null 2>&1; then
22040
as_test_x='test -x'
22042
if ls -dL / >/dev/null 2>&1; then
22049
if test -d "$1"; then
22055
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22056
???[sx]*):;;*)false;;esac;fi
22060
as_executable_p=$as_test_x
22062
# Sed expression to map a string onto a valid CPP name.
22063
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22065
# Sed expression to map a string onto a valid variable name.
22066
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22071
# Save the log message, to keep $[0] and so on meaningful, and to
22072
# report actual input values of CONFIG_FILES etc. instead of their
22073
# values after options handling.
22075
This file was extended by xf86-input-synaptics $as_me 0.99.3, which was
22076
generated by GNU Autoconf 2.63. Invocation command line was
22078
CONFIG_FILES = $CONFIG_FILES
22079
CONFIG_HEADERS = $CONFIG_HEADERS
22080
CONFIG_LINKS = $CONFIG_LINKS
22081
CONFIG_COMMANDS = $CONFIG_COMMANDS
22084
on `(hostname || uname -n) 2>/dev/null | sed 1q`
22089
case $ac_config_files in *"
22090
"*) set x $ac_config_files; shift; ac_config_files=$*;;
22093
case $ac_config_headers in *"
22094
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22098
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22099
# Files that config.status was made for.
22100
config_files="$ac_config_files"
22101
config_headers="$ac_config_headers"
22102
config_commands="$ac_config_commands"
22106
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22108
\`$as_me' instantiates files from templates according to the
22109
current configuration.
22111
Usage: $0 [OPTION]... [FILE]...
22113
-h, --help print this help, then exit
22114
-V, --version print version number and configuration settings, then exit
22115
-q, --quiet, --silent
22116
do not print progress messages
22117
-d, --debug don't remove temporary files
22118
--recheck update $as_me by reconfiguring in the same conditions
22119
--file=FILE[:TEMPLATE]
22120
instantiate the configuration file FILE
22121
--header=FILE[:TEMPLATE]
22122
instantiate the configuration header FILE
22124
Configuration files:
22127
Configuration headers:
22130
Configuration commands:
22133
Report bugs to <bug-autoconf@gnu.org>."
22136
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22138
xf86-input-synaptics config.status 0.99.3
22139
configured by $0, generated by GNU Autoconf 2.63,
22140
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22142
Copyright (C) 2008 Free Software Foundation, Inc.
22143
This config.status script is free software; the Free Software Foundation
22144
gives unlimited permission to copy, distribute and modify it."
22151
test -n "\$AWK" || AWK=awk
22154
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22155
# The default lists apply if the user does not specify any file.
22161
ac_option=`expr "X$1" : 'X\([^=]*\)='`
22162
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22173
# Handling of the options.
22174
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22176
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22177
$as_echo "$ac_cs_version"; exit ;;
22178
--debug | --debu | --deb | --de | --d | -d )
22180
--file | --fil | --fi | --f )
22183
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22185
CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22186
ac_need_defaults=false;;
22187
--header | --heade | --head | --hea )
22190
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22192
CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22193
ac_need_defaults=false;;
22195
# Conflict between --help and --header
22196
{ $as_echo "$as_me: error: ambiguous option: $1
22197
Try \`$0 --help' for more information." >&2
22198
{ (exit 1); exit 1; }; };;
22199
--help | --hel | -h )
22200
$as_echo "$ac_cs_usage"; exit ;;
22201
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
22202
| -silent | --silent | --silen | --sile | --sil | --si | --s)
22205
# This is an error.
22206
-*) { $as_echo "$as_me: error: unrecognized option: $1
22207
Try \`$0 --help' for more information." >&2
22208
{ (exit 1); exit 1; }; } ;;
22210
*) ac_config_targets="$ac_config_targets $1"
22211
ac_need_defaults=false ;;
22217
ac_configure_extra_args=
22219
if $ac_cs_silent; then
22221
ac_configure_extra_args="$ac_configure_extra_args --silent"
22225
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22226
if \$ac_cs_recheck; then
22227
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22229
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22230
CONFIG_SHELL='$SHELL'
22231
export CONFIG_SHELL
22236
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22240
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22241
## Running $as_me. ##
22247
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22251
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22255
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22257
# Handling of arguments.
22258
for ac_config_target in $ac_config_targets
22260
case $ac_config_target in
22261
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22262
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22263
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22264
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22265
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22266
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22267
"fdi/Makefile") CONFIG_FILES="$CONFIG_FILES fdi/Makefile" ;;
22268
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22269
"xorg-synaptics.pc") CONFIG_FILES="$CONFIG_FILES xorg-synaptics.pc" ;;
22271
*) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22272
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22273
{ (exit 1); exit 1; }; };;
22278
# If the user did not use the arguments to specify the items to instantiate,
22279
# then the envvar interface is used. Set only those that are not.
22280
# We use the long form for the default assignment because of an extremely
22281
# bizarre bug on SunOS 4.1.3.
22282
if $ac_need_defaults; then
22283
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22284
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22285
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22288
# Have a temporary directory for convenience. Make it in the build tree
22289
# simply because there is no reason against having it here, and in addition,
22290
# creating and moving files from /tmp can sometimes cause problems.
22291
# Hook for its removal unless debugging.
22292
# Note that there is a small window in which the directory will not be cleaned:
22293
# after its creation but before its name has been assigned to `$tmp'.
22297
trap 'exit_status=$?
22298
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22300
trap '{ (exit 1); exit 1; }' 1 2 13 15
22302
# Create a (secure) tmp directory for tmp files.
22305
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22306
test -n "$tmp" && test -d "$tmp"
22309
tmp=./conf$$-$RANDOM
22310
(umask 077 && mkdir "$tmp")
22313
$as_echo "$as_me: cannot create a temporary directory in ." >&2
22314
{ (exit 1); exit 1; }
22317
# Set up the scripts for CONFIG_FILES section.
22318
# No need to generate them if there are no CONFIG_FILES.
22319
# This happens for instance with `./config.status config.h'.
22320
if test -n "$CONFIG_FILES"; then
22324
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22325
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22328
ac_cs_awk_cr=$ac_cr
22331
echo 'BEGIN {' >"$tmp/subs1.awk" &&
22336
echo "cat >conf$$subs.awk <<_ACEOF" &&
22337
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22339
} >conf$$subs.sh ||
22340
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22341
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22342
{ (exit 1); exit 1; }; }
22343
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22345
for ac_last_try in false false false false false :; do
22346
. ./conf$$subs.sh ||
22347
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22348
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22349
{ (exit 1); exit 1; }; }
22351
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22352
if test $ac_delim_n = $ac_delim_num; then
22354
elif $ac_last_try; then
22355
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22356
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22357
{ (exit 1); exit 1; }; }
22359
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22362
rm -f conf$$subs.sh
22364
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22365
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22369
s/^/S["/; s/!.*/"]=/
22379
s/\(.\{148\}\).*/\1/
22381
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22386
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22393
s/\(.\{148\}\).*/\1/
22395
s/["\\]/\\&/g; s/^/"/; s/$/"/
22399
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22404
' <conf$$subs.awk | sed '
22409
' >>$CONFIG_STATUS || ac_write_fail=1
22410
rm -f conf$$subs.awk
22411
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22413
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22414
for (key in S) S_is_set[key] = 1
22420
nfields = split(line, field, "@")
22422
len = length(field[1])
22423
for (i = 2; i < nfields; i++) {
22425
keylen = length(key)
22426
if (S_is_set[key]) {
22428
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22429
len += length(value) + length(field[++i])
22440
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22441
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22442
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22445
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22446
|| { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22447
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
22448
{ (exit 1); exit 1; }; }
22451
# VPATH may cause trouble with some makes, so we remove $(srcdir),
22452
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22453
# trailing colons and then remove the whole line if VPATH becomes empty
22454
# (actually we leave an empty line to preserve line numbers).
22455
if test "x$srcdir" = x.; then
22456
ac_vpsub='/^[ ]*VPATH[ ]*=/{
22457
s/:*\$(srcdir):*/:/
22458
s/:*\${srcdir}:*/:/
22460
s/^\([^=]*=[ ]*\):*/\1/
22466
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22467
fi # test -n "$CONFIG_FILES"
22469
# Set up the scripts for CONFIG_HEADERS section.
22470
# No need to generate them if there are no CONFIG_HEADERS.
22471
# This happens for instance with `./config.status Makefile'.
22472
if test -n "$CONFIG_HEADERS"; then
22473
cat >"$tmp/defines.awk" <<\_ACAWK ||
22477
# Transform confdefs.h into an awk script `defines.awk', embedded as
22478
# here-document in config.status, that substitutes the proper values into
22479
# config.h.in to produce config.h.
22481
# Create a delimiter string that does not exist in confdefs.h, to ease
22482
# handling of long lines.
22484
for ac_last_try in false false :; do
22485
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22486
if test -z "$ac_t"; then
22488
elif $ac_last_try; then
22489
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22490
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22491
{ (exit 1); exit 1; }; }
22493
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22497
# For the awk script, D is an array of macro values keyed by name,
22498
# likewise P contains macro parameters if any. Preserve backslash
22499
# newline sequences.
22501
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22503
s/.\{148\}/&'"$ac_delim"'/g
22506
s/^[ ]*#[ ]*define[ ][ ]*/ /
22513
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22515
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22519
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22520
D["\1"]=" \3\\\\\\n"\\/p
22522
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22527
s/.\{148\}/&'"$ac_delim"'/g
22532
s/["\\]/\\&/g; s/^/"/; s/$/"/p
22535
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22537
' <confdefs.h | sed '
22538
s/'"$ac_delim"'/"\\\
22539
"/g' >>$CONFIG_STATUS || ac_write_fail=1
22541
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22542
for (key in D) D_is_set[key] = 1
22545
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22547
split(line, arg, " ")
22548
if (arg[1] == "#") {
22552
defundef = substr(arg[1], 2)
22555
split(mac1, mac2, "(") #)
22557
prefix = substr(line, 1, index(line, defundef) - 1)
22558
if (D_is_set[macro]) {
22559
# Preserve the white space surrounding the "#".
22560
print prefix "define", macro P[macro] D[macro]
22563
# Replace #undef with comments. This is necessary, for example,
22564
# in the case of _POSIX_SOURCE, which is predefined and required
22565
# on some systems where configure will not decide to define it.
22566
if (defundef == "undef") {
22567
print "/*", prefix defundef, macro, "*/"
22575
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22576
{ { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22577
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22578
{ (exit 1); exit 1; }; }
22579
fi # test -n "$CONFIG_HEADERS"
22582
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22587
:[FHLC]) ac_mode=$ac_tag; continue;;
22589
case $ac_mode$ac_tag in
22591
:L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22592
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22593
{ (exit 1); exit 1; }; };;
22594
:[FH]-) ac_tag=-:-;;
22595
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22612
-) ac_f="$tmp/stdin";;
22613
*) # Look for the file first in the build tree, then in the source tree
22614
# (if the path is not absolute). The absolute path cannot be DOS-style,
22615
# because $ac_f cannot contain `:'.
22619
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22621
{ { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22622
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22623
{ (exit 1); exit 1; }; };;
22625
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22626
ac_file_inputs="$ac_file_inputs '$ac_f'"
22629
# Let's still pretend it is `configure' which instantiates (i.e., don't
22630
# use $as_me), people would be surprised to read:
22631
# /* config.h. Generated by config.status. */
22632
configure_input='Generated from '`
22633
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22635
if test x"$ac_file" != x-; then
22636
configure_input="$ac_file. $configure_input"
22637
{ $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22638
$as_echo "$as_me: creating $ac_file" >&6;}
22640
# Neutralize special characters interpreted by sed in replacement strings.
22641
case $configure_input in #(
22642
*\&* | *\|* | *\\* )
22643
ac_sed_conf_input=`$as_echo "$configure_input" |
22644
sed 's/[\\\\&|]/\\\\&/g'`;; #(
22645
*) ac_sed_conf_input=$configure_input;;
22649
*:-:* | *:-) cat >"$tmp/stdin" \
22650
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22651
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22652
{ (exit 1); exit 1; }; } ;;
22657
ac_dir=`$as_dirname -- "$ac_file" ||
22658
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22659
X"$ac_file" : 'X\(//\)[^/]' \| \
22660
X"$ac_file" : 'X\(//\)$' \| \
22661
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22662
$as_echo X"$ac_file" |
22663
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22667
/^X\(\/\/\)[^/].*/{
22682
-*) as_dir=./$as_dir;;
22684
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22688
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22689
*) as_qdir=$as_dir;;
22691
as_dirs="'$as_qdir' $as_dirs"
22692
as_dir=`$as_dirname -- "$as_dir" ||
22693
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22694
X"$as_dir" : 'X\(//\)[^/]' \| \
22695
X"$as_dir" : 'X\(//\)$' \| \
22696
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22697
$as_echo X"$as_dir" |
22698
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22702
/^X\(\/\/\)[^/].*/{
22715
test -d "$as_dir" && break
22717
test -z "$as_dirs" || eval "mkdir $as_dirs"
22718
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22719
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22720
{ (exit 1); exit 1; }; }; }
22724
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22726
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22727
# A ".." for each directory in $ac_dir_suffix.
22728
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22729
case $ac_top_builddir_sub in
22730
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22731
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22734
ac_abs_top_builddir=$ac_pwd
22735
ac_abs_builddir=$ac_pwd$ac_dir_suffix
22736
# for backward compatibility:
22737
ac_top_builddir=$ac_top_build_prefix
22740
.) # We are building in place.
22742
ac_top_srcdir=$ac_top_builddir_sub
22743
ac_abs_top_srcdir=$ac_pwd ;;
22744
[\\/]* | ?:[\\/]* ) # Absolute name.
22745
ac_srcdir=$srcdir$ac_dir_suffix;
22746
ac_top_srcdir=$srcdir
22747
ac_abs_top_srcdir=$srcdir ;;
22748
*) # Relative name.
22749
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22750
ac_top_srcdir=$ac_top_build_prefix$srcdir
22751
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22753
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22763
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22764
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22766
ac_MKDIR_P=$MKDIR_P
22768
[\\/$]* | ?:[\\/]* ) ;;
22769
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22773
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22774
# If the template does not know about datarootdir, expand it.
22775
# FIXME: This hack should be removed a few years after 2.60.
22776
ac_datarootdir_hack=; ac_datarootdir_seen=
22789
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22790
*datarootdir*) ac_datarootdir_seen=yes;;
22791
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22792
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22793
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22795
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22796
ac_datarootdir_hack='
22797
s&@datadir@&$datadir&g
22798
s&@docdir@&$docdir&g
22799
s&@infodir@&$infodir&g
22800
s&@localedir@&$localedir&g
22801
s&@mandir@&$mandir&g
22802
s&\\\${datarootdir}&$datarootdir&g' ;;
22806
# Neutralize VPATH when `$srcdir' = `.'.
22807
# Shell code in configure.ac might set extrasub.
22808
# FIXME: do we really want to maintain this feature?
22809
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22810
ac_sed_extra="$ac_vpsub
22813
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22815
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22816
s|@configure_input@|$ac_sed_conf_input|;t t
22817
s&@top_builddir@&$ac_top_builddir_sub&;t t
22818
s&@top_build_prefix@&$ac_top_build_prefix&;t t
22819
s&@srcdir@&$ac_srcdir&;t t
22820
s&@abs_srcdir@&$ac_abs_srcdir&;t t
22821
s&@top_srcdir@&$ac_top_srcdir&;t t
22822
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22823
s&@builddir@&$ac_builddir&;t t
22824
s&@abs_builddir@&$ac_abs_builddir&;t t
22825
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22826
s&@INSTALL@&$ac_INSTALL&;t t
22827
s&@MKDIR_P@&$ac_MKDIR_P&;t t
22828
$ac_datarootdir_hack
22830
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22831
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22832
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22833
{ (exit 1); exit 1; }; }
22835
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22836
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22837
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22838
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22839
which seems to be undefined. Please make sure it is defined." >&5
22840
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22841
which seems to be undefined. Please make sure it is defined." >&2;}
22845
-) cat "$tmp/out" && rm -f "$tmp/out";;
22846
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22848
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22849
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22850
{ (exit 1); exit 1; }; }
22856
if test x"$ac_file" != x-; then
22858
$as_echo "/* $configure_input */" \
22859
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22860
} >"$tmp/config.h" \
22861
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22862
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22863
{ (exit 1); exit 1; }; }
22864
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22865
{ $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22866
$as_echo "$as_me: $ac_file is unchanged" >&6;}
22869
mv "$tmp/config.h" "$ac_file" \
22870
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22871
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22872
{ (exit 1); exit 1; }; }
22875
$as_echo "/* $configure_input */" \
22876
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22877
|| { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22878
$as_echo "$as_me: error: could not create -" >&2;}
22879
{ (exit 1); exit 1; }; }
22881
# Compute "$ac_file"'s index in $config_headers.
22884
for _am_header in $config_headers :; do
22885
case $_am_header in
22886
$_am_arg | $_am_arg:* )
22889
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
22892
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22893
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22894
X"$_am_arg" : 'X\(//\)[^/]' \| \
22895
X"$_am_arg" : 'X\(//\)$' \| \
22896
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22897
$as_echo X"$_am_arg" |
22898
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22902
/^X\(\/\/\)[^/].*/{
22914
s/.*/./; q'`/stamp-h$_am_stamp_count
22917
:C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22918
$as_echo "$as_me: executing $ac_file commands" >&6;}
22923
case $ac_file$ac_mode in
22924
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22925
# Strip MF so we end up with the name of the file.
22926
mf=`echo "$mf" | sed -e 's/:.*$//'`
22927
# Check whether this is an Automake generated Makefile or not.
22928
# We used to match only the files named `Makefile.in', but
22929
# some people rename them; so instead we look at the file content.
22930
# Grep'ing the first line is not enough: some people post-process
22931
# each Makefile.in and add a new line on top of each file to say so.
22932
# Grep'ing the whole file is not good either: AIX grep has a line
22933
# limit of 2048, but all sed's we know have understand at least 4000.
22934
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22935
dirpart=`$as_dirname -- "$mf" ||
22936
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22937
X"$mf" : 'X\(//\)[^/]' \| \
22938
X"$mf" : 'X\(//\)$' \| \
22939
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22941
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22945
/^X\(\/\/\)[^/].*/{
22961
# Extract the definition of DEPDIR, am__include, and am__quote
22962
# from the Makefile without running `make'.
22963
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22964
test -z "$DEPDIR" && continue
22965
am__include=`sed -n 's/^am__include = //p' < "$mf"`
22966
test -z "am__include" && continue
22967
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22968
# When using ansi2knr, U may be empty or an underscore; expand it
22969
U=`sed -n 's/^U = //p' < "$mf"`
22970
# Find all dependency output files, they are included files with
22971
# $(DEPDIR) in their names. We invoke sed twice because it is the
22972
# simplest approach to changing $(DEPDIR) to its actual value in the
22974
for file in `sed -n "
22975
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22976
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22977
# Make sure the directory exists.
22978
test -f "$dirpart/$file" && continue
22979
fdir=`$as_dirname -- "$file" ||
22980
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22981
X"$file" : 'X\(//\)[^/]' \| \
22982
X"$file" : 'X\(//\)$' \| \
22983
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22984
$as_echo X"$file" |
22985
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22989
/^X\(\/\/\)[^/].*/{
23002
{ as_dir=$dirpart/$fdir
23004
-*) as_dir=./$as_dir;;
23006
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23010
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23011
*) as_qdir=$as_dir;;
23013
as_dirs="'$as_qdir' $as_dirs"
23014
as_dir=`$as_dirname -- "$as_dir" ||
23015
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23016
X"$as_dir" : 'X\(//\)[^/]' \| \
23017
X"$as_dir" : 'X\(//\)$' \| \
23018
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23019
$as_echo X"$as_dir" |
23020
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23024
/^X\(\/\/\)[^/].*/{
23037
test -d "$as_dir" && break
23039
test -z "$as_dirs" || eval "mkdir $as_dirs"
23040
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23041
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23042
{ (exit 1); exit 1; }; }; }
23043
# echo "creating $dirpart/$file"
23044
echo '# dummy' > "$dirpart/$file"
23053
{ (exit 0); exit 0; }
23055
chmod +x $CONFIG_STATUS
23056
ac_clean_files=$ac_clean_files_save
23058
test $ac_write_fail = 0 ||
23059
{ { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23060
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23061
{ (exit 1); exit 1; }; }
23064
# configure is writing to config.log, and then calls config.status.
23065
# config.status does its own redirection, appending to config.log.
23066
# Unfortunately, on DOS this fails, as config.log is still kept open
23067
# by configure, so config.status won't be able to write to it; its
23068
# output is simply discarded. So we exec the FD to /dev/null,
23069
# effectively closing config.log, so it can be properly (re)opened and
23070
# appended to by config.status. When coming back to configure, we
23071
# need to make the FD available again.
23072
if test "$no_create" != yes; then
23074
ac_config_status_args=
23075
test "$silent" = yes &&
23076
ac_config_status_args="$ac_config_status_args --quiet"
23078
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23080
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
23081
# would make configure fail if this is the last instruction.
23082
$ac_cs_success || { (exit 1); exit 1; }
23084
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23085
{ $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23086
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}