2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.67 for libclamavc++ devel.
5
# Report bugs to <http://bugs.clamav.net>.
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
# is contrary to our usage. Disable this feature.
26
alias -g '${1+"$@"}'='"$@"'
29
case `(set -o) 2>/dev/null` in #(
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50
as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
as_echo_n='/usr/ucb/echo -n'
59
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64
expr "X$arg" : "X\\(.*\\)$as_nl";
65
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
as_echo_n='sh -c $as_echo_n_body as_echo'
73
as_echo='sh -c $as_echo_body as_echo'
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
79
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87
# We need space, tab and new line, in precisely that order. Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
93
# Find who we are. Look in the path if we contain no directory separator.
95
*[\\/]* ) as_myself=$0 ;;
96
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
test -z "$as_dir" && as_dir=.
101
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
108
# in which case we are not to be found in the path.
109
if test "x$as_myself" = x; then
112
if test ! -f "$as_myself"; then
113
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
# Unset variables that we do not need and which cause bugs (e.g. in
118
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119
# suppresses any "Segmentation fault" message there. '((' could
120
# trigger a bug in pdksh 5.2.14.
121
for as_var in BASH_ENV ENV MAIL MAILPATH
122
do eval test x\${$as_var+set} = xset \
123
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
if test "x$CONFIG_SHELL" = x; then
139
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
# is contrary to our usage. Disable this feature.
144
alias -g '\${1+\"\$@\"}'='\"\$@\"'
147
case \`(set -o) 2>/dev/null\` in #(
155
as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
exitcode=1; echo positional parameters were not saved.
171
test x\$exitcode = x0 || exit 1"
172
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
177
if (eval "$as_required") 2>/dev/null; then :
182
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190
test -z "$as_dir" && as_dir=.
194
for as_base in sh bash ksh sh5; do
195
# Try only shells that exist, to save several forks.
196
as_shell=$as_dir/$as_base
197
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
CONFIG_SHELL=$as_shell as_have_required=yes
200
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
CONFIG_SHELL=$SHELL as_have_required=yes
215
if test "x$CONFIG_SHELL" != x; then :
216
# We cannot yet assume a decent shell, so we have to provide a
217
# neutralization value for shells without unset; and this also
218
# works around shells that cannot unset nonexistent variables.
221
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226
if test x$as_have_required = xno; then :
227
$as_echo "$0: This script requires a shell more modern than all"
228
$as_echo "$0: the shells that I found on your system."
229
if test x${ZSH_VERSION+set} = xset ; then
230
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
233
$as_echo "$0: Please tell bug-autoconf@gnu.org and
234
$0: http://bugs.clamav.net about your system, including any
235
$0: error possibly output before this message. Then install
236
$0: a modern shell, or manually run the script under such a
237
$0: shell if you do have one."
243
SHELL=${CONFIG_SHELL-/bin/sh}
245
# Unset more variables known to interfere with behavior of common tools.
246
CLICOLOR_FORCE= GREP_OPTIONS=
247
unset CLICOLOR_FORCE GREP_OPTIONS
249
## --------------------- ##
250
## M4sh Shell Functions. ##
251
## --------------------- ##
254
# Portably unset VAR.
257
{ eval $1=; unset $1;}
261
# as_fn_set_status STATUS
262
# -----------------------
263
# Set $? to STATUS, without forking.
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281
# Create "$as_dir" as a directory, including parents if necessary.
286
-*) as_dir=./$as_dir;;
288
test -d "$as_dir" || eval $as_mkdir_p || {
292
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295
as_dirs="'$as_qdir' $as_dirs"
296
as_dir=`$as_dirname -- "$as_dir" ||
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
X"$as_dir" : 'X\(//\)[^/]' \| \
299
X"$as_dir" : 'X\(//\)$' \| \
300
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
$as_echo X"$as_dir" |
302
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
test -d "$as_dir" && break
321
test -z "$as_dirs" || eval "mkdir $as_dirs"
322
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326
# as_fn_append VAR VALUE
327
# ----------------------
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
329
# advantage of any shell optimizations that allow amortized linear growth over
330
# repeated appends, instead of the typical quadratic growth present in naive
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
eval 'as_fn_append ()
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
348
# must be portable across $(()) and expr.
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357
as_val=`expr "$@" || test $? -eq 1`
362
# as_fn_error STATUS ERROR [LINENO LOG_FD]
363
# ----------------------------------------
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
# script with STATUS, using 1 if that was 0.
369
as_status=$1; test $as_status -eq 0 && as_status=1
371
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374
$as_echo "$as_me: error: $2" >&2
375
as_fn_exit $as_status
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
test "X`expr 00001 : '.*\(...\)'`" = X001; then
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397
as_me=`$as_basename -- "$0" ||
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
X"$0" : 'X\(//\)$' \| \
400
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402
sed '/^.*\/\([^/][^/]*\)\/*$/{
416
# Avoid depending upon Character Ranges.
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420
as_cr_digits='0123456789'
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
424
as_lineno_1=$LINENO as_lineno_1a=$LINENO
425
as_lineno_2=$LINENO as_lineno_2a=$LINENO
426
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444
chmod +x "$as_me.lineno" ||
445
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
# Don't try to exec as it changes $[0], causing all sort of problems
448
# (the dirname of $[0] is not the place where we might find the
449
# original and so on. Autoconf is especially sensitive to this).
451
# Exit status is that of the last command.
455
ECHO_C= ECHO_N= ECHO_T=
456
case `echo -n x` in #(((((
458
case `echo 'xy\c'` in
459
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
461
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468
rm -f conf$$ conf$$.exe conf$$.file
469
if test -d conf$$.dir; then
470
rm -f conf$$.dir/conf$$.file
473
mkdir conf$$.dir 2>/dev/null
475
if (echo >conf$$.file) 2>/dev/null; then
476
if ln -s conf$$.file conf$$ 2>/dev/null; then
478
# ... but there are two gotchas:
479
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481
# In both cases, we have to default to `cp -p'.
482
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484
elif ln conf$$.file conf$$ 2>/dev/null; then
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493
rmdir conf$$.dir 2>/dev/null
495
if mkdir -p . 2>/dev/null; then
496
as_mkdir_p='mkdir -p "$as_dir"'
498
test -d ./-p && rmdir ./-p
502
if test -x / >/dev/null 2>&1; then
505
if ls -dL / >/dev/null 2>&1; then
512
if test -d "$1"; then
518
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519
???[sx]*):;;*)false;;esac;fi
523
as_executable_p=$as_test_x
525
# Sed expression to map a string onto a valid CPP name.
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
# Sed expression to map a string onto a valid variable name.
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
# Check that we are running under the correct shell.
534
SHELL=${CONFIG_SHELL-/bin/sh}
538
# Remove one level of quotation (which was required for Make).
539
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544
if test "X$1" = X--no-reexec; then
545
# Discard the --no-reexec flag, and continue.
547
elif test "X$1" = X--fallback-echo; then
548
# Avoid inline document here, it may be left over
550
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551
# Yippee, $ECHO works!
554
# Restart under the correct shell.
555
exec $SHELL "$0" --no-reexec ${1+"$@"}
558
if test "X$1" = X--fallback-echo; then
559
# used as fallback echo
567
# The HP-UX ksh and POSIX shell print the target directory to stdout
569
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
if test -z "$lt_ECHO"; then
572
if test "X${echo_test_string+set}" != Xset; then
573
# find a string as large as possible, as long as the shell can cope with it
574
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586
test "X$echo_testing_string" = "X$echo_test_string"; then
589
# The Solaris, AIX, and Digital Unix default echo programs unquote
590
# backslashes. This makes it impossible to quote backslashes using
591
# echo "$something" | sed 's/\\/\\\\/g'
593
# So, first we look for a working echo in the user's PATH.
595
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596
for dir in $PATH /usr/ucb; do
598
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601
test "X$echo_testing_string" = "X$echo_test_string"; then
608
if test "X$ECHO" = Xecho; then
609
# We didn't find a better echo, so look for alternatives.
610
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612
test "X$echo_testing_string" = "X$echo_test_string"; then
613
# This shell has a builtin print -r that does the trick.
615
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616
test "X$CONFIG_SHELL" != X/bin/ksh; then
617
# If we have ksh, try running configure again with it.
618
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619
export ORIGINAL_CONFIG_SHELL
620
CONFIG_SHELL=/bin/ksh
622
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628
test "X$echo_testing_string" = "X$echo_test_string"; then
631
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632
test "X$echo_testing_string" = 'X\t' &&
633
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634
test "X$echo_testing_string" = "X$echo_test_string"; then
635
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637
SHELL="$CONFIG_SHELL"
639
ECHO="$CONFIG_SHELL $0 --fallback-echo"
640
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641
test "X$echo_testing_string" = 'X\t' &&
642
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643
test "X$echo_testing_string" = "X$echo_test_string"; then
644
ECHO="$CONFIG_SHELL $0 --fallback-echo"
646
# maybe with a smaller string...
649
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657
if test "$prev" != 'sed 50q "$0"'; then
658
echo_test_string=`eval $prev`
659
export echo_test_string
660
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662
# Oops. We lost completely, so just stick with echo.
671
# Copy echo and quote the copy suitably for passing to libtool from
672
# the Makefile, instead of quoting the original, which is used later.
674
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681
test -n "$DJDIR" || exec 7<&0 </dev/null
685
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686
# so uname gets run too.
687
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
ac_default_prefix=/usr/local
694
ac_config_libobj_dir=.
701
# Identity of this package.
702
PACKAGE_NAME='libclamavc++'
703
PACKAGE_TARNAME='libclamavc--'
704
PACKAGE_VERSION='devel'
705
PACKAGE_STRING='libclamavc++ devel'
706
PACKAGE_BUGREPORT='http://bugs.clamav.net'
709
ac_unique_file="llvm/configure"
710
# Factoring default headers for most tests.
711
ac_includes_default="\
713
#ifdef HAVE_SYS_TYPES_H
714
# include <sys/types.h>
716
#ifdef HAVE_SYS_STAT_H
717
# include <sys/stat.h>
723
# ifdef HAVE_STDLIB_H
728
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733
#ifdef HAVE_STRINGS_H
734
# include <strings.h>
736
#ifdef HAVE_INTTYPES_H
737
# include <inttypes.h>
746
enable_option_checking=no
747
ac_subst_vars='am__EXEEXT_FALSE
751
BUILD_EXTERNAL_LLVM_FALSE
752
BUILD_EXTERNAL_LLVM_TRUE
753
NO_MISSING_FIELD_INITIALIZERS
788
MAINTAINER_MODE_FALSE
825
INSTALL_STRIP_PROGRAM
879
program_transform_name
892
enable_option_checking
894
enable_dependency_tracking
895
enable_maintainer_mode
905
enable_all_jit_targets
907
ac_precious_vars='build_alias
920
ac_subdirs_all='llvm'
922
# Initialize some variables set by options.
924
ac_init_version=false
925
ac_unrecognized_opts=
927
# The variables have the same names as the options, with
928
# dashes changed to underlines.
936
program_transform_name=s,x,x,
944
# Installation directory options.
945
# These are left unexpanded so users can "make install exec_prefix=/foo"
946
# and all the variables that are supposed to be based on exec_prefix
947
# by default will actually change.
948
# Use braces instead of parens because sh, perl, etc. also accept them.
949
# (The list follows the same order as the GNU Coding Standards.)
950
bindir='${exec_prefix}/bin'
951
sbindir='${exec_prefix}/sbin'
952
libexecdir='${exec_prefix}/libexec'
953
datarootdir='${prefix}/share'
954
datadir='${datarootdir}'
955
sysconfdir='${prefix}/etc'
956
sharedstatedir='${prefix}/com'
957
localstatedir='${prefix}/var'
958
includedir='${prefix}/include'
959
oldincludedir='/usr/include'
960
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961
infodir='${datarootdir}/info'
966
libdir='${exec_prefix}/lib'
967
localedir='${datarootdir}/locale'
968
mandir='${datarootdir}/man'
974
# If the previous option needs an argument, assign it.
975
if test -n "$ac_prev"; then
976
eval $ac_prev=\$ac_option
982
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987
# Accept the important Cygnus configure options, so we can diagnose typos.
989
case $ac_dashdash$ac_option in
993
-bindir | --bindir | --bindi | --bind | --bin | --bi)
995
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
998
-build | --build | --buil | --bui | --bu)
999
ac_prev=build_alias ;;
1000
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001
build_alias=$ac_optarg ;;
1003
-cache-file | --cache-file | --cache-fil | --cache-fi \
1004
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005
ac_prev=cache_file ;;
1006
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008
cache_file=$ac_optarg ;;
1010
--config-cache | -C)
1011
cache_file=config.cache ;;
1013
-datadir | --datadir | --datadi | --datad)
1015
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1016
datadir=$ac_optarg ;;
1018
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019
| --dataroo | --dataro | --datar)
1020
ac_prev=datarootdir ;;
1021
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023
datarootdir=$ac_optarg ;;
1025
-disable-* | --disable-*)
1026
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027
# Reject names that are not valid shell variable names.
1028
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029
as_fn_error $? "invalid feature name: $ac_useropt"
1030
ac_useropt_orig=$ac_useropt
1031
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032
case $ac_user_opts in
1034
"enable_$ac_useropt"
1036
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037
ac_unrecognized_sep=', ';;
1039
eval enable_$ac_useropt=no ;;
1041
-docdir | --docdir | --docdi | --doc | --do)
1043
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044
docdir=$ac_optarg ;;
1046
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049
dvidir=$ac_optarg ;;
1051
-enable-* | --enable-*)
1052
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053
# Reject names that are not valid shell variable names.
1054
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055
as_fn_error $? "invalid feature name: $ac_useropt"
1056
ac_useropt_orig=$ac_useropt
1057
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058
case $ac_user_opts in
1060
"enable_$ac_useropt"
1062
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063
ac_unrecognized_sep=', ';;
1065
eval enable_$ac_useropt=\$ac_optarg ;;
1067
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069
| --exec | --exe | --ex)
1070
ac_prev=exec_prefix ;;
1071
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073
| --exec=* | --exe=* | --ex=*)
1074
exec_prefix=$ac_optarg ;;
1076
-gas | --gas | --ga | --g)
1077
# Obsolete; use --with-gas.
1080
-help | --help | --hel | --he | -h)
1081
ac_init_help=long ;;
1082
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083
ac_init_help=recursive ;;
1084
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085
ac_init_help=short ;;
1087
-host | --host | --hos | --ho)
1088
ac_prev=host_alias ;;
1089
-host=* | --host=* | --hos=* | --ho=*)
1090
host_alias=$ac_optarg ;;
1092
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096
htmldir=$ac_optarg ;;
1098
-includedir | --includedir | --includedi | --included | --include \
1099
| --includ | --inclu | --incl | --inc)
1100
ac_prev=includedir ;;
1101
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102
| --includ=* | --inclu=* | --incl=* | --inc=*)
1103
includedir=$ac_optarg ;;
1105
-infodir | --infodir | --infodi | --infod | --info | --inf)
1107
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108
infodir=$ac_optarg ;;
1110
-libdir | --libdir | --libdi | --libd)
1112
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1113
libdir=$ac_optarg ;;
1115
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116
| --libexe | --libex | --libe)
1117
ac_prev=libexecdir ;;
1118
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119
| --libexe=* | --libex=* | --libe=*)
1120
libexecdir=$ac_optarg ;;
1122
-localedir | --localedir | --localedi | --localed | --locale)
1123
ac_prev=localedir ;;
1124
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125
localedir=$ac_optarg ;;
1127
-localstatedir | --localstatedir | --localstatedi | --localstated \
1128
| --localstate | --localstat | --localsta | --localst | --locals)
1129
ac_prev=localstatedir ;;
1130
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132
localstatedir=$ac_optarg ;;
1134
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137
mandir=$ac_optarg ;;
1139
-nfp | --nfp | --nf)
1140
# Obsolete; use --without-fp.
1143
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144
| --no-cr | --no-c | -n)
1147
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153
| --oldin | --oldi | --old | --ol | --o)
1154
ac_prev=oldincludedir ;;
1155
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158
oldincludedir=$ac_optarg ;;
1160
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163
prefix=$ac_optarg ;;
1165
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1166
| --program-pre | --program-pr | --program-p)
1167
ac_prev=program_prefix ;;
1168
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1169
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170
program_prefix=$ac_optarg ;;
1172
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1173
| --program-suf | --program-su | --program-s)
1174
ac_prev=program_suffix ;;
1175
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1176
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177
program_suffix=$ac_optarg ;;
1179
-program-transform-name | --program-transform-name \
1180
| --program-transform-nam | --program-transform-na \
1181
| --program-transform-n | --program-transform- \
1182
| --program-transform | --program-transfor \
1183
| --program-transfo | --program-transf \
1184
| --program-trans | --program-tran \
1185
| --progr-tra | --program-tr | --program-t)
1186
ac_prev=program_transform_name ;;
1187
-program-transform-name=* | --program-transform-name=* \
1188
| --program-transform-nam=* | --program-transform-na=* \
1189
| --program-transform-n=* | --program-transform-=* \
1190
| --program-transform=* | --program-transfor=* \
1191
| --program-transfo=* | --program-transf=* \
1192
| --program-trans=* | --program-tran=* \
1193
| --progr-tra=* | --program-tr=* | --program-t=*)
1194
program_transform_name=$ac_optarg ;;
1196
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199
pdfdir=$ac_optarg ;;
1201
-psdir | --psdir | --psdi | --psd | --ps)
1203
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207
| -silent | --silent | --silen | --sile | --sil)
1210
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1212
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1214
sbindir=$ac_optarg ;;
1216
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1217
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218
| --sharedst | --shareds | --shared | --share | --shar \
1220
ac_prev=sharedstatedir ;;
1221
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1225
sharedstatedir=$ac_optarg ;;
1227
-site | --site | --sit)
1229
-site=* | --site=* | --sit=*)
1232
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1234
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235
srcdir=$ac_optarg ;;
1237
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238
| --syscon | --sysco | --sysc | --sys | --sy)
1239
ac_prev=sysconfdir ;;
1240
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242
sysconfdir=$ac_optarg ;;
1244
-target | --target | --targe | --targ | --tar | --ta | --t)
1245
ac_prev=target_alias ;;
1246
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247
target_alias=$ac_optarg ;;
1249
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1252
-version | --version | --versio | --versi | --vers | -V)
1253
ac_init_version=: ;;
1256
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257
# Reject names that are not valid shell variable names.
1258
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259
as_fn_error $? "invalid package name: $ac_useropt"
1260
ac_useropt_orig=$ac_useropt
1261
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262
case $ac_user_opts in
1266
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267
ac_unrecognized_sep=', ';;
1269
eval with_$ac_useropt=\$ac_optarg ;;
1271
-without-* | --without-*)
1272
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273
# Reject names that are not valid shell variable names.
1274
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275
as_fn_error $? "invalid package name: $ac_useropt"
1276
ac_useropt_orig=$ac_useropt
1277
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278
case $ac_user_opts in
1282
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283
ac_unrecognized_sep=', ';;
1285
eval with_$ac_useropt=no ;;
1288
# Obsolete; use --with-x.
1291
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292
| --x-incl | --x-inc | --x-in | --x-i)
1293
ac_prev=x_includes ;;
1294
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296
x_includes=$ac_optarg ;;
1298
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1299
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300
ac_prev=x_libraries ;;
1301
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303
x_libraries=$ac_optarg ;;
1305
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1306
Try \`$0 --help' for more information"
1310
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311
# Reject names that are not valid shell variable names.
1312
case $ac_envvar in #(
1313
'' | [0-9]* | *[!_$as_cr_alnum]* )
1314
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1316
eval $ac_envvar=\$ac_optarg
1317
export $ac_envvar ;;
1320
# FIXME: should be removed in autoconf 3.0.
1321
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1330
if test -n "$ac_prev"; then
1331
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332
as_fn_error $? "missing argument to $ac_option"
1335
if test -n "$ac_unrecognized_opts"; then
1336
case $enable_option_checking in
1338
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1339
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1343
# Check all directory arguments for consistency.
1344
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345
datadir sysconfdir sharedstatedir localstatedir includedir \
1346
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347
libdir localedir mandir
1349
eval ac_val=\$$ac_var
1350
# Remove trailing slashes.
1353
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1354
eval $ac_var=\$ac_val;;
1356
# Be sure to have absolute directory names.
1358
[\\/$]* | ?:[\\/]* ) continue;;
1359
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1361
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1364
# There might be people who depend on the old broken behavior: `$host'
1365
# used to hold the argument of --host etc.
1366
# FIXME: To remove some day.
1369
target=$target_alias
1371
# FIXME: To remove some day.
1372
if test "x$host_alias" != x; then
1373
if test "x$build_alias" = x; then
1374
cross_compiling=maybe
1375
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1376
If a cross compiler is detected then cross compile mode will be used" >&2
1377
elif test "x$build_alias" != "x$host_alias"; then
1383
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385
test "$silent" = yes && exec 6>/dev/null
1388
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389
ac_ls_di=`ls -di .` &&
1390
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391
as_fn_error $? "working directory cannot be determined"
1392
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393
as_fn_error $? "pwd does not report name of working directory"
1396
# Find the source files, if location was not specified.
1397
if test -z "$srcdir"; then
1398
ac_srcdir_defaulted=yes
1399
# Try the directory containing this script, then the parent directory.
1400
ac_confdir=`$as_dirname -- "$as_myself" ||
1401
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402
X"$as_myself" : 'X\(//\)[^/]' \| \
1403
X"$as_myself" : 'X\(//\)$' \| \
1404
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405
$as_echo X"$as_myself" |
1406
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424
if test ! -r "$srcdir/$ac_unique_file"; then
1428
ac_srcdir_defaulted=no
1430
if test ! -r "$srcdir/$ac_unique_file"; then
1431
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1434
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1438
# When building in place, set srcdir=.
1439
if test "$ac_abs_confdir" = "$ac_pwd"; then
1442
# Remove unnecessary trailing slashes from srcdir.
1443
# Double slashes in file names in object file debugging info
1444
# mess up M-x gdb in Emacs.
1446
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448
for ac_var in $ac_precious_vars; do
1449
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450
eval ac_env_${ac_var}_value=\$${ac_var}
1451
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456
# Report the --help message.
1458
if test "$ac_init_help" = "long"; then
1459
# Omit some internal or obsolete options to make the list less imposing.
1460
# This message is too long to be a string in the A/UX 3.1 sh.
1462
\`configure' configures libclamavc++ devel to adapt to many kinds of systems.
1464
Usage: $0 [OPTION]... [VAR=VALUE]...
1466
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467
VAR=VALUE. See below for descriptions of some of the useful variables.
1469
Defaults for the options are specified in brackets.
1472
-h, --help display this help and exit
1473
--help=short display options specific to this package
1474
--help=recursive display the short help of all the included packages
1475
-V, --version display version information and exit
1476
-q, --quiet, --silent do not print \`checking ...' messages
1477
--cache-file=FILE cache test results in FILE [disabled]
1478
-C, --config-cache alias for \`--cache-file=config.cache'
1479
-n, --no-create do not create output files
1480
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1482
Installation directories:
1483
--prefix=PREFIX install architecture-independent files in PREFIX
1484
[$ac_default_prefix]
1485
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488
By default, \`make install' will install all the files in
1489
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491
for instance \`--prefix=\$HOME'.
1493
For better control, use the options below.
1495
Fine tuning of the installation directories:
1496
--bindir=DIR user executables [EPREFIX/bin]
1497
--sbindir=DIR system admin executables [EPREFIX/sbin]
1498
--libexecdir=DIR program executables [EPREFIX/libexec]
1499
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502
--libdir=DIR object code libraries [EPREFIX/lib]
1503
--includedir=DIR C header files [PREFIX/include]
1504
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1505
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507
--infodir=DIR info documentation [DATAROOTDIR/info]
1508
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509
--mandir=DIR man documentation [DATAROOTDIR/man]
1510
--docdir=DIR documentation root [DATAROOTDIR/doc/libclamavc--]
1511
--htmldir=DIR html documentation [DOCDIR]
1512
--dvidir=DIR dvi documentation [DOCDIR]
1513
--pdfdir=DIR pdf documentation [DOCDIR]
1514
--psdir=DIR ps documentation [DOCDIR]
1520
--program-prefix=PREFIX prepend PREFIX to installed program names
1521
--program-suffix=SUFFIX append SUFFIX to installed program names
1522
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1525
--build=BUILD configure for building on BUILD [guessed]
1526
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1527
--target=TARGET configure for building compilers for TARGET [HOST]
1531
if test -n "$ac_init_help"; then
1532
case $ac_init_help in
1533
short | recursive ) echo "Configuration of libclamavc++ devel:";;
1538
--disable-option-checking ignore unrecognized --enable/--with options
1539
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1540
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1541
--enable-silent-rules less verbose build output (undo: `make V=1')
1542
--disable-silent-rules verbose build output (undo: `make V=0')
1543
--disable-dependency-tracking speeds up one-time build
1544
--enable-dependency-tracking do not reject slow dependency extractors
1545
--enable-maintainer-mode enable make rules and dependencies not useful
1546
(and sometimes confusing) to the casual installer
1547
--enable-static[=PKGS] build static libraries [default=no]
1548
--enable-shared[=PKGS] build shared libraries [default=yes]
1549
--enable-fast-install[=PKGS]
1550
optimize for fast installation [default=yes]
1551
--disable-libtool-lock avoid locking (might break parallel builds)
1552
-enable-llvm Enable 'llvm' JIT/verifier support [default=auto]
1553
-enable-optimized Compile with optimizations enabled (default is YES)
1554
-enable-all-jit-targets Build all the targets that support JIT for testing
1558
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1559
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1560
--with-pic try to use only PIC/non-PIC objects [default=use
1562
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1563
-with-system-llvm Use system llvm instead of built-in, requires full
1566
Some influential environment variables:
1567
CXX C++ compiler command
1568
CXXFLAGS C++ compiler flags
1569
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570
nonstandard directory <lib dir>
1571
LIBS libraries to pass to the linker, e.g. -l<library>
1572
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1573
you have headers in a nonstandard directory <include dir>
1574
CC C compiler command
1575
CFLAGS C compiler flags
1577
CXXCPP C++ preprocessor
1579
Use these variables to override the choices made by `configure' or to help
1580
it to find libraries and programs with nonstandard names/locations.
1582
Report bugs to <http://bugs.clamav.net>.
1587
if test "$ac_init_help" = "recursive"; then
1588
# If there are subdirs, report their specific --help.
1589
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1590
test -d "$ac_dir" ||
1591
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1596
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1599
# A ".." for each directory in $ac_dir_suffix.
1600
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1601
case $ac_top_builddir_sub in
1602
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606
ac_abs_top_builddir=$ac_pwd
1607
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1608
# for backward compatibility:
1609
ac_top_builddir=$ac_top_build_prefix
1612
.) # We are building in place.
1614
ac_top_srcdir=$ac_top_builddir_sub
1615
ac_abs_top_srcdir=$ac_pwd ;;
1616
[\\/]* | ?:[\\/]* ) # Absolute name.
1617
ac_srcdir=$srcdir$ac_dir_suffix;
1618
ac_top_srcdir=$srcdir
1619
ac_abs_top_srcdir=$srcdir ;;
1621
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1622
ac_top_srcdir=$ac_top_build_prefix$srcdir
1623
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1625
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627
cd "$ac_dir" || { ac_status=$?; continue; }
1628
# Check for guested configure.
1629
if test -f "$ac_srcdir/configure.gnu"; then
1631
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1632
elif test -f "$ac_srcdir/configure"; then
1634
$SHELL "$ac_srcdir/configure" --help=recursive
1636
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638
cd "$ac_pwd" || { ac_status=$?; break; }
1642
test -n "$ac_init_help" && exit $ac_status
1643
if $ac_init_version; then
1645
libclamavc++ configure devel
1646
generated by GNU Autoconf 2.67
1648
Copyright (C) 2010 Free Software Foundation, Inc.
1649
This configure script is free software; the Free Software Foundation
1650
gives unlimited permission to copy, distribute and modify it.
1655
## ------------------------ ##
1656
## Autoconf initialization. ##
1657
## ------------------------ ##
1659
# ac_fn_cxx_try_compile LINENO
1660
# ----------------------------
1661
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1662
ac_fn_cxx_try_compile ()
1664
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665
rm -f conftest.$ac_objext
1666
if { { ac_try="$ac_compile"
1668
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669
*) ac_try_echo=$ac_try;;
1671
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672
$as_echo "$ac_try_echo"; } >&5
1673
(eval "$ac_compile") 2>conftest.err
1675
if test -s conftest.err; then
1676
grep -v '^ *+' conftest.err >conftest.er1
1677
cat conftest.er1 >&5
1678
mv -f conftest.er1 conftest.err
1680
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681
test $ac_status = 0; } && {
1682
test -z "$ac_cxx_werror_flag" ||
1683
test ! -s conftest.err
1684
} && test -s conftest.$ac_objext; then :
1687
$as_echo "$as_me: failed program was:" >&5
1688
sed 's/^/| /' conftest.$ac_ext >&5
1692
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1693
as_fn_set_status $ac_retval
1695
} # ac_fn_cxx_try_compile
1697
# ac_fn_c_try_compile LINENO
1698
# --------------------------
1699
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1700
ac_fn_c_try_compile ()
1702
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703
rm -f conftest.$ac_objext
1704
if { { ac_try="$ac_compile"
1706
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707
*) ac_try_echo=$ac_try;;
1709
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710
$as_echo "$ac_try_echo"; } >&5
1711
(eval "$ac_compile") 2>conftest.err
1713
if test -s conftest.err; then
1714
grep -v '^ *+' conftest.err >conftest.er1
1715
cat conftest.er1 >&5
1716
mv -f conftest.er1 conftest.err
1718
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719
test $ac_status = 0; } && {
1720
test -z "$ac_c_werror_flag" ||
1721
test ! -s conftest.err
1722
} && test -s conftest.$ac_objext; then :
1725
$as_echo "$as_me: failed program was:" >&5
1726
sed 's/^/| /' conftest.$ac_ext >&5
1730
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731
as_fn_set_status $ac_retval
1733
} # ac_fn_c_try_compile
1735
# ac_fn_c_try_run LINENO
1736
# ----------------------
1737
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738
# that executables *can* be run.
1741
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742
if { { ac_try="$ac_link"
1744
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745
*) ac_try_echo=$ac_try;;
1747
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748
$as_echo "$ac_try_echo"; } >&5
1749
(eval "$ac_link") 2>&5
1751
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753
{ { case "(($ac_try" in
1754
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755
*) ac_try_echo=$ac_try;;
1757
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758
$as_echo "$ac_try_echo"; } >&5
1759
(eval "$ac_try") 2>&5
1761
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762
test $ac_status = 0; }; }; then :
1765
$as_echo "$as_me: program exited with status $ac_status" >&5
1766
$as_echo "$as_me: failed program was:" >&5
1767
sed 's/^/| /' conftest.$ac_ext >&5
1769
ac_retval=$ac_status
1771
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773
as_fn_set_status $ac_retval
1777
# ac_fn_c_try_cpp LINENO
1778
# ----------------------
1779
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1782
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783
if { { ac_try="$ac_cpp conftest.$ac_ext"
1785
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786
*) ac_try_echo=$ac_try;;
1788
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789
$as_echo "$ac_try_echo"; } >&5
1790
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1792
if test -s conftest.err; then
1793
grep -v '^ *+' conftest.err >conftest.er1
1794
cat conftest.er1 >&5
1795
mv -f conftest.er1 conftest.err
1797
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798
test $ac_status = 0; } > conftest.i && {
1799
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1800
test ! -s conftest.err
1804
$as_echo "$as_me: failed program was:" >&5
1805
sed 's/^/| /' conftest.$ac_ext >&5
1809
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810
as_fn_set_status $ac_retval
1814
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1815
# -------------------------------------------------------
1816
# Tests whether HEADER exists and can be compiled using the include files in
1817
# INCLUDES, setting the cache variable VAR accordingly.
1818
ac_fn_c_check_header_compile ()
1820
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822
$as_echo_n "checking for $2... " >&6; }
1823
if eval "test \"\${$3+set}\"" = set; then :
1824
$as_echo_n "(cached) " >&6
1826
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827
/* end confdefs.h. */
1831
if ac_fn_c_try_compile "$LINENO"; then :
1836
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840
$as_echo "$ac_res" >&6; }
1841
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1843
} # ac_fn_c_check_header_compile
1845
# ac_fn_c_try_link LINENO
1846
# -----------------------
1847
# Try to link conftest.$ac_ext, and return whether this succeeded.
1850
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851
rm -f conftest.$ac_objext conftest$ac_exeext
1852
if { { ac_try="$ac_link"
1854
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855
*) ac_try_echo=$ac_try;;
1857
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858
$as_echo "$ac_try_echo"; } >&5
1859
(eval "$ac_link") 2>conftest.err
1861
if test -s conftest.err; then
1862
grep -v '^ *+' conftest.err >conftest.er1
1863
cat conftest.er1 >&5
1864
mv -f conftest.er1 conftest.err
1866
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867
test $ac_status = 0; } && {
1868
test -z "$ac_c_werror_flag" ||
1869
test ! -s conftest.err
1870
} && test -s conftest$ac_exeext && {
1871
test "$cross_compiling" = yes ||
1872
$as_test_x conftest$ac_exeext
1876
$as_echo "$as_me: failed program was:" >&5
1877
sed 's/^/| /' conftest.$ac_ext >&5
1881
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1882
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1883
# interfere with the next link command; also delete a directory that is
1884
# left behind by Apple's compiler. We do this before executing the actions.
1885
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887
as_fn_set_status $ac_retval
1889
} # ac_fn_c_try_link
1891
# ac_fn_c_check_func LINENO FUNC VAR
1892
# ----------------------------------
1893
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1894
ac_fn_c_check_func ()
1896
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898
$as_echo_n "checking for $2... " >&6; }
1899
if eval "test \"\${$3+set}\"" = set; then :
1900
$as_echo_n "(cached) " >&6
1902
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903
/* end confdefs.h. */
1904
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1905
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1906
#define $2 innocuous_$2
1908
/* System header to define __stub macros and hopefully few prototypes,
1909
which can conflict with char $2 (); below.
1910
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1911
<limits.h> exists even on freestanding compilers. */
1914
# include <limits.h>
1916
# include <assert.h>
1921
/* Override any GCC internal prototype to avoid an error.
1922
Use char because int might match the return type of a GCC
1923
builtin and then its argument prototype would still apply. */
1928
/* The GNU C library defines this for functions which it implements
1929
to always fail with ENOSYS. Some functions are actually named
1930
something starting with __ and the normal name is an alias. */
1931
#if defined __stub_$2 || defined __stub___$2
1943
if ac_fn_c_try_link "$LINENO"; then :
1948
rm -f core conftest.err conftest.$ac_objext \
1949
conftest$ac_exeext conftest.$ac_ext
1952
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953
$as_echo "$ac_res" >&6; }
1954
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956
} # ac_fn_c_check_func
1958
# ac_fn_cxx_try_cpp LINENO
1959
# ------------------------
1960
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1961
ac_fn_cxx_try_cpp ()
1963
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964
if { { ac_try="$ac_cpp conftest.$ac_ext"
1966
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967
*) ac_try_echo=$ac_try;;
1969
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970
$as_echo "$ac_try_echo"; } >&5
1971
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1973
if test -s conftest.err; then
1974
grep -v '^ *+' conftest.err >conftest.er1
1975
cat conftest.er1 >&5
1976
mv -f conftest.er1 conftest.err
1978
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979
test $ac_status = 0; } > conftest.i && {
1980
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1981
test ! -s conftest.err
1985
$as_echo "$as_me: failed program was:" >&5
1986
sed 's/^/| /' conftest.$ac_ext >&5
1990
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991
as_fn_set_status $ac_retval
1993
} # ac_fn_cxx_try_cpp
1995
# ac_fn_cxx_try_link LINENO
1996
# -------------------------
1997
# Try to link conftest.$ac_ext, and return whether this succeeded.
1998
ac_fn_cxx_try_link ()
2000
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001
rm -f conftest.$ac_objext conftest$ac_exeext
2002
if { { ac_try="$ac_link"
2004
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005
*) ac_try_echo=$ac_try;;
2007
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008
$as_echo "$ac_try_echo"; } >&5
2009
(eval "$ac_link") 2>conftest.err
2011
if test -s conftest.err; then
2012
grep -v '^ *+' conftest.err >conftest.er1
2013
cat conftest.er1 >&5
2014
mv -f conftest.er1 conftest.err
2016
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017
test $ac_status = 0; } && {
2018
test -z "$ac_cxx_werror_flag" ||
2019
test ! -s conftest.err
2020
} && test -s conftest$ac_exeext && {
2021
test "$cross_compiling" = yes ||
2022
$as_test_x conftest$ac_exeext
2026
$as_echo "$as_me: failed program was:" >&5
2027
sed 's/^/| /' conftest.$ac_ext >&5
2031
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2032
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2033
# interfere with the next link command; also delete a directory that is
2034
# left behind by Apple's compiler. We do this before executing the actions.
2035
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2036
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037
as_fn_set_status $ac_retval
2039
} # ac_fn_cxx_try_link
2041
# ac_fn_cxx_try_run LINENO
2042
# ------------------------
2043
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2044
# that executables *can* be run.
2045
ac_fn_cxx_try_run ()
2047
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048
if { { ac_try="$ac_link"
2050
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051
*) ac_try_echo=$ac_try;;
2053
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054
$as_echo "$ac_try_echo"; } >&5
2055
(eval "$ac_link") 2>&5
2057
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2058
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2059
{ { case "(($ac_try" in
2060
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2061
*) ac_try_echo=$ac_try;;
2063
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2064
$as_echo "$ac_try_echo"; } >&5
2065
(eval "$ac_try") 2>&5
2067
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2068
test $ac_status = 0; }; }; then :
2071
$as_echo "$as_me: program exited with status $ac_status" >&5
2072
$as_echo "$as_me: failed program was:" >&5
2073
sed 's/^/| /' conftest.$ac_ext >&5
2075
ac_retval=$ac_status
2077
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2078
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2079
as_fn_set_status $ac_retval
2081
} # ac_fn_cxx_try_run
2082
cat >config.log <<_ACEOF
2083
This file contains any messages produced by compilers while
2084
running configure, to aid debugging if configure makes a mistake.
2086
It was created by libclamavc++ $as_me devel, which was
2087
generated by GNU Autoconf 2.67. Invocation command line was
2099
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2100
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2101
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2102
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2103
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2105
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2106
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2108
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2109
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2110
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2111
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2112
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2113
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2114
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122
test -z "$as_dir" && as_dir=.
2123
$as_echo "PATH: $as_dir"
2139
# Keep a trace of the command line.
2140
# Strip out --no-create and --no-recursion so they do not pile up.
2141
# Strip out --silent because we don't want to record it for future runs.
2142
# Also quote any args containing shell meta-characters.
2143
# Make two passes to allow for proper duplicate-argument suppression.
2147
ac_must_keep_next=false
2153
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2154
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2155
| -silent | --silent | --silen | --sile | --sil)
2158
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2161
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2163
as_fn_append ac_configure_args1 " '$ac_arg'"
2164
if test $ac_must_keep_next = true; then
2165
ac_must_keep_next=false # Got value, back to normal.
2168
*=* | --config-cache | -C | -disable-* | --disable-* \
2169
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2170
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2171
| -with-* | --with-* | -without-* | --without-* | --x)
2172
case "$ac_configure_args0 " in
2173
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2176
-* ) ac_must_keep_next=true ;;
2179
as_fn_append ac_configure_args " '$ac_arg'"
2184
{ ac_configure_args0=; unset ac_configure_args0;}
2185
{ ac_configure_args1=; unset ac_configure_args1;}
2187
# When interrupted or exit'd, cleanup temporary files, and complete
2188
# config.log. We remove comments because anyway the quotes in there
2189
# would cause problems or look ugly.
2190
# WARNING: Use '\'' to represent an apostrophe within the trap.
2191
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2192
trap 'exit_status=$?
2193
# Save into config.log some information that might help in debugging.
2197
$as_echo "## ---------------- ##
2198
## Cache variables. ##
2199
## ---------------- ##"
2201
# The following way of writing the cache mishandles newlines in values,
2203
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2204
eval ac_val=\$$ac_var
2208
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2209
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2212
_ | IFS | as_nl) ;; #(
2213
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2214
*) { eval $ac_var=; unset $ac_var;} ;;
2219
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2220
*${as_nl}ac_space=\ *)
2222
"s/'\''/'\''\\\\'\'''\''/g;
2223
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2226
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2233
$as_echo "## ----------------- ##
2234
## Output variables. ##
2235
## ----------------- ##"
2237
for ac_var in $ac_subst_vars
2239
eval ac_val=\$$ac_var
2241
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2243
$as_echo "$ac_var='\''$ac_val'\''"
2247
if test -n "$ac_subst_files"; then
2248
$as_echo "## ------------------- ##
2249
## File substitutions. ##
2250
## ------------------- ##"
2252
for ac_var in $ac_subst_files
2254
eval ac_val=\$$ac_var
2256
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2258
$as_echo "$ac_var='\''$ac_val'\''"
2263
if test -s confdefs.h; then
2264
$as_echo "## ----------- ##
2271
test "$ac_signal" != 0 &&
2272
$as_echo "$as_me: caught signal $ac_signal"
2273
$as_echo "$as_me: exit $exit_status"
2275
rm -f core *.core core.conftest.* &&
2276
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2279
for ac_signal in 1 2 13 15; do
2280
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2284
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2285
rm -f -r conftest* confdefs.h
2287
$as_echo "/* confdefs.h */" > confdefs.h
2289
# Predefined preprocessor variables.
2291
cat >>confdefs.h <<_ACEOF
2292
#define PACKAGE_NAME "$PACKAGE_NAME"
2295
cat >>confdefs.h <<_ACEOF
2296
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2299
cat >>confdefs.h <<_ACEOF
2300
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2303
cat >>confdefs.h <<_ACEOF
2304
#define PACKAGE_STRING "$PACKAGE_STRING"
2307
cat >>confdefs.h <<_ACEOF
2308
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2311
cat >>confdefs.h <<_ACEOF
2312
#define PACKAGE_URL "$PACKAGE_URL"
2316
# Let the site file select an alternate cache file if it wants to.
2317
# Prefer an explicitly selected file to automatically selected ones.
2320
if test -n "$CONFIG_SITE"; then
2321
# We do not want a PATH search for config.site.
2322
case $CONFIG_SITE in #((
2323
-*) ac_site_file1=./$CONFIG_SITE;;
2324
*/*) ac_site_file1=$CONFIG_SITE;;
2325
*) ac_site_file1=./$CONFIG_SITE;;
2327
elif test "x$prefix" != xNONE; then
2328
ac_site_file1=$prefix/share/config.site
2329
ac_site_file2=$prefix/etc/config.site
2331
ac_site_file1=$ac_default_prefix/share/config.site
2332
ac_site_file2=$ac_default_prefix/etc/config.site
2334
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2336
test "x$ac_site_file" = xNONE && continue
2337
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2338
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2339
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2340
sed 's/^/| /' "$ac_site_file" >&5
2342
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2343
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2344
as_fn_error $? "failed to load site script $ac_site_file
2345
See \`config.log' for more details" "$LINENO" 5 ; }
2349
if test -r "$cache_file"; then
2350
# Some versions of bash will fail to source /dev/null (special files
2351
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2352
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2353
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2354
$as_echo "$as_me: loading cache $cache_file" >&6;}
2356
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2357
*) . "./$cache_file";;
2361
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2362
$as_echo "$as_me: creating cache $cache_file" >&6;}
2366
# Check that the precious variables saved in the cache have kept the same
2368
ac_cache_corrupted=false
2369
for ac_var in $ac_precious_vars; do
2370
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2371
eval ac_new_set=\$ac_env_${ac_var}_set
2372
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2373
eval ac_new_val=\$ac_env_${ac_var}_value
2374
case $ac_old_set,$ac_new_set in
2376
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2377
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2378
ac_cache_corrupted=: ;;
2380
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2381
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2382
ac_cache_corrupted=: ;;
2385
if test "x$ac_old_val" != "x$ac_new_val"; then
2386
# differences in whitespace do not lead to failure.
2387
ac_old_val_w=`echo x $ac_old_val`
2388
ac_new_val_w=`echo x $ac_new_val`
2389
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2390
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2391
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2392
ac_cache_corrupted=:
2394
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2395
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2396
eval $ac_var=\$ac_old_val
2398
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2399
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2400
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2401
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2404
# Pass precious variables to config.status.
2405
if test "$ac_new_set" = set; then
2407
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2408
*) ac_arg=$ac_var=$ac_new_val ;;
2410
case " $ac_configure_args " in
2411
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2412
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2416
if $ac_cache_corrupted; then
2417
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2418
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2419
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2420
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2421
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2423
## -------------------- ##
2424
## Main body of script. ##
2425
## -------------------- ##
2428
ac_cpp='$CPP $CPPFLAGS'
2429
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435
for ac_dir in config "$srcdir"/config; do
2436
if test -f "$ac_dir/install-sh"; then
2438
ac_install_sh="$ac_aux_dir/install-sh -c"
2440
elif test -f "$ac_dir/install.sh"; then
2442
ac_install_sh="$ac_aux_dir/install.sh -c"
2444
elif test -f "$ac_dir/shtool"; then
2446
ac_install_sh="$ac_aux_dir/shtool install -c"
2450
if test -z "$ac_aux_dir"; then
2451
as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2454
# These three variables are undocumented and unsupported,
2455
# and are intended to be withdrawn in a future Autoconf release.
2456
# They can cause serious problems if a builder's source tree is in a directory
2457
# whose full name contains unusual characters.
2458
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2459
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2460
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2465
ac_config_headers="$ac_config_headers clamavcxx-config.h"
2467
# Make sure we can run config.sub.
2468
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2469
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2472
$as_echo_n "checking build system type... " >&6; }
2473
if test "${ac_cv_build+set}" = set; then :
2474
$as_echo_n "(cached) " >&6
2476
ac_build_alias=$build_alias
2477
test "x$ac_build_alias" = x &&
2478
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2479
test "x$ac_build_alias" = x &&
2480
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2481
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2482
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2486
$as_echo "$ac_cv_build" >&6; }
2487
case $ac_cv_build in
2489
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2492
ac_save_IFS=$IFS; IFS='-'
2498
# Remember, the first character of IFS is used to create $*,
2499
# except with old shells:
2502
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2506
$as_echo_n "checking host system type... " >&6; }
2507
if test "${ac_cv_host+set}" = set; then :
2508
$as_echo_n "(cached) " >&6
2510
if test "x$host_alias" = x; then
2511
ac_cv_host=$ac_cv_build
2513
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2514
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2519
$as_echo "$ac_cv_host" >&6; }
2522
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2525
ac_save_IFS=$IFS; IFS='-'
2531
# Remember, the first character of IFS is used to create $*,
2532
# except with old shells:
2535
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2538
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2539
$as_echo_n "checking target system type... " >&6; }
2540
if test "${ac_cv_target+set}" = set; then :
2541
$as_echo_n "(cached) " >&6
2543
if test "x$target_alias" = x; then
2544
ac_cv_target=$ac_cv_host
2546
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2547
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2552
$as_echo "$ac_cv_target" >&6; }
2553
case $ac_cv_target in
2555
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2557
target=$ac_cv_target
2558
ac_save_IFS=$IFS; IFS='-'
2564
# Remember, the first character of IFS is used to create $*,
2565
# except with old shells:
2568
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2571
# The aliases save the names the user supplied, while $host etc.
2572
# will get canonicalized.
2573
test -n "$target_alias" &&
2574
test "$program_prefix$program_suffix$program_transform_name" = \
2576
program_prefix=${target_alias}-
2577
am__api_version='1.11'
2579
# Find a good install program. We prefer a C program (faster),
2580
# so one script is as good as another. But avoid the broken or
2581
# incompatible versions:
2582
# SysV /etc/install, /usr/sbin/install
2583
# SunOS /usr/etc/install
2584
# IRIX /sbin/install
2586
# AmigaOS /C/install, which installs bootblocks on floppy discs
2587
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2588
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2589
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2590
# OS/2's system install, which has a completely different semantic
2591
# ./install, which can be erroneously created by make from ./install.sh.
2592
# Reject install programs that cannot install multiple files.
2593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2594
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2595
if test -z "$INSTALL"; then
2596
if test "${ac_cv_path_install+set}" = set; then :
2597
$as_echo_n "(cached) " >&6
2599
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603
test -z "$as_dir" && as_dir=.
2604
# Account for people who put trailing slashes in PATH elements.
2605
case $as_dir/ in #((
2606
./ | .// | /[cC]/* | \
2607
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2608
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2611
# OSF1 and SCO ODT 3.0 have their own names for install.
2612
# Don't use installbsd from OSF since it installs stuff as root
2614
for ac_prog in ginstall scoinst install; do
2615
for ac_exec_ext in '' $ac_executable_extensions; do
2616
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2617
if test $ac_prog = install &&
2618
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2619
# AIX install. It has an incompatible calling convention.
2621
elif test $ac_prog = install &&
2622
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2623
# program-specific install script used by HP pwplus--don't use.
2626
rm -rf conftest.one conftest.two conftest.dir
2627
echo one > conftest.one
2628
echo two > conftest.two
2630
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2631
test -s conftest.one && test -s conftest.two &&
2632
test -s conftest.dir/conftest.one &&
2633
test -s conftest.dir/conftest.two
2635
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2648
rm -rf conftest.one conftest.two conftest.dir
2651
if test "${ac_cv_path_install+set}" = set; then
2652
INSTALL=$ac_cv_path_install
2654
# As a last resort, use the slow shell script. Don't cache a
2655
# value for INSTALL within a source directory, because that will
2656
# break other packages using the cache if that directory is
2657
# removed, or if the value is a relative name.
2658
INSTALL=$ac_install_sh
2661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2662
$as_echo "$INSTALL" >&6; }
2664
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2665
# It thinks the first close brace ends the variable substitution.
2666
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2668
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2670
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2673
$as_echo_n "checking whether build environment is sane... " >&6; }
2676
echo timestamp > conftest.file
2677
# Reject unsafe characters in $srcdir or the absolute working directory
2678
# name. Accept space and tab only in the latter.
2682
*[\\\"\#\$\&\'\`$am_lf]*)
2683
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2686
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2687
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2690
# Do `set' in a subshell so we don't clobber the current shell's
2691
# arguments. Must try -L first in case configure is actually a
2692
# symlink; some systems play weird games with the mod time of symlinks
2693
# (eg FreeBSD returns the mod time of the symlink's containing
2696
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2697
if test "$*" = "X"; then
2699
set X `ls -t "$srcdir/configure" conftest.file`
2702
if test "$*" != "X $srcdir/configure conftest.file" \
2703
&& test "$*" != "X conftest.file $srcdir/configure"; then
2705
# If neither matched, then we have a broken ls. This can happen
2706
# if, for instance, CONFIG_SHELL is bash and it inherits a
2707
# broken ls alias from the environment. This has actually
2708
# happened. Such a system could not be considered "sane".
2709
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2710
alias in your environment" "$LINENO" 5
2713
test "$2" = conftest.file
2719
as_fn_error $? "newly created file is older than distributed files!
2720
Check your system clock" "$LINENO" 5
2722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2723
$as_echo "yes" >&6; }
2724
test "$program_prefix" != NONE &&
2725
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2726
# Use a double $ so make ignores it.
2727
test "$program_suffix" != NONE &&
2728
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2729
# Double any \ or $.
2730
# By default was `s,x,x', remove it if useless.
2731
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2732
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2734
# expand $ac_aux_dir to an absolute path
2735
am_aux_dir=`cd $ac_aux_dir && pwd`
2737
if test x"${MISSING+set}" != xset; then
2740
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2742
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2745
# Use eval to expand $SHELL
2746
if eval "$MISSING --run true"; then
2747
am_missing_run="$MISSING --run "
2750
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2751
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2754
if test x"${install_sh}" != xset; then
2757
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2759
install_sh="\${SHELL} $am_aux_dir/install-sh"
2763
# Installed binaries are usually stripped using `strip' when the user
2764
# run `make install-strip'. However `strip' might not be the right
2765
# tool to use in cross-compilation environments, therefore Automake
2766
# will honor the `STRIP' environment variable to overrule this program.
2767
if test "$cross_compiling" != no; then
2768
if test -n "$ac_tool_prefix"; then
2769
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2770
set dummy ${ac_tool_prefix}strip; ac_word=$2
2771
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772
$as_echo_n "checking for $ac_word... " >&6; }
2773
if test "${ac_cv_prog_STRIP+set}" = set; then :
2774
$as_echo_n "(cached) " >&6
2776
if test -n "$STRIP"; then
2777
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783
test -z "$as_dir" && as_dir=.
2784
for ac_exec_ext in '' $ac_executable_extensions; do
2785
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2787
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796
STRIP=$ac_cv_prog_STRIP
2797
if test -n "$STRIP"; then
2798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2799
$as_echo "$STRIP" >&6; }
2801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802
$as_echo "no" >&6; }
2807
if test -z "$ac_cv_prog_STRIP"; then
2809
# Extract the first word of "strip", so it can be a program name with args.
2810
set dummy strip; ac_word=$2
2811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812
$as_echo_n "checking for $ac_word... " >&6; }
2813
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2814
$as_echo_n "(cached) " >&6
2816
if test -n "$ac_ct_STRIP"; then
2817
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823
test -z "$as_dir" && as_dir=.
2824
for ac_exec_ext in '' $ac_executable_extensions; do
2825
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826
ac_cv_prog_ac_ct_STRIP="strip"
2827
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2837
if test -n "$ac_ct_STRIP"; then
2838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2839
$as_echo "$ac_ct_STRIP" >&6; }
2841
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842
$as_echo "no" >&6; }
2845
if test "x$ac_ct_STRIP" = x; then
2848
case $cross_compiling:$ac_tool_warned in
2850
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2851
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2852
ac_tool_warned=yes ;;
2857
STRIP="$ac_cv_prog_STRIP"
2861
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2864
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2865
if test -z "$MKDIR_P"; then
2866
if test "${ac_cv_path_mkdir+set}" = set; then :
2867
$as_echo_n "(cached) " >&6
2869
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2873
test -z "$as_dir" && as_dir=.
2874
for ac_prog in mkdir gmkdir; do
2875
for ac_exec_ext in '' $ac_executable_extensions; do
2876
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2877
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2878
'mkdir (GNU coreutils) '* | \
2879
'mkdir (coreutils) '* | \
2880
'mkdir (fileutils) '4.1*)
2881
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2891
test -d ./--version && rmdir ./--version
2892
if test "${ac_cv_path_mkdir+set}" = set; then
2893
MKDIR_P="$ac_cv_path_mkdir -p"
2895
# As a last resort, use the slow shell script. Don't cache a
2896
# value for MKDIR_P within a source directory, because that will
2897
# break other packages using the cache if that directory is
2898
# removed, or if the value is a relative name.
2899
MKDIR_P="$ac_install_sh -d"
2902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2903
$as_echo "$MKDIR_P" >&6; }
2907
[\\/$]* | ?:[\\/]*) ;;
2908
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2911
for ac_prog in gawk mawk nawk awk
2913
# Extract the first word of "$ac_prog", so it can be a program name with args.
2914
set dummy $ac_prog; ac_word=$2
2915
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916
$as_echo_n "checking for $ac_word... " >&6; }
2917
if test "${ac_cv_prog_AWK+set}" = set; then :
2918
$as_echo_n "(cached) " >&6
2920
if test -n "$AWK"; then
2921
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2923
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927
test -z "$as_dir" && as_dir=.
2928
for ac_exec_ext in '' $ac_executable_extensions; do
2929
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930
ac_cv_prog_AWK="$ac_prog"
2931
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941
if test -n "$AWK"; then
2942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2943
$as_echo "$AWK" >&6; }
2945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946
$as_echo "no" >&6; }
2950
test -n "$AWK" && break
2953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2954
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2956
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2957
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2958
$as_echo_n "(cached) " >&6
2960
cat >conftest.make <<\_ACEOF
2963
@echo '@@@%%%=$(MAKE)=@@@%%%'
2965
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2966
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2968
eval ac_cv_prog_make_${ac_make}_set=yes;;
2970
eval ac_cv_prog_make_${ac_make}_set=no;;
2974
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2976
$as_echo "yes" >&6; }
2979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980
$as_echo "no" >&6; }
2981
SET_MAKE="MAKE=${MAKE-make}"
2984
rm -rf .tst 2>/dev/null
2985
mkdir .tst 2>/dev/null
2986
if test -d .tst; then
2991
rmdir .tst 2>/dev/null
2993
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2994
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2995
# is not polluted with repeated "-I."
2996
am__isrc=' -I$(srcdir)'
2997
# test to see if srcdir already configured
2998
if test -f $srcdir/config.status; then
2999
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3003
# test whether we have cygpath
3004
if test -z "$CYGPATH_W"; then
3005
if (cygpath --version) >/dev/null 2>/dev/null; then
3006
CYGPATH_W='cygpath -w'
3013
# Define the identity of the package.
3014
PACKAGE='libclamavc--'
3018
# Some tools Automake needs.
3020
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3023
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3026
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3029
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3032
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3034
# We need awk for the "check" target. The system "awk" is bad on
3036
# Always define AMTAR for backward compatibility.
3038
AMTAR=${AMTAR-"${am_missing_run}tar"}
3041
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3042
$as_echo_n "checking how to create a pax tar archive... " >&6; }
3043
# Loop over all known methods to create a tar archive until one works.
3044
_am_tools='gnutar pax cpio none'
3045
_am_tools=${am_cv_prog_tar_pax-$_am_tools}
3046
# Do not fold the above two line into one, because Tru64 sh and
3047
# Solaris sh will not grok spaces in the rhs of `-'.
3048
for _am_tool in $_am_tools
3052
for _am_tar in tar gnutar gtar;
3054
{ echo "$as_me:$LINENO: $_am_tar --version" >&5
3055
($_am_tar --version) >&5 2>&5
3057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058
(exit $ac_status); } && break
3060
am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3061
am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3062
am__untar="$_am_tar -xf -"
3065
# Must skip GNU tar: if it does not support --format= it doesn't create
3066
# ustar tarball either.
3067
(tar --version) >/dev/null 2>&1 && continue
3068
am__tar='tar chf - "$$tardir"'
3069
am__tar_='tar chf - "$tardir"'
3070
am__untar='tar xf -'
3073
am__tar='pax -L -x pax -w "$$tardir"'
3074
am__tar_='pax -L -x pax -w "$tardir"'
3078
am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3079
am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3080
am__untar='cpio -i -H pax -d'
3089
# If the value was cached, stop now. We just wanted to have am__tar
3090
# and am__untar set.
3091
test -n "${am_cv_prog_tar_pax}" && break
3093
# tar/untar a dummy directory, and stop if the command works
3096
echo GrepMe > conftest.dir/file
3097
{ echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3098
(tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101
(exit $ac_status); }
3103
if test -s conftest.tar; then
3104
{ echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3105
($am__untar <conftest.tar) >&5 2>&5
3107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108
(exit $ac_status); }
3109
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3114
if test "${am_cv_prog_tar_pax+set}" = set; then :
3115
$as_echo_n "(cached) " >&6
3117
am_cv_prog_tar_pax=$_am_tool
3120
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3121
$as_echo "$am_cv_prog_tar_pax" >&6; }
3127
# Check whether --enable-silent-rules was given.
3128
if test "${enable_silent_rules+set}" = set; then :
3129
enableval=$enable_silent_rules;
3132
case $enable_silent_rules in
3133
yes) AM_DEFAULT_VERBOSITY=0;;
3134
no) AM_DEFAULT_VERBOSITY=1;;
3135
*) AM_DEFAULT_VERBOSITY=0;;
3140
cxxset=${CXXFLAGS+set}
3142
ac_cpp='$CXXCPP $CPPFLAGS'
3143
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3146
if test -z "$CXX"; then
3147
if test -n "$CCC"; then
3150
if test -n "$ac_tool_prefix"; then
3151
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3153
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3154
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3155
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156
$as_echo_n "checking for $ac_word... " >&6; }
3157
if test "${ac_cv_prog_CXX+set}" = set; then :
3158
$as_echo_n "(cached) " >&6
3160
if test -n "$CXX"; then
3161
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3163
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167
test -z "$as_dir" && as_dir=.
3168
for ac_exec_ext in '' $ac_executable_extensions; do
3169
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3171
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181
if test -n "$CXX"; then
3182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3183
$as_echo "$CXX" >&6; }
3185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186
$as_echo "no" >&6; }
3190
test -n "$CXX" && break
3193
if test -z "$CXX"; then
3195
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3197
# Extract the first word of "$ac_prog", so it can be a program name with args.
3198
set dummy $ac_prog; ac_word=$2
3199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200
$as_echo_n "checking for $ac_word... " >&6; }
3201
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3202
$as_echo_n "(cached) " >&6
3204
if test -n "$ac_ct_CXX"; then
3205
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211
test -z "$as_dir" && as_dir=.
3212
for ac_exec_ext in '' $ac_executable_extensions; do
3213
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214
ac_cv_prog_ac_ct_CXX="$ac_prog"
3215
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3225
if test -n "$ac_ct_CXX"; then
3226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3227
$as_echo "$ac_ct_CXX" >&6; }
3229
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230
$as_echo "no" >&6; }
3234
test -n "$ac_ct_CXX" && break
3237
if test "x$ac_ct_CXX" = x; then
3240
case $cross_compiling:$ac_tool_warned in
3242
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244
ac_tool_warned=yes ;;
3252
# Provide some information about the compiler.
3253
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3256
for ac_option in --version -v -V -qversion; do
3257
{ { ac_try="$ac_compiler $ac_option >&5"
3259
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260
*) ac_try_echo=$ac_try;;
3262
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263
$as_echo "$ac_try_echo"; } >&5
3264
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3266
if test -s conftest.err; then
3268
... rest of stderr output deleted ...
3269
10q' conftest.err >conftest.er1
3270
cat conftest.er1 >&5
3272
rm -f conftest.er1 conftest.err
3273
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274
test $ac_status = 0; }
3277
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278
/* end confdefs.h. */
3288
ac_clean_files_save=$ac_clean_files
3289
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3290
# Try to create an executable without -o first, disregard a.out.
3291
# It will help us diagnose broken compilers, and finding out an intuition
3293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3294
$as_echo_n "checking whether the C++ compiler works... " >&6; }
3295
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3297
# The possible output files:
3298
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3301
for ac_file in $ac_files
3304
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3305
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3310
if { { ac_try="$ac_link_default"
3312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313
*) ac_try_echo=$ac_try;;
3315
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316
$as_echo "$ac_try_echo"; } >&5
3317
(eval "$ac_link_default") 2>&5
3319
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320
test $ac_status = 0; }; then :
3321
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3322
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3323
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3324
# so that the user can short-circuit this test for compilers unknown to
3326
for ac_file in $ac_files ''
3328
test -f "$ac_file" || continue
3330
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3333
# We found the default executable, but exeext='' is most
3337
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3339
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3341
# We set ac_cv_exeext here because the later test for it is not
3342
# safe: cross compilers may not add the suffix if given an `-o'
3343
# argument, so we may need to know it at that point already.
3344
# Even if this section looks crufty: it has the advantage of
3351
test "$ac_cv_exeext" = no && ac_cv_exeext=
3356
if test -z "$ac_file"; then :
3357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358
$as_echo "no" >&6; }
3359
$as_echo "$as_me: failed program was:" >&5
3360
sed 's/^/| /' conftest.$ac_ext >&5
3362
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364
as_fn_error 77 "C++ compiler cannot create executables
3365
See \`config.log' for more details" "$LINENO" 5 ; }
3367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3368
$as_echo "yes" >&6; }
3370
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3371
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3373
$as_echo "$ac_file" >&6; }
3374
ac_exeext=$ac_cv_exeext
3376
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3377
ac_clean_files=$ac_clean_files_save
3378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3379
$as_echo_n "checking for suffix of executables... " >&6; }
3380
if { { ac_try="$ac_link"
3382
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383
*) ac_try_echo=$ac_try;;
3385
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386
$as_echo "$ac_try_echo"; } >&5
3387
(eval "$ac_link") 2>&5
3389
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390
test $ac_status = 0; }; then :
3391
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3392
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3393
# work properly (i.e., refer to `conftest.exe'), while it won't with
3395
for ac_file in conftest.exe conftest conftest.*; do
3396
test -f "$ac_file" || continue
3398
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3405
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3408
See \`config.log' for more details" "$LINENO" 5 ; }
3410
rm -f conftest conftest$ac_cv_exeext
3411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3412
$as_echo "$ac_cv_exeext" >&6; }
3414
rm -f conftest.$ac_ext
3415
EXEEXT=$ac_cv_exeext
3417
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418
/* end confdefs.h. */
3423
FILE *f = fopen ("conftest.out", "w");
3424
return ferror (f) || fclose (f) != 0;
3430
ac_clean_files="$ac_clean_files conftest.out"
3431
# Check that the compiler produces executables we can run. If not, either
3432
# the compiler is broken, or we cross compile.
3433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3434
$as_echo_n "checking whether we are cross compiling... " >&6; }
3435
if test "$cross_compiling" != yes; then
3436
{ { ac_try="$ac_link"
3438
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439
*) ac_try_echo=$ac_try;;
3441
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442
$as_echo "$ac_try_echo"; } >&5
3443
(eval "$ac_link") 2>&5
3445
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446
test $ac_status = 0; }
3447
if { ac_try='./conftest$ac_cv_exeext'
3448
{ { case "(($ac_try" in
3449
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450
*) ac_try_echo=$ac_try;;
3452
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453
$as_echo "$ac_try_echo"; } >&5
3454
(eval "$ac_try") 2>&5
3456
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457
test $ac_status = 0; }; }; then
3460
if test "$cross_compiling" = maybe; then
3463
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465
as_fn_error $? "cannot run C++ compiled programs.
3466
If you meant to cross compile, use \`--host'.
3467
See \`config.log' for more details" "$LINENO" 5 ; }
3471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3472
$as_echo "$cross_compiling" >&6; }
3474
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3475
ac_clean_files=$ac_clean_files_save
3476
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3477
$as_echo_n "checking for suffix of object files... " >&6; }
3478
if test "${ac_cv_objext+set}" = set; then :
3479
$as_echo_n "(cached) " >&6
3481
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482
/* end confdefs.h. */
3492
rm -f conftest.o conftest.obj
3493
if { { ac_try="$ac_compile"
3495
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496
*) ac_try_echo=$ac_try;;
3498
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499
$as_echo "$ac_try_echo"; } >&5
3500
(eval "$ac_compile") 2>&5
3502
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503
test $ac_status = 0; }; then :
3504
for ac_file in conftest.o conftest.obj conftest.*; do
3505
test -f "$ac_file" || continue;
3507
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3508
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3513
$as_echo "$as_me: failed program was:" >&5
3514
sed 's/^/| /' conftest.$ac_ext >&5
3516
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518
as_fn_error $? "cannot compute suffix of object files: cannot compile
3519
See \`config.log' for more details" "$LINENO" 5 ; }
3521
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3523
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3524
$as_echo "$ac_cv_objext" >&6; }
3525
OBJEXT=$ac_cv_objext
3527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3528
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3529
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3530
$as_echo_n "(cached) " >&6
3532
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533
/* end confdefs.h. */
3546
if ac_fn_cxx_try_compile "$LINENO"; then :
3551
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3556
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3557
if test $ac_compiler_gnu = yes; then
3562
ac_test_CXXFLAGS=${CXXFLAGS+set}
3563
ac_save_CXXFLAGS=$CXXFLAGS
3564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3565
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3566
if test "${ac_cv_prog_cxx_g+set}" = set; then :
3567
$as_echo_n "(cached) " >&6
3569
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3570
ac_cxx_werror_flag=yes
3573
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574
/* end confdefs.h. */
3584
if ac_fn_cxx_try_compile "$LINENO"; then :
3585
ac_cv_prog_cxx_g=yes
3588
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589
/* end confdefs.h. */
3599
if ac_fn_cxx_try_compile "$LINENO"; then :
3602
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3604
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605
/* end confdefs.h. */
3615
if ac_fn_cxx_try_compile "$LINENO"; then :
3616
ac_cv_prog_cxx_g=yes
3618
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3625
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3626
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3627
if test "$ac_test_CXXFLAGS" = set; then
3628
CXXFLAGS=$ac_save_CXXFLAGS
3629
elif test $ac_cv_prog_cxx_g = yes; then
3630
if test "$GXX" = yes; then
3636
if test "$GXX" = yes; then
3643
ac_cpp='$CPP $CPPFLAGS'
3644
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647
DEPDIR="${am__leading_dot}deps"
3649
ac_config_commands="$ac_config_commands depfiles"
3652
am_make=${MAKE-make}
3653
cat > confinc << 'END'
3655
@echo this is the am__doit target
3658
# If we don't find an include directive, just comment out the code.
3659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3660
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3664
# First try GNU make style include.
3665
echo "include confinc" > confmf
3666
# Ignore all kinds of additional output from `make'.
3667
case `$am_make -s -f confmf 2> /dev/null` in #(
3668
*the\ am__doit\ target*)
3674
# Now try BSD make style include.
3675
if test "$am__include" = "#"; then
3676
echo '.include "confinc"' > confmf
3677
case `$am_make -s -f confmf 2> /dev/null` in #(
3678
*the\ am__doit\ target*)
3679
am__include=.include
3687
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3688
$as_echo "$_am_result" >&6; }
3689
rm -f confinc confmf
3691
# Check whether --enable-dependency-tracking was given.
3692
if test "${enable_dependency_tracking+set}" = set; then :
3693
enableval=$enable_dependency_tracking;
3696
if test "x$enable_dependency_tracking" != xno; then
3697
am_depcomp="$ac_aux_dir/depcomp"
3700
if test "x$enable_dependency_tracking" != xno; then
3710
depcc="$CXX" am_compiler_list=
3712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3713
$as_echo_n "checking dependency style of $depcc... " >&6; }
3714
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3715
$as_echo_n "(cached) " >&6
3717
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3718
# We make a subdir and do the tests there. Otherwise we can end up
3719
# making bogus files that we don't know about and never remove. For
3720
# instance it was reported that on HP-UX the gcc test will end up
3721
# making a dummy file named `D' -- because `-MD' means `put the output
3724
# Copy depcomp to subdir because otherwise we won't find it if we're
3725
# using a relative directory.
3726
cp "$am_depcomp" conftest.dir
3728
# We will build objects and dependencies in a subdirectory because
3729
# it helps to detect inapplicable dependency modes. For instance
3730
# both Tru64's cc and ICC support -MD to output dependencies as a
3731
# side effect of compilation, but ICC will put the dependencies in
3732
# the current directory while Tru64 will put them in the object
3736
am_cv_CXX_dependencies_compiler_type=none
3737
if test "$am_compiler_list" = ""; then
3738
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3741
case " $depcc " in #(
3742
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3745
for depmode in $am_compiler_list; do
3746
# Setup a source with many dependencies, because some compilers
3747
# like to wrap large dependency lists on column 80 (with \), and
3748
# we should not choose a depcomp mode which is confused by this.
3750
# We need to recreate these files for each test, as the compiler may
3751
# overwrite some of them when testing with obscure command lines.
3752
# This happens at least with the AIX C compiler.
3754
for i in 1 2 3 4 5 6; do
3755
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3756
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3757
# Solaris 8's {/usr,}/bin/sh.
3758
touch sub/conftst$i.h
3760
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3762
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3763
# mode. It turns out that the SunPro C++ compiler does not properly
3764
# handle `-M -o', and we need to detect this. Also, some Intel
3765
# versions had trouble with output in subdirs
3766
am__obj=sub/conftest.${OBJEXT-o}
3767
am__minus_obj="-o $am__obj"
3770
# This depmode causes a compiler race in universal mode.
3771
test "$am__universal" = false || continue
3774
# after this tag, mechanisms are not by side-effect, so they'll
3775
# only be used when explicitly requested
3776
if test "x$enable_dependency_tracking" = xyes; then
3782
msvisualcpp | msvcmsys)
3783
# This compiler won't grok `-c -o', but also, the minuso test has
3784
# not run yet. These depmodes are late enough in the game, and
3785
# so weak that their functioning should not be impacted.
3786
am__obj=conftest.${OBJEXT-o}
3791
if depmode=$depmode \
3792
source=sub/conftest.c object=$am__obj \
3793
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3794
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3795
>/dev/null 2>conftest.err &&
3796
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3797
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3798
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3799
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3800
# icc doesn't choke on unknown options, it will just issue warnings
3801
# or remarks (even with -Werror). So we grep stderr for any message
3802
# that says an option was ignored or not supported.
3803
# When given -MP, icc 7.0 and 7.1 complain thusly:
3804
# icc: Command line warning: ignoring option '-M'; no argument required
3805
# The diagnosis changed in icc 8.0:
3806
# icc: Command line remark: option '-MP' not supported
3807
if (grep 'ignoring option' conftest.err ||
3808
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3809
am_cv_CXX_dependencies_compiler_type=$depmode
3818
am_cv_CXX_dependencies_compiler_type=none
3822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3823
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3824
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3827
test "x$enable_dependency_tracking" != xno \
3828
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3829
am__fastdepCXX_TRUE=
3830
am__fastdepCXX_FALSE='#'
3832
am__fastdepCXX_TRUE='#'
3833
am__fastdepCXX_FALSE=
3838
ac_cpp='$CPP $CPPFLAGS'
3839
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842
if test -n "$ac_tool_prefix"; then
3843
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3844
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3845
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846
$as_echo_n "checking for $ac_word... " >&6; }
3847
if test "${ac_cv_prog_CC+set}" = set; then :
3848
$as_echo_n "(cached) " >&6
3850
if test -n "$CC"; then
3851
ac_cv_prog_CC="$CC" # Let the user override the test.
3853
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857
test -z "$as_dir" && as_dir=.
3858
for ac_exec_ext in '' $ac_executable_extensions; do
3859
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3860
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3861
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871
if test -n "$CC"; then
3872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3873
$as_echo "$CC" >&6; }
3875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876
$as_echo "no" >&6; }
3881
if test -z "$ac_cv_prog_CC"; then
3883
# Extract the first word of "gcc", so it can be a program name with args.
3884
set dummy gcc; ac_word=$2
3885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886
$as_echo_n "checking for $ac_word... " >&6; }
3887
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3888
$as_echo_n "(cached) " >&6
3890
if test -n "$ac_ct_CC"; then
3891
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3893
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897
test -z "$as_dir" && as_dir=.
3898
for ac_exec_ext in '' $ac_executable_extensions; do
3899
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900
ac_cv_prog_ac_ct_CC="gcc"
3901
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3911
if test -n "$ac_ct_CC"; then
3912
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3913
$as_echo "$ac_ct_CC" >&6; }
3915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916
$as_echo "no" >&6; }
3919
if test "x$ac_ct_CC" = x; then
3922
case $cross_compiling:$ac_tool_warned in
3924
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3925
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3926
ac_tool_warned=yes ;;
3934
if test -z "$CC"; then
3935
if test -n "$ac_tool_prefix"; then
3936
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3937
set dummy ${ac_tool_prefix}cc; ac_word=$2
3938
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939
$as_echo_n "checking for $ac_word... " >&6; }
3940
if test "${ac_cv_prog_CC+set}" = set; then :
3941
$as_echo_n "(cached) " >&6
3943
if test -n "$CC"; then
3944
ac_cv_prog_CC="$CC" # Let the user override the test.
3946
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950
test -z "$as_dir" && as_dir=.
3951
for ac_exec_ext in '' $ac_executable_extensions; do
3952
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3953
ac_cv_prog_CC="${ac_tool_prefix}cc"
3954
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964
if test -n "$CC"; then
3965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3966
$as_echo "$CC" >&6; }
3968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969
$as_echo "no" >&6; }
3975
if test -z "$CC"; then
3976
# Extract the first word of "cc", so it can be a program name with args.
3977
set dummy cc; ac_word=$2
3978
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979
$as_echo_n "checking for $ac_word... " >&6; }
3980
if test "${ac_cv_prog_CC+set}" = set; then :
3981
$as_echo_n "(cached) " >&6
3983
if test -n "$CC"; then
3984
ac_cv_prog_CC="$CC" # Let the user override the test.
3987
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991
test -z "$as_dir" && as_dir=.
3992
for ac_exec_ext in '' $ac_executable_extensions; do
3993
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3994
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3995
ac_prog_rejected=yes
3999
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006
if test $ac_prog_rejected = yes; then
4007
# We found a bogon in the path, so make sure we never use it.
4008
set dummy $ac_cv_prog_CC
4010
if test $# != 0; then
4011
# We chose a different compiler from the bogus one.
4012
# However, it has the same basename, so the bogon will be chosen
4013
# first if we set CC to just the basename; use the full file name.
4015
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4021
if test -n "$CC"; then
4022
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4023
$as_echo "$CC" >&6; }
4025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026
$as_echo "no" >&6; }
4031
if test -z "$CC"; then
4032
if test -n "$ac_tool_prefix"; then
4033
for ac_prog in cl.exe
4035
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4036
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038
$as_echo_n "checking for $ac_word... " >&6; }
4039
if test "${ac_cv_prog_CC+set}" = set; then :
4040
$as_echo_n "(cached) " >&6
4042
if test -n "$CC"; then
4043
ac_cv_prog_CC="$CC" # Let the user override the test.
4045
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049
test -z "$as_dir" && as_dir=.
4050
for ac_exec_ext in '' $ac_executable_extensions; do
4051
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4053
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063
if test -n "$CC"; then
4064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4065
$as_echo "$CC" >&6; }
4067
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068
$as_echo "no" >&6; }
4072
test -n "$CC" && break
4075
if test -z "$CC"; then
4077
for ac_prog in cl.exe
4079
# Extract the first word of "$ac_prog", so it can be a program name with args.
4080
set dummy $ac_prog; ac_word=$2
4081
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082
$as_echo_n "checking for $ac_word... " >&6; }
4083
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4084
$as_echo_n "(cached) " >&6
4086
if test -n "$ac_ct_CC"; then
4087
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4089
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093
test -z "$as_dir" && as_dir=.
4094
for ac_exec_ext in '' $ac_executable_extensions; do
4095
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4096
ac_cv_prog_ac_ct_CC="$ac_prog"
4097
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4107
if test -n "$ac_ct_CC"; then
4108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4109
$as_echo "$ac_ct_CC" >&6; }
4111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112
$as_echo "no" >&6; }
4116
test -n "$ac_ct_CC" && break
4119
if test "x$ac_ct_CC" = x; then
4122
case $cross_compiling:$ac_tool_warned in
4124
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4125
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4126
ac_tool_warned=yes ;;
4135
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137
as_fn_error $? "no acceptable C compiler found in \$PATH
4138
See \`config.log' for more details" "$LINENO" 5 ; }
4140
# Provide some information about the compiler.
4141
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4144
for ac_option in --version -v -V -qversion; do
4145
{ { ac_try="$ac_compiler $ac_option >&5"
4147
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148
*) ac_try_echo=$ac_try;;
4150
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4151
$as_echo "$ac_try_echo"; } >&5
4152
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4154
if test -s conftest.err; then
4156
... rest of stderr output deleted ...
4157
10q' conftest.err >conftest.er1
4158
cat conftest.er1 >&5
4160
rm -f conftest.er1 conftest.err
4161
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4162
test $ac_status = 0; }
4165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4166
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4167
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4168
$as_echo_n "(cached) " >&6
4170
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171
/* end confdefs.h. */
4184
if ac_fn_c_try_compile "$LINENO"; then :
4189
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4194
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4195
if test $ac_compiler_gnu = yes; then
4200
ac_test_CFLAGS=${CFLAGS+set}
4201
ac_save_CFLAGS=$CFLAGS
4202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4203
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4204
if test "${ac_cv_prog_cc_g+set}" = set; then :
4205
$as_echo_n "(cached) " >&6
4207
ac_save_c_werror_flag=$ac_c_werror_flag
4208
ac_c_werror_flag=yes
4211
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212
/* end confdefs.h. */
4222
if ac_fn_c_try_compile "$LINENO"; then :
4226
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227
/* end confdefs.h. */
4237
if ac_fn_c_try_compile "$LINENO"; then :
4240
ac_c_werror_flag=$ac_save_c_werror_flag
4242
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243
/* end confdefs.h. */
4253
if ac_fn_c_try_compile "$LINENO"; then :
4256
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261
ac_c_werror_flag=$ac_save_c_werror_flag
4263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4264
$as_echo "$ac_cv_prog_cc_g" >&6; }
4265
if test "$ac_test_CFLAGS" = set; then
4266
CFLAGS=$ac_save_CFLAGS
4267
elif test $ac_cv_prog_cc_g = yes; then
4268
if test "$GCC" = yes; then
4274
if test "$GCC" = yes; then
4280
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4281
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4282
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4283
$as_echo_n "(cached) " >&6
4285
ac_cv_prog_cc_c89=no
4287
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288
/* end confdefs.h. */
4291
#include <sys/types.h>
4292
#include <sys/stat.h>
4293
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4294
struct buf { int x; };
4295
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4296
static char *e (p, i)
4302
static char *f (char * (*g) (char **, int), char **p, ...)
4307
s = g (p, va_arg (v,int));
4312
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4313
function prototypes and stuff, but not '\xHH' hex character constants.
4314
These don't provoke an error unfortunately, instead are silently treated
4315
as 'x'. The following induces an error, until -std is added to get
4316
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4317
array size at least. It's necessary to write '\x00'==0 to get something
4318
that's true only with -std. */
4319
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4321
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4322
inside strings and character constants. */
4324
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4326
int test (int i, double x);
4327
struct s1 {int (*f) (int a);};
4328
struct s2 {int (*f) (double a);};
4329
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4335
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4340
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4341
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4343
CC="$ac_save_CC $ac_arg"
4344
if ac_fn_c_try_compile "$LINENO"; then :
4345
ac_cv_prog_cc_c89=$ac_arg
4347
rm -f core conftest.err conftest.$ac_objext
4348
test "x$ac_cv_prog_cc_c89" != "xno" && break
4350
rm -f conftest.$ac_ext
4355
case "x$ac_cv_prog_cc_c89" in
4357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4358
$as_echo "none needed" >&6; } ;;
4360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4361
$as_echo "unsupported" >&6; } ;;
4363
CC="$CC $ac_cv_prog_cc_c89"
4364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4365
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4367
if test "x$ac_cv_prog_cc_c89" != xno; then :
4372
ac_cpp='$CPP $CPPFLAGS'
4373
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377
depcc="$CC" am_compiler_list=
4379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4380
$as_echo_n "checking dependency style of $depcc... " >&6; }
4381
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4382
$as_echo_n "(cached) " >&6
4384
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4385
# We make a subdir and do the tests there. Otherwise we can end up
4386
# making bogus files that we don't know about and never remove. For
4387
# instance it was reported that on HP-UX the gcc test will end up
4388
# making a dummy file named `D' -- because `-MD' means `put the output
4391
# Copy depcomp to subdir because otherwise we won't find it if we're
4392
# using a relative directory.
4393
cp "$am_depcomp" conftest.dir
4395
# We will build objects and dependencies in a subdirectory because
4396
# it helps to detect inapplicable dependency modes. For instance
4397
# both Tru64's cc and ICC support -MD to output dependencies as a
4398
# side effect of compilation, but ICC will put the dependencies in
4399
# the current directory while Tru64 will put them in the object
4403
am_cv_CC_dependencies_compiler_type=none
4404
if test "$am_compiler_list" = ""; then
4405
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4408
case " $depcc " in #(
4409
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4412
for depmode in $am_compiler_list; do
4413
# Setup a source with many dependencies, because some compilers
4414
# like to wrap large dependency lists on column 80 (with \), and
4415
# we should not choose a depcomp mode which is confused by this.
4417
# We need to recreate these files for each test, as the compiler may
4418
# overwrite some of them when testing with obscure command lines.
4419
# This happens at least with the AIX C compiler.
4421
for i in 1 2 3 4 5 6; do
4422
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4423
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4424
# Solaris 8's {/usr,}/bin/sh.
4425
touch sub/conftst$i.h
4427
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4429
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4430
# mode. It turns out that the SunPro C++ compiler does not properly
4431
# handle `-M -o', and we need to detect this. Also, some Intel
4432
# versions had trouble with output in subdirs
4433
am__obj=sub/conftest.${OBJEXT-o}
4434
am__minus_obj="-o $am__obj"
4437
# This depmode causes a compiler race in universal mode.
4438
test "$am__universal" = false || continue
4441
# after this tag, mechanisms are not by side-effect, so they'll
4442
# only be used when explicitly requested
4443
if test "x$enable_dependency_tracking" = xyes; then
4449
msvisualcpp | msvcmsys)
4450
# This compiler won't grok `-c -o', but also, the minuso test has
4451
# not run yet. These depmodes are late enough in the game, and
4452
# so weak that their functioning should not be impacted.
4453
am__obj=conftest.${OBJEXT-o}
4458
if depmode=$depmode \
4459
source=sub/conftest.c object=$am__obj \
4460
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4461
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4462
>/dev/null 2>conftest.err &&
4463
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4464
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4465
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4466
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4467
# icc doesn't choke on unknown options, it will just issue warnings
4468
# or remarks (even with -Werror). So we grep stderr for any message
4469
# that says an option was ignored or not supported.
4470
# When given -MP, icc 7.0 and 7.1 complain thusly:
4471
# icc: Command line warning: ignoring option '-M'; no argument required
4472
# The diagnosis changed in icc 8.0:
4473
# icc: Command line remark: option '-MP' not supported
4474
if (grep 'ignoring option' conftest.err ||
4475
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4476
am_cv_CC_dependencies_compiler_type=$depmode
4485
am_cv_CC_dependencies_compiler_type=none
4489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4490
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4491
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4494
test "x$enable_dependency_tracking" != xno \
4495
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4497
am__fastdepCC_FALSE='#'
4499
am__fastdepCC_TRUE='#'
4500
am__fastdepCC_FALSE=
4506
ac_cpp='$CPP $CPPFLAGS'
4507
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4508
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4509
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4511
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4512
# On Suns, sometimes $CPP names a directory.
4513
if test -n "$CPP" && test -d "$CPP"; then
4516
if test -z "$CPP"; then
4517
if test "${ac_cv_prog_CPP+set}" = set; then :
4518
$as_echo_n "(cached) " >&6
4520
# Double quotes because CPP needs to be expanded
4521
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4524
for ac_c_preproc_warn_flag in '' yes
4526
# Use a header file that comes with gcc, so configuring glibc
4527
# with a fresh cross-compiler works.
4528
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4529
# <limits.h> exists even on freestanding compilers.
4530
# On the NeXT, cc -E runs the code through the compiler's parser,
4531
# not just through cpp. "Syntax error" is here to catch this case.
4532
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533
/* end confdefs.h. */
4535
# include <limits.h>
4537
# include <assert.h>
4541
if ac_fn_c_try_cpp "$LINENO"; then :
4544
# Broken: fails on valid input.
4547
rm -f conftest.err conftest.i conftest.$ac_ext
4549
# OK, works on sane cases. Now check whether nonexistent headers
4550
# can be detected and how.
4551
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552
/* end confdefs.h. */
4553
#include <ac_nonexistent.h>
4555
if ac_fn_c_try_cpp "$LINENO"; then :
4556
# Broken: success on invalid input.
4559
# Passes both tests.
4563
rm -f conftest.err conftest.i conftest.$ac_ext
4566
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4567
rm -f conftest.i conftest.err conftest.$ac_ext
4568
if $ac_preproc_ok; then :
4580
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4581
$as_echo "$CPP" >&6; }
4583
for ac_c_preproc_warn_flag in '' yes
4585
# Use a header file that comes with gcc, so configuring glibc
4586
# with a fresh cross-compiler works.
4587
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4588
# <limits.h> exists even on freestanding compilers.
4589
# On the NeXT, cc -E runs the code through the compiler's parser,
4590
# not just through cpp. "Syntax error" is here to catch this case.
4591
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592
/* end confdefs.h. */
4594
# include <limits.h>
4596
# include <assert.h>
4600
if ac_fn_c_try_cpp "$LINENO"; then :
4603
# Broken: fails on valid input.
4606
rm -f conftest.err conftest.i conftest.$ac_ext
4608
# OK, works on sane cases. Now check whether nonexistent headers
4609
# can be detected and how.
4610
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611
/* end confdefs.h. */
4612
#include <ac_nonexistent.h>
4614
if ac_fn_c_try_cpp "$LINENO"; then :
4615
# Broken: success on invalid input.
4618
# Passes both tests.
4622
rm -f conftest.err conftest.i conftest.$ac_ext
4625
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4626
rm -f conftest.i conftest.err conftest.$ac_ext
4627
if $ac_preproc_ok; then :
4630
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4631
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4632
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4633
See \`config.log' for more details" "$LINENO" 5 ; }
4637
ac_cpp='$CPP $CPPFLAGS'
4638
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4644
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4645
if test "${ac_cv_path_GREP+set}" = set; then :
4646
$as_echo_n "(cached) " >&6
4648
if test -z "$GREP"; then
4649
ac_path_GREP_found=false
4650
# Loop through the user's path and test for each of PROGNAME-LIST
4651
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4655
test -z "$as_dir" && as_dir=.
4656
for ac_prog in grep ggrep; do
4657
for ac_exec_ext in '' $ac_executable_extensions; do
4658
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4659
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4660
# Check for GNU ac_path_GREP and select it if it is found.
4661
# Check for GNU $ac_path_GREP
4662
case `"$ac_path_GREP" --version 2>&1` in
4664
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4667
$as_echo_n 0123456789 >"conftest.in"
4670
cat "conftest.in" "conftest.in" >"conftest.tmp"
4671
mv "conftest.tmp" "conftest.in"
4672
cp "conftest.in" "conftest.nl"
4673
$as_echo 'GREP' >> "conftest.nl"
4674
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4675
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4676
as_fn_arith $ac_count + 1 && ac_count=$as_val
4677
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4678
# Best one so far, save it but keep looking for a better one
4679
ac_cv_path_GREP="$ac_path_GREP"
4680
ac_path_GREP_max=$ac_count
4682
# 10*(2^10) chars as input seems more than enough
4683
test $ac_count -gt 10 && break
4685
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4688
$ac_path_GREP_found && break 3
4693
if test -z "$ac_cv_path_GREP"; then
4694
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4697
ac_cv_path_GREP=$GREP
4701
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4702
$as_echo "$ac_cv_path_GREP" >&6; }
4703
GREP="$ac_cv_path_GREP"
4706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4707
$as_echo_n "checking for egrep... " >&6; }
4708
if test "${ac_cv_path_EGREP+set}" = set; then :
4709
$as_echo_n "(cached) " >&6
4711
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4712
then ac_cv_path_EGREP="$GREP -E"
4714
if test -z "$EGREP"; then
4715
ac_path_EGREP_found=false
4716
# Loop through the user's path and test for each of PROGNAME-LIST
4717
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4721
test -z "$as_dir" && as_dir=.
4722
for ac_prog in egrep; do
4723
for ac_exec_ext in '' $ac_executable_extensions; do
4724
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4725
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4726
# Check for GNU ac_path_EGREP and select it if it is found.
4727
# Check for GNU $ac_path_EGREP
4728
case `"$ac_path_EGREP" --version 2>&1` in
4730
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4733
$as_echo_n 0123456789 >"conftest.in"
4736
cat "conftest.in" "conftest.in" >"conftest.tmp"
4737
mv "conftest.tmp" "conftest.in"
4738
cp "conftest.in" "conftest.nl"
4739
$as_echo 'EGREP' >> "conftest.nl"
4740
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4741
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4742
as_fn_arith $ac_count + 1 && ac_count=$as_val
4743
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4744
# Best one so far, save it but keep looking for a better one
4745
ac_cv_path_EGREP="$ac_path_EGREP"
4746
ac_path_EGREP_max=$ac_count
4748
# 10*(2^10) chars as input seems more than enough
4749
test $ac_count -gt 10 && break
4751
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4754
$ac_path_EGREP_found && break 3
4759
if test -z "$ac_cv_path_EGREP"; then
4760
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4763
ac_cv_path_EGREP=$EGREP
4768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4769
$as_echo "$ac_cv_path_EGREP" >&6; }
4770
EGREP="$ac_cv_path_EGREP"
4773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4774
$as_echo_n "checking for ANSI C header files... " >&6; }
4775
if test "${ac_cv_header_stdc+set}" = set; then :
4776
$as_echo_n "(cached) " >&6
4778
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779
/* end confdefs.h. */
4793
if ac_fn_c_try_compile "$LINENO"; then :
4794
ac_cv_header_stdc=yes
4796
ac_cv_header_stdc=no
4798
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800
if test $ac_cv_header_stdc = yes; then
4801
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4802
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803
/* end confdefs.h. */
4807
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4808
$EGREP "memchr" >/dev/null 2>&1; then :
4811
ac_cv_header_stdc=no
4817
if test $ac_cv_header_stdc = yes; then
4818
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4819
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820
/* end confdefs.h. */
4824
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4825
$EGREP "free" >/dev/null 2>&1; then :
4828
ac_cv_header_stdc=no
4834
if test $ac_cv_header_stdc = yes; then
4835
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4836
if test "$cross_compiling" = yes; then :
4839
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840
/* end confdefs.h. */
4843
#if ((' ' & 0x0FF) == 0x020)
4844
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4845
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4847
# define ISLOWER(c) \
4848
(('a' <= (c) && (c) <= 'i') \
4849
|| ('j' <= (c) && (c) <= 'r') \
4850
|| ('s' <= (c) && (c) <= 'z'))
4851
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4854
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4859
for (i = 0; i < 256; i++)
4860
if (XOR (islower (i), ISLOWER (i))
4861
|| toupper (i) != TOUPPER (i))
4866
if ac_fn_c_try_run "$LINENO"; then :
4869
ac_cv_header_stdc=no
4871
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4872
conftest.$ac_objext conftest.beam conftest.$ac_ext
4877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4878
$as_echo "$ac_cv_header_stdc" >&6; }
4879
if test $ac_cv_header_stdc = yes; then
4881
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4885
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4886
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4887
inttypes.h stdint.h unistd.h
4889
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4890
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4892
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4893
cat >>confdefs.h <<_ACEOF
4894
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4902
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4903
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4904
if test "${ac_cv_c_bigendian+set}" = set; then :
4905
$as_echo_n "(cached) " >&6
4907
ac_cv_c_bigendian=unknown
4908
# See if we're dealing with a universal compiler.
4909
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910
/* end confdefs.h. */
4911
#ifndef __APPLE_CC__
4912
not a universal capable compiler
4917
if ac_fn_c_try_compile "$LINENO"; then :
4919
# Check for potential -arch flags. It is not universal unless
4920
# there are at least two -arch flags with different values.
4923
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4924
if test -n "$ac_prev"; then
4926
i?86 | x86_64 | ppc | ppc64)
4927
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4930
ac_cv_c_bigendian=universal
4936
elif test "x$ac_word" = "x-arch"; then
4941
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942
if test $ac_cv_c_bigendian = unknown; then
4943
# See if sys/param.h defines the BYTE_ORDER macro.
4944
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945
/* end confdefs.h. */
4946
#include <sys/types.h>
4947
#include <sys/param.h>
4952
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4953
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4962
if ac_fn_c_try_compile "$LINENO"; then :
4963
# It does; now see whether it defined to BIG_ENDIAN or not.
4964
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965
/* end confdefs.h. */
4966
#include <sys/types.h>
4967
#include <sys/param.h>
4972
#if BYTE_ORDER != BIG_ENDIAN
4980
if ac_fn_c_try_compile "$LINENO"; then :
4981
ac_cv_c_bigendian=yes
4983
ac_cv_c_bigendian=no
4985
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989
if test $ac_cv_c_bigendian = unknown; then
4990
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4991
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992
/* end confdefs.h. */
4998
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5006
if ac_fn_c_try_compile "$LINENO"; then :
5007
# It does; now see whether it defined to _BIG_ENDIAN or not.
5008
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009
/* end confdefs.h. */
5023
if ac_fn_c_try_compile "$LINENO"; then :
5024
ac_cv_c_bigendian=yes
5026
ac_cv_c_bigendian=no
5028
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5032
if test $ac_cv_c_bigendian = unknown; then
5033
# Compile a test program.
5034
if test "$cross_compiling" = yes; then :
5035
# Try to guess by grepping values from an object file.
5036
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037
/* end confdefs.h. */
5038
short int ascii_mm[] =
5039
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5040
short int ascii_ii[] =
5041
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5042
int use_ascii (int i) {
5043
return ascii_mm[i] + ascii_ii[i];
5045
short int ebcdic_ii[] =
5046
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5047
short int ebcdic_mm[] =
5048
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5049
int use_ebcdic (int i) {
5050
return ebcdic_mm[i] + ebcdic_ii[i];
5057
return use_ascii (foo) == use_ebcdic (foo);
5062
if ac_fn_c_try_compile "$LINENO"; then :
5063
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5064
ac_cv_c_bigendian=yes
5066
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5067
if test "$ac_cv_c_bigendian" = unknown; then
5068
ac_cv_c_bigendian=no
5070
# finding both strings is unlikely to happen, but who knows?
5071
ac_cv_c_bigendian=unknown
5075
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078
/* end confdefs.h. */
5079
$ac_includes_default
5084
/* Are we little or big endian? From Harbison&Steele. */
5088
char c[sizeof (long int)];
5091
return u.c[sizeof (long int) - 1] == 1;
5097
if ac_fn_c_try_run "$LINENO"; then :
5098
ac_cv_c_bigendian=no
5100
ac_cv_c_bigendian=yes
5102
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5103
conftest.$ac_objext conftest.beam conftest.$ac_ext
5108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5109
$as_echo "$ac_cv_c_bigendian" >&6; }
5110
case $ac_cv_c_bigendian in #(
5112
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5118
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5122
as_fn_error $? "unknown endianness
5123
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5127
if test "$cxxset" != set; then
5128
# don't use the default -O2 -g because -g bloats the C++ binaries too much
5131
case "$target_os" in
5133
CXXFLAGS="$CXXFLAGS -include llvm/include/llvm/System/Solaris.h"
5134
{ $as_echo "$as_me:${as_lineno-$LINENO}: Building on Solaris" >&5
5135
$as_echo "$as_me: Building on Solaris" >&6;}
5140
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5141
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5142
# Check whether --enable-maintainer-mode was given.
5143
if test "${enable_maintainer_mode+set}" = set; then :
5144
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5146
USE_MAINTAINER_MODE=no
5149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5150
$as_echo "$USE_MAINTAINER_MODE" >&6; }
5151
if test $USE_MAINTAINER_MODE = yes; then
5152
MAINTAINER_MODE_TRUE=
5153
MAINTAINER_MODE_FALSE='#'
5155
MAINTAINER_MODE_TRUE='#'
5156
MAINTAINER_MODE_FALSE=
5159
MAINT=$MAINTAINER_MODE_TRUE
5164
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5165
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5170
macro_version='2.2.6b'
5171
macro_revision='1.3017'
5185
ltmain="$ac_aux_dir/ltmain.sh"
5187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5188
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5189
if test "${ac_cv_path_SED+set}" = set; then :
5190
$as_echo_n "(cached) " >&6
5192
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5193
for ac_i in 1 2 3 4 5 6 7; do
5194
ac_script="$ac_script$as_nl$ac_script"
5196
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5197
{ ac_script=; unset ac_script;}
5198
if test -z "$SED"; then
5199
ac_path_SED_found=false
5200
# Loop through the user's path and test for each of PROGNAME-LIST
5201
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205
test -z "$as_dir" && as_dir=.
5206
for ac_prog in sed gsed; do
5207
for ac_exec_ext in '' $ac_executable_extensions; do
5208
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5209
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5210
# Check for GNU ac_path_SED and select it if it is found.
5211
# Check for GNU $ac_path_SED
5212
case `"$ac_path_SED" --version 2>&1` in
5214
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5217
$as_echo_n 0123456789 >"conftest.in"
5220
cat "conftest.in" "conftest.in" >"conftest.tmp"
5221
mv "conftest.tmp" "conftest.in"
5222
cp "conftest.in" "conftest.nl"
5223
$as_echo '' >> "conftest.nl"
5224
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5225
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5226
as_fn_arith $ac_count + 1 && ac_count=$as_val
5227
if test $ac_count -gt ${ac_path_SED_max-0}; then
5228
# Best one so far, save it but keep looking for a better one
5229
ac_cv_path_SED="$ac_path_SED"
5230
ac_path_SED_max=$ac_count
5232
# 10*(2^10) chars as input seems more than enough
5233
test $ac_count -gt 10 && break
5235
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5238
$ac_path_SED_found && break 3
5243
if test -z "$ac_cv_path_SED"; then
5244
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5252
$as_echo "$ac_cv_path_SED" >&6; }
5253
SED="$ac_cv_path_SED"
5256
test -z "$SED" && SED=sed
5257
Xsed="$SED -e 1s/^X//"
5269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5270
$as_echo_n "checking for fgrep... " >&6; }
5271
if test "${ac_cv_path_FGREP+set}" = set; then :
5272
$as_echo_n "(cached) " >&6
5274
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5275
then ac_cv_path_FGREP="$GREP -F"
5277
if test -z "$FGREP"; then
5278
ac_path_FGREP_found=false
5279
# Loop through the user's path and test for each of PROGNAME-LIST
5280
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5284
test -z "$as_dir" && as_dir=.
5285
for ac_prog in fgrep; do
5286
for ac_exec_ext in '' $ac_executable_extensions; do
5287
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5288
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5289
# Check for GNU ac_path_FGREP and select it if it is found.
5290
# Check for GNU $ac_path_FGREP
5291
case `"$ac_path_FGREP" --version 2>&1` in
5293
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5296
$as_echo_n 0123456789 >"conftest.in"
5299
cat "conftest.in" "conftest.in" >"conftest.tmp"
5300
mv "conftest.tmp" "conftest.in"
5301
cp "conftest.in" "conftest.nl"
5302
$as_echo 'FGREP' >> "conftest.nl"
5303
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5304
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5305
as_fn_arith $ac_count + 1 && ac_count=$as_val
5306
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5307
# Best one so far, save it but keep looking for a better one
5308
ac_cv_path_FGREP="$ac_path_FGREP"
5309
ac_path_FGREP_max=$ac_count
5311
# 10*(2^10) chars as input seems more than enough
5312
test $ac_count -gt 10 && break
5314
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5317
$ac_path_FGREP_found && break 3
5322
if test -z "$ac_cv_path_FGREP"; then
5323
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5326
ac_cv_path_FGREP=$FGREP
5331
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5332
$as_echo "$ac_cv_path_FGREP" >&6; }
5333
FGREP="$ac_cv_path_FGREP"
5336
test -z "$GREP" && GREP=grep
5356
# Check whether --with-gnu-ld was given.
5357
if test "${with_gnu_ld+set}" = set; then :
5358
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5364
if test "$GCC" = yes; then
5365
# Check if gcc -print-prog-name=ld gives a path.
5366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5367
$as_echo_n "checking for ld used by $CC... " >&6; }
5370
# gcc leaves a trailing carriage return which upsets mingw
5371
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5373
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5376
# Accept absolute paths.
5378
re_direlt='/[^/][^/]*/\.\./'
5379
# Canonicalize the pathname of ld
5380
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5381
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5382
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5384
test -z "$LD" && LD="$ac_prog"
5387
# If it fails, then pretend we aren't using GCC.
5391
# If it is relative, then search for the first ld in PATH.
5395
elif test "$with_gnu_ld" = yes; then
5396
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5397
$as_echo_n "checking for GNU ld... " >&6; }
5399
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5400
$as_echo_n "checking for non-GNU ld... " >&6; }
5402
if test "${lt_cv_path_LD+set}" = set; then :
5403
$as_echo_n "(cached) " >&6
5405
if test -z "$LD"; then
5406
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5407
for ac_dir in $PATH; do
5409
test -z "$ac_dir" && ac_dir=.
5410
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5411
lt_cv_path_LD="$ac_dir/$ac_prog"
5412
# Check to see if the program is GNU ld. I'd rather use --version,
5413
# but apparently some variants of GNU ld only accept -v.
5414
# Break only if it was the GNU/non-GNU ld that we prefer.
5415
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5416
*GNU* | *'with BFD'*)
5417
test "$with_gnu_ld" != no && break
5420
test "$with_gnu_ld" != yes && break
5427
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5432
if test -n "$LD"; then
5433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5434
$as_echo "$LD" >&6; }
5436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437
$as_echo "no" >&6; }
5439
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5441
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5442
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5443
$as_echo_n "(cached) " >&6
5445
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5446
case `$LD -v 2>&1 </dev/null` in
5447
*GNU* | *'with BFD'*)
5448
lt_cv_prog_gnu_ld=yes
5451
lt_cv_prog_gnu_ld=no
5455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5456
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5457
with_gnu_ld=$lt_cv_prog_gnu_ld
5467
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5468
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5469
if test "${lt_cv_path_NM+set}" = set; then :
5470
$as_echo_n "(cached) " >&6
5472
if test -n "$NM"; then
5473
# Let the user override the test.
5476
lt_nm_to_check="${ac_tool_prefix}nm"
5477
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5478
lt_nm_to_check="$lt_nm_to_check nm"
5480
for lt_tmp_nm in $lt_nm_to_check; do
5481
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5482
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5484
test -z "$ac_dir" && ac_dir=.
5485
tmp_nm="$ac_dir/$lt_tmp_nm"
5486
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5487
# Check to see if the nm accepts a BSD-compat flag.
5488
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5489
# nm: unknown option "B" ignored
5490
# Tru64's nm complains that /dev/null is an invalid object file
5491
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5492
*/dev/null* | *'Invalid file or object type'*)
5493
lt_cv_path_NM="$tmp_nm -B"
5497
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5499
lt_cv_path_NM="$tmp_nm -p"
5503
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5504
continue # so that we can try to find one that supports BSD flags
5513
: ${lt_cv_path_NM=no}
5516
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5517
$as_echo "$lt_cv_path_NM" >&6; }
5518
if test "$lt_cv_path_NM" != "no"; then
5521
# Didn't find any BSD compatible name lister, look for dumpbin.
5522
if test -n "$ac_tool_prefix"; then
5523
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5525
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5526
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528
$as_echo_n "checking for $ac_word... " >&6; }
5529
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5530
$as_echo_n "(cached) " >&6
5532
if test -n "$DUMPBIN"; then
5533
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5535
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539
test -z "$as_dir" && as_dir=.
5540
for ac_exec_ext in '' $ac_executable_extensions; do
5541
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5542
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5543
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552
DUMPBIN=$ac_cv_prog_DUMPBIN
5553
if test -n "$DUMPBIN"; then
5554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5555
$as_echo "$DUMPBIN" >&6; }
5557
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558
$as_echo "no" >&6; }
5562
test -n "$DUMPBIN" && break
5565
if test -z "$DUMPBIN"; then
5566
ac_ct_DUMPBIN=$DUMPBIN
5567
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5569
# Extract the first word of "$ac_prog", so it can be a program name with args.
5570
set dummy $ac_prog; ac_word=$2
5571
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572
$as_echo_n "checking for $ac_word... " >&6; }
5573
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5574
$as_echo_n "(cached) " >&6
5576
if test -n "$ac_ct_DUMPBIN"; then
5577
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5579
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583
test -z "$as_dir" && as_dir=.
5584
for ac_exec_ext in '' $ac_executable_extensions; do
5585
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5586
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5587
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5597
if test -n "$ac_ct_DUMPBIN"; then
5598
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5599
$as_echo "$ac_ct_DUMPBIN" >&6; }
5601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602
$as_echo "no" >&6; }
5606
test -n "$ac_ct_DUMPBIN" && break
5609
if test "x$ac_ct_DUMPBIN" = x; then
5612
case $cross_compiling:$ac_tool_warned in
5614
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5615
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5616
ac_tool_warned=yes ;;
5618
DUMPBIN=$ac_ct_DUMPBIN
5623
if test "$DUMPBIN" != ":"; then
5627
test -z "$NM" && NM=nm
5634
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5635
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5636
if test "${lt_cv_nm_interface+set}" = set; then :
5637
$as_echo_n "(cached) " >&6
5639
lt_cv_nm_interface="BSD nm"
5640
echo "int some_variable = 0;" > conftest.$ac_ext
5641
(eval echo "\"\$as_me:5641: $ac_compile\"" >&5)
5642
(eval "$ac_compile" 2>conftest.err)
5643
cat conftest.err >&5
5644
(eval echo "\"\$as_me:5644: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5645
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5646
cat conftest.err >&5
5647
(eval echo "\"\$as_me:5647: output\"" >&5)
5648
cat conftest.out >&5
5649
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5650
lt_cv_nm_interface="MS dumpbin"
5654
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5655
$as_echo "$lt_cv_nm_interface" >&6; }
5657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5658
$as_echo_n "checking whether ln -s works... " >&6; }
5660
if test "$LN_S" = "ln -s"; then
5661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5662
$as_echo "yes" >&6; }
5664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5665
$as_echo "no, using $LN_S" >&6; }
5668
# find the maximum length of command line arguments
5669
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5670
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5671
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5672
$as_echo_n "(cached) " >&6
5679
# On DJGPP, this test can blow up pretty badly due to problems in libc
5680
# (any single argument exceeding 2000 bytes causes a buffer overrun
5681
# during glob expansion). Even if it were fixed, the result of this
5682
# check would be larger than it should be.
5683
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5687
# Under GNU Hurd, this test is not required because there is
5688
# no limit to the length of command line arguments.
5689
# Libtool will interpret -1 as no limit whatsoever
5690
lt_cv_sys_max_cmd_len=-1;
5693
cygwin* | mingw* | cegcc*)
5694
# On Win9x/ME, this test blows up -- it succeeds, but takes
5695
# about 5 minutes as the teststring grows exponentially.
5696
# Worse, since 9x/ME are not pre-emptively multitasking,
5697
# you end up with a "frozen" computer, even though with patience
5698
# the test eventually succeeds (with a max line length of 256k).
5699
# Instead, let's just punt: use the minimum linelength reported by
5700
# all of the supported platforms: 8192 (on NT/2K/XP).
5701
lt_cv_sys_max_cmd_len=8192;
5705
# On AmigaOS with pdksh, this test takes hours, literally.
5706
# So we just punt and use a minimum line length of 8192.
5707
lt_cv_sys_max_cmd_len=8192;
5710
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5711
# This has been around since 386BSD, at least. Likely further.
5712
if test -x /sbin/sysctl; then
5713
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5714
elif test -x /usr/sbin/sysctl; then
5715
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5717
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5719
# And add a safety zone
5720
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5721
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5725
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5726
lt_cv_sys_max_cmd_len=196608
5730
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5731
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5732
# nice to cause kernel panics so lets avoid the loop below.
5733
# First set a reasonable default.
5734
lt_cv_sys_max_cmd_len=16384
5736
if test -x /sbin/sysconfig; then
5737
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5738
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5743
lt_cv_sys_max_cmd_len=102400
5745
sysv5* | sco5v6* | sysv4.2uw2*)
5746
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5747
if test -n "$kargmax"; then
5748
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5750
lt_cv_sys_max_cmd_len=32768
5754
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5755
if test -n "$lt_cv_sys_max_cmd_len"; then
5756
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5757
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5759
# Make teststring a little bigger before we do anything with it.
5760
# a 1K string should be a reasonable start.
5761
for i in 1 2 3 4 5 6 7 8 ; do
5762
teststring=$teststring$teststring
5764
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5765
# If test is not a shell built-in, we'll probably end up computing a
5766
# maximum length that is only half of the actual maximum length, but
5768
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5769
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5770
test $i != 17 # 1/2 MB should be enough
5773
teststring=$teststring$teststring
5775
# Only check the string length outside the loop.
5776
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5778
# Add a significant safety factor because C++ compilers can tack on
5779
# massive amounts of additional arguments before passing them to the
5780
# linker. It appears as though 1/2 is a usable value.
5781
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5788
if test -n $lt_cv_sys_max_cmd_len ; then
5789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5790
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5793
$as_echo "none" >&6; }
5795
max_cmd_len=$lt_cv_sys_max_cmd_len
5806
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5807
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5808
# Try some XSI features
5811
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5813
&& eval 'test $(( 1 + 1 )) -eq 2 \
5814
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5817
$as_echo "$xsi_shell" >&6; }
5820
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5821
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5823
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5825
&& lt_shell_append=yes
5826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5827
$as_echo "$lt_shell_append" >&6; }
5830
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5840
# test EBCDIC or ASCII
5841
case `echo X|tr X '\101'` in
5842
A) # ASCII based system
5843
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5844
lt_SP2NL='tr \040 \012'
5845
lt_NL2SP='tr \015\012 \040\040'
5847
*) # EBCDIC based system
5848
lt_SP2NL='tr \100 \n'
5849
lt_NL2SP='tr \r\n \100\100'
5861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5862
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5863
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5864
$as_echo_n "(cached) " >&6
5866
lt_cv_ld_reload_flag='-r'
5868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5869
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5870
reload_flag=$lt_cv_ld_reload_flag
5871
case $reload_flag in
5873
*) reload_flag=" $reload_flag" ;;
5875
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5878
if test "$GCC" = yes; then
5879
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5881
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5894
if test -n "$ac_tool_prefix"; then
5895
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5896
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5897
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898
$as_echo_n "checking for $ac_word... " >&6; }
5899
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5900
$as_echo_n "(cached) " >&6
5902
if test -n "$OBJDUMP"; then
5903
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5905
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909
test -z "$as_dir" && as_dir=.
5910
for ac_exec_ext in '' $ac_executable_extensions; do
5911
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5912
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5913
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5922
OBJDUMP=$ac_cv_prog_OBJDUMP
5923
if test -n "$OBJDUMP"; then
5924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5925
$as_echo "$OBJDUMP" >&6; }
5927
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928
$as_echo "no" >&6; }
5933
if test -z "$ac_cv_prog_OBJDUMP"; then
5934
ac_ct_OBJDUMP=$OBJDUMP
5935
# Extract the first word of "objdump", so it can be a program name with args.
5936
set dummy objdump; ac_word=$2
5937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938
$as_echo_n "checking for $ac_word... " >&6; }
5939
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5940
$as_echo_n "(cached) " >&6
5942
if test -n "$ac_ct_OBJDUMP"; then
5943
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5945
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949
test -z "$as_dir" && as_dir=.
5950
for ac_exec_ext in '' $ac_executable_extensions; do
5951
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5953
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5963
if test -n "$ac_ct_OBJDUMP"; then
5964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5965
$as_echo "$ac_ct_OBJDUMP" >&6; }
5967
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968
$as_echo "no" >&6; }
5971
if test "x$ac_ct_OBJDUMP" = x; then
5974
case $cross_compiling:$ac_tool_warned in
5976
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5977
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5978
ac_tool_warned=yes ;;
5980
OBJDUMP=$ac_ct_OBJDUMP
5983
OBJDUMP="$ac_cv_prog_OBJDUMP"
5986
test -z "$OBJDUMP" && OBJDUMP=objdump
5996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5997
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5998
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5999
$as_echo_n "(cached) " >&6
6001
lt_cv_file_magic_cmd='$MAGIC_CMD'
6002
lt_cv_file_magic_test_file=
6003
lt_cv_deplibs_check_method='unknown'
6004
# Need to set the preceding variable on all platforms that support
6005
# interlibrary dependencies.
6006
# 'none' -- dependencies not supported.
6007
# `unknown' -- same as none, but documents that we really don't know.
6008
# 'pass_all' -- all dependencies passed with no checks.
6009
# 'test_compile' -- check by making test program.
6010
# 'file_magic [[regex]]' -- check by looking for files in library path
6011
# which responds to the $file_magic_cmd with a given extended regex.
6012
# If you have `file' or equivalent on your system and you're not sure
6013
# whether `pass_all' will *always* work, you probably want this one.
6017
lt_cv_deplibs_check_method=pass_all
6021
lt_cv_deplibs_check_method=pass_all
6025
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6026
lt_cv_file_magic_cmd='/usr/bin/file -L'
6027
lt_cv_file_magic_test_file=/shlib/libc.so
6031
# func_win32_libid is a shell function defined in ltmain.sh
6032
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6033
lt_cv_file_magic_cmd='func_win32_libid'
6037
# Base MSYS/MinGW do not provide the 'file' command needed by
6038
# func_win32_libid shell function, so use a weaker test based on 'objdump',
6039
# unless we find 'file', for example because we are cross-compiling.
6040
if ( file / ) >/dev/null 2>&1; then
6041
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6042
lt_cv_file_magic_cmd='func_win32_libid'
6044
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6045
lt_cv_file_magic_cmd='$OBJDUMP -f'
6050
# use the weaker test based on 'objdump'. See mingw*.
6051
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6052
lt_cv_file_magic_cmd='$OBJDUMP -f'
6055
darwin* | rhapsody*)
6056
lt_cv_deplibs_check_method=pass_all
6059
freebsd* | dragonfly*)
6060
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6063
# Not sure whether the presence of OpenBSD here was a mistake.
6064
# Let's accept both of them until this is cleared up.
6065
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6066
lt_cv_file_magic_cmd=/usr/bin/file
6067
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6071
lt_cv_deplibs_check_method=pass_all
6076
lt_cv_deplibs_check_method=pass_all
6079
hpux10.20* | hpux11*)
6080
lt_cv_file_magic_cmd=/usr/bin/file
6083
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6084
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6087
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]'
6088
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6091
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6092
lt_cv_file_magic_test_file=/usr/lib/libc.sl
6098
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6099
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6102
irix5* | irix6* | nonstopux*)
6104
*-32|*"-32 ") libmagic=32-bit;;
6105
*-n32|*"-n32 ") libmagic=N32;;
6106
*-64|*"-64 ") libmagic=64-bit;;
6107
*) libmagic=never-match;;
6109
lt_cv_deplibs_check_method=pass_all
6112
# This must be Linux ELF.
6113
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6114
lt_cv_deplibs_check_method=pass_all
6117
netbsd* | netbsdelf*-gnu)
6118
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6119
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6121
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6126
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6127
lt_cv_file_magic_cmd=/usr/bin/file
6128
lt_cv_file_magic_test_file=/usr/lib/libnls.so
6132
lt_cv_deplibs_check_method=pass_all
6136
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6137
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6139
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6143
osf3* | osf4* | osf5*)
6144
lt_cv_deplibs_check_method=pass_all
6148
lt_cv_deplibs_check_method=pass_all
6152
lt_cv_deplibs_check_method=pass_all
6155
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6156
lt_cv_deplibs_check_method=pass_all
6160
case $host_vendor in
6162
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]'
6163
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6166
lt_cv_deplibs_check_method=pass_all
6169
lt_cv_file_magic_cmd='/bin/file'
6170
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6173
lt_cv_file_magic_cmd='/bin/file'
6174
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6175
lt_cv_file_magic_test_file=/lib/libc.so
6178
lt_cv_deplibs_check_method=pass_all
6181
lt_cv_deplibs_check_method=pass_all
6187
lt_cv_deplibs_check_method=pass_all
6192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6193
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6194
file_magic_cmd=$lt_cv_file_magic_cmd
6195
deplibs_check_method=$lt_cv_deplibs_check_method
6196
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6209
if test -n "$ac_tool_prefix"; then
6210
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6211
set dummy ${ac_tool_prefix}ar; ac_word=$2
6212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213
$as_echo_n "checking for $ac_word... " >&6; }
6214
if test "${ac_cv_prog_AR+set}" = set; then :
6215
$as_echo_n "(cached) " >&6
6217
if test -n "$AR"; then
6218
ac_cv_prog_AR="$AR" # Let the user override the test.
6220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224
test -z "$as_dir" && as_dir=.
6225
for ac_exec_ext in '' $ac_executable_extensions; do
6226
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227
ac_cv_prog_AR="${ac_tool_prefix}ar"
6228
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238
if test -n "$AR"; then
6239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6240
$as_echo "$AR" >&6; }
6242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243
$as_echo "no" >&6; }
6248
if test -z "$ac_cv_prog_AR"; then
6250
# Extract the first word of "ar", so it can be a program name with args.
6251
set dummy ar; ac_word=$2
6252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253
$as_echo_n "checking for $ac_word... " >&6; }
6254
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6255
$as_echo_n "(cached) " >&6
6257
if test -n "$ac_ct_AR"; then
6258
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6260
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264
test -z "$as_dir" && as_dir=.
6265
for ac_exec_ext in '' $ac_executable_extensions; do
6266
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267
ac_cv_prog_ac_ct_AR="ar"
6268
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6278
if test -n "$ac_ct_AR"; then
6279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6280
$as_echo "$ac_ct_AR" >&6; }
6282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283
$as_echo "no" >&6; }
6286
if test "x$ac_ct_AR" = x; then
6289
case $cross_compiling:$ac_tool_warned in
6291
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6292
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6293
ac_tool_warned=yes ;;
6301
test -z "$AR" && AR=ar
6302
test -z "$AR_FLAGS" && AR_FLAGS=cru
6314
if test -n "$ac_tool_prefix"; then
6315
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6316
set dummy ${ac_tool_prefix}strip; ac_word=$2
6317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318
$as_echo_n "checking for $ac_word... " >&6; }
6319
if test "${ac_cv_prog_STRIP+set}" = set; then :
6320
$as_echo_n "(cached) " >&6
6322
if test -n "$STRIP"; then
6323
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329
test -z "$as_dir" && as_dir=.
6330
for ac_exec_ext in '' $ac_executable_extensions; do
6331
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6332
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6333
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342
STRIP=$ac_cv_prog_STRIP
6343
if test -n "$STRIP"; then
6344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6345
$as_echo "$STRIP" >&6; }
6347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348
$as_echo "no" >&6; }
6353
if test -z "$ac_cv_prog_STRIP"; then
6355
# Extract the first word of "strip", so it can be a program name with args.
6356
set dummy strip; ac_word=$2
6357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358
$as_echo_n "checking for $ac_word... " >&6; }
6359
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6360
$as_echo_n "(cached) " >&6
6362
if test -n "$ac_ct_STRIP"; then
6363
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369
test -z "$as_dir" && as_dir=.
6370
for ac_exec_ext in '' $ac_executable_extensions; do
6371
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6372
ac_cv_prog_ac_ct_STRIP="strip"
6373
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6383
if test -n "$ac_ct_STRIP"; then
6384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6385
$as_echo "$ac_ct_STRIP" >&6; }
6387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388
$as_echo "no" >&6; }
6391
if test "x$ac_ct_STRIP" = x; then
6394
case $cross_compiling:$ac_tool_warned in
6396
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6397
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6398
ac_tool_warned=yes ;;
6403
STRIP="$ac_cv_prog_STRIP"
6406
test -z "$STRIP" && STRIP=:
6413
if test -n "$ac_tool_prefix"; then
6414
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6415
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417
$as_echo_n "checking for $ac_word... " >&6; }
6418
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6419
$as_echo_n "(cached) " >&6
6421
if test -n "$RANLIB"; then
6422
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6424
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428
test -z "$as_dir" && as_dir=.
6429
for ac_exec_ext in '' $ac_executable_extensions; do
6430
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6432
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441
RANLIB=$ac_cv_prog_RANLIB
6442
if test -n "$RANLIB"; then
6443
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6444
$as_echo "$RANLIB" >&6; }
6446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447
$as_echo "no" >&6; }
6452
if test -z "$ac_cv_prog_RANLIB"; then
6453
ac_ct_RANLIB=$RANLIB
6454
# Extract the first word of "ranlib", so it can be a program name with args.
6455
set dummy ranlib; ac_word=$2
6456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457
$as_echo_n "checking for $ac_word... " >&6; }
6458
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6459
$as_echo_n "(cached) " >&6
6461
if test -n "$ac_ct_RANLIB"; then
6462
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468
test -z "$as_dir" && as_dir=.
6469
for ac_exec_ext in '' $ac_executable_extensions; do
6470
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471
ac_cv_prog_ac_ct_RANLIB="ranlib"
6472
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6482
if test -n "$ac_ct_RANLIB"; then
6483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6484
$as_echo "$ac_ct_RANLIB" >&6; }
6486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487
$as_echo "no" >&6; }
6490
if test "x$ac_ct_RANLIB" = x; then
6493
case $cross_compiling:$ac_tool_warned in
6495
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6496
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497
ac_tool_warned=yes ;;
6499
RANLIB=$ac_ct_RANLIB
6502
RANLIB="$ac_cv_prog_RANLIB"
6505
test -z "$RANLIB" && RANLIB=:
6512
# Determine commands to create old-style static archives.
6513
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6514
old_postinstall_cmds='chmod 644 $oldlib'
6515
old_postuninstall_cmds=
6517
if test -n "$RANLIB"; then
6520
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6523
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6526
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6562
# If no C compiler was specified, use CC.
6565
# If no C compiler flags were specified, use CFLAGS.
6566
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6568
# Allow CC to be a program name with arguments.
6572
# Check for command to grab the raw symbol name followed by C symbol from nm.
6573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6574
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6575
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6576
$as_echo_n "(cached) " >&6
6579
# These are sane defaults that work on at least a few old systems.
6580
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6582
# Character class describing NM global symbol codes.
6583
symcode='[BCDEGRST]'
6585
# Regexp to match symbols that can be accessed directly from C.
6586
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6588
# Define system-specific variables.
6593
cygwin* | mingw* | pw32* | cegcc*)
6594
symcode='[ABCDGISTW]'
6597
if test "$host_cpu" = ia64; then
6598
symcode='[ABCDEGRST]'
6602
symcode='[BCDEGRST]'
6605
symcode='[BCDEGQRST]'
6616
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6624
# If we're using GNU nm, then use its standard symbol codes.
6625
case `$NM -V 2>&1` in
6626
*GNU* | *'with BFD'*)
6627
symcode='[ABCDGIRSTW]' ;;
6630
# Transform an extracted symbol line into a proper C declaration.
6631
# Some systems (esp. on ia64) link data and code symbols differently,
6632
# so use this general approach.
6633
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6635
# Transform an extracted symbol line into symbol name and symbol address
6636
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6637
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'"
6639
# Handle CRLF in mingw tool chain
6643
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6647
# Try without a prefix underscore, then with it.
6648
for ac_symprfx in "" "_"; do
6650
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6651
symxfrm="\\1 $ac_symprfx\\2 \\2"
6653
# Write the raw and C identifiers.
6654
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6655
# Fake it for dumpbin and say T for any non-static function
6656
# and D for any global variable.
6657
# Also find C++ and __fastcall symbols from MSVC++,
6658
# which start with @ or ?.
6659
lt_cv_sys_global_symbol_pipe="$AWK '"\
6660
" {last_section=section; section=\$ 3};"\
6661
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6662
" \$ 0!~/External *\|/{next};"\
6663
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6664
" {if(hide[section]) next};"\
6665
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6666
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6667
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6668
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6669
" ' prfx=^$ac_symprfx"
6671
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6674
# Check to see that the pipe works correctly.
6678
cat > conftest.$ac_ext <<_LT_EOF
6683
void nm_test_func(void);
6684
void nm_test_func(void){}
6688
int main(){nm_test_var='a';nm_test_func();return(0);}
6691
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6692
(eval $ac_compile) 2>&5
6694
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695
test $ac_status = 0; }; then
6696
# Now try to grab the symbols.
6698
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6699
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6701
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6702
test $ac_status = 0; } && test -s "$nlist"; then
6703
# Try sorting and uniquifying the output.
6704
if sort "$nlist" | uniq > "$nlist"T; then
6705
mv -f "$nlist"T "$nlist"
6710
# Make sure that we snagged all the symbols we need.
6711
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6712
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6713
cat <<_LT_EOF > conftest.$ac_ext
6719
# Now generate the symbol file.
6720
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6722
cat <<_LT_EOF >> conftest.$ac_ext
6724
/* The mapping between symbol names and symbols. */
6729
lt__PROGRAM__LTX_preloaded_symbols[] =
6731
{ "@PROGRAM@", (void *) 0 },
6733
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6734
cat <<\_LT_EOF >> conftest.$ac_ext
6738
/* This works around a problem in FreeBSD linker */
6739
#ifdef FREEBSD_WORKAROUND
6740
static const void *lt_preloaded_setup() {
6741
return lt__PROGRAM__LTX_preloaded_symbols;
6749
# Now try linking the two files.
6750
mv conftest.$ac_objext conftstm.$ac_objext
6751
lt_save_LIBS="$LIBS"
6752
lt_save_CFLAGS="$CFLAGS"
6753
LIBS="conftstm.$ac_objext"
6754
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6755
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6756
(eval $ac_link) 2>&5
6758
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6759
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6762
LIBS="$lt_save_LIBS"
6763
CFLAGS="$lt_save_CFLAGS"
6765
echo "cannot find nm_test_func in $nlist" >&5
6768
echo "cannot find nm_test_var in $nlist" >&5
6771
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6774
echo "$progname: failed program was:" >&5
6775
cat conftest.$ac_ext >&5
6777
rm -rf conftest* conftst*
6779
# Do not use the global_symbol_pipe unless it works.
6780
if test "$pipe_works" = yes; then
6783
lt_cv_sys_global_symbol_pipe=
6789
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6790
lt_cv_sys_global_symbol_to_cdecl=
6792
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6794
$as_echo "failed" >&6; }
6796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6797
$as_echo "ok" >&6; }
6821
# Check whether --enable-libtool-lock was given.
6822
if test "${enable_libtool_lock+set}" = set; then :
6823
enableval=$enable_libtool_lock;
6826
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6828
# Some flags need to be propagated to the compiler or linker for good
6832
# Find out which ABI we are using.
6833
echo 'int i;' > conftest.$ac_ext
6834
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6835
(eval $ac_compile) 2>&5
6837
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6838
test $ac_status = 0; }; then
6839
case `/usr/bin/file conftest.$ac_objext` in
6851
# Find out which ABI we are using.
6852
echo '#line 6852 "configure"' > conftest.$ac_ext
6853
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6854
(eval $ac_compile) 2>&5
6856
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6857
test $ac_status = 0; }; then
6858
if test "$lt_cv_prog_gnu_ld" = yes; then
6859
case `/usr/bin/file conftest.$ac_objext` in
6861
LD="${LD-ld} -melf32bsmip"
6864
LD="${LD-ld} -melf32bmipn32"
6867
LD="${LD-ld} -melf64bmip"
6871
case `/usr/bin/file conftest.$ac_objext` in
6887
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6888
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6889
# Find out which ABI we are using.
6890
echo 'int i;' > conftest.$ac_ext
6891
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6892
(eval $ac_compile) 2>&5
6894
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6895
test $ac_status = 0; }; then
6896
case `/usr/bin/file conftest.o` in
6899
x86_64-*kfreebsd*-gnu)
6900
LD="${LD-ld} -m elf_i386_fbsd"
6903
LD="${LD-ld} -m elf_i386"
6905
ppc64-*linux*|powerpc64-*linux*)
6906
LD="${LD-ld} -m elf32ppclinux"
6909
LD="${LD-ld} -m elf_s390"
6912
LD="${LD-ld} -m elf32_sparc"
6918
x86_64-*kfreebsd*-gnu)
6919
LD="${LD-ld} -m elf_x86_64_fbsd"
6922
LD="${LD-ld} -m elf_x86_64"
6924
ppc*-*linux*|powerpc*-*linux*)
6925
LD="${LD-ld} -m elf64ppc"
6927
s390*-*linux*|s390*-*tpf*)
6928
LD="${LD-ld} -m elf64_s390"
6931
LD="${LD-ld} -m elf64_sparc"
6941
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6942
SAVE_CFLAGS="$CFLAGS"
6943
CFLAGS="$CFLAGS -belf"
6944
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6945
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6946
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6947
$as_echo_n "(cached) " >&6
6950
ac_cpp='$CPP $CPPFLAGS'
6951
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6952
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6953
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6955
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956
/* end confdefs.h. */
6966
if ac_fn_c_try_link "$LINENO"; then :
6967
lt_cv_cc_needs_belf=yes
6969
lt_cv_cc_needs_belf=no
6971
rm -f core conftest.err conftest.$ac_objext \
6972
conftest$ac_exeext conftest.$ac_ext
6974
ac_cpp='$CPP $CPPFLAGS'
6975
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6976
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6977
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6981
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6982
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6983
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6984
CFLAGS="$SAVE_CFLAGS"
6988
# Find out which ABI we are using.
6989
echo 'int i;' > conftest.$ac_ext
6990
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6991
(eval $ac_compile) 2>&5
6993
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6994
test $ac_status = 0; }; then
6995
case `/usr/bin/file conftest.o` in
6997
case $lt_cv_prog_gnu_ld in
6998
yes*) LD="${LD-ld} -m elf64_sparc" ;;
7000
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7012
need_locks="$enable_libtool_lock"
7016
rhapsody* | darwin*)
7017
if test -n "$ac_tool_prefix"; then
7018
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7019
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021
$as_echo_n "checking for $ac_word... " >&6; }
7022
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7023
$as_echo_n "(cached) " >&6
7025
if test -n "$DSYMUTIL"; then
7026
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7028
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032
test -z "$as_dir" && as_dir=.
7033
for ac_exec_ext in '' $ac_executable_extensions; do
7034
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7035
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7036
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7046
if test -n "$DSYMUTIL"; then
7047
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7048
$as_echo "$DSYMUTIL" >&6; }
7050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051
$as_echo "no" >&6; }
7056
if test -z "$ac_cv_prog_DSYMUTIL"; then
7057
ac_ct_DSYMUTIL=$DSYMUTIL
7058
# Extract the first word of "dsymutil", so it can be a program name with args.
7059
set dummy dsymutil; ac_word=$2
7060
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061
$as_echo_n "checking for $ac_word... " >&6; }
7062
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7063
$as_echo_n "(cached) " >&6
7065
if test -n "$ac_ct_DSYMUTIL"; then
7066
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072
test -z "$as_dir" && as_dir=.
7073
for ac_exec_ext in '' $ac_executable_extensions; do
7074
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7076
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7086
if test -n "$ac_ct_DSYMUTIL"; then
7087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7088
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7090
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091
$as_echo "no" >&6; }
7094
if test "x$ac_ct_DSYMUTIL" = x; then
7097
case $cross_compiling:$ac_tool_warned in
7099
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7100
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7101
ac_tool_warned=yes ;;
7103
DSYMUTIL=$ac_ct_DSYMUTIL
7106
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7109
if test -n "$ac_tool_prefix"; then
7110
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7111
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113
$as_echo_n "checking for $ac_word... " >&6; }
7114
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7115
$as_echo_n "(cached) " >&6
7117
if test -n "$NMEDIT"; then
7118
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124
test -z "$as_dir" && as_dir=.
7125
for ac_exec_ext in '' $ac_executable_extensions; do
7126
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7127
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7128
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137
NMEDIT=$ac_cv_prog_NMEDIT
7138
if test -n "$NMEDIT"; then
7139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7140
$as_echo "$NMEDIT" >&6; }
7142
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143
$as_echo "no" >&6; }
7148
if test -z "$ac_cv_prog_NMEDIT"; then
7149
ac_ct_NMEDIT=$NMEDIT
7150
# Extract the first word of "nmedit", so it can be a program name with args.
7151
set dummy nmedit; ac_word=$2
7152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153
$as_echo_n "checking for $ac_word... " >&6; }
7154
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7155
$as_echo_n "(cached) " >&6
7157
if test -n "$ac_ct_NMEDIT"; then
7158
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164
test -z "$as_dir" && as_dir=.
7165
for ac_exec_ext in '' $ac_executable_extensions; do
7166
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7168
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7178
if test -n "$ac_ct_NMEDIT"; then
7179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7180
$as_echo "$ac_ct_NMEDIT" >&6; }
7182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183
$as_echo "no" >&6; }
7186
if test "x$ac_ct_NMEDIT" = x; then
7189
case $cross_compiling:$ac_tool_warned in
7191
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193
ac_tool_warned=yes ;;
7195
NMEDIT=$ac_ct_NMEDIT
7198
NMEDIT="$ac_cv_prog_NMEDIT"
7201
if test -n "$ac_tool_prefix"; then
7202
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7203
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205
$as_echo_n "checking for $ac_word... " >&6; }
7206
if test "${ac_cv_prog_LIPO+set}" = set; then :
7207
$as_echo_n "(cached) " >&6
7209
if test -n "$LIPO"; then
7210
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216
test -z "$as_dir" && as_dir=.
7217
for ac_exec_ext in '' $ac_executable_extensions; do
7218
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7220
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229
LIPO=$ac_cv_prog_LIPO
7230
if test -n "$LIPO"; then
7231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7232
$as_echo "$LIPO" >&6; }
7234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235
$as_echo "no" >&6; }
7240
if test -z "$ac_cv_prog_LIPO"; then
7242
# Extract the first word of "lipo", so it can be a program name with args.
7243
set dummy lipo; ac_word=$2
7244
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245
$as_echo_n "checking for $ac_word... " >&6; }
7246
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7247
$as_echo_n "(cached) " >&6
7249
if test -n "$ac_ct_LIPO"; then
7250
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256
test -z "$as_dir" && as_dir=.
7257
for ac_exec_ext in '' $ac_executable_extensions; do
7258
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259
ac_cv_prog_ac_ct_LIPO="lipo"
7260
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7270
if test -n "$ac_ct_LIPO"; then
7271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7272
$as_echo "$ac_ct_LIPO" >&6; }
7274
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275
$as_echo "no" >&6; }
7278
if test "x$ac_ct_LIPO" = x; then
7281
case $cross_compiling:$ac_tool_warned in
7283
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285
ac_tool_warned=yes ;;
7290
LIPO="$ac_cv_prog_LIPO"
7293
if test -n "$ac_tool_prefix"; then
7294
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7295
set dummy ${ac_tool_prefix}otool; ac_word=$2
7296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297
$as_echo_n "checking for $ac_word... " >&6; }
7298
if test "${ac_cv_prog_OTOOL+set}" = set; then :
7299
$as_echo_n "(cached) " >&6
7301
if test -n "$OTOOL"; then
7302
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7304
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308
test -z "$as_dir" && as_dir=.
7309
for ac_exec_ext in '' $ac_executable_extensions; do
7310
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7311
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7312
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321
OTOOL=$ac_cv_prog_OTOOL
7322
if test -n "$OTOOL"; then
7323
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7324
$as_echo "$OTOOL" >&6; }
7326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327
$as_echo "no" >&6; }
7332
if test -z "$ac_cv_prog_OTOOL"; then
7334
# Extract the first word of "otool", so it can be a program name with args.
7335
set dummy otool; ac_word=$2
7336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337
$as_echo_n "checking for $ac_word... " >&6; }
7338
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7339
$as_echo_n "(cached) " >&6
7341
if test -n "$ac_ct_OTOOL"; then
7342
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7344
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348
test -z "$as_dir" && as_dir=.
7349
for ac_exec_ext in '' $ac_executable_extensions; do
7350
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351
ac_cv_prog_ac_ct_OTOOL="otool"
7352
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7362
if test -n "$ac_ct_OTOOL"; then
7363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7364
$as_echo "$ac_ct_OTOOL" >&6; }
7366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367
$as_echo "no" >&6; }
7370
if test "x$ac_ct_OTOOL" = x; then
7373
case $cross_compiling:$ac_tool_warned in
7375
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377
ac_tool_warned=yes ;;
7382
OTOOL="$ac_cv_prog_OTOOL"
7385
if test -n "$ac_tool_prefix"; then
7386
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7387
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389
$as_echo_n "checking for $ac_word... " >&6; }
7390
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7391
$as_echo_n "(cached) " >&6
7393
if test -n "$OTOOL64"; then
7394
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7396
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400
test -z "$as_dir" && as_dir=.
7401
for ac_exec_ext in '' $ac_executable_extensions; do
7402
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7403
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7404
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413
OTOOL64=$ac_cv_prog_OTOOL64
7414
if test -n "$OTOOL64"; then
7415
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7416
$as_echo "$OTOOL64" >&6; }
7418
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419
$as_echo "no" >&6; }
7424
if test -z "$ac_cv_prog_OTOOL64"; then
7425
ac_ct_OTOOL64=$OTOOL64
7426
# Extract the first word of "otool64", so it can be a program name with args.
7427
set dummy otool64; ac_word=$2
7428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429
$as_echo_n "checking for $ac_word... " >&6; }
7430
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7431
$as_echo_n "(cached) " >&6
7433
if test -n "$ac_ct_OTOOL64"; then
7434
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7436
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440
test -z "$as_dir" && as_dir=.
7441
for ac_exec_ext in '' $ac_executable_extensions; do
7442
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443
ac_cv_prog_ac_ct_OTOOL64="otool64"
7444
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7454
if test -n "$ac_ct_OTOOL64"; then
7455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7456
$as_echo "$ac_ct_OTOOL64" >&6; }
7458
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459
$as_echo "no" >&6; }
7462
if test "x$ac_ct_OTOOL64" = x; then
7465
case $cross_compiling:$ac_tool_warned in
7467
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469
ac_tool_warned=yes ;;
7471
OTOOL64=$ac_ct_OTOOL64
7474
OTOOL64="$ac_cv_prog_OTOOL64"
7503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7504
$as_echo_n "checking for -single_module linker flag... " >&6; }
7505
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7506
$as_echo_n "(cached) " >&6
7508
lt_cv_apple_cc_single_mod=no
7509
if test -z "${LT_MULTI_MODULE}"; then
7510
# By default we will add the -single_module flag. You can override
7511
# by either setting the environment variable LT_MULTI_MODULE
7512
# non-empty at configure time, or by adding -multi_module to the
7514
rm -rf libconftest.dylib*
7515
echo "int foo(void){return 1;}" > conftest.c
7516
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7517
-dynamiclib -Wl,-single_module conftest.c" >&5
7518
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7519
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7521
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7522
lt_cv_apple_cc_single_mod=yes
7524
cat conftest.err >&5
7526
rm -rf libconftest.dylib*
7530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7531
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7533
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7534
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7535
$as_echo_n "(cached) " >&6
7537
lt_cv_ld_exported_symbols_list=no
7538
save_LDFLAGS=$LDFLAGS
7539
echo "_main" > conftest.sym
7540
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7541
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542
/* end confdefs.h. */
7552
if ac_fn_c_try_link "$LINENO"; then :
7553
lt_cv_ld_exported_symbols_list=yes
7555
lt_cv_ld_exported_symbols_list=no
7557
rm -f core conftest.err conftest.$ac_objext \
7558
conftest$ac_exeext conftest.$ac_ext
7559
LDFLAGS="$save_LDFLAGS"
7562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7563
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7565
rhapsody* | darwin1.[012])
7566
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7568
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7569
darwin*) # darwin 5.x on
7570
# if running on 10.5 or later, the deployment target defaults
7571
# to the OS version, if on x86, and 10.4, the deployment
7572
# target defaults to 10.4. Don't you love it?
7573
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7574
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7575
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7577
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7579
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7583
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7584
_lt_dar_single_mod='$single_module'
7586
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7587
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7589
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7591
if test "$DSYMUTIL" != ":"; then
7592
_lt_dsymutil='~$DSYMUTIL $lib || :'
7599
for ac_header in dlfcn.h
7601
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7603
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7604
cat >>confdefs.h <<_ACEOF
7605
#define HAVE_DLFCN_H 1
7615
ac_cpp='$CXXCPP $CPPFLAGS'
7616
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7617
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7618
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7619
if test -z "$CXX"; then
7620
if test -n "$CCC"; then
7623
if test -n "$ac_tool_prefix"; then
7624
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7626
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7627
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629
$as_echo_n "checking for $ac_word... " >&6; }
7630
if test "${ac_cv_prog_CXX+set}" = set; then :
7631
$as_echo_n "(cached) " >&6
7633
if test -n "$CXX"; then
7634
ac_cv_prog_CXX="$CXX" # Let the user override the test.
7636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640
test -z "$as_dir" && as_dir=.
7641
for ac_exec_ext in '' $ac_executable_extensions; do
7642
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7643
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7644
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654
if test -n "$CXX"; then
7655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7656
$as_echo "$CXX" >&6; }
7658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659
$as_echo "no" >&6; }
7663
test -n "$CXX" && break
7666
if test -z "$CXX"; then
7668
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7670
# Extract the first word of "$ac_prog", so it can be a program name with args.
7671
set dummy $ac_prog; ac_word=$2
7672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673
$as_echo_n "checking for $ac_word... " >&6; }
7674
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7675
$as_echo_n "(cached) " >&6
7677
if test -n "$ac_ct_CXX"; then
7678
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7680
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684
test -z "$as_dir" && as_dir=.
7685
for ac_exec_ext in '' $ac_executable_extensions; do
7686
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7687
ac_cv_prog_ac_ct_CXX="$ac_prog"
7688
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7698
if test -n "$ac_ct_CXX"; then
7699
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7700
$as_echo "$ac_ct_CXX" >&6; }
7702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703
$as_echo "no" >&6; }
7707
test -n "$ac_ct_CXX" && break
7710
if test "x$ac_ct_CXX" = x; then
7713
case $cross_compiling:$ac_tool_warned in
7715
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717
ac_tool_warned=yes ;;
7725
# Provide some information about the compiler.
7726
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7729
for ac_option in --version -v -V -qversion; do
7730
{ { ac_try="$ac_compiler $ac_option >&5"
7732
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733
*) ac_try_echo=$ac_try;;
7735
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7736
$as_echo "$ac_try_echo"; } >&5
7737
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
7739
if test -s conftest.err; then
7741
... rest of stderr output deleted ...
7742
10q' conftest.err >conftest.er1
7743
cat conftest.er1 >&5
7745
rm -f conftest.er1 conftest.err
7746
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7747
test $ac_status = 0; }
7750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7751
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7752
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7753
$as_echo_n "(cached) " >&6
7755
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756
/* end confdefs.h. */
7769
if ac_fn_cxx_try_compile "$LINENO"; then :
7774
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7775
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7779
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7780
if test $ac_compiler_gnu = yes; then
7785
ac_test_CXXFLAGS=${CXXFLAGS+set}
7786
ac_save_CXXFLAGS=$CXXFLAGS
7787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7788
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7789
if test "${ac_cv_prog_cxx_g+set}" = set; then :
7790
$as_echo_n "(cached) " >&6
7792
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7793
ac_cxx_werror_flag=yes
7796
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797
/* end confdefs.h. */
7807
if ac_fn_cxx_try_compile "$LINENO"; then :
7808
ac_cv_prog_cxx_g=yes
7811
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812
/* end confdefs.h. */
7822
if ac_fn_cxx_try_compile "$LINENO"; then :
7825
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7827
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828
/* end confdefs.h. */
7838
if ac_fn_cxx_try_compile "$LINENO"; then :
7839
ac_cv_prog_cxx_g=yes
7841
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7845
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7849
$as_echo "$ac_cv_prog_cxx_g" >&6; }
7850
if test "$ac_test_CXXFLAGS" = set; then
7851
CXXFLAGS=$ac_save_CXXFLAGS
7852
elif test $ac_cv_prog_cxx_g = yes; then
7853
if test "$GXX" = yes; then
7859
if test "$GXX" = yes; then
7866
ac_cpp='$CPP $CPPFLAGS'
7867
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7868
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7869
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7871
depcc="$CXX" am_compiler_list=
7873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7874
$as_echo_n "checking dependency style of $depcc... " >&6; }
7875
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7876
$as_echo_n "(cached) " >&6
7878
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7879
# We make a subdir and do the tests there. Otherwise we can end up
7880
# making bogus files that we don't know about and never remove. For
7881
# instance it was reported that on HP-UX the gcc test will end up
7882
# making a dummy file named `D' -- because `-MD' means `put the output
7885
# Copy depcomp to subdir because otherwise we won't find it if we're
7886
# using a relative directory.
7887
cp "$am_depcomp" conftest.dir
7889
# We will build objects and dependencies in a subdirectory because
7890
# it helps to detect inapplicable dependency modes. For instance
7891
# both Tru64's cc and ICC support -MD to output dependencies as a
7892
# side effect of compilation, but ICC will put the dependencies in
7893
# the current directory while Tru64 will put them in the object
7897
am_cv_CXX_dependencies_compiler_type=none
7898
if test "$am_compiler_list" = ""; then
7899
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7902
case " $depcc " in #(
7903
*\ -arch\ *\ -arch\ *) am__universal=true ;;
7906
for depmode in $am_compiler_list; do
7907
# Setup a source with many dependencies, because some compilers
7908
# like to wrap large dependency lists on column 80 (with \), and
7909
# we should not choose a depcomp mode which is confused by this.
7911
# We need to recreate these files for each test, as the compiler may
7912
# overwrite some of them when testing with obscure command lines.
7913
# This happens at least with the AIX C compiler.
7915
for i in 1 2 3 4 5 6; do
7916
echo '#include "conftst'$i'.h"' >> sub/conftest.c
7917
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7918
# Solaris 8's {/usr,}/bin/sh.
7919
touch sub/conftst$i.h
7921
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7923
# We check with `-c' and `-o' for the sake of the "dashmstdout"
7924
# mode. It turns out that the SunPro C++ compiler does not properly
7925
# handle `-M -o', and we need to detect this. Also, some Intel
7926
# versions had trouble with output in subdirs
7927
am__obj=sub/conftest.${OBJEXT-o}
7928
am__minus_obj="-o $am__obj"
7931
# This depmode causes a compiler race in universal mode.
7932
test "$am__universal" = false || continue
7935
# after this tag, mechanisms are not by side-effect, so they'll
7936
# only be used when explicitly requested
7937
if test "x$enable_dependency_tracking" = xyes; then
7943
msvisualcpp | msvcmsys)
7944
# This compiler won't grok `-c -o', but also, the minuso test has
7945
# not run yet. These depmodes are late enough in the game, and
7946
# so weak that their functioning should not be impacted.
7947
am__obj=conftest.${OBJEXT-o}
7952
if depmode=$depmode \
7953
source=sub/conftest.c object=$am__obj \
7954
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7955
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7956
>/dev/null 2>conftest.err &&
7957
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7958
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7959
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7960
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7961
# icc doesn't choke on unknown options, it will just issue warnings
7962
# or remarks (even with -Werror). So we grep stderr for any message
7963
# that says an option was ignored or not supported.
7964
# When given -MP, icc 7.0 and 7.1 complain thusly:
7965
# icc: Command line warning: ignoring option '-M'; no argument required
7966
# The diagnosis changed in icc 8.0:
7967
# icc: Command line remark: option '-MP' not supported
7968
if (grep 'ignoring option' conftest.err ||
7969
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7970
am_cv_CXX_dependencies_compiler_type=$depmode
7979
am_cv_CXX_dependencies_compiler_type=none
7983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7984
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7985
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7988
test "x$enable_dependency_tracking" != xno \
7989
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7990
am__fastdepCXX_TRUE=
7991
am__fastdepCXX_FALSE='#'
7993
am__fastdepCXX_TRUE='#'
7994
am__fastdepCXX_FALSE=
7998
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7999
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8000
(test "X$CXX" != "Xg++"))) ; then
8002
ac_cpp='$CXXCPP $CPPFLAGS'
8003
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8004
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8005
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8007
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8008
if test -z "$CXXCPP"; then
8009
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8010
$as_echo_n "(cached) " >&6
8012
# Double quotes because CXXCPP needs to be expanded
8013
for CXXCPP in "$CXX -E" "/lib/cpp"
8016
for ac_cxx_preproc_warn_flag in '' yes
8018
# Use a header file that comes with gcc, so configuring glibc
8019
# with a fresh cross-compiler works.
8020
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8021
# <limits.h> exists even on freestanding compilers.
8022
# On the NeXT, cc -E runs the code through the compiler's parser,
8023
# not just through cpp. "Syntax error" is here to catch this case.
8024
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025
/* end confdefs.h. */
8027
# include <limits.h>
8029
# include <assert.h>
8033
if ac_fn_cxx_try_cpp "$LINENO"; then :
8036
# Broken: fails on valid input.
8039
rm -f conftest.err conftest.i conftest.$ac_ext
8041
# OK, works on sane cases. Now check whether nonexistent headers
8042
# can be detected and how.
8043
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044
/* end confdefs.h. */
8045
#include <ac_nonexistent.h>
8047
if ac_fn_cxx_try_cpp "$LINENO"; then :
8048
# Broken: success on invalid input.
8051
# Passes both tests.
8055
rm -f conftest.err conftest.i conftest.$ac_ext
8058
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8059
rm -f conftest.i conftest.err conftest.$ac_ext
8060
if $ac_preproc_ok; then :
8065
ac_cv_prog_CXXCPP=$CXXCPP
8068
CXXCPP=$ac_cv_prog_CXXCPP
8070
ac_cv_prog_CXXCPP=$CXXCPP
8072
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8073
$as_echo "$CXXCPP" >&6; }
8075
for ac_cxx_preproc_warn_flag in '' yes
8077
# Use a header file that comes with gcc, so configuring glibc
8078
# with a fresh cross-compiler works.
8079
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8080
# <limits.h> exists even on freestanding compilers.
8081
# On the NeXT, cc -E runs the code through the compiler's parser,
8082
# not just through cpp. "Syntax error" is here to catch this case.
8083
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084
/* end confdefs.h. */
8086
# include <limits.h>
8088
# include <assert.h>
8092
if ac_fn_cxx_try_cpp "$LINENO"; then :
8095
# Broken: fails on valid input.
8098
rm -f conftest.err conftest.i conftest.$ac_ext
8100
# OK, works on sane cases. Now check whether nonexistent headers
8101
# can be detected and how.
8102
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103
/* end confdefs.h. */
8104
#include <ac_nonexistent.h>
8106
if ac_fn_cxx_try_cpp "$LINENO"; then :
8107
# Broken: success on invalid input.
8110
# Passes both tests.
8114
rm -f conftest.err conftest.i conftest.$ac_ext
8117
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8118
rm -f conftest.i conftest.err conftest.$ac_ext
8119
if $ac_preproc_ok; then :
8122
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8123
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8124
_lt_caught_CXX_error=yes; }
8128
ac_cpp='$CPP $CPPFLAGS'
8129
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8130
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8131
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8134
_lt_caught_CXX_error=yes
8142
# Check whether --enable-static was given.
8143
if test "${enable_static+set}" = set; then :
8144
enableval=$enable_static; p=${PACKAGE-default}
8146
yes) enable_static=yes ;;
8147
no) enable_static=no ;;
8150
# Look at the argument we got. We use all the common list separators.
8151
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8152
for pkg in $enableval; do
8154
if test "X$pkg" = "X$p"; then
8180
# Check whether --enable-shared was given.
8181
if test "${enable_shared+set}" = set; then :
8182
enableval=$enable_shared; p=${PACKAGE-default}
8184
yes) enable_shared=yes ;;
8185
no) enable_shared=no ;;
8188
# Look at the argument we got. We use all the common list separators.
8189
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8190
for pkg in $enableval; do
8192
if test "X$pkg" = "X$p"; then
8213
# Check whether --with-pic was given.
8214
if test "${with_pic+set}" = set; then :
8215
withval=$with_pic; pic_mode="$withval"
8221
test -z "$pic_mode" && pic_mode=default
8229
# Check whether --enable-fast-install was given.
8230
if test "${enable_fast_install+set}" = set; then :
8231
enableval=$enable_fast_install; p=${PACKAGE-default}
8233
yes) enable_fast_install=yes ;;
8234
no) enable_fast_install=no ;;
8236
enable_fast_install=no
8237
# Look at the argument we got. We use all the common list separators.
8238
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8239
for pkg in $enableval; do
8241
if test "X$pkg" = "X$p"; then
8242
enable_fast_install=yes
8249
enable_fast_install=yes
8262
# This can be used to rebuild libtool when needed
8263
LIBTOOL_DEPS="$ltmain"
8265
# Always use our own libtool.
8266
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8292
test -z "$LN_S" && LN_S="ln -s"
8307
if test -n "${ZSH_VERSION+set}" ; then
8308
setopt NO_GLOB_SUBST
8311
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8312
$as_echo_n "checking for objdir... " >&6; }
8313
if test "${lt_cv_objdir+set}" = set; then :
8314
$as_echo_n "(cached) " >&6
8316
rm -f .libs 2>/dev/null
8317
mkdir .libs 2>/dev/null
8318
if test -d .libs; then
8321
# MS-DOS does not allow filenames that begin with a dot.
8324
rmdir .libs 2>/dev/null
8326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8327
$as_echo "$lt_cv_objdir" >&6; }
8328
objdir=$lt_cv_objdir
8334
cat >>confdefs.h <<_ACEOF
8335
#define LT_OBJDIR "$lt_cv_objdir/"
8356
# AIX sometimes has problems with the GCC collect2 program. For some
8357
# reason, if we set the COLLECT_NAMES environment variable, the problems
8358
# vanish in a puff of smoke.
8359
if test "X${COLLECT_NAMES+set}" != Xset; then
8361
export COLLECT_NAMES
8366
# Sed substitution that helps us do robust quoting. It backslashifies
8367
# metacharacters that are still active within double-quoted strings.
8368
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8370
# Same as above, but do not quote variable references.
8371
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8373
# Sed substitution to delay expansion of an escaped shell variable in a
8374
# double_quote_subst'ed string.
8375
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8377
# Sed substitution to delay expansion of an escaped single quote.
8378
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8380
# Sed substitution to avoid accidental globbing in evaled expressions
8381
no_glob_subst='s/\*/\\\*/g'
8385
can_build_shared=yes
8387
# All known linkers require a `.a' archive for static linking (except MSVC,
8388
# which needs '.lib').
8391
with_gnu_ld="$lt_cv_prog_gnu_ld"
8394
old_CFLAGS="$CFLAGS"
8396
# Set sane defaults for various variables
8397
test -z "$CC" && CC=cc
8398
test -z "$LTCC" && LTCC=$CC
8399
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8400
test -z "$LD" && LD=ld
8401
test -z "$ac_objext" && ac_objext=o
8403
for cc_temp in $compiler""; do
8405
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8406
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8411
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8414
# Only perform the check for file, if the check method requires it
8415
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8416
case $deplibs_check_method in
8418
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8420
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8421
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8422
$as_echo_n "(cached) " >&6
8426
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8429
lt_save_MAGIC_CMD="$MAGIC_CMD"
8430
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8431
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8432
for ac_dir in $ac_dummy; do
8434
test -z "$ac_dir" && ac_dir=.
8435
if test -f $ac_dir/${ac_tool_prefix}file; then
8436
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8437
if test -n "$file_magic_test_file"; then
8438
case $deplibs_check_method in
8440
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8441
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8442
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8443
$EGREP "$file_magic_regex" > /dev/null; then
8448
*** Warning: the command libtool uses to detect shared libraries,
8449
*** $file_magic_cmd, produces output that libtool cannot recognize.
8450
*** The result is that libtool may fail to recognize shared libraries
8451
*** as such. This will affect the creation of libtool libraries that
8452
*** depend on shared libraries, but programs linked with such libtool
8453
*** libraries will work regardless of this problem. Nevertheless, you
8454
*** may want to report the problem to your system manager and/or to
8455
*** bug-libtool@gnu.org
8465
MAGIC_CMD="$lt_save_MAGIC_CMD"
8470
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8471
if test -n "$MAGIC_CMD"; then
8472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8473
$as_echo "$MAGIC_CMD" >&6; }
8475
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476
$as_echo "no" >&6; }
8483
if test -z "$lt_cv_path_MAGIC_CMD"; then
8484
if test -n "$ac_tool_prefix"; then
8485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8486
$as_echo_n "checking for file... " >&6; }
8487
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8488
$as_echo_n "(cached) " >&6
8492
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8495
lt_save_MAGIC_CMD="$MAGIC_CMD"
8496
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8497
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8498
for ac_dir in $ac_dummy; do
8500
test -z "$ac_dir" && ac_dir=.
8501
if test -f $ac_dir/file; then
8502
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8503
if test -n "$file_magic_test_file"; then
8504
case $deplibs_check_method in
8506
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8507
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8508
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8509
$EGREP "$file_magic_regex" > /dev/null; then
8514
*** Warning: the command libtool uses to detect shared libraries,
8515
*** $file_magic_cmd, produces output that libtool cannot recognize.
8516
*** The result is that libtool may fail to recognize shared libraries
8517
*** as such. This will affect the creation of libtool libraries that
8518
*** depend on shared libraries, but programs linked with such libtool
8519
*** libraries will work regardless of this problem. Nevertheless, you
8520
*** may want to report the problem to your system manager and/or to
8521
*** bug-libtool@gnu.org
8531
MAGIC_CMD="$lt_save_MAGIC_CMD"
8536
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8537
if test -n "$MAGIC_CMD"; then
8538
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8539
$as_echo "$MAGIC_CMD" >&6; }
8541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542
$as_echo "no" >&6; }
8555
# Use C for the default configuration in the libtool script
8559
ac_cpp='$CPP $CPPFLAGS'
8560
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8561
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8562
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8565
# Source file extension for C test sources.
8568
# Object file extension for compiled C test sources.
8572
# Code to be used in simple compile tests
8573
lt_simple_compile_test_code="int some_variable = 0;"
8575
# Code to be used in simple link tests
8576
lt_simple_link_test_code='int main(){return(0);}'
8584
# If no C compiler was specified, use CC.
8587
# If no C compiler flags were specified, use CFLAGS.
8588
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8590
# Allow CC to be a program name with arguments.
8593
# Save the default compiler, since it gets overwritten when the other
8594
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8595
compiler_DEFAULT=$CC
8597
# save warnings/boilerplate of simple test code
8598
ac_outfile=conftest.$ac_objext
8599
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8600
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8601
_lt_compiler_boilerplate=`cat conftest.err`
8604
ac_outfile=conftest.$ac_objext
8605
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8606
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8607
_lt_linker_boilerplate=`cat conftest.err`
8612
## There is no encapsulation within the following macros, do not change
8613
## the running order or otherwise move them around unless you know exactly
8614
## what you are doing...
8615
if test -n "$compiler"; then
8617
lt_prog_compiler_no_builtin_flag=
8619
if test "$GCC" = yes; then
8620
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8623
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8624
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8625
$as_echo_n "(cached) " >&6
8627
lt_cv_prog_compiler_rtti_exceptions=no
8628
ac_outfile=conftest.$ac_objext
8629
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8630
lt_compiler_flag="-fno-rtti -fno-exceptions"
8631
# Insert the option either (1) after the last *FLAGS variable, or
8632
# (2) before a word containing "conftest.", or (3) at the end.
8633
# Note that $ac_compile itself does not contain backslashes and begins
8634
# with a dollar sign (not a hyphen), so the echo should work correctly.
8635
# The option is referenced via a variable to avoid confusing sed.
8636
lt_compile=`echo "$ac_compile" | $SED \
8637
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8638
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8639
-e 's:$: $lt_compiler_flag:'`
8640
(eval echo "\"\$as_me:8640: $lt_compile\"" >&5)
8641
(eval "$lt_compile" 2>conftest.err)
8643
cat conftest.err >&5
8644
echo "$as_me:8644: \$? = $ac_status" >&5
8645
if (exit $ac_status) && test -s "$ac_outfile"; then
8646
# The compiler can only warn and ignore the option if not recognized
8647
# So say no if there are warnings other than the usual output.
8648
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8649
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8650
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8651
lt_cv_prog_compiler_rtti_exceptions=yes
8657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8658
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8660
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8661
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8673
lt_prog_compiler_wl=
8674
lt_prog_compiler_pic=
8675
lt_prog_compiler_static=
8677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8678
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8680
if test "$GCC" = yes; then
8681
lt_prog_compiler_wl='-Wl,'
8682
lt_prog_compiler_static='-static'
8686
# All AIX code is PIC.
8687
if test "$host_cpu" = ia64; then
8688
# AIX 5 now supports IA64 processor
8689
lt_prog_compiler_static='-Bstatic'
8696
# see comment about AmigaOS4 .so support
8697
lt_prog_compiler_pic='-fPIC'
8700
# FIXME: we need at least 68020 code to build shared libraries, but
8701
# adding the `-m68020' flag to GCC prevents building anything better,
8703
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8708
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8709
# PIC is the default for these OSes.
8712
mingw* | cygwin* | pw32* | os2* | cegcc*)
8713
# This hack is so that the source file can tell whether it is being
8714
# built for inclusion in a dll (and should export symbols for example).
8715
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8716
# (--disable-auto-import) libraries
8717
lt_prog_compiler_pic='-DDLL_EXPORT'
8720
darwin* | rhapsody*)
8721
# PIC is the default on this platform
8722
# Common symbols not allowed in MH_DYLIB files
8723
lt_prog_compiler_pic='-fno-common'
8727
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8728
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8729
# sets the default TLS model and affects inlining.
8735
lt_prog_compiler_pic='-fPIC'
8741
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8742
# Instead, we relocate shared libraries at runtime.
8746
# Just because we use GCC doesn't mean we suddenly get shared libraries
8747
# on systems that don't support them.
8748
lt_prog_compiler_can_build_shared=no
8753
# QNX uses GNU C++, but need to define -shared option too, otherwise
8755
lt_prog_compiler_pic='-fPIC -shared'
8759
if test -d /usr/nec; then
8760
lt_prog_compiler_pic=-Kconform_pic
8765
lt_prog_compiler_pic='-fPIC'
8769
# PORTME Check for flag to pass linker flags through the system compiler.
8772
lt_prog_compiler_wl='-Wl,'
8773
if test "$host_cpu" = ia64; then
8774
# AIX 5 now supports IA64 processor
8775
lt_prog_compiler_static='-Bstatic'
8777
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8781
mingw* | cygwin* | pw32* | os2* | cegcc*)
8782
# This hack is so that the source file can tell whether it is being
8783
# built for inclusion in a dll (and should export symbols for example).
8784
lt_prog_compiler_pic='-DDLL_EXPORT'
8787
hpux9* | hpux10* | hpux11*)
8788
lt_prog_compiler_wl='-Wl,'
8789
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8796
lt_prog_compiler_pic='+Z'
8799
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8800
lt_prog_compiler_static='${wl}-a ${wl}archive'
8803
irix5* | irix6* | nonstopux*)
8804
lt_prog_compiler_wl='-Wl,'
8805
# PIC (with -KPIC) is the default.
8806
lt_prog_compiler_static='-non_shared'
8809
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8810
case $cc_basename in
8811
# old Intel for x86_64 which still supported -KPIC.
8813
lt_prog_compiler_wl='-Wl,'
8814
lt_prog_compiler_pic='-KPIC'
8815
lt_prog_compiler_static='-static'
8817
# icc used to be incompatible with GCC.
8818
# ICC 10 doesn't accept -KPIC any more.
8820
lt_prog_compiler_wl='-Wl,'
8821
lt_prog_compiler_pic='-fPIC'
8822
lt_prog_compiler_static='-static'
8824
# Lahey Fortran 8.1.
8826
lt_prog_compiler_wl='-Wl,'
8827
lt_prog_compiler_pic='--shared'
8828
lt_prog_compiler_static='--static'
8830
pgcc* | pgf77* | pgf90* | pgf95*)
8831
# Portland Group compilers (*not* the Pentium gcc compiler,
8832
# which looks to be a dead project)
8833
lt_prog_compiler_wl='-Wl,'
8834
lt_prog_compiler_pic='-fpic'
8835
lt_prog_compiler_static='-Bstatic'
8838
lt_prog_compiler_wl='-Wl,'
8839
# All Alpha code is PIC.
8840
lt_prog_compiler_static='-non_shared'
8843
# IBM XL C 8.0/Fortran 10.1 on PPC
8844
lt_prog_compiler_wl='-Wl,'
8845
lt_prog_compiler_pic='-qpic'
8846
lt_prog_compiler_static='-qstaticlink'
8849
case `$CC -V 2>&1 | sed 5q` in
8852
lt_prog_compiler_pic='-KPIC'
8853
lt_prog_compiler_static='-Bstatic'
8854
lt_prog_compiler_wl='-Wl,'
8857
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8858
lt_prog_compiler_pic='-KPIC'
8859
lt_prog_compiler_static='-Bstatic'
8860
lt_prog_compiler_wl=''
8868
lt_prog_compiler_pic='-KPIC'
8869
lt_prog_compiler_static='-Bstatic'
8873
# QNX uses GNU C++, but need to define -shared option too, otherwise
8875
lt_prog_compiler_pic='-fPIC -shared'
8878
osf3* | osf4* | osf5*)
8879
lt_prog_compiler_wl='-Wl,'
8880
# All OSF/1 code is PIC.
8881
lt_prog_compiler_static='-non_shared'
8885
lt_prog_compiler_static='-non_shared'
8889
lt_prog_compiler_pic='-KPIC'
8890
lt_prog_compiler_static='-Bstatic'
8891
case $cc_basename in
8893
lt_prog_compiler_wl='-Qoption ld ';;
8895
lt_prog_compiler_wl='-Wl,';;
8900
lt_prog_compiler_wl='-Qoption ld '
8901
lt_prog_compiler_pic='-PIC'
8902
lt_prog_compiler_static='-Bstatic'
8905
sysv4 | sysv4.2uw2* | sysv4.3*)
8906
lt_prog_compiler_wl='-Wl,'
8907
lt_prog_compiler_pic='-KPIC'
8908
lt_prog_compiler_static='-Bstatic'
8912
if test -d /usr/nec ;then
8913
lt_prog_compiler_pic='-Kconform_pic'
8914
lt_prog_compiler_static='-Bstatic'
8918
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8919
lt_prog_compiler_wl='-Wl,'
8920
lt_prog_compiler_pic='-KPIC'
8921
lt_prog_compiler_static='-Bstatic'
8925
lt_prog_compiler_wl='-Wl,'
8926
lt_prog_compiler_can_build_shared=no
8930
lt_prog_compiler_pic='-pic'
8931
lt_prog_compiler_static='-Bstatic'
8935
lt_prog_compiler_can_build_shared=no
8941
# For platforms which do not support PIC, -DPIC is meaningless:
8943
lt_prog_compiler_pic=
8946
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8950
$as_echo "$lt_prog_compiler_pic" >&6; }
8958
# Check to make sure the PIC flag actually works.
8960
if test -n "$lt_prog_compiler_pic"; then
8961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8962
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8963
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8964
$as_echo_n "(cached) " >&6
8966
lt_cv_prog_compiler_pic_works=no
8967
ac_outfile=conftest.$ac_objext
8968
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8969
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8970
# Insert the option either (1) after the last *FLAGS variable, or
8971
# (2) before a word containing "conftest.", or (3) at the end.
8972
# Note that $ac_compile itself does not contain backslashes and begins
8973
# with a dollar sign (not a hyphen), so the echo should work correctly.
8974
# The option is referenced via a variable to avoid confusing sed.
8975
lt_compile=`echo "$ac_compile" | $SED \
8976
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8977
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8978
-e 's:$: $lt_compiler_flag:'`
8979
(eval echo "\"\$as_me:8979: $lt_compile\"" >&5)
8980
(eval "$lt_compile" 2>conftest.err)
8982
cat conftest.err >&5
8983
echo "$as_me:8983: \$? = $ac_status" >&5
8984
if (exit $ac_status) && test -s "$ac_outfile"; then
8985
# The compiler can only warn and ignore the option if not recognized
8986
# So say no if there are warnings other than the usual output.
8987
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8988
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8989
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8990
lt_cv_prog_compiler_pic_works=yes
8996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8997
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8999
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9000
case $lt_prog_compiler_pic in
9002
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9005
lt_prog_compiler_pic=
9006
lt_prog_compiler_can_build_shared=no
9017
# Check to make sure the static flag actually works.
9019
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9021
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9022
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9023
$as_echo_n "(cached) " >&6
9025
lt_cv_prog_compiler_static_works=no
9026
save_LDFLAGS="$LDFLAGS"
9027
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9028
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9029
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9030
# The linker can only warn and ignore the option if not recognized
9031
# So say no if there are warnings
9032
if test -s conftest.err; then
9033
# Append any errors to the config.log.
9034
cat conftest.err 1>&5
9035
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9036
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9037
if diff conftest.exp conftest.er2 >/dev/null; then
9038
lt_cv_prog_compiler_static_works=yes
9041
lt_cv_prog_compiler_static_works=yes
9045
LDFLAGS="$save_LDFLAGS"
9048
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9049
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9051
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9054
lt_prog_compiler_static=
9063
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9064
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9065
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9066
$as_echo_n "(cached) " >&6
9068
lt_cv_prog_compiler_c_o=no
9069
$RM -r conftest 2>/dev/null
9073
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9075
lt_compiler_flag="-o out/conftest2.$ac_objext"
9076
# Insert the option either (1) after the last *FLAGS variable, or
9077
# (2) before a word containing "conftest.", or (3) at the end.
9078
# Note that $ac_compile itself does not contain backslashes and begins
9079
# with a dollar sign (not a hyphen), so the echo should work correctly.
9080
lt_compile=`echo "$ac_compile" | $SED \
9081
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9082
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9083
-e 's:$: $lt_compiler_flag:'`
9084
(eval echo "\"\$as_me:9084: $lt_compile\"" >&5)
9085
(eval "$lt_compile" 2>out/conftest.err)
9087
cat out/conftest.err >&5
9088
echo "$as_me:9088: \$? = $ac_status" >&5
9089
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9091
# The compiler can only warn and ignore the option if not recognized
9092
# So say no if there are warnings
9093
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9094
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9095
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9096
lt_cv_prog_compiler_c_o=yes
9101
# SGI C++ compiler will create directory out/ii_files/ for
9102
# template instantiation
9103
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9104
$RM out/* && rmdir out
9110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9111
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9119
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9120
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9121
$as_echo_n "(cached) " >&6
9123
lt_cv_prog_compiler_c_o=no
9124
$RM -r conftest 2>/dev/null
9128
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9130
lt_compiler_flag="-o out/conftest2.$ac_objext"
9131
# Insert the option either (1) after the last *FLAGS variable, or
9132
# (2) before a word containing "conftest.", or (3) at the end.
9133
# Note that $ac_compile itself does not contain backslashes and begins
9134
# with a dollar sign (not a hyphen), so the echo should work correctly.
9135
lt_compile=`echo "$ac_compile" | $SED \
9136
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9137
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9138
-e 's:$: $lt_compiler_flag:'`
9139
(eval echo "\"\$as_me:9139: $lt_compile\"" >&5)
9140
(eval "$lt_compile" 2>out/conftest.err)
9142
cat out/conftest.err >&5
9143
echo "$as_me:9143: \$? = $ac_status" >&5
9144
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9146
# The compiler can only warn and ignore the option if not recognized
9147
# So say no if there are warnings
9148
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9149
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9150
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9151
lt_cv_prog_compiler_c_o=yes
9156
# SGI C++ compiler will create directory out/ii_files/ for
9157
# template instantiation
9158
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9159
$RM out/* && rmdir out
9165
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9166
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9171
hard_links="nottested"
9172
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9173
# do not overwrite the value of need_locks provided by the user
9174
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9175
$as_echo_n "checking if we can lock with hard links... " >&6; }
9178
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9180
ln conftest.a conftest.b 2>&5 || hard_links=no
9181
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9183
$as_echo "$hard_links" >&6; }
9184
if test "$hard_links" = no; then
9185
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9186
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9198
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9199
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9202
allow_undefined_flag=
9203
always_export_symbols=no
9205
archive_expsym_cmds=
9206
compiler_needs_object=no
9207
enable_shared_with_static_runtimes=no
9208
export_dynamic_flag_spec=
9209
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9210
hardcode_automatic=no
9212
hardcode_direct_absolute=no
9213
hardcode_libdir_flag_spec=
9214
hardcode_libdir_flag_spec_ld=
9215
hardcode_libdir_separator=
9217
hardcode_shlibpath_var=unsupported
9219
link_all_deplibs=unknown
9222
old_archive_from_new_cmds=
9223
old_archive_from_expsyms_cmds=
9224
thread_safe_flag_spec=
9225
whole_archive_flag_spec=
9226
# include_expsyms should be a list of space-separated symbols to be *always*
9227
# included in the symbol list
9229
# exclude_expsyms can be an extended regexp of symbols to exclude
9230
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9231
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9232
# as well as any symbol that contains `d'.
9233
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9234
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9235
# platforms (ab)use it in PIC code, but their linkers get confused if
9236
# the symbol is explicitly referenced. Since portable code cannot
9237
# rely on this symbol name, it's probably fine to never include it in
9238
# preloaded symbol tables.
9239
# Exclude shared library initialization/finalization symbols.
9240
extract_expsyms_cmds=
9243
cygwin* | mingw* | pw32* | cegcc*)
9244
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9245
# When not using gcc, we currently assume that we are using
9246
# Microsoft Visual C++.
9247
if test "$GCC" != yes; then
9252
# we just hope/assume this is gcc and not c89 (= MSVC++)
9258
linux* | k*bsd*-gnu)
9264
if test "$with_gnu_ld" = yes; then
9265
# If archive_cmds runs LD, not CC, wlarc should be empty
9268
# Set some defaults for GNU ld with shared library support. These
9269
# are reset later if shared libraries are not supported. Putting them
9270
# here allows them to be overridden if necessary.
9271
runpath_var=LD_RUN_PATH
9272
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9273
export_dynamic_flag_spec='${wl}--export-dynamic'
9274
# ancient GNU ld didn't support --whole-archive et. al.
9275
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9276
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9278
whole_archive_flag_spec=
9280
supports_anon_versioning=no
9281
case `$LD -v 2>&1` in
9282
*GNU\ gold*) supports_anon_versioning=yes ;;
9283
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9284
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9285
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9286
*\ 2.11.*) ;; # other 2.11 versions
9287
*) supports_anon_versioning=yes ;;
9290
# See if GNU ld supports shared libraries.
9293
# On AIX/PPC, the GNU linker is very broken
9294
if test "$host_cpu" != ia64; then
9298
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9299
*** to be unable to reliably create shared libraries on AIX.
9300
*** Therefore, libtool is disabling shared libraries support. If you
9301
*** really care for shared libraries, you may want to modify your PATH
9302
*** so that a non-GNU linker is found, and then restart.
9311
# see comment about AmigaOS4 .so support
9312
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9313
archive_expsym_cmds=''
9316
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)'
9317
hardcode_libdir_flag_spec='-L$libdir'
9318
hardcode_minus_L=yes
9324
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9325
allow_undefined_flag=unsupported
9326
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9327
# support --undefined. This deserves some investigation. FIXME
9328
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334
cygwin* | mingw* | pw32* | cegcc*)
9335
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9336
# as there is no search path for DLLs.
9337
hardcode_libdir_flag_spec='-L$libdir'
9338
allow_undefined_flag=unsupported
9339
always_export_symbols=no
9340
enable_shared_with_static_runtimes=yes
9341
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9343
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9344
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9345
# If the export-symbols file already is a .def file (1st line
9346
# is EXPORTS), use it as is; otherwise, prepend...
9347
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9348
cp $export_symbols $output_objdir/$soname.def;
9350
echo EXPORTS > $output_objdir/$soname.def;
9351
cat $export_symbols >> $output_objdir/$soname.def;
9353
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9361
hardcode_shlibpath_var=no
9362
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9363
export_dynamic_flag_spec='${wl}-E'
9364
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9365
# Instead, shared libraries are loaded at an image base (0x10000000 by
9366
# default) and relocated if they conflict, which is a slow very memory
9367
# consuming and fragmenting process. To avoid this, we pick a random,
9368
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9369
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
9370
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9371
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'
9374
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9376
if test "$host_os" = linux-dietlibc; then
9377
case $cc_basename in
9378
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9381
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9382
&& test "$tmp_diet" = no
9385
tmp_sharedflag='-shared'
9386
case $cc_basename,$host_cpu in
9387
pgcc*) # Portland Group C compiler
9388
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'
9389
tmp_addflag=' $pic_flag'
9391
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9392
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'
9393
tmp_addflag=' $pic_flag -Mnomain' ;;
9394
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9395
tmp_addflag=' -i_dynamic' ;;
9396
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9397
tmp_addflag=' -i_dynamic -nofor_main' ;;
9398
ifc* | ifort*) # Intel Fortran compiler
9399
tmp_addflag=' -nofor_main' ;;
9400
lf95*) # Lahey Fortran 8.1
9401
whole_archive_flag_spec=
9402
tmp_sharedflag='--shared' ;;
9403
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9404
tmp_sharedflag='-qmkshrobj'
9407
case `$CC -V 2>&1 | sed 5q` in
9408
*Sun\ C*) # Sun C 5.9
9409
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'
9410
compiler_needs_object=yes
9411
tmp_sharedflag='-G' ;;
9412
*Sun\ F*) # Sun Fortran 8.3
9413
tmp_sharedflag='-G' ;;
9415
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9417
if test "x$supports_anon_versioning" = xyes; then
9418
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9419
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9420
echo "local: *; };" >> $output_objdir/$libname.ver~
9421
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9424
case $cc_basename in
9426
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9427
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9428
hardcode_libdir_flag_spec=
9429
hardcode_libdir_flag_spec_ld='-rpath $libdir'
9430
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9431
if test "x$supports_anon_versioning" = xyes; then
9432
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9433
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9434
echo "local: *; };" >> $output_objdir/$libname.ver~
9435
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9444
netbsd* | netbsdelf*-gnu)
9445
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9446
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9449
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9450
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9455
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9459
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9460
*** create shared libraries on Solaris systems. Therefore, libtool
9461
*** is disabling shared libraries support. We urge you to upgrade GNU
9462
*** binutils to release 2.9.1 or newer. Another option is to modify
9463
*** your PATH or compiler configuration so that the native linker is
9464
*** used, and then restart.
9467
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9468
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9469
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9475
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9476
case `$LD -v 2>&1` in
9477
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9481
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9482
*** reliably create shared libraries on SCO systems. Therefore, libtool
9483
*** is disabling shared libraries support. We urge you to upgrade GNU
9484
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9485
*** your PATH or compiler configuration so that the native linker is
9486
*** used, and then restart.
9491
# For security reasons, it is highly recommended that you always
9492
# use absolute paths for naming shared libraries, and exclude the
9493
# DT_RUNPATH tag from executables and libraries. But doing so
9494
# requires that you compile everything twice, which is a pain.
9495
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9496
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9497
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9498
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9507
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9510
hardcode_shlibpath_var=no
9514
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9515
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9516
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9523
if test "$ld_shlibs" = no; then
9525
hardcode_libdir_flag_spec=
9526
export_dynamic_flag_spec=
9527
whole_archive_flag_spec=
9530
# PORTME fill in a description of your system's linker (not GNU ld)
9533
allow_undefined_flag=unsupported
9534
always_export_symbols=yes
9535
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'
9536
# Note: this linker hardcodes the directories in LIBPATH if there
9537
# are no directories specified by -L.
9538
hardcode_minus_L=yes
9539
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9540
# Neither direct hardcoding nor static linking is supported with a
9542
hardcode_direct=unsupported
9547
if test "$host_cpu" = ia64; then
9548
# On IA64, the linker does run time linking by default, so we don't
9549
# have to do anything special.
9550
aix_use_runtimelinking=no
9551
exp_sym_flag='-Bexport'
9554
# If we're using GNU nm, then we don't want the "-C" option.
9555
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9556
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9557
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'
9559
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'
9561
aix_use_runtimelinking=no
9563
# Test if we are trying to use run time linking or normal
9564
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9565
# need to do runtime linking.
9566
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9567
for ld_flag in $LDFLAGS; do
9568
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9569
aix_use_runtimelinking=yes
9576
exp_sym_flag='-bexport'
9577
no_entry_flag='-bnoentry'
9580
# When large executables or shared objects are built, AIX ld can
9581
# have problems creating the table of contents. If linking a library
9582
# or program results in "error TOC overflow" add -mminimal-toc to
9583
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9584
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9588
hardcode_direct_absolute=yes
9589
hardcode_libdir_separator=':'
9590
link_all_deplibs=yes
9591
file_list_spec='${wl}-f,'
9593
if test "$GCC" = yes; then
9594
case $host_os in aix4.[012]|aix4.[012].*)
9595
# We only want to do this on AIX 4.2 and lower, the check
9596
# below for broken collect2 doesn't work under 4.3+
9597
collect2name=`${CC} -print-prog-name=collect2`
9598
if test -f "$collect2name" &&
9599
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9601
# We have reworked collect2
9604
# We have old collect2
9605
hardcode_direct=unsupported
9606
# It fails to find uninstalled libraries when the uninstalled
9607
# path is not listed in the libpath. Setting hardcode_minus_L
9608
# to unsupported forces relinking
9609
hardcode_minus_L=yes
9610
hardcode_libdir_flag_spec='-L$libdir'
9611
hardcode_libdir_separator=
9615
shared_flag='-shared'
9616
if test "$aix_use_runtimelinking" = yes; then
9617
shared_flag="$shared_flag "'${wl}-G'
9622
if test "$host_cpu" = ia64; then
9623
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9624
# chokes on -Wl,-G. The following line is correct:
9627
if test "$aix_use_runtimelinking" = yes; then
9628
shared_flag='${wl}-G'
9630
shared_flag='${wl}-bM:SRE'
9635
export_dynamic_flag_spec='${wl}-bexpall'
9636
# It seems that -bexpall does not export symbols beginning with
9637
# underscore (_), so it is better to generate a list of symbols to export.
9638
always_export_symbols=yes
9639
if test "$aix_use_runtimelinking" = yes; then
9640
# Warning - without using the other runtime loading flags (-brtl),
9641
# -berok will link without error, but may produce a broken library.
9642
allow_undefined_flag='-berok'
9643
# Determine the default libpath from the value encoded in an
9645
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646
/* end confdefs.h. */
9656
if ac_fn_c_try_link "$LINENO"; then :
9658
lt_aix_libpath_sed='
9659
/Import File Strings/,/^$/ {
9665
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9666
# Check for a 64-bit object if we didn't find anything.
9667
if test -z "$aix_libpath"; then
9668
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9671
rm -f core conftest.err conftest.$ac_objext \
9672
conftest$ac_exeext conftest.$ac_ext
9673
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9675
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9676
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"
9678
if test "$host_cpu" = ia64; then
9679
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9680
allow_undefined_flag="-z nodefs"
9681
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"
9683
# Determine the default libpath from the value encoded in an
9685
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686
/* end confdefs.h. */
9696
if ac_fn_c_try_link "$LINENO"; then :
9698
lt_aix_libpath_sed='
9699
/Import File Strings/,/^$/ {
9705
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9706
# Check for a 64-bit object if we didn't find anything.
9707
if test -z "$aix_libpath"; then
9708
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9711
rm -f core conftest.err conftest.$ac_objext \
9712
conftest$ac_exeext conftest.$ac_ext
9713
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9715
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9716
# Warning - without using the other run time loading flags,
9717
# -berok will link without error, but may produce a broken library.
9718
no_undefined_flag=' ${wl}-bernotok'
9719
allow_undefined_flag=' ${wl}-berok'
9720
# Exported symbols can be pulled into shared objects from archives
9721
whole_archive_flag_spec='$convenience'
9722
archive_cmds_need_lc=yes
9723
# This is similar to how AIX traditionally builds its shared libraries.
9724
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'
9732
# see comment about AmigaOS4 .so support
9733
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9734
archive_expsym_cmds=''
9737
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)'
9738
hardcode_libdir_flag_spec='-L$libdir'
9739
hardcode_minus_L=yes
9745
export_dynamic_flag_spec=-rdynamic
9748
cygwin* | mingw* | pw32* | cegcc*)
9749
# When not using gcc, we currently assume that we are using
9750
# Microsoft Visual C++.
9751
# hardcode_libdir_flag_spec is actually meaningless, as there is
9752
# no search path for DLLs.
9753
hardcode_libdir_flag_spec=' '
9754
allow_undefined_flag=unsupported
9755
# Tell ltmain to make .lib files, not .a files.
9757
# Tell ltmain to make .dll files, not .so files.
9759
# FIXME: Setting linknames here is a bad hack.
9760
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9761
# The linker will automatically build a .lib file if we build a DLL.
9762
old_archive_from_new_cmds='true'
9763
# FIXME: Should let the user specify the lib program.
9764
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9765
fix_srcfile_path='`cygpath -w "$srcfile"`'
9766
enable_shared_with_static_runtimes=yes
9769
darwin* | rhapsody*)
9772
archive_cmds_need_lc=no
9774
hardcode_automatic=yes
9775
hardcode_shlibpath_var=unsupported
9776
whole_archive_flag_spec=''
9777
link_all_deplibs=yes
9778
allow_undefined_flag="$_lt_dar_allow_undefined"
9779
case $cc_basename in
9780
ifort*) _lt_dar_can_shared=yes ;;
9781
*) _lt_dar_can_shared=$GCC ;;
9783
if test "$_lt_dar_can_shared" = "yes"; then
9784
output_verbose_link_cmd=echo
9785
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9786
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9787
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}"
9788
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}"
9797
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9798
hardcode_libdir_flag_spec='-L$libdir'
9799
hardcode_shlibpath_var=no
9806
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9807
# support. Future versions do this automatically, but an explicit c++rt0.o
9808
# does not break anything, and helps significantly (at the cost of a little
9811
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9812
hardcode_libdir_flag_spec='-R$libdir'
9814
hardcode_shlibpath_var=no
9817
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9819
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9821
hardcode_minus_L=yes
9822
hardcode_shlibpath_var=no
9825
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9826
freebsd* | dragonfly*)
9827
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9828
hardcode_libdir_flag_spec='-R$libdir'
9830
hardcode_shlibpath_var=no
9834
if test "$GCC" = yes; then
9835
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'
9837
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'
9839
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9840
hardcode_libdir_separator=:
9843
# hardcode_minus_L: Not really in the search PATH,
9844
# but as the default location of the library.
9845
hardcode_minus_L=yes
9846
export_dynamic_flag_spec='${wl}-E'
9850
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9851
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9853
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9855
if test "$with_gnu_ld" = no; then
9856
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9857
hardcode_libdir_flag_spec_ld='+b $libdir'
9858
hardcode_libdir_separator=:
9860
hardcode_direct_absolute=yes
9861
export_dynamic_flag_spec='${wl}-E'
9862
# hardcode_minus_L: Not really in the search PATH,
9863
# but as the default location of the library.
9864
hardcode_minus_L=yes
9869
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9872
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9875
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9878
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9884
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9887
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9890
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9894
if test "$with_gnu_ld" = no; then
9895
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9896
hardcode_libdir_separator=:
9901
hardcode_shlibpath_var=no
9905
hardcode_direct_absolute=yes
9906
export_dynamic_flag_spec='${wl}-E'
9908
# hardcode_minus_L: Not really in the search PATH,
9909
# but as the default location of the library.
9910
hardcode_minus_L=yes
9916
irix5* | irix6* | nonstopux*)
9917
if test "$GCC" = yes; then
9918
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'
9919
# Try to use the -exported_symbol ld option, if it does not
9920
# work, assume that -exports_file does not work either and
9921
# implicitly export all symbols.
9922
save_LDFLAGS="$LDFLAGS"
9923
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9924
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925
/* end confdefs.h. */
9928
if ac_fn_c_try_link "$LINENO"; then :
9929
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'
9932
rm -f core conftest.err conftest.$ac_objext \
9933
conftest$ac_exeext conftest.$ac_ext
9934
LDFLAGS="$save_LDFLAGS"
9936
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'
9937
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'
9939
archive_cmds_need_lc='no'
9940
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9941
hardcode_libdir_separator=:
9943
link_all_deplibs=yes
9946
netbsd* | netbsdelf*-gnu)
9947
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9948
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9950
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9952
hardcode_libdir_flag_spec='-R$libdir'
9954
hardcode_shlibpath_var=no
9958
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9960
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9961
hardcode_libdir_separator=:
9962
hardcode_shlibpath_var=no
9969
if test -f /usr/libexec/ld.so; then
9971
hardcode_shlibpath_var=no
9972
hardcode_direct_absolute=yes
9973
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9974
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9975
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9976
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9977
export_dynamic_flag_spec='${wl}-E'
9980
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9981
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9982
hardcode_libdir_flag_spec='-R$libdir'
9985
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9986
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9996
hardcode_libdir_flag_spec='-L$libdir'
9997
hardcode_minus_L=yes
9998
allow_undefined_flag=unsupported
9999
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'
10000
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10004
if test "$GCC" = yes; then
10005
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10006
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'
10008
allow_undefined_flag=' -expect_unresolved \*'
10009
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'
10011
archive_cmds_need_lc='no'
10012
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10013
hardcode_libdir_separator=:
10016
osf4* | osf5*) # as osf3* with the addition of -msym flag
10017
if test "$GCC" = yes; then
10018
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10019
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'
10020
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10022
allow_undefined_flag=' -expect_unresolved \*'
10023
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'
10024
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~
10025
$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'
10027
# Both c and cxx compiler support -rpath directly
10028
hardcode_libdir_flag_spec='-rpath $libdir'
10030
archive_cmds_need_lc='no'
10031
hardcode_libdir_separator=:
10035
no_undefined_flag=' -z defs'
10036
if test "$GCC" = yes; then
10038
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10039
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10040
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10042
case `$CC -V 2>&1` in
10045
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10046
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10047
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10051
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10052
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10053
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10057
hardcode_libdir_flag_spec='-R$libdir'
10058
hardcode_shlibpath_var=no
10060
solaris2.[0-5] | solaris2.[0-5].*) ;;
10062
# The compiler driver will combine and reorder linker options,
10063
# but understands `-z linker_flag'. GCC discards it without `$wl',
10064
# but is careful enough not to reorder.
10065
# Supported since Solaris 2.6 (maybe 2.5.1?)
10066
if test "$GCC" = yes; then
10067
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10069
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10073
link_all_deplibs=yes
10077
if test "x$host_vendor" = xsequent; then
10078
# Use $CC to link under sequent, because it throws in some extra .o
10079
# files that make .init and .fini sections work.
10080
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10082
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10084
hardcode_libdir_flag_spec='-L$libdir'
10085
hardcode_direct=yes
10086
hardcode_minus_L=yes
10087
hardcode_shlibpath_var=no
10091
case $host_vendor in
10093
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10094
hardcode_direct=yes # is this really true???
10097
## LD is ld it makes a PLAMLIB
10098
## CC just makes a GrossModule.
10099
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10100
reload_cmds='$CC -r -o $output$reload_objs'
10104
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10105
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10108
runpath_var='LD_RUN_PATH'
10109
hardcode_shlibpath_var=no
10113
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10114
hardcode_shlibpath_var=no
10115
export_dynamic_flag_spec='-Bexport'
10119
if test -d /usr/nec; then
10120
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10121
hardcode_shlibpath_var=no
10122
runpath_var=LD_RUN_PATH
10123
hardcode_runpath_var=yes
10128
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10129
no_undefined_flag='${wl}-z,text'
10130
archive_cmds_need_lc=no
10131
hardcode_shlibpath_var=no
10132
runpath_var='LD_RUN_PATH'
10134
if test "$GCC" = yes; then
10135
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10136
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10138
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10139
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10143
sysv5* | sco3.2v5* | sco5v6*)
10144
# Note: We can NOT use -z defs as we might desire, because we do not
10145
# link with -lc, and that would cause any symbols used from libc to
10146
# always be unresolved, which means just about no library would
10147
# ever link correctly. If we're not using GNU ld we use -z text
10148
# though, which does catch some bad symbols but isn't as heavy-handed
10150
no_undefined_flag='${wl}-z,text'
10151
allow_undefined_flag='${wl}-z,nodefs'
10152
archive_cmds_need_lc=no
10153
hardcode_shlibpath_var=no
10154
hardcode_libdir_flag_spec='${wl}-R,$libdir'
10155
hardcode_libdir_separator=':'
10156
link_all_deplibs=yes
10157
export_dynamic_flag_spec='${wl}-Bexport'
10158
runpath_var='LD_RUN_PATH'
10160
if test "$GCC" = yes; then
10161
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10165
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10170
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10171
hardcode_libdir_flag_spec='-L$libdir'
10172
hardcode_shlibpath_var=no
10180
if test x$host_vendor = xsni; then
10182
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10183
export_dynamic_flag_spec='${wl}-Blargedynsym'
10189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10190
$as_echo "$ld_shlibs" >&6; }
10191
test "$ld_shlibs" = no && can_build_shared=no
10193
with_gnu_ld=$with_gnu_ld
10210
# Do we need to explicitly link libc?
10212
case "x$archive_cmds_need_lc" in
10214
# Assume -lc should be added
10215
archive_cmds_need_lc=yes
10217
if test "$enable_shared" = yes && test "$GCC" = yes; then
10218
case $archive_cmds in
10220
# FIXME: we may have to deal with multi-command sequences.
10223
# Test whether the compiler implicitly links with -lc since on some
10224
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10225
# to ld, don't add -lc before -lgcc.
10226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10227
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10229
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10231
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10232
(eval $ac_compile) 2>&5
10234
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10235
test $ac_status = 0; } 2>conftest.err; then
10238
libobjs=conftest.$ac_objext
10240
wl=$lt_prog_compiler_wl
10241
pic_flag=$lt_prog_compiler_pic
10247
lt_save_allow_undefined_flag=$allow_undefined_flag
10248
allow_undefined_flag=
10249
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10250
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10252
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10253
test $ac_status = 0; }
10255
archive_cmds_need_lc=no
10257
archive_cmds_need_lc=yes
10259
allow_undefined_flag=$lt_save_allow_undefined_flag
10261
cat conftest.err 1>&5
10264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10265
$as_echo "$archive_cmds_need_lc" >&6; }
10428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10429
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10431
if test "$GCC" = yes; then
10433
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10434
*) lt_awk_arg="/^libraries:/" ;;
10436
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10437
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10438
# if the path contains ";" then we assume it to be the separator
10439
# otherwise default to the standard path separator (i.e. ":") - it is
10440
# assumed that no part of a normal pathname contains ";" but that should
10441
# okay in the real world where ";" in dirpaths is itself problematic.
10442
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10444
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10446
# Ok, now we have the path, separated by spaces, we can step through it
10447
# and add multilib dir if necessary.
10448
lt_tmp_lt_search_path_spec=
10449
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10450
for lt_sys_path in $lt_search_path_spec; do
10451
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10452
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10454
test -d "$lt_sys_path" && \
10455
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10458
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10459
BEGIN {RS=" "; FS="/|\n";} {
10462
for (lt_i = NF; lt_i > 0; lt_i--) {
10463
if ($lt_i != "" && $lt_i != ".") {
10464
if ($lt_i == "..") {
10467
if (lt_count == 0) {
10468
lt_foo="/" $lt_i lt_foo;
10475
if (lt_foo != "") { lt_freq[lt_foo]++; }
10476
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10478
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10480
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10482
library_names_spec=
10483
libname_spec='lib$name'
10487
postuninstall_cmds=
10491
shlibpath_overrides_runpath=unknown
10493
dynamic_linker="$host_os ld.so"
10494
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10495
need_lib_prefix=unknown
10496
hardcode_into_libs=no
10498
# when you set need_version to no, make sure it does not cause -set_version
10499
# flags to be left without arguments
10500
need_version=unknown
10505
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10506
shlibpath_var=LIBPATH
10508
# AIX 3 has no versioning support, so we append a major version to the name.
10509
soname_spec='${libname}${release}${shared_ext}$major'
10516
hardcode_into_libs=yes
10517
if test "$host_cpu" = ia64; then
10518
# AIX 5 supports IA64
10519
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10520
shlibpath_var=LD_LIBRARY_PATH
10522
# With GCC up to 2.95.x, collect2 would create an import file
10523
# for dependence libraries. The import file would start with
10524
# the line `#! .'. This would cause the generated library to
10525
# depend on `.', always an invalid library. This was fixed in
10526
# development snapshots of GCC prior to 3.0.
10528
aix4 | aix4.[01] | aix4.[01].*)
10529
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10531
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10534
can_build_shared=no
10538
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10539
# soname into executable. Probably we can add versioning support to
10540
# collect2, so additional links can be useful in future.
10541
if test "$aix_use_runtimelinking" = yes; then
10542
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10543
# instead of lib<name>.a to let people know that these are not
10544
# typical AIX shared libraries.
10545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10547
# We preserve .a as extension for shared libraries through AIX4.2
10548
# and later when we are not doing run time linking.
10549
library_names_spec='${libname}${release}.a $libname.a'
10550
soname_spec='${libname}${release}${shared_ext}$major'
10552
shlibpath_var=LIBPATH
10559
# Since July 2007 AmigaOS4 officially supports .so libraries.
10560
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10561
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564
library_names_spec='$libname.ixlibrary $libname.a'
10565
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10566
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'
10572
library_names_spec='${libname}${shared_ext}'
10573
dynamic_linker="$host_os ld.so"
10574
shlibpath_var=LIBRARY_PATH
10580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581
soname_spec='${libname}${release}${shared_ext}$major'
10582
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10583
shlibpath_var=LD_LIBRARY_PATH
10584
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10585
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10586
# the default ld.so.conf also contains /usr/contrib/lib and
10587
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10588
# libtool to hard-code these into programs
10591
cygwin* | mingw* | pw32* | cegcc*)
10592
version_type=windows
10597
case $GCC,$host_os in
10598
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10599
library_names_spec='$libname.dll.a'
10600
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10601
postinstall_cmds='base_file=`basename \${file}`~
10602
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10603
dldir=$destdir/`dirname \$dlpath`~
10604
test -d \$dldir || mkdir -p \$dldir~
10605
$install_prog $dir/$dlname \$dldir/$dlname~
10606
chmod a+x \$dldir/$dlname~
10607
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10608
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10610
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10611
dlpath=$dir/\$dldll~
10613
shlibpath_overrides_runpath=yes
10617
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10618
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10619
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10622
# MinGW DLLs use traditional 'lib' prefix
10623
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10624
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10625
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10626
# It is most probably a Windows format PATH printed by
10627
# mingw gcc, but we are running on Cygwin. Gcc prints its search
10628
# path with ; separators, and with drive letters. We can handle the
10629
# drive letters (cygwin fileutils understands them), so leave them,
10630
# especially as we might pass files found there to a mingw objdump,
10631
# which wouldn't understand a cygwinified path. Ahh.
10632
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10634
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10638
# pw32 DLLs use 'pw' prefix rather than 'lib'
10639
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10645
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10648
dynamic_linker='Win32 ld.exe'
10649
# FIXME: first we should search . and the directory the executable is in
10653
darwin* | rhapsody*)
10654
dynamic_linker="$host_os dyld"
10655
version_type=darwin
10658
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10659
soname_spec='${libname}${release}${major}$shared_ext'
10660
shlibpath_overrides_runpath=yes
10661
shlibpath_var=DYLD_LIBRARY_PATH
10662
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10664
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10665
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10672
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10673
soname_spec='${libname}${release}${shared_ext}$major'
10674
shlibpath_var=LD_LIBRARY_PATH
10681
freebsd* | dragonfly*)
10682
# DragonFly does not have aout. When/if they implement a new
10683
# versioning mechanism, adjust this.
10684
if test -x /usr/bin/objformat; then
10685
objformat=`/usr/bin/objformat`
10688
freebsd[123]*) objformat=aout ;;
10689
*) objformat=elf ;;
10692
version_type=freebsd-$objformat
10693
case $version_type in
10695
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10700
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10704
shlibpath_var=LD_LIBRARY_PATH
10707
shlibpath_overrides_runpath=yes
10709
freebsd3.[01]* | freebsdelf3.[01]*)
10710
shlibpath_overrides_runpath=yes
10711
hardcode_into_libs=yes
10713
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10714
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10715
shlibpath_overrides_runpath=no
10716
hardcode_into_libs=yes
10718
*) # from 4.6 on, and DragonFly
10719
shlibpath_overrides_runpath=yes
10720
hardcode_into_libs=yes
10729
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10730
soname_spec='${libname}${release}${shared_ext}$major'
10731
shlibpath_var=LD_LIBRARY_PATH
10732
hardcode_into_libs=yes
10735
hpux9* | hpux10* | hpux11*)
10736
# Give a soname corresponding to the major version so that dld.sl refuses to
10737
# link against other versions.
10744
hardcode_into_libs=yes
10745
dynamic_linker="$host_os dld.so"
10746
shlibpath_var=LD_LIBRARY_PATH
10747
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10748
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749
soname_spec='${libname}${release}${shared_ext}$major'
10750
if test "X$HPUX_IA64_MODE" = X32; then
10751
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10753
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10755
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10759
hardcode_into_libs=yes
10760
dynamic_linker="$host_os dld.sl"
10761
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10762
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10763
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10764
soname_spec='${libname}${release}${shared_ext}$major'
10765
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10766
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10770
dynamic_linker="$host_os dld.sl"
10771
shlibpath_var=SHLIB_PATH
10772
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10773
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774
soname_spec='${libname}${release}${shared_ext}$major'
10777
# HP-UX runs *really* slowly unless shared libraries are mode 555.
10778
postinstall_cmds='chmod 555 $lib'
10785
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10786
soname_spec='${libname}${release}${shared_ext}$major'
10787
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10788
shlibpath_var=LD_LIBRARY_PATH
10789
shlibpath_overrides_runpath=no
10790
hardcode_into_libs=yes
10793
irix5* | irix6* | nonstopux*)
10795
nonstopux*) version_type=nonstopux ;;
10797
if test "$lt_cv_prog_gnu_ld" = yes; then
10805
soname_spec='${libname}${release}${shared_ext}$major'
10806
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10808
irix5* | nonstopux*)
10809
libsuff= shlibsuff=
10812
case $LD in # libtool.m4 will add one of these switches to LD
10813
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10814
libsuff= shlibsuff= libmagic=32-bit;;
10815
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10816
libsuff=32 shlibsuff=N32 libmagic=N32;;
10817
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10818
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10819
*) libsuff= shlibsuff= libmagic=never-match;;
10823
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10824
shlibpath_overrides_runpath=no
10825
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10826
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10827
hardcode_into_libs=yes
10830
# No shared lib support for Linux oldld, aout, or coff.
10831
linux*oldld* | linux*aout* | linux*coff*)
10835
# This must be Linux ELF.
10836
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10840
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10841
soname_spec='${libname}${release}${shared_ext}$major'
10842
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10843
shlibpath_var=LD_LIBRARY_PATH
10844
shlibpath_overrides_runpath=no
10845
# Some binutils ld are patched to set DT_RUNPATH
10846
save_LDFLAGS=$LDFLAGS
10847
save_libdir=$libdir
10848
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10849
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10850
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851
/* end confdefs.h. */
10861
if ac_fn_c_try_link "$LINENO"; then :
10862
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10863
shlibpath_overrides_runpath=yes
10866
rm -f core conftest.err conftest.$ac_objext \
10867
conftest$ac_exeext conftest.$ac_ext
10868
LDFLAGS=$save_LDFLAGS
10869
libdir=$save_libdir
10871
# This implies no fast_install, which is unacceptable.
10872
# Some rework will be needed to allow for fast_install
10873
# before this can be enabled.
10874
hardcode_into_libs=yes
10876
# Append ld.so.conf contents to the search path
10877
if test -f /etc/ld.so.conf; then
10878
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' ' '`
10879
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10882
# We used to test for /lib/ld.so.1 and disable shared libraries on
10883
# powerpc, because MkLinux only supported shared libraries with the
10884
# GNU dynamic linker. Since this was broken with cross compilers,
10885
# most powerpc-linux boxes support dynamic linking these days and
10886
# people can always --disable-shared, the test was removed, and we
10887
# assume the GNU/Linux dynamic linker is in use.
10888
dynamic_linker='GNU/Linux ld.so'
10895
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10896
soname_spec='${libname}${release}${shared_ext}$major'
10897
shlibpath_var=LD_LIBRARY_PATH
10898
shlibpath_overrides_runpath=no
10899
hardcode_into_libs=yes
10900
dynamic_linker='NetBSD ld.elf_so'
10907
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10908
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10909
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10910
dynamic_linker='NetBSD (a.out) ld.so'
10912
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10913
soname_spec='${libname}${release}${shared_ext}$major'
10914
dynamic_linker='NetBSD ld.elf_so'
10916
shlibpath_var=LD_LIBRARY_PATH
10917
shlibpath_overrides_runpath=yes
10918
hardcode_into_libs=yes
10923
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924
shlibpath_var=LD_LIBRARY_PATH
10925
shlibpath_overrides_runpath=yes
10932
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10933
soname_spec='${libname}${release}${shared_ext}$major'
10934
shlibpath_var=LD_LIBRARY_PATH
10935
shlibpath_overrides_runpath=no
10936
hardcode_into_libs=yes
10937
dynamic_linker='ldqnx.so'
10942
sys_lib_dlsearch_path_spec="/usr/lib"
10944
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10946
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10947
*) need_version=no ;;
10949
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10950
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10951
shlibpath_var=LD_LIBRARY_PATH
10952
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10954
openbsd2.[89] | openbsd2.[89].*)
10955
shlibpath_overrides_runpath=no
10958
shlibpath_overrides_runpath=yes
10962
shlibpath_overrides_runpath=yes
10967
libname_spec='$name'
10970
library_names_spec='$libname${shared_ext} $libname.a'
10971
dynamic_linker='OS/2 ld.exe'
10972
shlibpath_var=LIBPATH
10975
osf3* | osf4* | osf5*)
10979
soname_spec='${libname}${release}${shared_ext}$major'
10980
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981
shlibpath_var=LD_LIBRARY_PATH
10982
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10983
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10994
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995
soname_spec='${libname}${release}${shared_ext}$major'
10996
shlibpath_var=LD_LIBRARY_PATH
10997
shlibpath_overrides_runpath=yes
10998
hardcode_into_libs=yes
10999
# ldd complains unless libraries are executable
11000
postinstall_cmds='chmod +x $lib'
11005
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11006
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11007
shlibpath_var=LD_LIBRARY_PATH
11008
shlibpath_overrides_runpath=yes
11009
if test "$with_gnu_ld" = yes; then
11017
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11018
soname_spec='${libname}${release}${shared_ext}$major'
11019
shlibpath_var=LD_LIBRARY_PATH
11020
case $host_vendor in
11022
shlibpath_overrides_runpath=no
11024
runpath_var=LD_RUN_PATH
11032
shlibpath_overrides_runpath=no
11033
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11039
if test -d /usr/nec ;then
11041
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11042
soname_spec='$libname${shared_ext}.$major'
11043
shlibpath_var=LD_LIBRARY_PATH
11047
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11048
version_type=freebsd-elf
11051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11052
soname_spec='${libname}${release}${shared_ext}$major'
11053
shlibpath_var=LD_LIBRARY_PATH
11054
shlibpath_overrides_runpath=yes
11055
hardcode_into_libs=yes
11056
if test "$with_gnu_ld" = yes; then
11057
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11059
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11062
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11066
sys_lib_dlsearch_path_spec='/usr/lib'
11070
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11074
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075
shlibpath_var=LD_LIBRARY_PATH
11076
shlibpath_overrides_runpath=no
11077
hardcode_into_libs=yes
11082
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11083
soname_spec='${libname}${release}${shared_ext}$major'
11084
shlibpath_var=LD_LIBRARY_PATH
11091
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11092
$as_echo "$dynamic_linker" >&6; }
11093
test "$dynamic_linker" = no && can_build_shared=no
11095
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11096
if test "$GCC" = yes; then
11097
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11100
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11101
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11103
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11104
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11194
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11196
if test -n "$hardcode_libdir_flag_spec" ||
11197
test -n "$runpath_var" ||
11198
test "X$hardcode_automatic" = "Xyes" ; then
11200
# We can hardcode non-existent directories.
11201
if test "$hardcode_direct" != no &&
11202
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11203
# have to relink, otherwise we might link with an installed library
11204
# when we should be linking with a yet-to-be-installed one
11205
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11206
test "$hardcode_minus_L" != no; then
11207
# Linking always hardcodes the temporary library directory.
11208
hardcode_action=relink
11210
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11211
hardcode_action=immediate
11214
# We cannot hardcode anything, or else we can only hardcode existing
11216
hardcode_action=unsupported
11218
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11219
$as_echo "$hardcode_action" >&6; }
11221
if test "$hardcode_action" = relink ||
11222
test "$inherit_rpath" = yes; then
11223
# Fast installation is not supported
11224
enable_fast_install=no
11225
elif test "$shlibpath_overrides_runpath" = yes ||
11226
test "$enable_shared" = no; then
11227
# Fast installation is not necessary
11228
enable_fast_install=needless
11236
if test "x$enable_dlopen" != xyes; then
11237
enable_dlopen=unknown
11238
enable_dlopen_self=unknown
11239
enable_dlopen_self_static=unknown
11246
lt_cv_dlopen="load_add_on"
11248
lt_cv_dlopen_self=yes
11251
mingw* | pw32* | cegcc*)
11252
lt_cv_dlopen="LoadLibrary"
11257
lt_cv_dlopen="dlopen"
11262
# if libdl is installed we need to link against it
11263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11264
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11265
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11266
$as_echo_n "(cached) " >&6
11268
ac_check_lib_save_LIBS=$LIBS
11270
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271
/* end confdefs.h. */
11273
/* Override any GCC internal prototype to avoid an error.
11274
Use char because int might match the return type of a GCC
11275
builtin and then its argument prototype would still apply. */
11288
if ac_fn_c_try_link "$LINENO"; then :
11289
ac_cv_lib_dl_dlopen=yes
11291
ac_cv_lib_dl_dlopen=no
11293
rm -f core conftest.err conftest.$ac_objext \
11294
conftest$ac_exeext conftest.$ac_ext
11295
LIBS=$ac_check_lib_save_LIBS
11297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11298
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11299
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11300
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11303
lt_cv_dlopen="dyld"
11305
lt_cv_dlopen_self=yes
11312
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11313
if test "x$ac_cv_func_shl_load" = x""yes; then :
11314
lt_cv_dlopen="shl_load"
11316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11317
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11318
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11319
$as_echo_n "(cached) " >&6
11321
ac_check_lib_save_LIBS=$LIBS
11323
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324
/* end confdefs.h. */
11326
/* Override any GCC internal prototype to avoid an error.
11327
Use char because int might match the return type of a GCC
11328
builtin and then its argument prototype would still apply. */
11336
return shl_load ();
11341
if ac_fn_c_try_link "$LINENO"; then :
11342
ac_cv_lib_dld_shl_load=yes
11344
ac_cv_lib_dld_shl_load=no
11346
rm -f core conftest.err conftest.$ac_objext \
11347
conftest$ac_exeext conftest.$ac_ext
11348
LIBS=$ac_check_lib_save_LIBS
11350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11351
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11352
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11353
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11355
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11356
if test "x$ac_cv_func_dlopen" = x""yes; then :
11357
lt_cv_dlopen="dlopen"
11359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11360
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11361
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11362
$as_echo_n "(cached) " >&6
11364
ac_check_lib_save_LIBS=$LIBS
11366
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367
/* end confdefs.h. */
11369
/* Override any GCC internal prototype to avoid an error.
11370
Use char because int might match the return type of a GCC
11371
builtin and then its argument prototype would still apply. */
11384
if ac_fn_c_try_link "$LINENO"; then :
11385
ac_cv_lib_dl_dlopen=yes
11387
ac_cv_lib_dl_dlopen=no
11389
rm -f core conftest.err conftest.$ac_objext \
11390
conftest$ac_exeext conftest.$ac_ext
11391
LIBS=$ac_check_lib_save_LIBS
11393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11394
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11395
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11396
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11398
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11399
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11400
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11401
$as_echo_n "(cached) " >&6
11403
ac_check_lib_save_LIBS=$LIBS
11404
LIBS="-lsvld $LIBS"
11405
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406
/* end confdefs.h. */
11408
/* Override any GCC internal prototype to avoid an error.
11409
Use char because int might match the return type of a GCC
11410
builtin and then its argument prototype would still apply. */
11423
if ac_fn_c_try_link "$LINENO"; then :
11424
ac_cv_lib_svld_dlopen=yes
11426
ac_cv_lib_svld_dlopen=no
11428
rm -f core conftest.err conftest.$ac_objext \
11429
conftest$ac_exeext conftest.$ac_ext
11430
LIBS=$ac_check_lib_save_LIBS
11432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11433
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11434
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11435
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11438
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11439
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11440
$as_echo_n "(cached) " >&6
11442
ac_check_lib_save_LIBS=$LIBS
11444
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445
/* end confdefs.h. */
11447
/* Override any GCC internal prototype to avoid an error.
11448
Use char because int might match the return type of a GCC
11449
builtin and then its argument prototype would still apply. */
11457
return dld_link ();
11462
if ac_fn_c_try_link "$LINENO"; then :
11463
ac_cv_lib_dld_dld_link=yes
11465
ac_cv_lib_dld_dld_link=no
11467
rm -f core conftest.err conftest.$ac_objext \
11468
conftest$ac_exeext conftest.$ac_ext
11469
LIBS=$ac_check_lib_save_LIBS
11471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11472
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11473
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11474
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11495
if test "x$lt_cv_dlopen" != xno; then
11501
case $lt_cv_dlopen in
11503
save_CPPFLAGS="$CPPFLAGS"
11504
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11506
save_LDFLAGS="$LDFLAGS"
11507
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11510
LIBS="$lt_cv_dlopen_libs $LIBS"
11512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11513
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11514
if test "${lt_cv_dlopen_self+set}" = set; then :
11515
$as_echo_n "(cached) " >&6
11517
if test "$cross_compiling" = yes; then :
11518
lt_cv_dlopen_self=cross
11520
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11521
lt_status=$lt_dlunknown
11522
cat > conftest.$ac_ext <<_LT_EOF
11523
#line 11523 "configure"
11524
#include "confdefs.h"
11533
# define LT_DLGLOBAL RTLD_GLOBAL
11536
# define LT_DLGLOBAL DL_GLOBAL
11538
# define LT_DLGLOBAL 0
11542
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11543
find out it does not work in some platform. */
11544
#ifndef LT_DLLAZY_OR_NOW
11546
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11549
# define LT_DLLAZY_OR_NOW DL_LAZY
11552
# define LT_DLLAZY_OR_NOW RTLD_NOW
11555
# define LT_DLLAZY_OR_NOW DL_NOW
11557
# define LT_DLLAZY_OR_NOW 0
11564
void fnord() { int i=42;}
11567
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11568
int status = $lt_dlunknown;
11572
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11573
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11574
/* dlclose (self); */
11582
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11583
(eval $ac_link) 2>&5
11585
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11586
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11587
(./conftest; exit; ) >&5 2>/dev/null
11589
case x$lt_status in
11590
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11591
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11592
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11595
# compilation failed
11596
lt_cv_dlopen_self=no
11603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11604
$as_echo "$lt_cv_dlopen_self" >&6; }
11606
if test "x$lt_cv_dlopen_self" = xyes; then
11607
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11609
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11610
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11611
$as_echo_n "(cached) " >&6
11613
if test "$cross_compiling" = yes; then :
11614
lt_cv_dlopen_self_static=cross
11616
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11617
lt_status=$lt_dlunknown
11618
cat > conftest.$ac_ext <<_LT_EOF
11619
#line 11619 "configure"
11620
#include "confdefs.h"
11629
# define LT_DLGLOBAL RTLD_GLOBAL
11632
# define LT_DLGLOBAL DL_GLOBAL
11634
# define LT_DLGLOBAL 0
11638
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11639
find out it does not work in some platform. */
11640
#ifndef LT_DLLAZY_OR_NOW
11642
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11645
# define LT_DLLAZY_OR_NOW DL_LAZY
11648
# define LT_DLLAZY_OR_NOW RTLD_NOW
11651
# define LT_DLLAZY_OR_NOW DL_NOW
11653
# define LT_DLLAZY_OR_NOW 0
11660
void fnord() { int i=42;}
11663
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11664
int status = $lt_dlunknown;
11668
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11669
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11670
/* dlclose (self); */
11678
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11679
(eval $ac_link) 2>&5
11681
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11682
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11683
(./conftest; exit; ) >&5 2>/dev/null
11685
case x$lt_status in
11686
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11687
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11688
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11691
# compilation failed
11692
lt_cv_dlopen_self_static=no
11699
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11700
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11703
CPPFLAGS="$save_CPPFLAGS"
11704
LDFLAGS="$save_LDFLAGS"
11709
case $lt_cv_dlopen_self in
11710
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11711
*) enable_dlopen_self=unknown ;;
11714
case $lt_cv_dlopen_self_static in
11715
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11716
*) enable_dlopen_self_static=unknown ;;
11738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11739
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11740
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11741
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11742
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11744
$as_echo "yes" >&6; }
11746
# FIXME - insert some real tests, host_os isn't really good enough
11749
if test -n "$STRIP" ; then
11750
striplib="$STRIP -x"
11751
old_striplib="$STRIP -S"
11752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11753
$as_echo "yes" >&6; }
11755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756
$as_echo "no" >&6; }
11760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761
$as_echo "no" >&6; }
11777
# Report which library types will actually be built
11778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11779
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11781
$as_echo "$can_build_shared" >&6; }
11783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11784
$as_echo_n "checking whether to build shared libraries... " >&6; }
11785
test "$can_build_shared" = "no" && enable_shared=no
11787
# On AIX, shared libraries and static libraries use the same namespace, and
11788
# are all built from PIC.
11791
test "$enable_shared" = yes && enable_static=no
11792
if test -n "$RANLIB"; then
11793
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11794
postinstall_cmds='$RANLIB $lib'
11799
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11800
test "$enable_shared" = yes && enable_static=no
11804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11805
$as_echo "$enable_shared" >&6; }
11807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11808
$as_echo_n "checking whether to build static libraries... " >&6; }
11809
# Make sure either enable_shared or enable_static is yes.
11810
test "$enable_shared" = yes || enable_static=yes
11811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11812
$as_echo "$enable_static" >&6; }
11819
ac_cpp='$CPP $CPPFLAGS'
11820
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11821
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11822
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11828
ac_cpp='$CXXCPP $CPPFLAGS'
11829
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11830
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11831
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11833
archive_cmds_need_lc_CXX=no
11834
allow_undefined_flag_CXX=
11835
always_export_symbols_CXX=no
11836
archive_expsym_cmds_CXX=
11837
compiler_needs_object_CXX=no
11838
export_dynamic_flag_spec_CXX=
11839
hardcode_direct_CXX=no
11840
hardcode_direct_absolute_CXX=no
11841
hardcode_libdir_flag_spec_CXX=
11842
hardcode_libdir_flag_spec_ld_CXX=
11843
hardcode_libdir_separator_CXX=
11844
hardcode_minus_L_CXX=no
11845
hardcode_shlibpath_var_CXX=unsupported
11846
hardcode_automatic_CXX=no
11847
inherit_rpath_CXX=no
11849
module_expsym_cmds_CXX=
11850
link_all_deplibs_CXX=unknown
11851
old_archive_cmds_CXX=$old_archive_cmds
11852
no_undefined_flag_CXX=
11853
whole_archive_flag_spec_CXX=
11854
enable_shared_with_static_runtimes_CXX=no
11856
# Source file extension for C++ test sources.
11859
# Object file extension for compiled C++ test sources.
11863
# No sense in running all these tests if we already determined that
11864
# the CXX compiler isn't working. Some variables (like enable_shared)
11865
# are currently assumed to apply to all compilers on this platform,
11866
# and will be corrupted by setting them based on a non-working compiler.
11867
if test "$_lt_caught_CXX_error" != yes; then
11868
# Code to be used in simple compile tests
11869
lt_simple_compile_test_code="int some_variable = 0;"
11871
# Code to be used in simple link tests
11872
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11874
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11881
# If no C compiler was specified, use CC.
11884
# If no C compiler flags were specified, use CFLAGS.
11885
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11887
# Allow CC to be a program name with arguments.
11891
# save warnings/boilerplate of simple test code
11892
ac_outfile=conftest.$ac_objext
11893
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11894
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11895
_lt_compiler_boilerplate=`cat conftest.err`
11898
ac_outfile=conftest.$ac_objext
11899
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11900
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11901
_lt_linker_boilerplate=`cat conftest.err`
11905
# Allow CC to be a program name with arguments.
11910
lt_save_with_gnu_ld=$with_gnu_ld
11911
lt_save_path_LD=$lt_cv_path_LD
11912
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11913
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11915
$as_unset lt_cv_prog_gnu_ld
11917
if test -n "${lt_cv_path_LDCXX+set}"; then
11918
lt_cv_path_LD=$lt_cv_path_LDCXX
11920
$as_unset lt_cv_path_LD
11922
test -z "${LDCXX+set}" || LD=$LDCXX
11926
for cc_temp in $compiler""; do
11928
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11929
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11934
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11937
if test -n "$compiler"; then
11938
# We don't want -fno-exception when compiling C++ code, so set the
11939
# no_builtin_flag separately
11940
if test "$GXX" = yes; then
11941
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11943
lt_prog_compiler_no_builtin_flag_CXX=
11946
if test "$GXX" = yes; then
11947
# Set up default GNU C++ configuration
11951
# Check whether --with-gnu-ld was given.
11952
if test "${with_gnu_ld+set}" = set; then :
11953
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11959
if test "$GCC" = yes; then
11960
# Check if gcc -print-prog-name=ld gives a path.
11961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11962
$as_echo_n "checking for ld used by $CC... " >&6; }
11965
# gcc leaves a trailing carriage return which upsets mingw
11966
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11968
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11971
# Accept absolute paths.
11973
re_direlt='/[^/][^/]*/\.\./'
11974
# Canonicalize the pathname of ld
11975
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11976
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11977
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11979
test -z "$LD" && LD="$ac_prog"
11982
# If it fails, then pretend we aren't using GCC.
11986
# If it is relative, then search for the first ld in PATH.
11987
with_gnu_ld=unknown
11990
elif test "$with_gnu_ld" = yes; then
11991
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11992
$as_echo_n "checking for GNU ld... " >&6; }
11994
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11995
$as_echo_n "checking for non-GNU ld... " >&6; }
11997
if test "${lt_cv_path_LD+set}" = set; then :
11998
$as_echo_n "(cached) " >&6
12000
if test -z "$LD"; then
12001
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12002
for ac_dir in $PATH; do
12004
test -z "$ac_dir" && ac_dir=.
12005
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12006
lt_cv_path_LD="$ac_dir/$ac_prog"
12007
# Check to see if the program is GNU ld. I'd rather use --version,
12008
# but apparently some variants of GNU ld only accept -v.
12009
# Break only if it was the GNU/non-GNU ld that we prefer.
12010
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12011
*GNU* | *'with BFD'*)
12012
test "$with_gnu_ld" != no && break
12015
test "$with_gnu_ld" != yes && break
12022
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12026
LD="$lt_cv_path_LD"
12027
if test -n "$LD"; then
12028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12029
$as_echo "$LD" >&6; }
12031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032
$as_echo "no" >&6; }
12034
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12036
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12037
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12038
$as_echo_n "(cached) " >&6
12040
# I'd rather use --version here, but apparently some GNU lds only accept -v.
12041
case `$LD -v 2>&1 </dev/null` in
12042
*GNU* | *'with BFD'*)
12043
lt_cv_prog_gnu_ld=yes
12046
lt_cv_prog_gnu_ld=no
12050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12051
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12052
with_gnu_ld=$lt_cv_prog_gnu_ld
12060
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12061
# archiving commands below assume that GNU ld is being used.
12062
if test "$with_gnu_ld" = yes; then
12063
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12064
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'
12066
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12067
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12069
# If archive_cmds runs LD, not CC, wlarc should be empty
12070
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12071
# investigate it a little bit more. (MM)
12074
# ancient GNU ld didn't support --whole-archive et. al.
12075
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12076
$GREP 'no-whole-archive' > /dev/null; then
12077
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12079
whole_archive_flag_spec_CXX=
12085
# A generic and very simple default shared library creation
12086
# command for GNU C++ for the case where it uses the native
12087
# linker, instead of GNU ld. If possible, this setting should
12088
# overridden to take advantage of the native linker features on
12089
# the platform it is being used on.
12090
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12093
# Commands to make compiler produce verbose output that lists
12094
# what "hidden" libraries, object files and flags are used when
12095
# linking a shared library.
12096
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12104
# PORTME: fill in a description of your system's C++ link characteristics
12105
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12106
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12110
# FIXME: insert proper C++ library support
12114
if test "$host_cpu" = ia64; then
12115
# On IA64, the linker does run time linking by default, so we don't
12116
# have to do anything special.
12117
aix_use_runtimelinking=no
12118
exp_sym_flag='-Bexport'
12121
aix_use_runtimelinking=no
12123
# Test if we are trying to use run time linking or normal
12124
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12125
# need to do runtime linking.
12126
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12127
for ld_flag in $LDFLAGS; do
12130
aix_use_runtimelinking=yes
12138
exp_sym_flag='-bexport'
12139
no_entry_flag='-bnoentry'
12142
# When large executables or shared objects are built, AIX ld can
12143
# have problems creating the table of contents. If linking a library
12144
# or program results in "error TOC overflow" add -mminimal-toc to
12145
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12146
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12148
archive_cmds_CXX=''
12149
hardcode_direct_CXX=yes
12150
hardcode_direct_absolute_CXX=yes
12151
hardcode_libdir_separator_CXX=':'
12152
link_all_deplibs_CXX=yes
12153
file_list_spec_CXX='${wl}-f,'
12155
if test "$GXX" = yes; then
12156
case $host_os in aix4.[012]|aix4.[012].*)
12157
# We only want to do this on AIX 4.2 and lower, the check
12158
# below for broken collect2 doesn't work under 4.3+
12159
collect2name=`${CC} -print-prog-name=collect2`
12160
if test -f "$collect2name" &&
12161
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12163
# We have reworked collect2
12166
# We have old collect2
12167
hardcode_direct_CXX=unsupported
12168
# It fails to find uninstalled libraries when the uninstalled
12169
# path is not listed in the libpath. Setting hardcode_minus_L
12170
# to unsupported forces relinking
12171
hardcode_minus_L_CXX=yes
12172
hardcode_libdir_flag_spec_CXX='-L$libdir'
12173
hardcode_libdir_separator_CXX=
12176
shared_flag='-shared'
12177
if test "$aix_use_runtimelinking" = yes; then
12178
shared_flag="$shared_flag "'${wl}-G'
12182
if test "$host_cpu" = ia64; then
12183
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12184
# chokes on -Wl,-G. The following line is correct:
12187
if test "$aix_use_runtimelinking" = yes; then
12188
shared_flag='${wl}-G'
12190
shared_flag='${wl}-bM:SRE'
12195
export_dynamic_flag_spec_CXX='${wl}-bexpall'
12196
# It seems that -bexpall does not export symbols beginning with
12197
# underscore (_), so it is better to generate a list of symbols to
12199
always_export_symbols_CXX=yes
12200
if test "$aix_use_runtimelinking" = yes; then
12201
# Warning - without using the other runtime loading flags (-brtl),
12202
# -berok will link without error, but may produce a broken library.
12203
allow_undefined_flag_CXX='-berok'
12204
# Determine the default libpath from the value encoded in an empty
12206
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207
/* end confdefs.h. */
12217
if ac_fn_cxx_try_link "$LINENO"; then :
12219
lt_aix_libpath_sed='
12220
/Import File Strings/,/^$/ {
12226
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12227
# Check for a 64-bit object if we didn't find anything.
12228
if test -z "$aix_libpath"; then
12229
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12232
rm -f core conftest.err conftest.$ac_objext \
12233
conftest$ac_exeext conftest.$ac_ext
12234
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12236
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12238
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"
12240
if test "$host_cpu" = ia64; then
12241
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12242
allow_undefined_flag_CXX="-z nodefs"
12243
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"
12245
# Determine the default libpath from the value encoded in an
12246
# empty executable.
12247
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248
/* end confdefs.h. */
12258
if ac_fn_cxx_try_link "$LINENO"; then :
12260
lt_aix_libpath_sed='
12261
/Import File Strings/,/^$/ {
12267
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12268
# Check for a 64-bit object if we didn't find anything.
12269
if test -z "$aix_libpath"; then
12270
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12273
rm -f core conftest.err conftest.$ac_objext \
12274
conftest$ac_exeext conftest.$ac_ext
12275
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12277
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12278
# Warning - without using the other run time loading flags,
12279
# -berok will link without error, but may produce a broken library.
12280
no_undefined_flag_CXX=' ${wl}-bernotok'
12281
allow_undefined_flag_CXX=' ${wl}-berok'
12282
# Exported symbols can be pulled into shared objects from archives
12283
whole_archive_flag_spec_CXX='$convenience'
12284
archive_cmds_need_lc_CXX=yes
12285
# This is similar to how AIX traditionally builds its shared
12287
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'
12293
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12294
allow_undefined_flag_CXX=unsupported
12295
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12296
# support --undefined. This deserves some investigation. FIXME
12297
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12304
case $cc_basename in
12306
# FIXME: insert proper C++ library support
12312
cygwin* | mingw* | pw32* | cegcc*)
12313
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12314
# as there is no search path for DLLs.
12315
hardcode_libdir_flag_spec_CXX='-L$libdir'
12316
allow_undefined_flag_CXX=unsupported
12317
always_export_symbols_CXX=no
12318
enable_shared_with_static_runtimes_CXX=yes
12320
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12321
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'
12322
# If the export-symbols file already is a .def file (1st line
12323
# is EXPORTS), use it as is; otherwise, prepend...
12324
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12325
cp $export_symbols $output_objdir/$soname.def;
12327
echo EXPORTS > $output_objdir/$soname.def;
12328
cat $export_symbols >> $output_objdir/$soname.def;
12330
$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'
12335
darwin* | rhapsody*)
12338
archive_cmds_need_lc_CXX=no
12339
hardcode_direct_CXX=no
12340
hardcode_automatic_CXX=yes
12341
hardcode_shlibpath_var_CXX=unsupported
12342
whole_archive_flag_spec_CXX=''
12343
link_all_deplibs_CXX=yes
12344
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12345
case $cc_basename in
12346
ifort*) _lt_dar_can_shared=yes ;;
12347
*) _lt_dar_can_shared=$GCC ;;
12349
if test "$_lt_dar_can_shared" = "yes"; then
12350
output_verbose_link_cmd=echo
12351
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}"
12352
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12353
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}"
12354
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}"
12355
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12356
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}"
12357
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}"
12367
case $cc_basename in
12369
# FIXME: insert proper C++ library support
12373
# Green Hills C++ Compiler
12374
# FIXME: insert proper C++ library support
12378
# FIXME: insert proper C++ library support
12385
# C++ shared libraries reported to be fairly broken before
12391
archive_cmds_need_lc_CXX=no
12394
freebsd* | dragonfly*)
12395
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12404
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12405
hardcode_libdir_separator_CXX=:
12406
export_dynamic_flag_spec_CXX='${wl}-E'
12407
hardcode_direct_CXX=yes
12408
hardcode_minus_L_CXX=yes # Not in the search PATH,
12409
# but as the default
12410
# location of the library.
12412
case $cc_basename in
12414
# FIXME: insert proper C++ library support
12418
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'
12419
# Commands to make compiler produce verbose output that lists
12420
# what "hidden" libraries, object files and flags are used when
12421
# linking a shared library.
12423
# There doesn't appear to be a way to prevent this compiler from
12424
# explicitly linking system object files so we need to strip them
12425
# from the output so that they don't get included in the library
12427
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'
12430
if test "$GXX" = yes; then
12431
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'
12433
# FIXME: insert proper C++ library support
12441
if test $with_gnu_ld = no; then
12442
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12443
hardcode_libdir_separator_CXX=:
12449
export_dynamic_flag_spec_CXX='${wl}-E'
12455
hardcode_direct_CXX=no
12456
hardcode_shlibpath_var_CXX=no
12459
hardcode_direct_CXX=yes
12460
hardcode_direct_absolute_CXX=yes
12461
hardcode_minus_L_CXX=yes # Not in the search PATH,
12462
# but as the default
12463
# location of the library.
12467
case $cc_basename in
12469
# FIXME: insert proper C++ library support
12475
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12478
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12481
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12484
# Commands to make compiler produce verbose output that lists
12485
# what "hidden" libraries, object files and flags are used when
12486
# linking a shared library.
12488
# There doesn't appear to be a way to prevent this compiler from
12489
# explicitly linking system object files so we need to strip them
12490
# from the output so that they don't get included in the library
12492
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'
12495
if test "$GXX" = yes; then
12496
if test $with_gnu_ld = no; then
12499
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12502
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12505
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'
12510
# FIXME: insert proper C++ library support
12518
hardcode_direct_CXX=no
12519
hardcode_shlibpath_var_CXX=no
12520
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12521
export_dynamic_flag_spec_CXX='${wl}-E'
12522
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12523
# Instead, shared libraries are loaded at an image base (0x10000000 by
12524
# default) and relocated if they conflict, which is a slow very memory
12525
# consuming and fragmenting process. To avoid this, we pick a random,
12526
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12527
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12528
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'
12529
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'
12532
case $cc_basename in
12535
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'
12537
# Archives containing C++ object files must be created using
12538
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12539
# necessary to make sure instantiated templates are included
12541
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12544
if test "$GXX" = yes; then
12545
if test "$with_gnu_ld" = no; then
12546
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'
12548
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'
12551
link_all_deplibs_CXX=yes
12554
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12555
hardcode_libdir_separator_CXX=:
12556
inherit_rpath_CXX=yes
12559
linux* | k*bsd*-gnu | kopensolaris*-gnu)
12560
case $cc_basename in
12562
# Kuck and Associates, Inc. (KAI) C++ Compiler
12564
# KCC will only create a shared library if the output file
12565
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12566
# to its proper name (with version) after linking.
12567
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'
12568
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'
12569
# Commands to make compiler produce verbose output that lists
12570
# what "hidden" libraries, object files and flags are used when
12571
# linking a shared library.
12573
# There doesn't appear to be a way to prevent this compiler from
12574
# explicitly linking system object files so we need to strip them
12575
# from the output so that they don't get included in the library
12577
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'
12579
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12580
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12582
# Archives containing C++ object files must be created using
12583
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12584
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12589
# version 8.0 and above of icpc choke on multiply defined symbols
12590
# if we add $predep_objects and $postdep_objects, however 7.1 and
12591
# earlier do not add the objects themselves.
12592
case `$CC -V 2>&1` in
12594
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12595
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'
12597
*) # Version 8.0 or newer
12600
ia64*) tmp_idyn=' -i_dynamic';;
12602
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12603
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'
12606
archive_cmds_need_lc_CXX=no
12607
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12608
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12609
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12612
# Portland Group C++ compiler
12614
*pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12615
prelink_cmds_CXX='tpldir=Template.dir~
12617
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12618
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12619
old_archive_cmds_CXX='tpldir=Template.dir~
12621
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12622
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12624
archive_cmds_CXX='tpldir=Template.dir~
12626
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12627
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12628
archive_expsym_cmds_CXX='tpldir=Template.dir~
12630
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12631
$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'
12633
*) # Version 6 will use weak symbols
12634
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12635
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'
12639
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12640
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12641
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'
12645
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12646
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'
12648
runpath_var=LD_RUN_PATH
12649
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12650
hardcode_libdir_separator_CXX=:
12652
# Commands to make compiler produce verbose output that lists
12653
# what "hidden" libraries, object files and flags are used when
12654
# linking a shared library.
12656
# There doesn't appear to be a way to prevent this compiler from
12657
# explicitly linking system object files so we need to strip them
12658
# from the output so that they don't get included in the library
12660
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'
12663
# IBM XL 8.0 on PPC, with GNU ld
12664
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12665
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12666
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12667
if test "x$supports_anon_versioning" = xyes; then
12668
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12669
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12670
echo "local: *; };" >> $output_objdir/$libname.ver~
12671
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12675
case `$CC -V 2>&1 | sed 5q` in
12678
no_undefined_flag_CXX=' -zdefs'
12679
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12680
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'
12681
hardcode_libdir_flag_spec_CXX='-R$libdir'
12682
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'
12683
compiler_needs_object_CXX=yes
12685
# Not sure whether something based on
12686
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12688
output_verbose_link_cmd='echo'
12690
# Archives containing C++ object files must be created using
12691
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12692
# necessary to make sure instantiated templates are included
12694
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12702
# FIXME: insert proper C++ library support
12707
# FIXME: insert proper C++ library support
12712
case $cc_basename in
12714
# FIXME: insert proper C++ library support
12718
# FIXME: insert proper C++ library support
12725
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12726
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12728
hardcode_libdir_flag_spec_CXX='-R$libdir'
12729
hardcode_direct_CXX=yes
12730
hardcode_shlibpath_var_CXX=no
12732
# Workaround some broken pre-1.5 toolchains
12733
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12741
# C++ shared libraries are fairly broken
12746
if test -f /usr/libexec/ld.so; then
12747
hardcode_direct_CXX=yes
12748
hardcode_shlibpath_var_CXX=no
12749
hardcode_direct_absolute_CXX=yes
12750
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12751
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12752
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12753
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12754
export_dynamic_flag_spec_CXX='${wl}-E'
12755
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12757
output_verbose_link_cmd=echo
12763
osf3* | osf4* | osf5*)
12764
case $cc_basename in
12766
# Kuck and Associates, Inc. (KAI) C++ Compiler
12768
# KCC will only create a shared library if the output file
12769
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12770
# to its proper name (with version) after linking.
12771
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'
12773
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12774
hardcode_libdir_separator_CXX=:
12776
# Archives containing C++ object files must be created using
12777
# the KAI C++ compiler.
12779
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12780
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12784
# Rational C++ 2.4.1
12785
# FIXME: insert proper C++ library support
12791
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12792
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'
12793
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12796
allow_undefined_flag_CXX=' -expect_unresolved \*'
12797
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'
12798
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12799
echo "-hidden">> $lib.exp~
12800
$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~
12802
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12806
hardcode_libdir_separator_CXX=:
12808
# Commands to make compiler produce verbose output that lists
12809
# what "hidden" libraries, object files and flags are used when
12810
# linking a shared library.
12812
# There doesn't appear to be a way to prevent this compiler from
12813
# explicitly linking system object files so we need to strip them
12814
# from the output so that they don't get included in the library
12816
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'
12819
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12820
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12823
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'
12826
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'
12830
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12831
hardcode_libdir_separator_CXX=:
12833
# Commands to make compiler produce verbose output that lists
12834
# what "hidden" libraries, object files and flags are used when
12835
# linking a shared library.
12836
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12839
# FIXME: insert proper C++ library support
12847
# FIXME: insert proper C++ library support
12852
case $cc_basename in
12855
# FIXME: insert proper C++ library support
12860
# FIXME: insert proper C++ library support
12864
# FIXME: insert proper C++ library support
12871
case $cc_basename in
12873
# Sun C++ 4.2, 5.x and Centerline C++
12874
archive_cmds_need_lc_CXX=yes
12875
no_undefined_flag_CXX=' -zdefs'
12876
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12877
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12878
$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'
12880
hardcode_libdir_flag_spec_CXX='-R$libdir'
12881
hardcode_shlibpath_var_CXX=no
12883
solaris2.[0-5] | solaris2.[0-5].*) ;;
12885
# The compiler driver will combine and reorder linker options,
12886
# but understands `-z linker_flag'.
12887
# Supported since Solaris 2.6 (maybe 2.5.1?)
12888
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12891
link_all_deplibs_CXX=yes
12893
output_verbose_link_cmd='echo'
12895
# Archives containing C++ object files must be created using
12896
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12897
# necessary to make sure instantiated templates are included
12899
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12902
# Green Hills C++ Compiler
12903
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12905
# The C++ compiler must be used to create the archive.
12906
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12909
# GNU C++ compiler with Solaris linker
12910
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12911
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12912
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12913
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12914
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12915
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12917
# Commands to make compiler produce verbose output that lists
12918
# what "hidden" libraries, object files and flags are used when
12919
# linking a shared library.
12920
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12922
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12924
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12925
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12926
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12928
# Commands to make compiler produce verbose output that lists
12929
# what "hidden" libraries, object files and flags are used when
12930
# linking a shared library.
12931
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12934
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12936
solaris2.[0-5] | solaris2.[0-5].*) ;;
12938
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12946
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12947
no_undefined_flag_CXX='${wl}-z,text'
12948
archive_cmds_need_lc_CXX=no
12949
hardcode_shlibpath_var_CXX=no
12950
runpath_var='LD_RUN_PATH'
12952
case $cc_basename in
12954
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12955
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12958
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12959
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12964
sysv5* | sco3.2v5* | sco5v6*)
12965
# Note: We can NOT use -z defs as we might desire, because we do not
12966
# link with -lc, and that would cause any symbols used from libc to
12967
# always be unresolved, which means just about no library would
12968
# ever link correctly. If we're not using GNU ld we use -z text
12969
# though, which does catch some bad symbols but isn't as heavy-handed
12971
no_undefined_flag_CXX='${wl}-z,text'
12972
allow_undefined_flag_CXX='${wl}-z,nodefs'
12973
archive_cmds_need_lc_CXX=no
12974
hardcode_shlibpath_var_CXX=no
12975
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12976
hardcode_libdir_separator_CXX=':'
12977
link_all_deplibs_CXX=yes
12978
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12979
runpath_var='LD_RUN_PATH'
12981
case $cc_basename in
12983
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12984
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12987
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12988
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12994
case $cc_basename in
12996
# NonStop-UX NCC 3.20
12997
# FIXME: insert proper C++ library support
13001
# FIXME: insert proper C++ library support
13008
# FIXME: insert proper C++ library support
13013
# FIXME: insert proper C++ library support
13018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13019
$as_echo "$ld_shlibs_CXX" >&6; }
13020
test "$ld_shlibs_CXX" = no && can_build_shared=no
13026
## There is no encapsulation within the following macros, do not change
13027
## the running order or otherwise move them around unless you know exactly
13028
## what you are doing...
13029
# Dependencies to place before and after the object being linked:
13030
predep_objects_CXX=
13031
postdep_objects_CXX=
13034
compiler_lib_search_path_CXX=
13036
cat > conftest.$ac_ext <<_LT_EOF
13040
Foo (void) { a = 0; }
13046
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13047
(eval $ac_compile) 2>&5
13049
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13050
test $ac_status = 0; }; then
13051
# Parse the compiler output and extract the necessary
13052
# objects, libraries and library flags.
13054
# Sentinel used to keep track of whether or not we are before
13055
# the conftest object file.
13056
pre_test_object_deps_done=no
13058
for p in `eval "$output_verbose_link_cmd"`; do
13062
# Some compilers place space between "-{L,R}" and the path.
13063
# Remove the space.
13064
if test $p = "-L" ||
13065
test $p = "-R"; then
13072
if test "$pre_test_object_deps_done" = no; then
13075
# Internal compiler library paths should come after those
13076
# provided the user. The postdeps already come after the
13077
# user supplied libs so there is no need to process them.
13078
if test -z "$compiler_lib_search_path_CXX"; then
13079
compiler_lib_search_path_CXX="${prev}${p}"
13081
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13084
# The "-l" case would never come before the object being
13085
# linked, so don't bother handling this case.
13088
if test -z "$postdeps_CXX"; then
13089
postdeps_CXX="${prev}${p}"
13091
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13097
# This assumes that the test object file only shows up
13098
# once in the compiler output.
13099
if test "$p" = "conftest.$objext"; then
13100
pre_test_object_deps_done=yes
13104
if test "$pre_test_object_deps_done" = no; then
13105
if test -z "$predep_objects_CXX"; then
13106
predep_objects_CXX="$p"
13108
predep_objects_CXX="$predep_objects_CXX $p"
13111
if test -z "$postdep_objects_CXX"; then
13112
postdep_objects_CXX="$p"
13114
postdep_objects_CXX="$postdep_objects_CXX $p"
13119
*) ;; # Ignore the rest.
13127
echo "libtool.m4: error: problem compiling CXX test program"
13130
$RM -f confest.$objext
13132
# PORTME: override above test on systems where it is broken
13135
# Interix 3.5 installs completely hosed .la files for C++, so rather than
13136
# hack all around it, let's just trust "g++" to DTRT.
13137
predep_objects_CXX=
13138
postdep_objects_CXX=
13143
case `$CC -V 2>&1 | sed 5q` in
13147
# The more standards-conforming stlport4 library is
13148
# incompatible with the Cstd library. Avoid specifying
13149
# it if it's in CXXFLAGS. Ignore libCrun as
13150
# -library=stlport4 depends on it.
13151
case " $CXX $CXXFLAGS " in
13152
*" -library=stlport4 "*)
13153
solaris_use_stlport4=yes
13157
if test "$solaris_use_stlport4" != yes; then
13158
postdeps_CXX='-library=Cstd -library=Crun'
13165
case $cc_basename in
13167
# The more standards-conforming stlport4 library is
13168
# incompatible with the Cstd library. Avoid specifying
13169
# it if it's in CXXFLAGS. Ignore libCrun as
13170
# -library=stlport4 depends on it.
13171
case " $CXX $CXXFLAGS " in
13172
*" -library=stlport4 "*)
13173
solaris_use_stlport4=yes
13177
# Adding this requires a known-good setup of shared libraries for
13178
# Sun compiler versions before 5.6, else PIC objects from an old
13179
# archive will be linked into the output, leading to subtle bugs.
13180
if test "$solaris_use_stlport4" != yes; then
13181
postdeps_CXX='-library=Cstd -library=Crun'
13189
case " $postdeps_CXX " in
13190
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13192
compiler_lib_search_dirs_CXX=
13193
if test -n "${compiler_lib_search_path_CXX}"; then
13194
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13227
lt_prog_compiler_wl_CXX=
13228
lt_prog_compiler_pic_CXX=
13229
lt_prog_compiler_static_CXX=
13231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13232
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13234
# C++ specific cases for pic, static, wl, etc.
13235
if test "$GXX" = yes; then
13236
lt_prog_compiler_wl_CXX='-Wl,'
13237
lt_prog_compiler_static_CXX='-static'
13241
# All AIX code is PIC.
13242
if test "$host_cpu" = ia64; then
13243
# AIX 5 now supports IA64 processor
13244
lt_prog_compiler_static_CXX='-Bstatic'
13251
# see comment about AmigaOS4 .so support
13252
lt_prog_compiler_pic_CXX='-fPIC'
13255
# FIXME: we need at least 68020 code to build shared libraries, but
13256
# adding the `-m68020' flag to GCC prevents building anything better,
13258
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13263
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13264
# PIC is the default for these OSes.
13266
mingw* | cygwin* | os2* | pw32* | cegcc*)
13267
# This hack is so that the source file can tell whether it is being
13268
# built for inclusion in a dll (and should export symbols for example).
13269
# Although the cygwin gcc ignores -fPIC, still need this for old-style
13270
# (--disable-auto-import) libraries
13271
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13273
darwin* | rhapsody*)
13274
# PIC is the default on this platform
13275
# Common symbols not allowed in MH_DYLIB files
13276
lt_prog_compiler_pic_CXX='-fno-common'
13279
# DJGPP does not support shared libraries at all
13280
lt_prog_compiler_pic_CXX=
13283
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13284
# Instead, we relocate shared libraries at runtime.
13287
if test -d /usr/nec; then
13288
lt_prog_compiler_pic_CXX=-Kconform_pic
13292
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13293
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13294
# sets the default TLS model and affects inlining.
13299
lt_prog_compiler_pic_CXX='-fPIC'
13304
# QNX uses GNU C++, but need to define -shared option too, otherwise
13305
# it will coredump.
13306
lt_prog_compiler_pic_CXX='-fPIC -shared'
13309
lt_prog_compiler_pic_CXX='-fPIC'
13315
# All AIX code is PIC.
13316
if test "$host_cpu" = ia64; then
13317
# AIX 5 now supports IA64 processor
13318
lt_prog_compiler_static_CXX='-Bstatic'
13320
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13324
case $cc_basename in
13326
# Green Hills C++ Compiler
13327
# _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"
13332
case $cc_basename in
13334
lt_prog_compiler_pic_CXX='-KPIC'
13337
# Green Hills C++ Compiler
13338
lt_prog_compiler_pic_CXX='-pic'
13344
freebsd* | dragonfly*)
13345
# FreeBSD uses GNU C++
13347
hpux9* | hpux10* | hpux11*)
13348
case $cc_basename in
13350
lt_prog_compiler_wl_CXX='-Wl,'
13351
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13352
if test "$host_cpu" != ia64; then
13353
lt_prog_compiler_pic_CXX='+Z'
13357
lt_prog_compiler_wl_CXX='-Wl,'
13358
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13364
lt_prog_compiler_pic_CXX='+Z'
13373
# This is c89, which is MS Visual C++ (no shared libs)
13374
# Anyone wants to do a port?
13376
irix5* | irix6* | nonstopux*)
13377
case $cc_basename in
13379
lt_prog_compiler_wl_CXX='-Wl,'
13380
lt_prog_compiler_static_CXX='-non_shared'
13381
# CC pic flag -KPIC is the default.
13387
linux* | k*bsd*-gnu | kopensolaris*-gnu)
13388
case $cc_basename in
13391
lt_prog_compiler_wl_CXX='--backend -Wl,'
13392
lt_prog_compiler_pic_CXX='-fPIC'
13395
# old Intel C++ for x86_64 which still supported -KPIC.
13396
lt_prog_compiler_wl_CXX='-Wl,'
13397
lt_prog_compiler_pic_CXX='-KPIC'
13398
lt_prog_compiler_static_CXX='-static'
13401
# Intel C++, used to be incompatible with GCC.
13402
# ICC 10 doesn't accept -KPIC any more.
13403
lt_prog_compiler_wl_CXX='-Wl,'
13404
lt_prog_compiler_pic_CXX='-fPIC'
13405
lt_prog_compiler_static_CXX='-static'
13408
# Portland Group C++ compiler
13409
lt_prog_compiler_wl_CXX='-Wl,'
13410
lt_prog_compiler_pic_CXX='-fpic'
13411
lt_prog_compiler_static_CXX='-Bstatic'
13415
# Make sure the PIC flag is empty. It appears that all Alpha
13416
# Linux and Compaq Tru64 Unix objects are PIC.
13417
lt_prog_compiler_pic_CXX=
13418
lt_prog_compiler_static_CXX='-non_shared'
13421
# IBM XL 8.0 on PPC
13422
lt_prog_compiler_wl_CXX='-Wl,'
13423
lt_prog_compiler_pic_CXX='-qpic'
13424
lt_prog_compiler_static_CXX='-qstaticlink'
13427
case `$CC -V 2>&1 | sed 5q` in
13430
lt_prog_compiler_pic_CXX='-KPIC'
13431
lt_prog_compiler_static_CXX='-Bstatic'
13432
lt_prog_compiler_wl_CXX='-Qoption ld '
13443
case $cc_basename in
13445
lt_prog_compiler_pic_CXX='-W c,exportall'
13451
netbsd* | netbsdelf*-gnu)
13454
# QNX uses GNU C++, but need to define -shared option too, otherwise
13455
# it will coredump.
13456
lt_prog_compiler_pic_CXX='-fPIC -shared'
13458
osf3* | osf4* | osf5*)
13459
case $cc_basename in
13461
lt_prog_compiler_wl_CXX='--backend -Wl,'
13464
# Rational C++ 2.4.1
13465
lt_prog_compiler_pic_CXX='-pic'
13468
# Digital/Compaq C++
13469
lt_prog_compiler_wl_CXX='-Wl,'
13470
# Make sure the PIC flag is empty. It appears that all Alpha
13471
# Linux and Compaq Tru64 Unix objects are PIC.
13472
lt_prog_compiler_pic_CXX=
13473
lt_prog_compiler_static_CXX='-non_shared'
13482
case $cc_basename in
13484
# Sun C++ 4.2, 5.x and Centerline C++
13485
lt_prog_compiler_pic_CXX='-KPIC'
13486
lt_prog_compiler_static_CXX='-Bstatic'
13487
lt_prog_compiler_wl_CXX='-Qoption ld '
13490
# Green Hills C++ Compiler
13491
lt_prog_compiler_pic_CXX='-PIC'
13498
case $cc_basename in
13501
lt_prog_compiler_pic_CXX='-pic'
13502
lt_prog_compiler_static_CXX='-Bstatic'
13506
lt_prog_compiler_pic_CXX='-pic'
13512
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13513
case $cc_basename in
13515
lt_prog_compiler_wl_CXX='-Wl,'
13516
lt_prog_compiler_pic_CXX='-KPIC'
13517
lt_prog_compiler_static_CXX='-Bstatic'
13522
case $cc_basename in
13524
# NonStop-UX NCC 3.20
13525
lt_prog_compiler_pic_CXX='-KPIC'
13534
lt_prog_compiler_can_build_shared_CXX=no
13540
# For platforms which do not support PIC, -DPIC is meaningless:
13542
lt_prog_compiler_pic_CXX=
13545
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13549
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13554
# Check to make sure the PIC flag actually works.
13556
if test -n "$lt_prog_compiler_pic_CXX"; then
13557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13558
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13559
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13560
$as_echo_n "(cached) " >&6
13562
lt_cv_prog_compiler_pic_works_CXX=no
13563
ac_outfile=conftest.$ac_objext
13564
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13565
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13566
# Insert the option either (1) after the last *FLAGS variable, or
13567
# (2) before a word containing "conftest.", or (3) at the end.
13568
# Note that $ac_compile itself does not contain backslashes and begins
13569
# with a dollar sign (not a hyphen), so the echo should work correctly.
13570
# The option is referenced via a variable to avoid confusing sed.
13571
lt_compile=`echo "$ac_compile" | $SED \
13572
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13573
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13574
-e 's:$: $lt_compiler_flag:'`
13575
(eval echo "\"\$as_me:13575: $lt_compile\"" >&5)
13576
(eval "$lt_compile" 2>conftest.err)
13578
cat conftest.err >&5
13579
echo "$as_me:13579: \$? = $ac_status" >&5
13580
if (exit $ac_status) && test -s "$ac_outfile"; then
13581
# The compiler can only warn and ignore the option if not recognized
13582
# So say no if there are warnings other than the usual output.
13583
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13584
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13585
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13586
lt_cv_prog_compiler_pic_works_CXX=yes
13592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13593
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13595
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13596
case $lt_prog_compiler_pic_CXX in
13598
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13601
lt_prog_compiler_pic_CXX=
13602
lt_prog_compiler_can_build_shared_CXX=no
13610
# Check to make sure the static flag actually works.
13612
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13613
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13614
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13615
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13616
$as_echo_n "(cached) " >&6
13618
lt_cv_prog_compiler_static_works_CXX=no
13619
save_LDFLAGS="$LDFLAGS"
13620
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13621
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13622
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13623
# The linker can only warn and ignore the option if not recognized
13624
# So say no if there are warnings
13625
if test -s conftest.err; then
13626
# Append any errors to the config.log.
13627
cat conftest.err 1>&5
13628
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13629
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13630
if diff conftest.exp conftest.er2 >/dev/null; then
13631
lt_cv_prog_compiler_static_works_CXX=yes
13634
lt_cv_prog_compiler_static_works_CXX=yes
13638
LDFLAGS="$save_LDFLAGS"
13641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13642
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13644
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13647
lt_prog_compiler_static_CXX=
13653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13654
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13655
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13656
$as_echo_n "(cached) " >&6
13658
lt_cv_prog_compiler_c_o_CXX=no
13659
$RM -r conftest 2>/dev/null
13663
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13665
lt_compiler_flag="-o out/conftest2.$ac_objext"
13666
# Insert the option either (1) after the last *FLAGS variable, or
13667
# (2) before a word containing "conftest.", or (3) at the end.
13668
# Note that $ac_compile itself does not contain backslashes and begins
13669
# with a dollar sign (not a hyphen), so the echo should work correctly.
13670
lt_compile=`echo "$ac_compile" | $SED \
13671
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13672
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13673
-e 's:$: $lt_compiler_flag:'`
13674
(eval echo "\"\$as_me:13674: $lt_compile\"" >&5)
13675
(eval "$lt_compile" 2>out/conftest.err)
13677
cat out/conftest.err >&5
13678
echo "$as_me:13678: \$? = $ac_status" >&5
13679
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13681
# The compiler can only warn and ignore the option if not recognized
13682
# So say no if there are warnings
13683
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13684
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13685
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13686
lt_cv_prog_compiler_c_o_CXX=yes
13691
# SGI C++ compiler will create directory out/ii_files/ for
13692
# template instantiation
13693
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13694
$RM out/* && rmdir out
13700
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13701
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13705
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13706
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13707
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13708
$as_echo_n "(cached) " >&6
13710
lt_cv_prog_compiler_c_o_CXX=no
13711
$RM -r conftest 2>/dev/null
13715
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13717
lt_compiler_flag="-o out/conftest2.$ac_objext"
13718
# Insert the option either (1) after the last *FLAGS variable, or
13719
# (2) before a word containing "conftest.", or (3) at the end.
13720
# Note that $ac_compile itself does not contain backslashes and begins
13721
# with a dollar sign (not a hyphen), so the echo should work correctly.
13722
lt_compile=`echo "$ac_compile" | $SED \
13723
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13724
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13725
-e 's:$: $lt_compiler_flag:'`
13726
(eval echo "\"\$as_me:13726: $lt_compile\"" >&5)
13727
(eval "$lt_compile" 2>out/conftest.err)
13729
cat out/conftest.err >&5
13730
echo "$as_me:13730: \$? = $ac_status" >&5
13731
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13733
# The compiler can only warn and ignore the option if not recognized
13734
# So say no if there are warnings
13735
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13736
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13737
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13738
lt_cv_prog_compiler_c_o_CXX=yes
13743
# SGI C++ compiler will create directory out/ii_files/ for
13744
# template instantiation
13745
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13746
$RM out/* && rmdir out
13752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13753
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13758
hard_links="nottested"
13759
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13760
# do not overwrite the value of need_locks provided by the user
13761
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13762
$as_echo_n "checking if we can lock with hard links... " >&6; }
13765
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13767
ln conftest.a conftest.b 2>&5 || hard_links=no
13768
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13769
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13770
$as_echo "$hard_links" >&6; }
13771
if test "$hard_links" = no; then
13772
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13773
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13783
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13785
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13788
# If we're using GNU nm, then we don't want the "-C" option.
13789
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13790
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13791
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'
13793
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'
13797
export_symbols_cmds_CXX="$ltdll_cmds"
13799
cygwin* | mingw* | cegcc*)
13800
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'
13802
linux* | k*bsd*-gnu)
13803
link_all_deplibs_CXX=no
13806
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13809
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13812
$as_echo "$ld_shlibs_CXX" >&6; }
13813
test "$ld_shlibs_CXX" = no && can_build_shared=no
13815
with_gnu_ld_CXX=$with_gnu_ld
13823
# Do we need to explicitly link libc?
13825
case "x$archive_cmds_need_lc_CXX" in
13827
# Assume -lc should be added
13828
archive_cmds_need_lc_CXX=yes
13830
if test "$enable_shared" = yes && test "$GCC" = yes; then
13831
case $archive_cmds_CXX in
13833
# FIXME: we may have to deal with multi-command sequences.
13836
# Test whether the compiler implicitly links with -lc since on some
13837
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13838
# to ld, don't add -lc before -lgcc.
13839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13840
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13842
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13844
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13845
(eval $ac_compile) 2>&5
13847
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13848
test $ac_status = 0; } 2>conftest.err; then
13851
libobjs=conftest.$ac_objext
13853
wl=$lt_prog_compiler_wl_CXX
13854
pic_flag=$lt_prog_compiler_pic_CXX
13860
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13861
allow_undefined_flag_CXX=
13862
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13863
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13865
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13866
test $ac_status = 0; }
13868
archive_cmds_need_lc_CXX=no
13870
archive_cmds_need_lc_CXX=yes
13872
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13874
cat conftest.err 1>&5
13877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13878
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13949
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13951
library_names_spec=
13952
libname_spec='lib$name'
13956
postuninstall_cmds=
13960
shlibpath_overrides_runpath=unknown
13962
dynamic_linker="$host_os ld.so"
13963
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13964
need_lib_prefix=unknown
13965
hardcode_into_libs=no
13967
# when you set need_version to no, make sure it does not cause -set_version
13968
# flags to be left without arguments
13969
need_version=unknown
13974
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13975
shlibpath_var=LIBPATH
13977
# AIX 3 has no versioning support, so we append a major version to the name.
13978
soname_spec='${libname}${release}${shared_ext}$major'
13985
hardcode_into_libs=yes
13986
if test "$host_cpu" = ia64; then
13987
# AIX 5 supports IA64
13988
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13989
shlibpath_var=LD_LIBRARY_PATH
13991
# With GCC up to 2.95.x, collect2 would create an import file
13992
# for dependence libraries. The import file would start with
13993
# the line `#! .'. This would cause the generated library to
13994
# depend on `.', always an invalid library. This was fixed in
13995
# development snapshots of GCC prior to 3.0.
13997
aix4 | aix4.[01] | aix4.[01].*)
13998
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14000
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14003
can_build_shared=no
14007
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14008
# soname into executable. Probably we can add versioning support to
14009
# collect2, so additional links can be useful in future.
14010
if test "$aix_use_runtimelinking" = yes; then
14011
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14012
# instead of lib<name>.a to let people know that these are not
14013
# typical AIX shared libraries.
14014
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14016
# We preserve .a as extension for shared libraries through AIX4.2
14017
# and later when we are not doing run time linking.
14018
library_names_spec='${libname}${release}.a $libname.a'
14019
soname_spec='${libname}${release}${shared_ext}$major'
14021
shlibpath_var=LIBPATH
14028
# Since July 2007 AmigaOS4 officially supports .so libraries.
14029
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14030
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14033
library_names_spec='$libname.ixlibrary $libname.a'
14034
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14035
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'
14041
library_names_spec='${libname}${shared_ext}'
14042
dynamic_linker="$host_os ld.so"
14043
shlibpath_var=LIBRARY_PATH
14049
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14050
soname_spec='${libname}${release}${shared_ext}$major'
14051
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14052
shlibpath_var=LD_LIBRARY_PATH
14053
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14054
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14055
# the default ld.so.conf also contains /usr/contrib/lib and
14056
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14057
# libtool to hard-code these into programs
14060
cygwin* | mingw* | pw32* | cegcc*)
14061
version_type=windows
14066
case $GCC,$host_os in
14067
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14068
library_names_spec='$libname.dll.a'
14069
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14070
postinstall_cmds='base_file=`basename \${file}`~
14071
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14072
dldir=$destdir/`dirname \$dlpath`~
14073
test -d \$dldir || mkdir -p \$dldir~
14074
$install_prog $dir/$dlname \$dldir/$dlname~
14075
chmod a+x \$dldir/$dlname~
14076
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14077
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14079
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14080
dlpath=$dir/\$dldll~
14082
shlibpath_overrides_runpath=yes
14086
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14087
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14088
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14091
# MinGW DLLs use traditional 'lib' prefix
14092
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14093
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14094
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14095
# It is most probably a Windows format PATH printed by
14096
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14097
# path with ; separators, and with drive letters. We can handle the
14098
# drive letters (cygwin fileutils understands them), so leave them,
14099
# especially as we might pass files found there to a mingw objdump,
14100
# which wouldn't understand a cygwinified path. Ahh.
14101
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14103
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14107
# pw32 DLLs use 'pw' prefix rather than 'lib'
14108
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14114
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14117
dynamic_linker='Win32 ld.exe'
14118
# FIXME: first we should search . and the directory the executable is in
14122
darwin* | rhapsody*)
14123
dynamic_linker="$host_os dyld"
14124
version_type=darwin
14127
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14128
soname_spec='${libname}${release}${major}$shared_ext'
14129
shlibpath_overrides_runpath=yes
14130
shlibpath_var=DYLD_LIBRARY_PATH
14131
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14133
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14140
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14141
soname_spec='${libname}${release}${shared_ext}$major'
14142
shlibpath_var=LD_LIBRARY_PATH
14149
freebsd* | dragonfly*)
14150
# DragonFly does not have aout. When/if they implement a new
14151
# versioning mechanism, adjust this.
14152
if test -x /usr/bin/objformat; then
14153
objformat=`/usr/bin/objformat`
14156
freebsd[123]*) objformat=aout ;;
14157
*) objformat=elf ;;
14160
version_type=freebsd-$objformat
14161
case $version_type in
14163
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14168
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14172
shlibpath_var=LD_LIBRARY_PATH
14175
shlibpath_overrides_runpath=yes
14177
freebsd3.[01]* | freebsdelf3.[01]*)
14178
shlibpath_overrides_runpath=yes
14179
hardcode_into_libs=yes
14181
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14182
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14183
shlibpath_overrides_runpath=no
14184
hardcode_into_libs=yes
14186
*) # from 4.6 on, and DragonFly
14187
shlibpath_overrides_runpath=yes
14188
hardcode_into_libs=yes
14197
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14198
soname_spec='${libname}${release}${shared_ext}$major'
14199
shlibpath_var=LD_LIBRARY_PATH
14200
hardcode_into_libs=yes
14203
hpux9* | hpux10* | hpux11*)
14204
# Give a soname corresponding to the major version so that dld.sl refuses to
14205
# link against other versions.
14212
hardcode_into_libs=yes
14213
dynamic_linker="$host_os dld.so"
14214
shlibpath_var=LD_LIBRARY_PATH
14215
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14216
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14217
soname_spec='${libname}${release}${shared_ext}$major'
14218
if test "X$HPUX_IA64_MODE" = X32; then
14219
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14221
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14223
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14227
hardcode_into_libs=yes
14228
dynamic_linker="$host_os dld.sl"
14229
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14230
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14231
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14232
soname_spec='${libname}${release}${shared_ext}$major'
14233
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14234
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14238
dynamic_linker="$host_os dld.sl"
14239
shlibpath_var=SHLIB_PATH
14240
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14241
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14242
soname_spec='${libname}${release}${shared_ext}$major'
14245
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14246
postinstall_cmds='chmod 555 $lib'
14253
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14254
soname_spec='${libname}${release}${shared_ext}$major'
14255
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14256
shlibpath_var=LD_LIBRARY_PATH
14257
shlibpath_overrides_runpath=no
14258
hardcode_into_libs=yes
14261
irix5* | irix6* | nonstopux*)
14263
nonstopux*) version_type=nonstopux ;;
14265
if test "$lt_cv_prog_gnu_ld" = yes; then
14273
soname_spec='${libname}${release}${shared_ext}$major'
14274
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14276
irix5* | nonstopux*)
14277
libsuff= shlibsuff=
14280
case $LD in # libtool.m4 will add one of these switches to LD
14281
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14282
libsuff= shlibsuff= libmagic=32-bit;;
14283
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14284
libsuff=32 shlibsuff=N32 libmagic=N32;;
14285
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14286
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14287
*) libsuff= shlibsuff= libmagic=never-match;;
14291
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14292
shlibpath_overrides_runpath=no
14293
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14294
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14295
hardcode_into_libs=yes
14298
# No shared lib support for Linux oldld, aout, or coff.
14299
linux*oldld* | linux*aout* | linux*coff*)
14303
# This must be Linux ELF.
14304
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14308
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14309
soname_spec='${libname}${release}${shared_ext}$major'
14310
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14311
shlibpath_var=LD_LIBRARY_PATH
14312
shlibpath_overrides_runpath=no
14313
# Some binutils ld are patched to set DT_RUNPATH
14314
save_LDFLAGS=$LDFLAGS
14315
save_libdir=$libdir
14316
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14317
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14318
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319
/* end confdefs.h. */
14329
if ac_fn_cxx_try_link "$LINENO"; then :
14330
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14331
shlibpath_overrides_runpath=yes
14334
rm -f core conftest.err conftest.$ac_objext \
14335
conftest$ac_exeext conftest.$ac_ext
14336
LDFLAGS=$save_LDFLAGS
14337
libdir=$save_libdir
14339
# This implies no fast_install, which is unacceptable.
14340
# Some rework will be needed to allow for fast_install
14341
# before this can be enabled.
14342
hardcode_into_libs=yes
14344
# Append ld.so.conf contents to the search path
14345
if test -f /etc/ld.so.conf; then
14346
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' ' '`
14347
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14350
# We used to test for /lib/ld.so.1 and disable shared libraries on
14351
# powerpc, because MkLinux only supported shared libraries with the
14352
# GNU dynamic linker. Since this was broken with cross compilers,
14353
# most powerpc-linux boxes support dynamic linking these days and
14354
# people can always --disable-shared, the test was removed, and we
14355
# assume the GNU/Linux dynamic linker is in use.
14356
dynamic_linker='GNU/Linux ld.so'
14363
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14364
soname_spec='${libname}${release}${shared_ext}$major'
14365
shlibpath_var=LD_LIBRARY_PATH
14366
shlibpath_overrides_runpath=no
14367
hardcode_into_libs=yes
14368
dynamic_linker='NetBSD ld.elf_so'
14375
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14377
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14378
dynamic_linker='NetBSD (a.out) ld.so'
14380
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14381
soname_spec='${libname}${release}${shared_ext}$major'
14382
dynamic_linker='NetBSD ld.elf_so'
14384
shlibpath_var=LD_LIBRARY_PATH
14385
shlibpath_overrides_runpath=yes
14386
hardcode_into_libs=yes
14391
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14392
shlibpath_var=LD_LIBRARY_PATH
14393
shlibpath_overrides_runpath=yes
14400
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14401
soname_spec='${libname}${release}${shared_ext}$major'
14402
shlibpath_var=LD_LIBRARY_PATH
14403
shlibpath_overrides_runpath=no
14404
hardcode_into_libs=yes
14405
dynamic_linker='ldqnx.so'
14410
sys_lib_dlsearch_path_spec="/usr/lib"
14412
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14414
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14415
*) need_version=no ;;
14417
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14418
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14419
shlibpath_var=LD_LIBRARY_PATH
14420
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14422
openbsd2.[89] | openbsd2.[89].*)
14423
shlibpath_overrides_runpath=no
14426
shlibpath_overrides_runpath=yes
14430
shlibpath_overrides_runpath=yes
14435
libname_spec='$name'
14438
library_names_spec='$libname${shared_ext} $libname.a'
14439
dynamic_linker='OS/2 ld.exe'
14440
shlibpath_var=LIBPATH
14443
osf3* | osf4* | osf5*)
14447
soname_spec='${libname}${release}${shared_ext}$major'
14448
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14449
shlibpath_var=LD_LIBRARY_PATH
14450
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14451
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14462
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463
soname_spec='${libname}${release}${shared_ext}$major'
14464
shlibpath_var=LD_LIBRARY_PATH
14465
shlibpath_overrides_runpath=yes
14466
hardcode_into_libs=yes
14467
# ldd complains unless libraries are executable
14468
postinstall_cmds='chmod +x $lib'
14473
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14474
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14475
shlibpath_var=LD_LIBRARY_PATH
14476
shlibpath_overrides_runpath=yes
14477
if test "$with_gnu_ld" = yes; then
14485
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14486
soname_spec='${libname}${release}${shared_ext}$major'
14487
shlibpath_var=LD_LIBRARY_PATH
14488
case $host_vendor in
14490
shlibpath_overrides_runpath=no
14492
runpath_var=LD_RUN_PATH
14500
shlibpath_overrides_runpath=no
14501
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14507
if test -d /usr/nec ;then
14509
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14510
soname_spec='$libname${shared_ext}.$major'
14511
shlibpath_var=LD_LIBRARY_PATH
14515
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14516
version_type=freebsd-elf
14519
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14520
soname_spec='${libname}${release}${shared_ext}$major'
14521
shlibpath_var=LD_LIBRARY_PATH
14522
shlibpath_overrides_runpath=yes
14523
hardcode_into_libs=yes
14524
if test "$with_gnu_ld" = yes; then
14525
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14527
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14530
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14534
sys_lib_dlsearch_path_spec='/usr/lib'
14538
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14542
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14543
shlibpath_var=LD_LIBRARY_PATH
14544
shlibpath_overrides_runpath=no
14545
hardcode_into_libs=yes
14550
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14551
soname_spec='${libname}${release}${shared_ext}$major'
14552
shlibpath_var=LD_LIBRARY_PATH
14559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14560
$as_echo "$dynamic_linker" >&6; }
14561
test "$dynamic_linker" = no && can_build_shared=no
14563
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14564
if test "$GCC" = yes; then
14565
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14568
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14569
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14571
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14572
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14610
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14611
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14612
hardcode_action_CXX=
14613
if test -n "$hardcode_libdir_flag_spec_CXX" ||
14614
test -n "$runpath_var_CXX" ||
14615
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14617
# We can hardcode non-existent directories.
14618
if test "$hardcode_direct_CXX" != no &&
14619
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14620
# have to relink, otherwise we might link with an installed library
14621
# when we should be linking with a yet-to-be-installed one
14622
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14623
test "$hardcode_minus_L_CXX" != no; then
14624
# Linking always hardcodes the temporary library directory.
14625
hardcode_action_CXX=relink
14627
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14628
hardcode_action_CXX=immediate
14631
# We cannot hardcode anything, or else we can only hardcode existing
14633
hardcode_action_CXX=unsupported
14635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14636
$as_echo "$hardcode_action_CXX" >&6; }
14638
if test "$hardcode_action_CXX" = relink ||
14639
test "$inherit_rpath_CXX" = yes; then
14640
# Fast installation is not supported
14641
enable_fast_install=no
14642
elif test "$shlibpath_overrides_runpath" = yes ||
14643
test "$enable_shared" = no; then
14644
# Fast installation is not necessary
14645
enable_fast_install=needless
14654
fi # test -n "$compiler"
14660
with_gnu_ld=$lt_save_with_gnu_ld
14661
lt_cv_path_LDCXX=$lt_cv_path_LD
14662
lt_cv_path_LD=$lt_save_path_LD
14663
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14664
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14665
fi # test "$_lt_caught_CXX_error" != yes
14668
ac_cpp='$CPP $CPPFLAGS'
14669
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14670
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14671
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14685
ac_config_commands="$ac_config_commands libtool"
14690
# Only expand once:
14693
if test "$GXX" != "yes"; then
14694
as_fn_error $? "GNU C++ compiler not found, not building LLVM" "$LINENO" 5
14697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
14698
$as_echo_n "checking for GNU make... " >&6; }
14699
if test "${llvm_cv_gnu_make_command+set}" = set; then :
14700
$as_echo_n "(cached) " >&6
14702
llvm_cv_gnu_make_command=''
14703
for a in "$MAKE" make gmake gnumake ; do
14704
if test -z "$a" ; then continue ; fi ;
14705
if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
14707
llvm_cv_gnu_make_command=$a ;
14712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_gnu_make_command" >&5
14713
$as_echo "$llvm_cv_gnu_make_command" >&6; }
14714
if test "x$llvm_cv_gnu_make_command" != "x" ; then
14718
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
14719
$as_echo "\"Not found\"" >&6; };
14723
GMAKE="$llvm_cv_gnu_make_command"
14728
# Check whether --with-system-llvm was given.
14729
if test "${with_system_llvm+set}" = set; then :
14730
withval=$with_system_llvm; case "$withval" in
14732
as_fn_error $? "--with-system-llvm needs full path to llvm-config" "$LINENO" 5
14736
llvmconfig="$withval"
14737
llvmver=`$llvmconfig --version`
14738
if test "$llvmver" != "2.8" -a "$llvmver" != "2.8svn" -a "$llvmver" != "2.8rc"; then
14739
as_fn_error $? "LLVM 2.8 or 2.8svn required, but \"$llvmver\" found" "$LINENO" 5
14741
LLVMCONFIG_CXXFLAGS=`$llvmconfig --cxxflags`
14743
LLVMCONFIG_LDFLAGS=`$llvmconfig --ldflags`
14745
LLVMCONFIG_LIBS=`$llvmconfig --libs jit nativecodegen scalaropts ipo`
14747
LLVMCONFIG_LIBFILES=`$llvmconfig --libfiles jit nativecodegen scalaropts ipo`
14749
{ $as_echo "$as_me:${as_lineno-$LINENO}: Using external LLVM" >&5
14750
$as_echo "$as_me: Using external LLVM" >&6;}
14751
{ $as_echo "$as_me:${as_lineno-$LINENO}: CXXFLAGS from llvm-config: $LLVMCONFIG_CXXFLAGS" >&5
14752
$as_echo "$as_me: CXXFLAGS from llvm-config: $LLVMCONFIG_CXXFLAGS" >&6;}
14753
{ $as_echo "$as_me:${as_lineno-$LINENO}: LDFLAGS from llvm-config: $LLVMCONFIG_LDFLAGS" >&5
14754
$as_echo "$as_me: LDFLAGS from llvm-config: $LLVMCONFIG_LDFLAGS" >&6;}
14755
{ $as_echo "$as_me:${as_lineno-$LINENO}: LIBS from llvm-config: $LLVMCONFIG_LIBS" >&5
14756
$as_echo "$as_me: LIBS from llvm-config: $LLVMCONFIG_LIBS" >&6;}
14763
if test "x$llvmconfig" = "x"; then
14766
subdirs="$subdirs llvm"
14770
# Check whether --enable-llvm was given.
14771
if test "${enable_llvm+set}" = set; then :
14772
enableval=$enable_llvm; enable_llvm=$enableval
14778
# Check whether --enable-optimized was given.
14779
if test "${enable_optimized+set}" = set; then :
14780
enableval=$enable_optimized; enable_optimized=$enableval
14782
enable_optimized=default
14785
if test "x$enable_optimized" = "xno"; then
14787
DEBUG_BUILD_FALSE='#'
14789
DEBUG_BUILD_TRUE='#'
14794
if test "$enable_optimized" = "default"; then
14795
ac_configure_args="$ac_configure_args --enable-optimized"
14798
ac_configure_args="$ac_configure_args llvm_cv_gnu_make_command=make"
14799
# Check whether --enable-all-jit-targets was given.
14800
if test "${enable_all_jit_targets+set}" = set; then :
14801
enableval=$enable_all_jit_targets; enable_alltargets=$enableval
14803
enable_alltargets=no
14806
if test "$enable_alltargets" = "yes"; then
14807
new_args="$ac_configure_args --enable-targets=x86,powerpc --enable-bindings=none --enable-libffi=no --without-llvmgcc --without-llvmgxx"
14809
new_args="$ac_configure_args --enable-targets=host-only --enable-bindings=none --enable-libffi=no --without-llvmgcc --without-llvmgxx"
14811
ac_configure_args=`echo $new_args | sed -e 's/-Werror //g'`
14813
if test "$enable_llvm" = "auto"; then
14814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported C++ compiler version" >&5
14815
$as_echo_n "checking for supported C++ compiler version... " >&6; }
14816
gxx_version=`${CXX} -dumpversion` ||
14817
as_fn_error $? "Unable to get GNU C++ compiler version" "$LINENO" 5
14818
case "${gxx_version}" in
14820
as_fn_error $? "C++ compiler too old (${gxx_version})" "$LINENO" 5
14823
as_fn_error $? "C++ compiler is buggy" "$LINENO" 5
14826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gxx_version})" >&5
14827
$as_echo "ok (${gxx_version})" >&6; }
14830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported OS" >&5
14831
$as_echo_n "checking for supported OS... " >&6; }
14832
case "$target_cpu" in
14833
i?86|amd64|x86_64|powerpc*)
14834
case "$target_os" in
14835
darwin*|freebsd*|openbsd*|netbsd*|dragonfly*|linux*|solaris*|win32*|mingw*)
14836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok ($target_cpu-$target_os)" >&5
14837
$as_echo "ok ($target_cpu-$target_os)" >&6; }
14840
as_fn_error $? "OS $target_os is not supported, not building LLVM" "$LINENO" 5
14845
as_fn_error $? "CPU support is untested, not building LLVM" "$LINENO" 5
14848
as_fn_error $? "Unsupported CPU for JIT: $target_cpu, not building LLVM" "$LINENO" 5
14853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libstdc++" >&5
14854
$as_echo_n "checking for working libstdc++... " >&6; }
14856
ac_cpp='$CXXCPP $CPPFLAGS'
14857
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14858
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14859
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14861
if test "$cross_compiling" = yes; then :
14862
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863
/* end confdefs.h. */
14865
#include <iostream>
14868
// this causes an @GLIBCXX_3.4.9 symbol to be linked in -O2 mode
14869
std::cout << "test";
14874
if ac_fn_cxx_try_link "$LINENO"; then :
14875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14876
$as_echo "yes" >&6; }
14878
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14879
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14880
as_fn_error $? "failed
14881
See \`config.log' for more details" "$LINENO" 5 ; }
14884
rm -f core conftest.err conftest.$ac_objext \
14885
conftest$ac_exeext conftest.$ac_ext
14887
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888
/* end confdefs.h. */
14890
#include <iostream>
14893
// this causes an @GLIBCXX_3.4.9 symbol to be linked in -O2 mode
14894
std::cout << "test";
14899
if ac_fn_cxx_try_run "$LINENO"; then :
14900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14901
$as_echo "yes" >&6; }
14903
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14904
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14905
as_fn_error $? "failed
14906
See \`config.log' for more details" "$LINENO" 5 ; }
14908
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14909
conftest.$ac_objext conftest.beam conftest.$ac_ext
14913
ac_cpp='$CPP $CPPFLAGS'
14914
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14915
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14916
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14921
case "$target_cpu" in
14930
# FreeBSD is only one which needs something else than -pthread,
14931
# according to the logic in ClamAV's main configure.in.
14932
case "$target_os" in
14934
THREAD_LIBS="-pthread -lc_r"
14937
THREAD_LIBS="-lthr"
14945
THREAD_LIBS="-pthread"
14949
if test "$enable_alltargets" = "yes"; then
14953
if test "$ac_cv_c_bigendian" = "universal"; then
14954
{ $as_echo "$as_me:${as_lineno-$LINENO}: Universal build detected" >&5
14955
$as_echo "$as_me: Universal build detected" >&6;}
14959
{ $as_echo "$as_me:${as_lineno-$LINENO}: Building X86 backend: $build_x86" >&5
14960
$as_echo "$as_me: Building X86 backend: $build_x86" >&6;}
14961
{ $as_echo "$as_me:${as_lineno-$LINENO}: Building PPC backend: $build_ppc" >&5
14962
$as_echo "$as_me: Building PPC backend: $build_ppc" >&6;}
14963
if test "$build_x86" = "yes"; then
14965
BUILD_X86_FALSE='#'
14971
if test "$build_ppc" = "yes"; then
14973
BUILD_PPC_FALSE='#'
14980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking optional compiler flags" >&5
14981
$as_echo_n "checking optional compiler flags... " >&6; }
14982
NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
14984
NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
14986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
14987
$as_echo "$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
14989
if test -n "$llvmconfig"; then
14990
BUILD_EXTERNAL_LLVM_TRUE=
14991
BUILD_EXTERNAL_LLVM_FALSE='#'
14993
BUILD_EXTERNAL_LLVM_TRUE='#'
14994
BUILD_EXTERNAL_LLVM_FALSE=
14998
ac_config_files="$ac_config_files Makefile"
15000
cat >confcache <<\_ACEOF
15001
# This file is a shell script that caches the results of configure
15002
# tests run on this system so they can be shared between configure
15003
# scripts and configure runs, see configure's option --config-cache.
15004
# It is not useful on other systems. If it contains results you don't
15005
# want to keep, you may remove or edit it.
15007
# config.status only pays attention to the cache file if you give it
15008
# the --recheck option to rerun configure.
15010
# `ac_cv_env_foo' variables (set or unset) will be overridden when
15011
# loading this file, other *unset* `ac_cv_foo' will be assigned the
15012
# following values.
15016
# The following way of writing the cache mishandles newlines in values,
15017
# but we know of no workaround that is simple, portable, and efficient.
15018
# So, we kill variables containing newlines.
15019
# Ultrix sh set writes to stderr and can't be redirected directly,
15020
# and sets the high bit in the cache file unless we assign to the vars.
15022
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15023
eval ac_val=\$$ac_var
15027
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15028
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15031
_ | IFS | as_nl) ;; #(
15032
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15033
*) { eval $ac_var=; unset $ac_var;} ;;
15039
case $as_nl`(ac_space=' '; set) 2>&1` in #(
15040
*${as_nl}ac_space=\ *)
15041
# `set' does not quote correctly, so add quotes: double-quote
15042
# substitution turns \\\\ into \\, and sed turns \\ into \.
15045
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15048
# `set' quotes correctly as required by POSIX, so do not add quotes.
15049
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15058
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15060
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15062
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15063
if test -w "$cache_file"; then
15064
test "x$cache_file" != "x/dev/null" &&
15065
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15066
$as_echo "$as_me: updating cache $cache_file" >&6;}
15067
cat confcache >$cache_file
15069
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15070
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15075
test "x$prefix" = xNONE && prefix=$ac_default_prefix
15076
# Let make expand exec_prefix.
15077
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15079
DEFS=-DHAVE_CONFIG_H
15084
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15085
# 1. Remove the extension, and $U if already installed.
15086
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15087
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15088
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15089
# will be set to the directory where LIBOBJS objects are built.
15090
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15091
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15093
LIBOBJS=$ac_libobjs
15095
LTLIBOBJS=$ac_ltlibobjs
15098
if test -n "$EXEEXT"; then
15100
am__EXEEXT_FALSE='#'
15102
am__EXEEXT_TRUE='#'
15106
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15107
as_fn_error $? "conditional \"AMDEP\" was never defined.
15108
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15110
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15111
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15112
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15114
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15115
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15116
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15119
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15120
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15121
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15123
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15124
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15125
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15127
if test -z "${DEBUG_BUILD_TRUE}" && test -z "${DEBUG_BUILD_FALSE}"; then
15128
as_fn_error $? "conditional \"DEBUG_BUILD\" was never defined.
15129
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15131
if test -z "${BUILD_X86_TRUE}" && test -z "${BUILD_X86_FALSE}"; then
15132
as_fn_error $? "conditional \"BUILD_X86\" was never defined.
15133
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15135
if test -z "${BUILD_PPC_TRUE}" && test -z "${BUILD_PPC_FALSE}"; then
15136
as_fn_error $? "conditional \"BUILD_PPC\" was never defined.
15137
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15139
if test -z "${BUILD_EXTERNAL_LLVM_TRUE}" && test -z "${BUILD_EXTERNAL_LLVM_FALSE}"; then
15140
as_fn_error $? "conditional \"BUILD_EXTERNAL_LLVM\" was never defined.
15141
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15144
: ${CONFIG_STATUS=./config.status}
15146
ac_clean_files_save=$ac_clean_files
15147
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15148
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15149
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15151
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15153
# Generated by $as_me.
15154
# Run this file to recreate the current configuration.
15155
# Compiler output produced by configure, useful for debugging
15156
# configure, is in config.log if it exists.
15159
ac_cs_recheck=false
15162
SHELL=\${CONFIG_SHELL-$SHELL}
15165
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15166
## -------------------- ##
15167
## M4sh Initialization. ##
15168
## -------------------- ##
15170
# Be more Bourne compatible
15171
DUALCASE=1; export DUALCASE # for MKS sh
15172
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15175
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15176
# is contrary to our usage. Disable this feature.
15177
alias -g '${1+"$@"}'='"$@"'
15178
setopt NO_GLOB_SUBST
15180
case `(set -o) 2>/dev/null` in #(
15192
# Printing a long string crashes Solaris 7 /usr/bin/printf.
15193
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15194
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15195
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15196
# Prefer a ksh shell builtin over an external printf program on Solaris,
15197
# but without wasting forks for bash or zsh.
15198
if test -z "$BASH_VERSION$ZSH_VERSION" \
15199
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15200
as_echo='print -r --'
15201
as_echo_n='print -rn --'
15202
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15203
as_echo='printf %s\n'
15204
as_echo_n='printf %s'
15206
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15207
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15208
as_echo_n='/usr/ucb/echo -n'
15210
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15211
as_echo_n_body='eval
15215
expr "X$arg" : "X\\(.*\\)$as_nl";
15216
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15218
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15220
export as_echo_n_body
15221
as_echo_n='sh -c $as_echo_n_body as_echo'
15223
export as_echo_body
15224
as_echo='sh -c $as_echo_body as_echo'
15227
# The user is always right.
15228
if test "${PATH_SEPARATOR+set}" != set; then
15230
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15231
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15238
# We need space, tab and new line, in precisely that order. Quoting is
15239
# there to prevent editors from complaining about space-tab.
15240
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15241
# splitting by setting IFS to empty value.)
15244
# Find who we are. Look in the path if we contain no directory separator.
15246
*[\\/]* ) as_myself=$0 ;;
15247
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15248
for as_dir in $PATH
15251
test -z "$as_dir" && as_dir=.
15252
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15258
# We did not find ourselves, most probably we were run as `sh COMMAND'
15259
# in which case we are not to be found in the path.
15260
if test "x$as_myself" = x; then
15263
if test ! -f "$as_myself"; then
15264
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15268
# Unset variables that we do not need and which cause bugs (e.g. in
15269
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15270
# suppresses any "Segmentation fault" message there. '((' could
15271
# trigger a bug in pdksh 5.2.14.
15272
for as_var in BASH_ENV ENV MAIL MAILPATH
15273
do eval test x\${$as_var+set} = xset \
15274
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15287
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15290
# as_fn_error STATUS ERROR [LINENO LOG_FD]
15291
# ----------------------------------------
15292
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15293
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15294
# script with STATUS, using 1 if that was 0.
15297
as_status=$1; test $as_status -eq 0 && as_status=1
15299
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15300
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15302
$as_echo "$as_me: error: $2" >&2
15303
as_fn_exit $as_status
15307
# as_fn_set_status STATUS
15308
# -----------------------
15309
# Set $? to STATUS, without forking.
15310
as_fn_set_status ()
15313
} # as_fn_set_status
15315
# as_fn_exit STATUS
15316
# -----------------
15317
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15321
as_fn_set_status $1
15327
# Portably unset VAR.
15330
{ eval $1=; unset $1;}
15332
as_unset=as_fn_unset
15333
# as_fn_append VAR VALUE
15334
# ----------------------
15335
# Append the text in VALUE to the end of the definition contained in VAR. Take
15336
# advantage of any shell optimizations that allow amortized linear growth over
15337
# repeated appends, instead of the typical quadratic growth present in naive
15339
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15340
eval 'as_fn_append ()
15351
# as_fn_arith ARG...
15352
# ------------------
15353
# Perform arithmetic evaluation on the ARGs, and store the result in the
15354
# global $as_val. Take advantage of shells that can avoid forks. The arguments
15355
# must be portable across $(()) and expr.
15356
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15357
eval 'as_fn_arith ()
15364
as_val=`expr "$@" || test $? -eq 1`
15369
if expr a : '\(a\)' >/dev/null 2>&1 &&
15370
test "X`expr 00001 : '.*\(...\)'`" = X001; then
15376
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15377
as_basename=basename
15382
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15388
as_me=`$as_basename -- "$0" ||
15389
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15390
X"$0" : 'X\(//\)$' \| \
15391
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15393
sed '/^.*\/\([^/][^/]*\)\/*$/{
15407
# Avoid depending upon Character Ranges.
15408
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15409
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15410
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15411
as_cr_digits='0123456789'
15412
as_cr_alnum=$as_cr_Letters$as_cr_digits
15414
ECHO_C= ECHO_N= ECHO_T=
15415
case `echo -n x` in #(((((
15417
case `echo 'xy\c'` in
15418
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
15420
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15427
rm -f conf$$ conf$$.exe conf$$.file
15428
if test -d conf$$.dir; then
15429
rm -f conf$$.dir/conf$$.file
15432
mkdir conf$$.dir 2>/dev/null
15434
if (echo >conf$$.file) 2>/dev/null; then
15435
if ln -s conf$$.file conf$$ 2>/dev/null; then
15437
# ... but there are two gotchas:
15438
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15439
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15440
# In both cases, we have to default to `cp -p'.
15441
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15443
elif ln conf$$.file conf$$ 2>/dev/null; then
15451
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15452
rmdir conf$$.dir 2>/dev/null
15457
# Create "$as_dir" as a directory, including parents if necessary.
15462
-*) as_dir=./$as_dir;;
15464
test -d "$as_dir" || eval $as_mkdir_p || {
15468
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15469
*) as_qdir=$as_dir;;
15471
as_dirs="'$as_qdir' $as_dirs"
15472
as_dir=`$as_dirname -- "$as_dir" ||
15473
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15474
X"$as_dir" : 'X\(//\)[^/]' \| \
15475
X"$as_dir" : 'X\(//\)$' \| \
15476
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15477
$as_echo X"$as_dir" |
15478
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15482
/^X\(\/\/\)[^/].*/{
15495
test -d "$as_dir" && break
15497
test -z "$as_dirs" || eval "mkdir $as_dirs"
15498
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15502
if mkdir -p . 2>/dev/null; then
15503
as_mkdir_p='mkdir -p "$as_dir"'
15505
test -d ./-p && rmdir ./-p
15509
if test -x / >/dev/null 2>&1; then
15510
as_test_x='test -x'
15512
if ls -dL / >/dev/null 2>&1; then
15519
if test -d "$1"; then
15525
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15526
???[sx]*):;;*)false;;esac;fi
15530
as_executable_p=$as_test_x
15532
# Sed expression to map a string onto a valid CPP name.
15533
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15535
# Sed expression to map a string onto a valid variable name.
15536
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15540
## ----------------------------------- ##
15541
## Main body of $CONFIG_STATUS script. ##
15542
## ----------------------------------- ##
15544
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15546
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15547
# Save the log message, to keep $0 and so on meaningful, and to
15548
# report actual input values of CONFIG_FILES etc. instead of their
15549
# values after options handling.
15551
This file was extended by libclamavc++ $as_me devel, which was
15552
generated by GNU Autoconf 2.67. Invocation command line was
15554
CONFIG_FILES = $CONFIG_FILES
15555
CONFIG_HEADERS = $CONFIG_HEADERS
15556
CONFIG_LINKS = $CONFIG_LINKS
15557
CONFIG_COMMANDS = $CONFIG_COMMANDS
15560
on `(hostname || uname -n) 2>/dev/null | sed 1q`
15565
case $ac_config_files in *"
15566
"*) set x $ac_config_files; shift; ac_config_files=$*;;
15569
case $ac_config_headers in *"
15570
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15574
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15575
# Files that config.status was made for.
15576
config_files="$ac_config_files"
15577
config_headers="$ac_config_headers"
15578
config_commands="$ac_config_commands"
15582
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15584
\`$as_me' instantiates files and other configuration actions
15585
from templates according to the current configuration. Unless the files
15586
and actions are specified as TAGs, all are instantiated by default.
15588
Usage: $0 [OPTION]... [TAG]...
15590
-h, --help print this help, then exit
15591
-V, --version print version number and configuration settings, then exit
15592
--config print configuration, then exit
15593
-q, --quiet, --silent
15594
do not print progress messages
15595
-d, --debug don't remove temporary files
15596
--recheck update $as_me by reconfiguring in the same conditions
15597
--file=FILE[:TEMPLATE]
15598
instantiate the configuration file FILE
15599
--header=FILE[:TEMPLATE]
15600
instantiate the configuration header FILE
15602
Configuration files:
15605
Configuration headers:
15608
Configuration commands:
15611
Report bugs to <http://bugs.clamav.net>."
15614
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15615
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15617
libclamavc++ config.status devel
15618
configured by $0, generated by GNU Autoconf 2.67,
15619
with options \\"\$ac_cs_config\\"
15621
Copyright (C) 2010 Free Software Foundation, Inc.
15622
This config.status script is free software; the Free Software Foundation
15623
gives unlimited permission to copy, distribute and modify it."
15630
test -n "\$AWK" || AWK=awk
15633
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15634
# The default lists apply if the user does not specify any file.
15640
ac_option=`expr "X$1" : 'X\([^=]*\)='`
15641
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15645
ac_option=`expr "X$1" : 'X\([^=]*\)='`
15657
# Handling of the options.
15658
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15660
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15661
$as_echo "$ac_cs_version"; exit ;;
15662
--config | --confi | --conf | --con | --co | --c )
15663
$as_echo "$ac_cs_config"; exit ;;
15664
--debug | --debu | --deb | --de | --d | -d )
15666
--file | --fil | --fi | --f )
15669
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15670
'') as_fn_error $? "missing file argument" ;;
15672
as_fn_append CONFIG_FILES " '$ac_optarg'"
15673
ac_need_defaults=false;;
15674
--header | --heade | --head | --hea )
15677
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15679
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15680
ac_need_defaults=false;;
15682
# Conflict between --help and --header
15683
as_fn_error $? "ambiguous option: \`$1'
15684
Try \`$0 --help' for more information.";;
15685
--help | --hel | -h )
15686
$as_echo "$ac_cs_usage"; exit ;;
15687
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
15688
| -silent | --silent | --silen | --sile | --sil | --si | --s)
15691
# This is an error.
15692
-*) as_fn_error $? "unrecognized option: \`$1'
15693
Try \`$0 --help' for more information." ;;
15695
*) as_fn_append ac_config_targets " $1"
15696
ac_need_defaults=false ;;
15702
ac_configure_extra_args=
15704
if $ac_cs_silent; then
15706
ac_configure_extra_args="$ac_configure_extra_args --silent"
15710
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15711
if \$ac_cs_recheck; then
15712
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15714
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15715
CONFIG_SHELL='$SHELL'
15716
export CONFIG_SHELL
15721
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15725
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15726
## Running $as_me. ##
15732
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15736
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15739
# The HP-UX ksh and POSIX shell print the target directory to stdout
15740
# if CDPATH is set.
15741
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15743
sed_quote_subst='$sed_quote_subst'
15744
double_quote_subst='$double_quote_subst'
15745
delay_variable_subst='$delay_variable_subst'
15746
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15747
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15748
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15749
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15750
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15751
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15752
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15753
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15754
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15755
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15756
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15757
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15758
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15759
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15760
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15761
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15762
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15763
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15764
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15765
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15766
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15767
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15768
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15769
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15770
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15771
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15772
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15773
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15774
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15775
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15776
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15777
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15778
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15779
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15780
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15781
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15782
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15783
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15784
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15785
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15786
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15787
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15788
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15789
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15790
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"`'
15791
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"`'
15792
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15793
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15794
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15795
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15796
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15797
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15798
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15799
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15800
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15801
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15802
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15803
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15804
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15805
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15806
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15807
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15808
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15809
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15810
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15811
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15812
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15813
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15814
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15815
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15816
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15817
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15818
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15819
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15820
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15821
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15822
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15823
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15824
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15825
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15826
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15827
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15828
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15829
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15830
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15831
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15832
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15833
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15834
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15835
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15836
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15837
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15838
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15839
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15840
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15841
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15842
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15843
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15844
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15845
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15846
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15847
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15848
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15849
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15850
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15851
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15852
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15853
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15854
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15855
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15856
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15857
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15858
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15859
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15860
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15861
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15862
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15863
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15864
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15865
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15866
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15867
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15868
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15869
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15870
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15871
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15872
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15873
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15874
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15875
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15876
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15877
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15878
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15879
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15880
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15881
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15882
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15883
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15884
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15885
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15886
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15887
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15888
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15889
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15890
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15891
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15892
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15893
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15894
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15895
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15896
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15897
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15898
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15899
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15900
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15901
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15902
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15903
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15904
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15905
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15906
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15907
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15908
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15909
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15910
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15911
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15912
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15913
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15914
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15915
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15916
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15919
LTCFLAGS='$LTCFLAGS'
15920
compiler='$compiler_DEFAULT'
15922
# Quote evaled strings.
15934
deplibs_check_method \
15943
lt_cv_sys_global_symbol_pipe \
15944
lt_cv_sys_global_symbol_to_cdecl \
15945
lt_cv_sys_global_symbol_to_c_name_address \
15946
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15949
lt_prog_compiler_no_builtin_flag \
15950
lt_prog_compiler_wl \
15951
lt_prog_compiler_pic \
15952
lt_prog_compiler_static \
15953
lt_cv_prog_compiler_c_o \
15961
export_dynamic_flag_spec \
15962
whole_archive_flag_spec \
15963
compiler_needs_object \
15965
allow_undefined_flag \
15966
no_undefined_flag \
15967
hardcode_libdir_flag_spec \
15968
hardcode_libdir_flag_spec_ld \
15969
hardcode_libdir_separator \
15974
variables_saved_for_relink \
15976
library_names_spec \
15981
compiler_lib_search_dirs \
15986
compiler_lib_search_path \
15989
lt_prog_compiler_no_builtin_flag_CXX \
15990
lt_prog_compiler_wl_CXX \
15991
lt_prog_compiler_pic_CXX \
15992
lt_prog_compiler_static_CXX \
15993
lt_cv_prog_compiler_c_o_CXX \
15994
export_dynamic_flag_spec_CXX \
15995
whole_archive_flag_spec_CXX \
15996
compiler_needs_object_CXX \
15998
allow_undefined_flag_CXX \
15999
no_undefined_flag_CXX \
16000
hardcode_libdir_flag_spec_CXX \
16001
hardcode_libdir_flag_spec_ld_CXX \
16002
hardcode_libdir_separator_CXX \
16003
fix_srcfile_path_CXX \
16004
exclude_expsyms_CXX \
16005
include_expsyms_CXX \
16006
file_list_spec_CXX \
16007
compiler_lib_search_dirs_CXX \
16008
predep_objects_CXX \
16009
postdep_objects_CXX \
16012
compiler_lib_search_path_CXX; do
16013
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16014
*[\\\\\\\`\\"\\\$]*)
16015
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16018
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16023
# Double-quote double-evaled strings.
16024
for var in reload_cmds \
16025
old_postinstall_cmds \
16026
old_postuninstall_cmds \
16028
extract_expsyms_cmds \
16029
old_archive_from_new_cmds \
16030
old_archive_from_expsyms_cmds \
16032
archive_expsym_cmds \
16034
module_expsym_cmds \
16035
export_symbols_cmds \
16038
postuninstall_cmds \
16040
sys_lib_search_path_spec \
16041
sys_lib_dlsearch_path_spec \
16042
old_archive_cmds_CXX \
16043
old_archive_from_new_cmds_CXX \
16044
old_archive_from_expsyms_cmds_CXX \
16046
archive_expsym_cmds_CXX \
16048
module_expsym_cmds_CXX \
16049
export_symbols_cmds_CXX \
16050
prelink_cmds_CXX; do
16051
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16052
*[\\\\\\\`\\"\\\$]*)
16053
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16056
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16061
# Fix-up fallback echo if it was mangled by the above quoting rules.
16063
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16067
ac_aux_dir='$ac_aux_dir'
16068
xsi_shell='$xsi_shell'
16069
lt_shell_append='$lt_shell_append'
16071
# See if we are running on zsh, and set the options which allow our
16072
# commands through without removal of \ escapes INIT.
16073
if test -n "\${ZSH_VERSION+set}" ; then
16074
setopt NO_GLOB_SUBST
16080
TIMESTAMP='$TIMESTAMP'
16091
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16093
# Handling of arguments.
16094
for ac_config_target in $ac_config_targets
16096
case $ac_config_target in
16097
"clamavcxx-config.h") CONFIG_HEADERS="$CONFIG_HEADERS clamavcxx-config.h" ;;
16098
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16099
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16100
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16102
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16107
# If the user did not use the arguments to specify the items to instantiate,
16108
# then the envvar interface is used. Set only those that are not.
16109
# We use the long form for the default assignment because of an extremely
16110
# bizarre bug on SunOS 4.1.3.
16111
if $ac_need_defaults; then
16112
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16113
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16114
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16117
# Have a temporary directory for convenience. Make it in the build tree
16118
# simply because there is no reason against having it here, and in addition,
16119
# creating and moving files from /tmp can sometimes cause problems.
16120
# Hook for its removal unless debugging.
16121
# Note that there is a small window in which the directory will not be cleaned:
16122
# after its creation but before its name has been assigned to `$tmp'.
16126
trap 'exit_status=$?
16127
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16129
trap 'as_fn_exit 1' 1 2 13 15
16131
# Create a (secure) tmp directory for tmp files.
16134
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16135
test -n "$tmp" && test -d "$tmp"
16138
tmp=./conf$$-$RANDOM
16139
(umask 077 && mkdir "$tmp")
16140
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16142
# Set up the scripts for CONFIG_FILES section.
16143
# No need to generate them if there are no CONFIG_FILES.
16144
# This happens for instance with `./config.status config.h'.
16145
if test -n "$CONFIG_FILES"; then
16148
ac_cr=`echo X | tr X '\015'`
16149
# On cygwin, bash can eat \r inside `` if the user requested igncr.
16150
# But we know of no other shell where ac_cr would be empty at this
16151
# point, so we can use a bashism as a fallback.
16152
if test "x$ac_cr" = x; then
16153
eval ac_cr=\$\'\\r\'
16155
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16156
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16159
ac_cs_awk_cr=$ac_cr
16162
echo 'BEGIN {' >"$tmp/subs1.awk" &&
16167
echo "cat >conf$$subs.awk <<_ACEOF" &&
16168
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16170
} >conf$$subs.sh ||
16171
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16172
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16174
for ac_last_try in false false false false false :; do
16175
. ./conf$$subs.sh ||
16176
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16178
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16179
if test $ac_delim_n = $ac_delim_num; then
16181
elif $ac_last_try; then
16182
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16184
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16187
rm -f conf$$subs.sh
16189
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16190
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16194
s/^/S["/; s/!.*/"]=/
16204
s/\(.\{148\}\)..*/\1/
16206
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16211
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16218
s/\(.\{148\}\)..*/\1/
16220
s/["\\]/\\&/g; s/^/"/; s/$/"/
16224
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16229
' <conf$$subs.awk | sed '
16234
' >>$CONFIG_STATUS || ac_write_fail=1
16235
rm -f conf$$subs.awk
16236
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16238
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16239
for (key in S) S_is_set[key] = 1
16245
nfields = split(line, field, "@")
16247
len = length(field[1])
16248
for (i = 2; i < nfields; i++) {
16250
keylen = length(key)
16251
if (S_is_set[key]) {
16253
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16254
len += length(value) + length(field[++i])
16265
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16266
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16267
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16270
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16271
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16274
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16275
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16276
# trailing colons and then remove the whole line if VPATH becomes empty
16277
# (actually we leave an empty line to preserve line numbers).
16278
if test "x$srcdir" = x.; then
16279
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16297
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16298
fi # test -n "$CONFIG_FILES"
16300
# Set up the scripts for CONFIG_HEADERS section.
16301
# No need to generate them if there are no CONFIG_HEADERS.
16302
# This happens for instance with `./config.status Makefile'.
16303
if test -n "$CONFIG_HEADERS"; then
16304
cat >"$tmp/defines.awk" <<\_ACAWK ||
16308
# Transform confdefs.h into an awk script `defines.awk', embedded as
16309
# here-document in config.status, that substitutes the proper values into
16310
# config.h.in to produce config.h.
16312
# Create a delimiter string that does not exist in confdefs.h, to ease
16313
# handling of long lines.
16315
for ac_last_try in false false :; do
16316
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16317
if test -z "$ac_t"; then
16319
elif $ac_last_try; then
16320
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16322
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16326
# For the awk script, D is an array of macro values keyed by name,
16327
# likewise P contains macro parameters if any. Preserve backslash
16328
# newline sequences.
16330
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16332
s/.\{148\}/&'"$ac_delim"'/g
16335
s/^[ ]*#[ ]*define[ ][ ]*/ /
16342
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16344
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16348
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16349
D["\1"]=" \3\\\\\\n"\\/p
16351
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16356
s/.\{148\}/&'"$ac_delim"'/g
16361
s/["\\]/\\&/g; s/^/"/; s/$/"/p
16364
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16366
' <confdefs.h | sed '
16367
s/'"$ac_delim"'/"\\\
16368
"/g' >>$CONFIG_STATUS || ac_write_fail=1
16370
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16371
for (key in D) D_is_set[key] = 1
16374
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16376
split(line, arg, " ")
16377
if (arg[1] == "#") {
16381
defundef = substr(arg[1], 2)
16384
split(mac1, mac2, "(") #)
16386
prefix = substr(line, 1, index(line, defundef) - 1)
16387
if (D_is_set[macro]) {
16388
# Preserve the white space surrounding the "#".
16389
print prefix "define", macro P[macro] D[macro]
16392
# Replace #undef with comments. This is necessary, for example,
16393
# in the case of _POSIX_SOURCE, which is predefined and required
16394
# on some systems where configure will not decide to define it.
16395
if (defundef == "undef") {
16396
print "/*", prefix defundef, macro, "*/"
16404
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16405
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16406
fi # test -n "$CONFIG_HEADERS"
16409
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16414
:[FHLC]) ac_mode=$ac_tag; continue;;
16416
case $ac_mode$ac_tag in
16418
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16419
:[FH]-) ac_tag=-:-;;
16420
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16437
-) ac_f="$tmp/stdin";;
16438
*) # Look for the file first in the build tree, then in the source tree
16439
# (if the path is not absolute). The absolute path cannot be DOS-style,
16440
# because $ac_f cannot contain `:'.
16444
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16446
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16448
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16449
as_fn_append ac_file_inputs " '$ac_f'"
16452
# Let's still pretend it is `configure' which instantiates (i.e., don't
16453
# use $as_me), people would be surprised to read:
16454
# /* config.h. Generated by config.status. */
16455
configure_input='Generated from '`
16456
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16458
if test x"$ac_file" != x-; then
16459
configure_input="$ac_file. $configure_input"
16460
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16461
$as_echo "$as_me: creating $ac_file" >&6;}
16463
# Neutralize special characters interpreted by sed in replacement strings.
16464
case $configure_input in #(
16465
*\&* | *\|* | *\\* )
16466
ac_sed_conf_input=`$as_echo "$configure_input" |
16467
sed 's/[\\\\&|]/\\\\&/g'`;; #(
16468
*) ac_sed_conf_input=$configure_input;;
16472
*:-:* | *:-) cat >"$tmp/stdin" \
16473
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16478
ac_dir=`$as_dirname -- "$ac_file" ||
16479
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16480
X"$ac_file" : 'X\(//\)[^/]' \| \
16481
X"$ac_file" : 'X\(//\)$' \| \
16482
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16483
$as_echo X"$ac_file" |
16484
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16488
/^X\(\/\/\)[^/].*/{
16501
as_dir="$ac_dir"; as_fn_mkdir_p
16505
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16507
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16508
# A ".." for each directory in $ac_dir_suffix.
16509
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16510
case $ac_top_builddir_sub in
16511
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16512
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16515
ac_abs_top_builddir=$ac_pwd
16516
ac_abs_builddir=$ac_pwd$ac_dir_suffix
16517
# for backward compatibility:
16518
ac_top_builddir=$ac_top_build_prefix
16521
.) # We are building in place.
16523
ac_top_srcdir=$ac_top_builddir_sub
16524
ac_abs_top_srcdir=$ac_pwd ;;
16525
[\\/]* | ?:[\\/]* ) # Absolute name.
16526
ac_srcdir=$srcdir$ac_dir_suffix;
16527
ac_top_srcdir=$srcdir
16528
ac_abs_top_srcdir=$srcdir ;;
16529
*) # Relative name.
16530
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16531
ac_top_srcdir=$ac_top_build_prefix$srcdir
16532
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16534
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16544
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16545
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16547
ac_MKDIR_P=$MKDIR_P
16549
[\\/$]* | ?:[\\/]* ) ;;
16550
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16554
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16555
# If the template does not know about datarootdir, expand it.
16556
# FIXME: This hack should be removed a few years after 2.60.
16557
ac_datarootdir_hack=; ac_datarootdir_seen=
16568
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16569
*datarootdir*) ac_datarootdir_seen=yes;;
16570
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16571
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16572
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16574
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16575
ac_datarootdir_hack='
16576
s&@datadir@&$datadir&g
16577
s&@docdir@&$docdir&g
16578
s&@infodir@&$infodir&g
16579
s&@localedir@&$localedir&g
16580
s&@mandir@&$mandir&g
16581
s&\\\${datarootdir}&$datarootdir&g' ;;
16585
# Neutralize VPATH when `$srcdir' = `.'.
16586
# Shell code in configure.ac might set extrasub.
16587
# FIXME: do we really want to maintain this feature?
16588
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16589
ac_sed_extra="$ac_vpsub
16592
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16594
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16595
s|@configure_input@|$ac_sed_conf_input|;t t
16596
s&@top_builddir@&$ac_top_builddir_sub&;t t
16597
s&@top_build_prefix@&$ac_top_build_prefix&;t t
16598
s&@srcdir@&$ac_srcdir&;t t
16599
s&@abs_srcdir@&$ac_abs_srcdir&;t t
16600
s&@top_srcdir@&$ac_top_srcdir&;t t
16601
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16602
s&@builddir@&$ac_builddir&;t t
16603
s&@abs_builddir@&$ac_abs_builddir&;t t
16604
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16605
s&@INSTALL@&$ac_INSTALL&;t t
16606
s&@MKDIR_P@&$ac_MKDIR_P&;t t
16607
$ac_datarootdir_hack
16609
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16610
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16612
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16613
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16614
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16615
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16616
which seems to be undefined. Please make sure it is defined" >&5
16617
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16618
which seems to be undefined. Please make sure it is defined" >&2;}
16622
-) cat "$tmp/out" && rm -f "$tmp/out";;
16623
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16625
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16631
if test x"$ac_file" != x-; then
16633
$as_echo "/* $configure_input */" \
16634
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16635
} >"$tmp/config.h" \
16636
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16637
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16638
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16639
$as_echo "$as_me: $ac_file is unchanged" >&6;}
16642
mv "$tmp/config.h" "$ac_file" \
16643
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16646
$as_echo "/* $configure_input */" \
16647
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16648
|| as_fn_error $? "could not create -" "$LINENO" 5
16650
# Compute "$ac_file"'s index in $config_headers.
16653
for _am_header in $config_headers :; do
16654
case $_am_header in
16655
$_am_arg | $_am_arg:* )
16658
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
16661
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16662
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16663
X"$_am_arg" : 'X\(//\)[^/]' \| \
16664
X"$_am_arg" : 'X\(//\)$' \| \
16665
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16666
$as_echo X"$_am_arg" |
16667
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16671
/^X\(\/\/\)[^/].*/{
16683
s/.*/./; q'`/stamp-h$_am_stamp_count
16686
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16687
$as_echo "$as_me: executing $ac_file commands" >&6;}
16692
case $ac_file$ac_mode in
16693
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16694
# Autoconf 2.62 quotes --file arguments for eval, but not when files
16695
# are listed without --file. Let's play safe and only enable the eval
16696
# if we detect the quoting.
16697
case $CONFIG_FILES in
16698
*\'*) eval set x "$CONFIG_FILES" ;;
16699
*) set x $CONFIG_FILES ;;
16704
# Strip MF so we end up with the name of the file.
16705
mf=`echo "$mf" | sed -e 's/:.*$//'`
16706
# Check whether this is an Automake generated Makefile or not.
16707
# We used to match only the files named `Makefile.in', but
16708
# some people rename them; so instead we look at the file content.
16709
# Grep'ing the first line is not enough: some people post-process
16710
# each Makefile.in and add a new line on top of each file to say so.
16711
# Grep'ing the whole file is not good either: AIX grep has a line
16712
# limit of 2048, but all sed's we know have understand at least 4000.
16713
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16714
dirpart=`$as_dirname -- "$mf" ||
16715
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16716
X"$mf" : 'X\(//\)[^/]' \| \
16717
X"$mf" : 'X\(//\)$' \| \
16718
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16720
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16724
/^X\(\/\/\)[^/].*/{
16740
# Extract the definition of DEPDIR, am__include, and am__quote
16741
# from the Makefile without running `make'.
16742
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16743
test -z "$DEPDIR" && continue
16744
am__include=`sed -n 's/^am__include = //p' < "$mf"`
16745
test -z "am__include" && continue
16746
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16747
# When using ansi2knr, U may be empty or an underscore; expand it
16748
U=`sed -n 's/^U = //p' < "$mf"`
16749
# Find all dependency output files, they are included files with
16750
# $(DEPDIR) in their names. We invoke sed twice because it is the
16751
# simplest approach to changing $(DEPDIR) to its actual value in the
16753
for file in `sed -n "
16754
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16755
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16756
# Make sure the directory exists.
16757
test -f "$dirpart/$file" && continue
16758
fdir=`$as_dirname -- "$file" ||
16759
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16760
X"$file" : 'X\(//\)[^/]' \| \
16761
X"$file" : 'X\(//\)$' \| \
16762
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16763
$as_echo X"$file" |
16764
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16768
/^X\(\/\/\)[^/].*/{
16781
as_dir=$dirpart/$fdir; as_fn_mkdir_p
16782
# echo "creating $dirpart/$file"
16783
echo '# dummy' > "$dirpart/$file"
16790
# See if we are running on zsh, and set the options which allow our
16791
# commands through without removal of \ escapes.
16792
if test -n "${ZSH_VERSION+set}" ; then
16793
setopt NO_GLOB_SUBST
16796
cfgfile="${ofile}T"
16797
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16800
cat <<_LT_EOF >> "$cfgfile"
16803
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16804
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16805
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16806
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16808
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16809
# 2006, 2007, 2008 Free Software Foundation, Inc.
16810
# Written by Gordon Matzigkeit, 1996
16812
# This file is part of GNU Libtool.
16814
# GNU Libtool is free software; you can redistribute it and/or
16815
# modify it under the terms of the GNU General Public License as
16816
# published by the Free Software Foundation; either version 2 of
16817
# the License, or (at your option) any later version.
16819
# As a special exception to the GNU General Public License,
16820
# if you distribute this file as part of a program or library that
16821
# is built using GNU Libtool, you may include this file under the
16822
# same distribution terms that you use for the rest of that program.
16824
# GNU Libtool is distributed in the hope that it will be useful,
16825
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16826
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16827
# GNU General Public License for more details.
16829
# You should have received a copy of the GNU General Public License
16830
# along with GNU Libtool; see the file COPYING. If not, a copy
16831
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16832
# obtained by writing to the Free Software Foundation, Inc.,
16833
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16836
# The names of the tagged configurations supported by this script.
16837
available_tags="CXX "
16839
# ### BEGIN LIBTOOL CONFIG
16841
# Which release of libtool.m4 was used?
16842
macro_version=$macro_version
16843
macro_revision=$macro_revision
16845
# Whether or not to build static libraries.
16846
build_old_libs=$enable_static
16848
# Whether or not to build shared libraries.
16849
build_libtool_libs=$enable_shared
16851
# What type of objects to build.
16854
# Whether or not to optimize for fast installation.
16855
fast_install=$enable_fast_install
16858
host_alias=$host_alias
16862
# The build system.
16863
build_alias=$build_alias
16867
# A sed program that does not truncate output.
16870
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16871
Xsed="\$SED -e 1s/^X//"
16873
# A grep program that handles long lines.
16879
# A literal string matcher.
16882
# A BSD- or MS-compatible name lister.
16885
# Whether we need soft or hard links.
16888
# What is the maximum length of a command?
16889
max_cmd_len=$max_cmd_len
16891
# Object file suffix (normally "o").
16894
# Executable file suffix (normally "").
16897
# whether the shell understands "unset".
16900
# turn spaces into newlines.
16903
# turn newlines into spaces.
16906
# How to create reloadable object files.
16907
reload_flag=$lt_reload_flag
16908
reload_cmds=$lt_reload_cmds
16910
# An object symbol dumper.
16911
OBJDUMP=$lt_OBJDUMP
16913
# Method to check whether dependent libraries are shared objects.
16914
deplibs_check_method=$lt_deplibs_check_method
16916
# Command to use when deplibs_check_method == "file_magic".
16917
file_magic_cmd=$lt_file_magic_cmd
16921
AR_FLAGS=$lt_AR_FLAGS
16923
# A symbol stripping program.
16926
# Commands used to install an old-style archive.
16928
old_postinstall_cmds=$lt_old_postinstall_cmds
16929
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16934
# LTCC compiler flags.
16935
LTCFLAGS=$lt_CFLAGS
16937
# Take the output of nm and produce a listing of raw symbols and C names.
16938
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16940
# Transform the output of nm in a proper C declaration.
16941
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16943
# Transform the output of nm in a C name address pair.
16944
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16946
# Transform the output of nm in a C name address pair when lib prefix is needed.
16947
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16949
# The name of the directory that contains temporary libtool files.
16952
# Shell to use when invoking shell scripts.
16955
# An echo program that does not interpret backslashes.
16958
# Used to examine libraries when file_magic_cmd begins with "file".
16959
MAGIC_CMD=$MAGIC_CMD
16961
# Must we lock files when doing compilation?
16962
need_locks=$lt_need_locks
16964
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16965
DSYMUTIL=$lt_DSYMUTIL
16967
# Tool to change global to local symbols on Mac OS X.
16970
# Tool to manipulate fat objects and archives on Mac OS X.
16973
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16976
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16977
OTOOL64=$lt_OTOOL64
16979
# Old archive suffix (normally "a").
16982
# Shared library suffix (normally ".so").
16983
shrext_cmds=$lt_shrext_cmds
16985
# The commands to extract the exported symbol list from a shared archive.
16986
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16988
# Variables whose values should be saved in libtool wrapper scripts and
16989
# restored at link time.
16990
variables_saved_for_relink=$lt_variables_saved_for_relink
16992
# Do we need the "lib" prefix for modules?
16993
need_lib_prefix=$need_lib_prefix
16995
# Do we need a version for libraries?
16996
need_version=$need_version
16998
# Library versioning type.
16999
version_type=$version_type
17001
# Shared library runtime path variable.
17002
runpath_var=$runpath_var
17004
# Shared library path variable.
17005
shlibpath_var=$shlibpath_var
17007
# Is shlibpath searched before the hard-coded library search path?
17008
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17010
# Format of library name prefix.
17011
libname_spec=$lt_libname_spec
17013
# List of archive names. First name is the real one, the rest are links.
17014
# The last name is the one that the linker finds with -lNAME
17015
library_names_spec=$lt_library_names_spec
17017
# The coded name of the library, if different from the real name.
17018
soname_spec=$lt_soname_spec
17020
# Command to use after installation of a shared archive.
17021
postinstall_cmds=$lt_postinstall_cmds
17023
# Command to use after uninstallation of a shared archive.
17024
postuninstall_cmds=$lt_postuninstall_cmds
17026
# Commands used to finish a libtool library installation in a directory.
17027
finish_cmds=$lt_finish_cmds
17029
# As "finish_cmds", except a single script fragment to be evaled but
17031
finish_eval=$lt_finish_eval
17033
# Whether we should hardcode library paths into libraries.
17034
hardcode_into_libs=$hardcode_into_libs
17036
# Compile-time system search path for libraries.
17037
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17039
# Run-time system search path for libraries.
17040
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17042
# Whether dlopen is supported.
17043
dlopen_support=$enable_dlopen
17045
# Whether dlopen of programs is supported.
17046
dlopen_self=$enable_dlopen_self
17048
# Whether dlopen of statically linked programs is supported.
17049
dlopen_self_static=$enable_dlopen_self_static
17051
# Commands to strip libraries.
17052
old_striplib=$lt_old_striplib
17053
striplib=$lt_striplib
17056
# The linker used to build libraries.
17059
# Commands used to build an old-style archive.
17060
old_archive_cmds=$lt_old_archive_cmds
17062
# A language specific compiler.
17065
# Is the compiler the GNU compiler?
17068
# Compiler flag to turn off builtin functions.
17069
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17071
# How to pass a linker flag through the compiler.
17072
wl=$lt_lt_prog_compiler_wl
17074
# Additional compiler flags for building library objects.
17075
pic_flag=$lt_lt_prog_compiler_pic
17077
# Compiler flag to prevent dynamic linking.
17078
link_static_flag=$lt_lt_prog_compiler_static
17080
# Does compiler simultaneously support -c and -o options?
17081
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17083
# Whether or not to add -lc for building shared libraries.
17084
build_libtool_need_lc=$archive_cmds_need_lc
17086
# Whether or not to disallow shared libs when runtime libs are static.
17087
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17089
# Compiler flag to allow reflexive dlopens.
17090
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17092
# Compiler flag to generate shared objects directly from archives.
17093
whole_archive_flag_spec=$lt_whole_archive_flag_spec
17095
# Whether the compiler copes with passing no objects directly.
17096
compiler_needs_object=$lt_compiler_needs_object
17098
# Create an old-style archive from a shared archive.
17099
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17101
# Create a temporary old-style archive to link instead of a shared archive.
17102
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17104
# Commands used to build a shared archive.
17105
archive_cmds=$lt_archive_cmds
17106
archive_expsym_cmds=$lt_archive_expsym_cmds
17108
# Commands used to build a loadable module if different from building
17109
# a shared archive.
17110
module_cmds=$lt_module_cmds
17111
module_expsym_cmds=$lt_module_expsym_cmds
17113
# Whether we are building with GNU ld or not.
17114
with_gnu_ld=$lt_with_gnu_ld
17116
# Flag that allows shared libraries with undefined symbols to be built.
17117
allow_undefined_flag=$lt_allow_undefined_flag
17119
# Flag that enforces no undefined symbols.
17120
no_undefined_flag=$lt_no_undefined_flag
17122
# Flag to hardcode \$libdir into a binary during linking.
17123
# This must work even if \$libdir does not exist
17124
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17126
# If ld is used when linking, flag to hardcode \$libdir into a binary
17127
# during linking. This must work even if \$libdir does not exist.
17128
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17130
# Whether we need a single "-rpath" flag with a separated argument.
17131
hardcode_libdir_separator=$lt_hardcode_libdir_separator
17133
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17134
# DIR into the resulting binary.
17135
hardcode_direct=$hardcode_direct
17137
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17138
# DIR into the resulting binary and the resulting library dependency is
17139
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17140
# library is relocated.
17141
hardcode_direct_absolute=$hardcode_direct_absolute
17143
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17144
# into the resulting binary.
17145
hardcode_minus_L=$hardcode_minus_L
17147
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17148
# into the resulting binary.
17149
hardcode_shlibpath_var=$hardcode_shlibpath_var
17151
# Set to "yes" if building a shared library automatically hardcodes DIR
17152
# into the library and all subsequent libraries and executables linked
17154
hardcode_automatic=$hardcode_automatic
17156
# Set to yes if linker adds runtime paths of dependent libraries
17157
# to runtime path list.
17158
inherit_rpath=$inherit_rpath
17160
# Whether libtool must link a program against all its dependency libraries.
17161
link_all_deplibs=$link_all_deplibs
17163
# Fix the shell variable \$srcfile for the compiler.
17164
fix_srcfile_path=$lt_fix_srcfile_path
17166
# Set to "yes" if exported symbols are required.
17167
always_export_symbols=$always_export_symbols
17169
# The commands to list exported symbols.
17170
export_symbols_cmds=$lt_export_symbols_cmds
17172
# Symbols that should not be listed in the preloaded symbols.
17173
exclude_expsyms=$lt_exclude_expsyms
17175
# Symbols that must always be exported.
17176
include_expsyms=$lt_include_expsyms
17178
# Commands necessary for linking programs (against libraries) with templates.
17179
prelink_cmds=$lt_prelink_cmds
17181
# Specify filename containing input files.
17182
file_list_spec=$lt_file_list_spec
17184
# How to hardcode a shared library path into an executable.
17185
hardcode_action=$hardcode_action
17187
# The directories searched by this compiler when creating a shared library.
17188
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17190
# Dependencies to place before and after the objects being linked to
17191
# create a shared library.
17192
predep_objects=$lt_predep_objects
17193
postdep_objects=$lt_postdep_objects
17194
predeps=$lt_predeps
17195
postdeps=$lt_postdeps
17197
# The library search path used internally by the compiler when linking
17198
# a shared library.
17199
compiler_lib_search_path=$lt_compiler_lib_search_path
17201
# ### END LIBTOOL CONFIG
17207
cat <<\_LT_EOF >> "$cfgfile"
17208
# AIX sometimes has problems with the GCC collect2 program. For some
17209
# reason, if we set the COLLECT_NAMES environment variable, the problems
17210
# vanish in a puff of smoke.
17211
if test "X${COLLECT_NAMES+set}" != Xset; then
17213
export COLLECT_NAMES
17220
ltmain="$ac_aux_dir/ltmain.sh"
17223
# We use sed instead of cat because bash on DJGPP gets confused if
17224
# if finds mixed CR/LF and LF-only lines. Since sed operates in
17225
# text mode, it properly converts lines to CR/LF. This bash problem
17226
# is reportedly fixed, but why not run on old versions too?
17227
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17228
|| (rm -f "$cfgfile"; exit 1)
17232
cat << \_LT_EOF >> "$cfgfile"
17234
# func_dirname file append nondir_replacement
17235
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17236
# otherwise set result to NONDIR_REPLACEMENT.
17240
*/*) func_dirname_result="${1%/*}${2}" ;;
17241
* ) func_dirname_result="${3}" ;;
17245
# func_basename file
17248
func_basename_result="${1##*/}"
17251
# func_dirname_and_basename file append nondir_replacement
17252
# perform func_basename and func_dirname in a single function
17254
# dirname: Compute the dirname of FILE. If nonempty,
17255
# add APPEND to the result, otherwise set result
17256
# to NONDIR_REPLACEMENT.
17257
# value returned in "$func_dirname_result"
17258
# basename: Compute filename of FILE.
17259
# value retuned in "$func_basename_result"
17260
# Implementation must be kept synchronized with func_dirname
17261
# and func_basename. For efficiency, we do not delegate to
17262
# those functions but instead duplicate the functionality here.
17263
func_dirname_and_basename ()
17266
*/*) func_dirname_result="${1%/*}${2}" ;;
17267
* ) func_dirname_result="${3}" ;;
17269
func_basename_result="${1##*/}"
17272
# func_stripname prefix suffix name
17273
# strip PREFIX and SUFFIX off of NAME.
17274
# PREFIX and SUFFIX must not contain globbing or regex special
17275
# characters, hashes, percent signs, but SUFFIX may contain a leading
17276
# dot (in which case that matches only a dot).
17279
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17280
# positional parameters, so assign one to ordinary parameter first.
17281
func_stripname_result=${3}
17282
func_stripname_result=${func_stripname_result#"${1}"}
17283
func_stripname_result=${func_stripname_result%"${2}"}
17289
func_opt_split_opt=${1%%=*}
17290
func_opt_split_arg=${1#*=}
17297
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17298
*) func_lo2o_result=${1} ;;
17302
# func_xform libobj-or-source
17305
func_xform_result=${1%.*}.lo
17308
# func_arith arithmetic-term...
17311
func_arith_result=$(( $* ))
17315
# STRING may not start with a hyphen.
17318
func_len_result=${#1}
17323
*) # Bourne compatible functions.
17324
cat << \_LT_EOF >> "$cfgfile"
17326
# func_dirname file append nondir_replacement
17327
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17328
# otherwise set result to NONDIR_REPLACEMENT.
17331
# Extract subdirectory from the argument.
17332
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17333
if test "X$func_dirname_result" = "X${1}"; then
17334
func_dirname_result="${3}"
17336
func_dirname_result="$func_dirname_result${2}"
17340
# func_basename file
17343
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17347
# func_stripname prefix suffix name
17348
# strip PREFIX and SUFFIX off of NAME.
17349
# PREFIX and SUFFIX must not contain globbing or regex special
17350
# characters, hashes, percent signs, but SUFFIX may contain a leading
17351
# dot (in which case that matches only a dot).
17352
# func_strip_suffix prefix name
17356
.*) func_stripname_result=`$ECHO "X${3}" \
17357
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17358
*) func_stripname_result=`$ECHO "X${3}" \
17359
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17364
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17365
my_sed_long_arg='1s/^-[^=]*=//'
17370
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17371
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17377
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17380
# func_xform libobj-or-source
17383
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17386
# func_arith arithmetic-term...
17389
func_arith_result=`expr "$@"`
17393
# STRING may not start with a hyphen.
17396
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17402
case $lt_shell_append in
17404
cat << \_LT_EOF >> "$cfgfile"
17406
# func_append var value
17407
# Append VALUE to the end of shell variable VAR.
17415
cat << \_LT_EOF >> "$cfgfile"
17417
# func_append var value
17418
# Append VALUE to the end of shell variable VAR.
17429
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17430
|| (rm -f "$cfgfile"; exit 1)
17432
mv -f "$cfgfile" "$ofile" ||
17433
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17437
cat <<_LT_EOF >> "$ofile"
17439
# ### BEGIN LIBTOOL TAG CONFIG: CXX
17441
# The linker used to build libraries.
17444
# Commands used to build an old-style archive.
17445
old_archive_cmds=$lt_old_archive_cmds_CXX
17447
# A language specific compiler.
17448
CC=$lt_compiler_CXX
17450
# Is the compiler the GNU compiler?
17453
# Compiler flag to turn off builtin functions.
17454
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17456
# How to pass a linker flag through the compiler.
17457
wl=$lt_lt_prog_compiler_wl_CXX
17459
# Additional compiler flags for building library objects.
17460
pic_flag=$lt_lt_prog_compiler_pic_CXX
17462
# Compiler flag to prevent dynamic linking.
17463
link_static_flag=$lt_lt_prog_compiler_static_CXX
17465
# Does compiler simultaneously support -c and -o options?
17466
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17468
# Whether or not to add -lc for building shared libraries.
17469
build_libtool_need_lc=$archive_cmds_need_lc_CXX
17471
# Whether or not to disallow shared libs when runtime libs are static.
17472
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17474
# Compiler flag to allow reflexive dlopens.
17475
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17477
# Compiler flag to generate shared objects directly from archives.
17478
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17480
# Whether the compiler copes with passing no objects directly.
17481
compiler_needs_object=$lt_compiler_needs_object_CXX
17483
# Create an old-style archive from a shared archive.
17484
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17486
# Create a temporary old-style archive to link instead of a shared archive.
17487
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17489
# Commands used to build a shared archive.
17490
archive_cmds=$lt_archive_cmds_CXX
17491
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17493
# Commands used to build a loadable module if different from building
17494
# a shared archive.
17495
module_cmds=$lt_module_cmds_CXX
17496
module_expsym_cmds=$lt_module_expsym_cmds_CXX
17498
# Whether we are building with GNU ld or not.
17499
with_gnu_ld=$lt_with_gnu_ld_CXX
17501
# Flag that allows shared libraries with undefined symbols to be built.
17502
allow_undefined_flag=$lt_allow_undefined_flag_CXX
17504
# Flag that enforces no undefined symbols.
17505
no_undefined_flag=$lt_no_undefined_flag_CXX
17507
# Flag to hardcode \$libdir into a binary during linking.
17508
# This must work even if \$libdir does not exist
17509
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17511
# If ld is used when linking, flag to hardcode \$libdir into a binary
17512
# during linking. This must work even if \$libdir does not exist.
17513
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17515
# Whether we need a single "-rpath" flag with a separated argument.
17516
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17518
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17519
# DIR into the resulting binary.
17520
hardcode_direct=$hardcode_direct_CXX
17522
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17523
# DIR into the resulting binary and the resulting library dependency is
17524
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17525
# library is relocated.
17526
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17528
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17529
# into the resulting binary.
17530
hardcode_minus_L=$hardcode_minus_L_CXX
17532
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17533
# into the resulting binary.
17534
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17536
# Set to "yes" if building a shared library automatically hardcodes DIR
17537
# into the library and all subsequent libraries and executables linked
17539
hardcode_automatic=$hardcode_automatic_CXX
17541
# Set to yes if linker adds runtime paths of dependent libraries
17542
# to runtime path list.
17543
inherit_rpath=$inherit_rpath_CXX
17545
# Whether libtool must link a program against all its dependency libraries.
17546
link_all_deplibs=$link_all_deplibs_CXX
17548
# Fix the shell variable \$srcfile for the compiler.
17549
fix_srcfile_path=$lt_fix_srcfile_path_CXX
17551
# Set to "yes" if exported symbols are required.
17552
always_export_symbols=$always_export_symbols_CXX
17554
# The commands to list exported symbols.
17555
export_symbols_cmds=$lt_export_symbols_cmds_CXX
17557
# Symbols that should not be listed in the preloaded symbols.
17558
exclude_expsyms=$lt_exclude_expsyms_CXX
17560
# Symbols that must always be exported.
17561
include_expsyms=$lt_include_expsyms_CXX
17563
# Commands necessary for linking programs (against libraries) with templates.
17564
prelink_cmds=$lt_prelink_cmds_CXX
17566
# Specify filename containing input files.
17567
file_list_spec=$lt_file_list_spec_CXX
17569
# How to hardcode a shared library path into an executable.
17570
hardcode_action=$hardcode_action_CXX
17572
# The directories searched by this compiler when creating a shared library.
17573
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17575
# Dependencies to place before and after the objects being linked to
17576
# create a shared library.
17577
predep_objects=$lt_predep_objects_CXX
17578
postdep_objects=$lt_postdep_objects_CXX
17579
predeps=$lt_predeps_CXX
17580
postdeps=$lt_postdeps_CXX
17582
# The library search path used internally by the compiler when linking
17583
# a shared library.
17584
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17586
# ### END LIBTOOL TAG CONFIG: CXX
17597
ac_clean_files=$ac_clean_files_save
17599
test $ac_write_fail = 0 ||
17600
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17603
# configure is writing to config.log, and then calls config.status.
17604
# config.status does its own redirection, appending to config.log.
17605
# Unfortunately, on DOS this fails, as config.log is still kept open
17606
# by configure, so config.status won't be able to write to it; its
17607
# output is simply discarded. So we exec the FD to /dev/null,
17608
# effectively closing config.log, so it can be properly (re)opened and
17609
# appended to by config.status. When coming back to configure, we
17610
# need to make the FD available again.
17611
if test "$no_create" != yes; then
17613
ac_config_status_args=
17614
test "$silent" = yes &&
17615
ac_config_status_args="$ac_config_status_args --quiet"
17617
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17619
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
17620
# would make configure fail if this is the last instruction.
17621
$ac_cs_success || as_fn_exit 1
17625
# CONFIG_SUBDIRS section.
17627
if test "$no_recursion" != yes; then
17629
# Remove --cache-file, --srcdir, and --disable-option-checking arguments
17630
# so they do not pile up.
17631
ac_sub_configure_args=
17633
eval "set x $ac_configure_args"
17637
if test -n "$ac_prev"; then
17642
-cache-file | --cache-file | --cache-fil | --cache-fi \
17643
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17644
ac_prev=cache_file ;;
17645
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17646
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17649
--config-cache | -C)
17651
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17653
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17655
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17657
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17659
--disable-option-checking)
17663
*\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17665
as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17669
# Always prepend --prefix to ensure using the same prefix
17670
# in subdir configurations.
17671
ac_arg="--prefix=$prefix"
17673
*\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17675
ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17678
if test "$silent" = yes; then
17679
ac_sub_configure_args="--silent $ac_sub_configure_args"
17682
# Always prepend --disable-option-checking to silence warnings, since
17683
# different subdirs can have different --enable and --with options.
17684
ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17687
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17689
# Do not complain, so a configure script can configure whichever
17690
# parts of a large source tree are present.
17691
test -d "$srcdir/$ac_dir" || continue
17693
ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17694
$as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17695
$as_echo "$ac_msg" >&6
17696
as_dir="$ac_dir"; as_fn_mkdir_p
17700
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17702
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17703
# A ".." for each directory in $ac_dir_suffix.
17704
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17705
case $ac_top_builddir_sub in
17706
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17707
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17710
ac_abs_top_builddir=$ac_pwd
17711
ac_abs_builddir=$ac_pwd$ac_dir_suffix
17712
# for backward compatibility:
17713
ac_top_builddir=$ac_top_build_prefix
17716
.) # We are building in place.
17718
ac_top_srcdir=$ac_top_builddir_sub
17719
ac_abs_top_srcdir=$ac_pwd ;;
17720
[\\/]* | ?:[\\/]* ) # Absolute name.
17721
ac_srcdir=$srcdir$ac_dir_suffix;
17722
ac_top_srcdir=$srcdir
17723
ac_abs_top_srcdir=$srcdir ;;
17724
*) # Relative name.
17725
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17726
ac_top_srcdir=$ac_top_build_prefix$srcdir
17727
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17729
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17734
# Check for guested configure; otherwise get Cygnus style configure.
17735
if test -f "$ac_srcdir/configure.gnu"; then
17736
ac_sub_configure=$ac_srcdir/configure.gnu
17737
elif test -f "$ac_srcdir/configure"; then
17738
ac_sub_configure=$ac_srcdir/configure
17739
elif test -f "$ac_srcdir/configure.in"; then
17740
# This should be Cygnus configure.
17741
ac_sub_configure=$ac_aux_dir/configure
17743
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17744
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17748
# The recursion is here.
17749
if test -n "$ac_sub_configure"; then
17750
# Make the cache file name correct relative to the subdirectory.
17751
case $cache_file in
17752
[\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17753
*) # Relative name.
17754
ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17757
{ $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17758
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17759
# The eval makes quoting arguments work.
17760
eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17761
--cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17762
as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17768
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17769
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17770
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}