2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.65 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 Free Software Foundation,
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 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=$?; test $as_status -eq 0 && as_status=1
371
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374
$as_echo "$as_me: error: $1" >&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, 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
791
MAINTAINER_MODE_FALSE
819
INSTALL_STRIP_PROGRAM
873
program_transform_name
886
enable_option_checking
888
enable_dependency_tracking
889
enable_maintainer_mode
898
enable_all_jit_targets
900
ac_precious_vars='build_alias
913
ac_subdirs_all='llvm'
915
# Initialize some variables set by options.
917
ac_init_version=false
918
ac_unrecognized_opts=
920
# The variables have the same names as the options, with
921
# dashes changed to underlines.
929
program_transform_name=s,x,x,
937
# Installation directory options.
938
# These are left unexpanded so users can "make install exec_prefix=/foo"
939
# and all the variables that are supposed to be based on exec_prefix
940
# by default will actually change.
941
# Use braces instead of parens because sh, perl, etc. also accept them.
942
# (The list follows the same order as the GNU Coding Standards.)
943
bindir='${exec_prefix}/bin'
944
sbindir='${exec_prefix}/sbin'
945
libexecdir='${exec_prefix}/libexec'
946
datarootdir='${prefix}/share'
947
datadir='${datarootdir}'
948
sysconfdir='${prefix}/etc'
949
sharedstatedir='${prefix}/com'
950
localstatedir='${prefix}/var'
951
includedir='${prefix}/include'
952
oldincludedir='/usr/include'
953
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
954
infodir='${datarootdir}/info'
959
libdir='${exec_prefix}/lib'
960
localedir='${datarootdir}/locale'
961
mandir='${datarootdir}/man'
967
# If the previous option needs an argument, assign it.
968
if test -n "$ac_prev"; then
969
eval $ac_prev=\$ac_option
975
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979
# Accept the important Cygnus configure options, so we can diagnose typos.
981
case $ac_dashdash$ac_option in
985
-bindir | --bindir | --bindi | --bind | --bin | --bi)
987
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990
-build | --build | --buil | --bui | --bu)
991
ac_prev=build_alias ;;
992
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
993
build_alias=$ac_optarg ;;
995
-cache-file | --cache-file | --cache-fil | --cache-fi \
996
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997
ac_prev=cache_file ;;
998
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000
cache_file=$ac_optarg ;;
1002
--config-cache | -C)
1003
cache_file=config.cache ;;
1005
-datadir | --datadir | --datadi | --datad)
1007
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1008
datadir=$ac_optarg ;;
1010
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011
| --dataroo | --dataro | --datar)
1012
ac_prev=datarootdir ;;
1013
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015
datarootdir=$ac_optarg ;;
1017
-disable-* | --disable-*)
1018
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019
# Reject names that are not valid shell variable names.
1020
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021
as_fn_error "invalid feature name: $ac_useropt"
1022
ac_useropt_orig=$ac_useropt
1023
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024
case $ac_user_opts in
1026
"enable_$ac_useropt"
1028
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029
ac_unrecognized_sep=', ';;
1031
eval enable_$ac_useropt=no ;;
1033
-docdir | --docdir | --docdi | --doc | --do)
1035
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036
docdir=$ac_optarg ;;
1038
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041
dvidir=$ac_optarg ;;
1043
-enable-* | --enable-*)
1044
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045
# Reject names that are not valid shell variable names.
1046
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047
as_fn_error "invalid feature name: $ac_useropt"
1048
ac_useropt_orig=$ac_useropt
1049
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050
case $ac_user_opts in
1052
"enable_$ac_useropt"
1054
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1055
ac_unrecognized_sep=', ';;
1057
eval enable_$ac_useropt=\$ac_optarg ;;
1059
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1060
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1061
| --exec | --exe | --ex)
1062
ac_prev=exec_prefix ;;
1063
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1064
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1065
| --exec=* | --exe=* | --ex=*)
1066
exec_prefix=$ac_optarg ;;
1068
-gas | --gas | --ga | --g)
1069
# Obsolete; use --with-gas.
1072
-help | --help | --hel | --he | -h)
1073
ac_init_help=long ;;
1074
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1075
ac_init_help=recursive ;;
1076
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1077
ac_init_help=short ;;
1079
-host | --host | --hos | --ho)
1080
ac_prev=host_alias ;;
1081
-host=* | --host=* | --hos=* | --ho=*)
1082
host_alias=$ac_optarg ;;
1084
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088
htmldir=$ac_optarg ;;
1090
-includedir | --includedir | --includedi | --included | --include \
1091
| --includ | --inclu | --incl | --inc)
1092
ac_prev=includedir ;;
1093
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1094
| --includ=* | --inclu=* | --incl=* | --inc=*)
1095
includedir=$ac_optarg ;;
1097
-infodir | --infodir | --infodi | --infod | --info | --inf)
1099
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1100
infodir=$ac_optarg ;;
1102
-libdir | --libdir | --libdi | --libd)
1104
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1105
libdir=$ac_optarg ;;
1107
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1108
| --libexe | --libex | --libe)
1109
ac_prev=libexecdir ;;
1110
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1111
| --libexe=* | --libex=* | --libe=*)
1112
libexecdir=$ac_optarg ;;
1114
-localedir | --localedir | --localedi | --localed | --locale)
1115
ac_prev=localedir ;;
1116
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1117
localedir=$ac_optarg ;;
1119
-localstatedir | --localstatedir | --localstatedi | --localstated \
1120
| --localstate | --localstat | --localsta | --localst | --locals)
1121
ac_prev=localstatedir ;;
1122
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1123
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1124
localstatedir=$ac_optarg ;;
1126
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1129
mandir=$ac_optarg ;;
1131
-nfp | --nfp | --nf)
1132
# Obsolete; use --without-fp.
1135
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1136
| --no-cr | --no-c | -n)
1139
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1140
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1144
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1145
| --oldin | --oldi | --old | --ol | --o)
1146
ac_prev=oldincludedir ;;
1147
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1148
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1149
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1150
oldincludedir=$ac_optarg ;;
1152
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1155
prefix=$ac_optarg ;;
1157
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1158
| --program-pre | --program-pr | --program-p)
1159
ac_prev=program_prefix ;;
1160
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1161
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1162
program_prefix=$ac_optarg ;;
1164
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1165
| --program-suf | --program-su | --program-s)
1166
ac_prev=program_suffix ;;
1167
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1168
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1169
program_suffix=$ac_optarg ;;
1171
-program-transform-name | --program-transform-name \
1172
| --program-transform-nam | --program-transform-na \
1173
| --program-transform-n | --program-transform- \
1174
| --program-transform | --program-transfor \
1175
| --program-transfo | --program-transf \
1176
| --program-trans | --program-tran \
1177
| --progr-tra | --program-tr | --program-t)
1178
ac_prev=program_transform_name ;;
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
program_transform_name=$ac_optarg ;;
1188
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1191
pdfdir=$ac_optarg ;;
1193
-psdir | --psdir | --psdi | --psd | --ps)
1195
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1199
| -silent | --silent | --silen | --sile | --sil)
1202
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206
sbindir=$ac_optarg ;;
1208
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1209
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210
| --sharedst | --shareds | --shared | --share | --shar \
1212
ac_prev=sharedstatedir ;;
1213
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217
sharedstatedir=$ac_optarg ;;
1219
-site | --site | --sit)
1221
-site=* | --site=* | --sit=*)
1224
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1227
srcdir=$ac_optarg ;;
1229
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230
| --syscon | --sysco | --sysc | --sys | --sy)
1231
ac_prev=sysconfdir ;;
1232
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1234
sysconfdir=$ac_optarg ;;
1236
-target | --target | --targe | --targ | --tar | --ta | --t)
1237
ac_prev=target_alias ;;
1238
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1239
target_alias=$ac_optarg ;;
1241
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1244
-version | --version | --versio | --versi | --vers | -V)
1245
ac_init_version=: ;;
1248
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249
# Reject names that are not valid shell variable names.
1250
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251
as_fn_error "invalid package name: $ac_useropt"
1252
ac_useropt_orig=$ac_useropt
1253
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254
case $ac_user_opts in
1258
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259
ac_unrecognized_sep=', ';;
1261
eval with_$ac_useropt=\$ac_optarg ;;
1263
-without-* | --without-*)
1264
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265
# Reject names that are not valid shell variable names.
1266
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267
as_fn_error "invalid package name: $ac_useropt"
1268
ac_useropt_orig=$ac_useropt
1269
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270
case $ac_user_opts in
1274
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275
ac_unrecognized_sep=', ';;
1277
eval with_$ac_useropt=no ;;
1280
# Obsolete; use --with-x.
1283
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284
| --x-incl | --x-inc | --x-in | --x-i)
1285
ac_prev=x_includes ;;
1286
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288
x_includes=$ac_optarg ;;
1290
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1291
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292
ac_prev=x_libraries ;;
1293
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295
x_libraries=$ac_optarg ;;
1297
-*) as_fn_error "unrecognized option: \`$ac_option'
1298
Try \`$0 --help' for more information."
1302
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303
# Reject names that are not valid shell variable names.
1304
case $ac_envvar in #(
1305
'' | [0-9]* | *[!_$as_cr_alnum]* )
1306
as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1308
eval $ac_envvar=\$ac_optarg
1309
export $ac_envvar ;;
1312
# FIXME: should be removed in autoconf 3.0.
1313
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322
if test -n "$ac_prev"; then
1323
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324
as_fn_error "missing argument to $ac_option"
1327
if test -n "$ac_unrecognized_opts"; then
1328
case $enable_option_checking in
1330
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1331
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335
# Check all directory arguments for consistency.
1336
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337
datadir sysconfdir sharedstatedir localstatedir includedir \
1338
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339
libdir localedir mandir
1341
eval ac_val=\$$ac_var
1342
# Remove trailing slashes.
1345
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346
eval $ac_var=\$ac_val;;
1348
# Be sure to have absolute directory names.
1350
[\\/$]* | ?:[\\/]* ) continue;;
1351
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1356
# There might be people who depend on the old broken behavior: `$host'
1357
# used to hold the argument of --host etc.
1358
# FIXME: To remove some day.
1361
target=$target_alias
1363
# FIXME: To remove some day.
1364
if test "x$host_alias" != x; then
1365
if test "x$build_alias" = x; then
1366
cross_compiling=maybe
1367
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1368
If a cross compiler is detected then cross compile mode will be used." >&2
1369
elif test "x$build_alias" != "x$host_alias"; then
1375
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
test "$silent" = yes && exec 6>/dev/null
1380
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381
ac_ls_di=`ls -di .` &&
1382
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383
as_fn_error "working directory cannot be determined"
1384
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1385
as_fn_error "pwd does not report name of working directory"
1388
# Find the source files, if location was not specified.
1389
if test -z "$srcdir"; then
1390
ac_srcdir_defaulted=yes
1391
# Try the directory containing this script, then the parent directory.
1392
ac_confdir=`$as_dirname -- "$as_myself" ||
1393
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394
X"$as_myself" : 'X\(//\)[^/]' \| \
1395
X"$as_myself" : 'X\(//\)$' \| \
1396
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1397
$as_echo X"$as_myself" |
1398
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416
if test ! -r "$srcdir/$ac_unique_file"; then
1420
ac_srcdir_defaulted=no
1422
if test ! -r "$srcdir/$ac_unique_file"; then
1423
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1426
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1430
# When building in place, set srcdir=.
1431
if test "$ac_abs_confdir" = "$ac_pwd"; then
1434
# Remove unnecessary trailing slashes from srcdir.
1435
# Double slashes in file names in object file debugging info
1436
# mess up M-x gdb in Emacs.
1438
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440
for ac_var in $ac_precious_vars; do
1441
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1442
eval ac_env_${ac_var}_value=\$${ac_var}
1443
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1444
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448
# Report the --help message.
1450
if test "$ac_init_help" = "long"; then
1451
# Omit some internal or obsolete options to make the list less imposing.
1452
# This message is too long to be a string in the A/UX 3.1 sh.
1454
\`configure' configures libclamavc++ devel to adapt to many kinds of systems.
1456
Usage: $0 [OPTION]... [VAR=VALUE]...
1458
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1459
VAR=VALUE. See below for descriptions of some of the useful variables.
1461
Defaults for the options are specified in brackets.
1464
-h, --help display this help and exit
1465
--help=short display options specific to this package
1466
--help=recursive display the short help of all the included packages
1467
-V, --version display version information and exit
1468
-q, --quiet, --silent do not print \`checking...' messages
1469
--cache-file=FILE cache test results in FILE [disabled]
1470
-C, --config-cache alias for \`--cache-file=config.cache'
1471
-n, --no-create do not create output files
1472
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1474
Installation directories:
1475
--prefix=PREFIX install architecture-independent files in PREFIX
1476
[$ac_default_prefix]
1477
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1480
By default, \`make install' will install all the files in
1481
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1482
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483
for instance \`--prefix=\$HOME'.
1485
For better control, use the options below.
1487
Fine tuning of the installation directories:
1488
--bindir=DIR user executables [EPREFIX/bin]
1489
--sbindir=DIR system admin executables [EPREFIX/sbin]
1490
--libexecdir=DIR program executables [EPREFIX/libexec]
1491
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1492
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1493
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1494
--libdir=DIR object code libraries [EPREFIX/lib]
1495
--includedir=DIR C header files [PREFIX/include]
1496
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1497
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1498
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1499
--infodir=DIR info documentation [DATAROOTDIR/info]
1500
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1501
--mandir=DIR man documentation [DATAROOTDIR/man]
1502
--docdir=DIR documentation root [DATAROOTDIR/doc/libclamavc--]
1503
--htmldir=DIR html documentation [DOCDIR]
1504
--dvidir=DIR dvi documentation [DOCDIR]
1505
--pdfdir=DIR pdf documentation [DOCDIR]
1506
--psdir=DIR ps documentation [DOCDIR]
1512
--program-prefix=PREFIX prepend PREFIX to installed program names
1513
--program-suffix=SUFFIX append SUFFIX to installed program names
1514
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1517
--build=BUILD configure for building on BUILD [guessed]
1518
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1519
--target=TARGET configure for building compilers for TARGET [HOST]
1523
if test -n "$ac_init_help"; then
1524
case $ac_init_help in
1525
short | recursive ) echo "Configuration of libclamavc++ devel:";;
1530
--disable-option-checking ignore unrecognized --enable/--with options
1531
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533
--enable-silent-rules less verbose build output (undo: `make V=1')
1534
--disable-silent-rules verbose build output (undo: `make V=0')
1535
--disable-dependency-tracking speeds up one-time build
1536
--enable-dependency-tracking do not reject slow dependency extractors
1537
--enable-maintainer-mode enable make rules and dependencies not useful
1538
(and sometimes confusing) to the casual installer
1539
--enable-static[=PKGS] build static libraries [default=no]
1540
--enable-shared[=PKGS] build shared libraries [default=yes]
1541
--enable-fast-install[=PKGS]
1542
optimize for fast installation [default=yes]
1543
--disable-libtool-lock avoid locking (might break parallel builds)
1544
-enable-llvm Enable 'llvm' JIT/verifier support [default=auto]
1545
-enable-optimized Compile with optimizations enabled (default is YES)
1546
-enable-all-jit-targets Build all the targets that support JIT for testing
1550
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1551
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1552
--with-pic try to use only PIC/non-PIC objects [default=use
1554
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1556
Some influential environment variables:
1557
CXX C++ compiler command
1558
CXXFLAGS C++ compiler flags
1559
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1560
nonstandard directory <lib dir>
1561
LIBS libraries to pass to the linker, e.g. -l<library>
1562
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1563
you have headers in a nonstandard directory <include dir>
1564
CC C compiler command
1565
CFLAGS C compiler flags
1567
CXXCPP C++ preprocessor
1569
Use these variables to override the choices made by `configure' or to help
1570
it to find libraries and programs with nonstandard names/locations.
1572
Report bugs to <http://bugs.clamav.net>.
1577
if test "$ac_init_help" = "recursive"; then
1578
# If there are subdirs, report their specific --help.
1579
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580
test -d "$ac_dir" ||
1581
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1586
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1589
# A ".." for each directory in $ac_dir_suffix.
1590
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1591
case $ac_top_builddir_sub in
1592
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596
ac_abs_top_builddir=$ac_pwd
1597
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598
# for backward compatibility:
1599
ac_top_builddir=$ac_top_build_prefix
1602
.) # We are building in place.
1604
ac_top_srcdir=$ac_top_builddir_sub
1605
ac_abs_top_srcdir=$ac_pwd ;;
1606
[\\/]* | ?:[\\/]* ) # Absolute name.
1607
ac_srcdir=$srcdir$ac_dir_suffix;
1608
ac_top_srcdir=$srcdir
1609
ac_abs_top_srcdir=$srcdir ;;
1611
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612
ac_top_srcdir=$ac_top_build_prefix$srcdir
1613
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
cd "$ac_dir" || { ac_status=$?; continue; }
1618
# Check for guested configure.
1619
if test -f "$ac_srcdir/configure.gnu"; then
1621
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622
elif test -f "$ac_srcdir/configure"; then
1624
$SHELL "$ac_srcdir/configure" --help=recursive
1626
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628
cd "$ac_pwd" || { ac_status=$?; break; }
1632
test -n "$ac_init_help" && exit $ac_status
1633
if $ac_init_version; then
1635
libclamavc++ configure devel
1636
generated by GNU Autoconf 2.65
1638
Copyright (C) 2009 Free Software Foundation, Inc.
1639
This configure script is free software; the Free Software Foundation
1640
gives unlimited permission to copy, distribute and modify it.
1645
## ------------------------ ##
1646
## Autoconf initialization. ##
1647
## ------------------------ ##
1649
# ac_fn_cxx_try_compile LINENO
1650
# ----------------------------
1651
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1652
ac_fn_cxx_try_compile ()
1654
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655
rm -f conftest.$ac_objext
1656
if { { ac_try="$ac_compile"
1658
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659
*) ac_try_echo=$ac_try;;
1661
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662
$as_echo "$ac_try_echo"; } >&5
1663
(eval "$ac_compile") 2>conftest.err
1665
if test -s conftest.err; then
1666
grep -v '^ *+' conftest.err >conftest.er1
1667
cat conftest.er1 >&5
1668
mv -f conftest.er1 conftest.err
1670
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671
test $ac_status = 0; } && {
1672
test -z "$ac_cxx_werror_flag" ||
1673
test ! -s conftest.err
1674
} && test -s conftest.$ac_objext; then :
1677
$as_echo "$as_me: failed program was:" >&5
1678
sed 's/^/| /' conftest.$ac_ext >&5
1682
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1683
as_fn_set_status $ac_retval
1685
} # ac_fn_cxx_try_compile
1687
# ac_fn_c_try_compile LINENO
1688
# --------------------------
1689
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1690
ac_fn_c_try_compile ()
1692
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693
rm -f conftest.$ac_objext
1694
if { { ac_try="$ac_compile"
1696
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697
*) ac_try_echo=$ac_try;;
1699
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700
$as_echo "$ac_try_echo"; } >&5
1701
(eval "$ac_compile") 2>conftest.err
1703
if test -s conftest.err; then
1704
grep -v '^ *+' conftest.err >conftest.er1
1705
cat conftest.er1 >&5
1706
mv -f conftest.er1 conftest.err
1708
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709
test $ac_status = 0; } && {
1710
test -z "$ac_c_werror_flag" ||
1711
test ! -s conftest.err
1712
} && test -s conftest.$ac_objext; then :
1715
$as_echo "$as_me: failed program was:" >&5
1716
sed 's/^/| /' conftest.$ac_ext >&5
1720
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721
as_fn_set_status $ac_retval
1723
} # ac_fn_c_try_compile
1725
# ac_fn_c_try_link LINENO
1726
# -----------------------
1727
# Try to link conftest.$ac_ext, and return whether this succeeded.
1730
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731
rm -f conftest.$ac_objext conftest$ac_exeext
1732
if { { ac_try="$ac_link"
1734
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735
*) ac_try_echo=$ac_try;;
1737
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738
$as_echo "$ac_try_echo"; } >&5
1739
(eval "$ac_link") 2>conftest.err
1741
if test -s conftest.err; then
1742
grep -v '^ *+' conftest.err >conftest.er1
1743
cat conftest.er1 >&5
1744
mv -f conftest.er1 conftest.err
1746
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747
test $ac_status = 0; } && {
1748
test -z "$ac_c_werror_flag" ||
1749
test ! -s conftest.err
1750
} && test -s conftest$ac_exeext && {
1751
test "$cross_compiling" = yes ||
1752
$as_test_x conftest$ac_exeext
1756
$as_echo "$as_me: failed program was:" >&5
1757
sed 's/^/| /' conftest.$ac_ext >&5
1761
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763
# interfere with the next link command; also delete a directory that is
1764
# left behind by Apple's compiler. We do this before executing the actions.
1765
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767
as_fn_set_status $ac_retval
1769
} # ac_fn_c_try_link
1771
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1772
# -------------------------------------------------------
1773
# Tests whether HEADER exists and can be compiled using the include files in
1774
# INCLUDES, setting the cache variable VAR accordingly.
1775
ac_fn_c_check_header_compile ()
1777
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779
$as_echo_n "checking for $2... " >&6; }
1780
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1781
$as_echo_n "(cached) " >&6
1783
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784
/* end confdefs.h. */
1788
if ac_fn_c_try_compile "$LINENO"; then :
1793
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797
$as_echo "$ac_res" >&6; }
1798
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800
} # ac_fn_c_check_header_compile
1802
# ac_fn_c_try_cpp LINENO
1803
# ----------------------
1804
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1807
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808
if { { ac_try="$ac_cpp conftest.$ac_ext"
1810
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811
*) ac_try_echo=$ac_try;;
1813
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814
$as_echo "$ac_try_echo"; } >&5
1815
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1817
if test -s conftest.err; then
1818
grep -v '^ *+' conftest.err >conftest.er1
1819
cat conftest.er1 >&5
1820
mv -f conftest.er1 conftest.err
1822
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823
test $ac_status = 0; } >/dev/null && {
1824
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1825
test ! -s conftest.err
1829
$as_echo "$as_me: failed program was:" >&5
1830
sed 's/^/| /' conftest.$ac_ext >&5
1834
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835
as_fn_set_status $ac_retval
1839
# ac_fn_c_try_run LINENO
1840
# ----------------------
1841
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1842
# that executables *can* be run.
1845
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846
if { { ac_try="$ac_link"
1848
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849
*) ac_try_echo=$ac_try;;
1851
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852
$as_echo "$ac_try_echo"; } >&5
1853
(eval "$ac_link") 2>&5
1855
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1857
{ { case "(($ac_try" in
1858
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859
*) ac_try_echo=$ac_try;;
1861
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862
$as_echo "$ac_try_echo"; } >&5
1863
(eval "$ac_try") 2>&5
1865
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866
test $ac_status = 0; }; }; then :
1869
$as_echo "$as_me: program exited with status $ac_status" >&5
1870
$as_echo "$as_me: failed program was:" >&5
1871
sed 's/^/| /' conftest.$ac_ext >&5
1873
ac_retval=$ac_status
1875
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877
as_fn_set_status $ac_retval
1881
# ac_fn_c_check_func LINENO FUNC VAR
1882
# ----------------------------------
1883
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1884
ac_fn_c_check_func ()
1886
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888
$as_echo_n "checking for $2... " >&6; }
1889
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1890
$as_echo_n "(cached) " >&6
1892
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893
/* end confdefs.h. */
1894
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1895
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1896
#define $2 innocuous_$2
1898
/* System header to define __stub macros and hopefully few prototypes,
1899
which can conflict with char $2 (); below.
1900
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1901
<limits.h> exists even on freestanding compilers. */
1904
# include <limits.h>
1906
# include <assert.h>
1911
/* Override any GCC internal prototype to avoid an error.
1912
Use char because int might match the return type of a GCC
1913
builtin and then its argument prototype would still apply. */
1918
/* The GNU C library defines this for functions which it implements
1919
to always fail with ENOSYS. Some functions are actually named
1920
something starting with __ and the normal name is an alias. */
1921
#if defined __stub_$2 || defined __stub___$2
1933
if ac_fn_c_try_link "$LINENO"; then :
1938
rm -f core conftest.err conftest.$ac_objext \
1939
conftest$ac_exeext conftest.$ac_ext
1942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943
$as_echo "$ac_res" >&6; }
1944
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946
} # ac_fn_c_check_func
1948
# ac_fn_cxx_try_cpp LINENO
1949
# ------------------------
1950
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1951
ac_fn_cxx_try_cpp ()
1953
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954
if { { ac_try="$ac_cpp conftest.$ac_ext"
1956
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957
*) ac_try_echo=$ac_try;;
1959
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960
$as_echo "$ac_try_echo"; } >&5
1961
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1963
if test -s conftest.err; then
1964
grep -v '^ *+' conftest.err >conftest.er1
1965
cat conftest.er1 >&5
1966
mv -f conftest.er1 conftest.err
1968
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969
test $ac_status = 0; } >/dev/null && {
1970
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1971
test ! -s conftest.err
1975
$as_echo "$as_me: failed program was:" >&5
1976
sed 's/^/| /' conftest.$ac_ext >&5
1980
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981
as_fn_set_status $ac_retval
1983
} # ac_fn_cxx_try_cpp
1985
# ac_fn_cxx_try_link LINENO
1986
# -------------------------
1987
# Try to link conftest.$ac_ext, and return whether this succeeded.
1988
ac_fn_cxx_try_link ()
1990
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991
rm -f conftest.$ac_objext conftest$ac_exeext
1992
if { { ac_try="$ac_link"
1994
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995
*) ac_try_echo=$ac_try;;
1997
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998
$as_echo "$ac_try_echo"; } >&5
1999
(eval "$ac_link") 2>conftest.err
2001
if test -s conftest.err; then
2002
grep -v '^ *+' conftest.err >conftest.er1
2003
cat conftest.er1 >&5
2004
mv -f conftest.er1 conftest.err
2006
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007
test $ac_status = 0; } && {
2008
test -z "$ac_cxx_werror_flag" ||
2009
test ! -s conftest.err
2010
} && test -s conftest$ac_exeext && {
2011
test "$cross_compiling" = yes ||
2012
$as_test_x conftest$ac_exeext
2016
$as_echo "$as_me: failed program was:" >&5
2017
sed 's/^/| /' conftest.$ac_ext >&5
2021
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2022
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2023
# interfere with the next link command; also delete a directory that is
2024
# left behind by Apple's compiler. We do this before executing the actions.
2025
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2027
as_fn_set_status $ac_retval
2029
} # ac_fn_cxx_try_link
2030
cat >config.log <<_ACEOF
2031
This file contains any messages produced by compilers while
2032
running configure, to aid debugging if configure makes a mistake.
2034
It was created by libclamavc++ $as_me devel, which was
2035
generated by GNU Autoconf 2.65. Invocation command line was
2047
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2048
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2049
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2050
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2051
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2053
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2054
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2056
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2057
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2058
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2059
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2060
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2061
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2062
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070
test -z "$as_dir" && as_dir=.
2071
$as_echo "PATH: $as_dir"
2087
# Keep a trace of the command line.
2088
# Strip out --no-create and --no-recursion so they do not pile up.
2089
# Strip out --silent because we don't want to record it for future runs.
2090
# Also quote any args containing shell meta-characters.
2091
# Make two passes to allow for proper duplicate-argument suppression.
2095
ac_must_keep_next=false
2101
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2102
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2103
| -silent | --silent | --silen | --sile | --sil)
2106
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2109
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2111
as_fn_append ac_configure_args1 " '$ac_arg'"
2112
if test $ac_must_keep_next = true; then
2113
ac_must_keep_next=false # Got value, back to normal.
2116
*=* | --config-cache | -C | -disable-* | --disable-* \
2117
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2118
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2119
| -with-* | --with-* | -without-* | --without-* | --x)
2120
case "$ac_configure_args0 " in
2121
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2124
-* ) ac_must_keep_next=true ;;
2127
as_fn_append ac_configure_args " '$ac_arg'"
2132
{ ac_configure_args0=; unset ac_configure_args0;}
2133
{ ac_configure_args1=; unset ac_configure_args1;}
2135
# When interrupted or exit'd, cleanup temporary files, and complete
2136
# config.log. We remove comments because anyway the quotes in there
2137
# would cause problems or look ugly.
2138
# WARNING: Use '\'' to represent an apostrophe within the trap.
2139
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2140
trap 'exit_status=$?
2141
# Save into config.log some information that might help in debugging.
2146
## ---------------- ##
2147
## Cache variables. ##
2148
## ---------------- ##
2151
# The following way of writing the cache mishandles newlines in values,
2153
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2154
eval ac_val=\$$ac_var
2158
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2159
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2162
_ | IFS | as_nl) ;; #(
2163
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2164
*) { eval $ac_var=; unset $ac_var;} ;;
2169
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2170
*${as_nl}ac_space=\ *)
2172
"s/'\''/'\''\\\\'\'''\''/g;
2173
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2176
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2184
## ----------------- ##
2185
## Output variables. ##
2186
## ----------------- ##
2189
for ac_var in $ac_subst_vars
2191
eval ac_val=\$$ac_var
2193
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2195
$as_echo "$ac_var='\''$ac_val'\''"
2199
if test -n "$ac_subst_files"; then
2201
## ------------------- ##
2202
## File substitutions. ##
2203
## ------------------- ##
2206
for ac_var in $ac_subst_files
2208
eval ac_val=\$$ac_var
2210
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212
$as_echo "$ac_var='\''$ac_val'\''"
2217
if test -s confdefs.h; then
2227
test "$ac_signal" != 0 &&
2228
$as_echo "$as_me: caught signal $ac_signal"
2229
$as_echo "$as_me: exit $exit_status"
2231
rm -f core *.core core.conftest.* &&
2232
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2235
for ac_signal in 1 2 13 15; do
2236
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2240
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2241
rm -f -r conftest* confdefs.h
2243
$as_echo "/* confdefs.h */" > confdefs.h
2245
# Predefined preprocessor variables.
2247
cat >>confdefs.h <<_ACEOF
2248
#define PACKAGE_NAME "$PACKAGE_NAME"
2251
cat >>confdefs.h <<_ACEOF
2252
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2255
cat >>confdefs.h <<_ACEOF
2256
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2259
cat >>confdefs.h <<_ACEOF
2260
#define PACKAGE_STRING "$PACKAGE_STRING"
2263
cat >>confdefs.h <<_ACEOF
2264
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2267
cat >>confdefs.h <<_ACEOF
2268
#define PACKAGE_URL "$PACKAGE_URL"
2272
# Let the site file select an alternate cache file if it wants to.
2273
# Prefer an explicitly selected file to automatically selected ones.
2276
if test -n "$CONFIG_SITE"; then
2277
ac_site_file1=$CONFIG_SITE
2278
elif test "x$prefix" != xNONE; then
2279
ac_site_file1=$prefix/share/config.site
2280
ac_site_file2=$prefix/etc/config.site
2282
ac_site_file1=$ac_default_prefix/share/config.site
2283
ac_site_file2=$ac_default_prefix/etc/config.site
2285
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2287
test "x$ac_site_file" = xNONE && continue
2288
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2289
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2290
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2291
sed 's/^/| /' "$ac_site_file" >&5
2296
if test -r "$cache_file"; then
2297
# Some versions of bash will fail to source /dev/null (special files
2298
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2299
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2300
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2301
$as_echo "$as_me: loading cache $cache_file" >&6;}
2303
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2304
*) . "./$cache_file";;
2308
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2309
$as_echo "$as_me: creating cache $cache_file" >&6;}
2313
# Check that the precious variables saved in the cache have kept the same
2315
ac_cache_corrupted=false
2316
for ac_var in $ac_precious_vars; do
2317
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2318
eval ac_new_set=\$ac_env_${ac_var}_set
2319
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2320
eval ac_new_val=\$ac_env_${ac_var}_value
2321
case $ac_old_set,$ac_new_set in
2323
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2324
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2325
ac_cache_corrupted=: ;;
2327
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2328
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2329
ac_cache_corrupted=: ;;
2332
if test "x$ac_old_val" != "x$ac_new_val"; then
2333
# differences in whitespace do not lead to failure.
2334
ac_old_val_w=`echo x $ac_old_val`
2335
ac_new_val_w=`echo x $ac_new_val`
2336
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2337
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2338
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2339
ac_cache_corrupted=:
2341
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2342
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2343
eval $ac_var=\$ac_old_val
2345
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2346
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2347
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2348
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2351
# Pass precious variables to config.status.
2352
if test "$ac_new_set" = set; then
2354
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2355
*) ac_arg=$ac_var=$ac_new_val ;;
2357
case " $ac_configure_args " in
2358
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2359
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2363
if $ac_cache_corrupted; then
2364
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2365
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2366
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2367
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2368
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2370
## -------------------- ##
2371
## Main body of script. ##
2372
## -------------------- ##
2375
ac_cpp='$CPP $CPPFLAGS'
2376
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2382
for ac_dir in config "$srcdir"/config; do
2383
for ac_t in install-sh install.sh shtool; do
2384
if test -f "$ac_dir/$ac_t"; then
2386
ac_install_sh="$ac_aux_dir/$ac_t -c"
2391
if test -z "$ac_aux_dir"; then
2392
as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2395
# These three variables are undocumented and unsupported,
2396
# and are intended to be withdrawn in a future Autoconf release.
2397
# They can cause serious problems if a builder's source tree is in a directory
2398
# whose full name contains unusual characters.
2399
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2400
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2401
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2406
ac_config_headers="$ac_config_headers clamavcxx-config.h"
2408
# Make sure we can run config.sub.
2409
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2410
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2412
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2413
$as_echo_n "checking build system type... " >&6; }
2414
if test "${ac_cv_build+set}" = set; then :
2415
$as_echo_n "(cached) " >&6
2417
ac_build_alias=$build_alias
2418
test "x$ac_build_alias" = x &&
2419
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2420
test "x$ac_build_alias" = x &&
2421
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2422
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2423
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2426
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2427
$as_echo "$ac_cv_build" >&6; }
2428
case $ac_cv_build in
2430
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2433
ac_save_IFS=$IFS; IFS='-'
2439
# Remember, the first character of IFS is used to create $*,
2440
# except with old shells:
2443
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2446
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2447
$as_echo_n "checking host system type... " >&6; }
2448
if test "${ac_cv_host+set}" = set; then :
2449
$as_echo_n "(cached) " >&6
2451
if test "x$host_alias" = x; then
2452
ac_cv_host=$ac_cv_build
2454
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2455
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2459
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2460
$as_echo "$ac_cv_host" >&6; }
2463
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2466
ac_save_IFS=$IFS; IFS='-'
2472
# Remember, the first character of IFS is used to create $*,
2473
# except with old shells:
2476
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2480
$as_echo_n "checking target system type... " >&6; }
2481
if test "${ac_cv_target+set}" = set; then :
2482
$as_echo_n "(cached) " >&6
2484
if test "x$target_alias" = x; then
2485
ac_cv_target=$ac_cv_host
2487
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2488
as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2492
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2493
$as_echo "$ac_cv_target" >&6; }
2494
case $ac_cv_target in
2496
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2498
target=$ac_cv_target
2499
ac_save_IFS=$IFS; IFS='-'
2505
# Remember, the first character of IFS is used to create $*,
2506
# except with old shells:
2509
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2512
# The aliases save the names the user supplied, while $host etc.
2513
# will get canonicalized.
2514
test -n "$target_alias" &&
2515
test "$program_prefix$program_suffix$program_transform_name" = \
2517
program_prefix=${target_alias}-
2518
am__api_version='1.11'
2520
# Find a good install program. We prefer a C program (faster),
2521
# so one script is as good as another. But avoid the broken or
2522
# incompatible versions:
2523
# SysV /etc/install, /usr/sbin/install
2524
# SunOS /usr/etc/install
2525
# IRIX /sbin/install
2527
# AmigaOS /C/install, which installs bootblocks on floppy discs
2528
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2529
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2530
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2531
# OS/2's system install, which has a completely different semantic
2532
# ./install, which can be erroneously created by make from ./install.sh.
2533
# Reject install programs that cannot install multiple files.
2534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2535
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2536
if test -z "$INSTALL"; then
2537
if test "${ac_cv_path_install+set}" = set; then :
2538
$as_echo_n "(cached) " >&6
2540
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544
test -z "$as_dir" && as_dir=.
2545
# Account for people who put trailing slashes in PATH elements.
2546
case $as_dir/ in #((
2547
./ | .// | /[cC]/* | \
2548
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2549
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2552
# OSF1 and SCO ODT 3.0 have their own names for install.
2553
# Don't use installbsd from OSF since it installs stuff as root
2555
for ac_prog in ginstall scoinst install; do
2556
for ac_exec_ext in '' $ac_executable_extensions; do
2557
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2558
if test $ac_prog = install &&
2559
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2560
# AIX install. It has an incompatible calling convention.
2562
elif test $ac_prog = install &&
2563
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2564
# program-specific install script used by HP pwplus--don't use.
2567
rm -rf conftest.one conftest.two conftest.dir
2568
echo one > conftest.one
2569
echo two > conftest.two
2571
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2572
test -s conftest.one && test -s conftest.two &&
2573
test -s conftest.dir/conftest.one &&
2574
test -s conftest.dir/conftest.two
2576
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2589
rm -rf conftest.one conftest.two conftest.dir
2592
if test "${ac_cv_path_install+set}" = set; then
2593
INSTALL=$ac_cv_path_install
2595
# As a last resort, use the slow shell script. Don't cache a
2596
# value for INSTALL within a source directory, because that will
2597
# break other packages using the cache if that directory is
2598
# removed, or if the value is a relative name.
2599
INSTALL=$ac_install_sh
2602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2603
$as_echo "$INSTALL" >&6; }
2605
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2606
# It thinks the first close brace ends the variable substitution.
2607
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2609
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2611
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2613
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2614
$as_echo_n "checking whether build environment is sane... " >&6; }
2617
echo timestamp > conftest.file
2618
# Reject unsafe characters in $srcdir or the absolute working directory
2619
# name. Accept space and tab only in the latter.
2623
*[\\\"\#\$\&\'\`$am_lf]*)
2624
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2627
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2628
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2631
# Do `set' in a subshell so we don't clobber the current shell's
2632
# arguments. Must try -L first in case configure is actually a
2633
# symlink; some systems play weird games with the mod time of symlinks
2634
# (eg FreeBSD returns the mod time of the symlink's containing
2637
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2638
if test "$*" = "X"; then
2640
set X `ls -t "$srcdir/configure" conftest.file`
2643
if test "$*" != "X $srcdir/configure conftest.file" \
2644
&& test "$*" != "X conftest.file $srcdir/configure"; then
2646
# If neither matched, then we have a broken ls. This can happen
2647
# if, for instance, CONFIG_SHELL is bash and it inherits a
2648
# broken ls alias from the environment. This has actually
2649
# happened. Such a system could not be considered "sane".
2650
as_fn_error "ls -t appears to fail. Make sure there is not a broken
2651
alias in your environment" "$LINENO" 5
2654
test "$2" = conftest.file
2660
as_fn_error "newly created file is older than distributed files!
2661
Check your system clock" "$LINENO" 5
2663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2664
$as_echo "yes" >&6; }
2665
test "$program_prefix" != NONE &&
2666
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2667
# Use a double $ so make ignores it.
2668
test "$program_suffix" != NONE &&
2669
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2670
# Double any \ or $.
2671
# By default was `s,x,x', remove it if useless.
2672
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2673
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2675
# expand $ac_aux_dir to an absolute path
2676
am_aux_dir=`cd $ac_aux_dir && pwd`
2678
if test x"${MISSING+set}" != xset; then
2681
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2683
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2686
# Use eval to expand $SHELL
2687
if eval "$MISSING --run true"; then
2688
am_missing_run="$MISSING --run "
2691
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2692
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2695
if test x"${install_sh}" != xset; then
2698
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2700
install_sh="\${SHELL} $am_aux_dir/install-sh"
2704
# Installed binaries are usually stripped using `strip' when the user
2705
# run `make install-strip'. However `strip' might not be the right
2706
# tool to use in cross-compilation environments, therefore Automake
2707
# will honor the `STRIP' environment variable to overrule this program.
2708
if test "$cross_compiling" != no; then
2709
if test -n "$ac_tool_prefix"; then
2710
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2711
set dummy ${ac_tool_prefix}strip; ac_word=$2
2712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713
$as_echo_n "checking for $ac_word... " >&6; }
2714
if test "${ac_cv_prog_STRIP+set}" = set; then :
2715
$as_echo_n "(cached) " >&6
2717
if test -n "$STRIP"; then
2718
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2720
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724
test -z "$as_dir" && as_dir=.
2725
for ac_exec_ext in '' $ac_executable_extensions; do
2726
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2727
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2728
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737
STRIP=$ac_cv_prog_STRIP
2738
if test -n "$STRIP"; then
2739
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2740
$as_echo "$STRIP" >&6; }
2742
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743
$as_echo "no" >&6; }
2748
if test -z "$ac_cv_prog_STRIP"; then
2750
# Extract the first word of "strip", so it can be a program name with args.
2751
set dummy strip; ac_word=$2
2752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753
$as_echo_n "checking for $ac_word... " >&6; }
2754
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2755
$as_echo_n "(cached) " >&6
2757
if test -n "$ac_ct_STRIP"; then
2758
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2760
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764
test -z "$as_dir" && as_dir=.
2765
for ac_exec_ext in '' $ac_executable_extensions; do
2766
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767
ac_cv_prog_ac_ct_STRIP="strip"
2768
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2778
if test -n "$ac_ct_STRIP"; then
2779
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2780
$as_echo "$ac_ct_STRIP" >&6; }
2782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783
$as_echo "no" >&6; }
2786
if test "x$ac_ct_STRIP" = x; then
2789
case $cross_compiling:$ac_tool_warned in
2791
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2792
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2793
ac_tool_warned=yes ;;
2798
STRIP="$ac_cv_prog_STRIP"
2802
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2805
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2806
if test -z "$MKDIR_P"; then
2807
if test "${ac_cv_path_mkdir+set}" = set; then :
2808
$as_echo_n "(cached) " >&6
2810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2814
test -z "$as_dir" && as_dir=.
2815
for ac_prog in mkdir gmkdir; do
2816
for ac_exec_ext in '' $ac_executable_extensions; do
2817
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2818
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2819
'mkdir (GNU coreutils) '* | \
2820
'mkdir (coreutils) '* | \
2821
'mkdir (fileutils) '4.1*)
2822
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2832
test -d ./--version && rmdir ./--version
2833
if test "${ac_cv_path_mkdir+set}" = set; then
2834
MKDIR_P="$ac_cv_path_mkdir -p"
2836
# As a last resort, use the slow shell script. Don't cache a
2837
# value for MKDIR_P within a source directory, because that will
2838
# break other packages using the cache if that directory is
2839
# removed, or if the value is a relative name.
2840
MKDIR_P="$ac_install_sh -d"
2843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2844
$as_echo "$MKDIR_P" >&6; }
2848
[\\/$]* | ?:[\\/]*) ;;
2849
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2852
for ac_prog in gawk mawk nawk awk
2854
# Extract the first word of "$ac_prog", so it can be a program name with args.
2855
set dummy $ac_prog; ac_word=$2
2856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857
$as_echo_n "checking for $ac_word... " >&6; }
2858
if test "${ac_cv_prog_AWK+set}" = set; then :
2859
$as_echo_n "(cached) " >&6
2861
if test -n "$AWK"; then
2862
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2864
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868
test -z "$as_dir" && as_dir=.
2869
for ac_exec_ext in '' $ac_executable_extensions; do
2870
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2871
ac_cv_prog_AWK="$ac_prog"
2872
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882
if test -n "$AWK"; then
2883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2884
$as_echo "$AWK" >&6; }
2886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887
$as_echo "no" >&6; }
2891
test -n "$AWK" && break
2894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2895
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2897
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2898
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2899
$as_echo_n "(cached) " >&6
2901
cat >conftest.make <<\_ACEOF
2904
@echo '@@@%%%=$(MAKE)=@@@%%%'
2906
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2907
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2909
eval ac_cv_prog_make_${ac_make}_set=yes;;
2911
eval ac_cv_prog_make_${ac_make}_set=no;;
2915
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2916
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2917
$as_echo "yes" >&6; }
2920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921
$as_echo "no" >&6; }
2922
SET_MAKE="MAKE=${MAKE-make}"
2925
rm -rf .tst 2>/dev/null
2926
mkdir .tst 2>/dev/null
2927
if test -d .tst; then
2932
rmdir .tst 2>/dev/null
2934
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2935
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2936
# is not polluted with repeated "-I."
2937
am__isrc=' -I$(srcdir)'
2938
# test to see if srcdir already configured
2939
if test -f $srcdir/config.status; then
2940
as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2944
# test whether we have cygpath
2945
if test -z "$CYGPATH_W"; then
2946
if (cygpath --version) >/dev/null 2>/dev/null; then
2947
CYGPATH_W='cygpath -w'
2954
# Define the identity of the package.
2955
PACKAGE='libclamavc--'
2959
# Some tools Automake needs.
2961
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2964
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2967
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2970
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2973
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2975
# We need awk for the "check" target. The system "awk" is bad on
2977
# Always define AMTAR for backward compatibility.
2979
AMTAR=${AMTAR-"${am_missing_run}tar"}
2982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2983
$as_echo_n "checking how to create a pax tar archive... " >&6; }
2984
# Loop over all known methods to create a tar archive until one works.
2985
_am_tools='gnutar pax cpio none'
2986
_am_tools=${am_cv_prog_tar_pax-$_am_tools}
2987
# Do not fold the above two line into one, because Tru64 sh and
2988
# Solaris sh will not grok spaces in the rhs of `-'.
2989
for _am_tool in $_am_tools
2993
for _am_tar in tar gnutar gtar;
2995
{ echo "$as_me:$LINENO: $_am_tar --version" >&5
2996
($_am_tar --version) >&5 2>&5
2998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999
(exit $ac_status); } && break
3001
am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3002
am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3003
am__untar="$_am_tar -xf -"
3006
# Must skip GNU tar: if it does not support --format= it doesn't create
3007
# ustar tarball either.
3008
(tar --version) >/dev/null 2>&1 && continue
3009
am__tar='tar chf - "$$tardir"'
3010
am__tar_='tar chf - "$tardir"'
3011
am__untar='tar xf -'
3014
am__tar='pax -L -x pax -w "$$tardir"'
3015
am__tar_='pax -L -x pax -w "$tardir"'
3019
am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3020
am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3021
am__untar='cpio -i -H pax -d'
3030
# If the value was cached, stop now. We just wanted to have am__tar
3031
# and am__untar set.
3032
test -n "${am_cv_prog_tar_pax}" && break
3034
# tar/untar a dummy directory, and stop if the command works
3037
echo GrepMe > conftest.dir/file
3038
{ echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3039
(tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042
(exit $ac_status); }
3044
if test -s conftest.tar; then
3045
{ echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3046
($am__untar <conftest.tar) >&5 2>&5
3048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049
(exit $ac_status); }
3050
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3055
if test "${am_cv_prog_tar_pax+set}" = set; then :
3056
$as_echo_n "(cached) " >&6
3058
am_cv_prog_tar_pax=$_am_tool
3061
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3062
$as_echo "$am_cv_prog_tar_pax" >&6; }
3068
# Check whether --enable-silent-rules was given.
3069
if test "${enable_silent_rules+set}" = set; then :
3070
enableval=$enable_silent_rules;
3073
case $enable_silent_rules in
3074
yes) AM_DEFAULT_VERBOSITY=0;;
3075
no) AM_DEFAULT_VERBOSITY=1;;
3076
*) AM_DEFAULT_VERBOSITY=0;;
3081
cxxset=${CXXFLAGS+set}
3083
ac_cpp='$CXXCPP $CPPFLAGS'
3084
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3087
if test -z "$CXX"; then
3088
if test -n "$CCC"; then
3091
if test -n "$ac_tool_prefix"; then
3092
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3094
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3095
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097
$as_echo_n "checking for $ac_word... " >&6; }
3098
if test "${ac_cv_prog_CXX+set}" = set; then :
3099
$as_echo_n "(cached) " >&6
3101
if test -n "$CXX"; then
3102
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3104
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108
test -z "$as_dir" && as_dir=.
3109
for ac_exec_ext in '' $ac_executable_extensions; do
3110
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3112
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122
if test -n "$CXX"; then
3123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3124
$as_echo "$CXX" >&6; }
3126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127
$as_echo "no" >&6; }
3131
test -n "$CXX" && break
3134
if test -z "$CXX"; then
3136
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3138
# Extract the first word of "$ac_prog", so it can be a program name with args.
3139
set dummy $ac_prog; ac_word=$2
3140
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141
$as_echo_n "checking for $ac_word... " >&6; }
3142
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3143
$as_echo_n "(cached) " >&6
3145
if test -n "$ac_ct_CXX"; then
3146
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152
test -z "$as_dir" && as_dir=.
3153
for ac_exec_ext in '' $ac_executable_extensions; do
3154
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155
ac_cv_prog_ac_ct_CXX="$ac_prog"
3156
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3166
if test -n "$ac_ct_CXX"; then
3167
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3168
$as_echo "$ac_ct_CXX" >&6; }
3170
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171
$as_echo "no" >&6; }
3175
test -n "$ac_ct_CXX" && break
3178
if test "x$ac_ct_CXX" = x; then
3181
case $cross_compiling:$ac_tool_warned in
3183
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3184
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3185
ac_tool_warned=yes ;;
3193
# Provide some information about the compiler.
3194
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3197
for ac_option in --version -v -V -qversion; do
3198
{ { ac_try="$ac_compiler $ac_option >&5"
3200
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201
*) ac_try_echo=$ac_try;;
3203
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3204
$as_echo "$ac_try_echo"; } >&5
3205
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3207
if test -s conftest.err; then
3209
... rest of stderr output deleted ...
3210
10q' conftest.err >conftest.er1
3211
cat conftest.er1 >&5
3213
rm -f conftest.er1 conftest.err
3214
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215
test $ac_status = 0; }
3218
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219
/* end confdefs.h. */
3229
ac_clean_files_save=$ac_clean_files
3230
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3231
# Try to create an executable without -o first, disregard a.out.
3232
# It will help us diagnose broken compilers, and finding out an intuition
3234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3235
$as_echo_n "checking whether the C++ compiler works... " >&6; }
3236
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3238
# The possible output files:
3239
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3242
for ac_file in $ac_files
3245
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3246
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3251
if { { ac_try="$ac_link_default"
3253
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254
*) ac_try_echo=$ac_try;;
3256
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257
$as_echo "$ac_try_echo"; } >&5
3258
(eval "$ac_link_default") 2>&5
3260
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261
test $ac_status = 0; }; then :
3262
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3263
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3264
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3265
# so that the user can short-circuit this test for compilers unknown to
3267
for ac_file in $ac_files ''
3269
test -f "$ac_file" || continue
3271
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3274
# We found the default executable, but exeext='' is most
3278
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3280
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3282
# We set ac_cv_exeext here because the later test for it is not
3283
# safe: cross compilers may not add the suffix if given an `-o'
3284
# argument, so we may need to know it at that point already.
3285
# Even if this section looks crufty: it has the advantage of
3292
test "$ac_cv_exeext" = no && ac_cv_exeext=
3297
if test -z "$ac_file"; then :
3298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299
$as_echo "no" >&6; }
3300
$as_echo "$as_me: failed program was:" >&5
3301
sed 's/^/| /' conftest.$ac_ext >&5
3303
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305
{ as_fn_set_status 77
3306
as_fn_error "C++ compiler cannot create executables
3307
See \`config.log' for more details." "$LINENO" 5; }; }
3309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310
$as_echo "yes" >&6; }
3312
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3313
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3314
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3315
$as_echo "$ac_file" >&6; }
3316
ac_exeext=$ac_cv_exeext
3318
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3319
ac_clean_files=$ac_clean_files_save
3320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3321
$as_echo_n "checking for suffix of executables... " >&6; }
3322
if { { ac_try="$ac_link"
3324
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325
*) ac_try_echo=$ac_try;;
3327
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328
$as_echo "$ac_try_echo"; } >&5
3329
(eval "$ac_link") 2>&5
3331
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332
test $ac_status = 0; }; then :
3333
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3334
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3335
# work properly (i.e., refer to `conftest.exe'), while it won't with
3337
for ac_file in conftest.exe conftest conftest.*; do
3338
test -f "$ac_file" || continue
3340
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3341
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349
as_fn_error "cannot compute suffix of executables: cannot compile and link
3350
See \`config.log' for more details." "$LINENO" 5; }
3352
rm -f conftest conftest$ac_cv_exeext
3353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3354
$as_echo "$ac_cv_exeext" >&6; }
3356
rm -f conftest.$ac_ext
3357
EXEEXT=$ac_cv_exeext
3359
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360
/* end confdefs.h. */
3365
FILE *f = fopen ("conftest.out", "w");
3366
return ferror (f) || fclose (f) != 0;
3372
ac_clean_files="$ac_clean_files conftest.out"
3373
# Check that the compiler produces executables we can run. If not, either
3374
# the compiler is broken, or we cross compile.
3375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3376
$as_echo_n "checking whether we are cross compiling... " >&6; }
3377
if test "$cross_compiling" != yes; then
3378
{ { ac_try="$ac_link"
3380
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381
*) ac_try_echo=$ac_try;;
3383
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384
$as_echo "$ac_try_echo"; } >&5
3385
(eval "$ac_link") 2>&5
3387
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388
test $ac_status = 0; }
3389
if { ac_try='./conftest$ac_cv_exeext'
3390
{ { case "(($ac_try" in
3391
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392
*) ac_try_echo=$ac_try;;
3394
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395
$as_echo "$ac_try_echo"; } >&5
3396
(eval "$ac_try") 2>&5
3398
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399
test $ac_status = 0; }; }; then
3402
if test "$cross_compiling" = maybe; then
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 run C++ compiled programs.
3408
If you meant to cross compile, use \`--host'.
3409
See \`config.log' for more details." "$LINENO" 5; }
3413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3414
$as_echo "$cross_compiling" >&6; }
3416
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3417
ac_clean_files=$ac_clean_files_save
3418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3419
$as_echo_n "checking for suffix of object files... " >&6; }
3420
if test "${ac_cv_objext+set}" = set; then :
3421
$as_echo_n "(cached) " >&6
3423
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424
/* end confdefs.h. */
3434
rm -f conftest.o conftest.obj
3435
if { { ac_try="$ac_compile"
3437
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438
*) ac_try_echo=$ac_try;;
3440
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441
$as_echo "$ac_try_echo"; } >&5
3442
(eval "$ac_compile") 2>&5
3444
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445
test $ac_status = 0; }; then :
3446
for ac_file in conftest.o conftest.obj conftest.*; do
3447
test -f "$ac_file" || continue;
3449
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3450
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3455
$as_echo "$as_me: failed program was:" >&5
3456
sed 's/^/| /' conftest.$ac_ext >&5
3458
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460
as_fn_error "cannot compute suffix of object files: cannot compile
3461
See \`config.log' for more details." "$LINENO" 5; }
3463
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3465
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3466
$as_echo "$ac_cv_objext" >&6; }
3467
OBJEXT=$ac_cv_objext
3469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3470
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3471
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3472
$as_echo_n "(cached) " >&6
3474
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475
/* end confdefs.h. */
3488
if ac_fn_cxx_try_compile "$LINENO"; then :
3493
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3498
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3499
if test $ac_compiler_gnu = yes; then
3504
ac_test_CXXFLAGS=${CXXFLAGS+set}
3505
ac_save_CXXFLAGS=$CXXFLAGS
3506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3507
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3508
if test "${ac_cv_prog_cxx_g+set}" = set; then :
3509
$as_echo_n "(cached) " >&6
3511
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3512
ac_cxx_werror_flag=yes
3515
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516
/* end confdefs.h. */
3526
if ac_fn_cxx_try_compile "$LINENO"; then :
3527
ac_cv_prog_cxx_g=yes
3530
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531
/* end confdefs.h. */
3541
if ac_fn_cxx_try_compile "$LINENO"; then :
3544
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3546
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547
/* end confdefs.h. */
3557
if ac_fn_cxx_try_compile "$LINENO"; then :
3558
ac_cv_prog_cxx_g=yes
3560
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3568
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3569
if test "$ac_test_CXXFLAGS" = set; then
3570
CXXFLAGS=$ac_save_CXXFLAGS
3571
elif test $ac_cv_prog_cxx_g = yes; then
3572
if test "$GXX" = yes; then
3578
if test "$GXX" = yes; then
3585
ac_cpp='$CPP $CPPFLAGS'
3586
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589
DEPDIR="${am__leading_dot}deps"
3591
ac_config_commands="$ac_config_commands depfiles"
3594
am_make=${MAKE-make}
3595
cat > confinc << 'END'
3597
@echo this is the am__doit target
3600
# If we don't find an include directive, just comment out the code.
3601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3602
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3606
# First try GNU make style include.
3607
echo "include confinc" > confmf
3608
# Ignore all kinds of additional output from `make'.
3609
case `$am_make -s -f confmf 2> /dev/null` in #(
3610
*the\ am__doit\ target*)
3616
# Now try BSD make style include.
3617
if test "$am__include" = "#"; then
3618
echo '.include "confinc"' > confmf
3619
case `$am_make -s -f confmf 2> /dev/null` in #(
3620
*the\ am__doit\ target*)
3621
am__include=.include
3629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3630
$as_echo "$_am_result" >&6; }
3631
rm -f confinc confmf
3633
# Check whether --enable-dependency-tracking was given.
3634
if test "${enable_dependency_tracking+set}" = set; then :
3635
enableval=$enable_dependency_tracking;
3638
if test "x$enable_dependency_tracking" != xno; then
3639
am_depcomp="$ac_aux_dir/depcomp"
3642
if test "x$enable_dependency_tracking" != xno; then
3652
depcc="$CXX" am_compiler_list=
3654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3655
$as_echo_n "checking dependency style of $depcc... " >&6; }
3656
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3657
$as_echo_n "(cached) " >&6
3659
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3660
# We make a subdir and do the tests there. Otherwise we can end up
3661
# making bogus files that we don't know about and never remove. For
3662
# instance it was reported that on HP-UX the gcc test will end up
3663
# making a dummy file named `D' -- because `-MD' means `put the output
3666
# Copy depcomp to subdir because otherwise we won't find it if we're
3667
# using a relative directory.
3668
cp "$am_depcomp" conftest.dir
3670
# We will build objects and dependencies in a subdirectory because
3671
# it helps to detect inapplicable dependency modes. For instance
3672
# both Tru64's cc and ICC support -MD to output dependencies as a
3673
# side effect of compilation, but ICC will put the dependencies in
3674
# the current directory while Tru64 will put them in the object
3678
am_cv_CXX_dependencies_compiler_type=none
3679
if test "$am_compiler_list" = ""; then
3680
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3683
case " $depcc " in #(
3684
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3687
for depmode in $am_compiler_list; do
3688
# Setup a source with many dependencies, because some compilers
3689
# like to wrap large dependency lists on column 80 (with \), and
3690
# we should not choose a depcomp mode which is confused by this.
3692
# We need to recreate these files for each test, as the compiler may
3693
# overwrite some of them when testing with obscure command lines.
3694
# This happens at least with the AIX C compiler.
3696
for i in 1 2 3 4 5 6; do
3697
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3698
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3699
# Solaris 8's {/usr,}/bin/sh.
3700
touch sub/conftst$i.h
3702
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3704
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3705
# mode. It turns out that the SunPro C++ compiler does not properly
3706
# handle `-M -o', and we need to detect this. Also, some Intel
3707
# versions had trouble with output in subdirs
3708
am__obj=sub/conftest.${OBJEXT-o}
3709
am__minus_obj="-o $am__obj"
3712
# This depmode causes a compiler race in universal mode.
3713
test "$am__universal" = false || continue
3716
# after this tag, mechanisms are not by side-effect, so they'll
3717
# only be used when explicitly requested
3718
if test "x$enable_dependency_tracking" = xyes; then
3724
msvisualcpp | msvcmsys)
3725
# This compiler won't grok `-c -o', but also, the minuso test has
3726
# not run yet. These depmodes are late enough in the game, and
3727
# so weak that their functioning should not be impacted.
3728
am__obj=conftest.${OBJEXT-o}
3733
if depmode=$depmode \
3734
source=sub/conftest.c object=$am__obj \
3735
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3736
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3737
>/dev/null 2>conftest.err &&
3738
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3739
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3740
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3741
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3742
# icc doesn't choke on unknown options, it will just issue warnings
3743
# or remarks (even with -Werror). So we grep stderr for any message
3744
# that says an option was ignored or not supported.
3745
# When given -MP, icc 7.0 and 7.1 complain thusly:
3746
# icc: Command line warning: ignoring option '-M'; no argument required
3747
# The diagnosis changed in icc 8.0:
3748
# icc: Command line remark: option '-MP' not supported
3749
if (grep 'ignoring option' conftest.err ||
3750
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3751
am_cv_CXX_dependencies_compiler_type=$depmode
3760
am_cv_CXX_dependencies_compiler_type=none
3764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3765
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3766
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3769
test "x$enable_dependency_tracking" != xno \
3770
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3771
am__fastdepCXX_TRUE=
3772
am__fastdepCXX_FALSE='#'
3774
am__fastdepCXX_TRUE='#'
3775
am__fastdepCXX_FALSE=
3780
if test "$cxxset" != set; then
3781
# don't use the default -O2 -g because -g bloats the C++ binaries too much
3786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3787
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3788
# Check whether --enable-maintainer-mode was given.
3789
if test "${enable_maintainer_mode+set}" = set; then :
3790
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3792
USE_MAINTAINER_MODE=no
3795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3796
$as_echo "$USE_MAINTAINER_MODE" >&6; }
3797
if test $USE_MAINTAINER_MODE = yes; then
3798
MAINTAINER_MODE_TRUE=
3799
MAINTAINER_MODE_FALSE='#'
3801
MAINTAINER_MODE_TRUE='#'
3802
MAINTAINER_MODE_FALSE=
3805
MAINT=$MAINTAINER_MODE_TRUE
3810
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3811
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3816
macro_version='2.2.6b'
3817
macro_revision='1.3017'
3831
ltmain="$ac_aux_dir/ltmain.sh"
3834
ac_cpp='$CPP $CPPFLAGS'
3835
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3838
if test -n "$ac_tool_prefix"; then
3839
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3840
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842
$as_echo_n "checking for $ac_word... " >&6; }
3843
if test "${ac_cv_prog_CC+set}" = set; then :
3844
$as_echo_n "(cached) " >&6
3846
if test -n "$CC"; then
3847
ac_cv_prog_CC="$CC" # Let the user override the test.
3849
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853
test -z "$as_dir" && as_dir=.
3854
for ac_exec_ext in '' $ac_executable_extensions; do
3855
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3856
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3857
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867
if test -n "$CC"; then
3868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3869
$as_echo "$CC" >&6; }
3871
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872
$as_echo "no" >&6; }
3877
if test -z "$ac_cv_prog_CC"; then
3879
# Extract the first word of "gcc", so it can be a program name with args.
3880
set dummy gcc; ac_word=$2
3881
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882
$as_echo_n "checking for $ac_word... " >&6; }
3883
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3884
$as_echo_n "(cached) " >&6
3886
if test -n "$ac_ct_CC"; then
3887
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3889
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893
test -z "$as_dir" && as_dir=.
3894
for ac_exec_ext in '' $ac_executable_extensions; do
3895
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3896
ac_cv_prog_ac_ct_CC="gcc"
3897
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3907
if test -n "$ac_ct_CC"; then
3908
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3909
$as_echo "$ac_ct_CC" >&6; }
3911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912
$as_echo "no" >&6; }
3915
if test "x$ac_ct_CC" = x; then
3918
case $cross_compiling:$ac_tool_warned in
3920
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3921
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3922
ac_tool_warned=yes ;;
3930
if test -z "$CC"; then
3931
if test -n "$ac_tool_prefix"; then
3932
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3933
set dummy ${ac_tool_prefix}cc; ac_word=$2
3934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935
$as_echo_n "checking for $ac_word... " >&6; }
3936
if test "${ac_cv_prog_CC+set}" = set; then :
3937
$as_echo_n "(cached) " >&6
3939
if test -n "$CC"; then
3940
ac_cv_prog_CC="$CC" # Let the user override the test.
3942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946
test -z "$as_dir" && as_dir=.
3947
for ac_exec_ext in '' $ac_executable_extensions; do
3948
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3949
ac_cv_prog_CC="${ac_tool_prefix}cc"
3950
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960
if test -n "$CC"; then
3961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962
$as_echo "$CC" >&6; }
3964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965
$as_echo "no" >&6; }
3971
if test -z "$CC"; then
3972
# Extract the first word of "cc", so it can be a program name with args.
3973
set dummy cc; ac_word=$2
3974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975
$as_echo_n "checking for $ac_word... " >&6; }
3976
if test "${ac_cv_prog_CC+set}" = set; then :
3977
$as_echo_n "(cached) " >&6
3979
if test -n "$CC"; then
3980
ac_cv_prog_CC="$CC" # Let the user override the test.
3983
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987
test -z "$as_dir" && as_dir=.
3988
for ac_exec_ext in '' $ac_executable_extensions; do
3989
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3990
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3991
ac_prog_rejected=yes
3995
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002
if test $ac_prog_rejected = yes; then
4003
# We found a bogon in the path, so make sure we never use it.
4004
set dummy $ac_cv_prog_CC
4006
if test $# != 0; then
4007
# We chose a different compiler from the bogus one.
4008
# However, it has the same basename, so the bogon will be chosen
4009
# first if we set CC to just the basename; use the full file name.
4011
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4017
if test -n "$CC"; then
4018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4019
$as_echo "$CC" >&6; }
4021
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022
$as_echo "no" >&6; }
4027
if test -z "$CC"; then
4028
if test -n "$ac_tool_prefix"; then
4029
for ac_prog in cl.exe
4031
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4032
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034
$as_echo_n "checking for $ac_word... " >&6; }
4035
if test "${ac_cv_prog_CC+set}" = set; then :
4036
$as_echo_n "(cached) " >&6
4038
if test -n "$CC"; then
4039
ac_cv_prog_CC="$CC" # Let the user override the test.
4041
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045
test -z "$as_dir" && as_dir=.
4046
for ac_exec_ext in '' $ac_executable_extensions; do
4047
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4049
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4059
if test -n "$CC"; then
4060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4061
$as_echo "$CC" >&6; }
4063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064
$as_echo "no" >&6; }
4068
test -n "$CC" && break
4071
if test -z "$CC"; then
4073
for ac_prog in cl.exe
4075
# Extract the first word of "$ac_prog", so it can be a program name with args.
4076
set dummy $ac_prog; ac_word=$2
4077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078
$as_echo_n "checking for $ac_word... " >&6; }
4079
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4080
$as_echo_n "(cached) " >&6
4082
if test -n "$ac_ct_CC"; then
4083
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4085
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089
test -z "$as_dir" && as_dir=.
4090
for ac_exec_ext in '' $ac_executable_extensions; do
4091
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4092
ac_cv_prog_ac_ct_CC="$ac_prog"
4093
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4103
if test -n "$ac_ct_CC"; then
4104
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4105
$as_echo "$ac_ct_CC" >&6; }
4107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108
$as_echo "no" >&6; }
4112
test -n "$ac_ct_CC" && break
4115
if test "x$ac_ct_CC" = x; then
4118
case $cross_compiling:$ac_tool_warned in
4120
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4121
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4122
ac_tool_warned=yes ;;
4131
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4132
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4133
as_fn_error "no acceptable C compiler found in \$PATH
4134
See \`config.log' for more details." "$LINENO" 5; }
4136
# Provide some information about the compiler.
4137
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4140
for ac_option in --version -v -V -qversion; do
4141
{ { ac_try="$ac_compiler $ac_option >&5"
4143
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144
*) ac_try_echo=$ac_try;;
4146
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147
$as_echo "$ac_try_echo"; } >&5
4148
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4150
if test -s conftest.err; then
4152
... rest of stderr output deleted ...
4153
10q' conftest.err >conftest.er1
4154
cat conftest.er1 >&5
4156
rm -f conftest.er1 conftest.err
4157
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4158
test $ac_status = 0; }
4161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4162
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4163
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4164
$as_echo_n "(cached) " >&6
4166
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167
/* end confdefs.h. */
4180
if ac_fn_c_try_compile "$LINENO"; then :
4185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4190
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4191
if test $ac_compiler_gnu = yes; then
4196
ac_test_CFLAGS=${CFLAGS+set}
4197
ac_save_CFLAGS=$CFLAGS
4198
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4199
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4200
if test "${ac_cv_prog_cc_g+set}" = set; then :
4201
$as_echo_n "(cached) " >&6
4203
ac_save_c_werror_flag=$ac_c_werror_flag
4204
ac_c_werror_flag=yes
4207
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208
/* end confdefs.h. */
4218
if ac_fn_c_try_compile "$LINENO"; then :
4222
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223
/* end confdefs.h. */
4233
if ac_fn_c_try_compile "$LINENO"; then :
4236
ac_c_werror_flag=$ac_save_c_werror_flag
4238
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239
/* end confdefs.h. */
4249
if ac_fn_c_try_compile "$LINENO"; then :
4252
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257
ac_c_werror_flag=$ac_save_c_werror_flag
4259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4260
$as_echo "$ac_cv_prog_cc_g" >&6; }
4261
if test "$ac_test_CFLAGS" = set; then
4262
CFLAGS=$ac_save_CFLAGS
4263
elif test $ac_cv_prog_cc_g = yes; then
4264
if test "$GCC" = yes; then
4270
if test "$GCC" = yes; then
4276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4277
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4278
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4279
$as_echo_n "(cached) " >&6
4281
ac_cv_prog_cc_c89=no
4283
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284
/* end confdefs.h. */
4287
#include <sys/types.h>
4288
#include <sys/stat.h>
4289
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4290
struct buf { int x; };
4291
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4292
static char *e (p, i)
4298
static char *f (char * (*g) (char **, int), char **p, ...)
4303
s = g (p, va_arg (v,int));
4308
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4309
function prototypes and stuff, but not '\xHH' hex character constants.
4310
These don't provoke an error unfortunately, instead are silently treated
4311
as 'x'. The following induces an error, until -std is added to get
4312
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4313
array size at least. It's necessary to write '\x00'==0 to get something
4314
that's true only with -std. */
4315
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4317
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4318
inside strings and character constants. */
4320
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4322
int test (int i, double x);
4323
struct s1 {int (*f) (int a);};
4324
struct s2 {int (*f) (double a);};
4325
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4331
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4336
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4337
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4339
CC="$ac_save_CC $ac_arg"
4340
if ac_fn_c_try_compile "$LINENO"; then :
4341
ac_cv_prog_cc_c89=$ac_arg
4343
rm -f core conftest.err conftest.$ac_objext
4344
test "x$ac_cv_prog_cc_c89" != "xno" && break
4346
rm -f conftest.$ac_ext
4351
case "x$ac_cv_prog_cc_c89" in
4353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4354
$as_echo "none needed" >&6; } ;;
4356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4357
$as_echo "unsupported" >&6; } ;;
4359
CC="$CC $ac_cv_prog_cc_c89"
4360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4361
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4363
if test "x$ac_cv_prog_cc_c89" != xno; then :
4368
ac_cpp='$CPP $CPPFLAGS'
4369
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373
depcc="$CC" am_compiler_list=
4375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4376
$as_echo_n "checking dependency style of $depcc... " >&6; }
4377
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4378
$as_echo_n "(cached) " >&6
4380
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4381
# We make a subdir and do the tests there. Otherwise we can end up
4382
# making bogus files that we don't know about and never remove. For
4383
# instance it was reported that on HP-UX the gcc test will end up
4384
# making a dummy file named `D' -- because `-MD' means `put the output
4387
# Copy depcomp to subdir because otherwise we won't find it if we're
4388
# using a relative directory.
4389
cp "$am_depcomp" conftest.dir
4391
# We will build objects and dependencies in a subdirectory because
4392
# it helps to detect inapplicable dependency modes. For instance
4393
# both Tru64's cc and ICC support -MD to output dependencies as a
4394
# side effect of compilation, but ICC will put the dependencies in
4395
# the current directory while Tru64 will put them in the object
4399
am_cv_CC_dependencies_compiler_type=none
4400
if test "$am_compiler_list" = ""; then
4401
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4404
case " $depcc " in #(
4405
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4408
for depmode in $am_compiler_list; do
4409
# Setup a source with many dependencies, because some compilers
4410
# like to wrap large dependency lists on column 80 (with \), and
4411
# we should not choose a depcomp mode which is confused by this.
4413
# We need to recreate these files for each test, as the compiler may
4414
# overwrite some of them when testing with obscure command lines.
4415
# This happens at least with the AIX C compiler.
4417
for i in 1 2 3 4 5 6; do
4418
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4419
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4420
# Solaris 8's {/usr,}/bin/sh.
4421
touch sub/conftst$i.h
4423
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4425
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4426
# mode. It turns out that the SunPro C++ compiler does not properly
4427
# handle `-M -o', and we need to detect this. Also, some Intel
4428
# versions had trouble with output in subdirs
4429
am__obj=sub/conftest.${OBJEXT-o}
4430
am__minus_obj="-o $am__obj"
4433
# This depmode causes a compiler race in universal mode.
4434
test "$am__universal" = false || continue
4437
# after this tag, mechanisms are not by side-effect, so they'll
4438
# only be used when explicitly requested
4439
if test "x$enable_dependency_tracking" = xyes; then
4445
msvisualcpp | msvcmsys)
4446
# This compiler won't grok `-c -o', but also, the minuso test has
4447
# not run yet. These depmodes are late enough in the game, and
4448
# so weak that their functioning should not be impacted.
4449
am__obj=conftest.${OBJEXT-o}
4454
if depmode=$depmode \
4455
source=sub/conftest.c object=$am__obj \
4456
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4457
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4458
>/dev/null 2>conftest.err &&
4459
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4460
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4461
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4462
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4463
# icc doesn't choke on unknown options, it will just issue warnings
4464
# or remarks (even with -Werror). So we grep stderr for any message
4465
# that says an option was ignored or not supported.
4466
# When given -MP, icc 7.0 and 7.1 complain thusly:
4467
# icc: Command line warning: ignoring option '-M'; no argument required
4468
# The diagnosis changed in icc 8.0:
4469
# icc: Command line remark: option '-MP' not supported
4470
if (grep 'ignoring option' conftest.err ||
4471
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4472
am_cv_CC_dependencies_compiler_type=$depmode
4481
am_cv_CC_dependencies_compiler_type=none
4485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4486
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4487
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4490
test "x$enable_dependency_tracking" != xno \
4491
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4493
am__fastdepCC_FALSE='#'
4495
am__fastdepCC_TRUE='#'
4496
am__fastdepCC_FALSE=
4500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4501
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4502
if test "${ac_cv_path_SED+set}" = set; then :
4503
$as_echo_n "(cached) " >&6
4505
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4506
for ac_i in 1 2 3 4 5 6 7; do
4507
ac_script="$ac_script$as_nl$ac_script"
4509
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4510
{ ac_script=; unset ac_script;}
4511
if test -z "$SED"; then
4512
ac_path_SED_found=false
4513
# Loop through the user's path and test for each of PROGNAME-LIST
4514
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518
test -z "$as_dir" && as_dir=.
4519
for ac_prog in sed gsed; do
4520
for ac_exec_ext in '' $ac_executable_extensions; do
4521
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4522
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4523
# Check for GNU ac_path_SED and select it if it is found.
4524
# Check for GNU $ac_path_SED
4525
case `"$ac_path_SED" --version 2>&1` in
4527
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4530
$as_echo_n 0123456789 >"conftest.in"
4533
cat "conftest.in" "conftest.in" >"conftest.tmp"
4534
mv "conftest.tmp" "conftest.in"
4535
cp "conftest.in" "conftest.nl"
4536
$as_echo '' >> "conftest.nl"
4537
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4538
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4539
as_fn_arith $ac_count + 1 && ac_count=$as_val
4540
if test $ac_count -gt ${ac_path_SED_max-0}; then
4541
# Best one so far, save it but keep looking for a better one
4542
ac_cv_path_SED="$ac_path_SED"
4543
ac_path_SED_max=$ac_count
4545
# 10*(2^10) chars as input seems more than enough
4546
test $ac_count -gt 10 && break
4548
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4551
$ac_path_SED_found && break 3
4556
if test -z "$ac_cv_path_SED"; then
4557
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4565
$as_echo "$ac_cv_path_SED" >&6; }
4566
SED="$ac_cv_path_SED"
4569
test -z "$SED" && SED=sed
4570
Xsed="$SED -e 1s/^X//"
4582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4583
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4584
if test "${ac_cv_path_GREP+set}" = set; then :
4585
$as_echo_n "(cached) " >&6
4587
if test -z "$GREP"; then
4588
ac_path_GREP_found=false
4589
# Loop through the user's path and test for each of PROGNAME-LIST
4590
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4594
test -z "$as_dir" && as_dir=.
4595
for ac_prog in grep ggrep; do
4596
for ac_exec_ext in '' $ac_executable_extensions; do
4597
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4598
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4599
# Check for GNU ac_path_GREP and select it if it is found.
4600
# Check for GNU $ac_path_GREP
4601
case `"$ac_path_GREP" --version 2>&1` in
4603
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4606
$as_echo_n 0123456789 >"conftest.in"
4609
cat "conftest.in" "conftest.in" >"conftest.tmp"
4610
mv "conftest.tmp" "conftest.in"
4611
cp "conftest.in" "conftest.nl"
4612
$as_echo 'GREP' >> "conftest.nl"
4613
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4614
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4615
as_fn_arith $ac_count + 1 && ac_count=$as_val
4616
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4617
# Best one so far, save it but keep looking for a better one
4618
ac_cv_path_GREP="$ac_path_GREP"
4619
ac_path_GREP_max=$ac_count
4621
# 10*(2^10) chars as input seems more than enough
4622
test $ac_count -gt 10 && break
4624
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4627
$ac_path_GREP_found && break 3
4632
if test -z "$ac_cv_path_GREP"; then
4633
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4636
ac_cv_path_GREP=$GREP
4640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4641
$as_echo "$ac_cv_path_GREP" >&6; }
4642
GREP="$ac_cv_path_GREP"
4645
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4646
$as_echo_n "checking for egrep... " >&6; }
4647
if test "${ac_cv_path_EGREP+set}" = set; then :
4648
$as_echo_n "(cached) " >&6
4650
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4651
then ac_cv_path_EGREP="$GREP -E"
4653
if test -z "$EGREP"; then
4654
ac_path_EGREP_found=false
4655
# Loop through the user's path and test for each of PROGNAME-LIST
4656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4660
test -z "$as_dir" && as_dir=.
4661
for ac_prog in egrep; do
4662
for ac_exec_ext in '' $ac_executable_extensions; do
4663
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4664
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4665
# Check for GNU ac_path_EGREP and select it if it is found.
4666
# Check for GNU $ac_path_EGREP
4667
case `"$ac_path_EGREP" --version 2>&1` in
4669
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4672
$as_echo_n 0123456789 >"conftest.in"
4675
cat "conftest.in" "conftest.in" >"conftest.tmp"
4676
mv "conftest.tmp" "conftest.in"
4677
cp "conftest.in" "conftest.nl"
4678
$as_echo 'EGREP' >> "conftest.nl"
4679
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4680
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4681
as_fn_arith $ac_count + 1 && ac_count=$as_val
4682
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4683
# Best one so far, save it but keep looking for a better one
4684
ac_cv_path_EGREP="$ac_path_EGREP"
4685
ac_path_EGREP_max=$ac_count
4687
# 10*(2^10) chars as input seems more than enough
4688
test $ac_count -gt 10 && break
4690
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4693
$ac_path_EGREP_found && break 3
4698
if test -z "$ac_cv_path_EGREP"; then
4699
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4702
ac_cv_path_EGREP=$EGREP
4707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4708
$as_echo "$ac_cv_path_EGREP" >&6; }
4709
EGREP="$ac_cv_path_EGREP"
4712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4713
$as_echo_n "checking for fgrep... " >&6; }
4714
if test "${ac_cv_path_FGREP+set}" = set; then :
4715
$as_echo_n "(cached) " >&6
4717
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4718
then ac_cv_path_FGREP="$GREP -F"
4720
if test -z "$FGREP"; then
4721
ac_path_FGREP_found=false
4722
# Loop through the user's path and test for each of PROGNAME-LIST
4723
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4727
test -z "$as_dir" && as_dir=.
4728
for ac_prog in fgrep; do
4729
for ac_exec_ext in '' $ac_executable_extensions; do
4730
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4731
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4732
# Check for GNU ac_path_FGREP and select it if it is found.
4733
# Check for GNU $ac_path_FGREP
4734
case `"$ac_path_FGREP" --version 2>&1` in
4736
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4739
$as_echo_n 0123456789 >"conftest.in"
4742
cat "conftest.in" "conftest.in" >"conftest.tmp"
4743
mv "conftest.tmp" "conftest.in"
4744
cp "conftest.in" "conftest.nl"
4745
$as_echo 'FGREP' >> "conftest.nl"
4746
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4747
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4748
as_fn_arith $ac_count + 1 && ac_count=$as_val
4749
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4750
# Best one so far, save it but keep looking for a better one
4751
ac_cv_path_FGREP="$ac_path_FGREP"
4752
ac_path_FGREP_max=$ac_count
4754
# 10*(2^10) chars as input seems more than enough
4755
test $ac_count -gt 10 && break
4757
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4760
$ac_path_FGREP_found && break 3
4765
if test -z "$ac_cv_path_FGREP"; then
4766
as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4769
ac_cv_path_FGREP=$FGREP
4774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4775
$as_echo "$ac_cv_path_FGREP" >&6; }
4776
FGREP="$ac_cv_path_FGREP"
4779
test -z "$GREP" && GREP=grep
4799
# Check whether --with-gnu-ld was given.
4800
if test "${with_gnu_ld+set}" = set; then :
4801
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4807
if test "$GCC" = yes; then
4808
# Check if gcc -print-prog-name=ld gives a path.
4809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4810
$as_echo_n "checking for ld used by $CC... " >&6; }
4813
# gcc leaves a trailing carriage return which upsets mingw
4814
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4816
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4819
# Accept absolute paths.
4821
re_direlt='/[^/][^/]*/\.\./'
4822
# Canonicalize the pathname of ld
4823
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4824
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4825
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4827
test -z "$LD" && LD="$ac_prog"
4830
# If it fails, then pretend we aren't using GCC.
4834
# If it is relative, then search for the first ld in PATH.
4838
elif test "$with_gnu_ld" = yes; then
4839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4840
$as_echo_n "checking for GNU ld... " >&6; }
4842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4843
$as_echo_n "checking for non-GNU ld... " >&6; }
4845
if test "${lt_cv_path_LD+set}" = set; then :
4846
$as_echo_n "(cached) " >&6
4848
if test -z "$LD"; then
4849
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4850
for ac_dir in $PATH; do
4852
test -z "$ac_dir" && ac_dir=.
4853
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4854
lt_cv_path_LD="$ac_dir/$ac_prog"
4855
# Check to see if the program is GNU ld. I'd rather use --version,
4856
# but apparently some variants of GNU ld only accept -v.
4857
# Break only if it was the GNU/non-GNU ld that we prefer.
4858
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4859
*GNU* | *'with BFD'*)
4860
test "$with_gnu_ld" != no && break
4863
test "$with_gnu_ld" != yes && break
4870
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4875
if test -n "$LD"; then
4876
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4877
$as_echo "$LD" >&6; }
4879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880
$as_echo "no" >&6; }
4882
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4884
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4885
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4886
$as_echo_n "(cached) " >&6
4888
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4889
case `$LD -v 2>&1 </dev/null` in
4890
*GNU* | *'with BFD'*)
4891
lt_cv_prog_gnu_ld=yes
4894
lt_cv_prog_gnu_ld=no
4898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4899
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4900
with_gnu_ld=$lt_cv_prog_gnu_ld
4910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4911
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4912
if test "${lt_cv_path_NM+set}" = set; then :
4913
$as_echo_n "(cached) " >&6
4915
if test -n "$NM"; then
4916
# Let the user override the test.
4919
lt_nm_to_check="${ac_tool_prefix}nm"
4920
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4921
lt_nm_to_check="$lt_nm_to_check nm"
4923
for lt_tmp_nm in $lt_nm_to_check; do
4924
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4925
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4927
test -z "$ac_dir" && ac_dir=.
4928
tmp_nm="$ac_dir/$lt_tmp_nm"
4929
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4930
# Check to see if the nm accepts a BSD-compat flag.
4931
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4932
# nm: unknown option "B" ignored
4933
# Tru64's nm complains that /dev/null is an invalid object file
4934
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4935
*/dev/null* | *'Invalid file or object type'*)
4936
lt_cv_path_NM="$tmp_nm -B"
4940
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4942
lt_cv_path_NM="$tmp_nm -p"
4946
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4947
continue # so that we can try to find one that supports BSD flags
4956
: ${lt_cv_path_NM=no}
4959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4960
$as_echo "$lt_cv_path_NM" >&6; }
4961
if test "$lt_cv_path_NM" != "no"; then
4964
# Didn't find any BSD compatible name lister, look for dumpbin.
4965
if test -n "$ac_tool_prefix"; then
4966
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4968
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4969
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4970
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971
$as_echo_n "checking for $ac_word... " >&6; }
4972
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4973
$as_echo_n "(cached) " >&6
4975
if test -n "$DUMPBIN"; then
4976
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4978
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982
test -z "$as_dir" && as_dir=.
4983
for ac_exec_ext in '' $ac_executable_extensions; do
4984
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4986
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995
DUMPBIN=$ac_cv_prog_DUMPBIN
4996
if test -n "$DUMPBIN"; then
4997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4998
$as_echo "$DUMPBIN" >&6; }
5000
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001
$as_echo "no" >&6; }
5005
test -n "$DUMPBIN" && break
5008
if test -z "$DUMPBIN"; then
5009
ac_ct_DUMPBIN=$DUMPBIN
5010
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5012
# Extract the first word of "$ac_prog", so it can be a program name with args.
5013
set dummy $ac_prog; ac_word=$2
5014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015
$as_echo_n "checking for $ac_word... " >&6; }
5016
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5017
$as_echo_n "(cached) " >&6
5019
if test -n "$ac_ct_DUMPBIN"; then
5020
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5022
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026
test -z "$as_dir" && as_dir=.
5027
for ac_exec_ext in '' $ac_executable_extensions; do
5028
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5030
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5040
if test -n "$ac_ct_DUMPBIN"; then
5041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5042
$as_echo "$ac_ct_DUMPBIN" >&6; }
5044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045
$as_echo "no" >&6; }
5049
test -n "$ac_ct_DUMPBIN" && break
5052
if test "x$ac_ct_DUMPBIN" = x; then
5055
case $cross_compiling:$ac_tool_warned in
5057
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5058
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5059
ac_tool_warned=yes ;;
5061
DUMPBIN=$ac_ct_DUMPBIN
5066
if test "$DUMPBIN" != ":"; then
5070
test -z "$NM" && NM=nm
5077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5078
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5079
if test "${lt_cv_nm_interface+set}" = set; then :
5080
$as_echo_n "(cached) " >&6
5082
lt_cv_nm_interface="BSD nm"
5083
echo "int some_variable = 0;" > conftest.$ac_ext
5084
(eval echo "\"\$as_me:5084: $ac_compile\"" >&5)
5085
(eval "$ac_compile" 2>conftest.err)
5086
cat conftest.err >&5
5087
(eval echo "\"\$as_me:5087: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5088
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5089
cat conftest.err >&5
5090
(eval echo "\"\$as_me:5090: output\"" >&5)
5091
cat conftest.out >&5
5092
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5093
lt_cv_nm_interface="MS dumpbin"
5097
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5098
$as_echo "$lt_cv_nm_interface" >&6; }
5100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5101
$as_echo_n "checking whether ln -s works... " >&6; }
5103
if test "$LN_S" = "ln -s"; then
5104
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5105
$as_echo "yes" >&6; }
5107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5108
$as_echo "no, using $LN_S" >&6; }
5111
# find the maximum length of command line arguments
5112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5113
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5114
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5115
$as_echo_n "(cached) " >&6
5122
# On DJGPP, this test can blow up pretty badly due to problems in libc
5123
# (any single argument exceeding 2000 bytes causes a buffer overrun
5124
# during glob expansion). Even if it were fixed, the result of this
5125
# check would be larger than it should be.
5126
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5130
# Under GNU Hurd, this test is not required because there is
5131
# no limit to the length of command line arguments.
5132
# Libtool will interpret -1 as no limit whatsoever
5133
lt_cv_sys_max_cmd_len=-1;
5136
cygwin* | mingw* | cegcc*)
5137
# On Win9x/ME, this test blows up -- it succeeds, but takes
5138
# about 5 minutes as the teststring grows exponentially.
5139
# Worse, since 9x/ME are not pre-emptively multitasking,
5140
# you end up with a "frozen" computer, even though with patience
5141
# the test eventually succeeds (with a max line length of 256k).
5142
# Instead, let's just punt: use the minimum linelength reported by
5143
# all of the supported platforms: 8192 (on NT/2K/XP).
5144
lt_cv_sys_max_cmd_len=8192;
5148
# On AmigaOS with pdksh, this test takes hours, literally.
5149
# So we just punt and use a minimum line length of 8192.
5150
lt_cv_sys_max_cmd_len=8192;
5153
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5154
# This has been around since 386BSD, at least. Likely further.
5155
if test -x /sbin/sysctl; then
5156
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5157
elif test -x /usr/sbin/sysctl; then
5158
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5160
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5162
# And add a safety zone
5163
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5164
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5168
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5169
lt_cv_sys_max_cmd_len=196608
5173
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5174
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5175
# nice to cause kernel panics so lets avoid the loop below.
5176
# First set a reasonable default.
5177
lt_cv_sys_max_cmd_len=16384
5179
if test -x /sbin/sysconfig; then
5180
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5181
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5186
lt_cv_sys_max_cmd_len=102400
5188
sysv5* | sco5v6* | sysv4.2uw2*)
5189
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5190
if test -n "$kargmax"; then
5191
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5193
lt_cv_sys_max_cmd_len=32768
5197
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5198
if test -n "$lt_cv_sys_max_cmd_len"; then
5199
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5200
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5202
# Make teststring a little bigger before we do anything with it.
5203
# a 1K string should be a reasonable start.
5204
for i in 1 2 3 4 5 6 7 8 ; do
5205
teststring=$teststring$teststring
5207
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5208
# If test is not a shell built-in, we'll probably end up computing a
5209
# maximum length that is only half of the actual maximum length, but
5211
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5212
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5213
test $i != 17 # 1/2 MB should be enough
5216
teststring=$teststring$teststring
5218
# Only check the string length outside the loop.
5219
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5221
# Add a significant safety factor because C++ compilers can tack on
5222
# massive amounts of additional arguments before passing them to the
5223
# linker. It appears as though 1/2 is a usable value.
5224
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5231
if test -n $lt_cv_sys_max_cmd_len ; then
5232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5233
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5235
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5236
$as_echo "none" >&6; }
5238
max_cmd_len=$lt_cv_sys_max_cmd_len
5249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5250
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5251
# Try some XSI features
5254
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5256
&& eval 'test $(( 1 + 1 )) -eq 2 \
5257
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5260
$as_echo "$xsi_shell" >&6; }
5263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5264
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5266
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5268
&& lt_shell_append=yes
5269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5270
$as_echo "$lt_shell_append" >&6; }
5273
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5283
# test EBCDIC or ASCII
5284
case `echo X|tr X '\101'` in
5285
A) # ASCII based system
5286
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5287
lt_SP2NL='tr \040 \012'
5288
lt_NL2SP='tr \015\012 \040\040'
5290
*) # EBCDIC based system
5291
lt_SP2NL='tr \100 \n'
5292
lt_NL2SP='tr \r\n \100\100'
5304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5305
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5306
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5307
$as_echo_n "(cached) " >&6
5309
lt_cv_ld_reload_flag='-r'
5311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5312
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5313
reload_flag=$lt_cv_ld_reload_flag
5314
case $reload_flag in
5316
*) reload_flag=" $reload_flag" ;;
5318
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5321
if test "$GCC" = yes; then
5322
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5324
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5337
if test -n "$ac_tool_prefix"; then
5338
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5339
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341
$as_echo_n "checking for $ac_word... " >&6; }
5342
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5343
$as_echo_n "(cached) " >&6
5345
if test -n "$OBJDUMP"; then
5346
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5348
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352
test -z "$as_dir" && as_dir=.
5353
for ac_exec_ext in '' $ac_executable_extensions; do
5354
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5356
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365
OBJDUMP=$ac_cv_prog_OBJDUMP
5366
if test -n "$OBJDUMP"; then
5367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5368
$as_echo "$OBJDUMP" >&6; }
5370
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371
$as_echo "no" >&6; }
5376
if test -z "$ac_cv_prog_OBJDUMP"; then
5377
ac_ct_OBJDUMP=$OBJDUMP
5378
# Extract the first word of "objdump", so it can be a program name with args.
5379
set dummy objdump; ac_word=$2
5380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381
$as_echo_n "checking for $ac_word... " >&6; }
5382
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5383
$as_echo_n "(cached) " >&6
5385
if test -n "$ac_ct_OBJDUMP"; then
5386
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5388
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392
test -z "$as_dir" && as_dir=.
5393
for ac_exec_ext in '' $ac_executable_extensions; do
5394
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5396
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5406
if test -n "$ac_ct_OBJDUMP"; then
5407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5408
$as_echo "$ac_ct_OBJDUMP" >&6; }
5410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411
$as_echo "no" >&6; }
5414
if test "x$ac_ct_OBJDUMP" = x; then
5417
case $cross_compiling:$ac_tool_warned in
5419
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5420
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5421
ac_tool_warned=yes ;;
5423
OBJDUMP=$ac_ct_OBJDUMP
5426
OBJDUMP="$ac_cv_prog_OBJDUMP"
5429
test -z "$OBJDUMP" && OBJDUMP=objdump
5439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5440
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5441
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5442
$as_echo_n "(cached) " >&6
5444
lt_cv_file_magic_cmd='$MAGIC_CMD'
5445
lt_cv_file_magic_test_file=
5446
lt_cv_deplibs_check_method='unknown'
5447
# Need to set the preceding variable on all platforms that support
5448
# interlibrary dependencies.
5449
# 'none' -- dependencies not supported.
5450
# `unknown' -- same as none, but documents that we really don't know.
5451
# 'pass_all' -- all dependencies passed with no checks.
5452
# 'test_compile' -- check by making test program.
5453
# 'file_magic [[regex]]' -- check by looking for files in library path
5454
# which responds to the $file_magic_cmd with a given extended regex.
5455
# If you have `file' or equivalent on your system and you're not sure
5456
# whether `pass_all' will *always* work, you probably want this one.
5460
lt_cv_deplibs_check_method=pass_all
5464
lt_cv_deplibs_check_method=pass_all
5468
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5469
lt_cv_file_magic_cmd='/usr/bin/file -L'
5470
lt_cv_file_magic_test_file=/shlib/libc.so
5474
# func_win32_libid is a shell function defined in ltmain.sh
5475
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5476
lt_cv_file_magic_cmd='func_win32_libid'
5480
# Base MSYS/MinGW do not provide the 'file' command needed by
5481
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5482
# unless we find 'file', for example because we are cross-compiling.
5483
if ( file / ) >/dev/null 2>&1; then
5484
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5485
lt_cv_file_magic_cmd='func_win32_libid'
5487
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5488
lt_cv_file_magic_cmd='$OBJDUMP -f'
5493
# use the weaker test based on 'objdump'. See mingw*.
5494
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5495
lt_cv_file_magic_cmd='$OBJDUMP -f'
5498
darwin* | rhapsody*)
5499
lt_cv_deplibs_check_method=pass_all
5502
freebsd* | dragonfly*)
5503
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5506
# Not sure whether the presence of OpenBSD here was a mistake.
5507
# Let's accept both of them until this is cleared up.
5508
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5509
lt_cv_file_magic_cmd=/usr/bin/file
5510
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5514
lt_cv_deplibs_check_method=pass_all
5519
lt_cv_deplibs_check_method=pass_all
5522
hpux10.20* | hpux11*)
5523
lt_cv_file_magic_cmd=/usr/bin/file
5526
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5527
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5530
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]'
5531
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5534
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5535
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5541
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5542
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5545
irix5* | irix6* | nonstopux*)
5547
*-32|*"-32 ") libmagic=32-bit;;
5548
*-n32|*"-n32 ") libmagic=N32;;
5549
*-64|*"-64 ") libmagic=64-bit;;
5550
*) libmagic=never-match;;
5552
lt_cv_deplibs_check_method=pass_all
5555
# This must be Linux ELF.
5556
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5557
lt_cv_deplibs_check_method=pass_all
5560
netbsd* | netbsdelf*-gnu)
5561
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5562
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5564
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5569
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5570
lt_cv_file_magic_cmd=/usr/bin/file
5571
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5575
lt_cv_deplibs_check_method=pass_all
5579
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5580
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5582
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5586
osf3* | osf4* | osf5*)
5587
lt_cv_deplibs_check_method=pass_all
5591
lt_cv_deplibs_check_method=pass_all
5595
lt_cv_deplibs_check_method=pass_all
5598
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5599
lt_cv_deplibs_check_method=pass_all
5603
case $host_vendor in
5605
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]'
5606
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5609
lt_cv_deplibs_check_method=pass_all
5612
lt_cv_file_magic_cmd='/bin/file'
5613
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5616
lt_cv_file_magic_cmd='/bin/file'
5617
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5618
lt_cv_file_magic_test_file=/lib/libc.so
5621
lt_cv_deplibs_check_method=pass_all
5624
lt_cv_deplibs_check_method=pass_all
5630
lt_cv_deplibs_check_method=pass_all
5635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5636
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5637
file_magic_cmd=$lt_cv_file_magic_cmd
5638
deplibs_check_method=$lt_cv_deplibs_check_method
5639
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5652
if test -n "$ac_tool_prefix"; then
5653
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5654
set dummy ${ac_tool_prefix}ar; ac_word=$2
5655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656
$as_echo_n "checking for $ac_word... " >&6; }
5657
if test "${ac_cv_prog_AR+set}" = set; then :
5658
$as_echo_n "(cached) " >&6
5660
if test -n "$AR"; then
5661
ac_cv_prog_AR="$AR" # Let the user override the test.
5663
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667
test -z "$as_dir" && as_dir=.
5668
for ac_exec_ext in '' $ac_executable_extensions; do
5669
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670
ac_cv_prog_AR="${ac_tool_prefix}ar"
5671
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681
if test -n "$AR"; then
5682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5683
$as_echo "$AR" >&6; }
5685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686
$as_echo "no" >&6; }
5691
if test -z "$ac_cv_prog_AR"; then
5693
# Extract the first word of "ar", so it can be a program name with args.
5694
set dummy ar; ac_word=$2
5695
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5696
$as_echo_n "checking for $ac_word... " >&6; }
5697
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5698
$as_echo_n "(cached) " >&6
5700
if test -n "$ac_ct_AR"; then
5701
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707
test -z "$as_dir" && as_dir=.
5708
for ac_exec_ext in '' $ac_executable_extensions; do
5709
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5710
ac_cv_prog_ac_ct_AR="ar"
5711
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5721
if test -n "$ac_ct_AR"; then
5722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5723
$as_echo "$ac_ct_AR" >&6; }
5725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726
$as_echo "no" >&6; }
5729
if test "x$ac_ct_AR" = x; then
5732
case $cross_compiling:$ac_tool_warned in
5734
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5735
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5736
ac_tool_warned=yes ;;
5744
test -z "$AR" && AR=ar
5745
test -z "$AR_FLAGS" && AR_FLAGS=cru
5757
if test -n "$ac_tool_prefix"; then
5758
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5759
set dummy ${ac_tool_prefix}strip; ac_word=$2
5760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761
$as_echo_n "checking for $ac_word... " >&6; }
5762
if test "${ac_cv_prog_STRIP+set}" = set; then :
5763
$as_echo_n "(cached) " >&6
5765
if test -n "$STRIP"; then
5766
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5768
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772
test -z "$as_dir" && as_dir=.
5773
for ac_exec_ext in '' $ac_executable_extensions; do
5774
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5776
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785
STRIP=$ac_cv_prog_STRIP
5786
if test -n "$STRIP"; then
5787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5788
$as_echo "$STRIP" >&6; }
5790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791
$as_echo "no" >&6; }
5796
if test -z "$ac_cv_prog_STRIP"; then
5798
# Extract the first word of "strip", so it can be a program name with args.
5799
set dummy strip; ac_word=$2
5800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801
$as_echo_n "checking for $ac_word... " >&6; }
5802
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5803
$as_echo_n "(cached) " >&6
5805
if test -n "$ac_ct_STRIP"; then
5806
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5808
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812
test -z "$as_dir" && as_dir=.
5813
for ac_exec_ext in '' $ac_executable_extensions; do
5814
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815
ac_cv_prog_ac_ct_STRIP="strip"
5816
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5826
if test -n "$ac_ct_STRIP"; then
5827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5828
$as_echo "$ac_ct_STRIP" >&6; }
5830
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831
$as_echo "no" >&6; }
5834
if test "x$ac_ct_STRIP" = x; then
5837
case $cross_compiling:$ac_tool_warned in
5839
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5840
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5841
ac_tool_warned=yes ;;
5846
STRIP="$ac_cv_prog_STRIP"
5849
test -z "$STRIP" && STRIP=:
5856
if test -n "$ac_tool_prefix"; then
5857
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5858
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860
$as_echo_n "checking for $ac_word... " >&6; }
5861
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5862
$as_echo_n "(cached) " >&6
5864
if test -n "$RANLIB"; then
5865
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871
test -z "$as_dir" && as_dir=.
5872
for ac_exec_ext in '' $ac_executable_extensions; do
5873
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5875
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884
RANLIB=$ac_cv_prog_RANLIB
5885
if test -n "$RANLIB"; then
5886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5887
$as_echo "$RANLIB" >&6; }
5889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890
$as_echo "no" >&6; }
5895
if test -z "$ac_cv_prog_RANLIB"; then
5896
ac_ct_RANLIB=$RANLIB
5897
# Extract the first word of "ranlib", so it can be a program name with args.
5898
set dummy ranlib; ac_word=$2
5899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900
$as_echo_n "checking for $ac_word... " >&6; }
5901
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5902
$as_echo_n "(cached) " >&6
5904
if test -n "$ac_ct_RANLIB"; then
5905
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5907
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911
test -z "$as_dir" && as_dir=.
5912
for ac_exec_ext in '' $ac_executable_extensions; do
5913
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5914
ac_cv_prog_ac_ct_RANLIB="ranlib"
5915
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5925
if test -n "$ac_ct_RANLIB"; then
5926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5927
$as_echo "$ac_ct_RANLIB" >&6; }
5929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930
$as_echo "no" >&6; }
5933
if test "x$ac_ct_RANLIB" = x; then
5936
case $cross_compiling:$ac_tool_warned in
5938
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5939
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5940
ac_tool_warned=yes ;;
5942
RANLIB=$ac_ct_RANLIB
5945
RANLIB="$ac_cv_prog_RANLIB"
5948
test -z "$RANLIB" && RANLIB=:
5955
# Determine commands to create old-style static archives.
5956
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5957
old_postinstall_cmds='chmod 644 $oldlib'
5958
old_postuninstall_cmds=
5960
if test -n "$RANLIB"; then
5963
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5966
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5969
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6005
# If no C compiler was specified, use CC.
6008
# If no C compiler flags were specified, use CFLAGS.
6009
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6011
# Allow CC to be a program name with arguments.
6015
# Check for command to grab the raw symbol name followed by C symbol from nm.
6016
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6017
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6018
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6019
$as_echo_n "(cached) " >&6
6022
# These are sane defaults that work on at least a few old systems.
6023
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6025
# Character class describing NM global symbol codes.
6026
symcode='[BCDEGRST]'
6028
# Regexp to match symbols that can be accessed directly from C.
6029
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6031
# Define system-specific variables.
6036
cygwin* | mingw* | pw32* | cegcc*)
6037
symcode='[ABCDGISTW]'
6040
if test "$host_cpu" = ia64; then
6041
symcode='[ABCDEGRST]'
6045
symcode='[BCDEGRST]'
6048
symcode='[BCDEGQRST]'
6059
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6067
# If we're using GNU nm, then use its standard symbol codes.
6068
case `$NM -V 2>&1` in
6069
*GNU* | *'with BFD'*)
6070
symcode='[ABCDGIRSTW]' ;;
6073
# Transform an extracted symbol line into a proper C declaration.
6074
# Some systems (esp. on ia64) link data and code symbols differently,
6075
# so use this general approach.
6076
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6078
# Transform an extracted symbol line into symbol name and symbol address
6079
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6080
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'"
6082
# Handle CRLF in mingw tool chain
6086
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6090
# Try without a prefix underscore, then with it.
6091
for ac_symprfx in "" "_"; do
6093
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6094
symxfrm="\\1 $ac_symprfx\\2 \\2"
6096
# Write the raw and C identifiers.
6097
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6098
# Fake it for dumpbin and say T for any non-static function
6099
# and D for any global variable.
6100
# Also find C++ and __fastcall symbols from MSVC++,
6101
# which start with @ or ?.
6102
lt_cv_sys_global_symbol_pipe="$AWK '"\
6103
" {last_section=section; section=\$ 3};"\
6104
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6105
" \$ 0!~/External *\|/{next};"\
6106
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6107
" {if(hide[section]) next};"\
6108
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6109
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6110
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6111
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6112
" ' prfx=^$ac_symprfx"
6114
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6117
# Check to see that the pipe works correctly.
6121
cat > conftest.$ac_ext <<_LT_EOF
6126
void nm_test_func(void);
6127
void nm_test_func(void){}
6131
int main(){nm_test_var='a';nm_test_func();return(0);}
6134
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6135
(eval $ac_compile) 2>&5
6137
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6138
test $ac_status = 0; }; then
6139
# Now try to grab the symbols.
6141
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6142
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6144
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6145
test $ac_status = 0; } && test -s "$nlist"; then
6146
# Try sorting and uniquifying the output.
6147
if sort "$nlist" | uniq > "$nlist"T; then
6148
mv -f "$nlist"T "$nlist"
6153
# Make sure that we snagged all the symbols we need.
6154
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6155
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6156
cat <<_LT_EOF > conftest.$ac_ext
6162
# Now generate the symbol file.
6163
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6165
cat <<_LT_EOF >> conftest.$ac_ext
6167
/* The mapping between symbol names and symbols. */
6172
lt__PROGRAM__LTX_preloaded_symbols[] =
6174
{ "@PROGRAM@", (void *) 0 },
6176
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6177
cat <<\_LT_EOF >> conftest.$ac_ext
6181
/* This works around a problem in FreeBSD linker */
6182
#ifdef FREEBSD_WORKAROUND
6183
static const void *lt_preloaded_setup() {
6184
return lt__PROGRAM__LTX_preloaded_symbols;
6192
# Now try linking the two files.
6193
mv conftest.$ac_objext conftstm.$ac_objext
6194
lt_save_LIBS="$LIBS"
6195
lt_save_CFLAGS="$CFLAGS"
6196
LIBS="conftstm.$ac_objext"
6197
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6198
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6199
(eval $ac_link) 2>&5
6201
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6205
LIBS="$lt_save_LIBS"
6206
CFLAGS="$lt_save_CFLAGS"
6208
echo "cannot find nm_test_func in $nlist" >&5
6211
echo "cannot find nm_test_var in $nlist" >&5
6214
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6217
echo "$progname: failed program was:" >&5
6218
cat conftest.$ac_ext >&5
6220
rm -rf conftest* conftst*
6222
# Do not use the global_symbol_pipe unless it works.
6223
if test "$pipe_works" = yes; then
6226
lt_cv_sys_global_symbol_pipe=
6232
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6233
lt_cv_sys_global_symbol_to_cdecl=
6235
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6237
$as_echo "failed" >&6; }
6239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6240
$as_echo "ok" >&6; }
6265
# Check whether --enable-libtool-lock was given.
6266
if test "${enable_libtool_lock+set}" = set; then :
6267
enableval=$enable_libtool_lock;
6270
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6272
# Some flags need to be propagated to the compiler or linker for good
6276
# Find out which ABI we are using.
6277
echo 'int i;' > conftest.$ac_ext
6278
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6279
(eval $ac_compile) 2>&5
6281
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6282
test $ac_status = 0; }; then
6283
case `/usr/bin/file conftest.$ac_objext` in
6295
# Find out which ABI we are using.
6296
echo '#line 6296 "configure"' > conftest.$ac_ext
6297
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6298
(eval $ac_compile) 2>&5
6300
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6301
test $ac_status = 0; }; then
6302
if test "$lt_cv_prog_gnu_ld" = yes; then
6303
case `/usr/bin/file conftest.$ac_objext` in
6305
LD="${LD-ld} -melf32bsmip"
6308
LD="${LD-ld} -melf32bmipn32"
6311
LD="${LD-ld} -melf64bmip"
6315
case `/usr/bin/file conftest.$ac_objext` in
6331
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6332
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6333
# Find out which ABI we are using.
6334
echo 'int i;' > conftest.$ac_ext
6335
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6336
(eval $ac_compile) 2>&5
6338
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6339
test $ac_status = 0; }; then
6340
case `/usr/bin/file conftest.o` in
6343
x86_64-*kfreebsd*-gnu)
6344
LD="${LD-ld} -m elf_i386_fbsd"
6347
LD="${LD-ld} -m elf_i386"
6349
ppc64-*linux*|powerpc64-*linux*)
6350
LD="${LD-ld} -m elf32ppclinux"
6353
LD="${LD-ld} -m elf_s390"
6356
LD="${LD-ld} -m elf32_sparc"
6362
x86_64-*kfreebsd*-gnu)
6363
LD="${LD-ld} -m elf_x86_64_fbsd"
6366
LD="${LD-ld} -m elf_x86_64"
6368
ppc*-*linux*|powerpc*-*linux*)
6369
LD="${LD-ld} -m elf64ppc"
6371
s390*-*linux*|s390*-*tpf*)
6372
LD="${LD-ld} -m elf64_s390"
6375
LD="${LD-ld} -m elf64_sparc"
6385
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6386
SAVE_CFLAGS="$CFLAGS"
6387
CFLAGS="$CFLAGS -belf"
6388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6389
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6390
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6391
$as_echo_n "(cached) " >&6
6394
ac_cpp='$CPP $CPPFLAGS'
6395
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6396
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6399
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400
/* end confdefs.h. */
6410
if ac_fn_c_try_link "$LINENO"; then :
6411
lt_cv_cc_needs_belf=yes
6413
lt_cv_cc_needs_belf=no
6415
rm -f core conftest.err conftest.$ac_objext \
6416
conftest$ac_exeext conftest.$ac_ext
6418
ac_cpp='$CPP $CPPFLAGS'
6419
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6420
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6425
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6426
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6427
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6428
CFLAGS="$SAVE_CFLAGS"
6432
# Find out which ABI we are using.
6433
echo 'int i;' > conftest.$ac_ext
6434
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6435
(eval $ac_compile) 2>&5
6437
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6438
test $ac_status = 0; }; then
6439
case `/usr/bin/file conftest.o` in
6441
case $lt_cv_prog_gnu_ld in
6442
yes*) LD="${LD-ld} -m elf64_sparc" ;;
6444
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6456
need_locks="$enable_libtool_lock"
6460
rhapsody* | darwin*)
6461
if test -n "$ac_tool_prefix"; then
6462
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6463
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465
$as_echo_n "checking for $ac_word... " >&6; }
6466
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6467
$as_echo_n "(cached) " >&6
6469
if test -n "$DSYMUTIL"; then
6470
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6472
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476
test -z "$as_dir" && as_dir=.
6477
for ac_exec_ext in '' $ac_executable_extensions; do
6478
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6479
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6480
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6490
if test -n "$DSYMUTIL"; then
6491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6492
$as_echo "$DSYMUTIL" >&6; }
6494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495
$as_echo "no" >&6; }
6500
if test -z "$ac_cv_prog_DSYMUTIL"; then
6501
ac_ct_DSYMUTIL=$DSYMUTIL
6502
# Extract the first word of "dsymutil", so it can be a program name with args.
6503
set dummy dsymutil; ac_word=$2
6504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505
$as_echo_n "checking for $ac_word... " >&6; }
6506
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6507
$as_echo_n "(cached) " >&6
6509
if test -n "$ac_ct_DSYMUTIL"; then
6510
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516
test -z "$as_dir" && as_dir=.
6517
for ac_exec_ext in '' $ac_executable_extensions; do
6518
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6520
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6530
if test -n "$ac_ct_DSYMUTIL"; then
6531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6532
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6534
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535
$as_echo "no" >&6; }
6538
if test "x$ac_ct_DSYMUTIL" = x; then
6541
case $cross_compiling:$ac_tool_warned in
6543
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6544
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6545
ac_tool_warned=yes ;;
6547
DSYMUTIL=$ac_ct_DSYMUTIL
6550
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6553
if test -n "$ac_tool_prefix"; then
6554
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6555
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557
$as_echo_n "checking for $ac_word... " >&6; }
6558
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6559
$as_echo_n "(cached) " >&6
6561
if test -n "$NMEDIT"; then
6562
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6564
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568
test -z "$as_dir" && as_dir=.
6569
for ac_exec_ext in '' $ac_executable_extensions; do
6570
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6571
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6572
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581
NMEDIT=$ac_cv_prog_NMEDIT
6582
if test -n "$NMEDIT"; then
6583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6584
$as_echo "$NMEDIT" >&6; }
6586
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587
$as_echo "no" >&6; }
6592
if test -z "$ac_cv_prog_NMEDIT"; then
6593
ac_ct_NMEDIT=$NMEDIT
6594
# Extract the first word of "nmedit", so it can be a program name with args.
6595
set dummy nmedit; ac_word=$2
6596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597
$as_echo_n "checking for $ac_word... " >&6; }
6598
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6599
$as_echo_n "(cached) " >&6
6601
if test -n "$ac_ct_NMEDIT"; then
6602
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6604
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608
test -z "$as_dir" && as_dir=.
6609
for ac_exec_ext in '' $ac_executable_extensions; do
6610
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6612
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6622
if test -n "$ac_ct_NMEDIT"; then
6623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6624
$as_echo "$ac_ct_NMEDIT" >&6; }
6626
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627
$as_echo "no" >&6; }
6630
if test "x$ac_ct_NMEDIT" = x; then
6633
case $cross_compiling:$ac_tool_warned in
6635
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6636
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6637
ac_tool_warned=yes ;;
6639
NMEDIT=$ac_ct_NMEDIT
6642
NMEDIT="$ac_cv_prog_NMEDIT"
6645
if test -n "$ac_tool_prefix"; then
6646
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6647
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649
$as_echo_n "checking for $ac_word... " >&6; }
6650
if test "${ac_cv_prog_LIPO+set}" = set; then :
6651
$as_echo_n "(cached) " >&6
6653
if test -n "$LIPO"; then
6654
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660
test -z "$as_dir" && as_dir=.
6661
for ac_exec_ext in '' $ac_executable_extensions; do
6662
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6664
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673
LIPO=$ac_cv_prog_LIPO
6674
if test -n "$LIPO"; then
6675
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6676
$as_echo "$LIPO" >&6; }
6678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679
$as_echo "no" >&6; }
6684
if test -z "$ac_cv_prog_LIPO"; then
6686
# Extract the first word of "lipo", so it can be a program name with args.
6687
set dummy lipo; ac_word=$2
6688
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689
$as_echo_n "checking for $ac_word... " >&6; }
6690
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6691
$as_echo_n "(cached) " >&6
6693
if test -n "$ac_ct_LIPO"; then
6694
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6696
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700
test -z "$as_dir" && as_dir=.
6701
for ac_exec_ext in '' $ac_executable_extensions; do
6702
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703
ac_cv_prog_ac_ct_LIPO="lipo"
6704
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6714
if test -n "$ac_ct_LIPO"; then
6715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6716
$as_echo "$ac_ct_LIPO" >&6; }
6718
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719
$as_echo "no" >&6; }
6722
if test "x$ac_ct_LIPO" = x; then
6725
case $cross_compiling:$ac_tool_warned in
6727
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6728
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6729
ac_tool_warned=yes ;;
6734
LIPO="$ac_cv_prog_LIPO"
6737
if test -n "$ac_tool_prefix"; then
6738
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6739
set dummy ${ac_tool_prefix}otool; ac_word=$2
6740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741
$as_echo_n "checking for $ac_word... " >&6; }
6742
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6743
$as_echo_n "(cached) " >&6
6745
if test -n "$OTOOL"; then
6746
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6748
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752
test -z "$as_dir" && as_dir=.
6753
for ac_exec_ext in '' $ac_executable_extensions; do
6754
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6755
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6756
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765
OTOOL=$ac_cv_prog_OTOOL
6766
if test -n "$OTOOL"; then
6767
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6768
$as_echo "$OTOOL" >&6; }
6770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771
$as_echo "no" >&6; }
6776
if test -z "$ac_cv_prog_OTOOL"; then
6778
# Extract the first word of "otool", so it can be a program name with args.
6779
set dummy otool; ac_word=$2
6780
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781
$as_echo_n "checking for $ac_word... " >&6; }
6782
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6783
$as_echo_n "(cached) " >&6
6785
if test -n "$ac_ct_OTOOL"; then
6786
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792
test -z "$as_dir" && as_dir=.
6793
for ac_exec_ext in '' $ac_executable_extensions; do
6794
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6795
ac_cv_prog_ac_ct_OTOOL="otool"
6796
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6806
if test -n "$ac_ct_OTOOL"; then
6807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6808
$as_echo "$ac_ct_OTOOL" >&6; }
6810
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811
$as_echo "no" >&6; }
6814
if test "x$ac_ct_OTOOL" = x; then
6817
case $cross_compiling:$ac_tool_warned in
6819
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6820
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6821
ac_tool_warned=yes ;;
6826
OTOOL="$ac_cv_prog_OTOOL"
6829
if test -n "$ac_tool_prefix"; then
6830
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6831
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833
$as_echo_n "checking for $ac_word... " >&6; }
6834
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6835
$as_echo_n "(cached) " >&6
6837
if test -n "$OTOOL64"; then
6838
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6840
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844
test -z "$as_dir" && as_dir=.
6845
for ac_exec_ext in '' $ac_executable_extensions; do
6846
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6847
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6848
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857
OTOOL64=$ac_cv_prog_OTOOL64
6858
if test -n "$OTOOL64"; then
6859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6860
$as_echo "$OTOOL64" >&6; }
6862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863
$as_echo "no" >&6; }
6868
if test -z "$ac_cv_prog_OTOOL64"; then
6869
ac_ct_OTOOL64=$OTOOL64
6870
# Extract the first word of "otool64", so it can be a program name with args.
6871
set dummy otool64; ac_word=$2
6872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873
$as_echo_n "checking for $ac_word... " >&6; }
6874
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6875
$as_echo_n "(cached) " >&6
6877
if test -n "$ac_ct_OTOOL64"; then
6878
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6880
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884
test -z "$as_dir" && as_dir=.
6885
for ac_exec_ext in '' $ac_executable_extensions; do
6886
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887
ac_cv_prog_ac_ct_OTOOL64="otool64"
6888
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6898
if test -n "$ac_ct_OTOOL64"; then
6899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6900
$as_echo "$ac_ct_OTOOL64" >&6; }
6902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903
$as_echo "no" >&6; }
6906
if test "x$ac_ct_OTOOL64" = x; then
6909
case $cross_compiling:$ac_tool_warned in
6911
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913
ac_tool_warned=yes ;;
6915
OTOOL64=$ac_ct_OTOOL64
6918
OTOOL64="$ac_cv_prog_OTOOL64"
6947
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6948
$as_echo_n "checking for -single_module linker flag... " >&6; }
6949
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6950
$as_echo_n "(cached) " >&6
6952
lt_cv_apple_cc_single_mod=no
6953
if test -z "${LT_MULTI_MODULE}"; then
6954
# By default we will add the -single_module flag. You can override
6955
# by either setting the environment variable LT_MULTI_MODULE
6956
# non-empty at configure time, or by adding -multi_module to the
6958
rm -rf libconftest.dylib*
6959
echo "int foo(void){return 1;}" > conftest.c
6960
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6961
-dynamiclib -Wl,-single_module conftest.c" >&5
6962
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6963
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6965
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6966
lt_cv_apple_cc_single_mod=yes
6968
cat conftest.err >&5
6970
rm -rf libconftest.dylib*
6974
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6975
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6976
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6977
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6978
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6979
$as_echo_n "(cached) " >&6
6981
lt_cv_ld_exported_symbols_list=no
6982
save_LDFLAGS=$LDFLAGS
6983
echo "_main" > conftest.sym
6984
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6985
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986
/* end confdefs.h. */
6996
if ac_fn_c_try_link "$LINENO"; then :
6997
lt_cv_ld_exported_symbols_list=yes
6999
lt_cv_ld_exported_symbols_list=no
7001
rm -f core conftest.err conftest.$ac_objext \
7002
conftest$ac_exeext conftest.$ac_ext
7003
LDFLAGS="$save_LDFLAGS"
7006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7007
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7009
rhapsody* | darwin1.[012])
7010
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7012
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7013
darwin*) # darwin 5.x on
7014
# if running on 10.5 or later, the deployment target defaults
7015
# to the OS version, if on x86, and 10.4, the deployment
7016
# target defaults to 10.4. Don't you love it?
7017
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7018
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7019
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7021
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7023
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7027
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7028
_lt_dar_single_mod='$single_module'
7030
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7031
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7033
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7035
if test "$DSYMUTIL" != ":"; then
7036
_lt_dsymutil='~$DSYMUTIL $lib || :'
7044
ac_cpp='$CPP $CPPFLAGS'
7045
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7046
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7047
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7049
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7050
# On Suns, sometimes $CPP names a directory.
7051
if test -n "$CPP" && test -d "$CPP"; then
7054
if test -z "$CPP"; then
7055
if test "${ac_cv_prog_CPP+set}" = set; then :
7056
$as_echo_n "(cached) " >&6
7058
# Double quotes because CPP needs to be expanded
7059
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7062
for ac_c_preproc_warn_flag in '' yes
7064
# Use a header file that comes with gcc, so configuring glibc
7065
# with a fresh cross-compiler works.
7066
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7067
# <limits.h> exists even on freestanding compilers.
7068
# On the NeXT, cc -E runs the code through the compiler's parser,
7069
# not just through cpp. "Syntax error" is here to catch this case.
7070
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071
/* end confdefs.h. */
7073
# include <limits.h>
7075
# include <assert.h>
7079
if ac_fn_c_try_cpp "$LINENO"; then :
7082
# Broken: fails on valid input.
7085
rm -f conftest.err conftest.$ac_ext
7087
# OK, works on sane cases. Now check whether nonexistent headers
7088
# can be detected and how.
7089
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090
/* end confdefs.h. */
7091
#include <ac_nonexistent.h>
7093
if ac_fn_c_try_cpp "$LINENO"; then :
7094
# Broken: success on invalid input.
7097
# Passes both tests.
7101
rm -f conftest.err conftest.$ac_ext
7104
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7105
rm -f conftest.err conftest.$ac_ext
7106
if $ac_preproc_ok; then :
7118
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7119
$as_echo "$CPP" >&6; }
7121
for ac_c_preproc_warn_flag in '' yes
7123
# Use a header file that comes with gcc, so configuring glibc
7124
# with a fresh cross-compiler works.
7125
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7126
# <limits.h> exists even on freestanding compilers.
7127
# On the NeXT, cc -E runs the code through the compiler's parser,
7128
# not just through cpp. "Syntax error" is here to catch this case.
7129
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130
/* end confdefs.h. */
7132
# include <limits.h>
7134
# include <assert.h>
7138
if ac_fn_c_try_cpp "$LINENO"; then :
7141
# Broken: fails on valid input.
7144
rm -f conftest.err conftest.$ac_ext
7146
# OK, works on sane cases. Now check whether nonexistent headers
7147
# can be detected and how.
7148
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149
/* end confdefs.h. */
7150
#include <ac_nonexistent.h>
7152
if ac_fn_c_try_cpp "$LINENO"; then :
7153
# Broken: success on invalid input.
7156
# Passes both tests.
7160
rm -f conftest.err conftest.$ac_ext
7163
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7164
rm -f conftest.err conftest.$ac_ext
7165
if $ac_preproc_ok; then :
7168
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7169
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7170
as_fn_error "C preprocessor \"$CPP\" fails sanity check
7171
See \`config.log' for more details." "$LINENO" 5; }
7175
ac_cpp='$CPP $CPPFLAGS'
7176
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7177
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7178
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7182
$as_echo_n "checking for ANSI C header files... " >&6; }
7183
if test "${ac_cv_header_stdc+set}" = set; then :
7184
$as_echo_n "(cached) " >&6
7186
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187
/* end confdefs.h. */
7201
if ac_fn_c_try_compile "$LINENO"; then :
7202
ac_cv_header_stdc=yes
7204
ac_cv_header_stdc=no
7206
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208
if test $ac_cv_header_stdc = yes; then
7209
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7210
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211
/* end confdefs.h. */
7215
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7216
$EGREP "memchr" >/dev/null 2>&1; then :
7219
ac_cv_header_stdc=no
7225
if test $ac_cv_header_stdc = yes; then
7226
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7227
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228
/* end confdefs.h. */
7232
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7233
$EGREP "free" >/dev/null 2>&1; then :
7236
ac_cv_header_stdc=no
7242
if test $ac_cv_header_stdc = yes; then
7243
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7244
if test "$cross_compiling" = yes; then :
7247
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248
/* end confdefs.h. */
7251
#if ((' ' & 0x0FF) == 0x020)
7252
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7253
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7255
# define ISLOWER(c) \
7256
(('a' <= (c) && (c) <= 'i') \
7257
|| ('j' <= (c) && (c) <= 'r') \
7258
|| ('s' <= (c) && (c) <= 'z'))
7259
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7262
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7267
for (i = 0; i < 256; i++)
7268
if (XOR (islower (i), ISLOWER (i))
7269
|| toupper (i) != TOUPPER (i))
7274
if ac_fn_c_try_run "$LINENO"; then :
7277
ac_cv_header_stdc=no
7279
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7280
conftest.$ac_objext conftest.beam conftest.$ac_ext
7285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7286
$as_echo "$ac_cv_header_stdc" >&6; }
7287
if test $ac_cv_header_stdc = yes; then
7289
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7293
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7294
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7295
inttypes.h stdint.h unistd.h
7297
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7298
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7300
eval as_val=\$$as_ac_Header
7301
if test "x$as_val" = x""yes; then :
7302
cat >>confdefs.h <<_ACEOF
7303
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7311
for ac_header in dlfcn.h
7313
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7315
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7316
cat >>confdefs.h <<_ACEOF
7317
#define HAVE_DLFCN_H 1
7327
ac_cpp='$CXXCPP $CPPFLAGS'
7328
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7329
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7330
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7331
if test -z "$CXX"; then
7332
if test -n "$CCC"; then
7335
if test -n "$ac_tool_prefix"; then
7336
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7338
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7339
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341
$as_echo_n "checking for $ac_word... " >&6; }
7342
if test "${ac_cv_prog_CXX+set}" = set; then :
7343
$as_echo_n "(cached) " >&6
7345
if test -n "$CXX"; then
7346
ac_cv_prog_CXX="$CXX" # Let the user override the test.
7348
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352
test -z "$as_dir" && as_dir=.
7353
for ac_exec_ext in '' $ac_executable_extensions; do
7354
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7355
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7356
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366
if test -n "$CXX"; then
7367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7368
$as_echo "$CXX" >&6; }
7370
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371
$as_echo "no" >&6; }
7375
test -n "$CXX" && break
7378
if test -z "$CXX"; then
7380
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7382
# Extract the first word of "$ac_prog", so it can be a program name with args.
7383
set dummy $ac_prog; ac_word=$2
7384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385
$as_echo_n "checking for $ac_word... " >&6; }
7386
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7387
$as_echo_n "(cached) " >&6
7389
if test -n "$ac_ct_CXX"; then
7390
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7392
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396
test -z "$as_dir" && as_dir=.
7397
for ac_exec_ext in '' $ac_executable_extensions; do
7398
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7399
ac_cv_prog_ac_ct_CXX="$ac_prog"
7400
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7410
if test -n "$ac_ct_CXX"; then
7411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7412
$as_echo "$ac_ct_CXX" >&6; }
7414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415
$as_echo "no" >&6; }
7419
test -n "$ac_ct_CXX" && break
7422
if test "x$ac_ct_CXX" = x; then
7425
case $cross_compiling:$ac_tool_warned in
7427
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7428
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7429
ac_tool_warned=yes ;;
7437
# Provide some information about the compiler.
7438
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7441
for ac_option in --version -v -V -qversion; do
7442
{ { ac_try="$ac_compiler $ac_option >&5"
7444
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445
*) ac_try_echo=$ac_try;;
7447
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7448
$as_echo "$ac_try_echo"; } >&5
7449
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
7451
if test -s conftest.err; then
7453
... rest of stderr output deleted ...
7454
10q' conftest.err >conftest.er1
7455
cat conftest.er1 >&5
7457
rm -f conftest.er1 conftest.err
7458
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7459
test $ac_status = 0; }
7462
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7463
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7464
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7465
$as_echo_n "(cached) " >&6
7467
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468
/* end confdefs.h. */
7481
if ac_fn_cxx_try_compile "$LINENO"; then :
7486
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7491
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7492
if test $ac_compiler_gnu = yes; then
7497
ac_test_CXXFLAGS=${CXXFLAGS+set}
7498
ac_save_CXXFLAGS=$CXXFLAGS
7499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7500
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7501
if test "${ac_cv_prog_cxx_g+set}" = set; then :
7502
$as_echo_n "(cached) " >&6
7504
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7505
ac_cxx_werror_flag=yes
7508
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509
/* end confdefs.h. */
7519
if ac_fn_cxx_try_compile "$LINENO"; then :
7520
ac_cv_prog_cxx_g=yes
7523
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524
/* end confdefs.h. */
7534
if ac_fn_cxx_try_compile "$LINENO"; then :
7537
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7539
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540
/* end confdefs.h. */
7550
if ac_fn_cxx_try_compile "$LINENO"; then :
7551
ac_cv_prog_cxx_g=yes
7553
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7555
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7561
$as_echo "$ac_cv_prog_cxx_g" >&6; }
7562
if test "$ac_test_CXXFLAGS" = set; then
7563
CXXFLAGS=$ac_save_CXXFLAGS
7564
elif test $ac_cv_prog_cxx_g = yes; then
7565
if test "$GXX" = yes; then
7571
if test "$GXX" = yes; then
7578
ac_cpp='$CPP $CPPFLAGS'
7579
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7580
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7581
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7583
depcc="$CXX" am_compiler_list=
7585
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7586
$as_echo_n "checking dependency style of $depcc... " >&6; }
7587
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7588
$as_echo_n "(cached) " >&6
7590
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7591
# We make a subdir and do the tests there. Otherwise we can end up
7592
# making bogus files that we don't know about and never remove. For
7593
# instance it was reported that on HP-UX the gcc test will end up
7594
# making a dummy file named `D' -- because `-MD' means `put the output
7597
# Copy depcomp to subdir because otherwise we won't find it if we're
7598
# using a relative directory.
7599
cp "$am_depcomp" conftest.dir
7601
# We will build objects and dependencies in a subdirectory because
7602
# it helps to detect inapplicable dependency modes. For instance
7603
# both Tru64's cc and ICC support -MD to output dependencies as a
7604
# side effect of compilation, but ICC will put the dependencies in
7605
# the current directory while Tru64 will put them in the object
7609
am_cv_CXX_dependencies_compiler_type=none
7610
if test "$am_compiler_list" = ""; then
7611
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7614
case " $depcc " in #(
7615
*\ -arch\ *\ -arch\ *) am__universal=true ;;
7618
for depmode in $am_compiler_list; do
7619
# Setup a source with many dependencies, because some compilers
7620
# like to wrap large dependency lists on column 80 (with \), and
7621
# we should not choose a depcomp mode which is confused by this.
7623
# We need to recreate these files for each test, as the compiler may
7624
# overwrite some of them when testing with obscure command lines.
7625
# This happens at least with the AIX C compiler.
7627
for i in 1 2 3 4 5 6; do
7628
echo '#include "conftst'$i'.h"' >> sub/conftest.c
7629
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7630
# Solaris 8's {/usr,}/bin/sh.
7631
touch sub/conftst$i.h
7633
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7635
# We check with `-c' and `-o' for the sake of the "dashmstdout"
7636
# mode. It turns out that the SunPro C++ compiler does not properly
7637
# handle `-M -o', and we need to detect this. Also, some Intel
7638
# versions had trouble with output in subdirs
7639
am__obj=sub/conftest.${OBJEXT-o}
7640
am__minus_obj="-o $am__obj"
7643
# This depmode causes a compiler race in universal mode.
7644
test "$am__universal" = false || continue
7647
# after this tag, mechanisms are not by side-effect, so they'll
7648
# only be used when explicitly requested
7649
if test "x$enable_dependency_tracking" = xyes; then
7655
msvisualcpp | msvcmsys)
7656
# This compiler won't grok `-c -o', but also, the minuso test has
7657
# not run yet. These depmodes are late enough in the game, and
7658
# so weak that their functioning should not be impacted.
7659
am__obj=conftest.${OBJEXT-o}
7664
if depmode=$depmode \
7665
source=sub/conftest.c object=$am__obj \
7666
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7667
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7668
>/dev/null 2>conftest.err &&
7669
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7670
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7671
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7672
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7673
# icc doesn't choke on unknown options, it will just issue warnings
7674
# or remarks (even with -Werror). So we grep stderr for any message
7675
# that says an option was ignored or not supported.
7676
# When given -MP, icc 7.0 and 7.1 complain thusly:
7677
# icc: Command line warning: ignoring option '-M'; no argument required
7678
# The diagnosis changed in icc 8.0:
7679
# icc: Command line remark: option '-MP' not supported
7680
if (grep 'ignoring option' conftest.err ||
7681
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7682
am_cv_CXX_dependencies_compiler_type=$depmode
7691
am_cv_CXX_dependencies_compiler_type=none
7695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7696
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7697
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7700
test "x$enable_dependency_tracking" != xno \
7701
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7702
am__fastdepCXX_TRUE=
7703
am__fastdepCXX_FALSE='#'
7705
am__fastdepCXX_TRUE='#'
7706
am__fastdepCXX_FALSE=
7710
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7711
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7712
(test "X$CXX" != "Xg++"))) ; then
7714
ac_cpp='$CXXCPP $CPPFLAGS'
7715
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7719
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7720
if test -z "$CXXCPP"; then
7721
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7722
$as_echo_n "(cached) " >&6
7724
# Double quotes because CXXCPP needs to be expanded
7725
for CXXCPP in "$CXX -E" "/lib/cpp"
7728
for ac_cxx_preproc_warn_flag in '' yes
7730
# Use a header file that comes with gcc, so configuring glibc
7731
# with a fresh cross-compiler works.
7732
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7733
# <limits.h> exists even on freestanding compilers.
7734
# On the NeXT, cc -E runs the code through the compiler's parser,
7735
# not just through cpp. "Syntax error" is here to catch this case.
7736
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737
/* end confdefs.h. */
7739
# include <limits.h>
7741
# include <assert.h>
7745
if ac_fn_cxx_try_cpp "$LINENO"; then :
7748
# Broken: fails on valid input.
7751
rm -f conftest.err conftest.$ac_ext
7753
# OK, works on sane cases. Now check whether nonexistent headers
7754
# can be detected and how.
7755
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756
/* end confdefs.h. */
7757
#include <ac_nonexistent.h>
7759
if ac_fn_cxx_try_cpp "$LINENO"; then :
7760
# Broken: success on invalid input.
7763
# Passes both tests.
7767
rm -f conftest.err conftest.$ac_ext
7770
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7771
rm -f conftest.err conftest.$ac_ext
7772
if $ac_preproc_ok; then :
7777
ac_cv_prog_CXXCPP=$CXXCPP
7780
CXXCPP=$ac_cv_prog_CXXCPP
7782
ac_cv_prog_CXXCPP=$CXXCPP
7784
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7785
$as_echo "$CXXCPP" >&6; }
7787
for ac_cxx_preproc_warn_flag in '' yes
7789
# Use a header file that comes with gcc, so configuring glibc
7790
# with a fresh cross-compiler works.
7791
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7792
# <limits.h> exists even on freestanding compilers.
7793
# On the NeXT, cc -E runs the code through the compiler's parser,
7794
# not just through cpp. "Syntax error" is here to catch this case.
7795
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796
/* end confdefs.h. */
7798
# include <limits.h>
7800
# include <assert.h>
7804
if ac_fn_cxx_try_cpp "$LINENO"; then :
7807
# Broken: fails on valid input.
7810
rm -f conftest.err conftest.$ac_ext
7812
# OK, works on sane cases. Now check whether nonexistent headers
7813
# can be detected and how.
7814
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815
/* end confdefs.h. */
7816
#include <ac_nonexistent.h>
7818
if ac_fn_cxx_try_cpp "$LINENO"; then :
7819
# Broken: success on invalid input.
7822
# Passes both tests.
7826
rm -f conftest.err conftest.$ac_ext
7829
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7830
rm -f conftest.err conftest.$ac_ext
7831
if $ac_preproc_ok; then :
7834
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7835
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7836
_lt_caught_CXX_error=yes; }
7840
ac_cpp='$CPP $CPPFLAGS'
7841
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7846
_lt_caught_CXX_error=yes
7854
# Check whether --enable-static was given.
7855
if test "${enable_static+set}" = set; then :
7856
enableval=$enable_static; p=${PACKAGE-default}
7858
yes) enable_static=yes ;;
7859
no) enable_static=no ;;
7862
# Look at the argument we got. We use all the common list separators.
7863
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7864
for pkg in $enableval; do
7866
if test "X$pkg" = "X$p"; then
7892
# Check whether --enable-shared was given.
7893
if test "${enable_shared+set}" = set; then :
7894
enableval=$enable_shared; p=${PACKAGE-default}
7896
yes) enable_shared=yes ;;
7897
no) enable_shared=no ;;
7900
# Look at the argument we got. We use all the common list separators.
7901
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7902
for pkg in $enableval; do
7904
if test "X$pkg" = "X$p"; then
7925
# Check whether --with-pic was given.
7926
if test "${with_pic+set}" = set; then :
7927
withval=$with_pic; pic_mode="$withval"
7933
test -z "$pic_mode" && pic_mode=default
7941
# Check whether --enable-fast-install was given.
7942
if test "${enable_fast_install+set}" = set; then :
7943
enableval=$enable_fast_install; p=${PACKAGE-default}
7945
yes) enable_fast_install=yes ;;
7946
no) enable_fast_install=no ;;
7948
enable_fast_install=no
7949
# Look at the argument we got. We use all the common list separators.
7950
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7951
for pkg in $enableval; do
7953
if test "X$pkg" = "X$p"; then
7954
enable_fast_install=yes
7961
enable_fast_install=yes
7974
# This can be used to rebuild libtool when needed
7975
LIBTOOL_DEPS="$ltmain"
7977
# Always use our own libtool.
7978
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8004
test -z "$LN_S" && LN_S="ln -s"
8019
if test -n "${ZSH_VERSION+set}" ; then
8020
setopt NO_GLOB_SUBST
8023
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8024
$as_echo_n "checking for objdir... " >&6; }
8025
if test "${lt_cv_objdir+set}" = set; then :
8026
$as_echo_n "(cached) " >&6
8028
rm -f .libs 2>/dev/null
8029
mkdir .libs 2>/dev/null
8030
if test -d .libs; then
8033
# MS-DOS does not allow filenames that begin with a dot.
8036
rmdir .libs 2>/dev/null
8038
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8039
$as_echo "$lt_cv_objdir" >&6; }
8040
objdir=$lt_cv_objdir
8046
cat >>confdefs.h <<_ACEOF
8047
#define LT_OBJDIR "$lt_cv_objdir/"
8068
# AIX sometimes has problems with the GCC collect2 program. For some
8069
# reason, if we set the COLLECT_NAMES environment variable, the problems
8070
# vanish in a puff of smoke.
8071
if test "X${COLLECT_NAMES+set}" != Xset; then
8073
export COLLECT_NAMES
8078
# Sed substitution that helps us do robust quoting. It backslashifies
8079
# metacharacters that are still active within double-quoted strings.
8080
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8082
# Same as above, but do not quote variable references.
8083
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8085
# Sed substitution to delay expansion of an escaped shell variable in a
8086
# double_quote_subst'ed string.
8087
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8089
# Sed substitution to delay expansion of an escaped single quote.
8090
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8092
# Sed substitution to avoid accidental globbing in evaled expressions
8093
no_glob_subst='s/\*/\\\*/g'
8097
can_build_shared=yes
8099
# All known linkers require a `.a' archive for static linking (except MSVC,
8100
# which needs '.lib').
8103
with_gnu_ld="$lt_cv_prog_gnu_ld"
8106
old_CFLAGS="$CFLAGS"
8108
# Set sane defaults for various variables
8109
test -z "$CC" && CC=cc
8110
test -z "$LTCC" && LTCC=$CC
8111
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8112
test -z "$LD" && LD=ld
8113
test -z "$ac_objext" && ac_objext=o
8115
for cc_temp in $compiler""; do
8117
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8118
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8123
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8126
# Only perform the check for file, if the check method requires it
8127
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8128
case $deplibs_check_method in
8130
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8131
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8132
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8133
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8134
$as_echo_n "(cached) " >&6
8138
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8141
lt_save_MAGIC_CMD="$MAGIC_CMD"
8142
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8143
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8144
for ac_dir in $ac_dummy; do
8146
test -z "$ac_dir" && ac_dir=.
8147
if test -f $ac_dir/${ac_tool_prefix}file; then
8148
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8149
if test -n "$file_magic_test_file"; then
8150
case $deplibs_check_method in
8152
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8153
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8154
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8155
$EGREP "$file_magic_regex" > /dev/null; then
8160
*** Warning: the command libtool uses to detect shared libraries,
8161
*** $file_magic_cmd, produces output that libtool cannot recognize.
8162
*** The result is that libtool may fail to recognize shared libraries
8163
*** as such. This will affect the creation of libtool libraries that
8164
*** depend on shared libraries, but programs linked with such libtool
8165
*** libraries will work regardless of this problem. Nevertheless, you
8166
*** may want to report the problem to your system manager and/or to
8167
*** bug-libtool@gnu.org
8177
MAGIC_CMD="$lt_save_MAGIC_CMD"
8182
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8183
if test -n "$MAGIC_CMD"; then
8184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8185
$as_echo "$MAGIC_CMD" >&6; }
8187
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188
$as_echo "no" >&6; }
8195
if test -z "$lt_cv_path_MAGIC_CMD"; then
8196
if test -n "$ac_tool_prefix"; then
8197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8198
$as_echo_n "checking for file... " >&6; }
8199
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8200
$as_echo_n "(cached) " >&6
8204
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8207
lt_save_MAGIC_CMD="$MAGIC_CMD"
8208
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8209
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8210
for ac_dir in $ac_dummy; do
8212
test -z "$ac_dir" && ac_dir=.
8213
if test -f $ac_dir/file; then
8214
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8215
if test -n "$file_magic_test_file"; then
8216
case $deplibs_check_method in
8218
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8219
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8220
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8221
$EGREP "$file_magic_regex" > /dev/null; then
8226
*** Warning: the command libtool uses to detect shared libraries,
8227
*** $file_magic_cmd, produces output that libtool cannot recognize.
8228
*** The result is that libtool may fail to recognize shared libraries
8229
*** as such. This will affect the creation of libtool libraries that
8230
*** depend on shared libraries, but programs linked with such libtool
8231
*** libraries will work regardless of this problem. Nevertheless, you
8232
*** may want to report the problem to your system manager and/or to
8233
*** bug-libtool@gnu.org
8243
MAGIC_CMD="$lt_save_MAGIC_CMD"
8248
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8249
if test -n "$MAGIC_CMD"; then
8250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8251
$as_echo "$MAGIC_CMD" >&6; }
8253
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254
$as_echo "no" >&6; }
8267
# Use C for the default configuration in the libtool script
8271
ac_cpp='$CPP $CPPFLAGS'
8272
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8277
# Source file extension for C test sources.
8280
# Object file extension for compiled C test sources.
8284
# Code to be used in simple compile tests
8285
lt_simple_compile_test_code="int some_variable = 0;"
8287
# Code to be used in simple link tests
8288
lt_simple_link_test_code='int main(){return(0);}'
8296
# If no C compiler was specified, use CC.
8299
# If no C compiler flags were specified, use CFLAGS.
8300
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8302
# Allow CC to be a program name with arguments.
8305
# Save the default compiler, since it gets overwritten when the other
8306
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8307
compiler_DEFAULT=$CC
8309
# save warnings/boilerplate of simple test code
8310
ac_outfile=conftest.$ac_objext
8311
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8312
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8313
_lt_compiler_boilerplate=`cat conftest.err`
8316
ac_outfile=conftest.$ac_objext
8317
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8318
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8319
_lt_linker_boilerplate=`cat conftest.err`
8324
## There is no encapsulation within the following macros, do not change
8325
## the running order or otherwise move them around unless you know exactly
8326
## what you are doing...
8327
if test -n "$compiler"; then
8329
lt_prog_compiler_no_builtin_flag=
8331
if test "$GCC" = yes; then
8332
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8335
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8336
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8337
$as_echo_n "(cached) " >&6
8339
lt_cv_prog_compiler_rtti_exceptions=no
8340
ac_outfile=conftest.$ac_objext
8341
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8342
lt_compiler_flag="-fno-rtti -fno-exceptions"
8343
# Insert the option either (1) after the last *FLAGS variable, or
8344
# (2) before a word containing "conftest.", or (3) at the end.
8345
# Note that $ac_compile itself does not contain backslashes and begins
8346
# with a dollar sign (not a hyphen), so the echo should work correctly.
8347
# The option is referenced via a variable to avoid confusing sed.
8348
lt_compile=`echo "$ac_compile" | $SED \
8349
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8350
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8351
-e 's:$: $lt_compiler_flag:'`
8352
(eval echo "\"\$as_me:8352: $lt_compile\"" >&5)
8353
(eval "$lt_compile" 2>conftest.err)
8355
cat conftest.err >&5
8356
echo "$as_me:8356: \$? = $ac_status" >&5
8357
if (exit $ac_status) && test -s "$ac_outfile"; then
8358
# The compiler can only warn and ignore the option if not recognized
8359
# So say no if there are warnings other than the usual output.
8360
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8361
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8362
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8363
lt_cv_prog_compiler_rtti_exceptions=yes
8369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8370
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8372
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8373
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8385
lt_prog_compiler_wl=
8386
lt_prog_compiler_pic=
8387
lt_prog_compiler_static=
8389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8390
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8392
if test "$GCC" = yes; then
8393
lt_prog_compiler_wl='-Wl,'
8394
lt_prog_compiler_static='-static'
8398
# All AIX code is PIC.
8399
if test "$host_cpu" = ia64; then
8400
# AIX 5 now supports IA64 processor
8401
lt_prog_compiler_static='-Bstatic'
8408
# see comment about AmigaOS4 .so support
8409
lt_prog_compiler_pic='-fPIC'
8412
# FIXME: we need at least 68020 code to build shared libraries, but
8413
# adding the `-m68020' flag to GCC prevents building anything better,
8415
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8420
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8421
# PIC is the default for these OSes.
8424
mingw* | cygwin* | pw32* | os2* | cegcc*)
8425
# This hack is so that the source file can tell whether it is being
8426
# built for inclusion in a dll (and should export symbols for example).
8427
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8428
# (--disable-auto-import) libraries
8429
lt_prog_compiler_pic='-DDLL_EXPORT'
8432
darwin* | rhapsody*)
8433
# PIC is the default on this platform
8434
# Common symbols not allowed in MH_DYLIB files
8435
lt_prog_compiler_pic='-fno-common'
8439
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8440
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8441
# sets the default TLS model and affects inlining.
8447
lt_prog_compiler_pic='-fPIC'
8453
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8454
# Instead, we relocate shared libraries at runtime.
8458
# Just because we use GCC doesn't mean we suddenly get shared libraries
8459
# on systems that don't support them.
8460
lt_prog_compiler_can_build_shared=no
8465
# QNX uses GNU C++, but need to define -shared option too, otherwise
8467
lt_prog_compiler_pic='-fPIC -shared'
8471
if test -d /usr/nec; then
8472
lt_prog_compiler_pic=-Kconform_pic
8477
lt_prog_compiler_pic='-fPIC'
8481
# PORTME Check for flag to pass linker flags through the system compiler.
8484
lt_prog_compiler_wl='-Wl,'
8485
if test "$host_cpu" = ia64; then
8486
# AIX 5 now supports IA64 processor
8487
lt_prog_compiler_static='-Bstatic'
8489
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8493
mingw* | cygwin* | pw32* | os2* | cegcc*)
8494
# This hack is so that the source file can tell whether it is being
8495
# built for inclusion in a dll (and should export symbols for example).
8496
lt_prog_compiler_pic='-DDLL_EXPORT'
8499
hpux9* | hpux10* | hpux11*)
8500
lt_prog_compiler_wl='-Wl,'
8501
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8508
lt_prog_compiler_pic='+Z'
8511
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8512
lt_prog_compiler_static='${wl}-a ${wl}archive'
8515
irix5* | irix6* | nonstopux*)
8516
lt_prog_compiler_wl='-Wl,'
8517
# PIC (with -KPIC) is the default.
8518
lt_prog_compiler_static='-non_shared'
8521
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8522
case $cc_basename in
8523
# old Intel for x86_64 which still supported -KPIC.
8525
lt_prog_compiler_wl='-Wl,'
8526
lt_prog_compiler_pic='-KPIC'
8527
lt_prog_compiler_static='-static'
8529
# icc used to be incompatible with GCC.
8530
# ICC 10 doesn't accept -KPIC any more.
8532
lt_prog_compiler_wl='-Wl,'
8533
lt_prog_compiler_pic='-fPIC'
8534
lt_prog_compiler_static='-static'
8536
# Lahey Fortran 8.1.
8538
lt_prog_compiler_wl='-Wl,'
8539
lt_prog_compiler_pic='--shared'
8540
lt_prog_compiler_static='--static'
8542
pgcc* | pgf77* | pgf90* | pgf95*)
8543
# Portland Group compilers (*not* the Pentium gcc compiler,
8544
# which looks to be a dead project)
8545
lt_prog_compiler_wl='-Wl,'
8546
lt_prog_compiler_pic='-fpic'
8547
lt_prog_compiler_static='-Bstatic'
8550
lt_prog_compiler_wl='-Wl,'
8551
# All Alpha code is PIC.
8552
lt_prog_compiler_static='-non_shared'
8555
# IBM XL C 8.0/Fortran 10.1 on PPC
8556
lt_prog_compiler_wl='-Wl,'
8557
lt_prog_compiler_pic='-qpic'
8558
lt_prog_compiler_static='-qstaticlink'
8561
case `$CC -V 2>&1 | sed 5q` in
8564
lt_prog_compiler_pic='-KPIC'
8565
lt_prog_compiler_static='-Bstatic'
8566
lt_prog_compiler_wl='-Wl,'
8569
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8570
lt_prog_compiler_pic='-KPIC'
8571
lt_prog_compiler_static='-Bstatic'
8572
lt_prog_compiler_wl=''
8580
lt_prog_compiler_pic='-KPIC'
8581
lt_prog_compiler_static='-Bstatic'
8585
# QNX uses GNU C++, but need to define -shared option too, otherwise
8587
lt_prog_compiler_pic='-fPIC -shared'
8590
osf3* | osf4* | osf5*)
8591
lt_prog_compiler_wl='-Wl,'
8592
# All OSF/1 code is PIC.
8593
lt_prog_compiler_static='-non_shared'
8597
lt_prog_compiler_static='-non_shared'
8601
lt_prog_compiler_pic='-KPIC'
8602
lt_prog_compiler_static='-Bstatic'
8603
case $cc_basename in
8605
lt_prog_compiler_wl='-Qoption ld ';;
8607
lt_prog_compiler_wl='-Wl,';;
8612
lt_prog_compiler_wl='-Qoption ld '
8613
lt_prog_compiler_pic='-PIC'
8614
lt_prog_compiler_static='-Bstatic'
8617
sysv4 | sysv4.2uw2* | sysv4.3*)
8618
lt_prog_compiler_wl='-Wl,'
8619
lt_prog_compiler_pic='-KPIC'
8620
lt_prog_compiler_static='-Bstatic'
8624
if test -d /usr/nec ;then
8625
lt_prog_compiler_pic='-Kconform_pic'
8626
lt_prog_compiler_static='-Bstatic'
8630
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8631
lt_prog_compiler_wl='-Wl,'
8632
lt_prog_compiler_pic='-KPIC'
8633
lt_prog_compiler_static='-Bstatic'
8637
lt_prog_compiler_wl='-Wl,'
8638
lt_prog_compiler_can_build_shared=no
8642
lt_prog_compiler_pic='-pic'
8643
lt_prog_compiler_static='-Bstatic'
8647
lt_prog_compiler_can_build_shared=no
8653
# For platforms which do not support PIC, -DPIC is meaningless:
8655
lt_prog_compiler_pic=
8658
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8662
$as_echo "$lt_prog_compiler_pic" >&6; }
8670
# Check to make sure the PIC flag actually works.
8672
if test -n "$lt_prog_compiler_pic"; then
8673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8674
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8675
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8676
$as_echo_n "(cached) " >&6
8678
lt_cv_prog_compiler_pic_works=no
8679
ac_outfile=conftest.$ac_objext
8680
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8681
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8682
# Insert the option either (1) after the last *FLAGS variable, or
8683
# (2) before a word containing "conftest.", or (3) at the end.
8684
# Note that $ac_compile itself does not contain backslashes and begins
8685
# with a dollar sign (not a hyphen), so the echo should work correctly.
8686
# The option is referenced via a variable to avoid confusing sed.
8687
lt_compile=`echo "$ac_compile" | $SED \
8688
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8689
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8690
-e 's:$: $lt_compiler_flag:'`
8691
(eval echo "\"\$as_me:8691: $lt_compile\"" >&5)
8692
(eval "$lt_compile" 2>conftest.err)
8694
cat conftest.err >&5
8695
echo "$as_me:8695: \$? = $ac_status" >&5
8696
if (exit $ac_status) && test -s "$ac_outfile"; then
8697
# The compiler can only warn and ignore the option if not recognized
8698
# So say no if there are warnings other than the usual output.
8699
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8700
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8701
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8702
lt_cv_prog_compiler_pic_works=yes
8708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8709
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8711
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8712
case $lt_prog_compiler_pic in
8714
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8717
lt_prog_compiler_pic=
8718
lt_prog_compiler_can_build_shared=no
8729
# Check to make sure the static flag actually works.
8731
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8733
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8734
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8735
$as_echo_n "(cached) " >&6
8737
lt_cv_prog_compiler_static_works=no
8738
save_LDFLAGS="$LDFLAGS"
8739
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8740
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8741
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8742
# The linker can only warn and ignore the option if not recognized
8743
# So say no if there are warnings
8744
if test -s conftest.err; then
8745
# Append any errors to the config.log.
8746
cat conftest.err 1>&5
8747
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8748
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8749
if diff conftest.exp conftest.er2 >/dev/null; then
8750
lt_cv_prog_compiler_static_works=yes
8753
lt_cv_prog_compiler_static_works=yes
8757
LDFLAGS="$save_LDFLAGS"
8760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8761
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8763
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8766
lt_prog_compiler_static=
8775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8776
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8777
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8778
$as_echo_n "(cached) " >&6
8780
lt_cv_prog_compiler_c_o=no
8781
$RM -r conftest 2>/dev/null
8785
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8787
lt_compiler_flag="-o out/conftest2.$ac_objext"
8788
# Insert the option either (1) after the last *FLAGS variable, or
8789
# (2) before a word containing "conftest.", or (3) at the end.
8790
# Note that $ac_compile itself does not contain backslashes and begins
8791
# with a dollar sign (not a hyphen), so the echo should work correctly.
8792
lt_compile=`echo "$ac_compile" | $SED \
8793
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8794
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8795
-e 's:$: $lt_compiler_flag:'`
8796
(eval echo "\"\$as_me:8796: $lt_compile\"" >&5)
8797
(eval "$lt_compile" 2>out/conftest.err)
8799
cat out/conftest.err >&5
8800
echo "$as_me:8800: \$? = $ac_status" >&5
8801
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8803
# The compiler can only warn and ignore the option if not recognized
8804
# So say no if there are warnings
8805
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8806
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8807
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8808
lt_cv_prog_compiler_c_o=yes
8813
# SGI C++ compiler will create directory out/ii_files/ for
8814
# template instantiation
8815
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8816
$RM out/* && rmdir out
8822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8823
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8831
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8832
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8833
$as_echo_n "(cached) " >&6
8835
lt_cv_prog_compiler_c_o=no
8836
$RM -r conftest 2>/dev/null
8840
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8842
lt_compiler_flag="-o out/conftest2.$ac_objext"
8843
# Insert the option either (1) after the last *FLAGS variable, or
8844
# (2) before a word containing "conftest.", or (3) at the end.
8845
# Note that $ac_compile itself does not contain backslashes and begins
8846
# with a dollar sign (not a hyphen), so the echo should work correctly.
8847
lt_compile=`echo "$ac_compile" | $SED \
8848
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8849
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8850
-e 's:$: $lt_compiler_flag:'`
8851
(eval echo "\"\$as_me:8851: $lt_compile\"" >&5)
8852
(eval "$lt_compile" 2>out/conftest.err)
8854
cat out/conftest.err >&5
8855
echo "$as_me:8855: \$? = $ac_status" >&5
8856
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8858
# The compiler can only warn and ignore the option if not recognized
8859
# So say no if there are warnings
8860
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8861
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8862
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8863
lt_cv_prog_compiler_c_o=yes
8868
# SGI C++ compiler will create directory out/ii_files/ for
8869
# template instantiation
8870
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8871
$RM out/* && rmdir out
8877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8878
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8883
hard_links="nottested"
8884
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8885
# do not overwrite the value of need_locks provided by the user
8886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8887
$as_echo_n "checking if we can lock with hard links... " >&6; }
8890
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8892
ln conftest.a conftest.b 2>&5 || hard_links=no
8893
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8895
$as_echo "$hard_links" >&6; }
8896
if test "$hard_links" = no; then
8897
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8898
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8911
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8914
allow_undefined_flag=
8915
always_export_symbols=no
8917
archive_expsym_cmds=
8918
compiler_needs_object=no
8919
enable_shared_with_static_runtimes=no
8920
export_dynamic_flag_spec=
8921
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8922
hardcode_automatic=no
8924
hardcode_direct_absolute=no
8925
hardcode_libdir_flag_spec=
8926
hardcode_libdir_flag_spec_ld=
8927
hardcode_libdir_separator=
8929
hardcode_shlibpath_var=unsupported
8931
link_all_deplibs=unknown
8934
old_archive_from_new_cmds=
8935
old_archive_from_expsyms_cmds=
8936
thread_safe_flag_spec=
8937
whole_archive_flag_spec=
8938
# include_expsyms should be a list of space-separated symbols to be *always*
8939
# included in the symbol list
8941
# exclude_expsyms can be an extended regexp of symbols to exclude
8942
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8943
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8944
# as well as any symbol that contains `d'.
8945
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8946
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8947
# platforms (ab)use it in PIC code, but their linkers get confused if
8948
# the symbol is explicitly referenced. Since portable code cannot
8949
# rely on this symbol name, it's probably fine to never include it in
8950
# preloaded symbol tables.
8951
# Exclude shared library initialization/finalization symbols.
8952
extract_expsyms_cmds=
8955
cygwin* | mingw* | pw32* | cegcc*)
8956
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8957
# When not using gcc, we currently assume that we are using
8958
# Microsoft Visual C++.
8959
if test "$GCC" != yes; then
8964
# we just hope/assume this is gcc and not c89 (= MSVC++)
8970
linux* | k*bsd*-gnu)
8976
if test "$with_gnu_ld" = yes; then
8977
# If archive_cmds runs LD, not CC, wlarc should be empty
8980
# Set some defaults for GNU ld with shared library support. These
8981
# are reset later if shared libraries are not supported. Putting them
8982
# here allows them to be overridden if necessary.
8983
runpath_var=LD_RUN_PATH
8984
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8985
export_dynamic_flag_spec='${wl}--export-dynamic'
8986
# ancient GNU ld didn't support --whole-archive et. al.
8987
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8988
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8990
whole_archive_flag_spec=
8992
supports_anon_versioning=no
8993
case `$LD -v 2>&1` in
8994
*GNU\ gold*) supports_anon_versioning=yes ;;
8995
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8996
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8997
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8998
*\ 2.11.*) ;; # other 2.11 versions
8999
*) supports_anon_versioning=yes ;;
9002
# See if GNU ld supports shared libraries.
9005
# On AIX/PPC, the GNU linker is very broken
9006
if test "$host_cpu" != ia64; then
9010
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9011
*** to be unable to reliably create shared libraries on AIX.
9012
*** Therefore, libtool is disabling shared libraries support. If you
9013
*** really care for shared libraries, you may want to modify your PATH
9014
*** so that a non-GNU linker is found, and then restart.
9023
# see comment about AmigaOS4 .so support
9024
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9025
archive_expsym_cmds=''
9028
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)'
9029
hardcode_libdir_flag_spec='-L$libdir'
9030
hardcode_minus_L=yes
9036
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9037
allow_undefined_flag=unsupported
9038
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9039
# support --undefined. This deserves some investigation. FIXME
9040
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9046
cygwin* | mingw* | pw32* | cegcc*)
9047
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9048
# as there is no search path for DLLs.
9049
hardcode_libdir_flag_spec='-L$libdir'
9050
allow_undefined_flag=unsupported
9051
always_export_symbols=no
9052
enable_shared_with_static_runtimes=yes
9053
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9055
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9056
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9057
# If the export-symbols file already is a .def file (1st line
9058
# is EXPORTS), use it as is; otherwise, prepend...
9059
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9060
cp $export_symbols $output_objdir/$soname.def;
9062
echo EXPORTS > $output_objdir/$soname.def;
9063
cat $export_symbols >> $output_objdir/$soname.def;
9065
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9073
hardcode_shlibpath_var=no
9074
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9075
export_dynamic_flag_spec='${wl}-E'
9076
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9077
# Instead, shared libraries are loaded at an image base (0x10000000 by
9078
# default) and relocated if they conflict, which is a slow very memory
9079
# consuming and fragmenting process. To avoid this, we pick a random,
9080
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9081
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
9082
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9083
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'
9086
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9088
if test "$host_os" = linux-dietlibc; then
9089
case $cc_basename in
9090
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9093
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9094
&& test "$tmp_diet" = no
9097
tmp_sharedflag='-shared'
9098
case $cc_basename,$host_cpu in
9099
pgcc*) # Portland Group C compiler
9100
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'
9101
tmp_addflag=' $pic_flag'
9103
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9104
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'
9105
tmp_addflag=' $pic_flag -Mnomain' ;;
9106
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9107
tmp_addflag=' -i_dynamic' ;;
9108
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9109
tmp_addflag=' -i_dynamic -nofor_main' ;;
9110
ifc* | ifort*) # Intel Fortran compiler
9111
tmp_addflag=' -nofor_main' ;;
9112
lf95*) # Lahey Fortran 8.1
9113
whole_archive_flag_spec=
9114
tmp_sharedflag='--shared' ;;
9115
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9116
tmp_sharedflag='-qmkshrobj'
9119
case `$CC -V 2>&1 | sed 5q` in
9120
*Sun\ C*) # Sun C 5.9
9121
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'
9122
compiler_needs_object=yes
9123
tmp_sharedflag='-G' ;;
9124
*Sun\ F*) # Sun Fortran 8.3
9125
tmp_sharedflag='-G' ;;
9127
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9129
if test "x$supports_anon_versioning" = xyes; then
9130
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9131
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9132
echo "local: *; };" >> $output_objdir/$libname.ver~
9133
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9136
case $cc_basename in
9138
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9139
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9140
hardcode_libdir_flag_spec=
9141
hardcode_libdir_flag_spec_ld='-rpath $libdir'
9142
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9143
if test "x$supports_anon_versioning" = xyes; then
9144
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9145
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9146
echo "local: *; };" >> $output_objdir/$libname.ver~
9147
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9156
netbsd* | netbsdelf*-gnu)
9157
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9158
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9161
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9162
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9167
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9171
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9172
*** create shared libraries on Solaris systems. Therefore, libtool
9173
*** is disabling shared libraries support. We urge you to upgrade GNU
9174
*** binutils to release 2.9.1 or newer. Another option is to modify
9175
*** your PATH or compiler configuration so that the native linker is
9176
*** used, and then restart.
9179
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9180
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9181
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9187
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9188
case `$LD -v 2>&1` in
9189
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9193
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9194
*** reliably create shared libraries on SCO systems. Therefore, libtool
9195
*** is disabling shared libraries support. We urge you to upgrade GNU
9196
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9197
*** your PATH or compiler configuration so that the native linker is
9198
*** used, and then restart.
9203
# For security reasons, it is highly recommended that you always
9204
# use absolute paths for naming shared libraries, and exclude the
9205
# DT_RUNPATH tag from executables and libraries. But doing so
9206
# requires that you compile everything twice, which is a pain.
9207
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9208
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9209
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9210
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9219
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9222
hardcode_shlibpath_var=no
9226
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9227
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9228
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9235
if test "$ld_shlibs" = no; then
9237
hardcode_libdir_flag_spec=
9238
export_dynamic_flag_spec=
9239
whole_archive_flag_spec=
9242
# PORTME fill in a description of your system's linker (not GNU ld)
9245
allow_undefined_flag=unsupported
9246
always_export_symbols=yes
9247
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'
9248
# Note: this linker hardcodes the directories in LIBPATH if there
9249
# are no directories specified by -L.
9250
hardcode_minus_L=yes
9251
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9252
# Neither direct hardcoding nor static linking is supported with a
9254
hardcode_direct=unsupported
9259
if test "$host_cpu" = ia64; then
9260
# On IA64, the linker does run time linking by default, so we don't
9261
# have to do anything special.
9262
aix_use_runtimelinking=no
9263
exp_sym_flag='-Bexport'
9266
# If we're using GNU nm, then we don't want the "-C" option.
9267
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9268
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9269
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'
9271
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'
9273
aix_use_runtimelinking=no
9275
# Test if we are trying to use run time linking or normal
9276
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9277
# need to do runtime linking.
9278
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9279
for ld_flag in $LDFLAGS; do
9280
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9281
aix_use_runtimelinking=yes
9288
exp_sym_flag='-bexport'
9289
no_entry_flag='-bnoentry'
9292
# When large executables or shared objects are built, AIX ld can
9293
# have problems creating the table of contents. If linking a library
9294
# or program results in "error TOC overflow" add -mminimal-toc to
9295
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9296
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9300
hardcode_direct_absolute=yes
9301
hardcode_libdir_separator=':'
9302
link_all_deplibs=yes
9303
file_list_spec='${wl}-f,'
9305
if test "$GCC" = yes; then
9306
case $host_os in aix4.[012]|aix4.[012].*)
9307
# We only want to do this on AIX 4.2 and lower, the check
9308
# below for broken collect2 doesn't work under 4.3+
9309
collect2name=`${CC} -print-prog-name=collect2`
9310
if test -f "$collect2name" &&
9311
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9313
# We have reworked collect2
9316
# We have old collect2
9317
hardcode_direct=unsupported
9318
# It fails to find uninstalled libraries when the uninstalled
9319
# path is not listed in the libpath. Setting hardcode_minus_L
9320
# to unsupported forces relinking
9321
hardcode_minus_L=yes
9322
hardcode_libdir_flag_spec='-L$libdir'
9323
hardcode_libdir_separator=
9327
shared_flag='-shared'
9328
if test "$aix_use_runtimelinking" = yes; then
9329
shared_flag="$shared_flag "'${wl}-G'
9334
if test "$host_cpu" = ia64; then
9335
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9336
# chokes on -Wl,-G. The following line is correct:
9339
if test "$aix_use_runtimelinking" = yes; then
9340
shared_flag='${wl}-G'
9342
shared_flag='${wl}-bM:SRE'
9347
export_dynamic_flag_spec='${wl}-bexpall'
9348
# It seems that -bexpall does not export symbols beginning with
9349
# underscore (_), so it is better to generate a list of symbols to export.
9350
always_export_symbols=yes
9351
if test "$aix_use_runtimelinking" = yes; then
9352
# Warning - without using the other runtime loading flags (-brtl),
9353
# -berok will link without error, but may produce a broken library.
9354
allow_undefined_flag='-berok'
9355
# Determine the default libpath from the value encoded in an
9357
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358
/* end confdefs.h. */
9368
if ac_fn_c_try_link "$LINENO"; then :
9370
lt_aix_libpath_sed='
9371
/Import File Strings/,/^$/ {
9377
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9378
# Check for a 64-bit object if we didn't find anything.
9379
if test -z "$aix_libpath"; then
9380
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9383
rm -f core conftest.err conftest.$ac_objext \
9384
conftest$ac_exeext conftest.$ac_ext
9385
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9387
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9388
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"
9390
if test "$host_cpu" = ia64; then
9391
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9392
allow_undefined_flag="-z nodefs"
9393
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"
9395
# Determine the default libpath from the value encoded in an
9397
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398
/* end confdefs.h. */
9408
if ac_fn_c_try_link "$LINENO"; then :
9410
lt_aix_libpath_sed='
9411
/Import File Strings/,/^$/ {
9417
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9418
# Check for a 64-bit object if we didn't find anything.
9419
if test -z "$aix_libpath"; then
9420
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9423
rm -f core conftest.err conftest.$ac_objext \
9424
conftest$ac_exeext conftest.$ac_ext
9425
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9427
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9428
# Warning - without using the other run time loading flags,
9429
# -berok will link without error, but may produce a broken library.
9430
no_undefined_flag=' ${wl}-bernotok'
9431
allow_undefined_flag=' ${wl}-berok'
9432
# Exported symbols can be pulled into shared objects from archives
9433
whole_archive_flag_spec='$convenience'
9434
archive_cmds_need_lc=yes
9435
# This is similar to how AIX traditionally builds its shared libraries.
9436
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'
9444
# see comment about AmigaOS4 .so support
9445
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9446
archive_expsym_cmds=''
9449
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)'
9450
hardcode_libdir_flag_spec='-L$libdir'
9451
hardcode_minus_L=yes
9457
export_dynamic_flag_spec=-rdynamic
9460
cygwin* | mingw* | pw32* | cegcc*)
9461
# When not using gcc, we currently assume that we are using
9462
# Microsoft Visual C++.
9463
# hardcode_libdir_flag_spec is actually meaningless, as there is
9464
# no search path for DLLs.
9465
hardcode_libdir_flag_spec=' '
9466
allow_undefined_flag=unsupported
9467
# Tell ltmain to make .lib files, not .a files.
9469
# Tell ltmain to make .dll files, not .so files.
9471
# FIXME: Setting linknames here is a bad hack.
9472
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9473
# The linker will automatically build a .lib file if we build a DLL.
9474
old_archive_from_new_cmds='true'
9475
# FIXME: Should let the user specify the lib program.
9476
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9477
fix_srcfile_path='`cygpath -w "$srcfile"`'
9478
enable_shared_with_static_runtimes=yes
9481
darwin* | rhapsody*)
9484
archive_cmds_need_lc=no
9486
hardcode_automatic=yes
9487
hardcode_shlibpath_var=unsupported
9488
whole_archive_flag_spec=''
9489
link_all_deplibs=yes
9490
allow_undefined_flag="$_lt_dar_allow_undefined"
9491
case $cc_basename in
9492
ifort*) _lt_dar_can_shared=yes ;;
9493
*) _lt_dar_can_shared=$GCC ;;
9495
if test "$_lt_dar_can_shared" = "yes"; then
9496
output_verbose_link_cmd=echo
9497
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9498
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9499
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}"
9500
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}"
9509
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9510
hardcode_libdir_flag_spec='-L$libdir'
9511
hardcode_shlibpath_var=no
9518
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9519
# support. Future versions do this automatically, but an explicit c++rt0.o
9520
# does not break anything, and helps significantly (at the cost of a little
9523
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9524
hardcode_libdir_flag_spec='-R$libdir'
9526
hardcode_shlibpath_var=no
9529
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9531
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9533
hardcode_minus_L=yes
9534
hardcode_shlibpath_var=no
9537
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9538
freebsd* | dragonfly*)
9539
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9540
hardcode_libdir_flag_spec='-R$libdir'
9542
hardcode_shlibpath_var=no
9546
if test "$GCC" = yes; then
9547
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'
9549
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'
9551
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9552
hardcode_libdir_separator=:
9555
# hardcode_minus_L: Not really in the search PATH,
9556
# but as the default location of the library.
9557
hardcode_minus_L=yes
9558
export_dynamic_flag_spec='${wl}-E'
9562
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9563
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9565
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9567
if test "$with_gnu_ld" = no; then
9568
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9569
hardcode_libdir_flag_spec_ld='+b $libdir'
9570
hardcode_libdir_separator=:
9572
hardcode_direct_absolute=yes
9573
export_dynamic_flag_spec='${wl}-E'
9574
# hardcode_minus_L: Not really in the search PATH,
9575
# but as the default location of the library.
9576
hardcode_minus_L=yes
9581
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9584
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9587
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9590
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9596
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9599
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9602
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9606
if test "$with_gnu_ld" = no; then
9607
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9608
hardcode_libdir_separator=:
9613
hardcode_shlibpath_var=no
9617
hardcode_direct_absolute=yes
9618
export_dynamic_flag_spec='${wl}-E'
9620
# hardcode_minus_L: Not really in the search PATH,
9621
# but as the default location of the library.
9622
hardcode_minus_L=yes
9628
irix5* | irix6* | nonstopux*)
9629
if test "$GCC" = yes; then
9630
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'
9631
# Try to use the -exported_symbol ld option, if it does not
9632
# work, assume that -exports_file does not work either and
9633
# implicitly export all symbols.
9634
save_LDFLAGS="$LDFLAGS"
9635
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9636
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637
/* end confdefs.h. */
9640
if ac_fn_c_try_link "$LINENO"; then :
9641
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'
9644
rm -f core conftest.err conftest.$ac_objext \
9645
conftest$ac_exeext conftest.$ac_ext
9646
LDFLAGS="$save_LDFLAGS"
9648
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'
9649
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'
9651
archive_cmds_need_lc='no'
9652
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9653
hardcode_libdir_separator=:
9655
link_all_deplibs=yes
9658
netbsd* | netbsdelf*-gnu)
9659
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9660
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9662
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9664
hardcode_libdir_flag_spec='-R$libdir'
9666
hardcode_shlibpath_var=no
9670
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9672
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9673
hardcode_libdir_separator=:
9674
hardcode_shlibpath_var=no
9681
if test -f /usr/libexec/ld.so; then
9683
hardcode_shlibpath_var=no
9684
hardcode_direct_absolute=yes
9685
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9686
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9687
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9688
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9689
export_dynamic_flag_spec='${wl}-E'
9692
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9693
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9694
hardcode_libdir_flag_spec='-R$libdir'
9697
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9698
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9708
hardcode_libdir_flag_spec='-L$libdir'
9709
hardcode_minus_L=yes
9710
allow_undefined_flag=unsupported
9711
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'
9712
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9716
if test "$GCC" = yes; then
9717
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9718
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'
9720
allow_undefined_flag=' -expect_unresolved \*'
9721
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'
9723
archive_cmds_need_lc='no'
9724
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9725
hardcode_libdir_separator=:
9728
osf4* | osf5*) # as osf3* with the addition of -msym flag
9729
if test "$GCC" = yes; then
9730
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9731
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'
9732
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9734
allow_undefined_flag=' -expect_unresolved \*'
9735
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'
9736
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~
9737
$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'
9739
# Both c and cxx compiler support -rpath directly
9740
hardcode_libdir_flag_spec='-rpath $libdir'
9742
archive_cmds_need_lc='no'
9743
hardcode_libdir_separator=:
9747
no_undefined_flag=' -z defs'
9748
if test "$GCC" = yes; then
9750
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9751
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9752
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9754
case `$CC -V 2>&1` in
9757
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9758
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9759
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9763
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9764
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9765
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9769
hardcode_libdir_flag_spec='-R$libdir'
9770
hardcode_shlibpath_var=no
9772
solaris2.[0-5] | solaris2.[0-5].*) ;;
9774
# The compiler driver will combine and reorder linker options,
9775
# but understands `-z linker_flag'. GCC discards it without `$wl',
9776
# but is careful enough not to reorder.
9777
# Supported since Solaris 2.6 (maybe 2.5.1?)
9778
if test "$GCC" = yes; then
9779
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9781
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9785
link_all_deplibs=yes
9789
if test "x$host_vendor" = xsequent; then
9790
# Use $CC to link under sequent, because it throws in some extra .o
9791
# files that make .init and .fini sections work.
9792
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9794
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9796
hardcode_libdir_flag_spec='-L$libdir'
9798
hardcode_minus_L=yes
9799
hardcode_shlibpath_var=no
9803
case $host_vendor in
9805
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9806
hardcode_direct=yes # is this really true???
9809
## LD is ld it makes a PLAMLIB
9810
## CC just makes a GrossModule.
9811
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9812
reload_cmds='$CC -r -o $output$reload_objs'
9816
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9817
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9820
runpath_var='LD_RUN_PATH'
9821
hardcode_shlibpath_var=no
9825
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9826
hardcode_shlibpath_var=no
9827
export_dynamic_flag_spec='-Bexport'
9831
if test -d /usr/nec; then
9832
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9833
hardcode_shlibpath_var=no
9834
runpath_var=LD_RUN_PATH
9835
hardcode_runpath_var=yes
9840
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9841
no_undefined_flag='${wl}-z,text'
9842
archive_cmds_need_lc=no
9843
hardcode_shlibpath_var=no
9844
runpath_var='LD_RUN_PATH'
9846
if test "$GCC" = yes; then
9847
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9848
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9850
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9851
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9855
sysv5* | sco3.2v5* | sco5v6*)
9856
# Note: We can NOT use -z defs as we might desire, because we do not
9857
# link with -lc, and that would cause any symbols used from libc to
9858
# always be unresolved, which means just about no library would
9859
# ever link correctly. If we're not using GNU ld we use -z text
9860
# though, which does catch some bad symbols but isn't as heavy-handed
9862
no_undefined_flag='${wl}-z,text'
9863
allow_undefined_flag='${wl}-z,nodefs'
9864
archive_cmds_need_lc=no
9865
hardcode_shlibpath_var=no
9866
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9867
hardcode_libdir_separator=':'
9868
link_all_deplibs=yes
9869
export_dynamic_flag_spec='${wl}-Bexport'
9870
runpath_var='LD_RUN_PATH'
9872
if test "$GCC" = yes; then
9873
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9874
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9876
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9877
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9882
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9883
hardcode_libdir_flag_spec='-L$libdir'
9884
hardcode_shlibpath_var=no
9892
if test x$host_vendor = xsni; then
9894
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9895
export_dynamic_flag_spec='${wl}-Blargedynsym'
9901
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9902
$as_echo "$ld_shlibs" >&6; }
9903
test "$ld_shlibs" = no && can_build_shared=no
9905
with_gnu_ld=$with_gnu_ld
9922
# Do we need to explicitly link libc?
9924
case "x$archive_cmds_need_lc" in
9926
# Assume -lc should be added
9927
archive_cmds_need_lc=yes
9929
if test "$enable_shared" = yes && test "$GCC" = yes; then
9930
case $archive_cmds in
9932
# FIXME: we may have to deal with multi-command sequences.
9935
# Test whether the compiler implicitly links with -lc since on some
9936
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9937
# to ld, don't add -lc before -lgcc.
9938
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9939
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9941
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9943
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9944
(eval $ac_compile) 2>&5
9946
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9947
test $ac_status = 0; } 2>conftest.err; then
9950
libobjs=conftest.$ac_objext
9952
wl=$lt_prog_compiler_wl
9953
pic_flag=$lt_prog_compiler_pic
9959
lt_save_allow_undefined_flag=$allow_undefined_flag
9960
allow_undefined_flag=
9961
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9962
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9964
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9965
test $ac_status = 0; }
9967
archive_cmds_need_lc=no
9969
archive_cmds_need_lc=yes
9971
allow_undefined_flag=$lt_save_allow_undefined_flag
9973
cat conftest.err 1>&5
9976
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9977
$as_echo "$archive_cmds_need_lc" >&6; }
10140
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10141
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10143
if test "$GCC" = yes; then
10145
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10146
*) lt_awk_arg="/^libraries:/" ;;
10148
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10149
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10150
# if the path contains ";" then we assume it to be the separator
10151
# otherwise default to the standard path separator (i.e. ":") - it is
10152
# assumed that no part of a normal pathname contains ";" but that should
10153
# okay in the real world where ";" in dirpaths is itself problematic.
10154
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10156
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10158
# Ok, now we have the path, separated by spaces, we can step through it
10159
# and add multilib dir if necessary.
10160
lt_tmp_lt_search_path_spec=
10161
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10162
for lt_sys_path in $lt_search_path_spec; do
10163
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10164
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10166
test -d "$lt_sys_path" && \
10167
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10170
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10171
BEGIN {RS=" "; FS="/|\n";} {
10174
for (lt_i = NF; lt_i > 0; lt_i--) {
10175
if ($lt_i != "" && $lt_i != ".") {
10176
if ($lt_i == "..") {
10179
if (lt_count == 0) {
10180
lt_foo="/" $lt_i lt_foo;
10187
if (lt_foo != "") { lt_freq[lt_foo]++; }
10188
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10190
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10192
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10194
library_names_spec=
10195
libname_spec='lib$name'
10199
postuninstall_cmds=
10203
shlibpath_overrides_runpath=unknown
10205
dynamic_linker="$host_os ld.so"
10206
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10207
need_lib_prefix=unknown
10208
hardcode_into_libs=no
10210
# when you set need_version to no, make sure it does not cause -set_version
10211
# flags to be left without arguments
10212
need_version=unknown
10217
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10218
shlibpath_var=LIBPATH
10220
# AIX 3 has no versioning support, so we append a major version to the name.
10221
soname_spec='${libname}${release}${shared_ext}$major'
10228
hardcode_into_libs=yes
10229
if test "$host_cpu" = ia64; then
10230
# AIX 5 supports IA64
10231
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10232
shlibpath_var=LD_LIBRARY_PATH
10234
# With GCC up to 2.95.x, collect2 would create an import file
10235
# for dependence libraries. The import file would start with
10236
# the line `#! .'. This would cause the generated library to
10237
# depend on `.', always an invalid library. This was fixed in
10238
# development snapshots of GCC prior to 3.0.
10240
aix4 | aix4.[01] | aix4.[01].*)
10241
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10243
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10246
can_build_shared=no
10250
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10251
# soname into executable. Probably we can add versioning support to
10252
# collect2, so additional links can be useful in future.
10253
if test "$aix_use_runtimelinking" = yes; then
10254
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10255
# instead of lib<name>.a to let people know that these are not
10256
# typical AIX shared libraries.
10257
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10259
# We preserve .a as extension for shared libraries through AIX4.2
10260
# and later when we are not doing run time linking.
10261
library_names_spec='${libname}${release}.a $libname.a'
10262
soname_spec='${libname}${release}${shared_ext}$major'
10264
shlibpath_var=LIBPATH
10271
# Since July 2007 AmigaOS4 officially supports .so libraries.
10272
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10273
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276
library_names_spec='$libname.ixlibrary $libname.a'
10277
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10278
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'
10284
library_names_spec='${libname}${shared_ext}'
10285
dynamic_linker="$host_os ld.so"
10286
shlibpath_var=LIBRARY_PATH
10292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293
soname_spec='${libname}${release}${shared_ext}$major'
10294
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10295
shlibpath_var=LD_LIBRARY_PATH
10296
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10297
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10298
# the default ld.so.conf also contains /usr/contrib/lib and
10299
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10300
# libtool to hard-code these into programs
10303
cygwin* | mingw* | pw32* | cegcc*)
10304
version_type=windows
10309
case $GCC,$host_os in
10310
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10311
library_names_spec='$libname.dll.a'
10312
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10313
postinstall_cmds='base_file=`basename \${file}`~
10314
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10315
dldir=$destdir/`dirname \$dlpath`~
10316
test -d \$dldir || mkdir -p \$dldir~
10317
$install_prog $dir/$dlname \$dldir/$dlname~
10318
chmod a+x \$dldir/$dlname~
10319
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10320
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10322
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10323
dlpath=$dir/\$dldll~
10325
shlibpath_overrides_runpath=yes
10329
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10330
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10331
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10334
# MinGW DLLs use traditional 'lib' prefix
10335
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10336
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10337
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10338
# It is most probably a Windows format PATH printed by
10339
# mingw gcc, but we are running on Cygwin. Gcc prints its search
10340
# path with ; separators, and with drive letters. We can handle the
10341
# drive letters (cygwin fileutils understands them), so leave them,
10342
# especially as we might pass files found there to a mingw objdump,
10343
# which wouldn't understand a cygwinified path. Ahh.
10344
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10346
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10350
# pw32 DLLs use 'pw' prefix rather than 'lib'
10351
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10357
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10360
dynamic_linker='Win32 ld.exe'
10361
# FIXME: first we should search . and the directory the executable is in
10365
darwin* | rhapsody*)
10366
dynamic_linker="$host_os dyld"
10367
version_type=darwin
10370
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10371
soname_spec='${libname}${release}${major}$shared_ext'
10372
shlibpath_overrides_runpath=yes
10373
shlibpath_var=DYLD_LIBRARY_PATH
10374
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10376
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10377
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10385
soname_spec='${libname}${release}${shared_ext}$major'
10386
shlibpath_var=LD_LIBRARY_PATH
10393
freebsd* | dragonfly*)
10394
# DragonFly does not have aout. When/if they implement a new
10395
# versioning mechanism, adjust this.
10396
if test -x /usr/bin/objformat; then
10397
objformat=`/usr/bin/objformat`
10400
freebsd[123]*) objformat=aout ;;
10401
*) objformat=elf ;;
10404
version_type=freebsd-$objformat
10405
case $version_type in
10407
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10412
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10416
shlibpath_var=LD_LIBRARY_PATH
10419
shlibpath_overrides_runpath=yes
10421
freebsd3.[01]* | freebsdelf3.[01]*)
10422
shlibpath_overrides_runpath=yes
10423
hardcode_into_libs=yes
10425
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10426
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10427
shlibpath_overrides_runpath=no
10428
hardcode_into_libs=yes
10430
*) # from 4.6 on, and DragonFly
10431
shlibpath_overrides_runpath=yes
10432
hardcode_into_libs=yes
10441
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10442
soname_spec='${libname}${release}${shared_ext}$major'
10443
shlibpath_var=LD_LIBRARY_PATH
10444
hardcode_into_libs=yes
10447
hpux9* | hpux10* | hpux11*)
10448
# Give a soname corresponding to the major version so that dld.sl refuses to
10449
# link against other versions.
10456
hardcode_into_libs=yes
10457
dynamic_linker="$host_os dld.so"
10458
shlibpath_var=LD_LIBRARY_PATH
10459
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10460
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461
soname_spec='${libname}${release}${shared_ext}$major'
10462
if test "X$HPUX_IA64_MODE" = X32; then
10463
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10465
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10467
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10471
hardcode_into_libs=yes
10472
dynamic_linker="$host_os dld.sl"
10473
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10474
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476
soname_spec='${libname}${release}${shared_ext}$major'
10477
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10478
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10482
dynamic_linker="$host_os dld.sl"
10483
shlibpath_var=SHLIB_PATH
10484
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10485
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486
soname_spec='${libname}${release}${shared_ext}$major'
10489
# HP-UX runs *really* slowly unless shared libraries are mode 555.
10490
postinstall_cmds='chmod 555 $lib'
10497
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10498
soname_spec='${libname}${release}${shared_ext}$major'
10499
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10500
shlibpath_var=LD_LIBRARY_PATH
10501
shlibpath_overrides_runpath=no
10502
hardcode_into_libs=yes
10505
irix5* | irix6* | nonstopux*)
10507
nonstopux*) version_type=nonstopux ;;
10509
if test "$lt_cv_prog_gnu_ld" = yes; then
10517
soname_spec='${libname}${release}${shared_ext}$major'
10518
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10520
irix5* | nonstopux*)
10521
libsuff= shlibsuff=
10524
case $LD in # libtool.m4 will add one of these switches to LD
10525
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10526
libsuff= shlibsuff= libmagic=32-bit;;
10527
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10528
libsuff=32 shlibsuff=N32 libmagic=N32;;
10529
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10530
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10531
*) libsuff= shlibsuff= libmagic=never-match;;
10535
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10536
shlibpath_overrides_runpath=no
10537
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10538
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10539
hardcode_into_libs=yes
10542
# No shared lib support for Linux oldld, aout, or coff.
10543
linux*oldld* | linux*aout* | linux*coff*)
10547
# This must be Linux ELF.
10548
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10552
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553
soname_spec='${libname}${release}${shared_ext}$major'
10554
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10555
shlibpath_var=LD_LIBRARY_PATH
10556
shlibpath_overrides_runpath=no
10557
# Some binutils ld are patched to set DT_RUNPATH
10558
save_LDFLAGS=$LDFLAGS
10559
save_libdir=$libdir
10560
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10561
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10562
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563
/* end confdefs.h. */
10573
if ac_fn_c_try_link "$LINENO"; then :
10574
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10575
shlibpath_overrides_runpath=yes
10578
rm -f core conftest.err conftest.$ac_objext \
10579
conftest$ac_exeext conftest.$ac_ext
10580
LDFLAGS=$save_LDFLAGS
10581
libdir=$save_libdir
10583
# This implies no fast_install, which is unacceptable.
10584
# Some rework will be needed to allow for fast_install
10585
# before this can be enabled.
10586
hardcode_into_libs=yes
10588
# Append ld.so.conf contents to the search path
10589
if test -f /etc/ld.so.conf; then
10590
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' ' '`
10591
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10594
# We used to test for /lib/ld.so.1 and disable shared libraries on
10595
# powerpc, because MkLinux only supported shared libraries with the
10596
# GNU dynamic linker. Since this was broken with cross compilers,
10597
# most powerpc-linux boxes support dynamic linking these days and
10598
# people can always --disable-shared, the test was removed, and we
10599
# assume the GNU/Linux dynamic linker is in use.
10600
dynamic_linker='GNU/Linux ld.so'
10607
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10608
soname_spec='${libname}${release}${shared_ext}$major'
10609
shlibpath_var=LD_LIBRARY_PATH
10610
shlibpath_overrides_runpath=no
10611
hardcode_into_libs=yes
10612
dynamic_linker='NetBSD ld.elf_so'
10619
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10620
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10621
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10622
dynamic_linker='NetBSD (a.out) ld.so'
10624
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10625
soname_spec='${libname}${release}${shared_ext}$major'
10626
dynamic_linker='NetBSD ld.elf_so'
10628
shlibpath_var=LD_LIBRARY_PATH
10629
shlibpath_overrides_runpath=yes
10630
hardcode_into_libs=yes
10635
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636
shlibpath_var=LD_LIBRARY_PATH
10637
shlibpath_overrides_runpath=yes
10644
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645
soname_spec='${libname}${release}${shared_ext}$major'
10646
shlibpath_var=LD_LIBRARY_PATH
10647
shlibpath_overrides_runpath=no
10648
hardcode_into_libs=yes
10649
dynamic_linker='ldqnx.so'
10654
sys_lib_dlsearch_path_spec="/usr/lib"
10656
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10658
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10659
*) need_version=no ;;
10661
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10662
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10663
shlibpath_var=LD_LIBRARY_PATH
10664
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10666
openbsd2.[89] | openbsd2.[89].*)
10667
shlibpath_overrides_runpath=no
10670
shlibpath_overrides_runpath=yes
10674
shlibpath_overrides_runpath=yes
10679
libname_spec='$name'
10682
library_names_spec='$libname${shared_ext} $libname.a'
10683
dynamic_linker='OS/2 ld.exe'
10684
shlibpath_var=LIBPATH
10687
osf3* | osf4* | osf5*)
10691
soname_spec='${libname}${release}${shared_ext}$major'
10692
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693
shlibpath_var=LD_LIBRARY_PATH
10694
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10695
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10706
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707
soname_spec='${libname}${release}${shared_ext}$major'
10708
shlibpath_var=LD_LIBRARY_PATH
10709
shlibpath_overrides_runpath=yes
10710
hardcode_into_libs=yes
10711
# ldd complains unless libraries are executable
10712
postinstall_cmds='chmod +x $lib'
10717
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10718
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10719
shlibpath_var=LD_LIBRARY_PATH
10720
shlibpath_overrides_runpath=yes
10721
if test "$with_gnu_ld" = yes; then
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
case $host_vendor in
10734
shlibpath_overrides_runpath=no
10736
runpath_var=LD_RUN_PATH
10744
shlibpath_overrides_runpath=no
10745
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10751
if test -d /usr/nec ;then
10753
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10754
soname_spec='$libname${shared_ext}.$major'
10755
shlibpath_var=LD_LIBRARY_PATH
10759
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10760
version_type=freebsd-elf
10763
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10764
soname_spec='${libname}${release}${shared_ext}$major'
10765
shlibpath_var=LD_LIBRARY_PATH
10766
shlibpath_overrides_runpath=yes
10767
hardcode_into_libs=yes
10768
if test "$with_gnu_ld" = yes; then
10769
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10771
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10774
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10778
sys_lib_dlsearch_path_spec='/usr/lib'
10782
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10786
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787
shlibpath_var=LD_LIBRARY_PATH
10788
shlibpath_overrides_runpath=no
10789
hardcode_into_libs=yes
10794
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795
soname_spec='${libname}${release}${shared_ext}$major'
10796
shlibpath_var=LD_LIBRARY_PATH
10803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10804
$as_echo "$dynamic_linker" >&6; }
10805
test "$dynamic_linker" = no && can_build_shared=no
10807
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10808
if test "$GCC" = yes; then
10809
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10812
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10813
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10815
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10816
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10905
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10906
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10908
if test -n "$hardcode_libdir_flag_spec" ||
10909
test -n "$runpath_var" ||
10910
test "X$hardcode_automatic" = "Xyes" ; then
10912
# We can hardcode non-existent directories.
10913
if test "$hardcode_direct" != no &&
10914
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10915
# have to relink, otherwise we might link with an installed library
10916
# when we should be linking with a yet-to-be-installed one
10917
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10918
test "$hardcode_minus_L" != no; then
10919
# Linking always hardcodes the temporary library directory.
10920
hardcode_action=relink
10922
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10923
hardcode_action=immediate
10926
# We cannot hardcode anything, or else we can only hardcode existing
10928
hardcode_action=unsupported
10930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10931
$as_echo "$hardcode_action" >&6; }
10933
if test "$hardcode_action" = relink ||
10934
test "$inherit_rpath" = yes; then
10935
# Fast installation is not supported
10936
enable_fast_install=no
10937
elif test "$shlibpath_overrides_runpath" = yes ||
10938
test "$enable_shared" = no; then
10939
# Fast installation is not necessary
10940
enable_fast_install=needless
10948
if test "x$enable_dlopen" != xyes; then
10949
enable_dlopen=unknown
10950
enable_dlopen_self=unknown
10951
enable_dlopen_self_static=unknown
10958
lt_cv_dlopen="load_add_on"
10960
lt_cv_dlopen_self=yes
10963
mingw* | pw32* | cegcc*)
10964
lt_cv_dlopen="LoadLibrary"
10969
lt_cv_dlopen="dlopen"
10974
# if libdl is installed we need to link against it
10975
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10976
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10977
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10978
$as_echo_n "(cached) " >&6
10980
ac_check_lib_save_LIBS=$LIBS
10982
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983
/* end confdefs.h. */
10985
/* Override any GCC internal prototype to avoid an error.
10986
Use char because int might match the return type of a GCC
10987
builtin and then its argument prototype would still apply. */
11000
if ac_fn_c_try_link "$LINENO"; then :
11001
ac_cv_lib_dl_dlopen=yes
11003
ac_cv_lib_dl_dlopen=no
11005
rm -f core conftest.err conftest.$ac_objext \
11006
conftest$ac_exeext conftest.$ac_ext
11007
LIBS=$ac_check_lib_save_LIBS
11009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11010
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11011
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11012
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11015
lt_cv_dlopen="dyld"
11017
lt_cv_dlopen_self=yes
11024
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11025
if test "x$ac_cv_func_shl_load" = x""yes; then :
11026
lt_cv_dlopen="shl_load"
11028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11029
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11030
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11031
$as_echo_n "(cached) " >&6
11033
ac_check_lib_save_LIBS=$LIBS
11035
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036
/* end confdefs.h. */
11038
/* Override any GCC internal prototype to avoid an error.
11039
Use char because int might match the return type of a GCC
11040
builtin and then its argument prototype would still apply. */
11048
return shl_load ();
11053
if ac_fn_c_try_link "$LINENO"; then :
11054
ac_cv_lib_dld_shl_load=yes
11056
ac_cv_lib_dld_shl_load=no
11058
rm -f core conftest.err conftest.$ac_objext \
11059
conftest$ac_exeext conftest.$ac_ext
11060
LIBS=$ac_check_lib_save_LIBS
11062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11063
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11064
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11065
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11067
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11068
if test "x$ac_cv_func_dlopen" = x""yes; then :
11069
lt_cv_dlopen="dlopen"
11071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11072
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11073
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11074
$as_echo_n "(cached) " >&6
11076
ac_check_lib_save_LIBS=$LIBS
11078
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079
/* end confdefs.h. */
11081
/* Override any GCC internal prototype to avoid an error.
11082
Use char because int might match the return type of a GCC
11083
builtin and then its argument prototype would still apply. */
11096
if ac_fn_c_try_link "$LINENO"; then :
11097
ac_cv_lib_dl_dlopen=yes
11099
ac_cv_lib_dl_dlopen=no
11101
rm -f core conftest.err conftest.$ac_objext \
11102
conftest$ac_exeext conftest.$ac_ext
11103
LIBS=$ac_check_lib_save_LIBS
11105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11106
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11107
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11108
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11110
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11111
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11112
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11113
$as_echo_n "(cached) " >&6
11115
ac_check_lib_save_LIBS=$LIBS
11116
LIBS="-lsvld $LIBS"
11117
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118
/* end confdefs.h. */
11120
/* Override any GCC internal prototype to avoid an error.
11121
Use char because int might match the return type of a GCC
11122
builtin and then its argument prototype would still apply. */
11135
if ac_fn_c_try_link "$LINENO"; then :
11136
ac_cv_lib_svld_dlopen=yes
11138
ac_cv_lib_svld_dlopen=no
11140
rm -f core conftest.err conftest.$ac_objext \
11141
conftest$ac_exeext conftest.$ac_ext
11142
LIBS=$ac_check_lib_save_LIBS
11144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11145
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11146
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11147
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11149
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11150
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11151
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11152
$as_echo_n "(cached) " >&6
11154
ac_check_lib_save_LIBS=$LIBS
11156
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157
/* end confdefs.h. */
11159
/* Override any GCC internal prototype to avoid an error.
11160
Use char because int might match the return type of a GCC
11161
builtin and then its argument prototype would still apply. */
11169
return dld_link ();
11174
if ac_fn_c_try_link "$LINENO"; then :
11175
ac_cv_lib_dld_dld_link=yes
11177
ac_cv_lib_dld_dld_link=no
11179
rm -f core conftest.err conftest.$ac_objext \
11180
conftest$ac_exeext conftest.$ac_ext
11181
LIBS=$ac_check_lib_save_LIBS
11183
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11184
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11185
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11186
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11207
if test "x$lt_cv_dlopen" != xno; then
11213
case $lt_cv_dlopen in
11215
save_CPPFLAGS="$CPPFLAGS"
11216
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11218
save_LDFLAGS="$LDFLAGS"
11219
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11222
LIBS="$lt_cv_dlopen_libs $LIBS"
11224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11225
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11226
if test "${lt_cv_dlopen_self+set}" = set; then :
11227
$as_echo_n "(cached) " >&6
11229
if test "$cross_compiling" = yes; then :
11230
lt_cv_dlopen_self=cross
11232
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11233
lt_status=$lt_dlunknown
11234
cat > conftest.$ac_ext <<_LT_EOF
11235
#line 11235 "configure"
11236
#include "confdefs.h"
11245
# define LT_DLGLOBAL RTLD_GLOBAL
11248
# define LT_DLGLOBAL DL_GLOBAL
11250
# define LT_DLGLOBAL 0
11254
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11255
find out it does not work in some platform. */
11256
#ifndef LT_DLLAZY_OR_NOW
11258
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11261
# define LT_DLLAZY_OR_NOW DL_LAZY
11264
# define LT_DLLAZY_OR_NOW RTLD_NOW
11267
# define LT_DLLAZY_OR_NOW DL_NOW
11269
# define LT_DLLAZY_OR_NOW 0
11276
void fnord() { int i=42;}
11279
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11280
int status = $lt_dlunknown;
11284
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11285
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11286
/* dlclose (self); */
11294
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11295
(eval $ac_link) 2>&5
11297
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11298
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11299
(./conftest; exit; ) >&5 2>/dev/null
11301
case x$lt_status in
11302
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11303
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11304
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11307
# compilation failed
11308
lt_cv_dlopen_self=no
11315
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11316
$as_echo "$lt_cv_dlopen_self" >&6; }
11318
if test "x$lt_cv_dlopen_self" = xyes; then
11319
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11321
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11322
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11323
$as_echo_n "(cached) " >&6
11325
if test "$cross_compiling" = yes; then :
11326
lt_cv_dlopen_self_static=cross
11328
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11329
lt_status=$lt_dlunknown
11330
cat > conftest.$ac_ext <<_LT_EOF
11331
#line 11331 "configure"
11332
#include "confdefs.h"
11341
# define LT_DLGLOBAL RTLD_GLOBAL
11344
# define LT_DLGLOBAL DL_GLOBAL
11346
# define LT_DLGLOBAL 0
11350
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11351
find out it does not work in some platform. */
11352
#ifndef LT_DLLAZY_OR_NOW
11354
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11357
# define LT_DLLAZY_OR_NOW DL_LAZY
11360
# define LT_DLLAZY_OR_NOW RTLD_NOW
11363
# define LT_DLLAZY_OR_NOW DL_NOW
11365
# define LT_DLLAZY_OR_NOW 0
11372
void fnord() { int i=42;}
11375
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11376
int status = $lt_dlunknown;
11380
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11381
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11382
/* dlclose (self); */
11390
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11391
(eval $ac_link) 2>&5
11393
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11394
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11395
(./conftest; exit; ) >&5 2>/dev/null
11397
case x$lt_status in
11398
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11399
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11400
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11403
# compilation failed
11404
lt_cv_dlopen_self_static=no
11411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11412
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11415
CPPFLAGS="$save_CPPFLAGS"
11416
LDFLAGS="$save_LDFLAGS"
11421
case $lt_cv_dlopen_self in
11422
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11423
*) enable_dlopen_self=unknown ;;
11426
case $lt_cv_dlopen_self_static in
11427
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11428
*) enable_dlopen_self_static=unknown ;;
11450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11451
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11452
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11453
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11454
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11456
$as_echo "yes" >&6; }
11458
# FIXME - insert some real tests, host_os isn't really good enough
11461
if test -n "$STRIP" ; then
11462
striplib="$STRIP -x"
11463
old_striplib="$STRIP -S"
11464
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11465
$as_echo "yes" >&6; }
11467
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468
$as_echo "no" >&6; }
11472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473
$as_echo "no" >&6; }
11489
# Report which library types will actually be built
11490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11491
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11492
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11493
$as_echo "$can_build_shared" >&6; }
11495
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11496
$as_echo_n "checking whether to build shared libraries... " >&6; }
11497
test "$can_build_shared" = "no" && enable_shared=no
11499
# On AIX, shared libraries and static libraries use the same namespace, and
11500
# are all built from PIC.
11503
test "$enable_shared" = yes && enable_static=no
11504
if test -n "$RANLIB"; then
11505
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11506
postinstall_cmds='$RANLIB $lib'
11511
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11512
test "$enable_shared" = yes && enable_static=no
11516
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11517
$as_echo "$enable_shared" >&6; }
11519
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11520
$as_echo_n "checking whether to build static libraries... " >&6; }
11521
# Make sure either enable_shared or enable_static is yes.
11522
test "$enable_shared" = yes || enable_static=yes
11523
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11524
$as_echo "$enable_static" >&6; }
11531
ac_cpp='$CPP $CPPFLAGS'
11532
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11533
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11534
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11540
ac_cpp='$CXXCPP $CPPFLAGS'
11541
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11542
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11543
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11545
archive_cmds_need_lc_CXX=no
11546
allow_undefined_flag_CXX=
11547
always_export_symbols_CXX=no
11548
archive_expsym_cmds_CXX=
11549
compiler_needs_object_CXX=no
11550
export_dynamic_flag_spec_CXX=
11551
hardcode_direct_CXX=no
11552
hardcode_direct_absolute_CXX=no
11553
hardcode_libdir_flag_spec_CXX=
11554
hardcode_libdir_flag_spec_ld_CXX=
11555
hardcode_libdir_separator_CXX=
11556
hardcode_minus_L_CXX=no
11557
hardcode_shlibpath_var_CXX=unsupported
11558
hardcode_automatic_CXX=no
11559
inherit_rpath_CXX=no
11561
module_expsym_cmds_CXX=
11562
link_all_deplibs_CXX=unknown
11563
old_archive_cmds_CXX=$old_archive_cmds
11564
no_undefined_flag_CXX=
11565
whole_archive_flag_spec_CXX=
11566
enable_shared_with_static_runtimes_CXX=no
11568
# Source file extension for C++ test sources.
11571
# Object file extension for compiled C++ test sources.
11575
# No sense in running all these tests if we already determined that
11576
# the CXX compiler isn't working. Some variables (like enable_shared)
11577
# are currently assumed to apply to all compilers on this platform,
11578
# and will be corrupted by setting them based on a non-working compiler.
11579
if test "$_lt_caught_CXX_error" != yes; then
11580
# Code to be used in simple compile tests
11581
lt_simple_compile_test_code="int some_variable = 0;"
11583
# Code to be used in simple link tests
11584
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11586
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11593
# If no C compiler was specified, use CC.
11596
# If no C compiler flags were specified, use CFLAGS.
11597
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11599
# Allow CC to be a program name with arguments.
11603
# save warnings/boilerplate of simple test code
11604
ac_outfile=conftest.$ac_objext
11605
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11606
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11607
_lt_compiler_boilerplate=`cat conftest.err`
11610
ac_outfile=conftest.$ac_objext
11611
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11612
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11613
_lt_linker_boilerplate=`cat conftest.err`
11617
# Allow CC to be a program name with arguments.
11622
lt_save_with_gnu_ld=$with_gnu_ld
11623
lt_save_path_LD=$lt_cv_path_LD
11624
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11625
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11627
$as_unset lt_cv_prog_gnu_ld
11629
if test -n "${lt_cv_path_LDCXX+set}"; then
11630
lt_cv_path_LD=$lt_cv_path_LDCXX
11632
$as_unset lt_cv_path_LD
11634
test -z "${LDCXX+set}" || LD=$LDCXX
11638
for cc_temp in $compiler""; do
11640
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11641
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11646
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11649
if test -n "$compiler"; then
11650
# We don't want -fno-exception when compiling C++ code, so set the
11651
# no_builtin_flag separately
11652
if test "$GXX" = yes; then
11653
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11655
lt_prog_compiler_no_builtin_flag_CXX=
11658
if test "$GXX" = yes; then
11659
# Set up default GNU C++ configuration
11663
# Check whether --with-gnu-ld was given.
11664
if test "${with_gnu_ld+set}" = set; then :
11665
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11671
if test "$GCC" = yes; then
11672
# Check if gcc -print-prog-name=ld gives a path.
11673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11674
$as_echo_n "checking for ld used by $CC... " >&6; }
11677
# gcc leaves a trailing carriage return which upsets mingw
11678
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11680
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11683
# Accept absolute paths.
11685
re_direlt='/[^/][^/]*/\.\./'
11686
# Canonicalize the pathname of ld
11687
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11688
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11689
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11691
test -z "$LD" && LD="$ac_prog"
11694
# If it fails, then pretend we aren't using GCC.
11698
# If it is relative, then search for the first ld in PATH.
11699
with_gnu_ld=unknown
11702
elif test "$with_gnu_ld" = yes; then
11703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11704
$as_echo_n "checking for GNU ld... " >&6; }
11706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11707
$as_echo_n "checking for non-GNU ld... " >&6; }
11709
if test "${lt_cv_path_LD+set}" = set; then :
11710
$as_echo_n "(cached) " >&6
11712
if test -z "$LD"; then
11713
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11714
for ac_dir in $PATH; do
11716
test -z "$ac_dir" && ac_dir=.
11717
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11718
lt_cv_path_LD="$ac_dir/$ac_prog"
11719
# Check to see if the program is GNU ld. I'd rather use --version,
11720
# but apparently some variants of GNU ld only accept -v.
11721
# Break only if it was the GNU/non-GNU ld that we prefer.
11722
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11723
*GNU* | *'with BFD'*)
11724
test "$with_gnu_ld" != no && break
11727
test "$with_gnu_ld" != yes && break
11734
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11738
LD="$lt_cv_path_LD"
11739
if test -n "$LD"; then
11740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11741
$as_echo "$LD" >&6; }
11743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744
$as_echo "no" >&6; }
11746
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11748
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11749
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11750
$as_echo_n "(cached) " >&6
11752
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11753
case `$LD -v 2>&1 </dev/null` in
11754
*GNU* | *'with BFD'*)
11755
lt_cv_prog_gnu_ld=yes
11758
lt_cv_prog_gnu_ld=no
11762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11763
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11764
with_gnu_ld=$lt_cv_prog_gnu_ld
11772
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11773
# archiving commands below assume that GNU ld is being used.
11774
if test "$with_gnu_ld" = yes; then
11775
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11776
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'
11778
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11779
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11781
# If archive_cmds runs LD, not CC, wlarc should be empty
11782
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11783
# investigate it a little bit more. (MM)
11786
# ancient GNU ld didn't support --whole-archive et. al.
11787
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11788
$GREP 'no-whole-archive' > /dev/null; then
11789
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11791
whole_archive_flag_spec_CXX=
11797
# A generic and very simple default shared library creation
11798
# command for GNU C++ for the case where it uses the native
11799
# linker, instead of GNU ld. If possible, this setting should
11800
# overridden to take advantage of the native linker features on
11801
# the platform it is being used on.
11802
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11805
# Commands to make compiler produce verbose output that lists
11806
# what "hidden" libraries, object files and flags are used when
11807
# linking a shared library.
11808
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11816
# PORTME: fill in a description of your system's C++ link characteristics
11817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11818
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11822
# FIXME: insert proper C++ library support
11826
if test "$host_cpu" = ia64; then
11827
# On IA64, the linker does run time linking by default, so we don't
11828
# have to do anything special.
11829
aix_use_runtimelinking=no
11830
exp_sym_flag='-Bexport'
11833
aix_use_runtimelinking=no
11835
# Test if we are trying to use run time linking or normal
11836
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11837
# need to do runtime linking.
11838
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11839
for ld_flag in $LDFLAGS; do
11842
aix_use_runtimelinking=yes
11850
exp_sym_flag='-bexport'
11851
no_entry_flag='-bnoentry'
11854
# When large executables or shared objects are built, AIX ld can
11855
# have problems creating the table of contents. If linking a library
11856
# or program results in "error TOC overflow" add -mminimal-toc to
11857
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11858
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11860
archive_cmds_CXX=''
11861
hardcode_direct_CXX=yes
11862
hardcode_direct_absolute_CXX=yes
11863
hardcode_libdir_separator_CXX=':'
11864
link_all_deplibs_CXX=yes
11865
file_list_spec_CXX='${wl}-f,'
11867
if test "$GXX" = yes; then
11868
case $host_os in aix4.[012]|aix4.[012].*)
11869
# We only want to do this on AIX 4.2 and lower, the check
11870
# below for broken collect2 doesn't work under 4.3+
11871
collect2name=`${CC} -print-prog-name=collect2`
11872
if test -f "$collect2name" &&
11873
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11875
# We have reworked collect2
11878
# We have old collect2
11879
hardcode_direct_CXX=unsupported
11880
# It fails to find uninstalled libraries when the uninstalled
11881
# path is not listed in the libpath. Setting hardcode_minus_L
11882
# to unsupported forces relinking
11883
hardcode_minus_L_CXX=yes
11884
hardcode_libdir_flag_spec_CXX='-L$libdir'
11885
hardcode_libdir_separator_CXX=
11888
shared_flag='-shared'
11889
if test "$aix_use_runtimelinking" = yes; then
11890
shared_flag="$shared_flag "'${wl}-G'
11894
if test "$host_cpu" = ia64; then
11895
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11896
# chokes on -Wl,-G. The following line is correct:
11899
if test "$aix_use_runtimelinking" = yes; then
11900
shared_flag='${wl}-G'
11902
shared_flag='${wl}-bM:SRE'
11907
export_dynamic_flag_spec_CXX='${wl}-bexpall'
11908
# It seems that -bexpall does not export symbols beginning with
11909
# underscore (_), so it is better to generate a list of symbols to
11911
always_export_symbols_CXX=yes
11912
if test "$aix_use_runtimelinking" = yes; then
11913
# Warning - without using the other runtime loading flags (-brtl),
11914
# -berok will link without error, but may produce a broken library.
11915
allow_undefined_flag_CXX='-berok'
11916
# Determine the default libpath from the value encoded in an empty
11918
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11919
/* end confdefs.h. */
11929
if ac_fn_cxx_try_link "$LINENO"; then :
11931
lt_aix_libpath_sed='
11932
/Import File Strings/,/^$/ {
11938
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11939
# Check for a 64-bit object if we didn't find anything.
11940
if test -z "$aix_libpath"; then
11941
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11944
rm -f core conftest.err conftest.$ac_objext \
11945
conftest$ac_exeext conftest.$ac_ext
11946
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11948
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11950
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"
11952
if test "$host_cpu" = ia64; then
11953
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11954
allow_undefined_flag_CXX="-z nodefs"
11955
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"
11957
# Determine the default libpath from the value encoded in an
11958
# empty executable.
11959
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960
/* end confdefs.h. */
11970
if ac_fn_cxx_try_link "$LINENO"; then :
11972
lt_aix_libpath_sed='
11973
/Import File Strings/,/^$/ {
11979
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11980
# Check for a 64-bit object if we didn't find anything.
11981
if test -z "$aix_libpath"; then
11982
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11985
rm -f core conftest.err conftest.$ac_objext \
11986
conftest$ac_exeext conftest.$ac_ext
11987
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11989
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11990
# Warning - without using the other run time loading flags,
11991
# -berok will link without error, but may produce a broken library.
11992
no_undefined_flag_CXX=' ${wl}-bernotok'
11993
allow_undefined_flag_CXX=' ${wl}-berok'
11994
# Exported symbols can be pulled into shared objects from archives
11995
whole_archive_flag_spec_CXX='$convenience'
11996
archive_cmds_need_lc_CXX=yes
11997
# This is similar to how AIX traditionally builds its shared
11999
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'
12005
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12006
allow_undefined_flag_CXX=unsupported
12007
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12008
# support --undefined. This deserves some investigation. FIXME
12009
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12016
case $cc_basename in
12018
# FIXME: insert proper C++ library support
12024
cygwin* | mingw* | pw32* | cegcc*)
12025
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12026
# as there is no search path for DLLs.
12027
hardcode_libdir_flag_spec_CXX='-L$libdir'
12028
allow_undefined_flag_CXX=unsupported
12029
always_export_symbols_CXX=no
12030
enable_shared_with_static_runtimes_CXX=yes
12032
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12033
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'
12034
# If the export-symbols file already is a .def file (1st line
12035
# is EXPORTS), use it as is; otherwise, prepend...
12036
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12037
cp $export_symbols $output_objdir/$soname.def;
12039
echo EXPORTS > $output_objdir/$soname.def;
12040
cat $export_symbols >> $output_objdir/$soname.def;
12042
$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'
12047
darwin* | rhapsody*)
12050
archive_cmds_need_lc_CXX=no
12051
hardcode_direct_CXX=no
12052
hardcode_automatic_CXX=yes
12053
hardcode_shlibpath_var_CXX=unsupported
12054
whole_archive_flag_spec_CXX=''
12055
link_all_deplibs_CXX=yes
12056
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12057
case $cc_basename in
12058
ifort*) _lt_dar_can_shared=yes ;;
12059
*) _lt_dar_can_shared=$GCC ;;
12061
if test "$_lt_dar_can_shared" = "yes"; then
12062
output_verbose_link_cmd=echo
12063
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}"
12064
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12065
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}"
12066
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}"
12067
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12068
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}"
12069
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}"
12079
case $cc_basename in
12081
# FIXME: insert proper C++ library support
12085
# Green Hills C++ Compiler
12086
# FIXME: insert proper C++ library support
12090
# FIXME: insert proper C++ library support
12097
# C++ shared libraries reported to be fairly broken before
12103
archive_cmds_need_lc_CXX=no
12106
freebsd* | dragonfly*)
12107
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12116
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12117
hardcode_libdir_separator_CXX=:
12118
export_dynamic_flag_spec_CXX='${wl}-E'
12119
hardcode_direct_CXX=yes
12120
hardcode_minus_L_CXX=yes # Not in the search PATH,
12121
# but as the default
12122
# location of the library.
12124
case $cc_basename in
12126
# FIXME: insert proper C++ library support
12130
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'
12131
# Commands to make compiler produce verbose output that lists
12132
# what "hidden" libraries, object files and flags are used when
12133
# linking a shared library.
12135
# There doesn't appear to be a way to prevent this compiler from
12136
# explicitly linking system object files so we need to strip them
12137
# from the output so that they don't get included in the library
12139
output_verbose_link_cmd='templist=`($CC -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'
12142
if test "$GXX" = yes; then
12143
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'
12145
# FIXME: insert proper C++ library support
12153
if test $with_gnu_ld = no; then
12154
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12155
hardcode_libdir_separator_CXX=:
12161
export_dynamic_flag_spec_CXX='${wl}-E'
12167
hardcode_direct_CXX=no
12168
hardcode_shlibpath_var_CXX=no
12171
hardcode_direct_CXX=yes
12172
hardcode_direct_absolute_CXX=yes
12173
hardcode_minus_L_CXX=yes # Not in the search PATH,
12174
# but as the default
12175
# location of the library.
12179
case $cc_basename in
12181
# FIXME: insert proper C++ library support
12187
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12190
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12193
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12196
# Commands to make compiler produce verbose output that lists
12197
# what "hidden" libraries, object files and flags are used when
12198
# linking a shared library.
12200
# There doesn't appear to be a way to prevent this compiler from
12201
# explicitly linking system object files so we need to strip them
12202
# from the output so that they don't get included in the library
12204
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'
12207
if test "$GXX" = yes; then
12208
if test $with_gnu_ld = no; then
12211
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12214
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12217
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'
12222
# FIXME: insert proper C++ library support
12230
hardcode_direct_CXX=no
12231
hardcode_shlibpath_var_CXX=no
12232
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12233
export_dynamic_flag_spec_CXX='${wl}-E'
12234
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12235
# Instead, shared libraries are loaded at an image base (0x10000000 by
12236
# default) and relocated if they conflict, which is a slow very memory
12237
# consuming and fragmenting process. To avoid this, we pick a random,
12238
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12239
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12240
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'
12241
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'
12244
case $cc_basename in
12247
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'
12249
# Archives containing C++ object files must be created using
12250
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12251
# necessary to make sure instantiated templates are included
12253
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12256
if test "$GXX" = yes; then
12257
if test "$with_gnu_ld" = no; then
12258
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'
12260
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'
12263
link_all_deplibs_CXX=yes
12266
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12267
hardcode_libdir_separator_CXX=:
12268
inherit_rpath_CXX=yes
12271
linux* | k*bsd*-gnu | kopensolaris*-gnu)
12272
case $cc_basename in
12274
# Kuck and Associates, Inc. (KAI) C++ Compiler
12276
# KCC will only create a shared library if the output file
12277
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12278
# to its proper name (with version) after linking.
12279
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'
12280
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'
12281
# Commands to make compiler produce verbose output that lists
12282
# what "hidden" libraries, object files and flags are used when
12283
# linking a shared library.
12285
# There doesn't appear to be a way to prevent this compiler from
12286
# explicitly linking system object files so we need to strip them
12287
# from the output so that they don't get included in the library
12289
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'
12291
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12292
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12294
# Archives containing C++ object files must be created using
12295
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12296
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12301
# version 8.0 and above of icpc choke on multiply defined symbols
12302
# if we add $predep_objects and $postdep_objects, however 7.1 and
12303
# earlier do not add the objects themselves.
12304
case `$CC -V 2>&1` in
12306
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12307
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'
12309
*) # Version 8.0 or newer
12312
ia64*) tmp_idyn=' -i_dynamic';;
12314
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12315
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'
12318
archive_cmds_need_lc_CXX=no
12319
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12320
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12321
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12324
# Portland Group C++ compiler
12326
*pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12327
prelink_cmds_CXX='tpldir=Template.dir~
12329
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12330
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12331
old_archive_cmds_CXX='tpldir=Template.dir~
12333
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12334
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12336
archive_cmds_CXX='tpldir=Template.dir~
12338
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12339
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12340
archive_expsym_cmds_CXX='tpldir=Template.dir~
12342
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12343
$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'
12345
*) # Version 6 will use weak symbols
12346
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12347
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'
12351
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12352
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12353
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'
12357
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12358
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'
12360
runpath_var=LD_RUN_PATH
12361
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12362
hardcode_libdir_separator_CXX=:
12364
# Commands to make compiler produce verbose output that lists
12365
# what "hidden" libraries, object files and flags are used when
12366
# linking a shared library.
12368
# There doesn't appear to be a way to prevent this compiler from
12369
# explicitly linking system object files so we need to strip them
12370
# from the output so that they don't get included in the library
12372
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'
12375
# IBM XL 8.0 on PPC, with GNU ld
12376
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12377
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12378
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12379
if test "x$supports_anon_versioning" = xyes; then
12380
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12381
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12382
echo "local: *; };" >> $output_objdir/$libname.ver~
12383
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12387
case `$CC -V 2>&1 | sed 5q` in
12390
no_undefined_flag_CXX=' -zdefs'
12391
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12392
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'
12393
hardcode_libdir_flag_spec_CXX='-R$libdir'
12394
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'
12395
compiler_needs_object_CXX=yes
12397
# Not sure whether something based on
12398
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12400
output_verbose_link_cmd='echo'
12402
# Archives containing C++ object files must be created using
12403
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12404
# necessary to make sure instantiated templates are included
12406
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12414
# FIXME: insert proper C++ library support
12419
# FIXME: insert proper C++ library support
12424
case $cc_basename in
12426
# FIXME: insert proper C++ library support
12430
# FIXME: insert proper C++ library support
12437
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12438
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12440
hardcode_libdir_flag_spec_CXX='-R$libdir'
12441
hardcode_direct_CXX=yes
12442
hardcode_shlibpath_var_CXX=no
12444
# Workaround some broken pre-1.5 toolchains
12445
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12453
# C++ shared libraries are fairly broken
12458
if test -f /usr/libexec/ld.so; then
12459
hardcode_direct_CXX=yes
12460
hardcode_shlibpath_var_CXX=no
12461
hardcode_direct_absolute_CXX=yes
12462
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12463
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12464
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12465
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12466
export_dynamic_flag_spec_CXX='${wl}-E'
12467
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12469
output_verbose_link_cmd=echo
12475
osf3* | osf4* | osf5*)
12476
case $cc_basename in
12478
# Kuck and Associates, Inc. (KAI) C++ Compiler
12480
# KCC will only create a shared library if the output file
12481
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12482
# to its proper name (with version) after linking.
12483
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'
12485
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12486
hardcode_libdir_separator_CXX=:
12488
# Archives containing C++ object files must be created using
12489
# the KAI C++ compiler.
12491
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12492
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12496
# Rational C++ 2.4.1
12497
# FIXME: insert proper C++ library support
12503
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12504
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'
12505
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12508
allow_undefined_flag_CXX=' -expect_unresolved \*'
12509
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'
12510
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12511
echo "-hidden">> $lib.exp~
12512
$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~
12514
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12518
hardcode_libdir_separator_CXX=:
12520
# Commands to make compiler produce verbose output that lists
12521
# what "hidden" libraries, object files and flags are used when
12522
# linking a shared library.
12524
# There doesn't appear to be a way to prevent this compiler from
12525
# explicitly linking system object files so we need to strip them
12526
# from the output so that they don't get included in the library
12528
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'
12531
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12532
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12535
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'
12538
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'
12542
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12543
hardcode_libdir_separator_CXX=:
12545
# Commands to make compiler produce verbose output that lists
12546
# what "hidden" libraries, object files and flags are used when
12547
# linking a shared library.
12548
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12551
# FIXME: insert proper C++ library support
12559
# FIXME: insert proper C++ library support
12564
case $cc_basename in
12567
# FIXME: insert proper C++ library support
12572
# FIXME: insert proper C++ library support
12576
# FIXME: insert proper C++ library support
12583
case $cc_basename in
12585
# Sun C++ 4.2, 5.x and Centerline C++
12586
archive_cmds_need_lc_CXX=yes
12587
no_undefined_flag_CXX=' -zdefs'
12588
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12589
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12590
$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'
12592
hardcode_libdir_flag_spec_CXX='-R$libdir'
12593
hardcode_shlibpath_var_CXX=no
12595
solaris2.[0-5] | solaris2.[0-5].*) ;;
12597
# The compiler driver will combine and reorder linker options,
12598
# but understands `-z linker_flag'.
12599
# Supported since Solaris 2.6 (maybe 2.5.1?)
12600
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12603
link_all_deplibs_CXX=yes
12605
output_verbose_link_cmd='echo'
12607
# Archives containing C++ object files must be created using
12608
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12609
# necessary to make sure instantiated templates are included
12611
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12614
# Green Hills C++ Compiler
12615
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12617
# The C++ compiler must be used to create the archive.
12618
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12621
# GNU C++ compiler with Solaris linker
12622
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12623
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12624
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12625
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12626
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12627
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12629
# Commands to make compiler produce verbose output that lists
12630
# what "hidden" libraries, object files and flags are used when
12631
# linking a shared library.
12632
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12634
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12636
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12637
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12638
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12640
# Commands to make compiler produce verbose output that lists
12641
# what "hidden" libraries, object files and flags are used when
12642
# linking a shared library.
12643
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12646
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12648
solaris2.[0-5] | solaris2.[0-5].*) ;;
12650
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12658
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12659
no_undefined_flag_CXX='${wl}-z,text'
12660
archive_cmds_need_lc_CXX=no
12661
hardcode_shlibpath_var_CXX=no
12662
runpath_var='LD_RUN_PATH'
12664
case $cc_basename in
12666
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12667
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12670
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12671
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12676
sysv5* | sco3.2v5* | sco5v6*)
12677
# Note: We can NOT use -z defs as we might desire, because we do not
12678
# link with -lc, and that would cause any symbols used from libc to
12679
# always be unresolved, which means just about no library would
12680
# ever link correctly. If we're not using GNU ld we use -z text
12681
# though, which does catch some bad symbols but isn't as heavy-handed
12683
no_undefined_flag_CXX='${wl}-z,text'
12684
allow_undefined_flag_CXX='${wl}-z,nodefs'
12685
archive_cmds_need_lc_CXX=no
12686
hardcode_shlibpath_var_CXX=no
12687
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12688
hardcode_libdir_separator_CXX=':'
12689
link_all_deplibs_CXX=yes
12690
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12691
runpath_var='LD_RUN_PATH'
12693
case $cc_basename in
12695
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12696
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12699
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12700
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12706
case $cc_basename in
12708
# NonStop-UX NCC 3.20
12709
# FIXME: insert proper C++ library support
12713
# FIXME: insert proper C++ library support
12720
# FIXME: insert proper C++ library support
12725
# FIXME: insert proper C++ library support
12730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12731
$as_echo "$ld_shlibs_CXX" >&6; }
12732
test "$ld_shlibs_CXX" = no && can_build_shared=no
12738
## There is no encapsulation within the following macros, do not change
12739
## the running order or otherwise move them around unless you know exactly
12740
## what you are doing...
12741
# Dependencies to place before and after the object being linked:
12742
predep_objects_CXX=
12743
postdep_objects_CXX=
12746
compiler_lib_search_path_CXX=
12748
cat > conftest.$ac_ext <<_LT_EOF
12752
Foo (void) { a = 0; }
12758
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12759
(eval $ac_compile) 2>&5
12761
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12762
test $ac_status = 0; }; then
12763
# Parse the compiler output and extract the necessary
12764
# objects, libraries and library flags.
12766
# Sentinel used to keep track of whether or not we are before
12767
# the conftest object file.
12768
pre_test_object_deps_done=no
12770
for p in `eval "$output_verbose_link_cmd"`; do
12774
# Some compilers place space between "-{L,R}" and the path.
12775
# Remove the space.
12776
if test $p = "-L" ||
12777
test $p = "-R"; then
12784
if test "$pre_test_object_deps_done" = no; then
12787
# Internal compiler library paths should come after those
12788
# provided the user. The postdeps already come after the
12789
# user supplied libs so there is no need to process them.
12790
if test -z "$compiler_lib_search_path_CXX"; then
12791
compiler_lib_search_path_CXX="${prev}${p}"
12793
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12796
# The "-l" case would never come before the object being
12797
# linked, so don't bother handling this case.
12800
if test -z "$postdeps_CXX"; then
12801
postdeps_CXX="${prev}${p}"
12803
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12809
# This assumes that the test object file only shows up
12810
# once in the compiler output.
12811
if test "$p" = "conftest.$objext"; then
12812
pre_test_object_deps_done=yes
12816
if test "$pre_test_object_deps_done" = no; then
12817
if test -z "$predep_objects_CXX"; then
12818
predep_objects_CXX="$p"
12820
predep_objects_CXX="$predep_objects_CXX $p"
12823
if test -z "$postdep_objects_CXX"; then
12824
postdep_objects_CXX="$p"
12826
postdep_objects_CXX="$postdep_objects_CXX $p"
12831
*) ;; # Ignore the rest.
12839
echo "libtool.m4: error: problem compiling CXX test program"
12842
$RM -f confest.$objext
12844
# PORTME: override above test on systems where it is broken
12847
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12848
# hack all around it, let's just trust "g++" to DTRT.
12849
predep_objects_CXX=
12850
postdep_objects_CXX=
12855
case `$CC -V 2>&1 | sed 5q` in
12859
# The more standards-conforming stlport4 library is
12860
# incompatible with the Cstd library. Avoid specifying
12861
# it if it's in CXXFLAGS. Ignore libCrun as
12862
# -library=stlport4 depends on it.
12863
case " $CXX $CXXFLAGS " in
12864
*" -library=stlport4 "*)
12865
solaris_use_stlport4=yes
12869
if test "$solaris_use_stlport4" != yes; then
12870
postdeps_CXX='-library=Cstd -library=Crun'
12877
case $cc_basename in
12879
# The more standards-conforming stlport4 library is
12880
# incompatible with the Cstd library. Avoid specifying
12881
# it if it's in CXXFLAGS. Ignore libCrun as
12882
# -library=stlport4 depends on it.
12883
case " $CXX $CXXFLAGS " in
12884
*" -library=stlport4 "*)
12885
solaris_use_stlport4=yes
12889
# Adding this requires a known-good setup of shared libraries for
12890
# Sun compiler versions before 5.6, else PIC objects from an old
12891
# archive will be linked into the output, leading to subtle bugs.
12892
if test "$solaris_use_stlport4" != yes; then
12893
postdeps_CXX='-library=Cstd -library=Crun'
12901
case " $postdeps_CXX " in
12902
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12904
compiler_lib_search_dirs_CXX=
12905
if test -n "${compiler_lib_search_path_CXX}"; then
12906
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12939
lt_prog_compiler_wl_CXX=
12940
lt_prog_compiler_pic_CXX=
12941
lt_prog_compiler_static_CXX=
12943
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12944
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12946
# C++ specific cases for pic, static, wl, etc.
12947
if test "$GXX" = yes; then
12948
lt_prog_compiler_wl_CXX='-Wl,'
12949
lt_prog_compiler_static_CXX='-static'
12953
# All AIX code is PIC.
12954
if test "$host_cpu" = ia64; then
12955
# AIX 5 now supports IA64 processor
12956
lt_prog_compiler_static_CXX='-Bstatic'
12963
# see comment about AmigaOS4 .so support
12964
lt_prog_compiler_pic_CXX='-fPIC'
12967
# FIXME: we need at least 68020 code to build shared libraries, but
12968
# adding the `-m68020' flag to GCC prevents building anything better,
12970
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12975
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12976
# PIC is the default for these OSes.
12978
mingw* | cygwin* | os2* | pw32* | cegcc*)
12979
# This hack is so that the source file can tell whether it is being
12980
# built for inclusion in a dll (and should export symbols for example).
12981
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12982
# (--disable-auto-import) libraries
12983
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12985
darwin* | rhapsody*)
12986
# PIC is the default on this platform
12987
# Common symbols not allowed in MH_DYLIB files
12988
lt_prog_compiler_pic_CXX='-fno-common'
12991
# DJGPP does not support shared libraries at all
12992
lt_prog_compiler_pic_CXX=
12995
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12996
# Instead, we relocate shared libraries at runtime.
12999
if test -d /usr/nec; then
13000
lt_prog_compiler_pic_CXX=-Kconform_pic
13004
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13005
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13006
# sets the default TLS model and affects inlining.
13011
lt_prog_compiler_pic_CXX='-fPIC'
13016
# QNX uses GNU C++, but need to define -shared option too, otherwise
13017
# it will coredump.
13018
lt_prog_compiler_pic_CXX='-fPIC -shared'
13021
lt_prog_compiler_pic_CXX='-fPIC'
13027
# All AIX code is PIC.
13028
if test "$host_cpu" = ia64; then
13029
# AIX 5 now supports IA64 processor
13030
lt_prog_compiler_static_CXX='-Bstatic'
13032
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13036
case $cc_basename in
13038
# Green Hills C++ Compiler
13039
# _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"
13044
case $cc_basename in
13046
lt_prog_compiler_pic_CXX='-KPIC'
13049
# Green Hills C++ Compiler
13050
lt_prog_compiler_pic_CXX='-pic'
13056
freebsd* | dragonfly*)
13057
# FreeBSD uses GNU C++
13059
hpux9* | hpux10* | hpux11*)
13060
case $cc_basename in
13062
lt_prog_compiler_wl_CXX='-Wl,'
13063
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13064
if test "$host_cpu" != ia64; then
13065
lt_prog_compiler_pic_CXX='+Z'
13069
lt_prog_compiler_wl_CXX='-Wl,'
13070
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13076
lt_prog_compiler_pic_CXX='+Z'
13085
# This is c89, which is MS Visual C++ (no shared libs)
13086
# Anyone wants to do a port?
13088
irix5* | irix6* | nonstopux*)
13089
case $cc_basename in
13091
lt_prog_compiler_wl_CXX='-Wl,'
13092
lt_prog_compiler_static_CXX='-non_shared'
13093
# CC pic flag -KPIC is the default.
13099
linux* | k*bsd*-gnu | kopensolaris*-gnu)
13100
case $cc_basename in
13103
lt_prog_compiler_wl_CXX='--backend -Wl,'
13104
lt_prog_compiler_pic_CXX='-fPIC'
13107
# old Intel C++ for x86_64 which still supported -KPIC.
13108
lt_prog_compiler_wl_CXX='-Wl,'
13109
lt_prog_compiler_pic_CXX='-KPIC'
13110
lt_prog_compiler_static_CXX='-static'
13113
# Intel C++, used to be incompatible with GCC.
13114
# ICC 10 doesn't accept -KPIC any more.
13115
lt_prog_compiler_wl_CXX='-Wl,'
13116
lt_prog_compiler_pic_CXX='-fPIC'
13117
lt_prog_compiler_static_CXX='-static'
13120
# Portland Group C++ compiler
13121
lt_prog_compiler_wl_CXX='-Wl,'
13122
lt_prog_compiler_pic_CXX='-fpic'
13123
lt_prog_compiler_static_CXX='-Bstatic'
13127
# Make sure the PIC flag is empty. It appears that all Alpha
13128
# Linux and Compaq Tru64 Unix objects are PIC.
13129
lt_prog_compiler_pic_CXX=
13130
lt_prog_compiler_static_CXX='-non_shared'
13133
# IBM XL 8.0 on PPC
13134
lt_prog_compiler_wl_CXX='-Wl,'
13135
lt_prog_compiler_pic_CXX='-qpic'
13136
lt_prog_compiler_static_CXX='-qstaticlink'
13139
case `$CC -V 2>&1 | sed 5q` in
13142
lt_prog_compiler_pic_CXX='-KPIC'
13143
lt_prog_compiler_static_CXX='-Bstatic'
13144
lt_prog_compiler_wl_CXX='-Qoption ld '
13155
case $cc_basename in
13157
lt_prog_compiler_pic_CXX='-W c,exportall'
13163
netbsd* | netbsdelf*-gnu)
13166
# QNX uses GNU C++, but need to define -shared option too, otherwise
13167
# it will coredump.
13168
lt_prog_compiler_pic_CXX='-fPIC -shared'
13170
osf3* | osf4* | osf5*)
13171
case $cc_basename in
13173
lt_prog_compiler_wl_CXX='--backend -Wl,'
13176
# Rational C++ 2.4.1
13177
lt_prog_compiler_pic_CXX='-pic'
13180
# Digital/Compaq C++
13181
lt_prog_compiler_wl_CXX='-Wl,'
13182
# Make sure the PIC flag is empty. It appears that all Alpha
13183
# Linux and Compaq Tru64 Unix objects are PIC.
13184
lt_prog_compiler_pic_CXX=
13185
lt_prog_compiler_static_CXX='-non_shared'
13194
case $cc_basename in
13196
# Sun C++ 4.2, 5.x and Centerline C++
13197
lt_prog_compiler_pic_CXX='-KPIC'
13198
lt_prog_compiler_static_CXX='-Bstatic'
13199
lt_prog_compiler_wl_CXX='-Qoption ld '
13202
# Green Hills C++ Compiler
13203
lt_prog_compiler_pic_CXX='-PIC'
13210
case $cc_basename in
13213
lt_prog_compiler_pic_CXX='-pic'
13214
lt_prog_compiler_static_CXX='-Bstatic'
13218
lt_prog_compiler_pic_CXX='-pic'
13224
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13225
case $cc_basename in
13227
lt_prog_compiler_wl_CXX='-Wl,'
13228
lt_prog_compiler_pic_CXX='-KPIC'
13229
lt_prog_compiler_static_CXX='-Bstatic'
13234
case $cc_basename in
13236
# NonStop-UX NCC 3.20
13237
lt_prog_compiler_pic_CXX='-KPIC'
13246
lt_prog_compiler_can_build_shared_CXX=no
13252
# For platforms which do not support PIC, -DPIC is meaningless:
13254
lt_prog_compiler_pic_CXX=
13257
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13261
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13266
# Check to make sure the PIC flag actually works.
13268
if test -n "$lt_prog_compiler_pic_CXX"; then
13269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13270
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13271
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13272
$as_echo_n "(cached) " >&6
13274
lt_cv_prog_compiler_pic_works_CXX=no
13275
ac_outfile=conftest.$ac_objext
13276
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13277
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13278
# Insert the option either (1) after the last *FLAGS variable, or
13279
# (2) before a word containing "conftest.", or (3) at the end.
13280
# Note that $ac_compile itself does not contain backslashes and begins
13281
# with a dollar sign (not a hyphen), so the echo should work correctly.
13282
# The option is referenced via a variable to avoid confusing sed.
13283
lt_compile=`echo "$ac_compile" | $SED \
13284
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13285
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13286
-e 's:$: $lt_compiler_flag:'`
13287
(eval echo "\"\$as_me:13287: $lt_compile\"" >&5)
13288
(eval "$lt_compile" 2>conftest.err)
13290
cat conftest.err >&5
13291
echo "$as_me:13291: \$? = $ac_status" >&5
13292
if (exit $ac_status) && test -s "$ac_outfile"; then
13293
# The compiler can only warn and ignore the option if not recognized
13294
# So say no if there are warnings other than the usual output.
13295
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13296
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13297
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13298
lt_cv_prog_compiler_pic_works_CXX=yes
13304
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13305
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13307
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13308
case $lt_prog_compiler_pic_CXX in
13310
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13313
lt_prog_compiler_pic_CXX=
13314
lt_prog_compiler_can_build_shared_CXX=no
13322
# Check to make sure the static flag actually works.
13324
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13325
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13326
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13327
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13328
$as_echo_n "(cached) " >&6
13330
lt_cv_prog_compiler_static_works_CXX=no
13331
save_LDFLAGS="$LDFLAGS"
13332
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13333
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13334
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13335
# The linker can only warn and ignore the option if not recognized
13336
# So say no if there are warnings
13337
if test -s conftest.err; then
13338
# Append any errors to the config.log.
13339
cat conftest.err 1>&5
13340
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13341
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13342
if diff conftest.exp conftest.er2 >/dev/null; then
13343
lt_cv_prog_compiler_static_works_CXX=yes
13346
lt_cv_prog_compiler_static_works_CXX=yes
13350
LDFLAGS="$save_LDFLAGS"
13353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13354
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13356
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13359
lt_prog_compiler_static_CXX=
13365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13366
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13367
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13368
$as_echo_n "(cached) " >&6
13370
lt_cv_prog_compiler_c_o_CXX=no
13371
$RM -r conftest 2>/dev/null
13375
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13377
lt_compiler_flag="-o out/conftest2.$ac_objext"
13378
# Insert the option either (1) after the last *FLAGS variable, or
13379
# (2) before a word containing "conftest.", or (3) at the end.
13380
# Note that $ac_compile itself does not contain backslashes and begins
13381
# with a dollar sign (not a hyphen), so the echo should work correctly.
13382
lt_compile=`echo "$ac_compile" | $SED \
13383
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13384
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13385
-e 's:$: $lt_compiler_flag:'`
13386
(eval echo "\"\$as_me:13386: $lt_compile\"" >&5)
13387
(eval "$lt_compile" 2>out/conftest.err)
13389
cat out/conftest.err >&5
13390
echo "$as_me:13390: \$? = $ac_status" >&5
13391
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13393
# The compiler can only warn and ignore the option if not recognized
13394
# So say no if there are warnings
13395
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13396
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13397
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13398
lt_cv_prog_compiler_c_o_CXX=yes
13403
# SGI C++ compiler will create directory out/ii_files/ for
13404
# template instantiation
13405
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13406
$RM out/* && rmdir out
13412
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13413
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13418
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13419
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13420
$as_echo_n "(cached) " >&6
13422
lt_cv_prog_compiler_c_o_CXX=no
13423
$RM -r conftest 2>/dev/null
13427
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13429
lt_compiler_flag="-o out/conftest2.$ac_objext"
13430
# Insert the option either (1) after the last *FLAGS variable, or
13431
# (2) before a word containing "conftest.", or (3) at the end.
13432
# Note that $ac_compile itself does not contain backslashes and begins
13433
# with a dollar sign (not a hyphen), so the echo should work correctly.
13434
lt_compile=`echo "$ac_compile" | $SED \
13435
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13436
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13437
-e 's:$: $lt_compiler_flag:'`
13438
(eval echo "\"\$as_me:13438: $lt_compile\"" >&5)
13439
(eval "$lt_compile" 2>out/conftest.err)
13441
cat out/conftest.err >&5
13442
echo "$as_me:13442: \$? = $ac_status" >&5
13443
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13445
# The compiler can only warn and ignore the option if not recognized
13446
# So say no if there are warnings
13447
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13448
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13449
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13450
lt_cv_prog_compiler_c_o_CXX=yes
13455
# SGI C++ compiler will create directory out/ii_files/ for
13456
# template instantiation
13457
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13458
$RM out/* && rmdir out
13464
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13465
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13470
hard_links="nottested"
13471
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13472
# do not overwrite the value of need_locks provided by the user
13473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13474
$as_echo_n "checking if we can lock with hard links... " >&6; }
13477
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13479
ln conftest.a conftest.b 2>&5 || hard_links=no
13480
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13482
$as_echo "$hard_links" >&6; }
13483
if test "$hard_links" = no; then
13484
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13485
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13494
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13495
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13497
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13500
# If we're using GNU nm, then we don't want the "-C" option.
13501
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13502
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13503
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'
13505
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'
13509
export_symbols_cmds_CXX="$ltdll_cmds"
13511
cygwin* | mingw* | cegcc*)
13512
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'
13514
linux* | k*bsd*-gnu)
13515
link_all_deplibs_CXX=no
13518
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13521
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13523
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13524
$as_echo "$ld_shlibs_CXX" >&6; }
13525
test "$ld_shlibs_CXX" = no && can_build_shared=no
13527
with_gnu_ld_CXX=$with_gnu_ld
13535
# Do we need to explicitly link libc?
13537
case "x$archive_cmds_need_lc_CXX" in
13539
# Assume -lc should be added
13540
archive_cmds_need_lc_CXX=yes
13542
if test "$enable_shared" = yes && test "$GCC" = yes; then
13543
case $archive_cmds_CXX in
13545
# FIXME: we may have to deal with multi-command sequences.
13548
# Test whether the compiler implicitly links with -lc since on some
13549
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13550
# to ld, don't add -lc before -lgcc.
13551
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13552
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13554
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13556
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13557
(eval $ac_compile) 2>&5
13559
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13560
test $ac_status = 0; } 2>conftest.err; then
13563
libobjs=conftest.$ac_objext
13565
wl=$lt_prog_compiler_wl_CXX
13566
pic_flag=$lt_prog_compiler_pic_CXX
13572
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13573
allow_undefined_flag_CXX=
13574
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13575
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13577
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13578
test $ac_status = 0; }
13580
archive_cmds_need_lc_CXX=no
13582
archive_cmds_need_lc_CXX=yes
13584
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13586
cat conftest.err 1>&5
13589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13590
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13660
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13661
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13663
library_names_spec=
13664
libname_spec='lib$name'
13668
postuninstall_cmds=
13672
shlibpath_overrides_runpath=unknown
13674
dynamic_linker="$host_os ld.so"
13675
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13676
need_lib_prefix=unknown
13677
hardcode_into_libs=no
13679
# when you set need_version to no, make sure it does not cause -set_version
13680
# flags to be left without arguments
13681
need_version=unknown
13686
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13687
shlibpath_var=LIBPATH
13689
# AIX 3 has no versioning support, so we append a major version to the name.
13690
soname_spec='${libname}${release}${shared_ext}$major'
13697
hardcode_into_libs=yes
13698
if test "$host_cpu" = ia64; then
13699
# AIX 5 supports IA64
13700
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13701
shlibpath_var=LD_LIBRARY_PATH
13703
# With GCC up to 2.95.x, collect2 would create an import file
13704
# for dependence libraries. The import file would start with
13705
# the line `#! .'. This would cause the generated library to
13706
# depend on `.', always an invalid library. This was fixed in
13707
# development snapshots of GCC prior to 3.0.
13709
aix4 | aix4.[01] | aix4.[01].*)
13710
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13712
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13715
can_build_shared=no
13719
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13720
# soname into executable. Probably we can add versioning support to
13721
# collect2, so additional links can be useful in future.
13722
if test "$aix_use_runtimelinking" = yes; then
13723
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13724
# instead of lib<name>.a to let people know that these are not
13725
# typical AIX shared libraries.
13726
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13728
# We preserve .a as extension for shared libraries through AIX4.2
13729
# and later when we are not doing run time linking.
13730
library_names_spec='${libname}${release}.a $libname.a'
13731
soname_spec='${libname}${release}${shared_ext}$major'
13733
shlibpath_var=LIBPATH
13740
# Since July 2007 AmigaOS4 officially supports .so libraries.
13741
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13742
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13745
library_names_spec='$libname.ixlibrary $libname.a'
13746
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13747
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'
13753
library_names_spec='${libname}${shared_ext}'
13754
dynamic_linker="$host_os ld.so"
13755
shlibpath_var=LIBRARY_PATH
13761
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13762
soname_spec='${libname}${release}${shared_ext}$major'
13763
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13764
shlibpath_var=LD_LIBRARY_PATH
13765
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13766
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13767
# the default ld.so.conf also contains /usr/contrib/lib and
13768
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13769
# libtool to hard-code these into programs
13772
cygwin* | mingw* | pw32* | cegcc*)
13773
version_type=windows
13778
case $GCC,$host_os in
13779
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13780
library_names_spec='$libname.dll.a'
13781
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13782
postinstall_cmds='base_file=`basename \${file}`~
13783
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13784
dldir=$destdir/`dirname \$dlpath`~
13785
test -d \$dldir || mkdir -p \$dldir~
13786
$install_prog $dir/$dlname \$dldir/$dlname~
13787
chmod a+x \$dldir/$dlname~
13788
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13789
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13791
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13792
dlpath=$dir/\$dldll~
13794
shlibpath_overrides_runpath=yes
13798
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13799
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13800
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13803
# MinGW DLLs use traditional 'lib' prefix
13804
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13805
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13806
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13807
# It is most probably a Windows format PATH printed by
13808
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13809
# path with ; separators, and with drive letters. We can handle the
13810
# drive letters (cygwin fileutils understands them), so leave them,
13811
# especially as we might pass files found there to a mingw objdump,
13812
# which wouldn't understand a cygwinified path. Ahh.
13813
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13815
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13819
# pw32 DLLs use 'pw' prefix rather than 'lib'
13820
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13826
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13829
dynamic_linker='Win32 ld.exe'
13830
# FIXME: first we should search . and the directory the executable is in
13834
darwin* | rhapsody*)
13835
dynamic_linker="$host_os dyld"
13836
version_type=darwin
13839
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13840
soname_spec='${libname}${release}${major}$shared_ext'
13841
shlibpath_overrides_runpath=yes
13842
shlibpath_var=DYLD_LIBRARY_PATH
13843
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13845
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13852
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13853
soname_spec='${libname}${release}${shared_ext}$major'
13854
shlibpath_var=LD_LIBRARY_PATH
13861
freebsd* | dragonfly*)
13862
# DragonFly does not have aout. When/if they implement a new
13863
# versioning mechanism, adjust this.
13864
if test -x /usr/bin/objformat; then
13865
objformat=`/usr/bin/objformat`
13868
freebsd[123]*) objformat=aout ;;
13869
*) objformat=elf ;;
13872
version_type=freebsd-$objformat
13873
case $version_type in
13875
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13880
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13884
shlibpath_var=LD_LIBRARY_PATH
13887
shlibpath_overrides_runpath=yes
13889
freebsd3.[01]* | freebsdelf3.[01]*)
13890
shlibpath_overrides_runpath=yes
13891
hardcode_into_libs=yes
13893
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13894
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13895
shlibpath_overrides_runpath=no
13896
hardcode_into_libs=yes
13898
*) # from 4.6 on, and DragonFly
13899
shlibpath_overrides_runpath=yes
13900
hardcode_into_libs=yes
13909
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13910
soname_spec='${libname}${release}${shared_ext}$major'
13911
shlibpath_var=LD_LIBRARY_PATH
13912
hardcode_into_libs=yes
13915
hpux9* | hpux10* | hpux11*)
13916
# Give a soname corresponding to the major version so that dld.sl refuses to
13917
# link against other versions.
13924
hardcode_into_libs=yes
13925
dynamic_linker="$host_os dld.so"
13926
shlibpath_var=LD_LIBRARY_PATH
13927
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13929
soname_spec='${libname}${release}${shared_ext}$major'
13930
if test "X$HPUX_IA64_MODE" = X32; then
13931
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13933
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13935
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13939
hardcode_into_libs=yes
13940
dynamic_linker="$host_os dld.sl"
13941
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13942
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13943
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13944
soname_spec='${libname}${release}${shared_ext}$major'
13945
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13946
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13950
dynamic_linker="$host_os dld.sl"
13951
shlibpath_var=SHLIB_PATH
13952
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13953
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13954
soname_spec='${libname}${release}${shared_ext}$major'
13957
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13958
postinstall_cmds='chmod 555 $lib'
13965
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13966
soname_spec='${libname}${release}${shared_ext}$major'
13967
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13968
shlibpath_var=LD_LIBRARY_PATH
13969
shlibpath_overrides_runpath=no
13970
hardcode_into_libs=yes
13973
irix5* | irix6* | nonstopux*)
13975
nonstopux*) version_type=nonstopux ;;
13977
if test "$lt_cv_prog_gnu_ld" = yes; then
13985
soname_spec='${libname}${release}${shared_ext}$major'
13986
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13988
irix5* | nonstopux*)
13989
libsuff= shlibsuff=
13992
case $LD in # libtool.m4 will add one of these switches to LD
13993
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13994
libsuff= shlibsuff= libmagic=32-bit;;
13995
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13996
libsuff=32 shlibsuff=N32 libmagic=N32;;
13997
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13998
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13999
*) libsuff= shlibsuff= libmagic=never-match;;
14003
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14004
shlibpath_overrides_runpath=no
14005
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14006
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14007
hardcode_into_libs=yes
14010
# No shared lib support for Linux oldld, aout, or coff.
14011
linux*oldld* | linux*aout* | linux*coff*)
14015
# This must be Linux ELF.
14016
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14020
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14021
soname_spec='${libname}${release}${shared_ext}$major'
14022
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14023
shlibpath_var=LD_LIBRARY_PATH
14024
shlibpath_overrides_runpath=no
14025
# Some binutils ld are patched to set DT_RUNPATH
14026
save_LDFLAGS=$LDFLAGS
14027
save_libdir=$libdir
14028
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14029
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14030
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031
/* end confdefs.h. */
14041
if ac_fn_cxx_try_link "$LINENO"; then :
14042
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14043
shlibpath_overrides_runpath=yes
14046
rm -f core conftest.err conftest.$ac_objext \
14047
conftest$ac_exeext conftest.$ac_ext
14048
LDFLAGS=$save_LDFLAGS
14049
libdir=$save_libdir
14051
# This implies no fast_install, which is unacceptable.
14052
# Some rework will be needed to allow for fast_install
14053
# before this can be enabled.
14054
hardcode_into_libs=yes
14056
# Append ld.so.conf contents to the search path
14057
if test -f /etc/ld.so.conf; then
14058
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' ' '`
14059
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14062
# We used to test for /lib/ld.so.1 and disable shared libraries on
14063
# powerpc, because MkLinux only supported shared libraries with the
14064
# GNU dynamic linker. Since this was broken with cross compilers,
14065
# most powerpc-linux boxes support dynamic linking these days and
14066
# people can always --disable-shared, the test was removed, and we
14067
# assume the GNU/Linux dynamic linker is in use.
14068
dynamic_linker='GNU/Linux ld.so'
14075
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14076
soname_spec='${libname}${release}${shared_ext}$major'
14077
shlibpath_var=LD_LIBRARY_PATH
14078
shlibpath_overrides_runpath=no
14079
hardcode_into_libs=yes
14080
dynamic_linker='NetBSD ld.elf_so'
14087
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14088
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14089
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14090
dynamic_linker='NetBSD (a.out) ld.so'
14092
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14093
soname_spec='${libname}${release}${shared_ext}$major'
14094
dynamic_linker='NetBSD ld.elf_so'
14096
shlibpath_var=LD_LIBRARY_PATH
14097
shlibpath_overrides_runpath=yes
14098
hardcode_into_libs=yes
14103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14104
shlibpath_var=LD_LIBRARY_PATH
14105
shlibpath_overrides_runpath=yes
14112
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14113
soname_spec='${libname}${release}${shared_ext}$major'
14114
shlibpath_var=LD_LIBRARY_PATH
14115
shlibpath_overrides_runpath=no
14116
hardcode_into_libs=yes
14117
dynamic_linker='ldqnx.so'
14122
sys_lib_dlsearch_path_spec="/usr/lib"
14124
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14126
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14127
*) need_version=no ;;
14129
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14130
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14131
shlibpath_var=LD_LIBRARY_PATH
14132
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14134
openbsd2.[89] | openbsd2.[89].*)
14135
shlibpath_overrides_runpath=no
14138
shlibpath_overrides_runpath=yes
14142
shlibpath_overrides_runpath=yes
14147
libname_spec='$name'
14150
library_names_spec='$libname${shared_ext} $libname.a'
14151
dynamic_linker='OS/2 ld.exe'
14152
shlibpath_var=LIBPATH
14155
osf3* | osf4* | osf5*)
14159
soname_spec='${libname}${release}${shared_ext}$major'
14160
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14161
shlibpath_var=LD_LIBRARY_PATH
14162
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14163
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14174
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14175
soname_spec='${libname}${release}${shared_ext}$major'
14176
shlibpath_var=LD_LIBRARY_PATH
14177
shlibpath_overrides_runpath=yes
14178
hardcode_into_libs=yes
14179
# ldd complains unless libraries are executable
14180
postinstall_cmds='chmod +x $lib'
14185
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14186
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14187
shlibpath_var=LD_LIBRARY_PATH
14188
shlibpath_overrides_runpath=yes
14189
if test "$with_gnu_ld" = yes; then
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
case $host_vendor in
14202
shlibpath_overrides_runpath=no
14204
runpath_var=LD_RUN_PATH
14212
shlibpath_overrides_runpath=no
14213
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14219
if test -d /usr/nec ;then
14221
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14222
soname_spec='$libname${shared_ext}.$major'
14223
shlibpath_var=LD_LIBRARY_PATH
14227
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14228
version_type=freebsd-elf
14231
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14232
soname_spec='${libname}${release}${shared_ext}$major'
14233
shlibpath_var=LD_LIBRARY_PATH
14234
shlibpath_overrides_runpath=yes
14235
hardcode_into_libs=yes
14236
if test "$with_gnu_ld" = yes; then
14237
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14239
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14242
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14246
sys_lib_dlsearch_path_spec='/usr/lib'
14250
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14254
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14255
shlibpath_var=LD_LIBRARY_PATH
14256
shlibpath_overrides_runpath=no
14257
hardcode_into_libs=yes
14262
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14263
soname_spec='${libname}${release}${shared_ext}$major'
14264
shlibpath_var=LD_LIBRARY_PATH
14271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14272
$as_echo "$dynamic_linker" >&6; }
14273
test "$dynamic_linker" = no && can_build_shared=no
14275
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14276
if test "$GCC" = yes; then
14277
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14280
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14281
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14283
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14284
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14322
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14323
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14324
hardcode_action_CXX=
14325
if test -n "$hardcode_libdir_flag_spec_CXX" ||
14326
test -n "$runpath_var_CXX" ||
14327
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14329
# We can hardcode non-existent directories.
14330
if test "$hardcode_direct_CXX" != no &&
14331
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14332
# have to relink, otherwise we might link with an installed library
14333
# when we should be linking with a yet-to-be-installed one
14334
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14335
test "$hardcode_minus_L_CXX" != no; then
14336
# Linking always hardcodes the temporary library directory.
14337
hardcode_action_CXX=relink
14339
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14340
hardcode_action_CXX=immediate
14343
# We cannot hardcode anything, or else we can only hardcode existing
14345
hardcode_action_CXX=unsupported
14347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14348
$as_echo "$hardcode_action_CXX" >&6; }
14350
if test "$hardcode_action_CXX" = relink ||
14351
test "$inherit_rpath_CXX" = yes; then
14352
# Fast installation is not supported
14353
enable_fast_install=no
14354
elif test "$shlibpath_overrides_runpath" = yes ||
14355
test "$enable_shared" = no; then
14356
# Fast installation is not necessary
14357
enable_fast_install=needless
14366
fi # test -n "$compiler"
14372
with_gnu_ld=$lt_save_with_gnu_ld
14373
lt_cv_path_LDCXX=$lt_cv_path_LD
14374
lt_cv_path_LD=$lt_save_path_LD
14375
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14376
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14377
fi # test "$_lt_caught_CXX_error" != yes
14380
ac_cpp='$CPP $CPPFLAGS'
14381
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14382
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14383
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14397
ac_config_commands="$ac_config_commands libtool"
14402
# Only expand once:
14405
if test "$GXX" != "yes"; then
14406
as_fn_error "GNU C++ compiler not found, not building LLVM" "$LINENO" 5
14409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
14410
$as_echo_n "checking for GNU make... " >&6; }
14411
if test "${llvm_cv_gnu_make_command+set}" = set; then :
14412
$as_echo_n "(cached) " >&6
14414
llvm_cv_gnu_make_command=''
14415
for a in "$MAKE" make gmake gnumake ; do
14416
if test -z "$a" ; then continue ; fi ;
14417
if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
14419
llvm_cv_gnu_make_command=$a ;
14424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_gnu_make_command" >&5
14425
$as_echo "$llvm_cv_gnu_make_command" >&6; }
14426
if test "x$llvm_cv_gnu_make_command" != "x" ; then
14430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
14431
$as_echo "\"Not found\"" >&6; };
14435
GMAKE="$llvm_cv_gnu_make_command"
14439
subdirs="$subdirs llvm"
14441
# Check whether --enable-llvm was given.
14442
if test "${enable_llvm+set}" = set; then :
14443
enableval=$enable_llvm; enable_llvm=$enableval
14449
# Check whether --enable-optimized was given.
14450
if test "${enable_optimized+set}" = set; then :
14451
enableval=$enable_optimized; enable_optimized=$enableval
14453
enable_optimized=default
14456
if test "x$enable_optimized" == "xno"; then
14458
DEBUG_BUILD_FALSE='#'
14460
DEBUG_BUILD_TRUE='#'
14465
if test "$enable_optimized" = "default"; then
14466
ac_configure_args="$ac_configure_args --enable-optimized"
14469
ac_configure_args="$ac_configure_args llvm_cv_gnu_make_command=make"
14470
# Check whether --enable-all-jit-targets was given.
14471
if test "${enable_all_jit_targets+set}" = set; then :
14472
enableval=$enable_all_jit_targets; enable_alltargets=$enableval
14474
enable_alltargets=no
14477
if test "$enable_alltargets" = "yes"; then
14478
new_args="$ac_configure_args --enable-targets=x86,powerpc,arm --enable-bindings=none --enable-libffi=no --without-llvmgcc --without-llvmgxx"
14480
new_args="$ac_configure_args --enable-targets=host-only --enable-bindings=none --enable-libffi=no --without-llvmgcc --without-llvmgxx"
14483
ac_configure_args=`echo $new_args | sed -e 's/-Werror //g'`
14484
echo "$ac_configure_args"
14486
if test "$enable_llvm" = "auto"; then
14487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported C++ compiler version" >&5
14488
$as_echo_n "checking for supported C++ compiler version... " >&6; }
14489
gxx_version=`${CXX} -dumpversion` ||
14490
as_fn_error "Unable to get GNU C++ compiler version" "$LINENO" 5
14491
case "${gxx_version}" in
14493
as_fn_error "C++ compiler too old (${gxx_version})" "$LINENO" 5
14496
as_fn_error "C++ compiler is buggy" "$LINENO" 5
14499
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gxx_version})" >&5
14500
$as_echo "ok (${gxx_version})" >&6; }
14503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported OS" >&5
14504
$as_echo_n "checking for supported OS... " >&6; }
14505
case "$target_cpu" in
14506
i?86|amd64|x86_64|powerpc*)
14507
case "$target_os" in
14508
darwin*|freebsd*|openbsd*|netbsd*|dragonfly*|linux*|solaris*|win32*|mingw*)
14509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok ($target_cpu-$target_os)" >&5
14510
$as_echo "ok ($target_cpu-$target_os)" >&6; }
14513
as_fn_error "OS $target_os is not supported, not building LLVM" "$LINENO" 5
14518
as_fn_error "CPU support is untested, not building LLVM" "$LINENO" 5
14521
as_fn_error "Unsupported CPU for JIT: $target_cpu, not building LLVM" "$LINENO" 5
14529
case "$target_cpu" in
14541
# FreeBSD is only one which needs something else than -pthread,
14542
# according to the logic in ClamAV's main configure.in.
14543
case "$target_os" in
14545
THREAD_LIBS="-pthread -lc_r"
14548
THREAD_LIBS="-lthr"
14551
THREAD_LIBS="-pthread"
14555
if test "$enable_alltargets" = "yes"; then
14560
if test "$build_x86" = "yes"; then
14562
BUILD_X86_FALSE='#'
14568
if test "$build_ppc" = "yes"; then
14570
BUILD_PPC_FALSE='#'
14576
if test "$build_arm" = "yes"; then
14578
BUILD_ARM_FALSE='#'
14585
ac_config_files="$ac_config_files Makefile"
14587
cat >confcache <<\_ACEOF
14588
# This file is a shell script that caches the results of configure
14589
# tests run on this system so they can be shared between configure
14590
# scripts and configure runs, see configure's option --config-cache.
14591
# It is not useful on other systems. If it contains results you don't
14592
# want to keep, you may remove or edit it.
14594
# config.status only pays attention to the cache file if you give it
14595
# the --recheck option to rerun configure.
14597
# `ac_cv_env_foo' variables (set or unset) will be overridden when
14598
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14599
# following values.
14603
# The following way of writing the cache mishandles newlines in values,
14604
# but we know of no workaround that is simple, portable, and efficient.
14605
# So, we kill variables containing newlines.
14606
# Ultrix sh set writes to stderr and can't be redirected directly,
14607
# and sets the high bit in the cache file unless we assign to the vars.
14609
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14610
eval ac_val=\$$ac_var
14614
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14615
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14618
_ | IFS | as_nl) ;; #(
14619
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14620
*) { eval $ac_var=; unset $ac_var;} ;;
14626
case $as_nl`(ac_space=' '; set) 2>&1` in #(
14627
*${as_nl}ac_space=\ *)
14628
# `set' does not quote correctly, so add quotes: double-quote
14629
# substitution turns \\\\ into \\, and sed turns \\ into \.
14632
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14635
# `set' quotes correctly as required by POSIX, so do not add quotes.
14636
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14645
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14647
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14649
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14650
if test -w "$cache_file"; then
14651
test "x$cache_file" != "x/dev/null" &&
14652
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14653
$as_echo "$as_me: updating cache $cache_file" >&6;}
14654
cat confcache >$cache_file
14656
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14657
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14662
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14663
# Let make expand exec_prefix.
14664
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14666
DEFS=-DHAVE_CONFIG_H
14670
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14671
# 1. Remove the extension, and $U if already installed.
14672
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14673
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14674
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14675
# will be set to the directory where LIBOBJS objects are built.
14676
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14677
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14679
LIBOBJS=$ac_libobjs
14681
LTLIBOBJS=$ac_ltlibobjs
14684
if test -n "$EXEEXT"; then
14686
am__EXEEXT_FALSE='#'
14688
am__EXEEXT_TRUE='#'
14692
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14693
as_fn_error "conditional \"AMDEP\" was never defined.
14694
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14696
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14697
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14698
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14700
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14701
as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14702
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14704
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14705
as_fn_error "conditional \"am__fastdepCC\" was never defined.
14706
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14708
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14709
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14710
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14712
if test -z "${DEBUG_BUILD_TRUE}" && test -z "${DEBUG_BUILD_FALSE}"; then
14713
as_fn_error "conditional \"DEBUG_BUILD\" was never defined.
14714
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14716
if test -z "${BUILD_X86_TRUE}" && test -z "${BUILD_X86_FALSE}"; then
14717
as_fn_error "conditional \"BUILD_X86\" was never defined.
14718
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14720
if test -z "${BUILD_PPC_TRUE}" && test -z "${BUILD_PPC_FALSE}"; then
14721
as_fn_error "conditional \"BUILD_PPC\" was never defined.
14722
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14724
if test -z "${BUILD_ARM_TRUE}" && test -z "${BUILD_ARM_FALSE}"; then
14725
as_fn_error "conditional \"BUILD_ARM\" was never defined.
14726
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14729
: ${CONFIG_STATUS=./config.status}
14731
ac_clean_files_save=$ac_clean_files
14732
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14733
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14734
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14736
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14738
# Generated by $as_me.
14739
# Run this file to recreate the current configuration.
14740
# Compiler output produced by configure, useful for debugging
14741
# configure, is in config.log if it exists.
14744
ac_cs_recheck=false
14747
SHELL=\${CONFIG_SHELL-$SHELL}
14750
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14751
## -------------------- ##
14752
## M4sh Initialization. ##
14753
## -------------------- ##
14755
# Be more Bourne compatible
14756
DUALCASE=1; export DUALCASE # for MKS sh
14757
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14760
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14761
# is contrary to our usage. Disable this feature.
14762
alias -g '${1+"$@"}'='"$@"'
14763
setopt NO_GLOB_SUBST
14765
case `(set -o) 2>/dev/null` in #(
14777
# Printing a long string crashes Solaris 7 /usr/bin/printf.
14778
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14779
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14780
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14781
# Prefer a ksh shell builtin over an external printf program on Solaris,
14782
# but without wasting forks for bash or zsh.
14783
if test -z "$BASH_VERSION$ZSH_VERSION" \
14784
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14785
as_echo='print -r --'
14786
as_echo_n='print -rn --'
14787
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14788
as_echo='printf %s\n'
14789
as_echo_n='printf %s'
14791
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14792
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14793
as_echo_n='/usr/ucb/echo -n'
14795
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14796
as_echo_n_body='eval
14800
expr "X$arg" : "X\\(.*\\)$as_nl";
14801
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14803
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14805
export as_echo_n_body
14806
as_echo_n='sh -c $as_echo_n_body as_echo'
14808
export as_echo_body
14809
as_echo='sh -c $as_echo_body as_echo'
14812
# The user is always right.
14813
if test "${PATH_SEPARATOR+set}" != set; then
14815
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14816
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14823
# We need space, tab and new line, in precisely that order. Quoting is
14824
# there to prevent editors from complaining about space-tab.
14825
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14826
# splitting by setting IFS to empty value.)
14829
# Find who we are. Look in the path if we contain no directory separator.
14831
*[\\/]* ) as_myself=$0 ;;
14832
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14833
for as_dir in $PATH
14836
test -z "$as_dir" && as_dir=.
14837
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14843
# We did not find ourselves, most probably we were run as `sh COMMAND'
14844
# in which case we are not to be found in the path.
14845
if test "x$as_myself" = x; then
14848
if test ! -f "$as_myself"; then
14849
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14853
# Unset variables that we do not need and which cause bugs (e.g. in
14854
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14855
# suppresses any "Segmentation fault" message there. '((' could
14856
# trigger a bug in pdksh 5.2.14.
14857
for as_var in BASH_ENV ENV MAIL MAILPATH
14858
do eval test x\${$as_var+set} = xset \
14859
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14872
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14875
# as_fn_error ERROR [LINENO LOG_FD]
14876
# ---------------------------------
14877
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14878
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14879
# script with status $?, using 1 if that was 0.
14882
as_status=$?; test $as_status -eq 0 && as_status=1
14884
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14885
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14887
$as_echo "$as_me: error: $1" >&2
14888
as_fn_exit $as_status
14892
# as_fn_set_status STATUS
14893
# -----------------------
14894
# Set $? to STATUS, without forking.
14895
as_fn_set_status ()
14898
} # as_fn_set_status
14900
# as_fn_exit STATUS
14901
# -----------------
14902
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14906
as_fn_set_status $1
14912
# Portably unset VAR.
14915
{ eval $1=; unset $1;}
14917
as_unset=as_fn_unset
14918
# as_fn_append VAR VALUE
14919
# ----------------------
14920
# Append the text in VALUE to the end of the definition contained in VAR. Take
14921
# advantage of any shell optimizations that allow amortized linear growth over
14922
# repeated appends, instead of the typical quadratic growth present in naive
14924
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14925
eval 'as_fn_append ()
14936
# as_fn_arith ARG...
14937
# ------------------
14938
# Perform arithmetic evaluation on the ARGs, and store the result in the
14939
# global $as_val. Take advantage of shells that can avoid forks. The arguments
14940
# must be portable across $(()) and expr.
14941
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14942
eval 'as_fn_arith ()
14949
as_val=`expr "$@" || test $? -eq 1`
14954
if expr a : '\(a\)' >/dev/null 2>&1 &&
14955
test "X`expr 00001 : '.*\(...\)'`" = X001; then
14961
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14962
as_basename=basename
14967
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14973
as_me=`$as_basename -- "$0" ||
14974
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14975
X"$0" : 'X\(//\)$' \| \
14976
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14978
sed '/^.*\/\([^/][^/]*\)\/*$/{
14992
# Avoid depending upon Character Ranges.
14993
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14994
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14995
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14996
as_cr_digits='0123456789'
14997
as_cr_alnum=$as_cr_Letters$as_cr_digits
14999
ECHO_C= ECHO_N= ECHO_T=
15000
case `echo -n x` in #(((((
15002
case `echo 'xy\c'` in
15003
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
15005
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15012
rm -f conf$$ conf$$.exe conf$$.file
15013
if test -d conf$$.dir; then
15014
rm -f conf$$.dir/conf$$.file
15017
mkdir conf$$.dir 2>/dev/null
15019
if (echo >conf$$.file) 2>/dev/null; then
15020
if ln -s conf$$.file conf$$ 2>/dev/null; then
15022
# ... but there are two gotchas:
15023
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15024
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15025
# In both cases, we have to default to `cp -p'.
15026
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15028
elif ln conf$$.file conf$$ 2>/dev/null; then
15036
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15037
rmdir conf$$.dir 2>/dev/null
15042
# Create "$as_dir" as a directory, including parents if necessary.
15047
-*) as_dir=./$as_dir;;
15049
test -d "$as_dir" || eval $as_mkdir_p || {
15053
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15054
*) as_qdir=$as_dir;;
15056
as_dirs="'$as_qdir' $as_dirs"
15057
as_dir=`$as_dirname -- "$as_dir" ||
15058
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15059
X"$as_dir" : 'X\(//\)[^/]' \| \
15060
X"$as_dir" : 'X\(//\)$' \| \
15061
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15062
$as_echo X"$as_dir" |
15063
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15067
/^X\(\/\/\)[^/].*/{
15080
test -d "$as_dir" && break
15082
test -z "$as_dirs" || eval "mkdir $as_dirs"
15083
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15087
if mkdir -p . 2>/dev/null; then
15088
as_mkdir_p='mkdir -p "$as_dir"'
15090
test -d ./-p && rmdir ./-p
15094
if test -x / >/dev/null 2>&1; then
15095
as_test_x='test -x'
15097
if ls -dL / >/dev/null 2>&1; then
15104
if test -d "$1"; then
15110
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15111
???[sx]*):;;*)false;;esac;fi
15115
as_executable_p=$as_test_x
15117
# Sed expression to map a string onto a valid CPP name.
15118
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15120
# Sed expression to map a string onto a valid variable name.
15121
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15125
## ----------------------------------- ##
15126
## Main body of $CONFIG_STATUS script. ##
15127
## ----------------------------------- ##
15129
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15131
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15132
# Save the log message, to keep $0 and so on meaningful, and to
15133
# report actual input values of CONFIG_FILES etc. instead of their
15134
# values after options handling.
15136
This file was extended by libclamavc++ $as_me devel, which was
15137
generated by GNU Autoconf 2.65. Invocation command line was
15139
CONFIG_FILES = $CONFIG_FILES
15140
CONFIG_HEADERS = $CONFIG_HEADERS
15141
CONFIG_LINKS = $CONFIG_LINKS
15142
CONFIG_COMMANDS = $CONFIG_COMMANDS
15145
on `(hostname || uname -n) 2>/dev/null | sed 1q`
15150
case $ac_config_files in *"
15151
"*) set x $ac_config_files; shift; ac_config_files=$*;;
15154
case $ac_config_headers in *"
15155
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15159
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15160
# Files that config.status was made for.
15161
config_files="$ac_config_files"
15162
config_headers="$ac_config_headers"
15163
config_commands="$ac_config_commands"
15167
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15169
\`$as_me' instantiates files and other configuration actions
15170
from templates according to the current configuration. Unless the files
15171
and actions are specified as TAGs, all are instantiated by default.
15173
Usage: $0 [OPTION]... [TAG]...
15175
-h, --help print this help, then exit
15176
-V, --version print version number and configuration settings, then exit
15177
--config print configuration, then exit
15178
-q, --quiet, --silent
15179
do not print progress messages
15180
-d, --debug don't remove temporary files
15181
--recheck update $as_me by reconfiguring in the same conditions
15182
--file=FILE[:TEMPLATE]
15183
instantiate the configuration file FILE
15184
--header=FILE[:TEMPLATE]
15185
instantiate the configuration header FILE
15187
Configuration files:
15190
Configuration headers:
15193
Configuration commands:
15196
Report bugs to <http://bugs.clamav.net>."
15199
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15200
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15202
libclamavc++ config.status devel
15203
configured by $0, generated by GNU Autoconf 2.65,
15204
with options \\"\$ac_cs_config\\"
15206
Copyright (C) 2009 Free Software Foundation, Inc.
15207
This config.status script is free software; the Free Software Foundation
15208
gives unlimited permission to copy, distribute and modify it."
15215
test -n "\$AWK" || AWK=awk
15218
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15219
# The default lists apply if the user does not specify any file.
15225
ac_option=`expr "X$1" : 'X\([^=]*\)='`
15226
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15237
# Handling of the options.
15238
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15240
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15241
$as_echo "$ac_cs_version"; exit ;;
15242
--config | --confi | --conf | --con | --co | --c )
15243
$as_echo "$ac_cs_config"; exit ;;
15244
--debug | --debu | --deb | --de | --d | -d )
15246
--file | --fil | --fi | --f )
15249
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15251
as_fn_append CONFIG_FILES " '$ac_optarg'"
15252
ac_need_defaults=false;;
15253
--header | --heade | --head | --hea )
15256
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15258
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15259
ac_need_defaults=false;;
15261
# Conflict between --help and --header
15262
as_fn_error "ambiguous option: \`$1'
15263
Try \`$0 --help' for more information.";;
15264
--help | --hel | -h )
15265
$as_echo "$ac_cs_usage"; exit ;;
15266
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
15267
| -silent | --silent | --silen | --sile | --sil | --si | --s)
15270
# This is an error.
15271
-*) as_fn_error "unrecognized option: \`$1'
15272
Try \`$0 --help' for more information." ;;
15274
*) as_fn_append ac_config_targets " $1"
15275
ac_need_defaults=false ;;
15281
ac_configure_extra_args=
15283
if $ac_cs_silent; then
15285
ac_configure_extra_args="$ac_configure_extra_args --silent"
15289
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15290
if \$ac_cs_recheck; then
15291
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15293
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15294
CONFIG_SHELL='$SHELL'
15295
export CONFIG_SHELL
15300
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15304
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15305
## Running $as_me. ##
15311
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15315
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15318
# The HP-UX ksh and POSIX shell print the target directory to stdout
15319
# if CDPATH is set.
15320
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15322
sed_quote_subst='$sed_quote_subst'
15323
double_quote_subst='$double_quote_subst'
15324
delay_variable_subst='$delay_variable_subst'
15325
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15326
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15327
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15328
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15329
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15330
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15331
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15332
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15333
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15334
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15335
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15336
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15337
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15338
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15339
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15340
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15341
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15342
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15343
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15344
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15345
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15346
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15347
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15348
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15349
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15350
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15351
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15352
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15353
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15354
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15355
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15356
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15357
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15358
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15359
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15360
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15361
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15362
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15363
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15364
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15365
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15366
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15367
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15368
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15369
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"`'
15370
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"`'
15371
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15372
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15373
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15374
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15375
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15376
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15377
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15378
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15379
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15380
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15381
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15382
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15383
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15384
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15385
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15386
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15387
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15388
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15389
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15390
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15391
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15392
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15393
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15394
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15395
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15396
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15397
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15398
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15399
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15400
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15401
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15402
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15403
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15404
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15405
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15406
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15407
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15408
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15409
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15410
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15411
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15412
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15413
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15414
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15415
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15416
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15417
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15418
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15419
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15420
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15421
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15422
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15423
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15424
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15425
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15426
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15427
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15428
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15429
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15430
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15431
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15432
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15433
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15434
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15435
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15436
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15437
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15438
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15439
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15440
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15441
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15442
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15443
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15444
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15445
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15446
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15447
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15448
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15449
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15450
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15451
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15452
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15453
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15454
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15455
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15456
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15457
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15458
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15459
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15460
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15461
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15462
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15463
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15464
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15465
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15466
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15467
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15468
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15469
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15470
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15471
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15472
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15473
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15474
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15475
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15476
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15477
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15478
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15479
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15480
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15481
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15482
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15483
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15484
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15485
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15486
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15487
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15488
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15489
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15490
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15491
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15492
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15493
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15494
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15495
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15498
LTCFLAGS='$LTCFLAGS'
15499
compiler='$compiler_DEFAULT'
15501
# Quote evaled strings.
15513
deplibs_check_method \
15522
lt_cv_sys_global_symbol_pipe \
15523
lt_cv_sys_global_symbol_to_cdecl \
15524
lt_cv_sys_global_symbol_to_c_name_address \
15525
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15528
lt_prog_compiler_no_builtin_flag \
15529
lt_prog_compiler_wl \
15530
lt_prog_compiler_pic \
15531
lt_prog_compiler_static \
15532
lt_cv_prog_compiler_c_o \
15540
export_dynamic_flag_spec \
15541
whole_archive_flag_spec \
15542
compiler_needs_object \
15544
allow_undefined_flag \
15545
no_undefined_flag \
15546
hardcode_libdir_flag_spec \
15547
hardcode_libdir_flag_spec_ld \
15548
hardcode_libdir_separator \
15553
variables_saved_for_relink \
15555
library_names_spec \
15560
compiler_lib_search_dirs \
15565
compiler_lib_search_path \
15568
lt_prog_compiler_no_builtin_flag_CXX \
15569
lt_prog_compiler_wl_CXX \
15570
lt_prog_compiler_pic_CXX \
15571
lt_prog_compiler_static_CXX \
15572
lt_cv_prog_compiler_c_o_CXX \
15573
export_dynamic_flag_spec_CXX \
15574
whole_archive_flag_spec_CXX \
15575
compiler_needs_object_CXX \
15577
allow_undefined_flag_CXX \
15578
no_undefined_flag_CXX \
15579
hardcode_libdir_flag_spec_CXX \
15580
hardcode_libdir_flag_spec_ld_CXX \
15581
hardcode_libdir_separator_CXX \
15582
fix_srcfile_path_CXX \
15583
exclude_expsyms_CXX \
15584
include_expsyms_CXX \
15585
file_list_spec_CXX \
15586
compiler_lib_search_dirs_CXX \
15587
predep_objects_CXX \
15588
postdep_objects_CXX \
15591
compiler_lib_search_path_CXX; do
15592
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15593
*[\\\\\\\`\\"\\\$]*)
15594
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15597
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15602
# Double-quote double-evaled strings.
15603
for var in reload_cmds \
15604
old_postinstall_cmds \
15605
old_postuninstall_cmds \
15607
extract_expsyms_cmds \
15608
old_archive_from_new_cmds \
15609
old_archive_from_expsyms_cmds \
15611
archive_expsym_cmds \
15613
module_expsym_cmds \
15614
export_symbols_cmds \
15617
postuninstall_cmds \
15619
sys_lib_search_path_spec \
15620
sys_lib_dlsearch_path_spec \
15621
old_archive_cmds_CXX \
15622
old_archive_from_new_cmds_CXX \
15623
old_archive_from_expsyms_cmds_CXX \
15625
archive_expsym_cmds_CXX \
15627
module_expsym_cmds_CXX \
15628
export_symbols_cmds_CXX \
15629
prelink_cmds_CXX; do
15630
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15631
*[\\\\\\\`\\"\\\$]*)
15632
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15635
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15640
# Fix-up fallback echo if it was mangled by the above quoting rules.
15642
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15646
ac_aux_dir='$ac_aux_dir'
15647
xsi_shell='$xsi_shell'
15648
lt_shell_append='$lt_shell_append'
15650
# See if we are running on zsh, and set the options which allow our
15651
# commands through without removal of \ escapes INIT.
15652
if test -n "\${ZSH_VERSION+set}" ; then
15653
setopt NO_GLOB_SUBST
15659
TIMESTAMP='$TIMESTAMP'
15670
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15672
# Handling of arguments.
15673
for ac_config_target in $ac_config_targets
15675
case $ac_config_target in
15676
"clamavcxx-config.h") CONFIG_HEADERS="$CONFIG_HEADERS clamavcxx-config.h" ;;
15677
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15678
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15679
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15681
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15686
# If the user did not use the arguments to specify the items to instantiate,
15687
# then the envvar interface is used. Set only those that are not.
15688
# We use the long form for the default assignment because of an extremely
15689
# bizarre bug on SunOS 4.1.3.
15690
if $ac_need_defaults; then
15691
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15692
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15693
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15696
# Have a temporary directory for convenience. Make it in the build tree
15697
# simply because there is no reason against having it here, and in addition,
15698
# creating and moving files from /tmp can sometimes cause problems.
15699
# Hook for its removal unless debugging.
15700
# Note that there is a small window in which the directory will not be cleaned:
15701
# after its creation but before its name has been assigned to `$tmp'.
15705
trap 'exit_status=$?
15706
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15708
trap 'as_fn_exit 1' 1 2 13 15
15710
# Create a (secure) tmp directory for tmp files.
15713
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15714
test -n "$tmp" && test -d "$tmp"
15717
tmp=./conf$$-$RANDOM
15718
(umask 077 && mkdir "$tmp")
15719
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15721
# Set up the scripts for CONFIG_FILES section.
15722
# No need to generate them if there are no CONFIG_FILES.
15723
# This happens for instance with `./config.status config.h'.
15724
if test -n "$CONFIG_FILES"; then
15727
ac_cr=`echo X | tr X '\015'`
15728
# On cygwin, bash can eat \r inside `` if the user requested igncr.
15729
# But we know of no other shell where ac_cr would be empty at this
15730
# point, so we can use a bashism as a fallback.
15731
if test "x$ac_cr" = x; then
15732
eval ac_cr=\$\'\\r\'
15734
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15735
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15738
ac_cs_awk_cr=$ac_cr
15741
echo 'BEGIN {' >"$tmp/subs1.awk" &&
15746
echo "cat >conf$$subs.awk <<_ACEOF" &&
15747
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15749
} >conf$$subs.sh ||
15750
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15751
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15753
for ac_last_try in false false false false false :; do
15754
. ./conf$$subs.sh ||
15755
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15757
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15758
if test $ac_delim_n = $ac_delim_num; then
15760
elif $ac_last_try; then
15761
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15763
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15766
rm -f conf$$subs.sh
15768
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15769
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15773
s/^/S["/; s/!.*/"]=/
15783
s/\(.\{148\}\)..*/\1/
15785
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15790
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15797
s/\(.\{148\}\)..*/\1/
15799
s/["\\]/\\&/g; s/^/"/; s/$/"/
15803
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15808
' <conf$$subs.awk | sed '
15813
' >>$CONFIG_STATUS || ac_write_fail=1
15814
rm -f conf$$subs.awk
15815
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15817
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15818
for (key in S) S_is_set[key] = 1
15824
nfields = split(line, field, "@")
15826
len = length(field[1])
15827
for (i = 2; i < nfields; i++) {
15829
keylen = length(key)
15830
if (S_is_set[key]) {
15832
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15833
len += length(value) + length(field[++i])
15844
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15845
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15846
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15849
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15850
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
15853
# VPATH may cause trouble with some makes, so we remove $(srcdir),
15854
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15855
# trailing colons and then remove the whole line if VPATH becomes empty
15856
# (actually we leave an empty line to preserve line numbers).
15857
if test "x$srcdir" = x.; then
15858
ac_vpsub='/^[ ]*VPATH[ ]*=/{
15859
s/:*\$(srcdir):*/:/
15860
s/:*\${srcdir}:*/:/
15862
s/^\([^=]*=[ ]*\):*/\1/
15868
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15869
fi # test -n "$CONFIG_FILES"
15871
# Set up the scripts for CONFIG_HEADERS section.
15872
# No need to generate them if there are no CONFIG_HEADERS.
15873
# This happens for instance with `./config.status Makefile'.
15874
if test -n "$CONFIG_HEADERS"; then
15875
cat >"$tmp/defines.awk" <<\_ACAWK ||
15879
# Transform confdefs.h into an awk script `defines.awk', embedded as
15880
# here-document in config.status, that substitutes the proper values into
15881
# config.h.in to produce config.h.
15883
# Create a delimiter string that does not exist in confdefs.h, to ease
15884
# handling of long lines.
15886
for ac_last_try in false false :; do
15887
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15888
if test -z "$ac_t"; then
15890
elif $ac_last_try; then
15891
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15893
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15897
# For the awk script, D is an array of macro values keyed by name,
15898
# likewise P contains macro parameters if any. Preserve backslash
15899
# newline sequences.
15901
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15903
s/.\{148\}/&'"$ac_delim"'/g
15906
s/^[ ]*#[ ]*define[ ][ ]*/ /
15913
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15915
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15919
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15920
D["\1"]=" \3\\\\\\n"\\/p
15922
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15927
s/.\{148\}/&'"$ac_delim"'/g
15932
s/["\\]/\\&/g; s/^/"/; s/$/"/p
15935
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15937
' <confdefs.h | sed '
15938
s/'"$ac_delim"'/"\\\
15939
"/g' >>$CONFIG_STATUS || ac_write_fail=1
15941
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15942
for (key in D) D_is_set[key] = 1
15945
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15947
split(line, arg, " ")
15948
if (arg[1] == "#") {
15952
defundef = substr(arg[1], 2)
15955
split(mac1, mac2, "(") #)
15957
prefix = substr(line, 1, index(line, defundef) - 1)
15958
if (D_is_set[macro]) {
15959
# Preserve the white space surrounding the "#".
15960
print prefix "define", macro P[macro] D[macro]
15963
# Replace #undef with comments. This is necessary, for example,
15964
# in the case of _POSIX_SOURCE, which is predefined and required
15965
# on some systems where configure will not decide to define it.
15966
if (defundef == "undef") {
15967
print "/*", prefix defundef, macro, "*/"
15975
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15976
as_fn_error "could not setup config headers machinery" "$LINENO" 5
15977
fi # test -n "$CONFIG_HEADERS"
15980
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15985
:[FHLC]) ac_mode=$ac_tag; continue;;
15987
case $ac_mode$ac_tag in
15989
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15990
:[FH]-) ac_tag=-:-;;
15991
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16008
-) ac_f="$tmp/stdin";;
16009
*) # Look for the file first in the build tree, then in the source tree
16010
# (if the path is not absolute). The absolute path cannot be DOS-style,
16011
# because $ac_f cannot contain `:'.
16015
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16017
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16019
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16020
as_fn_append ac_file_inputs " '$ac_f'"
16023
# Let's still pretend it is `configure' which instantiates (i.e., don't
16024
# use $as_me), people would be surprised to read:
16025
# /* config.h. Generated by config.status. */
16026
configure_input='Generated from '`
16027
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16029
if test x"$ac_file" != x-; then
16030
configure_input="$ac_file. $configure_input"
16031
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16032
$as_echo "$as_me: creating $ac_file" >&6;}
16034
# Neutralize special characters interpreted by sed in replacement strings.
16035
case $configure_input in #(
16036
*\&* | *\|* | *\\* )
16037
ac_sed_conf_input=`$as_echo "$configure_input" |
16038
sed 's/[\\\\&|]/\\\\&/g'`;; #(
16039
*) ac_sed_conf_input=$configure_input;;
16043
*:-:* | *:-) cat >"$tmp/stdin" \
16044
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16049
ac_dir=`$as_dirname -- "$ac_file" ||
16050
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16051
X"$ac_file" : 'X\(//\)[^/]' \| \
16052
X"$ac_file" : 'X\(//\)$' \| \
16053
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16054
$as_echo X"$ac_file" |
16055
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16059
/^X\(\/\/\)[^/].*/{
16072
as_dir="$ac_dir"; as_fn_mkdir_p
16076
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16078
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16079
# A ".." for each directory in $ac_dir_suffix.
16080
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16081
case $ac_top_builddir_sub in
16082
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16083
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16086
ac_abs_top_builddir=$ac_pwd
16087
ac_abs_builddir=$ac_pwd$ac_dir_suffix
16088
# for backward compatibility:
16089
ac_top_builddir=$ac_top_build_prefix
16092
.) # We are building in place.
16094
ac_top_srcdir=$ac_top_builddir_sub
16095
ac_abs_top_srcdir=$ac_pwd ;;
16096
[\\/]* | ?:[\\/]* ) # Absolute name.
16097
ac_srcdir=$srcdir$ac_dir_suffix;
16098
ac_top_srcdir=$srcdir
16099
ac_abs_top_srcdir=$srcdir ;;
16100
*) # Relative name.
16101
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16102
ac_top_srcdir=$ac_top_build_prefix$srcdir
16103
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16105
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16115
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16116
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16118
ac_MKDIR_P=$MKDIR_P
16120
[\\/$]* | ?:[\\/]* ) ;;
16121
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16125
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16126
# If the template does not know about datarootdir, expand it.
16127
# FIXME: This hack should be removed a few years after 2.60.
16128
ac_datarootdir_hack=; ac_datarootdir_seen=
16139
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16140
*datarootdir*) ac_datarootdir_seen=yes;;
16141
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16142
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16143
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16145
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16146
ac_datarootdir_hack='
16147
s&@datadir@&$datadir&g
16148
s&@docdir@&$docdir&g
16149
s&@infodir@&$infodir&g
16150
s&@localedir@&$localedir&g
16151
s&@mandir@&$mandir&g
16152
s&\\\${datarootdir}&$datarootdir&g' ;;
16156
# Neutralize VPATH when `$srcdir' = `.'.
16157
# Shell code in configure.ac might set extrasub.
16158
# FIXME: do we really want to maintain this feature?
16159
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16160
ac_sed_extra="$ac_vpsub
16163
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16165
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16166
s|@configure_input@|$ac_sed_conf_input|;t t
16167
s&@top_builddir@&$ac_top_builddir_sub&;t t
16168
s&@top_build_prefix@&$ac_top_build_prefix&;t t
16169
s&@srcdir@&$ac_srcdir&;t t
16170
s&@abs_srcdir@&$ac_abs_srcdir&;t t
16171
s&@top_srcdir@&$ac_top_srcdir&;t t
16172
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16173
s&@builddir@&$ac_builddir&;t t
16174
s&@abs_builddir@&$ac_abs_builddir&;t t
16175
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16176
s&@INSTALL@&$ac_INSTALL&;t t
16177
s&@MKDIR_P@&$ac_MKDIR_P&;t t
16178
$ac_datarootdir_hack
16180
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16181
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16183
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16184
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16185
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16186
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16187
which seems to be undefined. Please make sure it is defined." >&5
16188
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16189
which seems to be undefined. Please make sure it is defined." >&2;}
16193
-) cat "$tmp/out" && rm -f "$tmp/out";;
16194
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16196
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16202
if test x"$ac_file" != x-; then
16204
$as_echo "/* $configure_input */" \
16205
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16206
} >"$tmp/config.h" \
16207
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16208
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16209
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16210
$as_echo "$as_me: $ac_file is unchanged" >&6;}
16213
mv "$tmp/config.h" "$ac_file" \
16214
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16217
$as_echo "/* $configure_input */" \
16218
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16219
|| as_fn_error "could not create -" "$LINENO" 5
16221
# Compute "$ac_file"'s index in $config_headers.
16224
for _am_header in $config_headers :; do
16225
case $_am_header in
16226
$_am_arg | $_am_arg:* )
16229
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
16232
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16233
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16234
X"$_am_arg" : 'X\(//\)[^/]' \| \
16235
X"$_am_arg" : 'X\(//\)$' \| \
16236
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16237
$as_echo X"$_am_arg" |
16238
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16242
/^X\(\/\/\)[^/].*/{
16254
s/.*/./; q'`/stamp-h$_am_stamp_count
16257
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16258
$as_echo "$as_me: executing $ac_file commands" >&6;}
16263
case $ac_file$ac_mode in
16264
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16265
# Autoconf 2.62 quotes --file arguments for eval, but not when files
16266
# are listed without --file. Let's play safe and only enable the eval
16267
# if we detect the quoting.
16268
case $CONFIG_FILES in
16269
*\'*) eval set x "$CONFIG_FILES" ;;
16270
*) set x $CONFIG_FILES ;;
16275
# Strip MF so we end up with the name of the file.
16276
mf=`echo "$mf" | sed -e 's/:.*$//'`
16277
# Check whether this is an Automake generated Makefile or not.
16278
# We used to match only the files named `Makefile.in', but
16279
# some people rename them; so instead we look at the file content.
16280
# Grep'ing the first line is not enough: some people post-process
16281
# each Makefile.in and add a new line on top of each file to say so.
16282
# Grep'ing the whole file is not good either: AIX grep has a line
16283
# limit of 2048, but all sed's we know have understand at least 4000.
16284
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16285
dirpart=`$as_dirname -- "$mf" ||
16286
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16287
X"$mf" : 'X\(//\)[^/]' \| \
16288
X"$mf" : 'X\(//\)$' \| \
16289
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16291
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16295
/^X\(\/\/\)[^/].*/{
16311
# Extract the definition of DEPDIR, am__include, and am__quote
16312
# from the Makefile without running `make'.
16313
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16314
test -z "$DEPDIR" && continue
16315
am__include=`sed -n 's/^am__include = //p' < "$mf"`
16316
test -z "am__include" && continue
16317
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16318
# When using ansi2knr, U may be empty or an underscore; expand it
16319
U=`sed -n 's/^U = //p' < "$mf"`
16320
# Find all dependency output files, they are included files with
16321
# $(DEPDIR) in their names. We invoke sed twice because it is the
16322
# simplest approach to changing $(DEPDIR) to its actual value in the
16324
for file in `sed -n "
16325
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16326
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16327
# Make sure the directory exists.
16328
test -f "$dirpart/$file" && continue
16329
fdir=`$as_dirname -- "$file" ||
16330
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16331
X"$file" : 'X\(//\)[^/]' \| \
16332
X"$file" : 'X\(//\)$' \| \
16333
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16334
$as_echo X"$file" |
16335
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16339
/^X\(\/\/\)[^/].*/{
16352
as_dir=$dirpart/$fdir; as_fn_mkdir_p
16353
# echo "creating $dirpart/$file"
16354
echo '# dummy' > "$dirpart/$file"
16361
# See if we are running on zsh, and set the options which allow our
16362
# commands through without removal of \ escapes.
16363
if test -n "${ZSH_VERSION+set}" ; then
16364
setopt NO_GLOB_SUBST
16367
cfgfile="${ofile}T"
16368
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16371
cat <<_LT_EOF >> "$cfgfile"
16374
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16375
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16376
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16377
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16379
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16380
# 2006, 2007, 2008 Free Software Foundation, Inc.
16381
# Written by Gordon Matzigkeit, 1996
16383
# This file is part of GNU Libtool.
16385
# GNU Libtool is free software; you can redistribute it and/or
16386
# modify it under the terms of the GNU General Public License as
16387
# published by the Free Software Foundation; either version 2 of
16388
# the License, or (at your option) any later version.
16390
# As a special exception to the GNU General Public License,
16391
# if you distribute this file as part of a program or library that
16392
# is built using GNU Libtool, you may include this file under the
16393
# same distribution terms that you use for the rest of that program.
16395
# GNU Libtool is distributed in the hope that it will be useful,
16396
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16397
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16398
# GNU General Public License for more details.
16400
# You should have received a copy of the GNU General Public License
16401
# along with GNU Libtool; see the file COPYING. If not, a copy
16402
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16403
# obtained by writing to the Free Software Foundation, Inc.,
16404
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16407
# The names of the tagged configurations supported by this script.
16408
available_tags="CXX "
16410
# ### BEGIN LIBTOOL CONFIG
16412
# Which release of libtool.m4 was used?
16413
macro_version=$macro_version
16414
macro_revision=$macro_revision
16416
# Whether or not to build static libraries.
16417
build_old_libs=$enable_static
16419
# Whether or not to build shared libraries.
16420
build_libtool_libs=$enable_shared
16422
# What type of objects to build.
16425
# Whether or not to optimize for fast installation.
16426
fast_install=$enable_fast_install
16429
host_alias=$host_alias
16433
# The build system.
16434
build_alias=$build_alias
16438
# A sed program that does not truncate output.
16441
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16442
Xsed="\$SED -e 1s/^X//"
16444
# A grep program that handles long lines.
16450
# A literal string matcher.
16453
# A BSD- or MS-compatible name lister.
16456
# Whether we need soft or hard links.
16459
# What is the maximum length of a command?
16460
max_cmd_len=$max_cmd_len
16462
# Object file suffix (normally "o").
16465
# Executable file suffix (normally "").
16468
# whether the shell understands "unset".
16471
# turn spaces into newlines.
16474
# turn newlines into spaces.
16477
# How to create reloadable object files.
16478
reload_flag=$lt_reload_flag
16479
reload_cmds=$lt_reload_cmds
16481
# An object symbol dumper.
16482
OBJDUMP=$lt_OBJDUMP
16484
# Method to check whether dependent libraries are shared objects.
16485
deplibs_check_method=$lt_deplibs_check_method
16487
# Command to use when deplibs_check_method == "file_magic".
16488
file_magic_cmd=$lt_file_magic_cmd
16492
AR_FLAGS=$lt_AR_FLAGS
16494
# A symbol stripping program.
16497
# Commands used to install an old-style archive.
16499
old_postinstall_cmds=$lt_old_postinstall_cmds
16500
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16505
# LTCC compiler flags.
16506
LTCFLAGS=$lt_CFLAGS
16508
# Take the output of nm and produce a listing of raw symbols and C names.
16509
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16511
# Transform the output of nm in a proper C declaration.
16512
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16514
# Transform the output of nm in a C name address pair.
16515
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16517
# Transform the output of nm in a C name address pair when lib prefix is needed.
16518
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16520
# The name of the directory that contains temporary libtool files.
16523
# Shell to use when invoking shell scripts.
16526
# An echo program that does not interpret backslashes.
16529
# Used to examine libraries when file_magic_cmd begins with "file".
16530
MAGIC_CMD=$MAGIC_CMD
16532
# Must we lock files when doing compilation?
16533
need_locks=$lt_need_locks
16535
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16536
DSYMUTIL=$lt_DSYMUTIL
16538
# Tool to change global to local symbols on Mac OS X.
16541
# Tool to manipulate fat objects and archives on Mac OS X.
16544
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16547
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16548
OTOOL64=$lt_OTOOL64
16550
# Old archive suffix (normally "a").
16553
# Shared library suffix (normally ".so").
16554
shrext_cmds=$lt_shrext_cmds
16556
# The commands to extract the exported symbol list from a shared archive.
16557
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16559
# Variables whose values should be saved in libtool wrapper scripts and
16560
# restored at link time.
16561
variables_saved_for_relink=$lt_variables_saved_for_relink
16563
# Do we need the "lib" prefix for modules?
16564
need_lib_prefix=$need_lib_prefix
16566
# Do we need a version for libraries?
16567
need_version=$need_version
16569
# Library versioning type.
16570
version_type=$version_type
16572
# Shared library runtime path variable.
16573
runpath_var=$runpath_var
16575
# Shared library path variable.
16576
shlibpath_var=$shlibpath_var
16578
# Is shlibpath searched before the hard-coded library search path?
16579
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16581
# Format of library name prefix.
16582
libname_spec=$lt_libname_spec
16584
# List of archive names. First name is the real one, the rest are links.
16585
# The last name is the one that the linker finds with -lNAME
16586
library_names_spec=$lt_library_names_spec
16588
# The coded name of the library, if different from the real name.
16589
soname_spec=$lt_soname_spec
16591
# Command to use after installation of a shared archive.
16592
postinstall_cmds=$lt_postinstall_cmds
16594
# Command to use after uninstallation of a shared archive.
16595
postuninstall_cmds=$lt_postuninstall_cmds
16597
# Commands used to finish a libtool library installation in a directory.
16598
finish_cmds=$lt_finish_cmds
16600
# As "finish_cmds", except a single script fragment to be evaled but
16602
finish_eval=$lt_finish_eval
16604
# Whether we should hardcode library paths into libraries.
16605
hardcode_into_libs=$hardcode_into_libs
16607
# Compile-time system search path for libraries.
16608
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16610
# Run-time system search path for libraries.
16611
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16613
# Whether dlopen is supported.
16614
dlopen_support=$enable_dlopen
16616
# Whether dlopen of programs is supported.
16617
dlopen_self=$enable_dlopen_self
16619
# Whether dlopen of statically linked programs is supported.
16620
dlopen_self_static=$enable_dlopen_self_static
16622
# Commands to strip libraries.
16623
old_striplib=$lt_old_striplib
16624
striplib=$lt_striplib
16627
# The linker used to build libraries.
16630
# Commands used to build an old-style archive.
16631
old_archive_cmds=$lt_old_archive_cmds
16633
# A language specific compiler.
16636
# Is the compiler the GNU compiler?
16639
# Compiler flag to turn off builtin functions.
16640
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16642
# How to pass a linker flag through the compiler.
16643
wl=$lt_lt_prog_compiler_wl
16645
# Additional compiler flags for building library objects.
16646
pic_flag=$lt_lt_prog_compiler_pic
16648
# Compiler flag to prevent dynamic linking.
16649
link_static_flag=$lt_lt_prog_compiler_static
16651
# Does compiler simultaneously support -c and -o options?
16652
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16654
# Whether or not to add -lc for building shared libraries.
16655
build_libtool_need_lc=$archive_cmds_need_lc
16657
# Whether or not to disallow shared libs when runtime libs are static.
16658
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16660
# Compiler flag to allow reflexive dlopens.
16661
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16663
# Compiler flag to generate shared objects directly from archives.
16664
whole_archive_flag_spec=$lt_whole_archive_flag_spec
16666
# Whether the compiler copes with passing no objects directly.
16667
compiler_needs_object=$lt_compiler_needs_object
16669
# Create an old-style archive from a shared archive.
16670
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16672
# Create a temporary old-style archive to link instead of a shared archive.
16673
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16675
# Commands used to build a shared archive.
16676
archive_cmds=$lt_archive_cmds
16677
archive_expsym_cmds=$lt_archive_expsym_cmds
16679
# Commands used to build a loadable module if different from building
16680
# a shared archive.
16681
module_cmds=$lt_module_cmds
16682
module_expsym_cmds=$lt_module_expsym_cmds
16684
# Whether we are building with GNU ld or not.
16685
with_gnu_ld=$lt_with_gnu_ld
16687
# Flag that allows shared libraries with undefined symbols to be built.
16688
allow_undefined_flag=$lt_allow_undefined_flag
16690
# Flag that enforces no undefined symbols.
16691
no_undefined_flag=$lt_no_undefined_flag
16693
# Flag to hardcode \$libdir into a binary during linking.
16694
# This must work even if \$libdir does not exist
16695
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16697
# If ld is used when linking, flag to hardcode \$libdir into a binary
16698
# during linking. This must work even if \$libdir does not exist.
16699
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16701
# Whether we need a single "-rpath" flag with a separated argument.
16702
hardcode_libdir_separator=$lt_hardcode_libdir_separator
16704
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16705
# DIR into the resulting binary.
16706
hardcode_direct=$hardcode_direct
16708
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16709
# DIR into the resulting binary and the resulting library dependency is
16710
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16711
# library is relocated.
16712
hardcode_direct_absolute=$hardcode_direct_absolute
16714
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16715
# into the resulting binary.
16716
hardcode_minus_L=$hardcode_minus_L
16718
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16719
# into the resulting binary.
16720
hardcode_shlibpath_var=$hardcode_shlibpath_var
16722
# Set to "yes" if building a shared library automatically hardcodes DIR
16723
# into the library and all subsequent libraries and executables linked
16725
hardcode_automatic=$hardcode_automatic
16727
# Set to yes if linker adds runtime paths of dependent libraries
16728
# to runtime path list.
16729
inherit_rpath=$inherit_rpath
16731
# Whether libtool must link a program against all its dependency libraries.
16732
link_all_deplibs=$link_all_deplibs
16734
# Fix the shell variable \$srcfile for the compiler.
16735
fix_srcfile_path=$lt_fix_srcfile_path
16737
# Set to "yes" if exported symbols are required.
16738
always_export_symbols=$always_export_symbols
16740
# The commands to list exported symbols.
16741
export_symbols_cmds=$lt_export_symbols_cmds
16743
# Symbols that should not be listed in the preloaded symbols.
16744
exclude_expsyms=$lt_exclude_expsyms
16746
# Symbols that must always be exported.
16747
include_expsyms=$lt_include_expsyms
16749
# Commands necessary for linking programs (against libraries) with templates.
16750
prelink_cmds=$lt_prelink_cmds
16752
# Specify filename containing input files.
16753
file_list_spec=$lt_file_list_spec
16755
# How to hardcode a shared library path into an executable.
16756
hardcode_action=$hardcode_action
16758
# The directories searched by this compiler when creating a shared library.
16759
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16761
# Dependencies to place before and after the objects being linked to
16762
# create a shared library.
16763
predep_objects=$lt_predep_objects
16764
postdep_objects=$lt_postdep_objects
16765
predeps=$lt_predeps
16766
postdeps=$lt_postdeps
16768
# The library search path used internally by the compiler when linking
16769
# a shared library.
16770
compiler_lib_search_path=$lt_compiler_lib_search_path
16772
# ### END LIBTOOL CONFIG
16778
cat <<\_LT_EOF >> "$cfgfile"
16779
# AIX sometimes has problems with the GCC collect2 program. For some
16780
# reason, if we set the COLLECT_NAMES environment variable, the problems
16781
# vanish in a puff of smoke.
16782
if test "X${COLLECT_NAMES+set}" != Xset; then
16784
export COLLECT_NAMES
16791
ltmain="$ac_aux_dir/ltmain.sh"
16794
# We use sed instead of cat because bash on DJGPP gets confused if
16795
# if finds mixed CR/LF and LF-only lines. Since sed operates in
16796
# text mode, it properly converts lines to CR/LF. This bash problem
16797
# is reportedly fixed, but why not run on old versions too?
16798
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16799
|| (rm -f "$cfgfile"; exit 1)
16803
cat << \_LT_EOF >> "$cfgfile"
16805
# func_dirname file append nondir_replacement
16806
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16807
# otherwise set result to NONDIR_REPLACEMENT.
16811
*/*) func_dirname_result="${1%/*}${2}" ;;
16812
* ) func_dirname_result="${3}" ;;
16816
# func_basename file
16819
func_basename_result="${1##*/}"
16822
# func_dirname_and_basename file append nondir_replacement
16823
# perform func_basename and func_dirname in a single function
16825
# dirname: Compute the dirname of FILE. If nonempty,
16826
# add APPEND to the result, otherwise set result
16827
# to NONDIR_REPLACEMENT.
16828
# value returned in "$func_dirname_result"
16829
# basename: Compute filename of FILE.
16830
# value retuned in "$func_basename_result"
16831
# Implementation must be kept synchronized with func_dirname
16832
# and func_basename. For efficiency, we do not delegate to
16833
# those functions but instead duplicate the functionality here.
16834
func_dirname_and_basename ()
16837
*/*) func_dirname_result="${1%/*}${2}" ;;
16838
* ) func_dirname_result="${3}" ;;
16840
func_basename_result="${1##*/}"
16843
# func_stripname prefix suffix name
16844
# strip PREFIX and SUFFIX off of NAME.
16845
# PREFIX and SUFFIX must not contain globbing or regex special
16846
# characters, hashes, percent signs, but SUFFIX may contain a leading
16847
# dot (in which case that matches only a dot).
16850
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16851
# positional parameters, so assign one to ordinary parameter first.
16852
func_stripname_result=${3}
16853
func_stripname_result=${func_stripname_result#"${1}"}
16854
func_stripname_result=${func_stripname_result%"${2}"}
16860
func_opt_split_opt=${1%%=*}
16861
func_opt_split_arg=${1#*=}
16868
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16869
*) func_lo2o_result=${1} ;;
16873
# func_xform libobj-or-source
16876
func_xform_result=${1%.*}.lo
16879
# func_arith arithmetic-term...
16882
func_arith_result=$(( $* ))
16886
# STRING may not start with a hyphen.
16889
func_len_result=${#1}
16894
*) # Bourne compatible functions.
16895
cat << \_LT_EOF >> "$cfgfile"
16897
# func_dirname file append nondir_replacement
16898
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16899
# otherwise set result to NONDIR_REPLACEMENT.
16902
# Extract subdirectory from the argument.
16903
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16904
if test "X$func_dirname_result" = "X${1}"; then
16905
func_dirname_result="${3}"
16907
func_dirname_result="$func_dirname_result${2}"
16911
# func_basename file
16914
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16918
# func_stripname prefix suffix name
16919
# strip PREFIX and SUFFIX off of NAME.
16920
# PREFIX and SUFFIX must not contain globbing or regex special
16921
# characters, hashes, percent signs, but SUFFIX may contain a leading
16922
# dot (in which case that matches only a dot).
16923
# func_strip_suffix prefix name
16927
.*) func_stripname_result=`$ECHO "X${3}" \
16928
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16929
*) func_stripname_result=`$ECHO "X${3}" \
16930
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16935
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16936
my_sed_long_arg='1s/^-[^=]*=//'
16941
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16942
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16948
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16951
# func_xform libobj-or-source
16954
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16957
# func_arith arithmetic-term...
16960
func_arith_result=`expr "$@"`
16964
# STRING may not start with a hyphen.
16967
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16973
case $lt_shell_append in
16975
cat << \_LT_EOF >> "$cfgfile"
16977
# func_append var value
16978
# Append VALUE to the end of shell variable VAR.
16986
cat << \_LT_EOF >> "$cfgfile"
16988
# func_append var value
16989
# Append VALUE to the end of shell variable VAR.
17000
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17001
|| (rm -f "$cfgfile"; exit 1)
17003
mv -f "$cfgfile" "$ofile" ||
17004
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17008
cat <<_LT_EOF >> "$ofile"
17010
# ### BEGIN LIBTOOL TAG CONFIG: CXX
17012
# The linker used to build libraries.
17015
# Commands used to build an old-style archive.
17016
old_archive_cmds=$lt_old_archive_cmds_CXX
17018
# A language specific compiler.
17019
CC=$lt_compiler_CXX
17021
# Is the compiler the GNU compiler?
17024
# Compiler flag to turn off builtin functions.
17025
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17027
# How to pass a linker flag through the compiler.
17028
wl=$lt_lt_prog_compiler_wl_CXX
17030
# Additional compiler flags for building library objects.
17031
pic_flag=$lt_lt_prog_compiler_pic_CXX
17033
# Compiler flag to prevent dynamic linking.
17034
link_static_flag=$lt_lt_prog_compiler_static_CXX
17036
# Does compiler simultaneously support -c and -o options?
17037
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17039
# Whether or not to add -lc for building shared libraries.
17040
build_libtool_need_lc=$archive_cmds_need_lc_CXX
17042
# Whether or not to disallow shared libs when runtime libs are static.
17043
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17045
# Compiler flag to allow reflexive dlopens.
17046
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17048
# Compiler flag to generate shared objects directly from archives.
17049
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17051
# Whether the compiler copes with passing no objects directly.
17052
compiler_needs_object=$lt_compiler_needs_object_CXX
17054
# Create an old-style archive from a shared archive.
17055
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17057
# Create a temporary old-style archive to link instead of a shared archive.
17058
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17060
# Commands used to build a shared archive.
17061
archive_cmds=$lt_archive_cmds_CXX
17062
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17064
# Commands used to build a loadable module if different from building
17065
# a shared archive.
17066
module_cmds=$lt_module_cmds_CXX
17067
module_expsym_cmds=$lt_module_expsym_cmds_CXX
17069
# Whether we are building with GNU ld or not.
17070
with_gnu_ld=$lt_with_gnu_ld_CXX
17072
# Flag that allows shared libraries with undefined symbols to be built.
17073
allow_undefined_flag=$lt_allow_undefined_flag_CXX
17075
# Flag that enforces no undefined symbols.
17076
no_undefined_flag=$lt_no_undefined_flag_CXX
17078
# Flag to hardcode \$libdir into a binary during linking.
17079
# This must work even if \$libdir does not exist
17080
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17082
# If ld is used when linking, flag to hardcode \$libdir into a binary
17083
# during linking. This must work even if \$libdir does not exist.
17084
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17086
# Whether we need a single "-rpath" flag with a separated argument.
17087
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17089
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17090
# DIR into the resulting binary.
17091
hardcode_direct=$hardcode_direct_CXX
17093
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17094
# DIR into the resulting binary and the resulting library dependency is
17095
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17096
# library is relocated.
17097
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17099
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17100
# into the resulting binary.
17101
hardcode_minus_L=$hardcode_minus_L_CXX
17103
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17104
# into the resulting binary.
17105
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17107
# Set to "yes" if building a shared library automatically hardcodes DIR
17108
# into the library and all subsequent libraries and executables linked
17110
hardcode_automatic=$hardcode_automatic_CXX
17112
# Set to yes if linker adds runtime paths of dependent libraries
17113
# to runtime path list.
17114
inherit_rpath=$inherit_rpath_CXX
17116
# Whether libtool must link a program against all its dependency libraries.
17117
link_all_deplibs=$link_all_deplibs_CXX
17119
# Fix the shell variable \$srcfile for the compiler.
17120
fix_srcfile_path=$lt_fix_srcfile_path_CXX
17122
# Set to "yes" if exported symbols are required.
17123
always_export_symbols=$always_export_symbols_CXX
17125
# The commands to list exported symbols.
17126
export_symbols_cmds=$lt_export_symbols_cmds_CXX
17128
# Symbols that should not be listed in the preloaded symbols.
17129
exclude_expsyms=$lt_exclude_expsyms_CXX
17131
# Symbols that must always be exported.
17132
include_expsyms=$lt_include_expsyms_CXX
17134
# Commands necessary for linking programs (against libraries) with templates.
17135
prelink_cmds=$lt_prelink_cmds_CXX
17137
# Specify filename containing input files.
17138
file_list_spec=$lt_file_list_spec_CXX
17140
# How to hardcode a shared library path into an executable.
17141
hardcode_action=$hardcode_action_CXX
17143
# The directories searched by this compiler when creating a shared library.
17144
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17146
# Dependencies to place before and after the objects being linked to
17147
# create a shared library.
17148
predep_objects=$lt_predep_objects_CXX
17149
postdep_objects=$lt_postdep_objects_CXX
17150
predeps=$lt_predeps_CXX
17151
postdeps=$lt_postdeps_CXX
17153
# The library search path used internally by the compiler when linking
17154
# a shared library.
17155
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17157
# ### END LIBTOOL TAG CONFIG: CXX
17168
ac_clean_files=$ac_clean_files_save
17170
test $ac_write_fail = 0 ||
17171
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17174
# configure is writing to config.log, and then calls config.status.
17175
# config.status does its own redirection, appending to config.log.
17176
# Unfortunately, on DOS this fails, as config.log is still kept open
17177
# by configure, so config.status won't be able to write to it; its
17178
# output is simply discarded. So we exec the FD to /dev/null,
17179
# effectively closing config.log, so it can be properly (re)opened and
17180
# appended to by config.status. When coming back to configure, we
17181
# need to make the FD available again.
17182
if test "$no_create" != yes; then
17184
ac_config_status_args=
17185
test "$silent" = yes &&
17186
ac_config_status_args="$ac_config_status_args --quiet"
17188
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17190
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
17191
# would make configure fail if this is the last instruction.
17192
$ac_cs_success || as_fn_exit $?
17196
# CONFIG_SUBDIRS section.
17198
if test "$no_recursion" != yes; then
17200
# Remove --cache-file, --srcdir, and --disable-option-checking arguments
17201
# so they do not pile up.
17202
ac_sub_configure_args=
17204
eval "set x $ac_configure_args"
17208
if test -n "$ac_prev"; then
17213
-cache-file | --cache-file | --cache-fil | --cache-fi \
17214
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17215
ac_prev=cache_file ;;
17216
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17217
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17220
--config-cache | -C)
17222
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17224
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17226
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17228
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17230
--disable-option-checking)
17234
*\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17236
as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17240
# Always prepend --prefix to ensure using the same prefix
17241
# in subdir configurations.
17242
ac_arg="--prefix=$prefix"
17244
*\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17246
ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17249
if test "$silent" = yes; then
17250
ac_sub_configure_args="--silent $ac_sub_configure_args"
17253
# Always prepend --disable-option-checking to silence warnings, since
17254
# different subdirs can have different --enable and --with options.
17255
ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17258
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17260
# Do not complain, so a configure script can configure whichever
17261
# parts of a large source tree are present.
17262
test -d "$srcdir/$ac_dir" || continue
17264
ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17265
$as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17266
$as_echo "$ac_msg" >&6
17267
as_dir="$ac_dir"; as_fn_mkdir_p
17271
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17273
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17274
# A ".." for each directory in $ac_dir_suffix.
17275
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17276
case $ac_top_builddir_sub in
17277
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17278
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17281
ac_abs_top_builddir=$ac_pwd
17282
ac_abs_builddir=$ac_pwd$ac_dir_suffix
17283
# for backward compatibility:
17284
ac_top_builddir=$ac_top_build_prefix
17287
.) # We are building in place.
17289
ac_top_srcdir=$ac_top_builddir_sub
17290
ac_abs_top_srcdir=$ac_pwd ;;
17291
[\\/]* | ?:[\\/]* ) # Absolute name.
17292
ac_srcdir=$srcdir$ac_dir_suffix;
17293
ac_top_srcdir=$srcdir
17294
ac_abs_top_srcdir=$srcdir ;;
17295
*) # Relative name.
17296
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17297
ac_top_srcdir=$ac_top_build_prefix$srcdir
17298
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17300
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17305
# Check for guested configure; otherwise get Cygnus style configure.
17306
if test -f "$ac_srcdir/configure.gnu"; then
17307
ac_sub_configure=$ac_srcdir/configure.gnu
17308
elif test -f "$ac_srcdir/configure"; then
17309
ac_sub_configure=$ac_srcdir/configure
17310
elif test -f "$ac_srcdir/configure.in"; then
17311
# This should be Cygnus configure.
17312
ac_sub_configure=$ac_aux_dir/configure
17314
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17315
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17319
# The recursion is here.
17320
if test -n "$ac_sub_configure"; then
17321
# Make the cache file name correct relative to the subdirectory.
17322
case $cache_file in
17323
[\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17324
*) # Relative name.
17325
ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17328
{ $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
17329
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17330
# The eval makes quoting arguments work.
17331
eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17332
--cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17333
as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17339
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17340
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17341
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}