2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64 for sqlite3cc 0.1.0.
5
# Report bugs to <edam@waxworlds.org>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (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 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
93
*[\\/]* ) as_myself=$0 ;;
94
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98
test -z "$as_dir" && as_dir=.
99
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
106
# in which case we are not to be found in the path.
107
if test "x$as_myself" = x; then
110
if test ! -f "$as_myself"; then
111
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115
# Unset variables that we do not need and which cause bugs (e.g. in
116
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117
# suppresses any "Segmentation fault" message there. '((' could
118
# trigger a bug in pdksh 5.2.14.
119
for as_var in BASH_ENV ENV MAIL MAILPATH
120
do eval test x\${$as_var+set} = xset \
121
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
if test "x$CONFIG_SHELL" = x; then
137
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141
# is contrary to our usage. Disable this feature.
142
alias -g '\${1+\"\$@\"}'='\"\$@\"'
145
case \`(set -o) 2>/dev/null\` in #(
153
as_required="as_fn_return () { (exit \$1); }
154
as_fn_success () { as_fn_return 0; }
155
as_fn_failure () { as_fn_return 1; }
156
as_fn_ret_success () { return 0; }
157
as_fn_ret_failure () { return 1; }
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
exitcode=1; echo positional parameters were not saved.
169
test x\$exitcode = x0 || exit 1"
170
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
test \$(( 1 + 1 )) = 2 || exit 1"
175
if (eval "$as_required") 2>/dev/null; then :
180
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188
test -z "$as_dir" && as_dir=.
192
for as_base in sh bash ksh sh5; do
193
# Try only shells that exist, to save several forks.
194
as_shell=$as_dir/$as_base
195
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
CONFIG_SHELL=$as_shell as_have_required=yes
198
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208
CONFIG_SHELL=$SHELL as_have_required=yes
213
if test "x$CONFIG_SHELL" != x; then :
214
# We cannot yet assume a decent shell, so we have to provide a
215
# neutralization value for shells without unset; and this also
216
# works around shells that cannot unset nonexistent variables.
219
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224
if test x$as_have_required = xno; then :
225
$as_echo "$0: This script requires a shell more modern than all"
226
$as_echo "$0: the shells that I found on your system."
227
if test x${ZSH_VERSION+set} = xset ; then
228
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
231
$as_echo "$0: Please tell bug-autoconf@gnu.org and edam@waxworlds.org
232
$0: about your system, including any error possibly output
233
$0: before this message. Then install a modern shell, or
234
$0: manually run the script under such a shell if you do
241
SHELL=${CONFIG_SHELL-/bin/sh}
243
# Unset more variables known to interfere with behavior of common tools.
244
CLICOLOR_FORCE= GREP_OPTIONS=
245
unset CLICOLOR_FORCE GREP_OPTIONS
247
## --------------------- ##
248
## M4sh Shell Functions. ##
249
## --------------------- ##
252
# Portably unset VAR.
255
{ eval $1=; unset $1;}
259
# as_fn_set_status STATUS
260
# -----------------------
261
# Set $? to STATUS, without forking.
269
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279
# Create "$as_dir" as a directory, including parents if necessary.
284
-*) as_dir=./$as_dir;;
286
test -d "$as_dir" || eval $as_mkdir_p || {
290
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293
as_dirs="'$as_qdir' $as_dirs"
294
as_dir=`$as_dirname -- "$as_dir" ||
295
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296
X"$as_dir" : 'X\(//\)[^/]' \| \
297
X"$as_dir" : 'X\(//\)$' \| \
298
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299
$as_echo X"$as_dir" |
300
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317
test -d "$as_dir" && break
319
test -z "$as_dirs" || eval "mkdir $as_dirs"
320
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
# as_fn_append VAR VALUE
325
# ----------------------
326
# Append the text in VALUE to the end of the definition contained in VAR. Take
327
# advantage of any shell optimizations that allow amortized linear growth over
328
# repeated appends, instead of the typical quadratic growth present in naive
330
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331
eval 'as_fn_append ()
344
# Perform arithmetic evaluation on the ARGs, and store the result in the
345
# global $as_val. Take advantage of shells that can avoid forks. The arguments
346
# must be portable across $(()) and expr.
347
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355
as_val=`expr "$@" || test $? -eq 1`
360
# as_fn_error ERROR [LINENO LOG_FD]
361
# ---------------------------------
362
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364
# script with status $?, using 1 if that was 0.
367
as_status=$?; test $as_status -eq 0 && as_status=1
369
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372
$as_echo "$as_me: error: $1" >&2
373
as_fn_exit $as_status
376
if expr a : '\(a\)' >/dev/null 2>&1 &&
377
test "X`expr 00001 : '.*\(...\)'`" = X001; then
383
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395
as_me=`$as_basename -- "$0" ||
396
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397
X"$0" : 'X\(//\)$' \| \
398
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400
sed '/^.*\/\([^/][^/]*\)\/*$/{
414
# Avoid depending upon Character Ranges.
415
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418
as_cr_digits='0123456789'
419
as_cr_alnum=$as_cr_Letters$as_cr_digits
422
as_lineno_1=$LINENO as_lineno_1a=$LINENO
423
as_lineno_2=$LINENO as_lineno_2a=$LINENO
424
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442
chmod +x "$as_me.lineno" ||
443
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445
# Don't try to exec as it changes $[0], causing all sort of problems
446
# (the dirname of $[0] is not the place where we might find the
447
# original and so on. Autoconf is especially sensitive to this).
449
# Exit status is that of the last command.
453
ECHO_C= ECHO_N= ECHO_T=
454
case `echo -n x` in #(((((
456
case `echo 'xy\c'` in
457
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
459
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466
rm -f conf$$ conf$$.exe conf$$.file
467
if test -d conf$$.dir; then
468
rm -f conf$$.dir/conf$$.file
471
mkdir conf$$.dir 2>/dev/null
473
if (echo >conf$$.file) 2>/dev/null; then
474
if ln -s conf$$.file conf$$ 2>/dev/null; then
476
# ... but there are two gotchas:
477
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479
# In both cases, we have to default to `cp -p'.
480
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482
elif ln conf$$.file conf$$ 2>/dev/null; then
490
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491
rmdir conf$$.dir 2>/dev/null
493
if mkdir -p . 2>/dev/null; then
494
as_mkdir_p='mkdir -p "$as_dir"'
496
test -d ./-p && rmdir ./-p
500
if test -x / >/dev/null 2>&1; then
503
if ls -dL / >/dev/null 2>&1; then
510
if test -d "$1"; then
516
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517
???[sx]*):;;*)false;;esac;fi
521
as_executable_p=$as_test_x
523
# Sed expression to map a string onto a valid CPP name.
524
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526
# Sed expression to map a string onto a valid variable name.
527
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
# Check that we are running under the correct shell.
532
SHELL=${CONFIG_SHELL-/bin/sh}
536
# Remove one level of quotation (which was required for Make).
537
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
542
if test "X$1" = X--no-reexec; then
543
# Discard the --no-reexec flag, and continue.
545
elif test "X$1" = X--fallback-echo; then
546
# Avoid inline document here, it may be left over
548
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549
# Yippee, $ECHO works!
552
# Restart under the correct shell.
553
exec $SHELL "$0" --no-reexec ${1+"$@"}
556
if test "X$1" = X--fallback-echo; then
557
# used as fallback echo
565
# The HP-UX ksh and POSIX shell print the target directory to stdout
567
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569
if test -z "$lt_ECHO"; then
570
if test "X${echo_test_string+set}" != Xset; then
571
# find a string as large as possible, as long as the shell can cope with it
572
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
582
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584
test "X$echo_testing_string" = "X$echo_test_string"; then
587
# The Solaris, AIX, and Digital Unix default echo programs unquote
588
# backslashes. This makes it impossible to quote backslashes using
589
# echo "$something" | sed 's/\\/\\\\/g'
591
# So, first we look for a working echo in the user's PATH.
593
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594
for dir in $PATH /usr/ucb; do
596
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599
test "X$echo_testing_string" = "X$echo_test_string"; then
606
if test "X$ECHO" = Xecho; then
607
# We didn't find a better echo, so look for alternatives.
608
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610
test "X$echo_testing_string" = "X$echo_test_string"; then
611
# This shell has a builtin print -r that does the trick.
613
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614
test "X$CONFIG_SHELL" != X/bin/ksh; then
615
# If we have ksh, try running configure again with it.
616
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617
export ORIGINAL_CONFIG_SHELL
618
CONFIG_SHELL=/bin/ksh
620
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626
test "X$echo_testing_string" = "X$echo_test_string"; then
629
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630
test "X$echo_testing_string" = 'X\t' &&
631
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632
test "X$echo_testing_string" = "X$echo_test_string"; then
633
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635
SHELL="$CONFIG_SHELL"
637
ECHO="$CONFIG_SHELL $0 --fallback-echo"
638
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639
test "X$echo_testing_string" = 'X\t' &&
640
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641
test "X$echo_testing_string" = "X$echo_test_string"; then
642
ECHO="$CONFIG_SHELL $0 --fallback-echo"
644
# maybe with a smaller string...
647
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
655
if test "$prev" != 'sed 50q "$0"'; then
656
echo_test_string=`eval $prev`
657
export echo_test_string
658
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660
# Oops. We lost completely, so just stick with echo.
669
# Copy echo and quote the copy suitably for passing to libtool from
670
# the Makefile, instead of quoting the original, which is used later.
672
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679
exec 7<&0 </dev/null 6>&1
682
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683
# so uname gets run too.
684
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
ac_default_prefix=/usr/local
691
ac_config_libobj_dir=.
698
# Identity of this package.
699
PACKAGE_NAME='sqlite3cc'
700
PACKAGE_TARNAME='sqlite3cc'
701
PACKAGE_VERSION='0.1.0'
702
PACKAGE_STRING='sqlite3cc 0.1.0'
703
PACKAGE_BUGREPORT='edam@waxworlds.org'
704
PACKAGE_URL='http://www.waxworlds.org/edam/software/sqlite3cc'
706
ac_unique_file="src/database.cc"
707
# Factoring default headers for most tests.
708
ac_includes_default="\
710
#ifdef HAVE_SYS_TYPES_H
711
# include <sys/types.h>
713
#ifdef HAVE_SYS_STAT_H
714
# include <sys/stat.h>
720
# ifdef HAVE_STDLIB_H
725
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730
#ifdef HAVE_STRINGS_H
731
# include <strings.h>
733
#ifdef HAVE_INTTYPES_H
734
# include <inttypes.h>
743
ac_subst_vars='am__EXEEXT_FALSE
806
INSTALL_STRIP_PROGRAM
821
LIBSQLITE3CC_INTERFACE
849
program_transform_name
862
enable_option_checking
867
enable_dependency_tracking
871
ac_precious_vars='build_alias
886
# Initialize some variables set by options.
888
ac_init_version=false
889
ac_unrecognized_opts=
891
# The variables have the same names as the options, with
892
# dashes changed to underlines.
900
program_transform_name=s,x,x,
908
# Installation directory options.
909
# These are left unexpanded so users can "make install exec_prefix=/foo"
910
# and all the variables that are supposed to be based on exec_prefix
911
# by default will actually change.
912
# Use braces instead of parens because sh, perl, etc. also accept them.
913
# (The list follows the same order as the GNU Coding Standards.)
914
bindir='${exec_prefix}/bin'
915
sbindir='${exec_prefix}/sbin'
916
libexecdir='${exec_prefix}/libexec'
917
datarootdir='${prefix}/share'
918
datadir='${datarootdir}'
919
sysconfdir='${prefix}/etc'
920
sharedstatedir='${prefix}/com'
921
localstatedir='${prefix}/var'
922
includedir='${prefix}/include'
923
oldincludedir='/usr/include'
924
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
925
infodir='${datarootdir}/info'
930
libdir='${exec_prefix}/lib'
931
localedir='${datarootdir}/locale'
932
mandir='${datarootdir}/man'
938
# If the previous option needs an argument, assign it.
939
if test -n "$ac_prev"; then
940
eval $ac_prev=\$ac_option
946
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950
# Accept the important Cygnus configure options, so we can diagnose typos.
952
case $ac_dashdash$ac_option in
956
-bindir | --bindir | --bindi | --bind | --bin | --bi)
958
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961
-build | --build | --buil | --bui | --bu)
962
ac_prev=build_alias ;;
963
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
964
build_alias=$ac_optarg ;;
966
-cache-file | --cache-file | --cache-fil | --cache-fi \
967
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968
ac_prev=cache_file ;;
969
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971
cache_file=$ac_optarg ;;
974
cache_file=config.cache ;;
976
-datadir | --datadir | --datadi | --datad)
978
-datadir=* | --datadir=* | --datadi=* | --datad=*)
979
datadir=$ac_optarg ;;
981
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982
| --dataroo | --dataro | --datar)
983
ac_prev=datarootdir ;;
984
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986
datarootdir=$ac_optarg ;;
988
-disable-* | --disable-*)
989
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990
# Reject names that are not valid shell variable names.
991
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992
as_fn_error "invalid feature name: $ac_useropt"
993
ac_useropt_orig=$ac_useropt
994
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995
case $ac_user_opts in
999
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000
ac_unrecognized_sep=', ';;
1002
eval enable_$ac_useropt=no ;;
1004
-docdir | --docdir | --docdi | --doc | --do)
1006
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007
docdir=$ac_optarg ;;
1009
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012
dvidir=$ac_optarg ;;
1014
-enable-* | --enable-*)
1015
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016
# Reject names that are not valid shell variable names.
1017
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018
as_fn_error "invalid feature name: $ac_useropt"
1019
ac_useropt_orig=$ac_useropt
1020
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021
case $ac_user_opts in
1023
"enable_$ac_useropt"
1025
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026
ac_unrecognized_sep=', ';;
1028
eval enable_$ac_useropt=\$ac_optarg ;;
1030
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032
| --exec | --exe | --ex)
1033
ac_prev=exec_prefix ;;
1034
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036
| --exec=* | --exe=* | --ex=*)
1037
exec_prefix=$ac_optarg ;;
1039
-gas | --gas | --ga | --g)
1040
# Obsolete; use --with-gas.
1043
-help | --help | --hel | --he | -h)
1044
ac_init_help=long ;;
1045
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046
ac_init_help=recursive ;;
1047
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048
ac_init_help=short ;;
1050
-host | --host | --hos | --ho)
1051
ac_prev=host_alias ;;
1052
-host=* | --host=* | --hos=* | --ho=*)
1053
host_alias=$ac_optarg ;;
1055
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059
htmldir=$ac_optarg ;;
1061
-includedir | --includedir | --includedi | --included | --include \
1062
| --includ | --inclu | --incl | --inc)
1063
ac_prev=includedir ;;
1064
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065
| --includ=* | --inclu=* | --incl=* | --inc=*)
1066
includedir=$ac_optarg ;;
1068
-infodir | --infodir | --infodi | --infod | --info | --inf)
1070
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071
infodir=$ac_optarg ;;
1073
-libdir | --libdir | --libdi | --libd)
1075
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1076
libdir=$ac_optarg ;;
1078
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079
| --libexe | --libex | --libe)
1080
ac_prev=libexecdir ;;
1081
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082
| --libexe=* | --libex=* | --libe=*)
1083
libexecdir=$ac_optarg ;;
1085
-localedir | --localedir | --localedi | --localed | --locale)
1086
ac_prev=localedir ;;
1087
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088
localedir=$ac_optarg ;;
1090
-localstatedir | --localstatedir | --localstatedi | --localstated \
1091
| --localstate | --localstat | --localsta | --localst | --locals)
1092
ac_prev=localstatedir ;;
1093
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095
localstatedir=$ac_optarg ;;
1097
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100
mandir=$ac_optarg ;;
1102
-nfp | --nfp | --nf)
1103
# Obsolete; use --without-fp.
1106
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107
| --no-cr | --no-c | -n)
1110
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116
| --oldin | --oldi | --old | --ol | --o)
1117
ac_prev=oldincludedir ;;
1118
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121
oldincludedir=$ac_optarg ;;
1123
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126
prefix=$ac_optarg ;;
1128
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1129
| --program-pre | --program-pr | --program-p)
1130
ac_prev=program_prefix ;;
1131
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1132
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133
program_prefix=$ac_optarg ;;
1135
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1136
| --program-suf | --program-su | --program-s)
1137
ac_prev=program_suffix ;;
1138
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1139
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140
program_suffix=$ac_optarg ;;
1142
-program-transform-name | --program-transform-name \
1143
| --program-transform-nam | --program-transform-na \
1144
| --program-transform-n | --program-transform- \
1145
| --program-transform | --program-transfor \
1146
| --program-transfo | --program-transf \
1147
| --program-trans | --program-tran \
1148
| --progr-tra | --program-tr | --program-t)
1149
ac_prev=program_transform_name ;;
1150
-program-transform-name=* | --program-transform-name=* \
1151
| --program-transform-nam=* | --program-transform-na=* \
1152
| --program-transform-n=* | --program-transform-=* \
1153
| --program-transform=* | --program-transfor=* \
1154
| --program-transfo=* | --program-transf=* \
1155
| --program-trans=* | --program-tran=* \
1156
| --progr-tra=* | --program-tr=* | --program-t=*)
1157
program_transform_name=$ac_optarg ;;
1159
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162
pdfdir=$ac_optarg ;;
1164
-psdir | --psdir | --psdi | --psd | --ps)
1166
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170
| -silent | --silent | --silen | --sile | --sil)
1173
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177
sbindir=$ac_optarg ;;
1179
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1180
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181
| --sharedst | --shareds | --shared | --share | --shar \
1183
ac_prev=sharedstatedir ;;
1184
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188
sharedstatedir=$ac_optarg ;;
1190
-site | --site | --sit)
1192
-site=* | --site=* | --sit=*)
1195
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198
srcdir=$ac_optarg ;;
1200
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201
| --syscon | --sysco | --sysc | --sys | --sy)
1202
ac_prev=sysconfdir ;;
1203
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205
sysconfdir=$ac_optarg ;;
1207
-target | --target | --targe | --targ | --tar | --ta | --t)
1208
ac_prev=target_alias ;;
1209
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210
target_alias=$ac_optarg ;;
1212
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1215
-version | --version | --versio | --versi | --vers | -V)
1216
ac_init_version=: ;;
1219
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220
# Reject names that are not valid shell variable names.
1221
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222
as_fn_error "invalid package name: $ac_useropt"
1223
ac_useropt_orig=$ac_useropt
1224
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225
case $ac_user_opts in
1229
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230
ac_unrecognized_sep=', ';;
1232
eval with_$ac_useropt=\$ac_optarg ;;
1234
-without-* | --without-*)
1235
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236
# Reject names that are not valid shell variable names.
1237
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238
as_fn_error "invalid package name: $ac_useropt"
1239
ac_useropt_orig=$ac_useropt
1240
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241
case $ac_user_opts in
1245
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246
ac_unrecognized_sep=', ';;
1248
eval with_$ac_useropt=no ;;
1251
# Obsolete; use --with-x.
1254
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255
| --x-incl | --x-inc | --x-in | --x-i)
1256
ac_prev=x_includes ;;
1257
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259
x_includes=$ac_optarg ;;
1261
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1262
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263
ac_prev=x_libraries ;;
1264
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266
x_libraries=$ac_optarg ;;
1268
-*) as_fn_error "unrecognized option: \`$ac_option'
1269
Try \`$0 --help' for more information."
1273
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274
# Reject names that are not valid shell variable names.
1275
case $ac_envvar in #(
1276
'' | [0-9]* | *[!_$as_cr_alnum]* )
1277
as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1279
eval $ac_envvar=\$ac_optarg
1280
export $ac_envvar ;;
1283
# FIXME: should be removed in autoconf 3.0.
1284
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1293
if test -n "$ac_prev"; then
1294
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295
as_fn_error "missing argument to $ac_option"
1298
if test -n "$ac_unrecognized_opts"; then
1299
case $enable_option_checking in
1301
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1302
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306
# Check all directory arguments for consistency.
1307
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308
datadir sysconfdir sharedstatedir localstatedir includedir \
1309
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310
libdir localedir mandir
1312
eval ac_val=\$$ac_var
1313
# Remove trailing slashes.
1316
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317
eval $ac_var=\$ac_val;;
1319
# Be sure to have absolute directory names.
1321
[\\/$]* | ?:[\\/]* ) continue;;
1322
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1327
# There might be people who depend on the old broken behavior: `$host'
1328
# used to hold the argument of --host etc.
1329
# FIXME: To remove some day.
1332
target=$target_alias
1334
# FIXME: To remove some day.
1335
if test "x$host_alias" != x; then
1336
if test "x$build_alias" = x; then
1337
cross_compiling=maybe
1338
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1339
If a cross compiler is detected then cross compile mode will be used." >&2
1340
elif test "x$build_alias" != "x$host_alias"; then
1346
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348
test "$silent" = yes && exec 6>/dev/null
1351
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352
ac_ls_di=`ls -di .` &&
1353
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354
as_fn_error "working directory cannot be determined"
1355
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356
as_fn_error "pwd does not report name of working directory"
1359
# Find the source files, if location was not specified.
1360
if test -z "$srcdir"; then
1361
ac_srcdir_defaulted=yes
1362
# Try the directory containing this script, then the parent directory.
1363
ac_confdir=`$as_dirname -- "$as_myself" ||
1364
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365
X"$as_myself" : 'X\(//\)[^/]' \| \
1366
X"$as_myself" : 'X\(//\)$' \| \
1367
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368
$as_echo X"$as_myself" |
1369
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1387
if test ! -r "$srcdir/$ac_unique_file"; then
1391
ac_srcdir_defaulted=no
1393
if test ! -r "$srcdir/$ac_unique_file"; then
1394
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1395
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1397
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1399
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1401
# When building in place, set srcdir=.
1402
if test "$ac_abs_confdir" = "$ac_pwd"; then
1405
# Remove unnecessary trailing slashes from srcdir.
1406
# Double slashes in file names in object file debugging info
1407
# mess up M-x gdb in Emacs.
1409
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1411
for ac_var in $ac_precious_vars; do
1412
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413
eval ac_env_${ac_var}_value=\$${ac_var}
1414
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419
# Report the --help message.
1421
if test "$ac_init_help" = "long"; then
1422
# Omit some internal or obsolete options to make the list less imposing.
1423
# This message is too long to be a string in the A/UX 3.1 sh.
1425
\`configure' configures sqlite3cc 0.1.0 to adapt to many kinds of systems.
1427
Usage: $0 [OPTION]... [VAR=VALUE]...
1429
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430
VAR=VALUE. See below for descriptions of some of the useful variables.
1432
Defaults for the options are specified in brackets.
1435
-h, --help display this help and exit
1436
--help=short display options specific to this package
1437
--help=recursive display the short help of all the included packages
1438
-V, --version display version information and exit
1439
-q, --quiet, --silent do not print \`checking...' messages
1440
--cache-file=FILE cache test results in FILE [disabled]
1441
-C, --config-cache alias for \`--cache-file=config.cache'
1442
-n, --no-create do not create output files
1443
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1445
Installation directories:
1446
--prefix=PREFIX install architecture-independent files in PREFIX
1447
[$ac_default_prefix]
1448
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1451
By default, \`make install' will install all the files in
1452
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454
for instance \`--prefix=\$HOME'.
1456
For better control, use the options below.
1458
Fine tuning of the installation directories:
1459
--bindir=DIR user executables [EPREFIX/bin]
1460
--sbindir=DIR system admin executables [EPREFIX/sbin]
1461
--libexecdir=DIR program executables [EPREFIX/libexec]
1462
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1463
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1464
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1465
--libdir=DIR object code libraries [EPREFIX/lib]
1466
--includedir=DIR C header files [PREFIX/include]
1467
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1468
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470
--infodir=DIR info documentation [DATAROOTDIR/info]
1471
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472
--mandir=DIR man documentation [DATAROOTDIR/man]
1473
--docdir=DIR documentation root [DATAROOTDIR/doc/sqlite3cc]
1474
--htmldir=DIR html documentation [DOCDIR]
1475
--dvidir=DIR dvi documentation [DOCDIR]
1476
--pdfdir=DIR pdf documentation [DOCDIR]
1477
--psdir=DIR ps documentation [DOCDIR]
1483
--program-prefix=PREFIX prepend PREFIX to installed program names
1484
--program-suffix=SUFFIX append SUFFIX to installed program names
1485
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1488
--build=BUILD configure for building on BUILD [guessed]
1489
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1493
if test -n "$ac_init_help"; then
1494
case $ac_init_help in
1495
short | recursive ) echo "Configuration of sqlite3cc 0.1.0:";;
1500
--disable-option-checking ignore unrecognized --enable/--with options
1501
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1502
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1503
--enable-shared[=PKGS] build shared libraries [default=yes]
1504
--enable-static[=PKGS] build static libraries [default=yes]
1505
--enable-fast-install[=PKGS]
1506
optimize for fast installation [default=yes]
1507
--disable-dependency-tracking speeds up one-time build
1508
--enable-dependency-tracking do not reject slow dependency extractors
1509
--disable-libtool-lock avoid locking (might break parallel builds)
1512
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1514
--with-pic try to use only PIC/non-PIC objects [default=use
1516
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1518
Some influential environment variables:
1519
CC C compiler command
1520
CFLAGS C compiler flags
1521
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522
nonstandard directory <lib dir>
1523
LIBS libraries to pass to the linker, e.g. -l<library>
1524
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1525
you have headers in a nonstandard directory <include dir>
1527
CXX C++ compiler command
1528
CXXFLAGS C++ compiler flags
1529
CXXCPP C++ preprocessor
1531
Use these variables to override the choices made by `configure' or to help
1532
it to find libraries and programs with nonstandard names/locations.
1534
Report bugs to <edam@waxworlds.org>.
1535
sqlite3cc home page: <http://www.waxworlds.org/edam/software/sqlite3cc>.
1540
if test "$ac_init_help" = "recursive"; then
1541
# If there are subdirs, report their specific --help.
1542
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543
test -d "$ac_dir" ||
1544
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1552
# A ".." for each directory in $ac_dir_suffix.
1553
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554
case $ac_top_builddir_sub in
1555
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559
ac_abs_top_builddir=$ac_pwd
1560
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561
# for backward compatibility:
1562
ac_top_builddir=$ac_top_build_prefix
1565
.) # We are building in place.
1567
ac_top_srcdir=$ac_top_builddir_sub
1568
ac_abs_top_srcdir=$ac_pwd ;;
1569
[\\/]* | ?:[\\/]* ) # Absolute name.
1570
ac_srcdir=$srcdir$ac_dir_suffix;
1571
ac_top_srcdir=$srcdir
1572
ac_abs_top_srcdir=$srcdir ;;
1574
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575
ac_top_srcdir=$ac_top_build_prefix$srcdir
1576
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
cd "$ac_dir" || { ac_status=$?; continue; }
1581
# Check for guested configure.
1582
if test -f "$ac_srcdir/configure.gnu"; then
1584
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585
elif test -f "$ac_srcdir/configure"; then
1587
$SHELL "$ac_srcdir/configure" --help=recursive
1589
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591
cd "$ac_pwd" || { ac_status=$?; break; }
1595
test -n "$ac_init_help" && exit $ac_status
1596
if $ac_init_version; then
1598
sqlite3cc configure 0.1.0
1599
generated by GNU Autoconf 2.64
1601
Copyright (C) 2009 Free Software Foundation, Inc.
1602
This configure script is free software; the Free Software Foundation
1603
gives unlimited permission to copy, distribute and modify it.
1608
## ------------------------ ##
1609
## Autoconf initialization. ##
1610
## ------------------------ ##
1612
# ac_fn_c_try_compile LINENO
1613
# --------------------------
1614
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1615
ac_fn_c_try_compile ()
1617
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618
rm -f conftest.$ac_objext
1619
if { { ac_try="$ac_compile"
1621
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622
*) ac_try_echo=$ac_try;;
1624
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625
$as_echo "$ac_try_echo"; } >&5
1626
(eval "$ac_compile") 2>conftest.err
1628
if test -s conftest.err; then
1629
grep -v '^ *+' conftest.err >conftest.er1
1630
cat conftest.er1 >&5
1631
mv -f conftest.er1 conftest.err
1633
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634
test $ac_status = 0; } && {
1635
test -z "$ac_c_werror_flag" ||
1636
test ! -s conftest.err
1637
} && test -s conftest.$ac_objext; then :
1640
$as_echo "$as_me: failed program was:" >&5
1641
sed 's/^/| /' conftest.$ac_ext >&5
1645
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648
} # ac_fn_c_try_compile
1650
# ac_fn_c_try_link LINENO
1651
# -----------------------
1652
# Try to link conftest.$ac_ext, and return whether this succeeded.
1655
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656
rm -f conftest.$ac_objext conftest$ac_exeext
1657
if { { ac_try="$ac_link"
1659
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660
*) ac_try_echo=$ac_try;;
1662
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663
$as_echo "$ac_try_echo"; } >&5
1664
(eval "$ac_link") 2>conftest.err
1666
if test -s conftest.err; then
1667
grep -v '^ *+' conftest.err >conftest.er1
1668
cat conftest.er1 >&5
1669
mv -f conftest.er1 conftest.err
1671
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672
test $ac_status = 0; } && {
1673
test -z "$ac_c_werror_flag" ||
1674
test ! -s conftest.err
1675
} && test -s conftest$ac_exeext && {
1676
test "$cross_compiling" = yes ||
1677
$as_test_x conftest$ac_exeext
1681
$as_echo "$as_me: failed program was:" >&5
1682
sed 's/^/| /' conftest.$ac_ext >&5
1686
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1687
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1688
# interfere with the next link command; also delete a directory that is
1689
# left behind by Apple's compiler. We do this before executing the actions.
1690
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694
} # ac_fn_c_try_link
1696
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1697
# -------------------------------------------------------
1698
# Tests whether HEADER exists and can be compiled using the include files in
1699
# INCLUDES, setting the cache variable VAR accordingly.
1700
ac_fn_c_check_header_compile ()
1702
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704
$as_echo_n "checking for $2... " >&6; }
1705
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1706
$as_echo_n "(cached) " >&6
1708
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709
/* end confdefs.h. */
1713
if ac_fn_c_try_compile "$LINENO"; then :
1718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722
$as_echo "$ac_res" >&6; }
1723
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725
} # ac_fn_c_check_header_compile
1727
# ac_fn_c_try_cpp LINENO
1728
# ----------------------
1729
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1732
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733
if { { ac_try="$ac_cpp conftest.$ac_ext"
1735
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736
*) ac_try_echo=$ac_try;;
1738
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739
$as_echo "$ac_try_echo"; } >&5
1740
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742
if test -s conftest.err; then
1743
grep -v '^ *+' conftest.err >conftest.er1
1744
cat conftest.er1 >&5
1745
mv -f conftest.er1 conftest.err
1747
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748
test $ac_status = 0; } >/dev/null && {
1749
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750
test ! -s conftest.err
1754
$as_echo "$as_me: failed program was:" >&5
1755
sed 's/^/| /' conftest.$ac_ext >&5
1759
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764
# ac_fn_c_try_run LINENO
1765
# ----------------------
1766
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1767
# that executables *can* be run.
1770
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771
if { { ac_try="$ac_link"
1773
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774
*) ac_try_echo=$ac_try;;
1776
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777
$as_echo "$ac_try_echo"; } >&5
1778
(eval "$ac_link") 2>&5
1780
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1782
{ { case "(($ac_try" in
1783
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784
*) ac_try_echo=$ac_try;;
1786
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787
$as_echo "$ac_try_echo"; } >&5
1788
(eval "$ac_try") 2>&5
1790
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791
test $ac_status = 0; }; }; then :
1794
$as_echo "$as_me: program exited with status $ac_status" >&5
1795
$as_echo "$as_me: failed program was:" >&5
1796
sed 's/^/| /' conftest.$ac_ext >&5
1798
ac_retval=$ac_status
1800
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806
# ac_fn_c_check_func LINENO FUNC VAR
1807
# ----------------------------------
1808
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1809
ac_fn_c_check_func ()
1811
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813
$as_echo_n "checking for $2... " >&6; }
1814
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1815
$as_echo_n "(cached) " >&6
1817
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818
/* end confdefs.h. */
1819
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1820
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1821
#define $2 innocuous_$2
1823
/* System header to define __stub macros and hopefully few prototypes,
1824
which can conflict with char $2 (); below.
1825
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1826
<limits.h> exists even on freestanding compilers. */
1829
# include <limits.h>
1831
# include <assert.h>
1836
/* Override any GCC internal prototype to avoid an error.
1837
Use char because int might match the return type of a GCC
1838
builtin and then its argument prototype would still apply. */
1843
/* The GNU C library defines this for functions which it implements
1844
to always fail with ENOSYS. Some functions are actually named
1845
something starting with __ and the normal name is an alias. */
1846
#if defined __stub_$2 || defined __stub___$2
1858
if ac_fn_c_try_link "$LINENO"; then :
1863
rm -f core conftest.err conftest.$ac_objext \
1864
conftest$ac_exeext conftest.$ac_ext
1867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868
$as_echo "$ac_res" >&6; }
1869
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871
} # ac_fn_c_check_func
1873
# ac_fn_cxx_try_compile LINENO
1874
# ----------------------------
1875
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1876
ac_fn_cxx_try_compile ()
1878
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879
rm -f conftest.$ac_objext
1880
if { { ac_try="$ac_compile"
1882
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883
*) ac_try_echo=$ac_try;;
1885
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886
$as_echo "$ac_try_echo"; } >&5
1887
(eval "$ac_compile") 2>conftest.err
1889
if test -s conftest.err; then
1890
grep -v '^ *+' conftest.err >conftest.er1
1891
cat conftest.er1 >&5
1892
mv -f conftest.er1 conftest.err
1894
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895
test $ac_status = 0; } && {
1896
test -z "$ac_cxx_werror_flag" ||
1897
test ! -s conftest.err
1898
} && test -s conftest.$ac_objext; then :
1901
$as_echo "$as_me: failed program was:" >&5
1902
sed 's/^/| /' conftest.$ac_ext >&5
1906
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909
} # ac_fn_cxx_try_compile
1911
# ac_fn_cxx_try_cpp LINENO
1912
# ------------------------
1913
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1914
ac_fn_cxx_try_cpp ()
1916
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917
if { { ac_try="$ac_cpp conftest.$ac_ext"
1919
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920
*) ac_try_echo=$ac_try;;
1922
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923
$as_echo "$ac_try_echo"; } >&5
1924
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1926
if test -s conftest.err; then
1927
grep -v '^ *+' conftest.err >conftest.er1
1928
cat conftest.er1 >&5
1929
mv -f conftest.er1 conftest.err
1931
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932
test $ac_status = 0; } >/dev/null && {
1933
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1934
test ! -s conftest.err
1938
$as_echo "$as_me: failed program was:" >&5
1939
sed 's/^/| /' conftest.$ac_ext >&5
1943
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946
} # ac_fn_cxx_try_cpp
1948
# ac_fn_cxx_try_link LINENO
1949
# -------------------------
1950
# Try to link conftest.$ac_ext, and return whether this succeeded.
1951
ac_fn_cxx_try_link ()
1953
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954
rm -f conftest.$ac_objext conftest$ac_exeext
1955
if { { ac_try="$ac_link"
1957
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958
*) ac_try_echo=$ac_try;;
1960
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961
$as_echo "$ac_try_echo"; } >&5
1962
(eval "$ac_link") 2>conftest.err
1964
if test -s conftest.err; then
1965
grep -v '^ *+' conftest.err >conftest.er1
1966
cat conftest.er1 >&5
1967
mv -f conftest.er1 conftest.err
1969
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970
test $ac_status = 0; } && {
1971
test -z "$ac_cxx_werror_flag" ||
1972
test ! -s conftest.err
1973
} && test -s conftest$ac_exeext && {
1974
test "$cross_compiling" = yes ||
1975
$as_test_x conftest$ac_exeext
1979
$as_echo "$as_me: failed program was:" >&5
1980
sed 's/^/| /' conftest.$ac_ext >&5
1984
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1985
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1986
# interfere with the next link command; also delete a directory that is
1987
# left behind by Apple's compiler. We do this before executing the actions.
1988
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992
} # ac_fn_cxx_try_link
1994
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1995
# -------------------------------------------------------
1996
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1997
# the include files in INCLUDES and setting the cache variable VAR
1999
ac_fn_c_check_header_mongrel ()
2001
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004
$as_echo_n "checking for $2... " >&6; }
2005
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2006
$as_echo_n "(cached) " >&6
2009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010
$as_echo "$ac_res" >&6; }
2012
# Is the header compilable?
2013
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2014
$as_echo_n "checking $2 usability... " >&6; }
2015
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016
/* end confdefs.h. */
2020
if ac_fn_c_try_compile "$LINENO"; then :
2021
ac_header_compiler=yes
2023
ac_header_compiler=no
2025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2027
$as_echo "$ac_header_compiler" >&6; }
2029
# Is the header present?
2030
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2031
$as_echo_n "checking $2 presence... " >&6; }
2032
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033
/* end confdefs.h. */
2036
if ac_fn_c_try_cpp "$LINENO"; then :
2037
ac_header_preproc=yes
2039
ac_header_preproc=no
2041
rm -f conftest.err conftest.$ac_ext
2042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2043
$as_echo "$ac_header_preproc" >&6; }
2045
# So? What about this header?
2046
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2048
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2049
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2050
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2051
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2054
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2055
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2056
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2057
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2058
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2059
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2060
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2061
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2062
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2063
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2065
## --------------------------------- ##
2066
## Report this to edam@waxworlds.org ##
2067
## --------------------------------- ##
2069
) | sed "s/^/$as_me: WARNING: /" >&2
2072
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073
$as_echo_n "checking for $2... " >&6; }
2074
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2075
$as_echo_n "(cached) " >&6
2077
eval "$3=\$ac_header_compiler"
2080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081
$as_echo "$ac_res" >&6; }
2083
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2085
} # ac_fn_c_check_header_mongrel
2086
cat >config.log <<_ACEOF
2087
This file contains any messages produced by compilers while
2088
running configure, to aid debugging if configure makes a mistake.
2090
It was created by sqlite3cc $as_me 0.1.0, which was
2091
generated by GNU Autoconf 2.64. Invocation command line was
2103
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2104
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2105
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2106
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2107
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2109
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2110
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2112
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2113
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2114
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2115
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2116
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2117
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2118
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126
test -z "$as_dir" && as_dir=.
2127
$as_echo "PATH: $as_dir"
2143
# Keep a trace of the command line.
2144
# Strip out --no-create and --no-recursion so they do not pile up.
2145
# Strip out --silent because we don't want to record it for future runs.
2146
# Also quote any args containing shell meta-characters.
2147
# Make two passes to allow for proper duplicate-argument suppression.
2151
ac_must_keep_next=false
2157
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2158
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2159
| -silent | --silent | --silen | --sile | --sil)
2162
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2165
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2167
as_fn_append ac_configure_args1 " '$ac_arg'"
2168
if test $ac_must_keep_next = true; then
2169
ac_must_keep_next=false # Got value, back to normal.
2172
*=* | --config-cache | -C | -disable-* | --disable-* \
2173
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2174
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2175
| -with-* | --with-* | -without-* | --without-* | --x)
2176
case "$ac_configure_args0 " in
2177
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2180
-* ) ac_must_keep_next=true ;;
2183
as_fn_append ac_configure_args " '$ac_arg'"
2188
{ ac_configure_args0=; unset ac_configure_args0;}
2189
{ ac_configure_args1=; unset ac_configure_args1;}
2191
# When interrupted or exit'd, cleanup temporary files, and complete
2192
# config.log. We remove comments because anyway the quotes in there
2193
# would cause problems or look ugly.
2194
# WARNING: Use '\'' to represent an apostrophe within the trap.
2195
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2196
trap 'exit_status=$?
2197
# Save into config.log some information that might help in debugging.
2202
## ---------------- ##
2203
## Cache variables. ##
2204
## ---------------- ##
2207
# The following way of writing the cache mishandles newlines in values,
2209
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2210
eval ac_val=\$$ac_var
2214
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2215
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2218
_ | IFS | as_nl) ;; #(
2219
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2220
*) { eval $ac_var=; unset $ac_var;} ;;
2225
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2226
*${as_nl}ac_space=\ *)
2228
"s/'\''/'\''\\\\'\'''\''/g;
2229
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2232
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2240
## ----------------- ##
2241
## Output variables. ##
2242
## ----------------- ##
2245
for ac_var in $ac_subst_vars
2247
eval ac_val=\$$ac_var
2249
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2251
$as_echo "$ac_var='\''$ac_val'\''"
2255
if test -n "$ac_subst_files"; then
2257
## ------------------- ##
2258
## File substitutions. ##
2259
## ------------------- ##
2262
for ac_var in $ac_subst_files
2264
eval ac_val=\$$ac_var
2266
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268
$as_echo "$ac_var='\''$ac_val'\''"
2273
if test -s confdefs.h; then
2283
test "$ac_signal" != 0 &&
2284
$as_echo "$as_me: caught signal $ac_signal"
2285
$as_echo "$as_me: exit $exit_status"
2287
rm -f core *.core core.conftest.* &&
2288
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2291
for ac_signal in 1 2 13 15; do
2292
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2296
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2297
rm -f -r conftest* confdefs.h
2299
$as_echo "/* confdefs.h */" > confdefs.h
2301
# Predefined preprocessor variables.
2303
cat >>confdefs.h <<_ACEOF
2304
#define PACKAGE_NAME "$PACKAGE_NAME"
2307
cat >>confdefs.h <<_ACEOF
2308
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2311
cat >>confdefs.h <<_ACEOF
2312
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2315
cat >>confdefs.h <<_ACEOF
2316
#define PACKAGE_STRING "$PACKAGE_STRING"
2319
cat >>confdefs.h <<_ACEOF
2320
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2323
cat >>confdefs.h <<_ACEOF
2324
#define PACKAGE_URL "$PACKAGE_URL"
2328
# Let the site file select an alternate cache file if it wants to.
2329
# Prefer an explicitly selected file to automatically selected ones.
2332
if test -n "$CONFIG_SITE"; then
2333
ac_site_file1=$CONFIG_SITE
2334
elif test "x$prefix" != xNONE; then
2335
ac_site_file1=$prefix/share/config.site
2336
ac_site_file2=$prefix/etc/config.site
2338
ac_site_file1=$ac_default_prefix/share/config.site
2339
ac_site_file2=$ac_default_prefix/etc/config.site
2341
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2343
test "x$ac_site_file" = xNONE && continue
2344
if test -r "$ac_site_file"; then
2345
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2346
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2347
sed 's/^/| /' "$ac_site_file" >&5
2352
if test -r "$cache_file"; then
2353
# Some versions of bash will fail to source /dev/null (special
2354
# files actually), so we avoid doing that.
2355
if test -f "$cache_file"; then
2356
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2357
$as_echo "$as_me: loading cache $cache_file" >&6;}
2359
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2360
*) . "./$cache_file";;
2364
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2365
$as_echo "$as_me: creating cache $cache_file" >&6;}
2369
# Check that the precious variables saved in the cache have kept the same
2371
ac_cache_corrupted=false
2372
for ac_var in $ac_precious_vars; do
2373
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2374
eval ac_new_set=\$ac_env_${ac_var}_set
2375
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2376
eval ac_new_val=\$ac_env_${ac_var}_value
2377
case $ac_old_set,$ac_new_set in
2379
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2380
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2381
ac_cache_corrupted=: ;;
2383
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2384
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2385
ac_cache_corrupted=: ;;
2388
if test "x$ac_old_val" != "x$ac_new_val"; then
2389
# differences in whitespace do not lead to failure.
2390
ac_old_val_w=`echo x $ac_old_val`
2391
ac_new_val_w=`echo x $ac_new_val`
2392
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2393
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2394
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2395
ac_cache_corrupted=:
2397
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2398
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2399
eval $ac_var=\$ac_old_val
2401
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2402
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2403
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2404
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2407
# Pass precious variables to config.status.
2408
if test "$ac_new_set" = set; then
2410
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2411
*) ac_arg=$ac_var=$ac_new_val ;;
2413
case " $ac_configure_args " in
2414
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2415
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2419
if $ac_cache_corrupted; then
2420
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2421
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2422
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2423
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2424
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2426
## -------------------- ##
2427
## Main body of script. ##
2428
## -------------------- ##
2431
ac_cpp='$CPP $CPPFLAGS'
2432
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2437
LIBSQLITE3CC_INTERFACE=0:0:0
2440
for ac_dir in build-aux "$srcdir"/build-aux; do
2441
for ac_t in install-sh install.sh shtool; do
2442
if test -f "$ac_dir/$ac_t"; then
2444
ac_install_sh="$ac_aux_dir/$ac_t -c"
2449
if test -z "$ac_aux_dir"; then
2450
as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2453
# These three variables are undocumented and unsupported,
2454
# and are intended to be withdrawn in a future Autoconf release.
2455
# They can cause serious problems if a builder's source tree is in a directory
2456
# whose full name contains unusual characters.
2457
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2458
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2459
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2463
am__api_version='1.11'
2465
# Find a good install program. We prefer a C program (faster),
2466
# so one script is as good as another. But avoid the broken or
2467
# incompatible versions:
2468
# SysV /etc/install, /usr/sbin/install
2469
# SunOS /usr/etc/install
2470
# IRIX /sbin/install
2472
# AmigaOS /C/install, which installs bootblocks on floppy discs
2473
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2474
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2475
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2476
# OS/2's system install, which has a completely different semantic
2477
# ./install, which can be erroneously created by make from ./install.sh.
2478
# Reject install programs that cannot install multiple files.
2479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2480
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2481
if test -z "$INSTALL"; then
2482
if test "${ac_cv_path_install+set}" = set; then :
2483
$as_echo_n "(cached) " >&6
2485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489
test -z "$as_dir" && as_dir=.
2490
# Account for people who put trailing slashes in PATH elements.
2491
case $as_dir/ in #((
2492
./ | .// | /[cC]/* | \
2493
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2494
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2497
# OSF1 and SCO ODT 3.0 have their own names for install.
2498
# Don't use installbsd from OSF since it installs stuff as root
2500
for ac_prog in ginstall scoinst install; do
2501
for ac_exec_ext in '' $ac_executable_extensions; do
2502
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2503
if test $ac_prog = install &&
2504
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2505
# AIX install. It has an incompatible calling convention.
2507
elif test $ac_prog = install &&
2508
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2509
# program-specific install script used by HP pwplus--don't use.
2512
rm -rf conftest.one conftest.two conftest.dir
2513
echo one > conftest.one
2514
echo two > conftest.two
2516
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2517
test -s conftest.one && test -s conftest.two &&
2518
test -s conftest.dir/conftest.one &&
2519
test -s conftest.dir/conftest.two
2521
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2534
rm -rf conftest.one conftest.two conftest.dir
2537
if test "${ac_cv_path_install+set}" = set; then
2538
INSTALL=$ac_cv_path_install
2540
# As a last resort, use the slow shell script. Don't cache a
2541
# value for INSTALL within a source directory, because that will
2542
# break other packages using the cache if that directory is
2543
# removed, or if the value is a relative name.
2544
INSTALL=$ac_install_sh
2547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2548
$as_echo "$INSTALL" >&6; }
2550
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2551
# It thinks the first close brace ends the variable substitution.
2552
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2554
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2556
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2559
$as_echo_n "checking whether build environment is sane... " >&6; }
2562
echo timestamp > conftest.file
2563
# Reject unsafe characters in $srcdir or the absolute working directory
2564
# name. Accept space and tab only in the latter.
2568
*[\\\"\#\$\&\'\`$am_lf]*)
2569
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2572
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2573
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2576
# Do `set' in a subshell so we don't clobber the current shell's
2577
# arguments. Must try -L first in case configure is actually a
2578
# symlink; some systems play weird games with the mod time of symlinks
2579
# (eg FreeBSD returns the mod time of the symlink's containing
2582
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2583
if test "$*" = "X"; then
2585
set X `ls -t "$srcdir/configure" conftest.file`
2588
if test "$*" != "X $srcdir/configure conftest.file" \
2589
&& test "$*" != "X conftest.file $srcdir/configure"; then
2591
# If neither matched, then we have a broken ls. This can happen
2592
# if, for instance, CONFIG_SHELL is bash and it inherits a
2593
# broken ls alias from the environment. This has actually
2594
# happened. Such a system could not be considered "sane".
2595
as_fn_error "ls -t appears to fail. Make sure there is not a broken
2596
alias in your environment" "$LINENO" 5
2599
test "$2" = conftest.file
2605
as_fn_error "newly created file is older than distributed files!
2606
Check your system clock" "$LINENO" 5
2608
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2609
$as_echo "yes" >&6; }
2610
test "$program_prefix" != NONE &&
2611
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2612
# Use a double $ so make ignores it.
2613
test "$program_suffix" != NONE &&
2614
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2615
# Double any \ or $.
2616
# By default was `s,x,x', remove it if useless.
2617
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2618
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2620
# expand $ac_aux_dir to an absolute path
2621
am_aux_dir=`cd $ac_aux_dir && pwd`
2623
if test x"${MISSING+set}" != xset; then
2626
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2628
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2631
# Use eval to expand $SHELL
2632
if eval "$MISSING --run true"; then
2633
am_missing_run="$MISSING --run "
2636
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2637
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2640
if test x"${install_sh}" != xset; then
2643
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2645
install_sh="\${SHELL} $am_aux_dir/install-sh"
2649
# Installed binaries are usually stripped using `strip' when the user
2650
# run `make install-strip'. However `strip' might not be the right
2651
# tool to use in cross-compilation environments, therefore Automake
2652
# will honor the `STRIP' environment variable to overrule this program.
2653
if test "$cross_compiling" != no; then
2654
if test -n "$ac_tool_prefix"; then
2655
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2656
set dummy ${ac_tool_prefix}strip; ac_word=$2
2657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658
$as_echo_n "checking for $ac_word... " >&6; }
2659
if test "${ac_cv_prog_STRIP+set}" = set; then :
2660
$as_echo_n "(cached) " >&6
2662
if test -n "$STRIP"; then
2663
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669
test -z "$as_dir" && as_dir=.
2670
for ac_exec_ext in '' $ac_executable_extensions; do
2671
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2673
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682
STRIP=$ac_cv_prog_STRIP
2683
if test -n "$STRIP"; then
2684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2685
$as_echo "$STRIP" >&6; }
2687
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688
$as_echo "no" >&6; }
2693
if test -z "$ac_cv_prog_STRIP"; then
2695
# Extract the first word of "strip", so it can be a program name with args.
2696
set dummy strip; ac_word=$2
2697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698
$as_echo_n "checking for $ac_word... " >&6; }
2699
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2700
$as_echo_n "(cached) " >&6
2702
if test -n "$ac_ct_STRIP"; then
2703
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2705
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709
test -z "$as_dir" && as_dir=.
2710
for ac_exec_ext in '' $ac_executable_extensions; do
2711
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712
ac_cv_prog_ac_ct_STRIP="strip"
2713
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2723
if test -n "$ac_ct_STRIP"; then
2724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2725
$as_echo "$ac_ct_STRIP" >&6; }
2727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728
$as_echo "no" >&6; }
2731
if test "x$ac_ct_STRIP" = x; then
2734
case $cross_compiling:$ac_tool_warned in
2736
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2737
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2738
ac_tool_warned=yes ;;
2743
STRIP="$ac_cv_prog_STRIP"
2747
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2750
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2751
if test -z "$MKDIR_P"; then
2752
if test "${ac_cv_path_mkdir+set}" = set; then :
2753
$as_echo_n "(cached) " >&6
2755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2759
test -z "$as_dir" && as_dir=.
2760
for ac_prog in mkdir gmkdir; do
2761
for ac_exec_ext in '' $ac_executable_extensions; do
2762
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2763
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2764
'mkdir (GNU coreutils) '* | \
2765
'mkdir (coreutils) '* | \
2766
'mkdir (fileutils) '4.1*)
2767
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2777
if test "${ac_cv_path_mkdir+set}" = set; then
2778
MKDIR_P="$ac_cv_path_mkdir -p"
2780
# As a last resort, use the slow shell script. Don't cache a
2781
# value for MKDIR_P within a source directory, because that will
2782
# break other packages using the cache if that directory is
2783
# removed, or if the value is a relative name.
2784
test -d ./--version && rmdir ./--version
2785
MKDIR_P="$ac_install_sh -d"
2788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2789
$as_echo "$MKDIR_P" >&6; }
2793
[\\/$]* | ?:[\\/]*) ;;
2794
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2797
for ac_prog in gawk mawk nawk awk
2799
# Extract the first word of "$ac_prog", so it can be a program name with args.
2800
set dummy $ac_prog; ac_word=$2
2801
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802
$as_echo_n "checking for $ac_word... " >&6; }
2803
if test "${ac_cv_prog_AWK+set}" = set; then :
2804
$as_echo_n "(cached) " >&6
2806
if test -n "$AWK"; then
2807
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2809
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813
test -z "$as_dir" && as_dir=.
2814
for ac_exec_ext in '' $ac_executable_extensions; do
2815
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816
ac_cv_prog_AWK="$ac_prog"
2817
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827
if test -n "$AWK"; then
2828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2829
$as_echo "$AWK" >&6; }
2831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832
$as_echo "no" >&6; }
2836
test -n "$AWK" && break
2839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2840
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2842
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2843
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2844
$as_echo_n "(cached) " >&6
2846
cat >conftest.make <<\_ACEOF
2849
@echo '@@@%%%=$(MAKE)=@@@%%%'
2851
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2852
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2854
eval ac_cv_prog_make_${ac_make}_set=yes;;
2856
eval ac_cv_prog_make_${ac_make}_set=no;;
2860
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2862
$as_echo "yes" >&6; }
2865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866
$as_echo "no" >&6; }
2867
SET_MAKE="MAKE=${MAKE-make}"
2870
rm -rf .tst 2>/dev/null
2871
mkdir .tst 2>/dev/null
2872
if test -d .tst; then
2877
rmdir .tst 2>/dev/null
2879
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2880
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2881
# is not polluted with repeated "-I."
2882
am__isrc=' -I$(srcdir)'
2883
# test to see if srcdir already configured
2884
if test -f $srcdir/config.status; then
2885
as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2889
# test whether we have cygpath
2890
if test -z "$CYGPATH_W"; then
2891
if (cygpath --version) >/dev/null 2>/dev/null; then
2892
CYGPATH_W='cygpath -w'
2899
# Define the identity of the package.
2904
cat >>confdefs.h <<_ACEOF
2905
#define PACKAGE "$PACKAGE"
2909
cat >>confdefs.h <<_ACEOF
2910
#define VERSION "$VERSION"
2913
# Some tools Automake needs.
2915
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2918
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2921
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2924
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2927
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2929
# We need awk for the "check" target. The system "awk" is bad on
2931
# Always define AMTAR for backward compatibility.
2933
AMTAR=${AMTAR-"${am_missing_run}tar"}
2935
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2942
ac_config_headers="$ac_config_headers config.h"
2946
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2947
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2952
macro_version='2.2.6'
2953
macro_revision='1.3012'
2967
ltmain="$ac_aux_dir/ltmain.sh"
2969
# Make sure we can run config.sub.
2970
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2971
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2974
$as_echo_n "checking build system type... " >&6; }
2975
if test "${ac_cv_build+set}" = set; then :
2976
$as_echo_n "(cached) " >&6
2978
ac_build_alias=$build_alias
2979
test "x$ac_build_alias" = x &&
2980
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2981
test "x$ac_build_alias" = x &&
2982
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2983
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2984
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2988
$as_echo "$ac_cv_build" >&6; }
2989
case $ac_cv_build in
2991
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2994
ac_save_IFS=$IFS; IFS='-'
3000
# Remember, the first character of IFS is used to create $*,
3001
# except with old shells:
3004
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3008
$as_echo_n "checking host system type... " >&6; }
3009
if test "${ac_cv_host+set}" = set; then :
3010
$as_echo_n "(cached) " >&6
3012
if test "x$host_alias" = x; then
3013
ac_cv_host=$ac_cv_build
3015
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3016
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3021
$as_echo "$ac_cv_host" >&6; }
3024
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3027
ac_save_IFS=$IFS; IFS='-'
3033
# Remember, the first character of IFS is used to create $*,
3034
# except with old shells:
3037
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3040
DEPDIR="${am__leading_dot}deps"
3042
ac_config_commands="$ac_config_commands depfiles"
3045
am_make=${MAKE-make}
3046
cat > confinc << 'END'
3048
@echo this is the am__doit target
3051
# If we don't find an include directive, just comment out the code.
3052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3053
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3057
# First try GNU make style include.
3058
echo "include confinc" > confmf
3059
# Ignore all kinds of additional output from `make'.
3060
case `$am_make -s -f confmf 2> /dev/null` in #(
3061
*the\ am__doit\ target*)
3067
# Now try BSD make style include.
3068
if test "$am__include" = "#"; then
3069
echo '.include "confinc"' > confmf
3070
case `$am_make -s -f confmf 2> /dev/null` in #(
3071
*the\ am__doit\ target*)
3072
am__include=.include
3080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3081
$as_echo "$_am_result" >&6; }
3082
rm -f confinc confmf
3084
# Check whether --enable-dependency-tracking was given.
3085
if test "${enable_dependency_tracking+set}" = set; then :
3086
enableval=$enable_dependency_tracking;
3089
if test "x$enable_dependency_tracking" != xno; then
3090
am_depcomp="$ac_aux_dir/depcomp"
3093
if test "x$enable_dependency_tracking" != xno; then
3103
ac_cpp='$CPP $CPPFLAGS'
3104
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107
if test -n "$ac_tool_prefix"; then
3108
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3109
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3110
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111
$as_echo_n "checking for $ac_word... " >&6; }
3112
if test "${ac_cv_prog_CC+set}" = set; then :
3113
$as_echo_n "(cached) " >&6
3115
if test -n "$CC"; then
3116
ac_cv_prog_CC="$CC" # Let the user override the test.
3118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122
test -z "$as_dir" && as_dir=.
3123
for ac_exec_ext in '' $ac_executable_extensions; do
3124
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3126
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136
if test -n "$CC"; then
3137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138
$as_echo "$CC" >&6; }
3140
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141
$as_echo "no" >&6; }
3146
if test -z "$ac_cv_prog_CC"; then
3148
# Extract the first word of "gcc", so it can be a program name with args.
3149
set dummy gcc; ac_word=$2
3150
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151
$as_echo_n "checking for $ac_word... " >&6; }
3152
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3153
$as_echo_n "(cached) " >&6
3155
if test -n "$ac_ct_CC"; then
3156
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162
test -z "$as_dir" && as_dir=.
3163
for ac_exec_ext in '' $ac_executable_extensions; do
3164
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165
ac_cv_prog_ac_ct_CC="gcc"
3166
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3176
if test -n "$ac_ct_CC"; then
3177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3178
$as_echo "$ac_ct_CC" >&6; }
3180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181
$as_echo "no" >&6; }
3184
if test "x$ac_ct_CC" = x; then
3187
case $cross_compiling:$ac_tool_warned in
3189
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191
ac_tool_warned=yes ;;
3199
if test -z "$CC"; then
3200
if test -n "$ac_tool_prefix"; then
3201
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3202
set dummy ${ac_tool_prefix}cc; ac_word=$2
3203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204
$as_echo_n "checking for $ac_word... " >&6; }
3205
if test "${ac_cv_prog_CC+set}" = set; then :
3206
$as_echo_n "(cached) " >&6
3208
if test -n "$CC"; then
3209
ac_cv_prog_CC="$CC" # Let the user override the test.
3211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215
test -z "$as_dir" && as_dir=.
3216
for ac_exec_ext in '' $ac_executable_extensions; do
3217
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218
ac_cv_prog_CC="${ac_tool_prefix}cc"
3219
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229
if test -n "$CC"; then
3230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231
$as_echo "$CC" >&6; }
3233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234
$as_echo "no" >&6; }
3240
if test -z "$CC"; then
3241
# Extract the first word of "cc", so it can be a program name with args.
3242
set dummy cc; ac_word=$2
3243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244
$as_echo_n "checking for $ac_word... " >&6; }
3245
if test "${ac_cv_prog_CC+set}" = set; then :
3246
$as_echo_n "(cached) " >&6
3248
if test -n "$CC"; then
3249
ac_cv_prog_CC="$CC" # Let the user override the test.
3252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256
test -z "$as_dir" && as_dir=.
3257
for ac_exec_ext in '' $ac_executable_extensions; do
3258
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3260
ac_prog_rejected=yes
3264
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271
if test $ac_prog_rejected = yes; then
3272
# We found a bogon in the path, so make sure we never use it.
3273
set dummy $ac_cv_prog_CC
3275
if test $# != 0; then
3276
# We chose a different compiler from the bogus one.
3277
# However, it has the same basename, so the bogon will be chosen
3278
# first if we set CC to just the basename; use the full file name.
3280
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3286
if test -n "$CC"; then
3287
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288
$as_echo "$CC" >&6; }
3290
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291
$as_echo "no" >&6; }
3296
if test -z "$CC"; then
3297
if test -n "$ac_tool_prefix"; then
3298
for ac_prog in cl.exe
3300
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3301
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303
$as_echo_n "checking for $ac_word... " >&6; }
3304
if test "${ac_cv_prog_CC+set}" = set; then :
3305
$as_echo_n "(cached) " >&6
3307
if test -n "$CC"; then
3308
ac_cv_prog_CC="$CC" # Let the user override the test.
3310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314
test -z "$as_dir" && as_dir=.
3315
for ac_exec_ext in '' $ac_executable_extensions; do
3316
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3318
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328
if test -n "$CC"; then
3329
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330
$as_echo "$CC" >&6; }
3332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333
$as_echo "no" >&6; }
3337
test -n "$CC" && break
3340
if test -z "$CC"; then
3342
for ac_prog in cl.exe
3344
# Extract the first word of "$ac_prog", so it can be a program name with args.
3345
set dummy $ac_prog; ac_word=$2
3346
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347
$as_echo_n "checking for $ac_word... " >&6; }
3348
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3349
$as_echo_n "(cached) " >&6
3351
if test -n "$ac_ct_CC"; then
3352
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358
test -z "$as_dir" && as_dir=.
3359
for ac_exec_ext in '' $ac_executable_extensions; do
3360
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361
ac_cv_prog_ac_ct_CC="$ac_prog"
3362
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3372
if test -n "$ac_ct_CC"; then
3373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3374
$as_echo "$ac_ct_CC" >&6; }
3376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377
$as_echo "no" >&6; }
3381
test -n "$ac_ct_CC" && break
3384
if test "x$ac_ct_CC" = x; then
3387
case $cross_compiling:$ac_tool_warned in
3389
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3390
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3391
ac_tool_warned=yes ;;
3400
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402
as_fn_error "no acceptable C compiler found in \$PATH
3403
See \`config.log' for more details." "$LINENO" 5; }
3405
# Provide some information about the compiler.
3406
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3409
for ac_option in --version -v -V -qversion; do
3410
{ { ac_try="$ac_compiler $ac_option >&5"
3412
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413
*) ac_try_echo=$ac_try;;
3415
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416
$as_echo "$ac_try_echo"; } >&5
3417
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3419
if test -s conftest.err; then
3421
... rest of stderr output deleted ...
3422
10q' conftest.err >conftest.er1
3423
cat conftest.er1 >&5
3424
rm -f conftest.er1 conftest.err
3426
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427
test $ac_status = 0; }
3430
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431
/* end confdefs.h. */
3436
FILE *f = fopen ("conftest.out", "w");
3437
return ferror (f) || fclose (f) != 0;
3443
ac_clean_files_save=$ac_clean_files
3444
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3445
# Try to create an executable without -o first, disregard a.out.
3446
# It will help us diagnose broken compilers, and finding out an intuition
3448
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3449
$as_echo_n "checking for C compiler default output file name... " >&6; }
3450
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3452
# The possible output files:
3453
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3456
for ac_file in $ac_files
3459
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3460
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3465
if { { ac_try="$ac_link_default"
3467
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468
*) ac_try_echo=$ac_try;;
3470
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471
$as_echo "$ac_try_echo"; } >&5
3472
(eval "$ac_link_default") 2>&5
3474
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475
test $ac_status = 0; }; then :
3476
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3477
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3478
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3479
# so that the user can short-circuit this test for compilers unknown to
3481
for ac_file in $ac_files ''
3483
test -f "$ac_file" || continue
3485
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3488
# We found the default executable, but exeext='' is most
3492
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3494
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3496
# We set ac_cv_exeext here because the later test for it is not
3497
# safe: cross compilers may not add the suffix if given an `-o'
3498
# argument, so we may need to know it at that point already.
3499
# Even if this section looks crufty: it has the advantage of
3506
test "$ac_cv_exeext" = no && ac_cv_exeext=
3511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3512
$as_echo "$ac_file" >&6; }
3513
if test -z "$ac_file"; then :
3514
$as_echo "$as_me: failed program was:" >&5
3515
sed 's/^/| /' conftest.$ac_ext >&5
3517
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519
{ as_fn_set_status 77
3520
as_fn_error "C compiler cannot create executables
3521
See \`config.log' for more details." "$LINENO" 5; }; }
3523
ac_exeext=$ac_cv_exeext
3525
# Check that the compiler produces executables we can run. If not, either
3526
# the compiler is broken, or we cross compile.
3527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3528
$as_echo_n "checking whether the C compiler works... " >&6; }
3529
# If not cross compiling, check that we can run a simple program.
3530
if test "$cross_compiling" != yes; then
3531
if { ac_try='./$ac_file'
3532
{ { case "(($ac_try" in
3533
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534
*) ac_try_echo=$ac_try;;
3536
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537
$as_echo "$ac_try_echo"; } >&5
3538
(eval "$ac_try") 2>&5
3540
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541
test $ac_status = 0; }; }; then
3544
if test "$cross_compiling" = maybe; then
3547
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549
as_fn_error "cannot run C compiled programs.
3550
If you meant to cross compile, use \`--host'.
3551
See \`config.log' for more details." "$LINENO" 5; }
3555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3556
$as_echo "yes" >&6; }
3558
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3559
ac_clean_files=$ac_clean_files_save
3560
# Check that the compiler produces executables we can run. If not, either
3561
# the compiler is broken, or we cross compile.
3562
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3563
$as_echo_n "checking whether we are cross compiling... " >&6; }
3564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3565
$as_echo "$cross_compiling" >&6; }
3567
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3568
$as_echo_n "checking for suffix of executables... " >&6; }
3569
if { { ac_try="$ac_link"
3571
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572
*) ac_try_echo=$ac_try;;
3574
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575
$as_echo "$ac_try_echo"; } >&5
3576
(eval "$ac_link") 2>&5
3578
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579
test $ac_status = 0; }; then :
3580
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3581
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3582
# work properly (i.e., refer to `conftest.exe'), while it won't with
3584
for ac_file in conftest.exe conftest conftest.*; do
3585
test -f "$ac_file" || continue
3587
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3588
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3594
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596
as_fn_error "cannot compute suffix of executables: cannot compile and link
3597
See \`config.log' for more details." "$LINENO" 5; }
3599
rm -f conftest$ac_cv_exeext
3600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3601
$as_echo "$ac_cv_exeext" >&6; }
3603
rm -f conftest.$ac_ext
3604
EXEEXT=$ac_cv_exeext
3606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3607
$as_echo_n "checking for suffix of object files... " >&6; }
3608
if test "${ac_cv_objext+set}" = set; then :
3609
$as_echo_n "(cached) " >&6
3611
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612
/* end confdefs.h. */
3622
rm -f conftest.o conftest.obj
3623
if { { ac_try="$ac_compile"
3625
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626
*) ac_try_echo=$ac_try;;
3628
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3629
$as_echo "$ac_try_echo"; } >&5
3630
(eval "$ac_compile") 2>&5
3632
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3633
test $ac_status = 0; }; then :
3634
for ac_file in conftest.o conftest.obj conftest.*; do
3635
test -f "$ac_file" || continue;
3637
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3638
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3643
$as_echo "$as_me: failed program was:" >&5
3644
sed 's/^/| /' conftest.$ac_ext >&5
3646
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648
as_fn_error "cannot compute suffix of object files: cannot compile
3649
See \`config.log' for more details." "$LINENO" 5; }
3651
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3653
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3654
$as_echo "$ac_cv_objext" >&6; }
3655
OBJEXT=$ac_cv_objext
3657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3658
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3659
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3660
$as_echo_n "(cached) " >&6
3662
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663
/* end confdefs.h. */
3676
if ac_fn_c_try_compile "$LINENO"; then :
3681
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3686
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3687
if test $ac_compiler_gnu = yes; then
3692
ac_test_CFLAGS=${CFLAGS+set}
3693
ac_save_CFLAGS=$CFLAGS
3694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3695
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3696
if test "${ac_cv_prog_cc_g+set}" = set; then :
3697
$as_echo_n "(cached) " >&6
3699
ac_save_c_werror_flag=$ac_c_werror_flag
3700
ac_c_werror_flag=yes
3703
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704
/* end confdefs.h. */
3714
if ac_fn_c_try_compile "$LINENO"; then :
3718
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719
/* end confdefs.h. */
3729
if ac_fn_c_try_compile "$LINENO"; then :
3732
ac_c_werror_flag=$ac_save_c_werror_flag
3734
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735
/* end confdefs.h. */
3745
if ac_fn_c_try_compile "$LINENO"; then :
3748
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753
ac_c_werror_flag=$ac_save_c_werror_flag
3755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3756
$as_echo "$ac_cv_prog_cc_g" >&6; }
3757
if test "$ac_test_CFLAGS" = set; then
3758
CFLAGS=$ac_save_CFLAGS
3759
elif test $ac_cv_prog_cc_g = yes; then
3760
if test "$GCC" = yes; then
3766
if test "$GCC" = yes; then
3772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3773
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3774
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3775
$as_echo_n "(cached) " >&6
3777
ac_cv_prog_cc_c89=no
3779
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780
/* end confdefs.h. */
3783
#include <sys/types.h>
3784
#include <sys/stat.h>
3785
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3786
struct buf { int x; };
3787
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3788
static char *e (p, i)
3794
static char *f (char * (*g) (char **, int), char **p, ...)
3799
s = g (p, va_arg (v,int));
3804
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3805
function prototypes and stuff, but not '\xHH' hex character constants.
3806
These don't provoke an error unfortunately, instead are silently treated
3807
as 'x'. The following induces an error, until -std is added to get
3808
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3809
array size at least. It's necessary to write '\x00'==0 to get something
3810
that's true only with -std. */
3811
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3813
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3814
inside strings and character constants. */
3816
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3818
int test (int i, double x);
3819
struct s1 {int (*f) (int a);};
3820
struct s2 {int (*f) (double a);};
3821
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3827
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3832
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3833
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3835
CC="$ac_save_CC $ac_arg"
3836
if ac_fn_c_try_compile "$LINENO"; then :
3837
ac_cv_prog_cc_c89=$ac_arg
3839
rm -f core conftest.err conftest.$ac_objext
3840
test "x$ac_cv_prog_cc_c89" != "xno" && break
3842
rm -f conftest.$ac_ext
3847
case "x$ac_cv_prog_cc_c89" in
3849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3850
$as_echo "none needed" >&6; } ;;
3852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3853
$as_echo "unsupported" >&6; } ;;
3855
CC="$CC $ac_cv_prog_cc_c89"
3856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3857
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3859
if test "x$ac_cv_prog_cc_c89" != xno; then :
3864
ac_cpp='$CPP $CPPFLAGS'
3865
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869
depcc="$CC" am_compiler_list=
3871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3872
$as_echo_n "checking dependency style of $depcc... " >&6; }
3873
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3874
$as_echo_n "(cached) " >&6
3876
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3877
# We make a subdir and do the tests there. Otherwise we can end up
3878
# making bogus files that we don't know about and never remove. For
3879
# instance it was reported that on HP-UX the gcc test will end up
3880
# making a dummy file named `D' -- because `-MD' means `put the output
3883
# Copy depcomp to subdir because otherwise we won't find it if we're
3884
# using a relative directory.
3885
cp "$am_depcomp" conftest.dir
3887
# We will build objects and dependencies in a subdirectory because
3888
# it helps to detect inapplicable dependency modes. For instance
3889
# both Tru64's cc and ICC support -MD to output dependencies as a
3890
# side effect of compilation, but ICC will put the dependencies in
3891
# the current directory while Tru64 will put them in the object
3895
am_cv_CC_dependencies_compiler_type=none
3896
if test "$am_compiler_list" = ""; then
3897
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3900
case " $depcc " in #(
3901
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3904
for depmode in $am_compiler_list; do
3905
# Setup a source with many dependencies, because some compilers
3906
# like to wrap large dependency lists on column 80 (with \), and
3907
# we should not choose a depcomp mode which is confused by this.
3909
# We need to recreate these files for each test, as the compiler may
3910
# overwrite some of them when testing with obscure command lines.
3911
# This happens at least with the AIX C compiler.
3913
for i in 1 2 3 4 5 6; do
3914
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3915
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3916
# Solaris 8's {/usr,}/bin/sh.
3917
touch sub/conftst$i.h
3919
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3921
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3922
# mode. It turns out that the SunPro C++ compiler does not properly
3923
# handle `-M -o', and we need to detect this. Also, some Intel
3924
# versions had trouble with output in subdirs
3925
am__obj=sub/conftest.${OBJEXT-o}
3926
am__minus_obj="-o $am__obj"
3929
# This depmode causes a compiler race in universal mode.
3930
test "$am__universal" = false || continue
3933
# after this tag, mechanisms are not by side-effect, so they'll
3934
# only be used when explicitly requested
3935
if test "x$enable_dependency_tracking" = xyes; then
3941
msvisualcpp | msvcmsys)
3942
# This compiler won't grok `-c -o', but also, the minuso test has
3943
# not run yet. These depmodes are late enough in the game, and
3944
# so weak that their functioning should not be impacted.
3945
am__obj=conftest.${OBJEXT-o}
3950
if depmode=$depmode \
3951
source=sub/conftest.c object=$am__obj \
3952
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3953
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3954
>/dev/null 2>conftest.err &&
3955
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3956
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3957
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3958
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3959
# icc doesn't choke on unknown options, it will just issue warnings
3960
# or remarks (even with -Werror). So we grep stderr for any message
3961
# that says an option was ignored or not supported.
3962
# When given -MP, icc 7.0 and 7.1 complain thusly:
3963
# icc: Command line warning: ignoring option '-M'; no argument required
3964
# The diagnosis changed in icc 8.0:
3965
# icc: Command line remark: option '-MP' not supported
3966
if (grep 'ignoring option' conftest.err ||
3967
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3968
am_cv_CC_dependencies_compiler_type=$depmode
3977
am_cv_CC_dependencies_compiler_type=none
3981
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3982
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3983
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3986
test "x$enable_dependency_tracking" != xno \
3987
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3989
am__fastdepCC_FALSE='#'
3991
am__fastdepCC_TRUE='#'
3992
am__fastdepCC_FALSE=
3996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3997
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3998
if test "${ac_cv_path_SED+set}" = set; then :
3999
$as_echo_n "(cached) " >&6
4001
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4002
for ac_i in 1 2 3 4 5 6 7; do
4003
ac_script="$ac_script$as_nl$ac_script"
4005
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4006
{ ac_script=; unset ac_script;}
4007
if test -z "$SED"; then
4008
ac_path_SED_found=false
4009
# Loop through the user's path and test for each of PROGNAME-LIST
4010
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014
test -z "$as_dir" && as_dir=.
4015
for ac_prog in sed gsed; do
4016
for ac_exec_ext in '' $ac_executable_extensions; do
4017
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4018
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4019
# Check for GNU ac_path_SED and select it if it is found.
4020
# Check for GNU $ac_path_SED
4021
case `"$ac_path_SED" --version 2>&1` in
4023
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4026
$as_echo_n 0123456789 >"conftest.in"
4029
cat "conftest.in" "conftest.in" >"conftest.tmp"
4030
mv "conftest.tmp" "conftest.in"
4031
cp "conftest.in" "conftest.nl"
4032
$as_echo '' >> "conftest.nl"
4033
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4034
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4035
as_fn_arith $ac_count + 1 && ac_count=$as_val
4036
if test $ac_count -gt ${ac_path_SED_max-0}; then
4037
# Best one so far, save it but keep looking for a better one
4038
ac_cv_path_SED="$ac_path_SED"
4039
ac_path_SED_max=$ac_count
4041
# 10*(2^10) chars as input seems more than enough
4042
test $ac_count -gt 10 && break
4044
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047
$ac_path_SED_found && break 3
4052
if test -z "$ac_cv_path_SED"; then
4053
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4061
$as_echo "$ac_cv_path_SED" >&6; }
4062
SED="$ac_cv_path_SED"
4065
test -z "$SED" && SED=sed
4066
Xsed="$SED -e 1s/^X//"
4078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4079
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4080
if test "${ac_cv_path_GREP+set}" = set; then :
4081
$as_echo_n "(cached) " >&6
4083
if test -z "$GREP"; then
4084
ac_path_GREP_found=false
4085
# Loop through the user's path and test for each of PROGNAME-LIST
4086
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4090
test -z "$as_dir" && as_dir=.
4091
for ac_prog in grep ggrep; do
4092
for ac_exec_ext in '' $ac_executable_extensions; do
4093
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4094
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4095
# Check for GNU ac_path_GREP and select it if it is found.
4096
# Check for GNU $ac_path_GREP
4097
case `"$ac_path_GREP" --version 2>&1` in
4099
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4102
$as_echo_n 0123456789 >"conftest.in"
4105
cat "conftest.in" "conftest.in" >"conftest.tmp"
4106
mv "conftest.tmp" "conftest.in"
4107
cp "conftest.in" "conftest.nl"
4108
$as_echo 'GREP' >> "conftest.nl"
4109
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4110
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4111
as_fn_arith $ac_count + 1 && ac_count=$as_val
4112
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4113
# Best one so far, save it but keep looking for a better one
4114
ac_cv_path_GREP="$ac_path_GREP"
4115
ac_path_GREP_max=$ac_count
4117
# 10*(2^10) chars as input seems more than enough
4118
test $ac_count -gt 10 && break
4120
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123
$ac_path_GREP_found && break 3
4128
if test -z "$ac_cv_path_GREP"; then
4129
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4132
ac_cv_path_GREP=$GREP
4136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4137
$as_echo "$ac_cv_path_GREP" >&6; }
4138
GREP="$ac_cv_path_GREP"
4141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4142
$as_echo_n "checking for egrep... " >&6; }
4143
if test "${ac_cv_path_EGREP+set}" = set; then :
4144
$as_echo_n "(cached) " >&6
4146
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4147
then ac_cv_path_EGREP="$GREP -E"
4149
if test -z "$EGREP"; then
4150
ac_path_EGREP_found=false
4151
# Loop through the user's path and test for each of PROGNAME-LIST
4152
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156
test -z "$as_dir" && as_dir=.
4157
for ac_prog in egrep; do
4158
for ac_exec_ext in '' $ac_executable_extensions; do
4159
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4160
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4161
# Check for GNU ac_path_EGREP and select it if it is found.
4162
# Check for GNU $ac_path_EGREP
4163
case `"$ac_path_EGREP" --version 2>&1` in
4165
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4168
$as_echo_n 0123456789 >"conftest.in"
4171
cat "conftest.in" "conftest.in" >"conftest.tmp"
4172
mv "conftest.tmp" "conftest.in"
4173
cp "conftest.in" "conftest.nl"
4174
$as_echo 'EGREP' >> "conftest.nl"
4175
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4176
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4177
as_fn_arith $ac_count + 1 && ac_count=$as_val
4178
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4179
# Best one so far, save it but keep looking for a better one
4180
ac_cv_path_EGREP="$ac_path_EGREP"
4181
ac_path_EGREP_max=$ac_count
4183
# 10*(2^10) chars as input seems more than enough
4184
test $ac_count -gt 10 && break
4186
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4189
$ac_path_EGREP_found && break 3
4194
if test -z "$ac_cv_path_EGREP"; then
4195
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4198
ac_cv_path_EGREP=$EGREP
4203
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4204
$as_echo "$ac_cv_path_EGREP" >&6; }
4205
EGREP="$ac_cv_path_EGREP"
4208
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4209
$as_echo_n "checking for fgrep... " >&6; }
4210
if test "${ac_cv_path_FGREP+set}" = set; then :
4211
$as_echo_n "(cached) " >&6
4213
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4214
then ac_cv_path_FGREP="$GREP -F"
4216
if test -z "$FGREP"; then
4217
ac_path_FGREP_found=false
4218
# Loop through the user's path and test for each of PROGNAME-LIST
4219
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223
test -z "$as_dir" && as_dir=.
4224
for ac_prog in fgrep; do
4225
for ac_exec_ext in '' $ac_executable_extensions; do
4226
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4227
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4228
# Check for GNU ac_path_FGREP and select it if it is found.
4229
# Check for GNU $ac_path_FGREP
4230
case `"$ac_path_FGREP" --version 2>&1` in
4232
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4235
$as_echo_n 0123456789 >"conftest.in"
4238
cat "conftest.in" "conftest.in" >"conftest.tmp"
4239
mv "conftest.tmp" "conftest.in"
4240
cp "conftest.in" "conftest.nl"
4241
$as_echo 'FGREP' >> "conftest.nl"
4242
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4243
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4244
as_fn_arith $ac_count + 1 && ac_count=$as_val
4245
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4246
# Best one so far, save it but keep looking for a better one
4247
ac_cv_path_FGREP="$ac_path_FGREP"
4248
ac_path_FGREP_max=$ac_count
4250
# 10*(2^10) chars as input seems more than enough
4251
test $ac_count -gt 10 && break
4253
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256
$ac_path_FGREP_found && break 3
4261
if test -z "$ac_cv_path_FGREP"; then
4262
as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4265
ac_cv_path_FGREP=$FGREP
4270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4271
$as_echo "$ac_cv_path_FGREP" >&6; }
4272
FGREP="$ac_cv_path_FGREP"
4275
test -z "$GREP" && GREP=grep
4295
# Check whether --with-gnu-ld was given.
4296
if test "${with_gnu_ld+set}" = set; then :
4297
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4303
if test "$GCC" = yes; then
4304
# Check if gcc -print-prog-name=ld gives a path.
4305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4306
$as_echo_n "checking for ld used by $CC... " >&6; }
4309
# gcc leaves a trailing carriage return which upsets mingw
4310
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4312
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4315
# Accept absolute paths.
4317
re_direlt='/[^/][^/]*/\.\./'
4318
# Canonicalize the pathname of ld
4319
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4320
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4321
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4323
test -z "$LD" && LD="$ac_prog"
4326
# If it fails, then pretend we aren't using GCC.
4330
# If it is relative, then search for the first ld in PATH.
4334
elif test "$with_gnu_ld" = yes; then
4335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4336
$as_echo_n "checking for GNU ld... " >&6; }
4338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4339
$as_echo_n "checking for non-GNU ld... " >&6; }
4341
if test "${lt_cv_path_LD+set}" = set; then :
4342
$as_echo_n "(cached) " >&6
4344
if test -z "$LD"; then
4345
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4346
for ac_dir in $PATH; do
4348
test -z "$ac_dir" && ac_dir=.
4349
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4350
lt_cv_path_LD="$ac_dir/$ac_prog"
4351
# Check to see if the program is GNU ld. I'd rather use --version,
4352
# but apparently some variants of GNU ld only accept -v.
4353
# Break only if it was the GNU/non-GNU ld that we prefer.
4354
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4355
*GNU* | *'with BFD'*)
4356
test "$with_gnu_ld" != no && break
4359
test "$with_gnu_ld" != yes && break
4366
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4371
if test -n "$LD"; then
4372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4373
$as_echo "$LD" >&6; }
4375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376
$as_echo "no" >&6; }
4378
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4380
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4381
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4382
$as_echo_n "(cached) " >&6
4384
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4385
case `$LD -v 2>&1 </dev/null` in
4386
*GNU* | *'with BFD'*)
4387
lt_cv_prog_gnu_ld=yes
4390
lt_cv_prog_gnu_ld=no
4394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4395
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4396
with_gnu_ld=$lt_cv_prog_gnu_ld
4406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4407
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4408
if test "${lt_cv_path_NM+set}" = set; then :
4409
$as_echo_n "(cached) " >&6
4411
if test -n "$NM"; then
4412
# Let the user override the test.
4415
lt_nm_to_check="${ac_tool_prefix}nm"
4416
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4417
lt_nm_to_check="$lt_nm_to_check nm"
4419
for lt_tmp_nm in $lt_nm_to_check; do
4420
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4421
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4423
test -z "$ac_dir" && ac_dir=.
4424
tmp_nm="$ac_dir/$lt_tmp_nm"
4425
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4426
# Check to see if the nm accepts a BSD-compat flag.
4427
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4428
# nm: unknown option "B" ignored
4429
# Tru64's nm complains that /dev/null is an invalid object file
4430
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4431
*/dev/null* | *'Invalid file or object type'*)
4432
lt_cv_path_NM="$tmp_nm -B"
4436
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4438
lt_cv_path_NM="$tmp_nm -p"
4442
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4443
continue # so that we can try to find one that supports BSD flags
4452
: ${lt_cv_path_NM=no}
4455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4456
$as_echo "$lt_cv_path_NM" >&6; }
4457
if test "$lt_cv_path_NM" != "no"; then
4460
# Didn't find any BSD compatible name lister, look for dumpbin.
4461
if test -n "$ac_tool_prefix"; then
4462
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4464
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4465
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467
$as_echo_n "checking for $ac_word... " >&6; }
4468
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4469
$as_echo_n "(cached) " >&6
4471
if test -n "$DUMPBIN"; then
4472
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4474
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478
test -z "$as_dir" && as_dir=.
4479
for ac_exec_ext in '' $ac_executable_extensions; do
4480
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4481
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4482
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4491
DUMPBIN=$ac_cv_prog_DUMPBIN
4492
if test -n "$DUMPBIN"; then
4493
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4494
$as_echo "$DUMPBIN" >&6; }
4496
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497
$as_echo "no" >&6; }
4501
test -n "$DUMPBIN" && break
4504
if test -z "$DUMPBIN"; then
4505
ac_ct_DUMPBIN=$DUMPBIN
4506
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4508
# Extract the first word of "$ac_prog", so it can be a program name with args.
4509
set dummy $ac_prog; ac_word=$2
4510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511
$as_echo_n "checking for $ac_word... " >&6; }
4512
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4513
$as_echo_n "(cached) " >&6
4515
if test -n "$ac_ct_DUMPBIN"; then
4516
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522
test -z "$as_dir" && as_dir=.
4523
for ac_exec_ext in '' $ac_executable_extensions; do
4524
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4526
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4535
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4536
if test -n "$ac_ct_DUMPBIN"; then
4537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4538
$as_echo "$ac_ct_DUMPBIN" >&6; }
4540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541
$as_echo "no" >&6; }
4545
test -n "$ac_ct_DUMPBIN" && break
4548
if test "x$ac_ct_DUMPBIN" = x; then
4551
case $cross_compiling:$ac_tool_warned in
4553
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4554
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4555
ac_tool_warned=yes ;;
4557
DUMPBIN=$ac_ct_DUMPBIN
4562
if test "$DUMPBIN" != ":"; then
4566
test -z "$NM" && NM=nm
4573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4574
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4575
if test "${lt_cv_nm_interface+set}" = set; then :
4576
$as_echo_n "(cached) " >&6
4578
lt_cv_nm_interface="BSD nm"
4579
echo "int some_variable = 0;" > conftest.$ac_ext
4580
(eval echo "\"\$as_me:4580: $ac_compile\"" >&5)
4581
(eval "$ac_compile" 2>conftest.err)
4582
cat conftest.err >&5
4583
(eval echo "\"\$as_me:4583: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4584
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4585
cat conftest.err >&5
4586
(eval echo "\"\$as_me:4586: output\"" >&5)
4587
cat conftest.out >&5
4588
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4589
lt_cv_nm_interface="MS dumpbin"
4593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4594
$as_echo "$lt_cv_nm_interface" >&6; }
4596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4597
$as_echo_n "checking whether ln -s works... " >&6; }
4599
if test "$LN_S" = "ln -s"; then
4600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4601
$as_echo "yes" >&6; }
4603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4604
$as_echo "no, using $LN_S" >&6; }
4607
# find the maximum length of command line arguments
4608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4609
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4610
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4611
$as_echo_n "(cached) " >&6
4618
# On DJGPP, this test can blow up pretty badly due to problems in libc
4619
# (any single argument exceeding 2000 bytes causes a buffer overrun
4620
# during glob expansion). Even if it were fixed, the result of this
4621
# check would be larger than it should be.
4622
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4626
# Under GNU Hurd, this test is not required because there is
4627
# no limit to the length of command line arguments.
4628
# Libtool will interpret -1 as no limit whatsoever
4629
lt_cv_sys_max_cmd_len=-1;
4632
cygwin* | mingw* | cegcc*)
4633
# On Win9x/ME, this test blows up -- it succeeds, but takes
4634
# about 5 minutes as the teststring grows exponentially.
4635
# Worse, since 9x/ME are not pre-emptively multitasking,
4636
# you end up with a "frozen" computer, even though with patience
4637
# the test eventually succeeds (with a max line length of 256k).
4638
# Instead, let's just punt: use the minimum linelength reported by
4639
# all of the supported platforms: 8192 (on NT/2K/XP).
4640
lt_cv_sys_max_cmd_len=8192;
4644
# On AmigaOS with pdksh, this test takes hours, literally.
4645
# So we just punt and use a minimum line length of 8192.
4646
lt_cv_sys_max_cmd_len=8192;
4649
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4650
# This has been around since 386BSD, at least. Likely further.
4651
if test -x /sbin/sysctl; then
4652
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4653
elif test -x /usr/sbin/sysctl; then
4654
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4656
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4658
# And add a safety zone
4659
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4660
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4664
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4665
lt_cv_sys_max_cmd_len=196608
4669
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4670
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4671
# nice to cause kernel panics so lets avoid the loop below.
4672
# First set a reasonable default.
4673
lt_cv_sys_max_cmd_len=16384
4675
if test -x /sbin/sysconfig; then
4676
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4677
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4682
lt_cv_sys_max_cmd_len=102400
4684
sysv5* | sco5v6* | sysv4.2uw2*)
4685
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4686
if test -n "$kargmax"; then
4687
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4689
lt_cv_sys_max_cmd_len=32768
4693
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4694
if test -n "$lt_cv_sys_max_cmd_len"; then
4695
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4696
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4698
# Make teststring a little bigger before we do anything with it.
4699
# a 1K string should be a reasonable start.
4700
for i in 1 2 3 4 5 6 7 8 ; do
4701
teststring=$teststring$teststring
4703
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4704
# If test is not a shell built-in, we'll probably end up computing a
4705
# maximum length that is only half of the actual maximum length, but
4707
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4708
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4709
test $i != 17 # 1/2 MB should be enough
4712
teststring=$teststring$teststring
4714
# Only check the string length outside the loop.
4715
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4717
# Add a significant safety factor because C++ compilers can tack on
4718
# massive amounts of additional arguments before passing them to the
4719
# linker. It appears as though 1/2 is a usable value.
4720
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4727
if test -n $lt_cv_sys_max_cmd_len ; then
4728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4729
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4732
$as_echo "none" >&6; }
4734
max_cmd_len=$lt_cv_sys_max_cmd_len
4745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4746
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4747
# Try some XSI features
4750
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4752
&& eval 'test $(( 1 + 1 )) -eq 2 \
4753
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4756
$as_echo "$xsi_shell" >&6; }
4759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4760
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4762
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4764
&& lt_shell_append=yes
4765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4766
$as_echo "$lt_shell_append" >&6; }
4769
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4779
# test EBCDIC or ASCII
4780
case `echo X|tr X '\101'` in
4781
A) # ASCII based system
4782
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4783
lt_SP2NL='tr \040 \012'
4784
lt_NL2SP='tr \015\012 \040\040'
4786
*) # EBCDIC based system
4787
lt_SP2NL='tr \100 \n'
4788
lt_NL2SP='tr \r\n \100\100'
4800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4801
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4802
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4803
$as_echo_n "(cached) " >&6
4805
lt_cv_ld_reload_flag='-r'
4807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4808
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4809
reload_flag=$lt_cv_ld_reload_flag
4810
case $reload_flag in
4812
*) reload_flag=" $reload_flag" ;;
4814
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4817
if test "$GCC" = yes; then
4818
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4820
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4833
if test -n "$ac_tool_prefix"; then
4834
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4835
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837
$as_echo_n "checking for $ac_word... " >&6; }
4838
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4839
$as_echo_n "(cached) " >&6
4841
if test -n "$OBJDUMP"; then
4842
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4844
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848
test -z "$as_dir" && as_dir=.
4849
for ac_exec_ext in '' $ac_executable_extensions; do
4850
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4851
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4852
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861
OBJDUMP=$ac_cv_prog_OBJDUMP
4862
if test -n "$OBJDUMP"; then
4863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4864
$as_echo "$OBJDUMP" >&6; }
4866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867
$as_echo "no" >&6; }
4872
if test -z "$ac_cv_prog_OBJDUMP"; then
4873
ac_ct_OBJDUMP=$OBJDUMP
4874
# Extract the first word of "objdump", so it can be a program name with args.
4875
set dummy objdump; ac_word=$2
4876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877
$as_echo_n "checking for $ac_word... " >&6; }
4878
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4879
$as_echo_n "(cached) " >&6
4881
if test -n "$ac_ct_OBJDUMP"; then
4882
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888
test -z "$as_dir" && as_dir=.
4889
for ac_exec_ext in '' $ac_executable_extensions; do
4890
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4892
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4902
if test -n "$ac_ct_OBJDUMP"; then
4903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4904
$as_echo "$ac_ct_OBJDUMP" >&6; }
4906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907
$as_echo "no" >&6; }
4910
if test "x$ac_ct_OBJDUMP" = x; then
4913
case $cross_compiling:$ac_tool_warned in
4915
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4916
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4917
ac_tool_warned=yes ;;
4919
OBJDUMP=$ac_ct_OBJDUMP
4922
OBJDUMP="$ac_cv_prog_OBJDUMP"
4925
test -z "$OBJDUMP" && OBJDUMP=objdump
4935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4936
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4937
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4938
$as_echo_n "(cached) " >&6
4940
lt_cv_file_magic_cmd='$MAGIC_CMD'
4941
lt_cv_file_magic_test_file=
4942
lt_cv_deplibs_check_method='unknown'
4943
# Need to set the preceding variable on all platforms that support
4944
# interlibrary dependencies.
4945
# 'none' -- dependencies not supported.
4946
# `unknown' -- same as none, but documents that we really don't know.
4947
# 'pass_all' -- all dependencies passed with no checks.
4948
# 'test_compile' -- check by making test program.
4949
# 'file_magic [[regex]]' -- check by looking for files in library path
4950
# which responds to the $file_magic_cmd with a given extended regex.
4951
# If you have `file' or equivalent on your system and you're not sure
4952
# whether `pass_all' will *always* work, you probably want this one.
4956
lt_cv_deplibs_check_method=pass_all
4960
lt_cv_deplibs_check_method=pass_all
4964
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4965
lt_cv_file_magic_cmd='/usr/bin/file -L'
4966
lt_cv_file_magic_test_file=/shlib/libc.so
4970
# func_win32_libid is a shell function defined in ltmain.sh
4971
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4972
lt_cv_file_magic_cmd='func_win32_libid'
4976
# Base MSYS/MinGW do not provide the 'file' command needed by
4977
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4978
# unless we find 'file', for example because we are cross-compiling.
4979
if ( file / ) >/dev/null 2>&1; then
4980
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4981
lt_cv_file_magic_cmd='func_win32_libid'
4983
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4984
lt_cv_file_magic_cmd='$OBJDUMP -f'
4989
# use the weaker test based on 'objdump'. See mingw*.
4990
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4991
lt_cv_file_magic_cmd='$OBJDUMP -f'
4994
darwin* | rhapsody*)
4995
lt_cv_deplibs_check_method=pass_all
4998
freebsd* | dragonfly*)
4999
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5002
# Not sure whether the presence of OpenBSD here was a mistake.
5003
# Let's accept both of them until this is cleared up.
5004
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5005
lt_cv_file_magic_cmd=/usr/bin/file
5006
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5010
lt_cv_deplibs_check_method=pass_all
5015
lt_cv_deplibs_check_method=pass_all
5018
hpux10.20* | hpux11*)
5019
lt_cv_file_magic_cmd=/usr/bin/file
5022
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5023
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5026
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]'
5027
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5030
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5031
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5037
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5038
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5041
irix5* | irix6* | nonstopux*)
5043
*-32|*"-32 ") libmagic=32-bit;;
5044
*-n32|*"-n32 ") libmagic=N32;;
5045
*-64|*"-64 ") libmagic=64-bit;;
5046
*) libmagic=never-match;;
5048
lt_cv_deplibs_check_method=pass_all
5051
# This must be Linux ELF.
5052
linux* | k*bsd*-gnu)
5053
lt_cv_deplibs_check_method=pass_all
5056
netbsd* | netbsdelf*-gnu)
5057
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5058
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5060
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5065
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5066
lt_cv_file_magic_cmd=/usr/bin/file
5067
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5071
lt_cv_deplibs_check_method=pass_all
5075
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5076
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5078
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5082
osf3* | osf4* | osf5*)
5083
lt_cv_deplibs_check_method=pass_all
5087
lt_cv_deplibs_check_method=pass_all
5091
lt_cv_deplibs_check_method=pass_all
5094
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5095
lt_cv_deplibs_check_method=pass_all
5099
case $host_vendor in
5101
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]'
5102
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5105
lt_cv_deplibs_check_method=pass_all
5108
lt_cv_file_magic_cmd='/bin/file'
5109
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5112
lt_cv_file_magic_cmd='/bin/file'
5113
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5114
lt_cv_file_magic_test_file=/lib/libc.so
5117
lt_cv_deplibs_check_method=pass_all
5120
lt_cv_deplibs_check_method=pass_all
5126
lt_cv_deplibs_check_method=pass_all
5131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5132
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5133
file_magic_cmd=$lt_cv_file_magic_cmd
5134
deplibs_check_method=$lt_cv_deplibs_check_method
5135
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5148
if test -n "$ac_tool_prefix"; then
5149
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5150
set dummy ${ac_tool_prefix}ar; ac_word=$2
5151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152
$as_echo_n "checking for $ac_word... " >&6; }
5153
if test "${ac_cv_prog_AR+set}" = set; then :
5154
$as_echo_n "(cached) " >&6
5156
if test -n "$AR"; then
5157
ac_cv_prog_AR="$AR" # Let the user override the test.
5159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163
test -z "$as_dir" && as_dir=.
5164
for ac_exec_ext in '' $ac_executable_extensions; do
5165
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166
ac_cv_prog_AR="${ac_tool_prefix}ar"
5167
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177
if test -n "$AR"; then
5178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5179
$as_echo "$AR" >&6; }
5181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182
$as_echo "no" >&6; }
5187
if test -z "$ac_cv_prog_AR"; then
5189
# Extract the first word of "ar", so it can be a program name with args.
5190
set dummy ar; ac_word=$2
5191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192
$as_echo_n "checking for $ac_word... " >&6; }
5193
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5194
$as_echo_n "(cached) " >&6
5196
if test -n "$ac_ct_AR"; then
5197
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203
test -z "$as_dir" && as_dir=.
5204
for ac_exec_ext in '' $ac_executable_extensions; do
5205
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206
ac_cv_prog_ac_ct_AR="ar"
5207
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5217
if test -n "$ac_ct_AR"; then
5218
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5219
$as_echo "$ac_ct_AR" >&6; }
5221
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222
$as_echo "no" >&6; }
5225
if test "x$ac_ct_AR" = x; then
5228
case $cross_compiling:$ac_tool_warned in
5230
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5231
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5232
ac_tool_warned=yes ;;
5240
test -z "$AR" && AR=ar
5241
test -z "$AR_FLAGS" && AR_FLAGS=cru
5253
if test -n "$ac_tool_prefix"; then
5254
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5255
set dummy ${ac_tool_prefix}strip; ac_word=$2
5256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257
$as_echo_n "checking for $ac_word... " >&6; }
5258
if test "${ac_cv_prog_STRIP+set}" = set; then :
5259
$as_echo_n "(cached) " >&6
5261
if test -n "$STRIP"; then
5262
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268
test -z "$as_dir" && as_dir=.
5269
for ac_exec_ext in '' $ac_executable_extensions; do
5270
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5272
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281
STRIP=$ac_cv_prog_STRIP
5282
if test -n "$STRIP"; then
5283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5284
$as_echo "$STRIP" >&6; }
5286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287
$as_echo "no" >&6; }
5292
if test -z "$ac_cv_prog_STRIP"; then
5294
# Extract the first word of "strip", so it can be a program name with args.
5295
set dummy strip; ac_word=$2
5296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297
$as_echo_n "checking for $ac_word... " >&6; }
5298
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5299
$as_echo_n "(cached) " >&6
5301
if test -n "$ac_ct_STRIP"; then
5302
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5304
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308
test -z "$as_dir" && as_dir=.
5309
for ac_exec_ext in '' $ac_executable_extensions; do
5310
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311
ac_cv_prog_ac_ct_STRIP="strip"
5312
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5322
if test -n "$ac_ct_STRIP"; then
5323
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5324
$as_echo "$ac_ct_STRIP" >&6; }
5326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327
$as_echo "no" >&6; }
5330
if test "x$ac_ct_STRIP" = x; then
5333
case $cross_compiling:$ac_tool_warned in
5335
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5336
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5337
ac_tool_warned=yes ;;
5342
STRIP="$ac_cv_prog_STRIP"
5345
test -z "$STRIP" && STRIP=:
5352
if test -n "$ac_tool_prefix"; then
5353
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5354
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356
$as_echo_n "checking for $ac_word... " >&6; }
5357
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5358
$as_echo_n "(cached) " >&6
5360
if test -n "$RANLIB"; then
5361
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5363
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367
test -z "$as_dir" && as_dir=.
5368
for ac_exec_ext in '' $ac_executable_extensions; do
5369
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5371
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380
RANLIB=$ac_cv_prog_RANLIB
5381
if test -n "$RANLIB"; then
5382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5383
$as_echo "$RANLIB" >&6; }
5385
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386
$as_echo "no" >&6; }
5391
if test -z "$ac_cv_prog_RANLIB"; then
5392
ac_ct_RANLIB=$RANLIB
5393
# Extract the first word of "ranlib", so it can be a program name with args.
5394
set dummy ranlib; ac_word=$2
5395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396
$as_echo_n "checking for $ac_word... " >&6; }
5397
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5398
$as_echo_n "(cached) " >&6
5400
if test -n "$ac_ct_RANLIB"; then
5401
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5403
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407
test -z "$as_dir" && as_dir=.
5408
for ac_exec_ext in '' $ac_executable_extensions; do
5409
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410
ac_cv_prog_ac_ct_RANLIB="ranlib"
5411
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5421
if test -n "$ac_ct_RANLIB"; then
5422
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5423
$as_echo "$ac_ct_RANLIB" >&6; }
5425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426
$as_echo "no" >&6; }
5429
if test "x$ac_ct_RANLIB" = x; then
5432
case $cross_compiling:$ac_tool_warned in
5434
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5435
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5436
ac_tool_warned=yes ;;
5438
RANLIB=$ac_ct_RANLIB
5441
RANLIB="$ac_cv_prog_RANLIB"
5444
test -z "$RANLIB" && RANLIB=:
5451
# Determine commands to create old-style static archives.
5452
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5453
old_postinstall_cmds='chmod 644 $oldlib'
5454
old_postuninstall_cmds=
5456
if test -n "$RANLIB"; then
5459
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5462
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5465
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5501
# If no C compiler was specified, use CC.
5504
# If no C compiler flags were specified, use CFLAGS.
5505
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5507
# Allow CC to be a program name with arguments.
5511
# Check for command to grab the raw symbol name followed by C symbol from nm.
5512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5513
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5514
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5515
$as_echo_n "(cached) " >&6
5518
# These are sane defaults that work on at least a few old systems.
5519
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5521
# Character class describing NM global symbol codes.
5522
symcode='[BCDEGRST]'
5524
# Regexp to match symbols that can be accessed directly from C.
5525
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5527
# Define system-specific variables.
5532
cygwin* | mingw* | pw32* | cegcc*)
5533
symcode='[ABCDGISTW]'
5536
if test "$host_cpu" = ia64; then
5537
symcode='[ABCDEGRST]'
5541
symcode='[BCDEGRST]'
5544
symcode='[BCDEGQRST]'
5555
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5563
# If we're using GNU nm, then use its standard symbol codes.
5564
case `$NM -V 2>&1` in
5565
*GNU* | *'with BFD'*)
5566
symcode='[ABCDGIRSTW]' ;;
5569
# Transform an extracted symbol line into a proper C declaration.
5570
# Some systems (esp. on ia64) link data and code symbols differently,
5571
# so use this general approach.
5572
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5574
# Transform an extracted symbol line into symbol name and symbol address
5575
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5576
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5578
# Handle CRLF in mingw tool chain
5582
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5586
# Try without a prefix underscore, then with it.
5587
for ac_symprfx in "" "_"; do
5589
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5590
symxfrm="\\1 $ac_symprfx\\2 \\2"
5592
# Write the raw and C identifiers.
5593
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5594
# Fake it for dumpbin and say T for any non-static function
5595
# and D for any global variable.
5596
# Also find C++ and __fastcall symbols from MSVC++,
5597
# which start with @ or ?.
5598
lt_cv_sys_global_symbol_pipe="$AWK '"\
5599
" {last_section=section; section=\$ 3};"\
5600
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5601
" \$ 0!~/External *\|/{next};"\
5602
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5603
" {if(hide[section]) next};"\
5604
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5605
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5606
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5607
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5608
" ' prfx=^$ac_symprfx"
5610
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5613
# Check to see that the pipe works correctly.
5617
cat > conftest.$ac_ext <<_LT_EOF
5622
void nm_test_func(void);
5623
void nm_test_func(void){}
5627
int main(){nm_test_var='a';nm_test_func();return(0);}
5630
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5631
(eval $ac_compile) 2>&5
5633
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5634
test $ac_status = 0; }; then
5635
# Now try to grab the symbols.
5637
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5638
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5640
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5641
test $ac_status = 0; } && test -s "$nlist"; then
5642
# Try sorting and uniquifying the output.
5643
if sort "$nlist" | uniq > "$nlist"T; then
5644
mv -f "$nlist"T "$nlist"
5649
# Make sure that we snagged all the symbols we need.
5650
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5651
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5652
cat <<_LT_EOF > conftest.$ac_ext
5658
# Now generate the symbol file.
5659
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5661
cat <<_LT_EOF >> conftest.$ac_ext
5663
/* The mapping between symbol names and symbols. */
5668
lt__PROGRAM__LTX_preloaded_symbols[] =
5670
{ "@PROGRAM@", (void *) 0 },
5672
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5673
cat <<\_LT_EOF >> conftest.$ac_ext
5677
/* This works around a problem in FreeBSD linker */
5678
#ifdef FREEBSD_WORKAROUND
5679
static const void *lt_preloaded_setup() {
5680
return lt__PROGRAM__LTX_preloaded_symbols;
5688
# Now try linking the two files.
5689
mv conftest.$ac_objext conftstm.$ac_objext
5690
lt_save_LIBS="$LIBS"
5691
lt_save_CFLAGS="$CFLAGS"
5692
LIBS="conftstm.$ac_objext"
5693
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5694
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5695
(eval $ac_link) 2>&5
5697
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5698
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5701
LIBS="$lt_save_LIBS"
5702
CFLAGS="$lt_save_CFLAGS"
5704
echo "cannot find nm_test_func in $nlist" >&5
5707
echo "cannot find nm_test_var in $nlist" >&5
5710
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5713
echo "$progname: failed program was:" >&5
5714
cat conftest.$ac_ext >&5
5716
rm -rf conftest* conftst*
5718
# Do not use the global_symbol_pipe unless it works.
5719
if test "$pipe_works" = yes; then
5722
lt_cv_sys_global_symbol_pipe=
5728
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5729
lt_cv_sys_global_symbol_to_cdecl=
5731
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5733
$as_echo "failed" >&6; }
5735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5736
$as_echo "ok" >&6; }
5761
# Check whether --enable-libtool-lock was given.
5762
if test "${enable_libtool_lock+set}" = set; then :
5763
enableval=$enable_libtool_lock;
5766
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5768
# Some flags need to be propagated to the compiler or linker for good
5772
# Find out which ABI we are using.
5773
echo 'int i;' > conftest.$ac_ext
5774
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5775
(eval $ac_compile) 2>&5
5777
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5778
test $ac_status = 0; }; then
5779
case `/usr/bin/file conftest.$ac_objext` in
5791
# Find out which ABI we are using.
5792
echo '#line 5792 "configure"' > conftest.$ac_ext
5793
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5794
(eval $ac_compile) 2>&5
5796
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5797
test $ac_status = 0; }; then
5798
if test "$lt_cv_prog_gnu_ld" = yes; then
5799
case `/usr/bin/file conftest.$ac_objext` in
5801
LD="${LD-ld} -melf32bsmip"
5804
LD="${LD-ld} -melf32bmipn32"
5807
LD="${LD-ld} -melf64bmip"
5811
case `/usr/bin/file conftest.$ac_objext` in
5827
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5828
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5829
# Find out which ABI we are using.
5830
echo 'int i;' > conftest.$ac_ext
5831
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5832
(eval $ac_compile) 2>&5
5834
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5835
test $ac_status = 0; }; then
5836
case `/usr/bin/file conftest.o` in
5839
x86_64-*kfreebsd*-gnu)
5840
LD="${LD-ld} -m elf_i386_fbsd"
5843
LD="${LD-ld} -m elf_i386"
5845
ppc64-*linux*|powerpc64-*linux*)
5846
LD="${LD-ld} -m elf32ppclinux"
5849
LD="${LD-ld} -m elf_s390"
5852
LD="${LD-ld} -m elf32_sparc"
5858
x86_64-*kfreebsd*-gnu)
5859
LD="${LD-ld} -m elf_x86_64_fbsd"
5862
LD="${LD-ld} -m elf_x86_64"
5864
ppc*-*linux*|powerpc*-*linux*)
5865
LD="${LD-ld} -m elf64ppc"
5867
s390*-*linux*|s390*-*tpf*)
5868
LD="${LD-ld} -m elf64_s390"
5871
LD="${LD-ld} -m elf64_sparc"
5881
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5882
SAVE_CFLAGS="$CFLAGS"
5883
CFLAGS="$CFLAGS -belf"
5884
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5885
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5886
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5887
$as_echo_n "(cached) " >&6
5890
ac_cpp='$CPP $CPPFLAGS'
5891
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5895
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896
/* end confdefs.h. */
5906
if ac_fn_c_try_link "$LINENO"; then :
5907
lt_cv_cc_needs_belf=yes
5909
lt_cv_cc_needs_belf=no
5911
rm -f core conftest.err conftest.$ac_objext \
5912
conftest$ac_exeext conftest.$ac_ext
5914
ac_cpp='$CPP $CPPFLAGS'
5915
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5916
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5917
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5921
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5922
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5923
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5924
CFLAGS="$SAVE_CFLAGS"
5928
# Find out which ABI we are using.
5929
echo 'int i;' > conftest.$ac_ext
5930
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5931
(eval $ac_compile) 2>&5
5933
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5934
test $ac_status = 0; }; then
5935
case `/usr/bin/file conftest.o` in
5937
case $lt_cv_prog_gnu_ld in
5938
yes*) LD="${LD-ld} -m elf64_sparc" ;;
5940
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5952
need_locks="$enable_libtool_lock"
5956
rhapsody* | darwin*)
5957
if test -n "$ac_tool_prefix"; then
5958
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5959
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5960
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961
$as_echo_n "checking for $ac_word... " >&6; }
5962
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5963
$as_echo_n "(cached) " >&6
5965
if test -n "$DSYMUTIL"; then
5966
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5968
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972
test -z "$as_dir" && as_dir=.
5973
for ac_exec_ext in '' $ac_executable_extensions; do
5974
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5976
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5986
if test -n "$DSYMUTIL"; then
5987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5988
$as_echo "$DSYMUTIL" >&6; }
5990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991
$as_echo "no" >&6; }
5996
if test -z "$ac_cv_prog_DSYMUTIL"; then
5997
ac_ct_DSYMUTIL=$DSYMUTIL
5998
# Extract the first word of "dsymutil", so it can be a program name with args.
5999
set dummy dsymutil; ac_word=$2
6000
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001
$as_echo_n "checking for $ac_word... " >&6; }
6002
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6003
$as_echo_n "(cached) " >&6
6005
if test -n "$ac_ct_DSYMUTIL"; then
6006
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012
test -z "$as_dir" && as_dir=.
6013
for ac_exec_ext in '' $ac_executable_extensions; do
6014
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6016
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6026
if test -n "$ac_ct_DSYMUTIL"; then
6027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6028
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6030
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031
$as_echo "no" >&6; }
6034
if test "x$ac_ct_DSYMUTIL" = x; then
6037
case $cross_compiling:$ac_tool_warned in
6039
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6040
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6041
ac_tool_warned=yes ;;
6043
DSYMUTIL=$ac_ct_DSYMUTIL
6046
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6049
if test -n "$ac_tool_prefix"; then
6050
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6051
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053
$as_echo_n "checking for $ac_word... " >&6; }
6054
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6055
$as_echo_n "(cached) " >&6
6057
if test -n "$NMEDIT"; then
6058
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6060
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064
test -z "$as_dir" && as_dir=.
6065
for ac_exec_ext in '' $ac_executable_extensions; do
6066
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6067
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6068
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077
NMEDIT=$ac_cv_prog_NMEDIT
6078
if test -n "$NMEDIT"; then
6079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6080
$as_echo "$NMEDIT" >&6; }
6082
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083
$as_echo "no" >&6; }
6088
if test -z "$ac_cv_prog_NMEDIT"; then
6089
ac_ct_NMEDIT=$NMEDIT
6090
# Extract the first word of "nmedit", so it can be a program name with args.
6091
set dummy nmedit; ac_word=$2
6092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093
$as_echo_n "checking for $ac_word... " >&6; }
6094
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6095
$as_echo_n "(cached) " >&6
6097
if test -n "$ac_ct_NMEDIT"; then
6098
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6100
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104
test -z "$as_dir" && as_dir=.
6105
for ac_exec_ext in '' $ac_executable_extensions; do
6106
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6107
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6108
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6118
if test -n "$ac_ct_NMEDIT"; then
6119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6120
$as_echo "$ac_ct_NMEDIT" >&6; }
6122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123
$as_echo "no" >&6; }
6126
if test "x$ac_ct_NMEDIT" = x; then
6129
case $cross_compiling:$ac_tool_warned in
6131
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6132
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6133
ac_tool_warned=yes ;;
6135
NMEDIT=$ac_ct_NMEDIT
6138
NMEDIT="$ac_cv_prog_NMEDIT"
6141
if test -n "$ac_tool_prefix"; then
6142
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6143
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6144
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145
$as_echo_n "checking for $ac_word... " >&6; }
6146
if test "${ac_cv_prog_LIPO+set}" = set; then :
6147
$as_echo_n "(cached) " >&6
6149
if test -n "$LIPO"; then
6150
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6152
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156
test -z "$as_dir" && as_dir=.
6157
for ac_exec_ext in '' $ac_executable_extensions; do
6158
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6160
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169
LIPO=$ac_cv_prog_LIPO
6170
if test -n "$LIPO"; then
6171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6172
$as_echo "$LIPO" >&6; }
6174
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175
$as_echo "no" >&6; }
6180
if test -z "$ac_cv_prog_LIPO"; then
6182
# Extract the first word of "lipo", so it can be a program name with args.
6183
set dummy lipo; ac_word=$2
6184
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185
$as_echo_n "checking for $ac_word... " >&6; }
6186
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6187
$as_echo_n "(cached) " >&6
6189
if test -n "$ac_ct_LIPO"; then
6190
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6192
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196
test -z "$as_dir" && as_dir=.
6197
for ac_exec_ext in '' $ac_executable_extensions; do
6198
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199
ac_cv_prog_ac_ct_LIPO="lipo"
6200
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6210
if test -n "$ac_ct_LIPO"; then
6211
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6212
$as_echo "$ac_ct_LIPO" >&6; }
6214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215
$as_echo "no" >&6; }
6218
if test "x$ac_ct_LIPO" = x; then
6221
case $cross_compiling:$ac_tool_warned in
6223
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225
ac_tool_warned=yes ;;
6230
LIPO="$ac_cv_prog_LIPO"
6233
if test -n "$ac_tool_prefix"; then
6234
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6235
set dummy ${ac_tool_prefix}otool; ac_word=$2
6236
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237
$as_echo_n "checking for $ac_word... " >&6; }
6238
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6239
$as_echo_n "(cached) " >&6
6241
if test -n "$OTOOL"; then
6242
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6244
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248
test -z "$as_dir" && as_dir=.
6249
for ac_exec_ext in '' $ac_executable_extensions; do
6250
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6251
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6252
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261
OTOOL=$ac_cv_prog_OTOOL
6262
if test -n "$OTOOL"; then
6263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6264
$as_echo "$OTOOL" >&6; }
6266
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267
$as_echo "no" >&6; }
6272
if test -z "$ac_cv_prog_OTOOL"; then
6274
# Extract the first word of "otool", so it can be a program name with args.
6275
set dummy otool; ac_word=$2
6276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277
$as_echo_n "checking for $ac_word... " >&6; }
6278
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6279
$as_echo_n "(cached) " >&6
6281
if test -n "$ac_ct_OTOOL"; then
6282
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6284
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288
test -z "$as_dir" && as_dir=.
6289
for ac_exec_ext in '' $ac_executable_extensions; do
6290
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291
ac_cv_prog_ac_ct_OTOOL="otool"
6292
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6302
if test -n "$ac_ct_OTOOL"; then
6303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6304
$as_echo "$ac_ct_OTOOL" >&6; }
6306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307
$as_echo "no" >&6; }
6310
if test "x$ac_ct_OTOOL" = x; then
6313
case $cross_compiling:$ac_tool_warned in
6315
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6316
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6317
ac_tool_warned=yes ;;
6322
OTOOL="$ac_cv_prog_OTOOL"
6325
if test -n "$ac_tool_prefix"; then
6326
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6327
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329
$as_echo_n "checking for $ac_word... " >&6; }
6330
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6331
$as_echo_n "(cached) " >&6
6333
if test -n "$OTOOL64"; then
6334
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340
test -z "$as_dir" && as_dir=.
6341
for ac_exec_ext in '' $ac_executable_extensions; do
6342
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6343
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6344
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353
OTOOL64=$ac_cv_prog_OTOOL64
6354
if test -n "$OTOOL64"; then
6355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6356
$as_echo "$OTOOL64" >&6; }
6358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359
$as_echo "no" >&6; }
6364
if test -z "$ac_cv_prog_OTOOL64"; then
6365
ac_ct_OTOOL64=$OTOOL64
6366
# Extract the first word of "otool64", so it can be a program name with args.
6367
set dummy otool64; ac_word=$2
6368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369
$as_echo_n "checking for $ac_word... " >&6; }
6370
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6371
$as_echo_n "(cached) " >&6
6373
if test -n "$ac_ct_OTOOL64"; then
6374
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380
test -z "$as_dir" && as_dir=.
6381
for ac_exec_ext in '' $ac_executable_extensions; do
6382
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6383
ac_cv_prog_ac_ct_OTOOL64="otool64"
6384
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6393
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6394
if test -n "$ac_ct_OTOOL64"; then
6395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6396
$as_echo "$ac_ct_OTOOL64" >&6; }
6398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399
$as_echo "no" >&6; }
6402
if test "x$ac_ct_OTOOL64" = x; then
6405
case $cross_compiling:$ac_tool_warned in
6407
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6408
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6409
ac_tool_warned=yes ;;
6411
OTOOL64=$ac_ct_OTOOL64
6414
OTOOL64="$ac_cv_prog_OTOOL64"
6443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6444
$as_echo_n "checking for -single_module linker flag... " >&6; }
6445
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6446
$as_echo_n "(cached) " >&6
6448
lt_cv_apple_cc_single_mod=no
6449
if test -z "${LT_MULTI_MODULE}"; then
6450
# By default we will add the -single_module flag. You can override
6451
# by either setting the environment variable LT_MULTI_MODULE
6452
# non-empty at configure time, or by adding -multi_module to the
6454
rm -rf libconftest.dylib*
6455
echo "int foo(void){return 1;}" > conftest.c
6456
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6457
-dynamiclib -Wl,-single_module conftest.c" >&5
6458
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6459
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6461
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6462
lt_cv_apple_cc_single_mod=yes
6464
cat conftest.err >&5
6466
rm -rf libconftest.dylib*
6470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6471
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6473
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6474
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6475
$as_echo_n "(cached) " >&6
6477
lt_cv_ld_exported_symbols_list=no
6478
save_LDFLAGS=$LDFLAGS
6479
echo "_main" > conftest.sym
6480
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6481
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482
/* end confdefs.h. */
6492
if ac_fn_c_try_link "$LINENO"; then :
6493
lt_cv_ld_exported_symbols_list=yes
6495
lt_cv_ld_exported_symbols_list=no
6497
rm -f core conftest.err conftest.$ac_objext \
6498
conftest$ac_exeext conftest.$ac_ext
6499
LDFLAGS="$save_LDFLAGS"
6502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6503
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6505
rhapsody* | darwin1.[012])
6506
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6508
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6509
darwin*) # darwin 5.x on
6510
# if running on 10.5 or later, the deployment target defaults
6511
# to the OS version, if on x86, and 10.4, the deployment
6512
# target defaults to 10.4. Don't you love it?
6513
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6514
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6515
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6517
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6519
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6523
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6524
_lt_dar_single_mod='$single_module'
6526
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6527
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6529
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6531
if test "$DSYMUTIL" != ":"; then
6532
_lt_dsymutil='~$DSYMUTIL $lib || :'
6540
ac_cpp='$CPP $CPPFLAGS'
6541
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6542
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6543
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6545
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6546
# On Suns, sometimes $CPP names a directory.
6547
if test -n "$CPP" && test -d "$CPP"; then
6550
if test -z "$CPP"; then
6551
if test "${ac_cv_prog_CPP+set}" = set; then :
6552
$as_echo_n "(cached) " >&6
6554
# Double quotes because CPP needs to be expanded
6555
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6558
for ac_c_preproc_warn_flag in '' yes
6560
# Use a header file that comes with gcc, so configuring glibc
6561
# with a fresh cross-compiler works.
6562
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6563
# <limits.h> exists even on freestanding compilers.
6564
# On the NeXT, cc -E runs the code through the compiler's parser,
6565
# not just through cpp. "Syntax error" is here to catch this case.
6566
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567
/* end confdefs.h. */
6569
# include <limits.h>
6571
# include <assert.h>
6575
if ac_fn_c_try_cpp "$LINENO"; then :
6578
# Broken: fails on valid input.
6581
rm -f conftest.err conftest.$ac_ext
6583
# OK, works on sane cases. Now check whether nonexistent headers
6584
# can be detected and how.
6585
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586
/* end confdefs.h. */
6587
#include <ac_nonexistent.h>
6589
if ac_fn_c_try_cpp "$LINENO"; then :
6590
# Broken: success on invalid input.
6593
# Passes both tests.
6597
rm -f conftest.err conftest.$ac_ext
6600
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6601
rm -f conftest.err conftest.$ac_ext
6602
if $ac_preproc_ok; then :
6614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6615
$as_echo "$CPP" >&6; }
6617
for ac_c_preproc_warn_flag in '' yes
6619
# Use a header file that comes with gcc, so configuring glibc
6620
# with a fresh cross-compiler works.
6621
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6622
# <limits.h> exists even on freestanding compilers.
6623
# On the NeXT, cc -E runs the code through the compiler's parser,
6624
# not just through cpp. "Syntax error" is here to catch this case.
6625
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626
/* end confdefs.h. */
6628
# include <limits.h>
6630
# include <assert.h>
6634
if ac_fn_c_try_cpp "$LINENO"; then :
6637
# Broken: fails on valid input.
6640
rm -f conftest.err conftest.$ac_ext
6642
# OK, works on sane cases. Now check whether nonexistent headers
6643
# can be detected and how.
6644
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645
/* end confdefs.h. */
6646
#include <ac_nonexistent.h>
6648
if ac_fn_c_try_cpp "$LINENO"; then :
6649
# Broken: success on invalid input.
6652
# Passes both tests.
6656
rm -f conftest.err conftest.$ac_ext
6659
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6660
rm -f conftest.err conftest.$ac_ext
6661
if $ac_preproc_ok; then :
6664
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6665
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6666
as_fn_error "C preprocessor \"$CPP\" fails sanity check
6667
See \`config.log' for more details." "$LINENO" 5; }
6671
ac_cpp='$CPP $CPPFLAGS'
6672
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6673
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6674
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6678
$as_echo_n "checking for ANSI C header files... " >&6; }
6679
if test "${ac_cv_header_stdc+set}" = set; then :
6680
$as_echo_n "(cached) " >&6
6682
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683
/* end confdefs.h. */
6697
if ac_fn_c_try_compile "$LINENO"; then :
6698
ac_cv_header_stdc=yes
6700
ac_cv_header_stdc=no
6702
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704
if test $ac_cv_header_stdc = yes; then
6705
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6706
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707
/* end confdefs.h. */
6711
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6712
$EGREP "memchr" >/dev/null 2>&1; then :
6715
ac_cv_header_stdc=no
6721
if test $ac_cv_header_stdc = yes; then
6722
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6723
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724
/* end confdefs.h. */
6728
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6729
$EGREP "free" >/dev/null 2>&1; then :
6732
ac_cv_header_stdc=no
6738
if test $ac_cv_header_stdc = yes; then
6739
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6740
if test "$cross_compiling" = yes; then :
6743
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744
/* end confdefs.h. */
6747
#if ((' ' & 0x0FF) == 0x020)
6748
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6749
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6751
# define ISLOWER(c) \
6752
(('a' <= (c) && (c) <= 'i') \
6753
|| ('j' <= (c) && (c) <= 'r') \
6754
|| ('s' <= (c) && (c) <= 'z'))
6755
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6758
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6763
for (i = 0; i < 256; i++)
6764
if (XOR (islower (i), ISLOWER (i))
6765
|| toupper (i) != TOUPPER (i))
6770
if ac_fn_c_try_run "$LINENO"; then :
6773
ac_cv_header_stdc=no
6775
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6776
conftest.$ac_objext conftest.beam conftest.$ac_ext
6781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6782
$as_echo "$ac_cv_header_stdc" >&6; }
6783
if test $ac_cv_header_stdc = yes; then
6785
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6789
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6790
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6791
inttypes.h stdint.h unistd.h
6793
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6794
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6796
eval as_val=\$$as_ac_Header
6797
if test "x$as_val" = x""yes; then :
6798
cat >>confdefs.h <<_ACEOF
6799
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6807
for ac_header in dlfcn.h
6809
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6811
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6812
cat >>confdefs.h <<_ACEOF
6813
#define HAVE_DLFCN_H 1
6832
# Check whether --enable-shared was given.
6833
if test "${enable_shared+set}" = set; then :
6834
enableval=$enable_shared; p=${PACKAGE-default}
6836
yes) enable_shared=yes ;;
6837
no) enable_shared=no ;;
6840
# Look at the argument we got. We use all the common list separators.
6841
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6842
for pkg in $enableval; do
6844
if test "X$pkg" = "X$p"; then
6863
# Check whether --enable-static was given.
6864
if test "${enable_static+set}" = set; then :
6865
enableval=$enable_static; p=${PACKAGE-default}
6867
yes) enable_static=yes ;;
6868
no) enable_static=no ;;
6871
# Look at the argument we got. We use all the common list separators.
6872
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6873
for pkg in $enableval; do
6875
if test "X$pkg" = "X$p"; then
6895
# Check whether --with-pic was given.
6896
if test "${with_pic+set}" = set; then :
6897
withval=$with_pic; pic_mode="$withval"
6903
test -z "$pic_mode" && pic_mode=default
6911
# Check whether --enable-fast-install was given.
6912
if test "${enable_fast_install+set}" = set; then :
6913
enableval=$enable_fast_install; p=${PACKAGE-default}
6915
yes) enable_fast_install=yes ;;
6916
no) enable_fast_install=no ;;
6918
enable_fast_install=no
6919
# Look at the argument we got. We use all the common list separators.
6920
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6921
for pkg in $enableval; do
6923
if test "X$pkg" = "X$p"; then
6924
enable_fast_install=yes
6931
enable_fast_install=yes
6944
# This can be used to rebuild libtool when needed
6945
LIBTOOL_DEPS="$ltmain"
6947
# Always use our own libtool.
6948
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6974
test -z "$LN_S" && LN_S="ln -s"
6989
if test -n "${ZSH_VERSION+set}" ; then
6990
setopt NO_GLOB_SUBST
6993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6994
$as_echo_n "checking for objdir... " >&6; }
6995
if test "${lt_cv_objdir+set}" = set; then :
6996
$as_echo_n "(cached) " >&6
6998
rm -f .libs 2>/dev/null
6999
mkdir .libs 2>/dev/null
7000
if test -d .libs; then
7003
# MS-DOS does not allow filenames that begin with a dot.
7006
rmdir .libs 2>/dev/null
7008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7009
$as_echo "$lt_cv_objdir" >&6; }
7010
objdir=$lt_cv_objdir
7016
cat >>confdefs.h <<_ACEOF
7017
#define LT_OBJDIR "$lt_cv_objdir/"
7038
# AIX sometimes has problems with the GCC collect2 program. For some
7039
# reason, if we set the COLLECT_NAMES environment variable, the problems
7040
# vanish in a puff of smoke.
7041
if test "X${COLLECT_NAMES+set}" != Xset; then
7043
export COLLECT_NAMES
7048
# Sed substitution that helps us do robust quoting. It backslashifies
7049
# metacharacters that are still active within double-quoted strings.
7050
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7052
# Same as above, but do not quote variable references.
7053
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7055
# Sed substitution to delay expansion of an escaped shell variable in a
7056
# double_quote_subst'ed string.
7057
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7059
# Sed substitution to delay expansion of an escaped single quote.
7060
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7062
# Sed substitution to avoid accidental globbing in evaled expressions
7063
no_glob_subst='s/\*/\\\*/g'
7067
can_build_shared=yes
7069
# All known linkers require a `.a' archive for static linking (except MSVC,
7070
# which needs '.lib').
7073
with_gnu_ld="$lt_cv_prog_gnu_ld"
7076
old_CFLAGS="$CFLAGS"
7078
# Set sane defaults for various variables
7079
test -z "$CC" && CC=cc
7080
test -z "$LTCC" && LTCC=$CC
7081
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7082
test -z "$LD" && LD=ld
7083
test -z "$ac_objext" && ac_objext=o
7085
for cc_temp in $compiler""; do
7087
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7088
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7093
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7096
# Only perform the check for file, if the check method requires it
7097
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7098
case $deplibs_check_method in
7100
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7102
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7103
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7104
$as_echo_n "(cached) " >&6
7108
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7111
lt_save_MAGIC_CMD="$MAGIC_CMD"
7112
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7113
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7114
for ac_dir in $ac_dummy; do
7116
test -z "$ac_dir" && ac_dir=.
7117
if test -f $ac_dir/${ac_tool_prefix}file; then
7118
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7119
if test -n "$file_magic_test_file"; then
7120
case $deplibs_check_method in
7122
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7123
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7124
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7125
$EGREP "$file_magic_regex" > /dev/null; then
7130
*** Warning: the command libtool uses to detect shared libraries,
7131
*** $file_magic_cmd, produces output that libtool cannot recognize.
7132
*** The result is that libtool may fail to recognize shared libraries
7133
*** as such. This will affect the creation of libtool libraries that
7134
*** depend on shared libraries, but programs linked with such libtool
7135
*** libraries will work regardless of this problem. Nevertheless, you
7136
*** may want to report the problem to your system manager and/or to
7137
*** bug-libtool@gnu.org
7147
MAGIC_CMD="$lt_save_MAGIC_CMD"
7152
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7153
if test -n "$MAGIC_CMD"; then
7154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7155
$as_echo "$MAGIC_CMD" >&6; }
7157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158
$as_echo "no" >&6; }
7165
if test -z "$lt_cv_path_MAGIC_CMD"; then
7166
if test -n "$ac_tool_prefix"; then
7167
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7168
$as_echo_n "checking for file... " >&6; }
7169
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7170
$as_echo_n "(cached) " >&6
7174
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7177
lt_save_MAGIC_CMD="$MAGIC_CMD"
7178
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7179
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7180
for ac_dir in $ac_dummy; do
7182
test -z "$ac_dir" && ac_dir=.
7183
if test -f $ac_dir/file; then
7184
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7185
if test -n "$file_magic_test_file"; then
7186
case $deplibs_check_method in
7188
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7189
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7190
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7191
$EGREP "$file_magic_regex" > /dev/null; then
7196
*** Warning: the command libtool uses to detect shared libraries,
7197
*** $file_magic_cmd, produces output that libtool cannot recognize.
7198
*** The result is that libtool may fail to recognize shared libraries
7199
*** as such. This will affect the creation of libtool libraries that
7200
*** depend on shared libraries, but programs linked with such libtool
7201
*** libraries will work regardless of this problem. Nevertheless, you
7202
*** may want to report the problem to your system manager and/or to
7203
*** bug-libtool@gnu.org
7213
MAGIC_CMD="$lt_save_MAGIC_CMD"
7218
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7219
if test -n "$MAGIC_CMD"; then
7220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7221
$as_echo "$MAGIC_CMD" >&6; }
7223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224
$as_echo "no" >&6; }
7237
# Use C for the default configuration in the libtool script
7241
ac_cpp='$CPP $CPPFLAGS'
7242
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7247
# Source file extension for C test sources.
7250
# Object file extension for compiled C test sources.
7254
# Code to be used in simple compile tests
7255
lt_simple_compile_test_code="int some_variable = 0;"
7257
# Code to be used in simple link tests
7258
lt_simple_link_test_code='int main(){return(0);}'
7266
# If no C compiler was specified, use CC.
7269
# If no C compiler flags were specified, use CFLAGS.
7270
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7272
# Allow CC to be a program name with arguments.
7275
# Save the default compiler, since it gets overwritten when the other
7276
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7277
compiler_DEFAULT=$CC
7279
# save warnings/boilerplate of simple test code
7280
ac_outfile=conftest.$ac_objext
7281
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7282
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7283
_lt_compiler_boilerplate=`cat conftest.err`
7286
ac_outfile=conftest.$ac_objext
7287
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7288
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7289
_lt_linker_boilerplate=`cat conftest.err`
7294
## There is no encapsulation within the following macros, do not change
7295
## the running order or otherwise move them around unless you know exactly
7296
## what you are doing...
7297
if test -n "$compiler"; then
7299
lt_prog_compiler_no_builtin_flag=
7301
if test "$GCC" = yes; then
7302
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7305
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7306
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7307
$as_echo_n "(cached) " >&6
7309
lt_cv_prog_compiler_rtti_exceptions=no
7310
ac_outfile=conftest.$ac_objext
7311
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7312
lt_compiler_flag="-fno-rtti -fno-exceptions"
7313
# Insert the option either (1) after the last *FLAGS variable, or
7314
# (2) before a word containing "conftest.", or (3) at the end.
7315
# Note that $ac_compile itself does not contain backslashes and begins
7316
# with a dollar sign (not a hyphen), so the echo should work correctly.
7317
# The option is referenced via a variable to avoid confusing sed.
7318
lt_compile=`echo "$ac_compile" | $SED \
7319
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7320
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7321
-e 's:$: $lt_compiler_flag:'`
7322
(eval echo "\"\$as_me:7322: $lt_compile\"" >&5)
7323
(eval "$lt_compile" 2>conftest.err)
7325
cat conftest.err >&5
7326
echo "$as_me:7326: \$? = $ac_status" >&5
7327
if (exit $ac_status) && test -s "$ac_outfile"; then
7328
# The compiler can only warn and ignore the option if not recognized
7329
# So say no if there are warnings other than the usual output.
7330
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7331
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7332
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7333
lt_cv_prog_compiler_rtti_exceptions=yes
7339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7340
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7342
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7343
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7355
lt_prog_compiler_wl=
7356
lt_prog_compiler_pic=
7357
lt_prog_compiler_static=
7359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7360
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7362
if test "$GCC" = yes; then
7363
lt_prog_compiler_wl='-Wl,'
7364
lt_prog_compiler_static='-static'
7368
# All AIX code is PIC.
7369
if test "$host_cpu" = ia64; then
7370
# AIX 5 now supports IA64 processor
7371
lt_prog_compiler_static='-Bstatic'
7378
# see comment about AmigaOS4 .so support
7379
lt_prog_compiler_pic='-fPIC'
7382
# FIXME: we need at least 68020 code to build shared libraries, but
7383
# adding the `-m68020' flag to GCC prevents building anything better,
7385
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7390
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7391
# PIC is the default for these OSes.
7394
mingw* | cygwin* | pw32* | os2* | cegcc*)
7395
# This hack is so that the source file can tell whether it is being
7396
# built for inclusion in a dll (and should export symbols for example).
7397
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7398
# (--disable-auto-import) libraries
7399
lt_prog_compiler_pic='-DDLL_EXPORT'
7402
darwin* | rhapsody*)
7403
# PIC is the default on this platform
7404
# Common symbols not allowed in MH_DYLIB files
7405
lt_prog_compiler_pic='-fno-common'
7409
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7410
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7411
# sets the default TLS model and affects inlining.
7417
lt_prog_compiler_pic='-fPIC'
7423
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7424
# Instead, we relocate shared libraries at runtime.
7428
# Just because we use GCC doesn't mean we suddenly get shared libraries
7429
# on systems that don't support them.
7430
lt_prog_compiler_can_build_shared=no
7435
# QNX uses GNU C++, but need to define -shared option too, otherwise
7437
lt_prog_compiler_pic='-fPIC -shared'
7441
if test -d /usr/nec; then
7442
lt_prog_compiler_pic=-Kconform_pic
7447
lt_prog_compiler_pic='-fPIC'
7451
# PORTME Check for flag to pass linker flags through the system compiler.
7454
lt_prog_compiler_wl='-Wl,'
7455
if test "$host_cpu" = ia64; then
7456
# AIX 5 now supports IA64 processor
7457
lt_prog_compiler_static='-Bstatic'
7459
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7463
mingw* | cygwin* | pw32* | os2* | cegcc*)
7464
# This hack is so that the source file can tell whether it is being
7465
# built for inclusion in a dll (and should export symbols for example).
7466
lt_prog_compiler_pic='-DDLL_EXPORT'
7469
hpux9* | hpux10* | hpux11*)
7470
lt_prog_compiler_wl='-Wl,'
7471
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7478
lt_prog_compiler_pic='+Z'
7481
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7482
lt_prog_compiler_static='${wl}-a ${wl}archive'
7485
irix5* | irix6* | nonstopux*)
7486
lt_prog_compiler_wl='-Wl,'
7487
# PIC (with -KPIC) is the default.
7488
lt_prog_compiler_static='-non_shared'
7491
linux* | k*bsd*-gnu)
7492
case $cc_basename in
7493
# old Intel for x86_64 which still supported -KPIC.
7495
lt_prog_compiler_wl='-Wl,'
7496
lt_prog_compiler_pic='-KPIC'
7497
lt_prog_compiler_static='-static'
7499
# icc used to be incompatible with GCC.
7500
# ICC 10 doesn't accept -KPIC any more.
7502
lt_prog_compiler_wl='-Wl,'
7503
lt_prog_compiler_pic='-fPIC'
7504
lt_prog_compiler_static='-static'
7506
# Lahey Fortran 8.1.
7508
lt_prog_compiler_wl='-Wl,'
7509
lt_prog_compiler_pic='--shared'
7510
lt_prog_compiler_static='--static'
7512
pgcc* | pgf77* | pgf90* | pgf95*)
7513
# Portland Group compilers (*not* the Pentium gcc compiler,
7514
# which looks to be a dead project)
7515
lt_prog_compiler_wl='-Wl,'
7516
lt_prog_compiler_pic='-fpic'
7517
lt_prog_compiler_static='-Bstatic'
7520
lt_prog_compiler_wl='-Wl,'
7521
# All Alpha code is PIC.
7522
lt_prog_compiler_static='-non_shared'
7525
# IBM XL C 8.0/Fortran 10.1 on PPC
7526
lt_prog_compiler_wl='-Wl,'
7527
lt_prog_compiler_pic='-qpic'
7528
lt_prog_compiler_static='-qstaticlink'
7531
case `$CC -V 2>&1 | sed 5q` in
7534
lt_prog_compiler_pic='-KPIC'
7535
lt_prog_compiler_static='-Bstatic'
7536
lt_prog_compiler_wl='-Wl,'
7539
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7540
lt_prog_compiler_pic='-KPIC'
7541
lt_prog_compiler_static='-Bstatic'
7542
lt_prog_compiler_wl=''
7550
lt_prog_compiler_pic='-KPIC'
7551
lt_prog_compiler_static='-Bstatic'
7555
# QNX uses GNU C++, but need to define -shared option too, otherwise
7557
lt_prog_compiler_pic='-fPIC -shared'
7560
osf3* | osf4* | osf5*)
7561
lt_prog_compiler_wl='-Wl,'
7562
# All OSF/1 code is PIC.
7563
lt_prog_compiler_static='-non_shared'
7567
lt_prog_compiler_static='-non_shared'
7571
lt_prog_compiler_pic='-KPIC'
7572
lt_prog_compiler_static='-Bstatic'
7573
case $cc_basename in
7575
lt_prog_compiler_wl='-Qoption ld ';;
7577
lt_prog_compiler_wl='-Wl,';;
7582
lt_prog_compiler_wl='-Qoption ld '
7583
lt_prog_compiler_pic='-PIC'
7584
lt_prog_compiler_static='-Bstatic'
7587
sysv4 | sysv4.2uw2* | sysv4.3*)
7588
lt_prog_compiler_wl='-Wl,'
7589
lt_prog_compiler_pic='-KPIC'
7590
lt_prog_compiler_static='-Bstatic'
7594
if test -d /usr/nec ;then
7595
lt_prog_compiler_pic='-Kconform_pic'
7596
lt_prog_compiler_static='-Bstatic'
7600
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7601
lt_prog_compiler_wl='-Wl,'
7602
lt_prog_compiler_pic='-KPIC'
7603
lt_prog_compiler_static='-Bstatic'
7607
lt_prog_compiler_wl='-Wl,'
7608
lt_prog_compiler_can_build_shared=no
7612
lt_prog_compiler_pic='-pic'
7613
lt_prog_compiler_static='-Bstatic'
7617
lt_prog_compiler_can_build_shared=no
7623
# For platforms which do not support PIC, -DPIC is meaningless:
7625
lt_prog_compiler_pic=
7628
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7632
$as_echo "$lt_prog_compiler_pic" >&6; }
7640
# Check to make sure the PIC flag actually works.
7642
if test -n "$lt_prog_compiler_pic"; then
7643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7644
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7645
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7646
$as_echo_n "(cached) " >&6
7648
lt_cv_prog_compiler_pic_works=no
7649
ac_outfile=conftest.$ac_objext
7650
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7651
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7652
# Insert the option either (1) after the last *FLAGS variable, or
7653
# (2) before a word containing "conftest.", or (3) at the end.
7654
# Note that $ac_compile itself does not contain backslashes and begins
7655
# with a dollar sign (not a hyphen), so the echo should work correctly.
7656
# The option is referenced via a variable to avoid confusing sed.
7657
lt_compile=`echo "$ac_compile" | $SED \
7658
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7659
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7660
-e 's:$: $lt_compiler_flag:'`
7661
(eval echo "\"\$as_me:7661: $lt_compile\"" >&5)
7662
(eval "$lt_compile" 2>conftest.err)
7664
cat conftest.err >&5
7665
echo "$as_me:7665: \$? = $ac_status" >&5
7666
if (exit $ac_status) && test -s "$ac_outfile"; then
7667
# The compiler can only warn and ignore the option if not recognized
7668
# So say no if there are warnings other than the usual output.
7669
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7670
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7671
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7672
lt_cv_prog_compiler_pic_works=yes
7678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7679
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7681
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7682
case $lt_prog_compiler_pic in
7684
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7687
lt_prog_compiler_pic=
7688
lt_prog_compiler_can_build_shared=no
7699
# Check to make sure the static flag actually works.
7701
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7703
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7704
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7705
$as_echo_n "(cached) " >&6
7707
lt_cv_prog_compiler_static_works=no
7708
save_LDFLAGS="$LDFLAGS"
7709
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7710
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7711
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7712
# The linker can only warn and ignore the option if not recognized
7713
# So say no if there are warnings
7714
if test -s conftest.err; then
7715
# Append any errors to the config.log.
7716
cat conftest.err 1>&5
7717
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7718
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7719
if diff conftest.exp conftest.er2 >/dev/null; then
7720
lt_cv_prog_compiler_static_works=yes
7723
lt_cv_prog_compiler_static_works=yes
7727
LDFLAGS="$save_LDFLAGS"
7730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7731
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7733
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7736
lt_prog_compiler_static=
7745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7746
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7747
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7748
$as_echo_n "(cached) " >&6
7750
lt_cv_prog_compiler_c_o=no
7751
$RM -r conftest 2>/dev/null
7755
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7757
lt_compiler_flag="-o out/conftest2.$ac_objext"
7758
# Insert the option either (1) after the last *FLAGS variable, or
7759
# (2) before a word containing "conftest.", or (3) at the end.
7760
# Note that $ac_compile itself does not contain backslashes and begins
7761
# with a dollar sign (not a hyphen), so the echo should work correctly.
7762
lt_compile=`echo "$ac_compile" | $SED \
7763
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7764
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7765
-e 's:$: $lt_compiler_flag:'`
7766
(eval echo "\"\$as_me:7766: $lt_compile\"" >&5)
7767
(eval "$lt_compile" 2>out/conftest.err)
7769
cat out/conftest.err >&5
7770
echo "$as_me:7770: \$? = $ac_status" >&5
7771
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7773
# The compiler can only warn and ignore the option if not recognized
7774
# So say no if there are warnings
7775
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7776
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7777
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7778
lt_cv_prog_compiler_c_o=yes
7783
# SGI C++ compiler will create directory out/ii_files/ for
7784
# template instantiation
7785
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7786
$RM out/* && rmdir out
7792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7793
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7801
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7802
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7803
$as_echo_n "(cached) " >&6
7805
lt_cv_prog_compiler_c_o=no
7806
$RM -r conftest 2>/dev/null
7810
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7812
lt_compiler_flag="-o out/conftest2.$ac_objext"
7813
# Insert the option either (1) after the last *FLAGS variable, or
7814
# (2) before a word containing "conftest.", or (3) at the end.
7815
# Note that $ac_compile itself does not contain backslashes and begins
7816
# with a dollar sign (not a hyphen), so the echo should work correctly.
7817
lt_compile=`echo "$ac_compile" | $SED \
7818
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7819
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7820
-e 's:$: $lt_compiler_flag:'`
7821
(eval echo "\"\$as_me:7821: $lt_compile\"" >&5)
7822
(eval "$lt_compile" 2>out/conftest.err)
7824
cat out/conftest.err >&5
7825
echo "$as_me:7825: \$? = $ac_status" >&5
7826
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7828
# The compiler can only warn and ignore the option if not recognized
7829
# So say no if there are warnings
7830
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7831
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7832
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7833
lt_cv_prog_compiler_c_o=yes
7838
# SGI C++ compiler will create directory out/ii_files/ for
7839
# template instantiation
7840
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7841
$RM out/* && rmdir out
7847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7848
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7853
hard_links="nottested"
7854
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7855
# do not overwrite the value of need_locks provided by the user
7856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7857
$as_echo_n "checking if we can lock with hard links... " >&6; }
7860
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7862
ln conftest.a conftest.b 2>&5 || hard_links=no
7863
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7865
$as_echo "$hard_links" >&6; }
7866
if test "$hard_links" = no; then
7867
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7868
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7881
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7884
allow_undefined_flag=
7885
always_export_symbols=no
7887
archive_expsym_cmds=
7888
compiler_needs_object=no
7889
enable_shared_with_static_runtimes=no
7890
export_dynamic_flag_spec=
7891
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7892
hardcode_automatic=no
7894
hardcode_direct_absolute=no
7895
hardcode_libdir_flag_spec=
7896
hardcode_libdir_flag_spec_ld=
7897
hardcode_libdir_separator=
7899
hardcode_shlibpath_var=unsupported
7901
link_all_deplibs=unknown
7904
old_archive_from_new_cmds=
7905
old_archive_from_expsyms_cmds=
7906
thread_safe_flag_spec=
7907
whole_archive_flag_spec=
7908
# include_expsyms should be a list of space-separated symbols to be *always*
7909
# included in the symbol list
7911
# exclude_expsyms can be an extended regexp of symbols to exclude
7912
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7913
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7914
# as well as any symbol that contains `d'.
7915
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7916
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7917
# platforms (ab)use it in PIC code, but their linkers get confused if
7918
# the symbol is explicitly referenced. Since portable code cannot
7919
# rely on this symbol name, it's probably fine to never include it in
7920
# preloaded symbol tables.
7921
# Exclude shared library initialization/finalization symbols.
7922
extract_expsyms_cmds=
7925
cygwin* | mingw* | pw32* | cegcc*)
7926
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7927
# When not using gcc, we currently assume that we are using
7928
# Microsoft Visual C++.
7929
if test "$GCC" != yes; then
7934
# we just hope/assume this is gcc and not c89 (= MSVC++)
7940
linux* | k*bsd*-gnu)
7946
if test "$with_gnu_ld" = yes; then
7947
# If archive_cmds runs LD, not CC, wlarc should be empty
7950
# Set some defaults for GNU ld with shared library support. These
7951
# are reset later if shared libraries are not supported. Putting them
7952
# here allows them to be overridden if necessary.
7953
runpath_var=LD_RUN_PATH
7954
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7955
export_dynamic_flag_spec='${wl}--export-dynamic'
7956
# ancient GNU ld didn't support --whole-archive et. al.
7957
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7958
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7960
whole_archive_flag_spec=
7962
supports_anon_versioning=no
7963
case `$LD -v 2>&1` in
7964
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7965
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7966
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7967
*\ 2.11.*) ;; # other 2.11 versions
7968
*) supports_anon_versioning=yes ;;
7971
# See if GNU ld supports shared libraries.
7974
# On AIX/PPC, the GNU linker is very broken
7975
if test "$host_cpu" != ia64; then
7979
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7980
*** to be unable to reliably create shared libraries on AIX.
7981
*** Therefore, libtool is disabling shared libraries support. If you
7982
*** really care for shared libraries, you may want to modify your PATH
7983
*** so that a non-GNU linker is found, and then restart.
7992
# see comment about AmigaOS4 .so support
7993
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7994
archive_expsym_cmds=''
7997
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)'
7998
hardcode_libdir_flag_spec='-L$libdir'
7999
hardcode_minus_L=yes
8005
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8006
allow_undefined_flag=unsupported
8007
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8008
# support --undefined. This deserves some investigation. FIXME
8009
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8015
cygwin* | mingw* | pw32* | cegcc*)
8016
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8017
# as there is no search path for DLLs.
8018
hardcode_libdir_flag_spec='-L$libdir'
8019
allow_undefined_flag=unsupported
8020
always_export_symbols=no
8021
enable_shared_with_static_runtimes=yes
8022
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8024
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8025
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8026
# If the export-symbols file already is a .def file (1st line
8027
# is EXPORTS), use it as is; otherwise, prepend...
8028
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8029
cp $export_symbols $output_objdir/$soname.def;
8031
echo EXPORTS > $output_objdir/$soname.def;
8032
cat $export_symbols >> $output_objdir/$soname.def;
8034
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8042
hardcode_shlibpath_var=no
8043
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8044
export_dynamic_flag_spec='${wl}-E'
8045
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8046
# Instead, shared libraries are loaded at an image base (0x10000000 by
8047
# default) and relocated if they conflict, which is a slow very memory
8048
# consuming and fragmenting process. To avoid this, we pick a random,
8049
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8050
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8051
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8052
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'
8055
gnu* | linux* | tpf* | k*bsd*-gnu)
8057
if test "$host_os" = linux-dietlibc; then
8058
case $cc_basename in
8059
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8062
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8063
&& test "$tmp_diet" = no
8066
tmp_sharedflag='-shared'
8067
case $cc_basename,$host_cpu in
8068
pgcc*) # Portland Group C compiler
8069
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'
8070
tmp_addflag=' $pic_flag'
8072
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8073
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'
8074
tmp_addflag=' $pic_flag -Mnomain' ;;
8075
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8076
tmp_addflag=' -i_dynamic' ;;
8077
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8078
tmp_addflag=' -i_dynamic -nofor_main' ;;
8079
ifc* | ifort*) # Intel Fortran compiler
8080
tmp_addflag=' -nofor_main' ;;
8081
lf95*) # Lahey Fortran 8.1
8082
whole_archive_flag_spec=
8083
tmp_sharedflag='--shared' ;;
8084
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8085
tmp_sharedflag='-qmkshrobj'
8088
case `$CC -V 2>&1 | sed 5q` in
8089
*Sun\ C*) # Sun C 5.9
8090
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'
8091
compiler_needs_object=yes
8092
tmp_sharedflag='-G' ;;
8093
*Sun\ F*) # Sun Fortran 8.3
8094
tmp_sharedflag='-G' ;;
8096
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8098
if test "x$supports_anon_versioning" = xyes; then
8099
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8100
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8101
echo "local: *; };" >> $output_objdir/$libname.ver~
8102
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8105
case $cc_basename in
8107
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8108
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8109
hardcode_libdir_flag_spec=
8110
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8111
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8112
if test "x$supports_anon_versioning" = xyes; then
8113
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8114
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8115
echo "local: *; };" >> $output_objdir/$libname.ver~
8116
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8125
netbsd* | netbsdelf*-gnu)
8126
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8127
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8130
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8131
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8136
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8140
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8141
*** create shared libraries on Solaris systems. Therefore, libtool
8142
*** is disabling shared libraries support. We urge you to upgrade GNU
8143
*** binutils to release 2.9.1 or newer. Another option is to modify
8144
*** your PATH or compiler configuration so that the native linker is
8145
*** used, and then restart.
8148
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8149
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8150
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8156
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8157
case `$LD -v 2>&1` in
8158
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8162
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8163
*** reliably create shared libraries on SCO systems. Therefore, libtool
8164
*** is disabling shared libraries support. We urge you to upgrade GNU
8165
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8166
*** your PATH or compiler configuration so that the native linker is
8167
*** used, and then restart.
8172
# For security reasons, it is highly recommended that you always
8173
# use absolute paths for naming shared libraries, and exclude the
8174
# DT_RUNPATH tag from executables and libraries. But doing so
8175
# requires that you compile everything twice, which is a pain.
8176
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8177
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8178
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8179
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8188
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8191
hardcode_shlibpath_var=no
8195
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8196
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8197
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8204
if test "$ld_shlibs" = no; then
8206
hardcode_libdir_flag_spec=
8207
export_dynamic_flag_spec=
8208
whole_archive_flag_spec=
8211
# PORTME fill in a description of your system's linker (not GNU ld)
8214
allow_undefined_flag=unsupported
8215
always_export_symbols=yes
8216
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'
8217
# Note: this linker hardcodes the directories in LIBPATH if there
8218
# are no directories specified by -L.
8219
hardcode_minus_L=yes
8220
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8221
# Neither direct hardcoding nor static linking is supported with a
8223
hardcode_direct=unsupported
8228
if test "$host_cpu" = ia64; then
8229
# On IA64, the linker does run time linking by default, so we don't
8230
# have to do anything special.
8231
aix_use_runtimelinking=no
8232
exp_sym_flag='-Bexport'
8235
# If we're using GNU nm, then we don't want the "-C" option.
8236
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8237
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8238
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'
8240
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'
8242
aix_use_runtimelinking=no
8244
# Test if we are trying to use run time linking or normal
8245
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8246
# need to do runtime linking.
8247
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8248
for ld_flag in $LDFLAGS; do
8249
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8250
aix_use_runtimelinking=yes
8257
exp_sym_flag='-bexport'
8258
no_entry_flag='-bnoentry'
8261
# When large executables or shared objects are built, AIX ld can
8262
# have problems creating the table of contents. If linking a library
8263
# or program results in "error TOC overflow" add -mminimal-toc to
8264
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8265
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8269
hardcode_direct_absolute=yes
8270
hardcode_libdir_separator=':'
8271
link_all_deplibs=yes
8272
file_list_spec='${wl}-f,'
8274
if test "$GCC" = yes; then
8275
case $host_os in aix4.[012]|aix4.[012].*)
8276
# We only want to do this on AIX 4.2 and lower, the check
8277
# below for broken collect2 doesn't work under 4.3+
8278
collect2name=`${CC} -print-prog-name=collect2`
8279
if test -f "$collect2name" &&
8280
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8282
# We have reworked collect2
8285
# We have old collect2
8286
hardcode_direct=unsupported
8287
# It fails to find uninstalled libraries when the uninstalled
8288
# path is not listed in the libpath. Setting hardcode_minus_L
8289
# to unsupported forces relinking
8290
hardcode_minus_L=yes
8291
hardcode_libdir_flag_spec='-L$libdir'
8292
hardcode_libdir_separator=
8296
shared_flag='-shared'
8297
if test "$aix_use_runtimelinking" = yes; then
8298
shared_flag="$shared_flag "'${wl}-G'
8303
if test "$host_cpu" = ia64; then
8304
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8305
# chokes on -Wl,-G. The following line is correct:
8308
if test "$aix_use_runtimelinking" = yes; then
8309
shared_flag='${wl}-G'
8311
shared_flag='${wl}-bM:SRE'
8316
export_dynamic_flag_spec='${wl}-bexpall'
8317
# It seems that -bexpall does not export symbols beginning with
8318
# underscore (_), so it is better to generate a list of symbols to export.
8319
always_export_symbols=yes
8320
if test "$aix_use_runtimelinking" = yes; then
8321
# Warning - without using the other runtime loading flags (-brtl),
8322
# -berok will link without error, but may produce a broken library.
8323
allow_undefined_flag='-berok'
8324
# Determine the default libpath from the value encoded in an
8326
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327
/* end confdefs.h. */
8337
if ac_fn_c_try_link "$LINENO"; then :
8339
lt_aix_libpath_sed='
8340
/Import File Strings/,/^$/ {
8346
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8347
# Check for a 64-bit object if we didn't find anything.
8348
if test -z "$aix_libpath"; then
8349
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8352
rm -f core conftest.err conftest.$ac_objext \
8353
conftest$ac_exeext conftest.$ac_ext
8354
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8356
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8357
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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8359
if test "$host_cpu" = ia64; then
8360
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8361
allow_undefined_flag="-z nodefs"
8362
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"
8364
# Determine the default libpath from the value encoded in an
8366
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367
/* end confdefs.h. */
8377
if ac_fn_c_try_link "$LINENO"; then :
8379
lt_aix_libpath_sed='
8380
/Import File Strings/,/^$/ {
8386
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8387
# Check for a 64-bit object if we didn't find anything.
8388
if test -z "$aix_libpath"; then
8389
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8392
rm -f core conftest.err conftest.$ac_objext \
8393
conftest$ac_exeext conftest.$ac_ext
8394
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8396
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8397
# Warning - without using the other run time loading flags,
8398
# -berok will link without error, but may produce a broken library.
8399
no_undefined_flag=' ${wl}-bernotok'
8400
allow_undefined_flag=' ${wl}-berok'
8401
# Exported symbols can be pulled into shared objects from archives
8402
whole_archive_flag_spec='$convenience'
8403
archive_cmds_need_lc=yes
8404
# This is similar to how AIX traditionally builds its shared libraries.
8405
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'
8413
# see comment about AmigaOS4 .so support
8414
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8415
archive_expsym_cmds=''
8418
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)'
8419
hardcode_libdir_flag_spec='-L$libdir'
8420
hardcode_minus_L=yes
8426
export_dynamic_flag_spec=-rdynamic
8429
cygwin* | mingw* | pw32* | cegcc*)
8430
# When not using gcc, we currently assume that we are using
8431
# Microsoft Visual C++.
8432
# hardcode_libdir_flag_spec is actually meaningless, as there is
8433
# no search path for DLLs.
8434
hardcode_libdir_flag_spec=' '
8435
allow_undefined_flag=unsupported
8436
# Tell ltmain to make .lib files, not .a files.
8438
# Tell ltmain to make .dll files, not .so files.
8440
# FIXME: Setting linknames here is a bad hack.
8441
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8442
# The linker will automatically build a .lib file if we build a DLL.
8443
old_archive_from_new_cmds='true'
8444
# FIXME: Should let the user specify the lib program.
8445
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8446
fix_srcfile_path='`cygpath -w "$srcfile"`'
8447
enable_shared_with_static_runtimes=yes
8450
darwin* | rhapsody*)
8453
archive_cmds_need_lc=no
8455
hardcode_automatic=yes
8456
hardcode_shlibpath_var=unsupported
8457
whole_archive_flag_spec=''
8458
link_all_deplibs=yes
8459
allow_undefined_flag="$_lt_dar_allow_undefined"
8460
case $cc_basename in
8461
ifort*) _lt_dar_can_shared=yes ;;
8462
*) _lt_dar_can_shared=$GCC ;;
8464
if test "$_lt_dar_can_shared" = "yes"; then
8465
output_verbose_link_cmd=echo
8466
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8467
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8468
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}"
8469
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}"
8478
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8479
hardcode_libdir_flag_spec='-L$libdir'
8480
hardcode_shlibpath_var=no
8487
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8488
# support. Future versions do this automatically, but an explicit c++rt0.o
8489
# does not break anything, and helps significantly (at the cost of a little
8492
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8493
hardcode_libdir_flag_spec='-R$libdir'
8495
hardcode_shlibpath_var=no
8498
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8500
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8502
hardcode_minus_L=yes
8503
hardcode_shlibpath_var=no
8506
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8507
freebsd* | dragonfly*)
8508
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8509
hardcode_libdir_flag_spec='-R$libdir'
8511
hardcode_shlibpath_var=no
8515
if test "$GCC" = yes; then
8516
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'
8518
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'
8520
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8521
hardcode_libdir_separator=:
8524
# hardcode_minus_L: Not really in the search PATH,
8525
# but as the default location of the library.
8526
hardcode_minus_L=yes
8527
export_dynamic_flag_spec='${wl}-E'
8531
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8532
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8534
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8536
if test "$with_gnu_ld" = no; then
8537
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8538
hardcode_libdir_flag_spec_ld='+b $libdir'
8539
hardcode_libdir_separator=:
8541
hardcode_direct_absolute=yes
8542
export_dynamic_flag_spec='${wl}-E'
8543
# hardcode_minus_L: Not really in the search PATH,
8544
# but as the default location of the library.
8545
hardcode_minus_L=yes
8550
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8553
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8556
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8559
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8565
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8568
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8571
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8575
if test "$with_gnu_ld" = no; then
8576
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8577
hardcode_libdir_separator=:
8582
hardcode_shlibpath_var=no
8586
hardcode_direct_absolute=yes
8587
export_dynamic_flag_spec='${wl}-E'
8589
# hardcode_minus_L: Not really in the search PATH,
8590
# but as the default location of the library.
8591
hardcode_minus_L=yes
8597
irix5* | irix6* | nonstopux*)
8598
if test "$GCC" = yes; then
8599
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8600
# Try to use the -exported_symbol ld option, if it does not
8601
# work, assume that -exports_file does not work either and
8602
# implicitly export all symbols.
8603
save_LDFLAGS="$LDFLAGS"
8604
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8605
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606
/* end confdefs.h. */
8609
if ac_fn_c_try_link "$LINENO"; then :
8610
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8613
rm -f core conftest.err conftest.$ac_objext \
8614
conftest$ac_exeext conftest.$ac_ext
8615
LDFLAGS="$save_LDFLAGS"
8617
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8618
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8620
archive_cmds_need_lc='no'
8621
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8622
hardcode_libdir_separator=:
8624
link_all_deplibs=yes
8627
netbsd* | netbsdelf*-gnu)
8628
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8629
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8631
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8633
hardcode_libdir_flag_spec='-R$libdir'
8635
hardcode_shlibpath_var=no
8639
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8641
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8642
hardcode_libdir_separator=:
8643
hardcode_shlibpath_var=no
8650
if test -f /usr/libexec/ld.so; then
8652
hardcode_shlibpath_var=no
8653
hardcode_direct_absolute=yes
8654
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8655
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8656
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8657
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8658
export_dynamic_flag_spec='${wl}-E'
8661
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8662
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8663
hardcode_libdir_flag_spec='-R$libdir'
8666
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8667
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8677
hardcode_libdir_flag_spec='-L$libdir'
8678
hardcode_minus_L=yes
8679
allow_undefined_flag=unsupported
8680
archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8681
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8685
if test "$GCC" = yes; then
8686
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8687
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8689
allow_undefined_flag=' -expect_unresolved \*'
8690
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8692
archive_cmds_need_lc='no'
8693
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8694
hardcode_libdir_separator=:
8697
osf4* | osf5*) # as osf3* with the addition of -msym flag
8698
if test "$GCC" = yes; then
8699
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8700
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8701
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8703
allow_undefined_flag=' -expect_unresolved \*'
8704
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8705
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8706
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8708
# Both c and cxx compiler support -rpath directly
8709
hardcode_libdir_flag_spec='-rpath $libdir'
8711
archive_cmds_need_lc='no'
8712
hardcode_libdir_separator=:
8716
no_undefined_flag=' -z defs'
8717
if test "$GCC" = yes; then
8719
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8720
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8721
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8723
case `$CC -V 2>&1` in
8726
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8727
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8728
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8732
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8733
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8734
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8738
hardcode_libdir_flag_spec='-R$libdir'
8739
hardcode_shlibpath_var=no
8741
solaris2.[0-5] | solaris2.[0-5].*) ;;
8743
# The compiler driver will combine and reorder linker options,
8744
# but understands `-z linker_flag'. GCC discards it without `$wl',
8745
# but is careful enough not to reorder.
8746
# Supported since Solaris 2.6 (maybe 2.5.1?)
8747
if test "$GCC" = yes; then
8748
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8750
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8754
link_all_deplibs=yes
8758
if test "x$host_vendor" = xsequent; then
8759
# Use $CC to link under sequent, because it throws in some extra .o
8760
# files that make .init and .fini sections work.
8761
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8763
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8765
hardcode_libdir_flag_spec='-L$libdir'
8767
hardcode_minus_L=yes
8768
hardcode_shlibpath_var=no
8772
case $host_vendor in
8774
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8775
hardcode_direct=yes # is this really true???
8778
## LD is ld it makes a PLAMLIB
8779
## CC just makes a GrossModule.
8780
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8781
reload_cmds='$CC -r -o $output$reload_objs'
8785
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8789
runpath_var='LD_RUN_PATH'
8790
hardcode_shlibpath_var=no
8794
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8795
hardcode_shlibpath_var=no
8796
export_dynamic_flag_spec='-Bexport'
8800
if test -d /usr/nec; then
8801
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802
hardcode_shlibpath_var=no
8803
runpath_var=LD_RUN_PATH
8804
hardcode_runpath_var=yes
8809
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8810
no_undefined_flag='${wl}-z,text'
8811
archive_cmds_need_lc=no
8812
hardcode_shlibpath_var=no
8813
runpath_var='LD_RUN_PATH'
8815
if test "$GCC" = yes; then
8816
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8817
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8819
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8820
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8824
sysv5* | sco3.2v5* | sco5v6*)
8825
# Note: We can NOT use -z defs as we might desire, because we do not
8826
# link with -lc, and that would cause any symbols used from libc to
8827
# always be unresolved, which means just about no library would
8828
# ever link correctly. If we're not using GNU ld we use -z text
8829
# though, which does catch some bad symbols but isn't as heavy-handed
8831
no_undefined_flag='${wl}-z,text'
8832
allow_undefined_flag='${wl}-z,nodefs'
8833
archive_cmds_need_lc=no
8834
hardcode_shlibpath_var=no
8835
hardcode_libdir_flag_spec='${wl}-R,$libdir'
8836
hardcode_libdir_separator=':'
8837
link_all_deplibs=yes
8838
export_dynamic_flag_spec='${wl}-Bexport'
8839
runpath_var='LD_RUN_PATH'
8841
if test "$GCC" = yes; then
8842
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8843
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8845
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8846
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8851
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8852
hardcode_libdir_flag_spec='-L$libdir'
8853
hardcode_shlibpath_var=no
8861
if test x$host_vendor = xsni; then
8863
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8864
export_dynamic_flag_spec='${wl}-Blargedynsym'
8870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8871
$as_echo "$ld_shlibs" >&6; }
8872
test "$ld_shlibs" = no && can_build_shared=no
8874
with_gnu_ld=$with_gnu_ld
8891
# Do we need to explicitly link libc?
8893
case "x$archive_cmds_need_lc" in
8895
# Assume -lc should be added
8896
archive_cmds_need_lc=yes
8898
if test "$enable_shared" = yes && test "$GCC" = yes; then
8899
case $archive_cmds in
8901
# FIXME: we may have to deal with multi-command sequences.
8904
# Test whether the compiler implicitly links with -lc since on some
8905
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8906
# to ld, don't add -lc before -lgcc.
8907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8908
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8910
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8912
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8913
(eval $ac_compile) 2>&5
8915
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8916
test $ac_status = 0; } 2>conftest.err; then
8919
libobjs=conftest.$ac_objext
8921
wl=$lt_prog_compiler_wl
8922
pic_flag=$lt_prog_compiler_pic
8928
lt_save_allow_undefined_flag=$allow_undefined_flag
8929
allow_undefined_flag=
8930
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8931
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8933
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8934
test $ac_status = 0; }
8936
archive_cmds_need_lc=no
8938
archive_cmds_need_lc=yes
8940
allow_undefined_flag=$lt_save_allow_undefined_flag
8942
cat conftest.err 1>&5
8945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8946
$as_echo "$archive_cmds_need_lc" >&6; }
9109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9110
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9112
if test "$GCC" = yes; then
9114
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9115
*) lt_awk_arg="/^libraries:/" ;;
9117
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9118
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9119
# if the path contains ";" then we assume it to be the separator
9120
# otherwise default to the standard path separator (i.e. ":") - it is
9121
# assumed that no part of a normal pathname contains ";" but that should
9122
# okay in the real world where ";" in dirpaths is itself problematic.
9123
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9125
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9127
# Ok, now we have the path, separated by spaces, we can step through it
9128
# and add multilib dir if necessary.
9129
lt_tmp_lt_search_path_spec=
9130
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9131
for lt_sys_path in $lt_search_path_spec; do
9132
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9133
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9135
test -d "$lt_sys_path" && \
9136
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9139
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9140
BEGIN {RS=" "; FS="/|\n";} {
9143
for (lt_i = NF; lt_i > 0; lt_i--) {
9144
if ($lt_i != "" && $lt_i != ".") {
9145
if ($lt_i == "..") {
9148
if (lt_count == 0) {
9149
lt_foo="/" $lt_i lt_foo;
9156
if (lt_foo != "") { lt_freq[lt_foo]++; }
9157
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9159
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9161
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9164
libname_spec='lib$name'
9172
shlibpath_overrides_runpath=unknown
9174
dynamic_linker="$host_os ld.so"
9175
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9176
need_lib_prefix=unknown
9177
hardcode_into_libs=no
9179
# when you set need_version to no, make sure it does not cause -set_version
9180
# flags to be left without arguments
9181
need_version=unknown
9186
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9187
shlibpath_var=LIBPATH
9189
# AIX 3 has no versioning support, so we append a major version to the name.
9190
soname_spec='${libname}${release}${shared_ext}$major'
9197
hardcode_into_libs=yes
9198
if test "$host_cpu" = ia64; then
9199
# AIX 5 supports IA64
9200
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9201
shlibpath_var=LD_LIBRARY_PATH
9203
# With GCC up to 2.95.x, collect2 would create an import file
9204
# for dependence libraries. The import file would start with
9205
# the line `#! .'. This would cause the generated library to
9206
# depend on `.', always an invalid library. This was fixed in
9207
# development snapshots of GCC prior to 3.0.
9209
aix4 | aix4.[01] | aix4.[01].*)
9210
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9212
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9219
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9220
# soname into executable. Probably we can add versioning support to
9221
# collect2, so additional links can be useful in future.
9222
if test "$aix_use_runtimelinking" = yes; then
9223
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9224
# instead of lib<name>.a to let people know that these are not
9225
# typical AIX shared libraries.
9226
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228
# We preserve .a as extension for shared libraries through AIX4.2
9229
# and later when we are not doing run time linking.
9230
library_names_spec='${libname}${release}.a $libname.a'
9231
soname_spec='${libname}${release}${shared_ext}$major'
9233
shlibpath_var=LIBPATH
9240
# Since July 2007 AmigaOS4 officially supports .so libraries.
9241
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9242
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245
library_names_spec='$libname.ixlibrary $libname.a'
9246
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9247
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'
9253
library_names_spec='${libname}${shared_ext}'
9254
dynamic_linker="$host_os ld.so"
9255
shlibpath_var=LIBRARY_PATH
9261
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262
soname_spec='${libname}${release}${shared_ext}$major'
9263
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9264
shlibpath_var=LD_LIBRARY_PATH
9265
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9266
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9267
# the default ld.so.conf also contains /usr/contrib/lib and
9268
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9269
# libtool to hard-code these into programs
9272
cygwin* | mingw* | pw32* | cegcc*)
9273
version_type=windows
9278
case $GCC,$host_os in
9279
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9280
library_names_spec='$libname.dll.a'
9281
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9282
postinstall_cmds='base_file=`basename \${file}`~
9283
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9284
dldir=$destdir/`dirname \$dlpath`~
9285
test -d \$dldir || mkdir -p \$dldir~
9286
$install_prog $dir/$dlname \$dldir/$dlname~
9287
chmod a+x \$dldir/$dlname~
9288
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9289
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9291
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9292
dlpath=$dir/\$dldll~
9294
shlibpath_overrides_runpath=yes
9298
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9299
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9300
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9303
# MinGW DLLs use traditional 'lib' prefix
9304
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9305
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9306
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9307
# It is most probably a Windows format PATH printed by
9308
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9309
# path with ; separators, and with drive letters. We can handle the
9310
# drive letters (cygwin fileutils understands them), so leave them,
9311
# especially as we might pass files found there to a mingw objdump,
9312
# which wouldn't understand a cygwinified path. Ahh.
9313
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9315
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9319
# pw32 DLLs use 'pw' prefix rather than 'lib'
9320
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9326
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9329
dynamic_linker='Win32 ld.exe'
9330
# FIXME: first we should search . and the directory the executable is in
9334
darwin* | rhapsody*)
9335
dynamic_linker="$host_os dyld"
9339
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9340
soname_spec='${libname}${release}${major}$shared_ext'
9341
shlibpath_overrides_runpath=yes
9342
shlibpath_var=DYLD_LIBRARY_PATH
9343
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9345
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9346
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9353
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9354
soname_spec='${libname}${release}${shared_ext}$major'
9355
shlibpath_var=LD_LIBRARY_PATH
9362
freebsd* | dragonfly*)
9363
# DragonFly does not have aout. When/if they implement a new
9364
# versioning mechanism, adjust this.
9365
if test -x /usr/bin/objformat; then
9366
objformat=`/usr/bin/objformat`
9369
freebsd[123]*) objformat=aout ;;
9373
version_type=freebsd-$objformat
9374
case $version_type in
9376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9381
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9385
shlibpath_var=LD_LIBRARY_PATH
9388
shlibpath_overrides_runpath=yes
9390
freebsd3.[01]* | freebsdelf3.[01]*)
9391
shlibpath_overrides_runpath=yes
9392
hardcode_into_libs=yes
9394
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9395
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9396
shlibpath_overrides_runpath=no
9397
hardcode_into_libs=yes
9399
*) # from 4.6 on, and DragonFly
9400
shlibpath_overrides_runpath=yes
9401
hardcode_into_libs=yes
9410
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9411
soname_spec='${libname}${release}${shared_ext}$major'
9412
shlibpath_var=LD_LIBRARY_PATH
9413
hardcode_into_libs=yes
9416
hpux9* | hpux10* | hpux11*)
9417
# Give a soname corresponding to the major version so that dld.sl refuses to
9418
# link against other versions.
9425
hardcode_into_libs=yes
9426
dynamic_linker="$host_os dld.so"
9427
shlibpath_var=LD_LIBRARY_PATH
9428
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9429
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9430
soname_spec='${libname}${release}${shared_ext}$major'
9431
if test "X$HPUX_IA64_MODE" = X32; then
9432
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9434
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9436
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9440
hardcode_into_libs=yes
9441
dynamic_linker="$host_os dld.sl"
9442
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9443
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9444
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445
soname_spec='${libname}${release}${shared_ext}$major'
9446
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9447
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9451
dynamic_linker="$host_os dld.sl"
9452
shlibpath_var=SHLIB_PATH
9453
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9454
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455
soname_spec='${libname}${release}${shared_ext}$major'
9458
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9459
postinstall_cmds='chmod 555 $lib'
9466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9467
soname_spec='${libname}${release}${shared_ext}$major'
9468
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9469
shlibpath_var=LD_LIBRARY_PATH
9470
shlibpath_overrides_runpath=no
9471
hardcode_into_libs=yes
9474
irix5* | irix6* | nonstopux*)
9476
nonstopux*) version_type=nonstopux ;;
9478
if test "$lt_cv_prog_gnu_ld" = yes; then
9486
soname_spec='${libname}${release}${shared_ext}$major'
9487
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9489
irix5* | nonstopux*)
9493
case $LD in # libtool.m4 will add one of these switches to LD
9494
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9495
libsuff= shlibsuff= libmagic=32-bit;;
9496
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9497
libsuff=32 shlibsuff=N32 libmagic=N32;;
9498
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9499
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9500
*) libsuff= shlibsuff= libmagic=never-match;;
9504
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9505
shlibpath_overrides_runpath=no
9506
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9507
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9508
hardcode_into_libs=yes
9511
# No shared lib support for Linux oldld, aout, or coff.
9512
linux*oldld* | linux*aout* | linux*coff*)
9516
# This must be Linux ELF.
9517
linux* | k*bsd*-gnu)
9521
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9522
soname_spec='${libname}${release}${shared_ext}$major'
9523
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9524
shlibpath_var=LD_LIBRARY_PATH
9525
shlibpath_overrides_runpath=no
9526
# Some binutils ld are patched to set DT_RUNPATH
9527
save_LDFLAGS=$LDFLAGS
9529
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9530
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9531
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532
/* end confdefs.h. */
9542
if ac_fn_c_try_link "$LINENO"; then :
9543
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9544
shlibpath_overrides_runpath=yes
9547
rm -f core conftest.err conftest.$ac_objext \
9548
conftest$ac_exeext conftest.$ac_ext
9549
LDFLAGS=$save_LDFLAGS
9552
# This implies no fast_install, which is unacceptable.
9553
# Some rework will be needed to allow for fast_install
9554
# before this can be enabled.
9555
hardcode_into_libs=yes
9557
# Append ld.so.conf contents to the search path
9558
if test -f /etc/ld.so.conf; then
9559
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' ' '`
9560
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9563
# We used to test for /lib/ld.so.1 and disable shared libraries on
9564
# powerpc, because MkLinux only supported shared libraries with the
9565
# GNU dynamic linker. Since this was broken with cross compilers,
9566
# most powerpc-linux boxes support dynamic linking these days and
9567
# people can always --disable-shared, the test was removed, and we
9568
# assume the GNU/Linux dynamic linker is in use.
9569
dynamic_linker='GNU/Linux ld.so'
9576
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9577
soname_spec='${libname}${release}${shared_ext}$major'
9578
shlibpath_var=LD_LIBRARY_PATH
9579
shlibpath_overrides_runpath=no
9580
hardcode_into_libs=yes
9581
dynamic_linker='NetBSD ld.elf_so'
9588
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9589
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9590
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9591
dynamic_linker='NetBSD (a.out) ld.so'
9593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9594
soname_spec='${libname}${release}${shared_ext}$major'
9595
dynamic_linker='NetBSD ld.elf_so'
9597
shlibpath_var=LD_LIBRARY_PATH
9598
shlibpath_overrides_runpath=yes
9599
hardcode_into_libs=yes
9604
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9605
shlibpath_var=LD_LIBRARY_PATH
9606
shlibpath_overrides_runpath=yes
9613
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614
soname_spec='${libname}${release}${shared_ext}$major'
9615
shlibpath_var=LD_LIBRARY_PATH
9616
shlibpath_overrides_runpath=no
9617
hardcode_into_libs=yes
9618
dynamic_linker='ldqnx.so'
9623
sys_lib_dlsearch_path_spec="/usr/lib"
9625
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9627
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9628
*) need_version=no ;;
9630
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9631
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9632
shlibpath_var=LD_LIBRARY_PATH
9633
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9635
openbsd2.[89] | openbsd2.[89].*)
9636
shlibpath_overrides_runpath=no
9639
shlibpath_overrides_runpath=yes
9643
shlibpath_overrides_runpath=yes
9648
libname_spec='$name'
9651
library_names_spec='$libname${shared_ext} $libname.a'
9652
dynamic_linker='OS/2 ld.exe'
9653
shlibpath_var=LIBPATH
9656
osf3* | osf4* | osf5*)
9660
soname_spec='${libname}${release}${shared_ext}$major'
9661
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662
shlibpath_var=LD_LIBRARY_PATH
9663
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9664
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9675
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676
soname_spec='${libname}${release}${shared_ext}$major'
9677
shlibpath_var=LD_LIBRARY_PATH
9678
shlibpath_overrides_runpath=yes
9679
hardcode_into_libs=yes
9680
# ldd complains unless libraries are executable
9681
postinstall_cmds='chmod +x $lib'
9686
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9687
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9688
shlibpath_var=LD_LIBRARY_PATH
9689
shlibpath_overrides_runpath=yes
9690
if test "$with_gnu_ld" = yes; then
9698
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699
soname_spec='${libname}${release}${shared_ext}$major'
9700
shlibpath_var=LD_LIBRARY_PATH
9701
case $host_vendor in
9703
shlibpath_overrides_runpath=no
9705
runpath_var=LD_RUN_PATH
9713
shlibpath_overrides_runpath=no
9714
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9720
if test -d /usr/nec ;then
9722
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9723
soname_spec='$libname${shared_ext}.$major'
9724
shlibpath_var=LD_LIBRARY_PATH
9728
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9729
version_type=freebsd-elf
9732
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9733
soname_spec='${libname}${release}${shared_ext}$major'
9734
shlibpath_var=LD_LIBRARY_PATH
9735
shlibpath_overrides_runpath=yes
9736
hardcode_into_libs=yes
9737
if test "$with_gnu_ld" = yes; then
9738
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9740
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9743
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9747
sys_lib_dlsearch_path_spec='/usr/lib'
9751
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9755
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756
shlibpath_var=LD_LIBRARY_PATH
9757
shlibpath_overrides_runpath=no
9758
hardcode_into_libs=yes
9763
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764
soname_spec='${libname}${release}${shared_ext}$major'
9765
shlibpath_var=LD_LIBRARY_PATH
9772
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9773
$as_echo "$dynamic_linker" >&6; }
9774
test "$dynamic_linker" = no && can_build_shared=no
9776
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9777
if test "$GCC" = yes; then
9778
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9781
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9782
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9784
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9785
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9875
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9877
if test -n "$hardcode_libdir_flag_spec" ||
9878
test -n "$runpath_var" ||
9879
test "X$hardcode_automatic" = "Xyes" ; then
9881
# We can hardcode non-existent directories.
9882
if test "$hardcode_direct" != no &&
9883
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9884
# have to relink, otherwise we might link with an installed library
9885
# when we should be linking with a yet-to-be-installed one
9886
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9887
test "$hardcode_minus_L" != no; then
9888
# Linking always hardcodes the temporary library directory.
9889
hardcode_action=relink
9891
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9892
hardcode_action=immediate
9895
# We cannot hardcode anything, or else we can only hardcode existing
9897
hardcode_action=unsupported
9899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9900
$as_echo "$hardcode_action" >&6; }
9902
if test "$hardcode_action" = relink ||
9903
test "$inherit_rpath" = yes; then
9904
# Fast installation is not supported
9905
enable_fast_install=no
9906
elif test "$shlibpath_overrides_runpath" = yes ||
9907
test "$enable_shared" = no; then
9908
# Fast installation is not necessary
9909
enable_fast_install=needless
9917
if test "x$enable_dlopen" != xyes; then
9918
enable_dlopen=unknown
9919
enable_dlopen_self=unknown
9920
enable_dlopen_self_static=unknown
9927
lt_cv_dlopen="load_add_on"
9929
lt_cv_dlopen_self=yes
9932
mingw* | pw32* | cegcc*)
9933
lt_cv_dlopen="LoadLibrary"
9938
lt_cv_dlopen="dlopen"
9943
# if libdl is installed we need to link against it
9944
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9945
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9946
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9947
$as_echo_n "(cached) " >&6
9949
ac_check_lib_save_LIBS=$LIBS
9951
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952
/* end confdefs.h. */
9954
/* Override any GCC internal prototype to avoid an error.
9955
Use char because int might match the return type of a GCC
9956
builtin and then its argument prototype would still apply. */
9969
if ac_fn_c_try_link "$LINENO"; then :
9970
ac_cv_lib_dl_dlopen=yes
9972
ac_cv_lib_dl_dlopen=no
9974
rm -f core conftest.err conftest.$ac_objext \
9975
conftest$ac_exeext conftest.$ac_ext
9976
LIBS=$ac_check_lib_save_LIBS
9978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9979
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9980
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9981
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9986
lt_cv_dlopen_self=yes
9993
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9994
if test "x$ac_cv_func_shl_load" = x""yes; then :
9995
lt_cv_dlopen="shl_load"
9997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9998
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9999
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10000
$as_echo_n "(cached) " >&6
10002
ac_check_lib_save_LIBS=$LIBS
10004
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005
/* end confdefs.h. */
10007
/* Override any GCC internal prototype to avoid an error.
10008
Use char because int might match the return type of a GCC
10009
builtin and then its argument prototype would still apply. */
10017
return shl_load ();
10022
if ac_fn_c_try_link "$LINENO"; then :
10023
ac_cv_lib_dld_shl_load=yes
10025
ac_cv_lib_dld_shl_load=no
10027
rm -f core conftest.err conftest.$ac_objext \
10028
conftest$ac_exeext conftest.$ac_ext
10029
LIBS=$ac_check_lib_save_LIBS
10031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10032
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10033
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10034
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10036
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10037
if test "x$ac_cv_func_dlopen" = x""yes; then :
10038
lt_cv_dlopen="dlopen"
10040
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10041
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10042
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10043
$as_echo_n "(cached) " >&6
10045
ac_check_lib_save_LIBS=$LIBS
10047
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048
/* end confdefs.h. */
10050
/* Override any GCC internal prototype to avoid an error.
10051
Use char because int might match the return type of a GCC
10052
builtin and then its argument prototype would still apply. */
10065
if ac_fn_c_try_link "$LINENO"; then :
10066
ac_cv_lib_dl_dlopen=yes
10068
ac_cv_lib_dl_dlopen=no
10070
rm -f core conftest.err conftest.$ac_objext \
10071
conftest$ac_exeext conftest.$ac_ext
10072
LIBS=$ac_check_lib_save_LIBS
10074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10075
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10076
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10077
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10079
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10080
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10081
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10082
$as_echo_n "(cached) " >&6
10084
ac_check_lib_save_LIBS=$LIBS
10085
LIBS="-lsvld $LIBS"
10086
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087
/* end confdefs.h. */
10089
/* Override any GCC internal prototype to avoid an error.
10090
Use char because int might match the return type of a GCC
10091
builtin and then its argument prototype would still apply. */
10104
if ac_fn_c_try_link "$LINENO"; then :
10105
ac_cv_lib_svld_dlopen=yes
10107
ac_cv_lib_svld_dlopen=no
10109
rm -f core conftest.err conftest.$ac_objext \
10110
conftest$ac_exeext conftest.$ac_ext
10111
LIBS=$ac_check_lib_save_LIBS
10113
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10114
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10115
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10116
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10119
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10120
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10121
$as_echo_n "(cached) " >&6
10123
ac_check_lib_save_LIBS=$LIBS
10125
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126
/* end confdefs.h. */
10128
/* Override any GCC internal prototype to avoid an error.
10129
Use char because int might match the return type of a GCC
10130
builtin and then its argument prototype would still apply. */
10138
return dld_link ();
10143
if ac_fn_c_try_link "$LINENO"; then :
10144
ac_cv_lib_dld_dld_link=yes
10146
ac_cv_lib_dld_dld_link=no
10148
rm -f core conftest.err conftest.$ac_objext \
10149
conftest$ac_exeext conftest.$ac_ext
10150
LIBS=$ac_check_lib_save_LIBS
10152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10153
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10154
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10155
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10176
if test "x$lt_cv_dlopen" != xno; then
10182
case $lt_cv_dlopen in
10184
save_CPPFLAGS="$CPPFLAGS"
10185
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10187
save_LDFLAGS="$LDFLAGS"
10188
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10191
LIBS="$lt_cv_dlopen_libs $LIBS"
10193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10194
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10195
if test "${lt_cv_dlopen_self+set}" = set; then :
10196
$as_echo_n "(cached) " >&6
10198
if test "$cross_compiling" = yes; then :
10199
lt_cv_dlopen_self=cross
10201
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10202
lt_status=$lt_dlunknown
10203
cat > conftest.$ac_ext <<_LT_EOF
10204
#line 10204 "configure"
10205
#include "confdefs.h"
10214
# define LT_DLGLOBAL RTLD_GLOBAL
10217
# define LT_DLGLOBAL DL_GLOBAL
10219
# define LT_DLGLOBAL 0
10223
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10224
find out it does not work in some platform. */
10225
#ifndef LT_DLLAZY_OR_NOW
10227
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10230
# define LT_DLLAZY_OR_NOW DL_LAZY
10233
# define LT_DLLAZY_OR_NOW RTLD_NOW
10236
# define LT_DLLAZY_OR_NOW DL_NOW
10238
# define LT_DLLAZY_OR_NOW 0
10245
void fnord() { int i=42;}
10248
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10249
int status = $lt_dlunknown;
10253
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10254
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10255
/* dlclose (self); */
10263
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10264
(eval $ac_link) 2>&5
10266
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10267
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10268
(./conftest; exit; ) >&5 2>/dev/null
10270
case x$lt_status in
10271
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10272
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10273
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10276
# compilation failed
10277
lt_cv_dlopen_self=no
10284
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10285
$as_echo "$lt_cv_dlopen_self" >&6; }
10287
if test "x$lt_cv_dlopen_self" = xyes; then
10288
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10289
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10290
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10291
if test "${lt_cv_dlopen_self_static+set}" = set; then :
10292
$as_echo_n "(cached) " >&6
10294
if test "$cross_compiling" = yes; then :
10295
lt_cv_dlopen_self_static=cross
10297
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10298
lt_status=$lt_dlunknown
10299
cat > conftest.$ac_ext <<_LT_EOF
10300
#line 10300 "configure"
10301
#include "confdefs.h"
10310
# define LT_DLGLOBAL RTLD_GLOBAL
10313
# define LT_DLGLOBAL DL_GLOBAL
10315
# define LT_DLGLOBAL 0
10319
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10320
find out it does not work in some platform. */
10321
#ifndef LT_DLLAZY_OR_NOW
10323
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10326
# define LT_DLLAZY_OR_NOW DL_LAZY
10329
# define LT_DLLAZY_OR_NOW RTLD_NOW
10332
# define LT_DLLAZY_OR_NOW DL_NOW
10334
# define LT_DLLAZY_OR_NOW 0
10341
void fnord() { int i=42;}
10344
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10345
int status = $lt_dlunknown;
10349
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10350
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10351
/* dlclose (self); */
10359
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10360
(eval $ac_link) 2>&5
10362
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10363
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10364
(./conftest; exit; ) >&5 2>/dev/null
10366
case x$lt_status in
10367
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10368
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10369
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10372
# compilation failed
10373
lt_cv_dlopen_self_static=no
10380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10381
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10384
CPPFLAGS="$save_CPPFLAGS"
10385
LDFLAGS="$save_LDFLAGS"
10390
case $lt_cv_dlopen_self in
10391
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10392
*) enable_dlopen_self=unknown ;;
10395
case $lt_cv_dlopen_self_static in
10396
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10397
*) enable_dlopen_self_static=unknown ;;
10419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10420
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10421
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10422
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10423
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10425
$as_echo "yes" >&6; }
10427
# FIXME - insert some real tests, host_os isn't really good enough
10430
if test -n "$STRIP" ; then
10431
striplib="$STRIP -x"
10432
old_striplib="$STRIP -S"
10433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10434
$as_echo "yes" >&6; }
10436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437
$as_echo "no" >&6; }
10441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442
$as_echo "no" >&6; }
10458
# Report which library types will actually be built
10459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10460
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10462
$as_echo "$can_build_shared" >&6; }
10464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10465
$as_echo_n "checking whether to build shared libraries... " >&6; }
10466
test "$can_build_shared" = "no" && enable_shared=no
10468
# On AIX, shared libraries and static libraries use the same namespace, and
10469
# are all built from PIC.
10472
test "$enable_shared" = yes && enable_static=no
10473
if test -n "$RANLIB"; then
10474
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10475
postinstall_cmds='$RANLIB $lib'
10480
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10481
test "$enable_shared" = yes && enable_static=no
10485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10486
$as_echo "$enable_shared" >&6; }
10488
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10489
$as_echo_n "checking whether to build static libraries... " >&6; }
10490
# Make sure either enable_shared or enable_static is yes.
10491
test "$enable_shared" = yes || enable_static=yes
10492
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10493
$as_echo "$enable_static" >&6; }
10500
ac_cpp='$CPP $CPPFLAGS'
10501
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10502
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10503
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10519
ac_config_commands="$ac_config_commands libtool"
10524
# Only expand once:
10528
# checks for programs.
10530
ac_cpp='$CXXCPP $CPPFLAGS'
10531
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10532
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10533
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10534
if test -z "$CXX"; then
10535
if test -n "$CCC"; then
10538
if test -n "$ac_tool_prefix"; then
10539
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10541
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10542
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544
$as_echo_n "checking for $ac_word... " >&6; }
10545
if test "${ac_cv_prog_CXX+set}" = set; then :
10546
$as_echo_n "(cached) " >&6
10548
if test -n "$CXX"; then
10549
ac_cv_prog_CXX="$CXX" # Let the user override the test.
10551
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552
for as_dir in $PATH
10555
test -z "$as_dir" && as_dir=.
10556
for ac_exec_ext in '' $ac_executable_extensions; do
10557
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10558
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10559
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10568
CXX=$ac_cv_prog_CXX
10569
if test -n "$CXX"; then
10570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10571
$as_echo "$CXX" >&6; }
10573
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574
$as_echo "no" >&6; }
10578
test -n "$CXX" && break
10581
if test -z "$CXX"; then
10583
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10585
# Extract the first word of "$ac_prog", so it can be a program name with args.
10586
set dummy $ac_prog; ac_word=$2
10587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10588
$as_echo_n "checking for $ac_word... " >&6; }
10589
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10590
$as_echo_n "(cached) " >&6
10592
if test -n "$ac_ct_CXX"; then
10593
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10595
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10596
for as_dir in $PATH
10599
test -z "$as_dir" && as_dir=.
10600
for ac_exec_ext in '' $ac_executable_extensions; do
10601
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10602
ac_cv_prog_ac_ct_CXX="$ac_prog"
10603
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10612
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10613
if test -n "$ac_ct_CXX"; then
10614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10615
$as_echo "$ac_ct_CXX" >&6; }
10617
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618
$as_echo "no" >&6; }
10622
test -n "$ac_ct_CXX" && break
10625
if test "x$ac_ct_CXX" = x; then
10628
case $cross_compiling:$ac_tool_warned in
10630
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10631
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10632
ac_tool_warned=yes ;;
10640
# Provide some information about the compiler.
10641
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10644
for ac_option in --version -v -V -qversion; do
10645
{ { ac_try="$ac_compiler $ac_option >&5"
10646
case "(($ac_try" in
10647
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648
*) ac_try_echo=$ac_try;;
10650
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10651
$as_echo "$ac_try_echo"; } >&5
10652
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
10654
if test -s conftest.err; then
10656
... rest of stderr output deleted ...
10657
10q' conftest.err >conftest.er1
10658
cat conftest.er1 >&5
10659
rm -f conftest.er1 conftest.err
10661
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10662
test $ac_status = 0; }
10665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10666
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10667
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10668
$as_echo_n "(cached) " >&6
10670
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671
/* end confdefs.h. */
10684
if ac_fn_cxx_try_compile "$LINENO"; then :
10685
ac_compiler_gnu=yes
10689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10690
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10694
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10695
if test $ac_compiler_gnu = yes; then
10700
ac_test_CXXFLAGS=${CXXFLAGS+set}
10701
ac_save_CXXFLAGS=$CXXFLAGS
10702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10703
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10704
if test "${ac_cv_prog_cxx_g+set}" = set; then :
10705
$as_echo_n "(cached) " >&6
10707
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10708
ac_cxx_werror_flag=yes
10709
ac_cv_prog_cxx_g=no
10711
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712
/* end confdefs.h. */
10722
if ac_fn_cxx_try_compile "$LINENO"; then :
10723
ac_cv_prog_cxx_g=yes
10726
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727
/* end confdefs.h. */
10737
if ac_fn_cxx_try_compile "$LINENO"; then :
10740
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10742
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743
/* end confdefs.h. */
10753
if ac_fn_cxx_try_compile "$LINENO"; then :
10754
ac_cv_prog_cxx_g=yes
10756
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10758
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10764
$as_echo "$ac_cv_prog_cxx_g" >&6; }
10765
if test "$ac_test_CXXFLAGS" = set; then
10766
CXXFLAGS=$ac_save_CXXFLAGS
10767
elif test $ac_cv_prog_cxx_g = yes; then
10768
if test "$GXX" = yes; then
10774
if test "$GXX" = yes; then
10781
ac_cpp='$CPP $CPPFLAGS'
10782
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10783
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10784
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10786
depcc="$CXX" am_compiler_list=
10788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10789
$as_echo_n "checking dependency style of $depcc... " >&6; }
10790
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10791
$as_echo_n "(cached) " >&6
10793
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10794
# We make a subdir and do the tests there. Otherwise we can end up
10795
# making bogus files that we don't know about and never remove. For
10796
# instance it was reported that on HP-UX the gcc test will end up
10797
# making a dummy file named `D' -- because `-MD' means `put the output
10800
# Copy depcomp to subdir because otherwise we won't find it if we're
10801
# using a relative directory.
10802
cp "$am_depcomp" conftest.dir
10804
# We will build objects and dependencies in a subdirectory because
10805
# it helps to detect inapplicable dependency modes. For instance
10806
# both Tru64's cc and ICC support -MD to output dependencies as a
10807
# side effect of compilation, but ICC will put the dependencies in
10808
# the current directory while Tru64 will put them in the object
10812
am_cv_CXX_dependencies_compiler_type=none
10813
if test "$am_compiler_list" = ""; then
10814
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10816
am__universal=false
10817
case " $depcc " in #(
10818
*\ -arch\ *\ -arch\ *) am__universal=true ;;
10821
for depmode in $am_compiler_list; do
10822
# Setup a source with many dependencies, because some compilers
10823
# like to wrap large dependency lists on column 80 (with \), and
10824
# we should not choose a depcomp mode which is confused by this.
10826
# We need to recreate these files for each test, as the compiler may
10827
# overwrite some of them when testing with obscure command lines.
10828
# This happens at least with the AIX C compiler.
10830
for i in 1 2 3 4 5 6; do
10831
echo '#include "conftst'$i'.h"' >> sub/conftest.c
10832
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10833
# Solaris 8's {/usr,}/bin/sh.
10834
touch sub/conftst$i.h
10836
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10838
# We check with `-c' and `-o' for the sake of the "dashmstdout"
10839
# mode. It turns out that the SunPro C++ compiler does not properly
10840
# handle `-M -o', and we need to detect this. Also, some Intel
10841
# versions had trouble with output in subdirs
10842
am__obj=sub/conftest.${OBJEXT-o}
10843
am__minus_obj="-o $am__obj"
10846
# This depmode causes a compiler race in universal mode.
10847
test "$am__universal" = false || continue
10850
# after this tag, mechanisms are not by side-effect, so they'll
10851
# only be used when explicitly requested
10852
if test "x$enable_dependency_tracking" = xyes; then
10858
msvisualcpp | msvcmsys)
10859
# This compiler won't grok `-c -o', but also, the minuso test has
10860
# not run yet. These depmodes are late enough in the game, and
10861
# so weak that their functioning should not be impacted.
10862
am__obj=conftest.${OBJEXT-o}
10867
if depmode=$depmode \
10868
source=sub/conftest.c object=$am__obj \
10869
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10870
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10871
>/dev/null 2>conftest.err &&
10872
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10873
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10874
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10875
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10876
# icc doesn't choke on unknown options, it will just issue warnings
10877
# or remarks (even with -Werror). So we grep stderr for any message
10878
# that says an option was ignored or not supported.
10879
# When given -MP, icc 7.0 and 7.1 complain thusly:
10880
# icc: Command line warning: ignoring option '-M'; no argument required
10881
# The diagnosis changed in icc 8.0:
10882
# icc: Command line remark: option '-MP' not supported
10883
if (grep 'ignoring option' conftest.err ||
10884
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10885
am_cv_CXX_dependencies_compiler_type=$depmode
10892
rm -rf conftest.dir
10894
am_cv_CXX_dependencies_compiler_type=none
10898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10899
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10900
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10903
test "x$enable_dependency_tracking" != xno \
10904
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10905
am__fastdepCXX_TRUE=
10906
am__fastdepCXX_FALSE='#'
10908
am__fastdepCXX_TRUE='#'
10909
am__fastdepCXX_FALSE=
10915
ac_cpp='$CXXCPP $CPPFLAGS'
10916
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10917
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10918
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10919
if test -z "$CXX"; then
10920
if test -n "$CCC"; then
10923
if test -n "$ac_tool_prefix"; then
10924
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10926
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10927
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10929
$as_echo_n "checking for $ac_word... " >&6; }
10930
if test "${ac_cv_prog_CXX+set}" = set; then :
10931
$as_echo_n "(cached) " >&6
10933
if test -n "$CXX"; then
10934
ac_cv_prog_CXX="$CXX" # Let the user override the test.
10936
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937
for as_dir in $PATH
10940
test -z "$as_dir" && as_dir=.
10941
for ac_exec_ext in '' $ac_executable_extensions; do
10942
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10943
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10944
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953
CXX=$ac_cv_prog_CXX
10954
if test -n "$CXX"; then
10955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10956
$as_echo "$CXX" >&6; }
10958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959
$as_echo "no" >&6; }
10963
test -n "$CXX" && break
10966
if test -z "$CXX"; then
10968
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10970
# Extract the first word of "$ac_prog", so it can be a program name with args.
10971
set dummy $ac_prog; ac_word=$2
10972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973
$as_echo_n "checking for $ac_word... " >&6; }
10974
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10975
$as_echo_n "(cached) " >&6
10977
if test -n "$ac_ct_CXX"; then
10978
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981
for as_dir in $PATH
10984
test -z "$as_dir" && as_dir=.
10985
for ac_exec_ext in '' $ac_executable_extensions; do
10986
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10987
ac_cv_prog_ac_ct_CXX="$ac_prog"
10988
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10997
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10998
if test -n "$ac_ct_CXX"; then
10999
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11000
$as_echo "$ac_ct_CXX" >&6; }
11002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003
$as_echo "no" >&6; }
11007
test -n "$ac_ct_CXX" && break
11010
if test "x$ac_ct_CXX" = x; then
11013
case $cross_compiling:$ac_tool_warned in
11015
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11016
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11017
ac_tool_warned=yes ;;
11025
# Provide some information about the compiler.
11026
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11029
for ac_option in --version -v -V -qversion; do
11030
{ { ac_try="$ac_compiler $ac_option >&5"
11031
case "(($ac_try" in
11032
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033
*) ac_try_echo=$ac_try;;
11035
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11036
$as_echo "$ac_try_echo"; } >&5
11037
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
11039
if test -s conftest.err; then
11041
... rest of stderr output deleted ...
11042
10q' conftest.err >conftest.er1
11043
cat conftest.er1 >&5
11044
rm -f conftest.er1 conftest.err
11046
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11047
test $ac_status = 0; }
11050
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11051
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11052
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11053
$as_echo_n "(cached) " >&6
11055
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056
/* end confdefs.h. */
11069
if ac_fn_cxx_try_compile "$LINENO"; then :
11070
ac_compiler_gnu=yes
11074
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11075
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11079
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11080
if test $ac_compiler_gnu = yes; then
11085
ac_test_CXXFLAGS=${CXXFLAGS+set}
11086
ac_save_CXXFLAGS=$CXXFLAGS
11087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11088
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11089
if test "${ac_cv_prog_cxx_g+set}" = set; then :
11090
$as_echo_n "(cached) " >&6
11092
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11093
ac_cxx_werror_flag=yes
11094
ac_cv_prog_cxx_g=no
11096
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097
/* end confdefs.h. */
11107
if ac_fn_cxx_try_compile "$LINENO"; then :
11108
ac_cv_prog_cxx_g=yes
11111
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112
/* end confdefs.h. */
11122
if ac_fn_cxx_try_compile "$LINENO"; then :
11125
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11127
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128
/* end confdefs.h. */
11138
if ac_fn_cxx_try_compile "$LINENO"; then :
11139
ac_cv_prog_cxx_g=yes
11141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11143
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11145
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11146
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11149
$as_echo "$ac_cv_prog_cxx_g" >&6; }
11150
if test "$ac_test_CXXFLAGS" = set; then
11151
CXXFLAGS=$ac_save_CXXFLAGS
11152
elif test $ac_cv_prog_cxx_g = yes; then
11153
if test "$GXX" = yes; then
11159
if test "$GXX" = yes; then
11166
ac_cpp='$CPP $CPPFLAGS'
11167
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11171
depcc="$CXX" am_compiler_list=
11173
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11174
$as_echo_n "checking dependency style of $depcc... " >&6; }
11175
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11176
$as_echo_n "(cached) " >&6
11178
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11179
# We make a subdir and do the tests there. Otherwise we can end up
11180
# making bogus files that we don't know about and never remove. For
11181
# instance it was reported that on HP-UX the gcc test will end up
11182
# making a dummy file named `D' -- because `-MD' means `put the output
11185
# Copy depcomp to subdir because otherwise we won't find it if we're
11186
# using a relative directory.
11187
cp "$am_depcomp" conftest.dir
11189
# We will build objects and dependencies in a subdirectory because
11190
# it helps to detect inapplicable dependency modes. For instance
11191
# both Tru64's cc and ICC support -MD to output dependencies as a
11192
# side effect of compilation, but ICC will put the dependencies in
11193
# the current directory while Tru64 will put them in the object
11197
am_cv_CXX_dependencies_compiler_type=none
11198
if test "$am_compiler_list" = ""; then
11199
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11201
am__universal=false
11202
case " $depcc " in #(
11203
*\ -arch\ *\ -arch\ *) am__universal=true ;;
11206
for depmode in $am_compiler_list; do
11207
# Setup a source with many dependencies, because some compilers
11208
# like to wrap large dependency lists on column 80 (with \), and
11209
# we should not choose a depcomp mode which is confused by this.
11211
# We need to recreate these files for each test, as the compiler may
11212
# overwrite some of them when testing with obscure command lines.
11213
# This happens at least with the AIX C compiler.
11215
for i in 1 2 3 4 5 6; do
11216
echo '#include "conftst'$i'.h"' >> sub/conftest.c
11217
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11218
# Solaris 8's {/usr,}/bin/sh.
11219
touch sub/conftst$i.h
11221
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11223
# We check with `-c' and `-o' for the sake of the "dashmstdout"
11224
# mode. It turns out that the SunPro C++ compiler does not properly
11225
# handle `-M -o', and we need to detect this. Also, some Intel
11226
# versions had trouble with output in subdirs
11227
am__obj=sub/conftest.${OBJEXT-o}
11228
am__minus_obj="-o $am__obj"
11231
# This depmode causes a compiler race in universal mode.
11232
test "$am__universal" = false || continue
11235
# after this tag, mechanisms are not by side-effect, so they'll
11236
# only be used when explicitly requested
11237
if test "x$enable_dependency_tracking" = xyes; then
11243
msvisualcpp | msvcmsys)
11244
# This compiler won't grok `-c -o', but also, the minuso test has
11245
# not run yet. These depmodes are late enough in the game, and
11246
# so weak that their functioning should not be impacted.
11247
am__obj=conftest.${OBJEXT-o}
11252
if depmode=$depmode \
11253
source=sub/conftest.c object=$am__obj \
11254
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11255
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11256
>/dev/null 2>conftest.err &&
11257
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11258
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11259
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11260
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11261
# icc doesn't choke on unknown options, it will just issue warnings
11262
# or remarks (even with -Werror). So we grep stderr for any message
11263
# that says an option was ignored or not supported.
11264
# When given -MP, icc 7.0 and 7.1 complain thusly:
11265
# icc: Command line warning: ignoring option '-M'; no argument required
11266
# The diagnosis changed in icc 8.0:
11267
# icc: Command line remark: option '-MP' not supported
11268
if (grep 'ignoring option' conftest.err ||
11269
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11270
am_cv_CXX_dependencies_compiler_type=$depmode
11277
rm -rf conftest.dir
11279
am_cv_CXX_dependencies_compiler_type=none
11283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11284
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11285
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11288
test "x$enable_dependency_tracking" != xno \
11289
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11290
am__fastdepCXX_TRUE=
11291
am__fastdepCXX_FALSE='#'
11293
am__fastdepCXX_TRUE='#'
11294
am__fastdepCXX_FALSE=
11298
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11299
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11300
(test "X$CXX" != "Xg++"))) ; then
11302
ac_cpp='$CXXCPP $CPPFLAGS'
11303
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11304
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11305
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11307
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11308
if test -z "$CXXCPP"; then
11309
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11310
$as_echo_n "(cached) " >&6
11312
# Double quotes because CXXCPP needs to be expanded
11313
for CXXCPP in "$CXX -E" "/lib/cpp"
11315
ac_preproc_ok=false
11316
for ac_cxx_preproc_warn_flag in '' yes
11318
# Use a header file that comes with gcc, so configuring glibc
11319
# with a fresh cross-compiler works.
11320
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321
# <limits.h> exists even on freestanding compilers.
11322
# On the NeXT, cc -E runs the code through the compiler's parser,
11323
# not just through cpp. "Syntax error" is here to catch this case.
11324
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325
/* end confdefs.h. */
11327
# include <limits.h>
11329
# include <assert.h>
11333
if ac_fn_cxx_try_cpp "$LINENO"; then :
11336
# Broken: fails on valid input.
11339
rm -f conftest.err conftest.$ac_ext
11341
# OK, works on sane cases. Now check whether nonexistent headers
11342
# can be detected and how.
11343
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344
/* end confdefs.h. */
11345
#include <ac_nonexistent.h>
11347
if ac_fn_cxx_try_cpp "$LINENO"; then :
11348
# Broken: success on invalid input.
11351
# Passes both tests.
11355
rm -f conftest.err conftest.$ac_ext
11358
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11359
rm -f conftest.err conftest.$ac_ext
11360
if $ac_preproc_ok; then :
11365
ac_cv_prog_CXXCPP=$CXXCPP
11368
CXXCPP=$ac_cv_prog_CXXCPP
11370
ac_cv_prog_CXXCPP=$CXXCPP
11372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11373
$as_echo "$CXXCPP" >&6; }
11374
ac_preproc_ok=false
11375
for ac_cxx_preproc_warn_flag in '' yes
11377
# Use a header file that comes with gcc, so configuring glibc
11378
# with a fresh cross-compiler works.
11379
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11380
# <limits.h> exists even on freestanding compilers.
11381
# On the NeXT, cc -E runs the code through the compiler's parser,
11382
# not just through cpp. "Syntax error" is here to catch this case.
11383
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384
/* end confdefs.h. */
11386
# include <limits.h>
11388
# include <assert.h>
11392
if ac_fn_cxx_try_cpp "$LINENO"; then :
11395
# Broken: fails on valid input.
11398
rm -f conftest.err conftest.$ac_ext
11400
# OK, works on sane cases. Now check whether nonexistent headers
11401
# can be detected and how.
11402
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403
/* end confdefs.h. */
11404
#include <ac_nonexistent.h>
11406
if ac_fn_cxx_try_cpp "$LINENO"; then :
11407
# Broken: success on invalid input.
11410
# Passes both tests.
11414
rm -f conftest.err conftest.$ac_ext
11417
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11418
rm -f conftest.err conftest.$ac_ext
11419
if $ac_preproc_ok; then :
11422
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11423
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11424
_lt_caught_CXX_error=yes; }
11428
ac_cpp='$CPP $CPPFLAGS'
11429
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11430
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11431
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11434
_lt_caught_CXX_error=yes
11441
ac_cpp='$CXXCPP $CPPFLAGS'
11442
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11443
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11444
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11446
archive_cmds_need_lc_CXX=no
11447
allow_undefined_flag_CXX=
11448
always_export_symbols_CXX=no
11449
archive_expsym_cmds_CXX=
11450
compiler_needs_object_CXX=no
11451
export_dynamic_flag_spec_CXX=
11452
hardcode_direct_CXX=no
11453
hardcode_direct_absolute_CXX=no
11454
hardcode_libdir_flag_spec_CXX=
11455
hardcode_libdir_flag_spec_ld_CXX=
11456
hardcode_libdir_separator_CXX=
11457
hardcode_minus_L_CXX=no
11458
hardcode_shlibpath_var_CXX=unsupported
11459
hardcode_automatic_CXX=no
11460
inherit_rpath_CXX=no
11462
module_expsym_cmds_CXX=
11463
link_all_deplibs_CXX=unknown
11464
old_archive_cmds_CXX=$old_archive_cmds
11465
no_undefined_flag_CXX=
11466
whole_archive_flag_spec_CXX=
11467
enable_shared_with_static_runtimes_CXX=no
11469
# Source file extension for C++ test sources.
11472
# Object file extension for compiled C++ test sources.
11476
# No sense in running all these tests if we already determined that
11477
# the CXX compiler isn't working. Some variables (like enable_shared)
11478
# are currently assumed to apply to all compilers on this platform,
11479
# and will be corrupted by setting them based on a non-working compiler.
11480
if test "$_lt_caught_CXX_error" != yes; then
11481
# Code to be used in simple compile tests
11482
lt_simple_compile_test_code="int some_variable = 0;"
11484
# Code to be used in simple link tests
11485
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11487
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11494
# If no C compiler was specified, use CC.
11497
# If no C compiler flags were specified, use CFLAGS.
11498
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11500
# Allow CC to be a program name with arguments.
11504
# save warnings/boilerplate of simple test code
11505
ac_outfile=conftest.$ac_objext
11506
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11507
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11508
_lt_compiler_boilerplate=`cat conftest.err`
11511
ac_outfile=conftest.$ac_objext
11512
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11513
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11514
_lt_linker_boilerplate=`cat conftest.err`
11518
# Allow CC to be a program name with arguments.
11523
lt_save_with_gnu_ld=$with_gnu_ld
11524
lt_save_path_LD=$lt_cv_path_LD
11525
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11526
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11528
$as_unset lt_cv_prog_gnu_ld
11530
if test -n "${lt_cv_path_LDCXX+set}"; then
11531
lt_cv_path_LD=$lt_cv_path_LDCXX
11533
$as_unset lt_cv_path_LD
11535
test -z "${LDCXX+set}" || LD=$LDCXX
11539
for cc_temp in $compiler""; do
11541
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11542
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11547
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11550
if test -n "$compiler"; then
11551
# We don't want -fno-exception when compiling C++ code, so set the
11552
# no_builtin_flag separately
11553
if test "$GXX" = yes; then
11554
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11556
lt_prog_compiler_no_builtin_flag_CXX=
11559
if test "$GXX" = yes; then
11560
# Set up default GNU C++ configuration
11564
# Check whether --with-gnu-ld was given.
11565
if test "${with_gnu_ld+set}" = set; then :
11566
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11572
if test "$GCC" = yes; then
11573
# Check if gcc -print-prog-name=ld gives a path.
11574
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11575
$as_echo_n "checking for ld used by $CC... " >&6; }
11578
# gcc leaves a trailing carriage return which upsets mingw
11579
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11581
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11584
# Accept absolute paths.
11586
re_direlt='/[^/][^/]*/\.\./'
11587
# Canonicalize the pathname of ld
11588
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11589
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11590
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11592
test -z "$LD" && LD="$ac_prog"
11595
# If it fails, then pretend we aren't using GCC.
11599
# If it is relative, then search for the first ld in PATH.
11600
with_gnu_ld=unknown
11603
elif test "$with_gnu_ld" = yes; then
11604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11605
$as_echo_n "checking for GNU ld... " >&6; }
11607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11608
$as_echo_n "checking for non-GNU ld... " >&6; }
11610
if test "${lt_cv_path_LD+set}" = set; then :
11611
$as_echo_n "(cached) " >&6
11613
if test -z "$LD"; then
11614
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11615
for ac_dir in $PATH; do
11617
test -z "$ac_dir" && ac_dir=.
11618
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11619
lt_cv_path_LD="$ac_dir/$ac_prog"
11620
# Check to see if the program is GNU ld. I'd rather use --version,
11621
# but apparently some variants of GNU ld only accept -v.
11622
# Break only if it was the GNU/non-GNU ld that we prefer.
11623
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11624
*GNU* | *'with BFD'*)
11625
test "$with_gnu_ld" != no && break
11628
test "$with_gnu_ld" != yes && break
11635
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11639
LD="$lt_cv_path_LD"
11640
if test -n "$LD"; then
11641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11642
$as_echo "$LD" >&6; }
11644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645
$as_echo "no" >&6; }
11647
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11649
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11650
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11651
$as_echo_n "(cached) " >&6
11653
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11654
case `$LD -v 2>&1 </dev/null` in
11655
*GNU* | *'with BFD'*)
11656
lt_cv_prog_gnu_ld=yes
11659
lt_cv_prog_gnu_ld=no
11663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11664
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11665
with_gnu_ld=$lt_cv_prog_gnu_ld
11673
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11674
# archiving commands below assume that GNU ld is being used.
11675
if test "$with_gnu_ld" = yes; then
11676
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11677
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'
11679
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11680
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11682
# If archive_cmds runs LD, not CC, wlarc should be empty
11683
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11684
# investigate it a little bit more. (MM)
11687
# ancient GNU ld didn't support --whole-archive et. al.
11688
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11689
$GREP 'no-whole-archive' > /dev/null; then
11690
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11692
whole_archive_flag_spec_CXX=
11698
# A generic and very simple default shared library creation
11699
# command for GNU C++ for the case where it uses the native
11700
# linker, instead of GNU ld. If possible, this setting should
11701
# overridden to take advantage of the native linker features on
11702
# the platform it is being used on.
11703
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11706
# Commands to make compiler produce verbose output that lists
11707
# what "hidden" libraries, object files and flags are used when
11708
# linking a shared library.
11709
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11717
# PORTME: fill in a description of your system's C++ link characteristics
11718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11719
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11723
# FIXME: insert proper C++ library support
11727
if test "$host_cpu" = ia64; then
11728
# On IA64, the linker does run time linking by default, so we don't
11729
# have to do anything special.
11730
aix_use_runtimelinking=no
11731
exp_sym_flag='-Bexport'
11734
aix_use_runtimelinking=no
11736
# Test if we are trying to use run time linking or normal
11737
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11738
# need to do runtime linking.
11739
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11740
for ld_flag in $LDFLAGS; do
11743
aix_use_runtimelinking=yes
11751
exp_sym_flag='-bexport'
11752
no_entry_flag='-bnoentry'
11755
# When large executables or shared objects are built, AIX ld can
11756
# have problems creating the table of contents. If linking a library
11757
# or program results in "error TOC overflow" add -mminimal-toc to
11758
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11759
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11761
archive_cmds_CXX=''
11762
hardcode_direct_CXX=yes
11763
hardcode_direct_absolute_CXX=yes
11764
hardcode_libdir_separator_CXX=':'
11765
link_all_deplibs_CXX=yes
11766
file_list_spec_CXX='${wl}-f,'
11768
if test "$GXX" = yes; then
11769
case $host_os in aix4.[012]|aix4.[012].*)
11770
# We only want to do this on AIX 4.2 and lower, the check
11771
# below for broken collect2 doesn't work under 4.3+
11772
collect2name=`${CC} -print-prog-name=collect2`
11773
if test -f "$collect2name" &&
11774
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11776
# We have reworked collect2
11779
# We have old collect2
11780
hardcode_direct_CXX=unsupported
11781
# It fails to find uninstalled libraries when the uninstalled
11782
# path is not listed in the libpath. Setting hardcode_minus_L
11783
# to unsupported forces relinking
11784
hardcode_minus_L_CXX=yes
11785
hardcode_libdir_flag_spec_CXX='-L$libdir'
11786
hardcode_libdir_separator_CXX=
11789
shared_flag='-shared'
11790
if test "$aix_use_runtimelinking" = yes; then
11791
shared_flag="$shared_flag "'${wl}-G'
11795
if test "$host_cpu" = ia64; then
11796
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11797
# chokes on -Wl,-G. The following line is correct:
11800
if test "$aix_use_runtimelinking" = yes; then
11801
shared_flag='${wl}-G'
11803
shared_flag='${wl}-bM:SRE'
11808
export_dynamic_flag_spec_CXX='${wl}-bexpall'
11809
# It seems that -bexpall does not export symbols beginning with
11810
# underscore (_), so it is better to generate a list of symbols to
11812
always_export_symbols_CXX=yes
11813
if test "$aix_use_runtimelinking" = yes; then
11814
# Warning - without using the other runtime loading flags (-brtl),
11815
# -berok will link without error, but may produce a broken library.
11816
allow_undefined_flag_CXX='-berok'
11817
# Determine the default libpath from the value encoded in an empty
11819
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820
/* end confdefs.h. */
11830
if ac_fn_cxx_try_link "$LINENO"; then :
11832
lt_aix_libpath_sed='
11833
/Import File Strings/,/^$/ {
11839
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11840
# Check for a 64-bit object if we didn't find anything.
11841
if test -z "$aix_libpath"; then
11842
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11845
rm -f core conftest.err conftest.$ac_objext \
11846
conftest$ac_exeext conftest.$ac_ext
11847
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11849
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11851
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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11853
if test "$host_cpu" = ia64; then
11854
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11855
allow_undefined_flag_CXX="-z nodefs"
11856
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"
11858
# Determine the default libpath from the value encoded in an
11859
# empty executable.
11860
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861
/* end confdefs.h. */
11871
if ac_fn_cxx_try_link "$LINENO"; then :
11873
lt_aix_libpath_sed='
11874
/Import File Strings/,/^$/ {
11880
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11881
# Check for a 64-bit object if we didn't find anything.
11882
if test -z "$aix_libpath"; then
11883
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11886
rm -f core conftest.err conftest.$ac_objext \
11887
conftest$ac_exeext conftest.$ac_ext
11888
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11890
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11891
# Warning - without using the other run time loading flags,
11892
# -berok will link without error, but may produce a broken library.
11893
no_undefined_flag_CXX=' ${wl}-bernotok'
11894
allow_undefined_flag_CXX=' ${wl}-berok'
11895
# Exported symbols can be pulled into shared objects from archives
11896
whole_archive_flag_spec_CXX='$convenience'
11897
archive_cmds_need_lc_CXX=yes
11898
# This is similar to how AIX traditionally builds its shared
11900
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'
11906
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11907
allow_undefined_flag_CXX=unsupported
11908
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11909
# support --undefined. This deserves some investigation. FIXME
11910
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11917
case $cc_basename in
11919
# FIXME: insert proper C++ library support
11925
cygwin* | mingw* | pw32* | cegcc*)
11926
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11927
# as there is no search path for DLLs.
11928
hardcode_libdir_flag_spec_CXX='-L$libdir'
11929
allow_undefined_flag_CXX=unsupported
11930
always_export_symbols_CXX=no
11931
enable_shared_with_static_runtimes_CXX=yes
11933
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11934
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'
11935
# If the export-symbols file already is a .def file (1st line
11936
# is EXPORTS), use it as is; otherwise, prepend...
11937
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11938
cp $export_symbols $output_objdir/$soname.def;
11940
echo EXPORTS > $output_objdir/$soname.def;
11941
cat $export_symbols >> $output_objdir/$soname.def;
11943
$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'
11948
darwin* | rhapsody*)
11951
archive_cmds_need_lc_CXX=no
11952
hardcode_direct_CXX=no
11953
hardcode_automatic_CXX=yes
11954
hardcode_shlibpath_var_CXX=unsupported
11955
whole_archive_flag_spec_CXX=''
11956
link_all_deplibs_CXX=yes
11957
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11958
case $cc_basename in
11959
ifort*) _lt_dar_can_shared=yes ;;
11960
*) _lt_dar_can_shared=$GCC ;;
11962
if test "$_lt_dar_can_shared" = "yes"; then
11963
output_verbose_link_cmd=echo
11964
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}"
11965
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11966
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}"
11967
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}"
11968
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11969
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}"
11970
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}"
11980
case $cc_basename in
11982
# FIXME: insert proper C++ library support
11986
# Green Hills C++ Compiler
11987
# FIXME: insert proper C++ library support
11991
# FIXME: insert proper C++ library support
11998
# C++ shared libraries reported to be fairly broken before
12004
archive_cmds_need_lc_CXX=no
12007
freebsd* | dragonfly*)
12008
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12017
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12018
hardcode_libdir_separator_CXX=:
12019
export_dynamic_flag_spec_CXX='${wl}-E'
12020
hardcode_direct_CXX=yes
12021
hardcode_minus_L_CXX=yes # Not in the search PATH,
12022
# but as the default
12023
# location of the library.
12025
case $cc_basename in
12027
# FIXME: insert proper C++ library support
12031
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'
12032
# Commands to make compiler produce verbose output that lists
12033
# what "hidden" libraries, object files and flags are used when
12034
# linking a shared library.
12036
# There doesn't appear to be a way to prevent this compiler from
12037
# explicitly linking system object files so we need to strip them
12038
# from the output so that they don't get included in the library
12040
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12043
if test "$GXX" = yes; then
12044
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'
12046
# FIXME: insert proper C++ library support
12054
if test $with_gnu_ld = no; then
12055
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12056
hardcode_libdir_separator_CXX=:
12062
export_dynamic_flag_spec_CXX='${wl}-E'
12068
hardcode_direct_CXX=no
12069
hardcode_shlibpath_var_CXX=no
12072
hardcode_direct_CXX=yes
12073
hardcode_direct_absolute_CXX=yes
12074
hardcode_minus_L_CXX=yes # Not in the search PATH,
12075
# but as the default
12076
# location of the library.
12080
case $cc_basename in
12082
# FIXME: insert proper C++ library support
12088
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12091
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12094
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12097
# Commands to make compiler produce verbose output that lists
12098
# what "hidden" libraries, object files and flags are used when
12099
# linking a shared library.
12101
# There doesn't appear to be a way to prevent this compiler from
12102
# explicitly linking system object files so we need to strip them
12103
# from the output so that they don't get included in the library
12105
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 "X$list" | $Xsed'
12108
if test "$GXX" = yes; then
12109
if test $with_gnu_ld = no; then
12112
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12115
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12118
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'
12123
# FIXME: insert proper C++ library support
12131
hardcode_direct_CXX=no
12132
hardcode_shlibpath_var_CXX=no
12133
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12134
export_dynamic_flag_spec_CXX='${wl}-E'
12135
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12136
# Instead, shared libraries are loaded at an image base (0x10000000 by
12137
# default) and relocated if they conflict, which is a slow very memory
12138
# consuming and fragmenting process. To avoid this, we pick a random,
12139
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12140
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12141
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'
12142
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'
12145
case $cc_basename in
12148
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12150
# Archives containing C++ object files must be created using
12151
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12152
# necessary to make sure instantiated templates are included
12154
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12157
if test "$GXX" = yes; then
12158
if test "$with_gnu_ld" = no; then
12159
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12161
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12164
link_all_deplibs_CXX=yes
12167
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12168
hardcode_libdir_separator_CXX=:
12169
inherit_rpath_CXX=yes
12172
linux* | k*bsd*-gnu)
12173
case $cc_basename in
12175
# Kuck and Associates, Inc. (KAI) C++ Compiler
12177
# KCC will only create a shared library if the output file
12178
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12179
# to its proper name (with version) after linking.
12180
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'
12181
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'
12182
# Commands to make compiler produce verbose output that lists
12183
# what "hidden" libraries, object files and flags are used when
12184
# linking a shared library.
12186
# There doesn't appear to be a way to prevent this compiler from
12187
# explicitly linking system object files so we need to strip them
12188
# from the output so that they don't get included in the library
12190
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 "X$list" | $Xsed'
12192
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12193
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12195
# Archives containing C++ object files must be created using
12196
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12197
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12202
# version 8.0 and above of icpc choke on multiply defined symbols
12203
# if we add $predep_objects and $postdep_objects, however 7.1 and
12204
# earlier do not add the objects themselves.
12205
case `$CC -V 2>&1` in
12207
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12208
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'
12210
*) # Version 8.0 or newer
12213
ia64*) tmp_idyn=' -i_dynamic';;
12215
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12216
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'
12219
archive_cmds_need_lc_CXX=no
12220
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12221
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12222
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12225
# Portland Group C++ compiler
12227
*pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12228
prelink_cmds_CXX='tpldir=Template.dir~
12230
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12231
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12232
old_archive_cmds_CXX='tpldir=Template.dir~
12234
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12235
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12237
archive_cmds_CXX='tpldir=Template.dir~
12239
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12240
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12241
archive_expsym_cmds_CXX='tpldir=Template.dir~
12243
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12244
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12246
*) # Version 6 will use weak symbols
12247
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12248
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'
12252
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12253
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12254
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'
12258
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12259
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'
12261
runpath_var=LD_RUN_PATH
12262
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12263
hardcode_libdir_separator_CXX=:
12265
# Commands to make compiler produce verbose output that lists
12266
# what "hidden" libraries, object files and flags are used when
12267
# linking a shared library.
12269
# There doesn't appear to be a way to prevent this compiler from
12270
# explicitly linking system object files so we need to strip them
12271
# from the output so that they don't get included in the library
12273
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12276
# IBM XL 8.0 on PPC, with GNU ld
12277
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12278
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12279
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12280
if test "x$supports_anon_versioning" = xyes; then
12281
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12282
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12283
echo "local: *; };" >> $output_objdir/$libname.ver~
12284
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12288
case `$CC -V 2>&1 | sed 5q` in
12291
no_undefined_flag_CXX=' -zdefs'
12292
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12293
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'
12294
hardcode_libdir_flag_spec_CXX='-R$libdir'
12295
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'
12296
compiler_needs_object_CXX=yes
12298
# Not sure whether something based on
12299
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12301
output_verbose_link_cmd='echo'
12303
# Archives containing C++ object files must be created using
12304
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12305
# necessary to make sure instantiated templates are included
12307
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12315
# FIXME: insert proper C++ library support
12320
# FIXME: insert proper C++ library support
12325
case $cc_basename in
12327
# FIXME: insert proper C++ library support
12331
# FIXME: insert proper C++ library support
12338
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12339
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12341
hardcode_libdir_flag_spec_CXX='-R$libdir'
12342
hardcode_direct_CXX=yes
12343
hardcode_shlibpath_var_CXX=no
12345
# Workaround some broken pre-1.5 toolchains
12346
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12354
# C++ shared libraries are fairly broken
12359
if test -f /usr/libexec/ld.so; then
12360
hardcode_direct_CXX=yes
12361
hardcode_shlibpath_var_CXX=no
12362
hardcode_direct_absolute_CXX=yes
12363
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12364
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12365
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12366
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12367
export_dynamic_flag_spec_CXX='${wl}-E'
12368
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12370
output_verbose_link_cmd=echo
12376
osf3* | osf4* | osf5*)
12377
case $cc_basename in
12379
# Kuck and Associates, Inc. (KAI) C++ Compiler
12381
# KCC will only create a shared library if the output file
12382
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12383
# to its proper name (with version) after linking.
12384
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'
12386
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12387
hardcode_libdir_separator_CXX=:
12389
# Archives containing C++ object files must be created using
12390
# the KAI C++ compiler.
12392
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12393
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12397
# Rational C++ 2.4.1
12398
# FIXME: insert proper C++ library support
12404
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12405
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12406
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12409
allow_undefined_flag_CXX=' -expect_unresolved \*'
12410
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12411
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12412
echo "-hidden">> $lib.exp~
12413
$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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12415
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12419
hardcode_libdir_separator_CXX=:
12421
# Commands to make compiler produce verbose output that lists
12422
# what "hidden" libraries, object files and flags are used when
12423
# linking a shared library.
12425
# There doesn't appear to be a way to prevent this compiler from
12426
# explicitly linking system object files so we need to strip them
12427
# from the output so that they don't get included in the library
12429
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12432
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12433
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12436
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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12439
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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12443
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12444
hardcode_libdir_separator_CXX=:
12446
# Commands to make compiler produce verbose output that lists
12447
# what "hidden" libraries, object files and flags are used when
12448
# linking a shared library.
12449
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12452
# FIXME: insert proper C++ library support
12460
# FIXME: insert proper C++ library support
12465
case $cc_basename in
12468
# FIXME: insert proper C++ library support
12473
# FIXME: insert proper C++ library support
12477
# FIXME: insert proper C++ library support
12484
case $cc_basename in
12486
# Sun C++ 4.2, 5.x and Centerline C++
12487
archive_cmds_need_lc_CXX=yes
12488
no_undefined_flag_CXX=' -zdefs'
12489
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12490
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12491
$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'
12493
hardcode_libdir_flag_spec_CXX='-R$libdir'
12494
hardcode_shlibpath_var_CXX=no
12496
solaris2.[0-5] | solaris2.[0-5].*) ;;
12498
# The compiler driver will combine and reorder linker options,
12499
# but understands `-z linker_flag'.
12500
# Supported since Solaris 2.6 (maybe 2.5.1?)
12501
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12504
link_all_deplibs_CXX=yes
12506
output_verbose_link_cmd='echo'
12508
# Archives containing C++ object files must be created using
12509
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12510
# necessary to make sure instantiated templates are included
12512
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12515
# Green Hills C++ Compiler
12516
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12518
# The C++ compiler must be used to create the archive.
12519
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12522
# GNU C++ compiler with Solaris linker
12523
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12524
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12525
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12526
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12527
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12528
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12530
# Commands to make compiler produce verbose output that lists
12531
# what "hidden" libraries, object files and flags are used when
12532
# linking a shared library.
12533
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12535
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12537
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12538
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12539
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12541
# Commands to make compiler produce verbose output that lists
12542
# what "hidden" libraries, object files and flags are used when
12543
# linking a shared library.
12544
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12547
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12549
solaris2.[0-5] | solaris2.[0-5].*) ;;
12551
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12559
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12560
no_undefined_flag_CXX='${wl}-z,text'
12561
archive_cmds_need_lc_CXX=no
12562
hardcode_shlibpath_var_CXX=no
12563
runpath_var='LD_RUN_PATH'
12565
case $cc_basename in
12567
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12568
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12571
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12572
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12577
sysv5* | sco3.2v5* | sco5v6*)
12578
# Note: We can NOT use -z defs as we might desire, because we do not
12579
# link with -lc, and that would cause any symbols used from libc to
12580
# always be unresolved, which means just about no library would
12581
# ever link correctly. If we're not using GNU ld we use -z text
12582
# though, which does catch some bad symbols but isn't as heavy-handed
12584
no_undefined_flag_CXX='${wl}-z,text'
12585
allow_undefined_flag_CXX='${wl}-z,nodefs'
12586
archive_cmds_need_lc_CXX=no
12587
hardcode_shlibpath_var_CXX=no
12588
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12589
hardcode_libdir_separator_CXX=':'
12590
link_all_deplibs_CXX=yes
12591
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12592
runpath_var='LD_RUN_PATH'
12594
case $cc_basename in
12596
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12597
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12600
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12601
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12607
case $cc_basename in
12609
# NonStop-UX NCC 3.20
12610
# FIXME: insert proper C++ library support
12614
# FIXME: insert proper C++ library support
12621
# FIXME: insert proper C++ library support
12626
# FIXME: insert proper C++ library support
12631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12632
$as_echo "$ld_shlibs_CXX" >&6; }
12633
test "$ld_shlibs_CXX" = no && can_build_shared=no
12639
## There is no encapsulation within the following macros, do not change
12640
## the running order or otherwise move them around unless you know exactly
12641
## what you are doing...
12642
# Dependencies to place before and after the object being linked:
12643
predep_objects_CXX=
12644
postdep_objects_CXX=
12647
compiler_lib_search_path_CXX=
12649
cat > conftest.$ac_ext <<_LT_EOF
12653
Foo (void) { a = 0; }
12659
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12660
(eval $ac_compile) 2>&5
12662
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12663
test $ac_status = 0; }; then
12664
# Parse the compiler output and extract the necessary
12665
# objects, libraries and library flags.
12667
# Sentinel used to keep track of whether or not we are before
12668
# the conftest object file.
12669
pre_test_object_deps_done=no
12671
for p in `eval "$output_verbose_link_cmd"`; do
12675
# Some compilers place space between "-{L,R}" and the path.
12676
# Remove the space.
12677
if test $p = "-L" ||
12678
test $p = "-R"; then
12685
if test "$pre_test_object_deps_done" = no; then
12688
# Internal compiler library paths should come after those
12689
# provided the user. The postdeps already come after the
12690
# user supplied libs so there is no need to process them.
12691
if test -z "$compiler_lib_search_path_CXX"; then
12692
compiler_lib_search_path_CXX="${prev}${p}"
12694
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12697
# The "-l" case would never come before the object being
12698
# linked, so don't bother handling this case.
12701
if test -z "$postdeps_CXX"; then
12702
postdeps_CXX="${prev}${p}"
12704
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12710
# This assumes that the test object file only shows up
12711
# once in the compiler output.
12712
if test "$p" = "conftest.$objext"; then
12713
pre_test_object_deps_done=yes
12717
if test "$pre_test_object_deps_done" = no; then
12718
if test -z "$predep_objects_CXX"; then
12719
predep_objects_CXX="$p"
12721
predep_objects_CXX="$predep_objects_CXX $p"
12724
if test -z "$postdep_objects_CXX"; then
12725
postdep_objects_CXX="$p"
12727
postdep_objects_CXX="$postdep_objects_CXX $p"
12732
*) ;; # Ignore the rest.
12740
echo "libtool.m4: error: problem compiling CXX test program"
12743
$RM -f confest.$objext
12745
# PORTME: override above test on systems where it is broken
12748
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12749
# hack all around it, let's just trust "g++" to DTRT.
12750
predep_objects_CXX=
12751
postdep_objects_CXX=
12756
case `$CC -V 2>&1 | sed 5q` in
12760
# The more standards-conforming stlport4 library is
12761
# incompatible with the Cstd library. Avoid specifying
12762
# it if it's in CXXFLAGS. Ignore libCrun as
12763
# -library=stlport4 depends on it.
12764
case " $CXX $CXXFLAGS " in
12765
*" -library=stlport4 "*)
12766
solaris_use_stlport4=yes
12770
if test "$solaris_use_stlport4" != yes; then
12771
postdeps_CXX='-library=Cstd -library=Crun'
12778
case $cc_basename in
12780
# The more standards-conforming stlport4 library is
12781
# incompatible with the Cstd library. Avoid specifying
12782
# it if it's in CXXFLAGS. Ignore libCrun as
12783
# -library=stlport4 depends on it.
12784
case " $CXX $CXXFLAGS " in
12785
*" -library=stlport4 "*)
12786
solaris_use_stlport4=yes
12790
# Adding this requires a known-good setup of shared libraries for
12791
# Sun compiler versions before 5.6, else PIC objects from an old
12792
# archive will be linked into the output, leading to subtle bugs.
12793
if test "$solaris_use_stlport4" != yes; then
12794
postdeps_CXX='-library=Cstd -library=Crun'
12802
case " $postdeps_CXX " in
12803
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12805
compiler_lib_search_dirs_CXX=
12806
if test -n "${compiler_lib_search_path_CXX}"; then
12807
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12840
lt_prog_compiler_wl_CXX=
12841
lt_prog_compiler_pic_CXX=
12842
lt_prog_compiler_static_CXX=
12844
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12845
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12847
# C++ specific cases for pic, static, wl, etc.
12848
if test "$GXX" = yes; then
12849
lt_prog_compiler_wl_CXX='-Wl,'
12850
lt_prog_compiler_static_CXX='-static'
12854
# All AIX code is PIC.
12855
if test "$host_cpu" = ia64; then
12856
# AIX 5 now supports IA64 processor
12857
lt_prog_compiler_static_CXX='-Bstatic'
12864
# see comment about AmigaOS4 .so support
12865
lt_prog_compiler_pic_CXX='-fPIC'
12868
# FIXME: we need at least 68020 code to build shared libraries, but
12869
# adding the `-m68020' flag to GCC prevents building anything better,
12871
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12876
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12877
# PIC is the default for these OSes.
12879
mingw* | cygwin* | os2* | pw32* | cegcc*)
12880
# This hack is so that the source file can tell whether it is being
12881
# built for inclusion in a dll (and should export symbols for example).
12882
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12883
# (--disable-auto-import) libraries
12884
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12886
darwin* | rhapsody*)
12887
# PIC is the default on this platform
12888
# Common symbols not allowed in MH_DYLIB files
12889
lt_prog_compiler_pic_CXX='-fno-common'
12892
# DJGPP does not support shared libraries at all
12893
lt_prog_compiler_pic_CXX=
12896
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12897
# Instead, we relocate shared libraries at runtime.
12900
if test -d /usr/nec; then
12901
lt_prog_compiler_pic_CXX=-Kconform_pic
12905
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12906
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12907
# sets the default TLS model and affects inlining.
12912
lt_prog_compiler_pic_CXX='-fPIC'
12917
# QNX uses GNU C++, but need to define -shared option too, otherwise
12918
# it will coredump.
12919
lt_prog_compiler_pic_CXX='-fPIC -shared'
12922
lt_prog_compiler_pic_CXX='-fPIC'
12928
# All AIX code is PIC.
12929
if test "$host_cpu" = ia64; then
12930
# AIX 5 now supports IA64 processor
12931
lt_prog_compiler_static_CXX='-Bstatic'
12933
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12937
case $cc_basename in
12939
# Green Hills C++ Compiler
12940
# _LT_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"
12945
case $cc_basename in
12947
lt_prog_compiler_pic_CXX='-KPIC'
12950
# Green Hills C++ Compiler
12951
lt_prog_compiler_pic_CXX='-pic'
12957
freebsd* | dragonfly*)
12958
# FreeBSD uses GNU C++
12960
hpux9* | hpux10* | hpux11*)
12961
case $cc_basename in
12963
lt_prog_compiler_wl_CXX='-Wl,'
12964
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12965
if test "$host_cpu" != ia64; then
12966
lt_prog_compiler_pic_CXX='+Z'
12970
lt_prog_compiler_wl_CXX='-Wl,'
12971
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12977
lt_prog_compiler_pic_CXX='+Z'
12986
# This is c89, which is MS Visual C++ (no shared libs)
12987
# Anyone wants to do a port?
12989
irix5* | irix6* | nonstopux*)
12990
case $cc_basename in
12992
lt_prog_compiler_wl_CXX='-Wl,'
12993
lt_prog_compiler_static_CXX='-non_shared'
12994
# CC pic flag -KPIC is the default.
13000
linux* | k*bsd*-gnu)
13001
case $cc_basename in
13004
lt_prog_compiler_wl_CXX='--backend -Wl,'
13005
lt_prog_compiler_pic_CXX='-fPIC'
13008
# old Intel C++ for x86_64 which still supported -KPIC.
13009
lt_prog_compiler_wl_CXX='-Wl,'
13010
lt_prog_compiler_pic_CXX='-KPIC'
13011
lt_prog_compiler_static_CXX='-static'
13014
# Intel C++, used to be incompatible with GCC.
13015
# ICC 10 doesn't accept -KPIC any more.
13016
lt_prog_compiler_wl_CXX='-Wl,'
13017
lt_prog_compiler_pic_CXX='-fPIC'
13018
lt_prog_compiler_static_CXX='-static'
13021
# Portland Group C++ compiler
13022
lt_prog_compiler_wl_CXX='-Wl,'
13023
lt_prog_compiler_pic_CXX='-fpic'
13024
lt_prog_compiler_static_CXX='-Bstatic'
13028
# Make sure the PIC flag is empty. It appears that all Alpha
13029
# Linux and Compaq Tru64 Unix objects are PIC.
13030
lt_prog_compiler_pic_CXX=
13031
lt_prog_compiler_static_CXX='-non_shared'
13034
# IBM XL 8.0 on PPC
13035
lt_prog_compiler_wl_CXX='-Wl,'
13036
lt_prog_compiler_pic_CXX='-qpic'
13037
lt_prog_compiler_static_CXX='-qstaticlink'
13040
case `$CC -V 2>&1 | sed 5q` in
13043
lt_prog_compiler_pic_CXX='-KPIC'
13044
lt_prog_compiler_static_CXX='-Bstatic'
13045
lt_prog_compiler_wl_CXX='-Qoption ld '
13056
case $cc_basename in
13058
lt_prog_compiler_pic_CXX='-W c,exportall'
13064
netbsd* | netbsdelf*-gnu)
13067
# QNX uses GNU C++, but need to define -shared option too, otherwise
13068
# it will coredump.
13069
lt_prog_compiler_pic_CXX='-fPIC -shared'
13071
osf3* | osf4* | osf5*)
13072
case $cc_basename in
13074
lt_prog_compiler_wl_CXX='--backend -Wl,'
13077
# Rational C++ 2.4.1
13078
lt_prog_compiler_pic_CXX='-pic'
13081
# Digital/Compaq C++
13082
lt_prog_compiler_wl_CXX='-Wl,'
13083
# Make sure the PIC flag is empty. It appears that all Alpha
13084
# Linux and Compaq Tru64 Unix objects are PIC.
13085
lt_prog_compiler_pic_CXX=
13086
lt_prog_compiler_static_CXX='-non_shared'
13095
case $cc_basename in
13097
# Sun C++ 4.2, 5.x and Centerline C++
13098
lt_prog_compiler_pic_CXX='-KPIC'
13099
lt_prog_compiler_static_CXX='-Bstatic'
13100
lt_prog_compiler_wl_CXX='-Qoption ld '
13103
# Green Hills C++ Compiler
13104
lt_prog_compiler_pic_CXX='-PIC'
13111
case $cc_basename in
13114
lt_prog_compiler_pic_CXX='-pic'
13115
lt_prog_compiler_static_CXX='-Bstatic'
13119
lt_prog_compiler_pic_CXX='-pic'
13125
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13126
case $cc_basename in
13128
lt_prog_compiler_wl_CXX='-Wl,'
13129
lt_prog_compiler_pic_CXX='-KPIC'
13130
lt_prog_compiler_static_CXX='-Bstatic'
13135
case $cc_basename in
13137
# NonStop-UX NCC 3.20
13138
lt_prog_compiler_pic_CXX='-KPIC'
13147
lt_prog_compiler_can_build_shared_CXX=no
13153
# For platforms which do not support PIC, -DPIC is meaningless:
13155
lt_prog_compiler_pic_CXX=
13158
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13162
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13167
# Check to make sure the PIC flag actually works.
13169
if test -n "$lt_prog_compiler_pic_CXX"; then
13170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13171
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13172
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13173
$as_echo_n "(cached) " >&6
13175
lt_cv_prog_compiler_pic_works_CXX=no
13176
ac_outfile=conftest.$ac_objext
13177
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13178
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13179
# Insert the option either (1) after the last *FLAGS variable, or
13180
# (2) before a word containing "conftest.", or (3) at the end.
13181
# Note that $ac_compile itself does not contain backslashes and begins
13182
# with a dollar sign (not a hyphen), so the echo should work correctly.
13183
# The option is referenced via a variable to avoid confusing sed.
13184
lt_compile=`echo "$ac_compile" | $SED \
13185
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13186
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13187
-e 's:$: $lt_compiler_flag:'`
13188
(eval echo "\"\$as_me:13188: $lt_compile\"" >&5)
13189
(eval "$lt_compile" 2>conftest.err)
13191
cat conftest.err >&5
13192
echo "$as_me:13192: \$? = $ac_status" >&5
13193
if (exit $ac_status) && test -s "$ac_outfile"; then
13194
# The compiler can only warn and ignore the option if not recognized
13195
# So say no if there are warnings other than the usual output.
13196
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13197
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13198
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13199
lt_cv_prog_compiler_pic_works_CXX=yes
13205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13206
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13208
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13209
case $lt_prog_compiler_pic_CXX in
13211
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13214
lt_prog_compiler_pic_CXX=
13215
lt_prog_compiler_can_build_shared_CXX=no
13223
# Check to make sure the static flag actually works.
13225
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13227
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13228
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13229
$as_echo_n "(cached) " >&6
13231
lt_cv_prog_compiler_static_works_CXX=no
13232
save_LDFLAGS="$LDFLAGS"
13233
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13234
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13235
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13236
# The linker can only warn and ignore the option if not recognized
13237
# So say no if there are warnings
13238
if test -s conftest.err; then
13239
# Append any errors to the config.log.
13240
cat conftest.err 1>&5
13241
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13242
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13243
if diff conftest.exp conftest.er2 >/dev/null; then
13244
lt_cv_prog_compiler_static_works_CXX=yes
13247
lt_cv_prog_compiler_static_works_CXX=yes
13251
LDFLAGS="$save_LDFLAGS"
13254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13255
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13257
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13260
lt_prog_compiler_static_CXX=
13266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13267
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13268
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13269
$as_echo_n "(cached) " >&6
13271
lt_cv_prog_compiler_c_o_CXX=no
13272
$RM -r conftest 2>/dev/null
13276
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13278
lt_compiler_flag="-o out/conftest2.$ac_objext"
13279
# Insert the option either (1) after the last *FLAGS variable, or
13280
# (2) before a word containing "conftest.", or (3) at the end.
13281
# Note that $ac_compile itself does not contain backslashes and begins
13282
# with a dollar sign (not a hyphen), so the echo should work correctly.
13283
lt_compile=`echo "$ac_compile" | $SED \
13284
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13285
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13286
-e 's:$: $lt_compiler_flag:'`
13287
(eval echo "\"\$as_me:13287: $lt_compile\"" >&5)
13288
(eval "$lt_compile" 2>out/conftest.err)
13290
cat out/conftest.err >&5
13291
echo "$as_me:13291: \$? = $ac_status" >&5
13292
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13294
# The compiler can only warn and ignore the option if not recognized
13295
# So say no if there are warnings
13296
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13297
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13298
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13299
lt_cv_prog_compiler_c_o_CXX=yes
13304
# SGI C++ compiler will create directory out/ii_files/ for
13305
# template instantiation
13306
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13307
$RM out/* && rmdir out
13313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13314
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13318
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13319
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13320
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13321
$as_echo_n "(cached) " >&6
13323
lt_cv_prog_compiler_c_o_CXX=no
13324
$RM -r conftest 2>/dev/null
13328
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13330
lt_compiler_flag="-o out/conftest2.$ac_objext"
13331
# Insert the option either (1) after the last *FLAGS variable, or
13332
# (2) before a word containing "conftest.", or (3) at the end.
13333
# Note that $ac_compile itself does not contain backslashes and begins
13334
# with a dollar sign (not a hyphen), so the echo should work correctly.
13335
lt_compile=`echo "$ac_compile" | $SED \
13336
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13337
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13338
-e 's:$: $lt_compiler_flag:'`
13339
(eval echo "\"\$as_me:13339: $lt_compile\"" >&5)
13340
(eval "$lt_compile" 2>out/conftest.err)
13342
cat out/conftest.err >&5
13343
echo "$as_me:13343: \$? = $ac_status" >&5
13344
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13346
# The compiler can only warn and ignore the option if not recognized
13347
# So say no if there are warnings
13348
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13349
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13350
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13351
lt_cv_prog_compiler_c_o_CXX=yes
13356
# SGI C++ compiler will create directory out/ii_files/ for
13357
# template instantiation
13358
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13359
$RM out/* && rmdir out
13365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13366
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13371
hard_links="nottested"
13372
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13373
# do not overwrite the value of need_locks provided by the user
13374
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13375
$as_echo_n "checking if we can lock with hard links... " >&6; }
13378
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13380
ln conftest.a conftest.b 2>&5 || hard_links=no
13381
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13383
$as_echo "$hard_links" >&6; }
13384
if test "$hard_links" = no; then
13385
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13386
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13396
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13398
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13401
# If we're using GNU nm, then we don't want the "-C" option.
13402
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13403
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13404
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'
13406
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'
13410
export_symbols_cmds_CXX="$ltdll_cmds"
13412
cygwin* | mingw* | cegcc*)
13413
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'
13415
linux* | k*bsd*-gnu)
13416
link_all_deplibs_CXX=no
13419
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13422
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13425
$as_echo "$ld_shlibs_CXX" >&6; }
13426
test "$ld_shlibs_CXX" = no && can_build_shared=no
13428
with_gnu_ld_CXX=$with_gnu_ld
13436
# Do we need to explicitly link libc?
13438
case "x$archive_cmds_need_lc_CXX" in
13440
# Assume -lc should be added
13441
archive_cmds_need_lc_CXX=yes
13443
if test "$enable_shared" = yes && test "$GCC" = yes; then
13444
case $archive_cmds_CXX in
13446
# FIXME: we may have to deal with multi-command sequences.
13449
# Test whether the compiler implicitly links with -lc since on some
13450
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13451
# to ld, don't add -lc before -lgcc.
13452
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13453
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13455
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13457
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13458
(eval $ac_compile) 2>&5
13460
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13461
test $ac_status = 0; } 2>conftest.err; then
13464
libobjs=conftest.$ac_objext
13466
wl=$lt_prog_compiler_wl_CXX
13467
pic_flag=$lt_prog_compiler_pic_CXX
13473
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13474
allow_undefined_flag_CXX=
13475
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13476
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13478
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13479
test $ac_status = 0; }
13481
archive_cmds_need_lc_CXX=no
13483
archive_cmds_need_lc_CXX=yes
13485
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13487
cat conftest.err 1>&5
13490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13491
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13562
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13564
library_names_spec=
13565
libname_spec='lib$name'
13569
postuninstall_cmds=
13573
shlibpath_overrides_runpath=unknown
13575
dynamic_linker="$host_os ld.so"
13576
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13577
need_lib_prefix=unknown
13578
hardcode_into_libs=no
13580
# when you set need_version to no, make sure it does not cause -set_version
13581
# flags to be left without arguments
13582
need_version=unknown
13587
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13588
shlibpath_var=LIBPATH
13590
# AIX 3 has no versioning support, so we append a major version to the name.
13591
soname_spec='${libname}${release}${shared_ext}$major'
13598
hardcode_into_libs=yes
13599
if test "$host_cpu" = ia64; then
13600
# AIX 5 supports IA64
13601
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13602
shlibpath_var=LD_LIBRARY_PATH
13604
# With GCC up to 2.95.x, collect2 would create an import file
13605
# for dependence libraries. The import file would start with
13606
# the line `#! .'. This would cause the generated library to
13607
# depend on `.', always an invalid library. This was fixed in
13608
# development snapshots of GCC prior to 3.0.
13610
aix4 | aix4.[01] | aix4.[01].*)
13611
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13613
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13616
can_build_shared=no
13620
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13621
# soname into executable. Probably we can add versioning support to
13622
# collect2, so additional links can be useful in future.
13623
if test "$aix_use_runtimelinking" = yes; then
13624
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13625
# instead of lib<name>.a to let people know that these are not
13626
# typical AIX shared libraries.
13627
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13629
# We preserve .a as extension for shared libraries through AIX4.2
13630
# and later when we are not doing run time linking.
13631
library_names_spec='${libname}${release}.a $libname.a'
13632
soname_spec='${libname}${release}${shared_ext}$major'
13634
shlibpath_var=LIBPATH
13641
# Since July 2007 AmigaOS4 officially supports .so libraries.
13642
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13643
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13646
library_names_spec='$libname.ixlibrary $libname.a'
13647
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13648
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'
13654
library_names_spec='${libname}${shared_ext}'
13655
dynamic_linker="$host_os ld.so"
13656
shlibpath_var=LIBRARY_PATH
13662
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13663
soname_spec='${libname}${release}${shared_ext}$major'
13664
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13665
shlibpath_var=LD_LIBRARY_PATH
13666
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13667
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13668
# the default ld.so.conf also contains /usr/contrib/lib and
13669
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13670
# libtool to hard-code these into programs
13673
cygwin* | mingw* | pw32* | cegcc*)
13674
version_type=windows
13679
case $GCC,$host_os in
13680
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13681
library_names_spec='$libname.dll.a'
13682
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13683
postinstall_cmds='base_file=`basename \${file}`~
13684
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13685
dldir=$destdir/`dirname \$dlpath`~
13686
test -d \$dldir || mkdir -p \$dldir~
13687
$install_prog $dir/$dlname \$dldir/$dlname~
13688
chmod a+x \$dldir/$dlname~
13689
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13690
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13692
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13693
dlpath=$dir/\$dldll~
13695
shlibpath_overrides_runpath=yes
13699
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13700
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13701
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13704
# MinGW DLLs use traditional 'lib' prefix
13705
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13706
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13707
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13708
# It is most probably a Windows format PATH printed by
13709
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13710
# path with ; separators, and with drive letters. We can handle the
13711
# drive letters (cygwin fileutils understands them), so leave them,
13712
# especially as we might pass files found there to a mingw objdump,
13713
# which wouldn't understand a cygwinified path. Ahh.
13714
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13716
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13720
# pw32 DLLs use 'pw' prefix rather than 'lib'
13721
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13727
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13730
dynamic_linker='Win32 ld.exe'
13731
# FIXME: first we should search . and the directory the executable is in
13735
darwin* | rhapsody*)
13736
dynamic_linker="$host_os dyld"
13737
version_type=darwin
13740
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13741
soname_spec='${libname}${release}${major}$shared_ext'
13742
shlibpath_overrides_runpath=yes
13743
shlibpath_var=DYLD_LIBRARY_PATH
13744
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13746
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13753
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13754
soname_spec='${libname}${release}${shared_ext}$major'
13755
shlibpath_var=LD_LIBRARY_PATH
13762
freebsd* | dragonfly*)
13763
# DragonFly does not have aout. When/if they implement a new
13764
# versioning mechanism, adjust this.
13765
if test -x /usr/bin/objformat; then
13766
objformat=`/usr/bin/objformat`
13769
freebsd[123]*) objformat=aout ;;
13770
*) objformat=elf ;;
13773
version_type=freebsd-$objformat
13774
case $version_type in
13776
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13781
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13785
shlibpath_var=LD_LIBRARY_PATH
13788
shlibpath_overrides_runpath=yes
13790
freebsd3.[01]* | freebsdelf3.[01]*)
13791
shlibpath_overrides_runpath=yes
13792
hardcode_into_libs=yes
13794
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13795
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13796
shlibpath_overrides_runpath=no
13797
hardcode_into_libs=yes
13799
*) # from 4.6 on, and DragonFly
13800
shlibpath_overrides_runpath=yes
13801
hardcode_into_libs=yes
13810
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13811
soname_spec='${libname}${release}${shared_ext}$major'
13812
shlibpath_var=LD_LIBRARY_PATH
13813
hardcode_into_libs=yes
13816
hpux9* | hpux10* | hpux11*)
13817
# Give a soname corresponding to the major version so that dld.sl refuses to
13818
# link against other versions.
13825
hardcode_into_libs=yes
13826
dynamic_linker="$host_os dld.so"
13827
shlibpath_var=LD_LIBRARY_PATH
13828
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13829
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13830
soname_spec='${libname}${release}${shared_ext}$major'
13831
if test "X$HPUX_IA64_MODE" = X32; then
13832
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13834
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13836
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13840
hardcode_into_libs=yes
13841
dynamic_linker="$host_os dld.sl"
13842
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13843
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13844
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13845
soname_spec='${libname}${release}${shared_ext}$major'
13846
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13847
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13851
dynamic_linker="$host_os dld.sl"
13852
shlibpath_var=SHLIB_PATH
13853
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13854
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13855
soname_spec='${libname}${release}${shared_ext}$major'
13858
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13859
postinstall_cmds='chmod 555 $lib'
13866
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13867
soname_spec='${libname}${release}${shared_ext}$major'
13868
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13869
shlibpath_var=LD_LIBRARY_PATH
13870
shlibpath_overrides_runpath=no
13871
hardcode_into_libs=yes
13874
irix5* | irix6* | nonstopux*)
13876
nonstopux*) version_type=nonstopux ;;
13878
if test "$lt_cv_prog_gnu_ld" = yes; then
13886
soname_spec='${libname}${release}${shared_ext}$major'
13887
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13889
irix5* | nonstopux*)
13890
libsuff= shlibsuff=
13893
case $LD in # libtool.m4 will add one of these switches to LD
13894
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13895
libsuff= shlibsuff= libmagic=32-bit;;
13896
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13897
libsuff=32 shlibsuff=N32 libmagic=N32;;
13898
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13899
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13900
*) libsuff= shlibsuff= libmagic=never-match;;
13904
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13905
shlibpath_overrides_runpath=no
13906
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13907
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13908
hardcode_into_libs=yes
13911
# No shared lib support for Linux oldld, aout, or coff.
13912
linux*oldld* | linux*aout* | linux*coff*)
13916
# This must be Linux ELF.
13917
linux* | k*bsd*-gnu)
13921
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13922
soname_spec='${libname}${release}${shared_ext}$major'
13923
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13924
shlibpath_var=LD_LIBRARY_PATH
13925
shlibpath_overrides_runpath=no
13926
# Some binutils ld are patched to set DT_RUNPATH
13927
save_LDFLAGS=$LDFLAGS
13928
save_libdir=$libdir
13929
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13930
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13931
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13932
/* end confdefs.h. */
13942
if ac_fn_cxx_try_link "$LINENO"; then :
13943
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13944
shlibpath_overrides_runpath=yes
13947
rm -f core conftest.err conftest.$ac_objext \
13948
conftest$ac_exeext conftest.$ac_ext
13949
LDFLAGS=$save_LDFLAGS
13950
libdir=$save_libdir
13952
# This implies no fast_install, which is unacceptable.
13953
# Some rework will be needed to allow for fast_install
13954
# before this can be enabled.
13955
hardcode_into_libs=yes
13957
# Append ld.so.conf contents to the search path
13958
if test -f /etc/ld.so.conf; then
13959
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' ' '`
13960
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13963
# We used to test for /lib/ld.so.1 and disable shared libraries on
13964
# powerpc, because MkLinux only supported shared libraries with the
13965
# GNU dynamic linker. Since this was broken with cross compilers,
13966
# most powerpc-linux boxes support dynamic linking these days and
13967
# people can always --disable-shared, the test was removed, and we
13968
# assume the GNU/Linux dynamic linker is in use.
13969
dynamic_linker='GNU/Linux ld.so'
13976
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13977
soname_spec='${libname}${release}${shared_ext}$major'
13978
shlibpath_var=LD_LIBRARY_PATH
13979
shlibpath_overrides_runpath=no
13980
hardcode_into_libs=yes
13981
dynamic_linker='NetBSD ld.elf_so'
13988
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13989
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13990
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13991
dynamic_linker='NetBSD (a.out) ld.so'
13993
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13994
soname_spec='${libname}${release}${shared_ext}$major'
13995
dynamic_linker='NetBSD ld.elf_so'
13997
shlibpath_var=LD_LIBRARY_PATH
13998
shlibpath_overrides_runpath=yes
13999
hardcode_into_libs=yes
14004
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14005
shlibpath_var=LD_LIBRARY_PATH
14006
shlibpath_overrides_runpath=yes
14013
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14014
soname_spec='${libname}${release}${shared_ext}$major'
14015
shlibpath_var=LD_LIBRARY_PATH
14016
shlibpath_overrides_runpath=no
14017
hardcode_into_libs=yes
14018
dynamic_linker='ldqnx.so'
14023
sys_lib_dlsearch_path_spec="/usr/lib"
14025
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14027
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14028
*) need_version=no ;;
14030
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14031
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14032
shlibpath_var=LD_LIBRARY_PATH
14033
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14035
openbsd2.[89] | openbsd2.[89].*)
14036
shlibpath_overrides_runpath=no
14039
shlibpath_overrides_runpath=yes
14043
shlibpath_overrides_runpath=yes
14048
libname_spec='$name'
14051
library_names_spec='$libname${shared_ext} $libname.a'
14052
dynamic_linker='OS/2 ld.exe'
14053
shlibpath_var=LIBPATH
14056
osf3* | osf4* | osf5*)
14060
soname_spec='${libname}${release}${shared_ext}$major'
14061
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14062
shlibpath_var=LD_LIBRARY_PATH
14063
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14064
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14075
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076
soname_spec='${libname}${release}${shared_ext}$major'
14077
shlibpath_var=LD_LIBRARY_PATH
14078
shlibpath_overrides_runpath=yes
14079
hardcode_into_libs=yes
14080
# ldd complains unless libraries are executable
14081
postinstall_cmds='chmod +x $lib'
14086
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14087
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14088
shlibpath_var=LD_LIBRARY_PATH
14089
shlibpath_overrides_runpath=yes
14090
if test "$with_gnu_ld" = yes; then
14098
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14099
soname_spec='${libname}${release}${shared_ext}$major'
14100
shlibpath_var=LD_LIBRARY_PATH
14101
case $host_vendor in
14103
shlibpath_overrides_runpath=no
14105
runpath_var=LD_RUN_PATH
14113
shlibpath_overrides_runpath=no
14114
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14120
if test -d /usr/nec ;then
14122
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14123
soname_spec='$libname${shared_ext}.$major'
14124
shlibpath_var=LD_LIBRARY_PATH
14128
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14129
version_type=freebsd-elf
14132
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14133
soname_spec='${libname}${release}${shared_ext}$major'
14134
shlibpath_var=LD_LIBRARY_PATH
14135
shlibpath_overrides_runpath=yes
14136
hardcode_into_libs=yes
14137
if test "$with_gnu_ld" = yes; then
14138
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14140
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14143
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14147
sys_lib_dlsearch_path_spec='/usr/lib'
14151
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14155
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14156
shlibpath_var=LD_LIBRARY_PATH
14157
shlibpath_overrides_runpath=no
14158
hardcode_into_libs=yes
14163
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14164
soname_spec='${libname}${release}${shared_ext}$major'
14165
shlibpath_var=LD_LIBRARY_PATH
14172
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14173
$as_echo "$dynamic_linker" >&6; }
14174
test "$dynamic_linker" = no && can_build_shared=no
14176
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14177
if test "$GCC" = yes; then
14178
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14181
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14182
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14184
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14185
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14224
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14225
hardcode_action_CXX=
14226
if test -n "$hardcode_libdir_flag_spec_CXX" ||
14227
test -n "$runpath_var_CXX" ||
14228
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14230
# We can hardcode non-existent directories.
14231
if test "$hardcode_direct_CXX" != no &&
14232
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14233
# have to relink, otherwise we might link with an installed library
14234
# when we should be linking with a yet-to-be-installed one
14235
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14236
test "$hardcode_minus_L_CXX" != no; then
14237
# Linking always hardcodes the temporary library directory.
14238
hardcode_action_CXX=relink
14240
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14241
hardcode_action_CXX=immediate
14244
# We cannot hardcode anything, or else we can only hardcode existing
14246
hardcode_action_CXX=unsupported
14248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14249
$as_echo "$hardcode_action_CXX" >&6; }
14251
if test "$hardcode_action_CXX" = relink ||
14252
test "$inherit_rpath_CXX" = yes; then
14253
# Fast installation is not supported
14254
enable_fast_install=no
14255
elif test "$shlibpath_overrides_runpath" = yes ||
14256
test "$enable_shared" = no; then
14257
# Fast installation is not necessary
14258
enable_fast_install=needless
14267
fi # test -n "$compiler"
14273
with_gnu_ld=$lt_save_with_gnu_ld
14274
lt_cv_path_LDCXX=$lt_cv_path_LD
14275
lt_cv_path_LD=$lt_save_path_LD
14276
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14277
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14278
fi # test "$_lt_caught_CXX_error" != yes
14281
ac_cpp='$CPP $CPPFLAGS'
14282
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14283
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14284
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14289
# checks for libraries.
14291
# checks for header files.
14292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14293
$as_echo_n "checking for ANSI C header files... " >&6; }
14294
if test "${ac_cv_header_stdc+set}" = set; then :
14295
$as_echo_n "(cached) " >&6
14297
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298
/* end confdefs.h. */
14299
#include <stdlib.h>
14300
#include <stdarg.h>
14301
#include <string.h>
14312
if ac_fn_c_try_compile "$LINENO"; then :
14313
ac_cv_header_stdc=yes
14315
ac_cv_header_stdc=no
14317
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319
if test $ac_cv_header_stdc = yes; then
14320
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14321
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322
/* end confdefs.h. */
14323
#include <string.h>
14326
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14327
$EGREP "memchr" >/dev/null 2>&1; then :
14330
ac_cv_header_stdc=no
14336
if test $ac_cv_header_stdc = yes; then
14337
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14338
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339
/* end confdefs.h. */
14340
#include <stdlib.h>
14343
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14344
$EGREP "free" >/dev/null 2>&1; then :
14347
ac_cv_header_stdc=no
14353
if test $ac_cv_header_stdc = yes; then
14354
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14355
if test "$cross_compiling" = yes; then :
14358
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359
/* end confdefs.h. */
14361
#include <stdlib.h>
14362
#if ((' ' & 0x0FF) == 0x020)
14363
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14364
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14366
# define ISLOWER(c) \
14367
(('a' <= (c) && (c) <= 'i') \
14368
|| ('j' <= (c) && (c) <= 'r') \
14369
|| ('s' <= (c) && (c) <= 'z'))
14370
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14373
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14378
for (i = 0; i < 256; i++)
14379
if (XOR (islower (i), ISLOWER (i))
14380
|| toupper (i) != TOUPPER (i))
14385
if ac_fn_c_try_run "$LINENO"; then :
14388
ac_cv_header_stdc=no
14390
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14391
conftest.$ac_objext conftest.beam conftest.$ac_ext
14396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14397
$as_echo "$ac_cv_header_stdc" >&6; }
14398
if test $ac_cv_header_stdc = yes; then
14400
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14404
for ac_header in string.h
14406
ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
14407
if test "x$ac_cv_header_string_h" = x""yes; then :
14408
cat >>confdefs.h <<_ACEOF
14409
#define HAVE_STRING_H 1
14417
# checks for typedefs, structures, and compiler characteristics.
14419
# checks for library functions.
14421
ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile test/Makefile"
14423
cat >confcache <<\_ACEOF
14424
# This file is a shell script that caches the results of configure
14425
# tests run on this system so they can be shared between configure
14426
# scripts and configure runs, see configure's option --config-cache.
14427
# It is not useful on other systems. If it contains results you don't
14428
# want to keep, you may remove or edit it.
14430
# config.status only pays attention to the cache file if you give it
14431
# the --recheck option to rerun configure.
14433
# `ac_cv_env_foo' variables (set or unset) will be overridden when
14434
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14435
# following values.
14439
# The following way of writing the cache mishandles newlines in values,
14440
# but we know of no workaround that is simple, portable, and efficient.
14441
# So, we kill variables containing newlines.
14442
# Ultrix sh set writes to stderr and can't be redirected directly,
14443
# and sets the high bit in the cache file unless we assign to the vars.
14445
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14446
eval ac_val=\$$ac_var
14450
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14451
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14454
_ | IFS | as_nl) ;; #(
14455
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14456
*) { eval $ac_var=; unset $ac_var;} ;;
14462
case $as_nl`(ac_space=' '; set) 2>&1` in #(
14463
*${as_nl}ac_space=\ *)
14464
# `set' does not quote correctly, so add quotes: double-quote
14465
# substitution turns \\\\ into \\, and sed turns \\ into \.
14468
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14471
# `set' quotes correctly as required by POSIX, so do not add quotes.
14472
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14481
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14483
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14485
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14486
if test -w "$cache_file"; then
14487
test "x$cache_file" != "x/dev/null" &&
14488
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14489
$as_echo "$as_me: updating cache $cache_file" >&6;}
14490
cat confcache >$cache_file
14492
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14493
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14498
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14499
# Let make expand exec_prefix.
14500
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14502
DEFS=-DHAVE_CONFIG_H
14506
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14507
# 1. Remove the extension, and $U if already installed.
14508
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14509
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14510
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14511
# will be set to the directory where LIBOBJS objects are built.
14512
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14513
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14515
LIBOBJS=$ac_libobjs
14517
LTLIBOBJS=$ac_ltlibobjs
14520
if test -n "$EXEEXT"; then
14522
am__EXEEXT_FALSE='#'
14524
am__EXEEXT_TRUE='#'
14528
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14529
as_fn_error "conditional \"AMDEP\" was never defined.
14530
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14532
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14533
as_fn_error "conditional \"am__fastdepCC\" was never defined.
14534
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14536
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14537
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14538
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14540
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14541
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14542
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14545
: ${CONFIG_STATUS=./config.status}
14547
ac_clean_files_save=$ac_clean_files
14548
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14549
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14550
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14552
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14554
# Generated by $as_me.
14555
# Run this file to recreate the current configuration.
14556
# Compiler output produced by configure, useful for debugging
14557
# configure, is in config.log if it exists.
14560
ac_cs_recheck=false
14563
SHELL=\${CONFIG_SHELL-$SHELL}
14566
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14567
## -------------------- ##
14568
## M4sh Initialization. ##
14569
## -------------------- ##
14571
# Be more Bourne compatible
14572
DUALCASE=1; export DUALCASE # for MKS sh
14573
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14576
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14577
# is contrary to our usage. Disable this feature.
14578
alias -g '${1+"$@"}'='"$@"'
14579
setopt NO_GLOB_SUBST
14581
case `(set -o) 2>/dev/null` in #(
14593
# Printing a long string crashes Solaris 7 /usr/bin/printf.
14594
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14595
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14596
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14597
# Prefer a ksh shell builtin over an external printf program on Solaris,
14598
# but without wasting forks for bash or zsh.
14599
if test -z "$BASH_VERSION$ZSH_VERSION" \
14600
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14601
as_echo='print -r --'
14602
as_echo_n='print -rn --'
14603
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14604
as_echo='printf %s\n'
14605
as_echo_n='printf %s'
14607
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14608
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14609
as_echo_n='/usr/ucb/echo -n'
14611
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14612
as_echo_n_body='eval
14616
expr "X$arg" : "X\\(.*\\)$as_nl";
14617
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14619
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14621
export as_echo_n_body
14622
as_echo_n='sh -c $as_echo_n_body as_echo'
14624
export as_echo_body
14625
as_echo='sh -c $as_echo_body as_echo'
14628
# The user is always right.
14629
if test "${PATH_SEPARATOR+set}" != set; then
14631
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14632
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14639
# We need space, tab and new line, in precisely that order. Quoting is
14640
# there to prevent editors from complaining about space-tab.
14641
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14642
# splitting by setting IFS to empty value.)
14645
# Find who we are. Look in the path if we contain no directory separator.
14647
*[\\/]* ) as_myself=$0 ;;
14648
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14649
for as_dir in $PATH
14652
test -z "$as_dir" && as_dir=.
14653
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14659
# We did not find ourselves, most probably we were run as `sh COMMAND'
14660
# in which case we are not to be found in the path.
14661
if test "x$as_myself" = x; then
14664
if test ! -f "$as_myself"; then
14665
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14669
# Unset variables that we do not need and which cause bugs (e.g. in
14670
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14671
# suppresses any "Segmentation fault" message there. '((' could
14672
# trigger a bug in pdksh 5.2.14.
14673
for as_var in BASH_ENV ENV MAIL MAILPATH
14674
do eval test x\${$as_var+set} = xset \
14675
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14688
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14691
# as_fn_error ERROR [LINENO LOG_FD]
14692
# ---------------------------------
14693
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14694
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14695
# script with status $?, using 1 if that was 0.
14698
as_status=$?; test $as_status -eq 0 && as_status=1
14700
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14701
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14703
$as_echo "$as_me: error: $1" >&2
14704
as_fn_exit $as_status
14708
# as_fn_set_status STATUS
14709
# -----------------------
14710
# Set $? to STATUS, without forking.
14711
as_fn_set_status ()
14714
} # as_fn_set_status
14716
# as_fn_exit STATUS
14717
# -----------------
14718
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14722
as_fn_set_status $1
14728
# Portably unset VAR.
14731
{ eval $1=; unset $1;}
14733
as_unset=as_fn_unset
14734
# as_fn_append VAR VALUE
14735
# ----------------------
14736
# Append the text in VALUE to the end of the definition contained in VAR. Take
14737
# advantage of any shell optimizations that allow amortized linear growth over
14738
# repeated appends, instead of the typical quadratic growth present in naive
14740
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14741
eval 'as_fn_append ()
14752
# as_fn_arith ARG...
14753
# ------------------
14754
# Perform arithmetic evaluation on the ARGs, and store the result in the
14755
# global $as_val. Take advantage of shells that can avoid forks. The arguments
14756
# must be portable across $(()) and expr.
14757
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14758
eval 'as_fn_arith ()
14765
as_val=`expr "$@" || test $? -eq 1`
14770
if expr a : '\(a\)' >/dev/null 2>&1 &&
14771
test "X`expr 00001 : '.*\(...\)'`" = X001; then
14777
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14778
as_basename=basename
14783
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14789
as_me=`$as_basename -- "$0" ||
14790
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14791
X"$0" : 'X\(//\)$' \| \
14792
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14794
sed '/^.*\/\([^/][^/]*\)\/*$/{
14808
# Avoid depending upon Character Ranges.
14809
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14810
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14811
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14812
as_cr_digits='0123456789'
14813
as_cr_alnum=$as_cr_Letters$as_cr_digits
14815
ECHO_C= ECHO_N= ECHO_T=
14816
case `echo -n x` in #(((((
14818
case `echo 'xy\c'` in
14819
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
14821
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14828
rm -f conf$$ conf$$.exe conf$$.file
14829
if test -d conf$$.dir; then
14830
rm -f conf$$.dir/conf$$.file
14833
mkdir conf$$.dir 2>/dev/null
14835
if (echo >conf$$.file) 2>/dev/null; then
14836
if ln -s conf$$.file conf$$ 2>/dev/null; then
14838
# ... but there are two gotchas:
14839
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14840
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14841
# In both cases, we have to default to `cp -p'.
14842
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14844
elif ln conf$$.file conf$$ 2>/dev/null; then
14852
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14853
rmdir conf$$.dir 2>/dev/null
14858
# Create "$as_dir" as a directory, including parents if necessary.
14863
-*) as_dir=./$as_dir;;
14865
test -d "$as_dir" || eval $as_mkdir_p || {
14869
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14870
*) as_qdir=$as_dir;;
14872
as_dirs="'$as_qdir' $as_dirs"
14873
as_dir=`$as_dirname -- "$as_dir" ||
14874
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14875
X"$as_dir" : 'X\(//\)[^/]' \| \
14876
X"$as_dir" : 'X\(//\)$' \| \
14877
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14878
$as_echo X"$as_dir" |
14879
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14883
/^X\(\/\/\)[^/].*/{
14896
test -d "$as_dir" && break
14898
test -z "$as_dirs" || eval "mkdir $as_dirs"
14899
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14903
if mkdir -p . 2>/dev/null; then
14904
as_mkdir_p='mkdir -p "$as_dir"'
14906
test -d ./-p && rmdir ./-p
14910
if test -x / >/dev/null 2>&1; then
14911
as_test_x='test -x'
14913
if ls -dL / >/dev/null 2>&1; then
14920
if test -d "$1"; then
14926
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14927
???[sx]*):;;*)false;;esac;fi
14931
as_executable_p=$as_test_x
14933
# Sed expression to map a string onto a valid CPP name.
14934
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14936
# Sed expression to map a string onto a valid variable name.
14937
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14941
## ----------------------------------- ##
14942
## Main body of $CONFIG_STATUS script. ##
14943
## ----------------------------------- ##
14945
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14947
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14948
# Save the log message, to keep $0 and so on meaningful, and to
14949
# report actual input values of CONFIG_FILES etc. instead of their
14950
# values after options handling.
14952
This file was extended by sqlite3cc $as_me 0.1.0, which was
14953
generated by GNU Autoconf 2.64. Invocation command line was
14955
CONFIG_FILES = $CONFIG_FILES
14956
CONFIG_HEADERS = $CONFIG_HEADERS
14957
CONFIG_LINKS = $CONFIG_LINKS
14958
CONFIG_COMMANDS = $CONFIG_COMMANDS
14961
on `(hostname || uname -n) 2>/dev/null | sed 1q`
14966
case $ac_config_files in *"
14967
"*) set x $ac_config_files; shift; ac_config_files=$*;;
14970
case $ac_config_headers in *"
14971
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14975
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14976
# Files that config.status was made for.
14977
config_files="$ac_config_files"
14978
config_headers="$ac_config_headers"
14979
config_commands="$ac_config_commands"
14983
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14985
\`$as_me' instantiates files and other configuration actions
14986
from templates according to the current configuration. Unless the files
14987
and actions are specified as TAGs, all are instantiated by default.
14989
Usage: $0 [OPTION]... [TAG]...
14991
-h, --help print this help, then exit
14992
-V, --version print version number and configuration settings, then exit
14993
-q, --quiet, --silent
14994
do not print progress messages
14995
-d, --debug don't remove temporary files
14996
--recheck update $as_me by reconfiguring in the same conditions
14997
--file=FILE[:TEMPLATE]
14998
instantiate the configuration file FILE
14999
--header=FILE[:TEMPLATE]
15000
instantiate the configuration header FILE
15002
Configuration files:
15005
Configuration headers:
15008
Configuration commands:
15011
Report bugs to <edam@waxworlds.org>.
15012
sqlite3cc home page: <http://www.waxworlds.org/edam/software/sqlite3cc>."
15015
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15017
sqlite3cc config.status 0.1.0
15018
configured by $0, generated by GNU Autoconf 2.64,
15019
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15021
Copyright (C) 2009 Free Software Foundation, Inc.
15022
This config.status script is free software; the Free Software Foundation
15023
gives unlimited permission to copy, distribute and modify it."
15030
test -n "\$AWK" || AWK=awk
15033
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15034
# The default lists apply if the user does not specify any file.
15040
ac_option=`expr "X$1" : 'X\([^=]*\)='`
15041
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15052
# Handling of the options.
15053
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15055
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15056
$as_echo "$ac_cs_version"; exit ;;
15057
--debug | --debu | --deb | --de | --d | -d )
15059
--file | --fil | --fi | --f )
15062
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15064
as_fn_append CONFIG_FILES " '$ac_optarg'"
15065
ac_need_defaults=false;;
15066
--header | --heade | --head | --hea )
15069
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15071
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15072
ac_need_defaults=false;;
15074
# Conflict between --help and --header
15075
as_fn_error "ambiguous option: \`$1'
15076
Try \`$0 --help' for more information.";;
15077
--help | --hel | -h )
15078
$as_echo "$ac_cs_usage"; exit ;;
15079
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
15080
| -silent | --silent | --silen | --sile | --sil | --si | --s)
15083
# This is an error.
15084
-*) as_fn_error "unrecognized option: \`$1'
15085
Try \`$0 --help' for more information." ;;
15087
*) as_fn_append ac_config_targets " $1"
15088
ac_need_defaults=false ;;
15094
ac_configure_extra_args=
15096
if $ac_cs_silent; then
15098
ac_configure_extra_args="$ac_configure_extra_args --silent"
15102
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15103
if \$ac_cs_recheck; then
15104
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15106
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15107
CONFIG_SHELL='$SHELL'
15108
export CONFIG_SHELL
15113
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15117
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15118
## Running $as_me. ##
15124
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15128
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15131
# The HP-UX ksh and POSIX shell print the target directory to stdout
15132
# if CDPATH is set.
15133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15135
sed_quote_subst='$sed_quote_subst'
15136
double_quote_subst='$double_quote_subst'
15137
delay_variable_subst='$delay_variable_subst'
15138
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15139
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15140
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15141
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15142
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15143
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15144
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15145
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15146
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15147
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15148
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15149
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15150
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15151
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15152
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15153
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15154
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15155
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15156
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15157
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15158
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15159
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15160
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15161
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15162
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15163
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15164
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15165
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15166
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15167
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15168
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15169
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15170
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15171
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15172
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15173
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15174
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15175
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15176
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15177
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15178
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15179
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15180
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15181
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15182
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15183
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15184
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15185
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15186
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15187
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15188
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15189
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15190
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15191
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15192
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15193
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15194
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15195
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15196
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15197
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15198
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15199
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15200
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15201
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15202
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15203
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15204
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15205
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15206
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15207
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15208
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15209
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15210
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15211
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15212
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15213
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15214
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15215
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15216
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15217
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15218
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15219
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15220
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15221
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15222
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15223
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15224
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15225
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15226
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15227
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15228
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15229
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15230
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15231
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15232
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15233
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15234
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15235
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15236
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15237
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15238
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15239
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15240
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15241
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15242
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15243
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15244
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15245
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15246
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15247
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15248
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15249
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15250
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15251
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15252
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15253
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15254
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15255
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15256
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15257
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15258
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15259
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15260
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15261
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15262
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15263
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15264
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15265
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15266
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15267
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15268
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15269
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15270
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15271
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15272
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15273
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15274
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15275
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15276
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15277
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15278
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15279
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15280
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15281
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15282
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15283
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15284
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15285
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15286
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15287
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15288
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15289
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15290
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15291
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15292
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15293
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15294
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15295
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15296
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15297
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15298
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15299
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15300
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15301
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15302
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15303
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15304
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15305
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15306
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15307
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15308
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15311
LTCFLAGS='$LTCFLAGS'
15312
compiler='$compiler_DEFAULT'
15314
# Quote evaled strings.
15326
deplibs_check_method \
15335
lt_cv_sys_global_symbol_pipe \
15336
lt_cv_sys_global_symbol_to_cdecl \
15337
lt_cv_sys_global_symbol_to_c_name_address \
15338
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15341
lt_prog_compiler_no_builtin_flag \
15342
lt_prog_compiler_wl \
15343
lt_prog_compiler_pic \
15344
lt_prog_compiler_static \
15345
lt_cv_prog_compiler_c_o \
15353
export_dynamic_flag_spec \
15354
whole_archive_flag_spec \
15355
compiler_needs_object \
15357
allow_undefined_flag \
15358
no_undefined_flag \
15359
hardcode_libdir_flag_spec \
15360
hardcode_libdir_flag_spec_ld \
15361
hardcode_libdir_separator \
15366
variables_saved_for_relink \
15368
library_names_spec \
15373
compiler_lib_search_dirs \
15378
compiler_lib_search_path \
15381
lt_prog_compiler_no_builtin_flag_CXX \
15382
lt_prog_compiler_wl_CXX \
15383
lt_prog_compiler_pic_CXX \
15384
lt_prog_compiler_static_CXX \
15385
lt_cv_prog_compiler_c_o_CXX \
15386
export_dynamic_flag_spec_CXX \
15387
whole_archive_flag_spec_CXX \
15388
compiler_needs_object_CXX \
15390
allow_undefined_flag_CXX \
15391
no_undefined_flag_CXX \
15392
hardcode_libdir_flag_spec_CXX \
15393
hardcode_libdir_flag_spec_ld_CXX \
15394
hardcode_libdir_separator_CXX \
15395
fix_srcfile_path_CXX \
15396
exclude_expsyms_CXX \
15397
include_expsyms_CXX \
15398
file_list_spec_CXX \
15399
compiler_lib_search_dirs_CXX \
15400
predep_objects_CXX \
15401
postdep_objects_CXX \
15404
compiler_lib_search_path_CXX; do
15405
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15406
*[\\\\\\\`\\"\\\$]*)
15407
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15410
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15415
# Double-quote double-evaled strings.
15416
for var in reload_cmds \
15417
old_postinstall_cmds \
15418
old_postuninstall_cmds \
15420
extract_expsyms_cmds \
15421
old_archive_from_new_cmds \
15422
old_archive_from_expsyms_cmds \
15424
archive_expsym_cmds \
15426
module_expsym_cmds \
15427
export_symbols_cmds \
15430
postuninstall_cmds \
15432
sys_lib_search_path_spec \
15433
sys_lib_dlsearch_path_spec \
15434
old_archive_cmds_CXX \
15435
old_archive_from_new_cmds_CXX \
15436
old_archive_from_expsyms_cmds_CXX \
15438
archive_expsym_cmds_CXX \
15440
module_expsym_cmds_CXX \
15441
export_symbols_cmds_CXX \
15442
prelink_cmds_CXX; do
15443
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15444
*[\\\\\\\`\\"\\\$]*)
15445
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15448
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15453
# Fix-up fallback echo if it was mangled by the above quoting rules.
15455
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15459
ac_aux_dir='$ac_aux_dir'
15460
xsi_shell='$xsi_shell'
15461
lt_shell_append='$lt_shell_append'
15463
# See if we are running on zsh, and set the options which allow our
15464
# commands through without removal of \ escapes INIT.
15465
if test -n "\${ZSH_VERSION+set}" ; then
15466
setopt NO_GLOB_SUBST
15472
TIMESTAMP='$TIMESTAMP'
15483
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15485
# Handling of arguments.
15486
for ac_config_target in $ac_config_targets
15488
case $ac_config_target in
15489
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15490
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15491
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15492
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15493
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15494
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15495
"test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
15497
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15502
# If the user did not use the arguments to specify the items to instantiate,
15503
# then the envvar interface is used. Set only those that are not.
15504
# We use the long form for the default assignment because of an extremely
15505
# bizarre bug on SunOS 4.1.3.
15506
if $ac_need_defaults; then
15507
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15508
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15509
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15512
# Have a temporary directory for convenience. Make it in the build tree
15513
# simply because there is no reason against having it here, and in addition,
15514
# creating and moving files from /tmp can sometimes cause problems.
15515
# Hook for its removal unless debugging.
15516
# Note that there is a small window in which the directory will not be cleaned:
15517
# after its creation but before its name has been assigned to `$tmp'.
15521
trap 'exit_status=$?
15522
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15524
trap 'as_fn_exit 1' 1 2 13 15
15526
# Create a (secure) tmp directory for tmp files.
15529
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15530
test -n "$tmp" && test -d "$tmp"
15533
tmp=./conf$$-$RANDOM
15534
(umask 077 && mkdir "$tmp")
15535
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15537
# Set up the scripts for CONFIG_FILES section.
15538
# No need to generate them if there are no CONFIG_FILES.
15539
# This happens for instance with `./config.status config.h'.
15540
if test -n "$CONFIG_FILES"; then
15543
ac_cr=`echo X | tr X '\015'`
15544
# On cygwin, bash can eat \r inside `` if the user requested igncr.
15545
# But we know of no other shell where ac_cr would be empty at this
15546
# point, so we can use a bashism as a fallback.
15547
if test "x$ac_cr" = x; then
15548
eval ac_cr=\$\'\\r\'
15550
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15551
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15554
ac_cs_awk_cr=$ac_cr
15557
echo 'BEGIN {' >"$tmp/subs1.awk" &&
15562
echo "cat >conf$$subs.awk <<_ACEOF" &&
15563
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15565
} >conf$$subs.sh ||
15566
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15567
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15569
for ac_last_try in false false false false false :; do
15570
. ./conf$$subs.sh ||
15571
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15573
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15574
if test $ac_delim_n = $ac_delim_num; then
15576
elif $ac_last_try; then
15577
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15579
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15582
rm -f conf$$subs.sh
15584
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15585
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15589
s/^/S["/; s/!.*/"]=/
15599
s/\(.\{148\}\).*/\1/
15601
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15606
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15613
s/\(.\{148\}\).*/\1/
15615
s/["\\]/\\&/g; s/^/"/; s/$/"/
15619
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15624
' <conf$$subs.awk | sed '
15629
' >>$CONFIG_STATUS || ac_write_fail=1
15630
rm -f conf$$subs.awk
15631
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15633
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15634
for (key in S) S_is_set[key] = 1
15640
nfields = split(line, field, "@")
15642
len = length(field[1])
15643
for (i = 2; i < nfields; i++) {
15645
keylen = length(key)
15646
if (S_is_set[key]) {
15648
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15649
len += length(value) + length(field[++i])
15660
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15661
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15662
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15665
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15666
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
15669
# VPATH may cause trouble with some makes, so we remove $(srcdir),
15670
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15671
# trailing colons and then remove the whole line if VPATH becomes empty
15672
# (actually we leave an empty line to preserve line numbers).
15673
if test "x$srcdir" = x.; then
15674
ac_vpsub='/^[ ]*VPATH[ ]*=/{
15675
s/:*\$(srcdir):*/:/
15676
s/:*\${srcdir}:*/:/
15678
s/^\([^=]*=[ ]*\):*/\1/
15684
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15685
fi # test -n "$CONFIG_FILES"
15687
# Set up the scripts for CONFIG_HEADERS section.
15688
# No need to generate them if there are no CONFIG_HEADERS.
15689
# This happens for instance with `./config.status Makefile'.
15690
if test -n "$CONFIG_HEADERS"; then
15691
cat >"$tmp/defines.awk" <<\_ACAWK ||
15695
# Transform confdefs.h into an awk script `defines.awk', embedded as
15696
# here-document in config.status, that substitutes the proper values into
15697
# config.h.in to produce config.h.
15699
# Create a delimiter string that does not exist in confdefs.h, to ease
15700
# handling of long lines.
15702
for ac_last_try in false false :; do
15703
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15704
if test -z "$ac_t"; then
15706
elif $ac_last_try; then
15707
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15709
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15713
# For the awk script, D is an array of macro values keyed by name,
15714
# likewise P contains macro parameters if any. Preserve backslash
15715
# newline sequences.
15717
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15719
s/.\{148\}/&'"$ac_delim"'/g
15722
s/^[ ]*#[ ]*define[ ][ ]*/ /
15729
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15731
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15735
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15736
D["\1"]=" \3\\\\\\n"\\/p
15738
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15743
s/.\{148\}/&'"$ac_delim"'/g
15748
s/["\\]/\\&/g; s/^/"/; s/$/"/p
15751
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15753
' <confdefs.h | sed '
15754
s/'"$ac_delim"'/"\\\
15755
"/g' >>$CONFIG_STATUS || ac_write_fail=1
15757
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15758
for (key in D) D_is_set[key] = 1
15761
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15763
split(line, arg, " ")
15764
if (arg[1] == "#") {
15768
defundef = substr(arg[1], 2)
15771
split(mac1, mac2, "(") #)
15773
prefix = substr(line, 1, index(line, defundef) - 1)
15774
if (D_is_set[macro]) {
15775
# Preserve the white space surrounding the "#".
15776
print prefix "define", macro P[macro] D[macro]
15779
# Replace #undef with comments. This is necessary, for example,
15780
# in the case of _POSIX_SOURCE, which is predefined and required
15781
# on some systems where configure will not decide to define it.
15782
if (defundef == "undef") {
15783
print "/*", prefix defundef, macro, "*/"
15791
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15792
as_fn_error "could not setup config headers machinery" "$LINENO" 5
15793
fi # test -n "$CONFIG_HEADERS"
15796
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15801
:[FHLC]) ac_mode=$ac_tag; continue;;
15803
case $ac_mode$ac_tag in
15805
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15806
:[FH]-) ac_tag=-:-;;
15807
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15824
-) ac_f="$tmp/stdin";;
15825
*) # Look for the file first in the build tree, then in the source tree
15826
# (if the path is not absolute). The absolute path cannot be DOS-style,
15827
# because $ac_f cannot contain `:'.
15831
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15833
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15835
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15836
as_fn_append ac_file_inputs " '$ac_f'"
15839
# Let's still pretend it is `configure' which instantiates (i.e., don't
15840
# use $as_me), people would be surprised to read:
15841
# /* config.h. Generated by config.status. */
15842
configure_input='Generated from '`
15843
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15845
if test x"$ac_file" != x-; then
15846
configure_input="$ac_file. $configure_input"
15847
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15848
$as_echo "$as_me: creating $ac_file" >&6;}
15850
# Neutralize special characters interpreted by sed in replacement strings.
15851
case $configure_input in #(
15852
*\&* | *\|* | *\\* )
15853
ac_sed_conf_input=`$as_echo "$configure_input" |
15854
sed 's/[\\\\&|]/\\\\&/g'`;; #(
15855
*) ac_sed_conf_input=$configure_input;;
15859
*:-:* | *:-) cat >"$tmp/stdin" \
15860
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15865
ac_dir=`$as_dirname -- "$ac_file" ||
15866
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15867
X"$ac_file" : 'X\(//\)[^/]' \| \
15868
X"$ac_file" : 'X\(//\)$' \| \
15869
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15870
$as_echo X"$ac_file" |
15871
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15875
/^X\(\/\/\)[^/].*/{
15888
as_dir="$ac_dir"; as_fn_mkdir_p
15892
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15894
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15895
# A ".." for each directory in $ac_dir_suffix.
15896
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15897
case $ac_top_builddir_sub in
15898
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15899
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15902
ac_abs_top_builddir=$ac_pwd
15903
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15904
# for backward compatibility:
15905
ac_top_builddir=$ac_top_build_prefix
15908
.) # We are building in place.
15910
ac_top_srcdir=$ac_top_builddir_sub
15911
ac_abs_top_srcdir=$ac_pwd ;;
15912
[\\/]* | ?:[\\/]* ) # Absolute name.
15913
ac_srcdir=$srcdir$ac_dir_suffix;
15914
ac_top_srcdir=$srcdir
15915
ac_abs_top_srcdir=$srcdir ;;
15916
*) # Relative name.
15917
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15918
ac_top_srcdir=$ac_top_build_prefix$srcdir
15919
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15921
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15931
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15932
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15934
ac_MKDIR_P=$MKDIR_P
15936
[\\/$]* | ?:[\\/]* ) ;;
15937
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15941
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15942
# If the template does not know about datarootdir, expand it.
15943
# FIXME: This hack should be removed a few years after 2.60.
15944
ac_datarootdir_hack=; ac_datarootdir_seen=
15955
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15956
*datarootdir*) ac_datarootdir_seen=yes;;
15957
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15958
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15959
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15961
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15962
ac_datarootdir_hack='
15963
s&@datadir@&$datadir&g
15964
s&@docdir@&$docdir&g
15965
s&@infodir@&$infodir&g
15966
s&@localedir@&$localedir&g
15967
s&@mandir@&$mandir&g
15968
s&\\\${datarootdir}&$datarootdir&g' ;;
15972
# Neutralize VPATH when `$srcdir' = `.'.
15973
# Shell code in configure.ac might set extrasub.
15974
# FIXME: do we really want to maintain this feature?
15975
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15976
ac_sed_extra="$ac_vpsub
15979
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15981
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15982
s|@configure_input@|$ac_sed_conf_input|;t t
15983
s&@top_builddir@&$ac_top_builddir_sub&;t t
15984
s&@top_build_prefix@&$ac_top_build_prefix&;t t
15985
s&@srcdir@&$ac_srcdir&;t t
15986
s&@abs_srcdir@&$ac_abs_srcdir&;t t
15987
s&@top_srcdir@&$ac_top_srcdir&;t t
15988
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15989
s&@builddir@&$ac_builddir&;t t
15990
s&@abs_builddir@&$ac_abs_builddir&;t t
15991
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15992
s&@INSTALL@&$ac_INSTALL&;t t
15993
s&@MKDIR_P@&$ac_MKDIR_P&;t t
15994
$ac_datarootdir_hack
15996
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15997
|| as_fn_error "could not create $ac_file" "$LINENO" 5
15999
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16000
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16001
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16002
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16003
which seems to be undefined. Please make sure it is defined." >&5
16004
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16005
which seems to be undefined. Please make sure it is defined." >&2;}
16009
-) cat "$tmp/out" && rm -f "$tmp/out";;
16010
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16012
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16018
if test x"$ac_file" != x-; then
16020
$as_echo "/* $configure_input */" \
16021
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16022
} >"$tmp/config.h" \
16023
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16024
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16025
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16026
$as_echo "$as_me: $ac_file is unchanged" >&6;}
16029
mv "$tmp/config.h" "$ac_file" \
16030
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16033
$as_echo "/* $configure_input */" \
16034
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16035
|| as_fn_error "could not create -" "$LINENO" 5
16037
# Compute "$ac_file"'s index in $config_headers.
16040
for _am_header in $config_headers :; do
16041
case $_am_header in
16042
$_am_arg | $_am_arg:* )
16045
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
16048
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16049
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16050
X"$_am_arg" : 'X\(//\)[^/]' \| \
16051
X"$_am_arg" : 'X\(//\)$' \| \
16052
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16053
$as_echo X"$_am_arg" |
16054
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16058
/^X\(\/\/\)[^/].*/{
16070
s/.*/./; q'`/stamp-h$_am_stamp_count
16073
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16074
$as_echo "$as_me: executing $ac_file commands" >&6;}
16079
case $ac_file$ac_mode in
16080
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16081
# Autoconf 2.62 quotes --file arguments for eval, but not when files
16082
# are listed without --file. Let's play safe and only enable the eval
16083
# if we detect the quoting.
16084
case $CONFIG_FILES in
16085
*\'*) eval set x "$CONFIG_FILES" ;;
16086
*) set x $CONFIG_FILES ;;
16091
# Strip MF so we end up with the name of the file.
16092
mf=`echo "$mf" | sed -e 's/:.*$//'`
16093
# Check whether this is an Automake generated Makefile or not.
16094
# We used to match only the files named `Makefile.in', but
16095
# some people rename them; so instead we look at the file content.
16096
# Grep'ing the first line is not enough: some people post-process
16097
# each Makefile.in and add a new line on top of each file to say so.
16098
# Grep'ing the whole file is not good either: AIX grep has a line
16099
# limit of 2048, but all sed's we know have understand at least 4000.
16100
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16101
dirpart=`$as_dirname -- "$mf" ||
16102
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16103
X"$mf" : 'X\(//\)[^/]' \| \
16104
X"$mf" : 'X\(//\)$' \| \
16105
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16107
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16111
/^X\(\/\/\)[^/].*/{
16127
# Extract the definition of DEPDIR, am__include, and am__quote
16128
# from the Makefile without running `make'.
16129
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16130
test -z "$DEPDIR" && continue
16131
am__include=`sed -n 's/^am__include = //p' < "$mf"`
16132
test -z "am__include" && continue
16133
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16134
# When using ansi2knr, U may be empty or an underscore; expand it
16135
U=`sed -n 's/^U = //p' < "$mf"`
16136
# Find all dependency output files, they are included files with
16137
# $(DEPDIR) in their names. We invoke sed twice because it is the
16138
# simplest approach to changing $(DEPDIR) to its actual value in the
16140
for file in `sed -n "
16141
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16142
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16143
# Make sure the directory exists.
16144
test -f "$dirpart/$file" && continue
16145
fdir=`$as_dirname -- "$file" ||
16146
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16147
X"$file" : 'X\(//\)[^/]' \| \
16148
X"$file" : 'X\(//\)$' \| \
16149
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16150
$as_echo X"$file" |
16151
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16155
/^X\(\/\/\)[^/].*/{
16168
as_dir=$dirpart/$fdir; as_fn_mkdir_p
16169
# echo "creating $dirpart/$file"
16170
echo '# dummy' > "$dirpart/$file"
16177
# See if we are running on zsh, and set the options which allow our
16178
# commands through without removal of \ escapes.
16179
if test -n "${ZSH_VERSION+set}" ; then
16180
setopt NO_GLOB_SUBST
16183
cfgfile="${ofile}T"
16184
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16187
cat <<_LT_EOF >> "$cfgfile"
16190
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16191
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16192
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16193
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16195
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16196
# 2006, 2007, 2008 Free Software Foundation, Inc.
16197
# Written by Gordon Matzigkeit, 1996
16199
# This file is part of GNU Libtool.
16201
# GNU Libtool is free software; you can redistribute it and/or
16202
# modify it under the terms of the GNU General Public License as
16203
# published by the Free Software Foundation; either version 2 of
16204
# the License, or (at your option) any later version.
16206
# As a special exception to the GNU General Public License,
16207
# if you distribute this file as part of a program or library that
16208
# is built using GNU Libtool, you may include this file under the
16209
# same distribution terms that you use for the rest of that program.
16211
# GNU Libtool is distributed in the hope that it will be useful,
16212
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16213
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16214
# GNU General Public License for more details.
16216
# You should have received a copy of the GNU General Public License
16217
# along with GNU Libtool; see the file COPYING. If not, a copy
16218
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16219
# obtained by writing to the Free Software Foundation, Inc.,
16220
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16223
# The names of the tagged configurations supported by this script.
16224
available_tags="CXX "
16226
# ### BEGIN LIBTOOL CONFIG
16228
# Which release of libtool.m4 was used?
16229
macro_version=$macro_version
16230
macro_revision=$macro_revision
16232
# Whether or not to build shared libraries.
16233
build_libtool_libs=$enable_shared
16235
# Whether or not to build static libraries.
16236
build_old_libs=$enable_static
16238
# What type of objects to build.
16241
# Whether or not to optimize for fast installation.
16242
fast_install=$enable_fast_install
16245
host_alias=$host_alias
16249
# The build system.
16250
build_alias=$build_alias
16254
# A sed program that does not truncate output.
16257
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16258
Xsed="\$SED -e 1s/^X//"
16260
# A grep program that handles long lines.
16266
# A literal string matcher.
16269
# A BSD- or MS-compatible name lister.
16272
# Whether we need soft or hard links.
16275
# What is the maximum length of a command?
16276
max_cmd_len=$max_cmd_len
16278
# Object file suffix (normally "o").
16281
# Executable file suffix (normally "").
16284
# whether the shell understands "unset".
16287
# turn spaces into newlines.
16290
# turn newlines into spaces.
16293
# How to create reloadable object files.
16294
reload_flag=$lt_reload_flag
16295
reload_cmds=$lt_reload_cmds
16297
# An object symbol dumper.
16298
OBJDUMP=$lt_OBJDUMP
16300
# Method to check whether dependent libraries are shared objects.
16301
deplibs_check_method=$lt_deplibs_check_method
16303
# Command to use when deplibs_check_method == "file_magic".
16304
file_magic_cmd=$lt_file_magic_cmd
16308
AR_FLAGS=$lt_AR_FLAGS
16310
# A symbol stripping program.
16313
# Commands used to install an old-style archive.
16315
old_postinstall_cmds=$lt_old_postinstall_cmds
16316
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16321
# LTCC compiler flags.
16322
LTCFLAGS=$lt_CFLAGS
16324
# Take the output of nm and produce a listing of raw symbols and C names.
16325
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16327
# Transform the output of nm in a proper C declaration.
16328
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16330
# Transform the output of nm in a C name address pair.
16331
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16333
# Transform the output of nm in a C name address pair when lib prefix is needed.
16334
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16336
# The name of the directory that contains temporary libtool files.
16339
# Shell to use when invoking shell scripts.
16342
# An echo program that does not interpret backslashes.
16345
# Used to examine libraries when file_magic_cmd begins with "file".
16346
MAGIC_CMD=$MAGIC_CMD
16348
# Must we lock files when doing compilation?
16349
need_locks=$lt_need_locks
16351
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16352
DSYMUTIL=$lt_DSYMUTIL
16354
# Tool to change global to local symbols on Mac OS X.
16357
# Tool to manipulate fat objects and archives on Mac OS X.
16360
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16363
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16364
OTOOL64=$lt_OTOOL64
16366
# Old archive suffix (normally "a").
16369
# Shared library suffix (normally ".so").
16370
shrext_cmds=$lt_shrext_cmds
16372
# The commands to extract the exported symbol list from a shared archive.
16373
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16375
# Variables whose values should be saved in libtool wrapper scripts and
16376
# restored at link time.
16377
variables_saved_for_relink=$lt_variables_saved_for_relink
16379
# Do we need the "lib" prefix for modules?
16380
need_lib_prefix=$need_lib_prefix
16382
# Do we need a version for libraries?
16383
need_version=$need_version
16385
# Library versioning type.
16386
version_type=$version_type
16388
# Shared library runtime path variable.
16389
runpath_var=$runpath_var
16391
# Shared library path variable.
16392
shlibpath_var=$shlibpath_var
16394
# Is shlibpath searched before the hard-coded library search path?
16395
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16397
# Format of library name prefix.
16398
libname_spec=$lt_libname_spec
16400
# List of archive names. First name is the real one, the rest are links.
16401
# The last name is the one that the linker finds with -lNAME
16402
library_names_spec=$lt_library_names_spec
16404
# The coded name of the library, if different from the real name.
16405
soname_spec=$lt_soname_spec
16407
# Command to use after installation of a shared archive.
16408
postinstall_cmds=$lt_postinstall_cmds
16410
# Command to use after uninstallation of a shared archive.
16411
postuninstall_cmds=$lt_postuninstall_cmds
16413
# Commands used to finish a libtool library installation in a directory.
16414
finish_cmds=$lt_finish_cmds
16416
# As "finish_cmds", except a single script fragment to be evaled but
16418
finish_eval=$lt_finish_eval
16420
# Whether we should hardcode library paths into libraries.
16421
hardcode_into_libs=$hardcode_into_libs
16423
# Compile-time system search path for libraries.
16424
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16426
# Run-time system search path for libraries.
16427
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16429
# Whether dlopen is supported.
16430
dlopen_support=$enable_dlopen
16432
# Whether dlopen of programs is supported.
16433
dlopen_self=$enable_dlopen_self
16435
# Whether dlopen of statically linked programs is supported.
16436
dlopen_self_static=$enable_dlopen_self_static
16438
# Commands to strip libraries.
16439
old_striplib=$lt_old_striplib
16440
striplib=$lt_striplib
16443
# The linker used to build libraries.
16446
# Commands used to build an old-style archive.
16447
old_archive_cmds=$lt_old_archive_cmds
16449
# A language specific compiler.
16452
# Is the compiler the GNU compiler?
16455
# Compiler flag to turn off builtin functions.
16456
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16458
# How to pass a linker flag through the compiler.
16459
wl=$lt_lt_prog_compiler_wl
16461
# Additional compiler flags for building library objects.
16462
pic_flag=$lt_lt_prog_compiler_pic
16464
# Compiler flag to prevent dynamic linking.
16465
link_static_flag=$lt_lt_prog_compiler_static
16467
# Does compiler simultaneously support -c and -o options?
16468
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16470
# Whether or not to add -lc for building shared libraries.
16471
build_libtool_need_lc=$archive_cmds_need_lc
16473
# Whether or not to disallow shared libs when runtime libs are static.
16474
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16476
# Compiler flag to allow reflexive dlopens.
16477
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16479
# Compiler flag to generate shared objects directly from archives.
16480
whole_archive_flag_spec=$lt_whole_archive_flag_spec
16482
# Whether the compiler copes with passing no objects directly.
16483
compiler_needs_object=$lt_compiler_needs_object
16485
# Create an old-style archive from a shared archive.
16486
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16488
# Create a temporary old-style archive to link instead of a shared archive.
16489
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16491
# Commands used to build a shared archive.
16492
archive_cmds=$lt_archive_cmds
16493
archive_expsym_cmds=$lt_archive_expsym_cmds
16495
# Commands used to build a loadable module if different from building
16496
# a shared archive.
16497
module_cmds=$lt_module_cmds
16498
module_expsym_cmds=$lt_module_expsym_cmds
16500
# Whether we are building with GNU ld or not.
16501
with_gnu_ld=$lt_with_gnu_ld
16503
# Flag that allows shared libraries with undefined symbols to be built.
16504
allow_undefined_flag=$lt_allow_undefined_flag
16506
# Flag that enforces no undefined symbols.
16507
no_undefined_flag=$lt_no_undefined_flag
16509
# Flag to hardcode \$libdir into a binary during linking.
16510
# This must work even if \$libdir does not exist
16511
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16513
# If ld is used when linking, flag to hardcode \$libdir into a binary
16514
# during linking. This must work even if \$libdir does not exist.
16515
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16517
# Whether we need a single "-rpath" flag with a separated argument.
16518
hardcode_libdir_separator=$lt_hardcode_libdir_separator
16520
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16521
# DIR into the resulting binary.
16522
hardcode_direct=$hardcode_direct
16524
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16525
# DIR into the resulting binary and the resulting library dependency is
16526
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16527
# library is relocated.
16528
hardcode_direct_absolute=$hardcode_direct_absolute
16530
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16531
# into the resulting binary.
16532
hardcode_minus_L=$hardcode_minus_L
16534
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16535
# into the resulting binary.
16536
hardcode_shlibpath_var=$hardcode_shlibpath_var
16538
# Set to "yes" if building a shared library automatically hardcodes DIR
16539
# into the library and all subsequent libraries and executables linked
16541
hardcode_automatic=$hardcode_automatic
16543
# Set to yes if linker adds runtime paths of dependent libraries
16544
# to runtime path list.
16545
inherit_rpath=$inherit_rpath
16547
# Whether libtool must link a program against all its dependency libraries.
16548
link_all_deplibs=$link_all_deplibs
16550
# Fix the shell variable \$srcfile for the compiler.
16551
fix_srcfile_path=$lt_fix_srcfile_path
16553
# Set to "yes" if exported symbols are required.
16554
always_export_symbols=$always_export_symbols
16556
# The commands to list exported symbols.
16557
export_symbols_cmds=$lt_export_symbols_cmds
16559
# Symbols that should not be listed in the preloaded symbols.
16560
exclude_expsyms=$lt_exclude_expsyms
16562
# Symbols that must always be exported.
16563
include_expsyms=$lt_include_expsyms
16565
# Commands necessary for linking programs (against libraries) with templates.
16566
prelink_cmds=$lt_prelink_cmds
16568
# Specify filename containing input files.
16569
file_list_spec=$lt_file_list_spec
16571
# How to hardcode a shared library path into an executable.
16572
hardcode_action=$hardcode_action
16574
# The directories searched by this compiler when creating a shared library.
16575
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16577
# Dependencies to place before and after the objects being linked to
16578
# create a shared library.
16579
predep_objects=$lt_predep_objects
16580
postdep_objects=$lt_postdep_objects
16581
predeps=$lt_predeps
16582
postdeps=$lt_postdeps
16584
# The library search path used internally by the compiler when linking
16585
# a shared library.
16586
compiler_lib_search_path=$lt_compiler_lib_search_path
16588
# ### END LIBTOOL CONFIG
16594
cat <<\_LT_EOF >> "$cfgfile"
16595
# AIX sometimes has problems with the GCC collect2 program. For some
16596
# reason, if we set the COLLECT_NAMES environment variable, the problems
16597
# vanish in a puff of smoke.
16598
if test "X${COLLECT_NAMES+set}" != Xset; then
16600
export COLLECT_NAMES
16607
ltmain="$ac_aux_dir/ltmain.sh"
16610
# We use sed instead of cat because bash on DJGPP gets confused if
16611
# if finds mixed CR/LF and LF-only lines. Since sed operates in
16612
# text mode, it properly converts lines to CR/LF. This bash problem
16613
# is reportedly fixed, but why not run on old versions too?
16614
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16615
|| (rm -f "$cfgfile"; exit 1)
16619
cat << \_LT_EOF >> "$cfgfile"
16621
# func_dirname file append nondir_replacement
16622
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16623
# otherwise set result to NONDIR_REPLACEMENT.
16627
*/*) func_dirname_result="${1%/*}${2}" ;;
16628
* ) func_dirname_result="${3}" ;;
16632
# func_basename file
16635
func_basename_result="${1##*/}"
16638
# func_dirname_and_basename file append nondir_replacement
16639
# perform func_basename and func_dirname in a single function
16641
# dirname: Compute the dirname of FILE. If nonempty,
16642
# add APPEND to the result, otherwise set result
16643
# to NONDIR_REPLACEMENT.
16644
# value returned in "$func_dirname_result"
16645
# basename: Compute filename of FILE.
16646
# value retuned in "$func_basename_result"
16647
# Implementation must be kept synchronized with func_dirname
16648
# and func_basename. For efficiency, we do not delegate to
16649
# those functions but instead duplicate the functionality here.
16650
func_dirname_and_basename ()
16653
*/*) func_dirname_result="${1%/*}${2}" ;;
16654
* ) func_dirname_result="${3}" ;;
16656
func_basename_result="${1##*/}"
16659
# func_stripname prefix suffix name
16660
# strip PREFIX and SUFFIX off of NAME.
16661
# PREFIX and SUFFIX must not contain globbing or regex special
16662
# characters, hashes, percent signs, but SUFFIX may contain a leading
16663
# dot (in which case that matches only a dot).
16666
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16667
# positional parameters, so assign one to ordinary parameter first.
16668
func_stripname_result=${3}
16669
func_stripname_result=${func_stripname_result#"${1}"}
16670
func_stripname_result=${func_stripname_result%"${2}"}
16676
func_opt_split_opt=${1%%=*}
16677
func_opt_split_arg=${1#*=}
16684
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16685
*) func_lo2o_result=${1} ;;
16689
# func_xform libobj-or-source
16692
func_xform_result=${1%.*}.lo
16695
# func_arith arithmetic-term...
16698
func_arith_result=$(( $* ))
16702
# STRING may not start with a hyphen.
16705
func_len_result=${#1}
16710
*) # Bourne compatible functions.
16711
cat << \_LT_EOF >> "$cfgfile"
16713
# func_dirname file append nondir_replacement
16714
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16715
# otherwise set result to NONDIR_REPLACEMENT.
16718
# Extract subdirectory from the argument.
16719
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16720
if test "X$func_dirname_result" = "X${1}"; then
16721
func_dirname_result="${3}"
16723
func_dirname_result="$func_dirname_result${2}"
16727
# func_basename file
16730
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16734
# func_stripname prefix suffix name
16735
# strip PREFIX and SUFFIX off of NAME.
16736
# PREFIX and SUFFIX must not contain globbing or regex special
16737
# characters, hashes, percent signs, but SUFFIX may contain a leading
16738
# dot (in which case that matches only a dot).
16739
# func_strip_suffix prefix name
16743
.*) func_stripname_result=`$ECHO "X${3}" \
16744
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16745
*) func_stripname_result=`$ECHO "X${3}" \
16746
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16751
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16752
my_sed_long_arg='1s/^-[^=]*=//'
16757
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16758
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16764
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16767
# func_xform libobj-or-source
16770
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16773
# func_arith arithmetic-term...
16776
func_arith_result=`expr "$@"`
16780
# STRING may not start with a hyphen.
16783
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16789
case $lt_shell_append in
16791
cat << \_LT_EOF >> "$cfgfile"
16793
# func_append var value
16794
# Append VALUE to the end of shell variable VAR.
16802
cat << \_LT_EOF >> "$cfgfile"
16804
# func_append var value
16805
# Append VALUE to the end of shell variable VAR.
16816
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16817
|| (rm -f "$cfgfile"; exit 1)
16819
mv -f "$cfgfile" "$ofile" ||
16820
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16824
cat <<_LT_EOF >> "$ofile"
16826
# ### BEGIN LIBTOOL TAG CONFIG: CXX
16828
# The linker used to build libraries.
16831
# Commands used to build an old-style archive.
16832
old_archive_cmds=$lt_old_archive_cmds_CXX
16834
# A language specific compiler.
16835
CC=$lt_compiler_CXX
16837
# Is the compiler the GNU compiler?
16840
# Compiler flag to turn off builtin functions.
16841
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16843
# How to pass a linker flag through the compiler.
16844
wl=$lt_lt_prog_compiler_wl_CXX
16846
# Additional compiler flags for building library objects.
16847
pic_flag=$lt_lt_prog_compiler_pic_CXX
16849
# Compiler flag to prevent dynamic linking.
16850
link_static_flag=$lt_lt_prog_compiler_static_CXX
16852
# Does compiler simultaneously support -c and -o options?
16853
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16855
# Whether or not to add -lc for building shared libraries.
16856
build_libtool_need_lc=$archive_cmds_need_lc_CXX
16858
# Whether or not to disallow shared libs when runtime libs are static.
16859
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16861
# Compiler flag to allow reflexive dlopens.
16862
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16864
# Compiler flag to generate shared objects directly from archives.
16865
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16867
# Whether the compiler copes with passing no objects directly.
16868
compiler_needs_object=$lt_compiler_needs_object_CXX
16870
# Create an old-style archive from a shared archive.
16871
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16873
# Create a temporary old-style archive to link instead of a shared archive.
16874
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16876
# Commands used to build a shared archive.
16877
archive_cmds=$lt_archive_cmds_CXX
16878
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16880
# Commands used to build a loadable module if different from building
16881
# a shared archive.
16882
module_cmds=$lt_module_cmds_CXX
16883
module_expsym_cmds=$lt_module_expsym_cmds_CXX
16885
# Whether we are building with GNU ld or not.
16886
with_gnu_ld=$lt_with_gnu_ld_CXX
16888
# Flag that allows shared libraries with undefined symbols to be built.
16889
allow_undefined_flag=$lt_allow_undefined_flag_CXX
16891
# Flag that enforces no undefined symbols.
16892
no_undefined_flag=$lt_no_undefined_flag_CXX
16894
# Flag to hardcode \$libdir into a binary during linking.
16895
# This must work even if \$libdir does not exist
16896
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16898
# If ld is used when linking, flag to hardcode \$libdir into a binary
16899
# during linking. This must work even if \$libdir does not exist.
16900
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16902
# Whether we need a single "-rpath" flag with a separated argument.
16903
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16905
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16906
# DIR into the resulting binary.
16907
hardcode_direct=$hardcode_direct_CXX
16909
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16910
# DIR into the resulting binary and the resulting library dependency is
16911
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16912
# library is relocated.
16913
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16915
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16916
# into the resulting binary.
16917
hardcode_minus_L=$hardcode_minus_L_CXX
16919
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16920
# into the resulting binary.
16921
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16923
# Set to "yes" if building a shared library automatically hardcodes DIR
16924
# into the library and all subsequent libraries and executables linked
16926
hardcode_automatic=$hardcode_automatic_CXX
16928
# Set to yes if linker adds runtime paths of dependent libraries
16929
# to runtime path list.
16930
inherit_rpath=$inherit_rpath_CXX
16932
# Whether libtool must link a program against all its dependency libraries.
16933
link_all_deplibs=$link_all_deplibs_CXX
16935
# Fix the shell variable \$srcfile for the compiler.
16936
fix_srcfile_path=$lt_fix_srcfile_path_CXX
16938
# Set to "yes" if exported symbols are required.
16939
always_export_symbols=$always_export_symbols_CXX
16941
# The commands to list exported symbols.
16942
export_symbols_cmds=$lt_export_symbols_cmds_CXX
16944
# Symbols that should not be listed in the preloaded symbols.
16945
exclude_expsyms=$lt_exclude_expsyms_CXX
16947
# Symbols that must always be exported.
16948
include_expsyms=$lt_include_expsyms_CXX
16950
# Commands necessary for linking programs (against libraries) with templates.
16951
prelink_cmds=$lt_prelink_cmds_CXX
16953
# Specify filename containing input files.
16954
file_list_spec=$lt_file_list_spec_CXX
16956
# How to hardcode a shared library path into an executable.
16957
hardcode_action=$hardcode_action_CXX
16959
# The directories searched by this compiler when creating a shared library.
16960
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16962
# Dependencies to place before and after the objects being linked to
16963
# create a shared library.
16964
predep_objects=$lt_predep_objects_CXX
16965
postdep_objects=$lt_postdep_objects_CXX
16966
predeps=$lt_predeps_CXX
16967
postdeps=$lt_postdeps_CXX
16969
# The library search path used internally by the compiler when linking
16970
# a shared library.
16971
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16973
# ### END LIBTOOL TAG CONFIG: CXX
16984
ac_clean_files=$ac_clean_files_save
16986
test $ac_write_fail = 0 ||
16987
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16990
# configure is writing to config.log, and then calls config.status.
16991
# config.status does its own redirection, appending to config.log.
16992
# Unfortunately, on DOS this fails, as config.log is still kept open
16993
# by configure, so config.status won't be able to write to it; its
16994
# output is simply discarded. So we exec the FD to /dev/null,
16995
# effectively closing config.log, so it can be properly (re)opened and
16996
# appended to by config.status. When coming back to configure, we
16997
# need to make the FD available again.
16998
if test "$no_create" != yes; then
17000
ac_config_status_args=
17001
test "$silent" = yes &&
17002
ac_config_status_args="$ac_config_status_args --quiet"
17004
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17006
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
17007
# would make configure fail if this is the last instruction.
17008
$ac_cs_success || as_fn_exit $?
17010
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17011
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17012
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}