2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69 for libcmis 0.4.1.
6
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in #(
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46
as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
as_echo_n='/usr/ucb/echo -n'
55
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
expr "X$arg" : "X\\(.*\\)$as_nl";
61
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
as_echo_n='sh -c $as_echo_n_body as_echo'
69
as_echo='sh -c $as_echo_body as_echo'
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
75
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83
# We need space, tab and new line, in precisely that order. Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
89
# Find who we are. Look in the path if we contain no directory separator.
92
*[\\/]* ) as_myself=$0 ;;
93
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97
test -z "$as_dir" && as_dir=.
98
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104
# We did not find ourselves, most probably we were run as `sh COMMAND'
105
# in which case we are not to be found in the path.
106
if test "x$as_myself" = x; then
109
if test ! -f "$as_myself"; then
110
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114
# Unset variables that we do not need and which cause bugs (e.g. in
115
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116
# suppresses any "Segmentation fault" message there. '((' could
117
# trigger a bug in pdksh 5.2.14.
118
for as_var in BASH_ENV ENV MAIL MAILPATH
119
do eval test x\${$as_var+set} = xset \
120
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
# Use a proper internal environment variable to ensure we don't fall
136
# into an infinite loop, continuously re-executing ourselves.
137
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138
_as_can_reexec=no; export _as_can_reexec;
139
# We cannot yet assume a decent shell, so we have to provide a
140
# neutralization value for shells without unset; and this also
141
# works around shells that cannot unset nonexistent variables.
142
# Preserve -v and -x to the replacement shell.
145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147
*v*x* | *x*v* ) as_opts=-vx ;;
152
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153
# Admittedly, this is quite paranoid, since all the known shells bail
154
# out after a failed `exec'.
155
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158
# We don't want this to propagate to other subprocesses.
159
{ _as_can_reexec=; unset _as_can_reexec;}
160
if test "x$CONFIG_SHELL" = x; then
161
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165
# is contrary to our usage. Disable this feature.
166
alias -g '\${1+\"\$@\"}'='\"\$@\"'
169
case \`(set -o) 2>/dev/null\` in #(
177
as_required="as_fn_return () { (exit \$1); }
178
as_fn_success () { as_fn_return 0; }
179
as_fn_failure () { as_fn_return 1; }
180
as_fn_ret_success () { return 0; }
181
as_fn_ret_failure () { return 1; }
184
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
exitcode=1; echo positional parameters were not saved.
193
test x\$exitcode = x0 || exit 1
195
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204
PATH=/empty FPATH=/empty; export PATH FPATH
205
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207
test \$(( 1 + 1 )) = 2 || exit 1"
208
if (eval "$as_required") 2>/dev/null; then :
213
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221
test -z "$as_dir" && as_dir=.
225
for as_base in sh bash ksh sh5; do
226
# Try only shells that exist, to save several forks.
227
as_shell=$as_dir/$as_base
228
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230
CONFIG_SHELL=$as_shell as_have_required=yes
231
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241
CONFIG_SHELL=$SHELL as_have_required=yes
246
if test "x$CONFIG_SHELL" != x; then :
248
# We cannot yet assume a decent shell, so we have to provide a
249
# neutralization value for shells without unset; and this also
250
# works around shells that cannot unset nonexistent variables.
251
# Preserve -v and -x to the replacement shell.
254
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256
*v*x* | *x*v* ) as_opts=-vx ;;
261
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262
# Admittedly, this is quite paranoid, since all the known shells bail
263
# out after a failed `exec'.
264
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268
if test x$as_have_required = xno; then :
269
$as_echo "$0: This script requires a shell more modern than all"
270
$as_echo "$0: the shells that I found on your system."
271
if test x${ZSH_VERSION+set} = xset ; then
272
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
275
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276
$0: including any error possibly output before this
277
$0: message. Then install a modern shell, or manually run
278
$0: the script under such a shell if you do have one."
284
SHELL=${CONFIG_SHELL-/bin/sh}
286
# Unset more variables known to interfere with behavior of common tools.
287
CLICOLOR_FORCE= GREP_OPTIONS=
288
unset CLICOLOR_FORCE GREP_OPTIONS
290
## --------------------- ##
291
## M4sh Shell Functions. ##
292
## --------------------- ##
295
# Portably unset VAR.
298
{ eval $1=; unset $1;}
302
# as_fn_set_status STATUS
303
# -----------------------
304
# Set $? to STATUS, without forking.
312
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322
# Create "$as_dir" as a directory, including parents if necessary.
327
-*) as_dir=./$as_dir;;
329
test -d "$as_dir" || eval $as_mkdir_p || {
333
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336
as_dirs="'$as_qdir' $as_dirs"
337
as_dir=`$as_dirname -- "$as_dir" ||
338
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339
X"$as_dir" : 'X\(//\)[^/]' \| \
340
X"$as_dir" : 'X\(//\)$' \| \
341
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342
$as_echo X"$as_dir" |
343
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360
test -d "$as_dir" && break
362
test -z "$as_dirs" || eval "mkdir $as_dirs"
363
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
# as_fn_executable_p FILE
369
# -----------------------
370
# Test if FILE is an executable regular file.
371
as_fn_executable_p ()
373
test -f "$1" && test -x "$1"
374
} # as_fn_executable_p
375
# as_fn_append VAR VALUE
376
# ----------------------
377
# Append the text in VALUE to the end of the definition contained in VAR. Take
378
# advantage of any shell optimizations that allow amortized linear growth over
379
# repeated appends, instead of the typical quadratic growth present in naive
381
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382
eval 'as_fn_append ()
395
# Perform arithmetic evaluation on the ARGs, and store the result in the
396
# global $as_val. Take advantage of shells that can avoid forks. The arguments
397
# must be portable across $(()) and expr.
398
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406
as_val=`expr "$@" || test $? -eq 1`
411
# as_fn_error STATUS ERROR [LINENO LOG_FD]
412
# ----------------------------------------
413
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415
# script with STATUS, using 1 if that was 0.
418
as_status=$1; test $as_status -eq 0 && as_status=1
420
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423
$as_echo "$as_me: error: $2" >&2
424
as_fn_exit $as_status
427
if expr a : '\(a\)' >/dev/null 2>&1 &&
428
test "X`expr 00001 : '.*\(...\)'`" = X001; then
434
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446
as_me=`$as_basename -- "$0" ||
447
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448
X"$0" : 'X\(//\)$' \| \
449
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451
sed '/^.*\/\([^/][^/]*\)\/*$/{
465
# Avoid depending upon Character Ranges.
466
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469
as_cr_digits='0123456789'
470
as_cr_alnum=$as_cr_Letters$as_cr_digits
473
as_lineno_1=$LINENO as_lineno_1a=$LINENO
474
as_lineno_2=$LINENO as_lineno_2a=$LINENO
475
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493
chmod +x "$as_me.lineno" ||
494
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497
# already done that, so ensure we don't try to do so again and fall
498
# in an infinite loop. This has already happened in practice.
499
_as_can_reexec=no; export _as_can_reexec
500
# Don't try to exec as it changes $[0], causing all sort of problems
501
# (the dirname of $[0] is not the place where we might find the
502
# original and so on. Autoconf is especially sensitive to this).
504
# Exit status is that of the last command.
508
ECHO_C= ECHO_N= ECHO_T=
509
case `echo -n x` in #(((((
511
case `echo 'xy\c'` in
512
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
514
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521
rm -f conf$$ conf$$.exe conf$$.file
522
if test -d conf$$.dir; then
523
rm -f conf$$.dir/conf$$.file
526
mkdir conf$$.dir 2>/dev/null
528
if (echo >conf$$.file) 2>/dev/null; then
529
if ln -s conf$$.file conf$$ 2>/dev/null; then
531
# ... but there are two gotchas:
532
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534
# In both cases, we have to default to `cp -pR'.
535
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537
elif ln conf$$.file conf$$ 2>/dev/null; then
545
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546
rmdir conf$$.dir 2>/dev/null
548
if mkdir -p . 2>/dev/null; then
549
as_mkdir_p='mkdir -p "$as_dir"'
551
test -d ./-p && rmdir ./-p
556
as_executable_p=as_fn_executable_p
558
# Sed expression to map a string onto a valid CPP name.
559
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561
# Sed expression to map a string onto a valid variable name.
562
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564
SHELL=${CONFIG_SHELL-/bin/sh}
567
test -n "$DJDIR" || exec 7<&0 </dev/null
571
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572
# so uname gets run too.
573
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
ac_default_prefix=/usr/local
580
ac_config_libobj_dir=.
587
# Identity of this package.
588
PACKAGE_NAME='libcmis'
589
PACKAGE_TARNAME='libcmis'
590
PACKAGE_VERSION='0.4.1'
591
PACKAGE_STRING='libcmis 0.4.1'
595
# Factoring default headers for most tests.
596
ac_includes_default="\
598
#ifdef HAVE_SYS_TYPES_H
599
# include <sys/types.h>
601
#ifdef HAVE_SYS_STAT_H
602
# include <sys/stat.h>
608
# ifdef HAVE_STDLIB_H
613
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618
#ifdef HAVE_STRINGS_H
619
# include <strings.h>
621
#ifdef HAVE_INTTYPES_H
622
# include <inttypes.h>
631
ac_subst_vars='am__EXEEXT_FALSE
635
BOOST_PROGRAM_OPTIONS_LIBS
636
BOOST_PROGRAM_OPTIONS_LDFLAGS
638
BOOST_DATE_TIME_LDFLAGS
640
DISTCHECK_CONFIGURE_FLAGS
651
ENABLE_CPPCHECK_FALSE
654
WITH_LIBCMIS_MAN_FALSE
655
WITH_LIBCMIS_MAN_TRUE
715
ENABLE_LONG_TESTS_FALSE
716
ENABLE_LONG_TESTS_TRUE
733
INSTALL_STRIP_PROGRAM
775
program_transform_name
788
enable_option_checking
793
enable_dependency_tracking
806
ac_precious_vars='build_alias
831
# Initialize some variables set by options.
833
ac_init_version=false
834
ac_unrecognized_opts=
836
# The variables have the same names as the options, with
837
# dashes changed to underlines.
845
program_transform_name=s,x,x,
853
# Installation directory options.
854
# These are left unexpanded so users can "make install exec_prefix=/foo"
855
# and all the variables that are supposed to be based on exec_prefix
856
# by default will actually change.
857
# Use braces instead of parens because sh, perl, etc. also accept them.
858
# (The list follows the same order as the GNU Coding Standards.)
859
bindir='${exec_prefix}/bin'
860
sbindir='${exec_prefix}/sbin'
861
libexecdir='${exec_prefix}/libexec'
862
datarootdir='${prefix}/share'
863
datadir='${datarootdir}'
864
sysconfdir='${prefix}/etc'
865
sharedstatedir='${prefix}/com'
866
localstatedir='${prefix}/var'
867
includedir='${prefix}/include'
868
oldincludedir='/usr/include'
869
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870
infodir='${datarootdir}/info'
875
libdir='${exec_prefix}/lib'
876
localedir='${datarootdir}/locale'
877
mandir='${datarootdir}/man'
883
# If the previous option needs an argument, assign it.
884
if test -n "$ac_prev"; then
885
eval $ac_prev=\$ac_option
891
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896
# Accept the important Cygnus configure options, so we can diagnose typos.
898
case $ac_dashdash$ac_option in
902
-bindir | --bindir | --bindi | --bind | --bin | --bi)
904
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907
-build | --build | --buil | --bui | --bu)
908
ac_prev=build_alias ;;
909
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
910
build_alias=$ac_optarg ;;
912
-cache-file | --cache-file | --cache-fil | --cache-fi \
913
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914
ac_prev=cache_file ;;
915
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917
cache_file=$ac_optarg ;;
920
cache_file=config.cache ;;
922
-datadir | --datadir | --datadi | --datad)
924
-datadir=* | --datadir=* | --datadi=* | --datad=*)
925
datadir=$ac_optarg ;;
927
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928
| --dataroo | --dataro | --datar)
929
ac_prev=datarootdir ;;
930
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932
datarootdir=$ac_optarg ;;
934
-disable-* | --disable-*)
935
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936
# Reject names that are not valid shell variable names.
937
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938
as_fn_error $? "invalid feature name: $ac_useropt"
939
ac_useropt_orig=$ac_useropt
940
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941
case $ac_user_opts in
945
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946
ac_unrecognized_sep=', ';;
948
eval enable_$ac_useropt=no ;;
950
-docdir | --docdir | --docdi | --doc | --do)
952
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960
-enable-* | --enable-*)
961
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962
# Reject names that are not valid shell variable names.
963
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964
as_fn_error $? "invalid feature name: $ac_useropt"
965
ac_useropt_orig=$ac_useropt
966
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967
case $ac_user_opts in
971
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972
ac_unrecognized_sep=', ';;
974
eval enable_$ac_useropt=\$ac_optarg ;;
976
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978
| --exec | --exe | --ex)
979
ac_prev=exec_prefix ;;
980
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982
| --exec=* | --exe=* | --ex=*)
983
exec_prefix=$ac_optarg ;;
985
-gas | --gas | --ga | --g)
986
# Obsolete; use --with-gas.
989
-help | --help | --hel | --he | -h)
991
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992
ac_init_help=recursive ;;
993
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994
ac_init_help=short ;;
996
-host | --host | --hos | --ho)
997
ac_prev=host_alias ;;
998
-host=* | --host=* | --hos=* | --ho=*)
999
host_alias=$ac_optarg ;;
1001
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005
htmldir=$ac_optarg ;;
1007
-includedir | --includedir | --includedi | --included | --include \
1008
| --includ | --inclu | --incl | --inc)
1009
ac_prev=includedir ;;
1010
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011
| --includ=* | --inclu=* | --incl=* | --inc=*)
1012
includedir=$ac_optarg ;;
1014
-infodir | --infodir | --infodi | --infod | --info | --inf)
1016
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017
infodir=$ac_optarg ;;
1019
-libdir | --libdir | --libdi | --libd)
1021
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1022
libdir=$ac_optarg ;;
1024
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025
| --libexe | --libex | --libe)
1026
ac_prev=libexecdir ;;
1027
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028
| --libexe=* | --libex=* | --libe=*)
1029
libexecdir=$ac_optarg ;;
1031
-localedir | --localedir | --localedi | --localed | --locale)
1032
ac_prev=localedir ;;
1033
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034
localedir=$ac_optarg ;;
1036
-localstatedir | --localstatedir | --localstatedi | --localstated \
1037
| --localstate | --localstat | --localsta | --localst | --locals)
1038
ac_prev=localstatedir ;;
1039
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041
localstatedir=$ac_optarg ;;
1043
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046
mandir=$ac_optarg ;;
1048
-nfp | --nfp | --nf)
1049
# Obsolete; use --without-fp.
1052
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053
| --no-cr | --no-c | -n)
1056
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062
| --oldin | --oldi | --old | --ol | --o)
1063
ac_prev=oldincludedir ;;
1064
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067
oldincludedir=$ac_optarg ;;
1069
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072
prefix=$ac_optarg ;;
1074
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1075
| --program-pre | --program-pr | --program-p)
1076
ac_prev=program_prefix ;;
1077
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1078
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079
program_prefix=$ac_optarg ;;
1081
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1082
| --program-suf | --program-su | --program-s)
1083
ac_prev=program_suffix ;;
1084
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1085
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086
program_suffix=$ac_optarg ;;
1088
-program-transform-name | --program-transform-name \
1089
| --program-transform-nam | --program-transform-na \
1090
| --program-transform-n | --program-transform- \
1091
| --program-transform | --program-transfor \
1092
| --program-transfo | --program-transf \
1093
| --program-trans | --program-tran \
1094
| --progr-tra | --program-tr | --program-t)
1095
ac_prev=program_transform_name ;;
1096
-program-transform-name=* | --program-transform-name=* \
1097
| --program-transform-nam=* | --program-transform-na=* \
1098
| --program-transform-n=* | --program-transform-=* \
1099
| --program-transform=* | --program-transfor=* \
1100
| --program-transfo=* | --program-transf=* \
1101
| --program-trans=* | --program-tran=* \
1102
| --progr-tra=* | --program-tr=* | --program-t=*)
1103
program_transform_name=$ac_optarg ;;
1105
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108
pdfdir=$ac_optarg ;;
1110
-psdir | --psdir | --psdi | --psd | --ps)
1112
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116
| -silent | --silent | --silen | --sile | --sil)
1119
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123
sbindir=$ac_optarg ;;
1125
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1126
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127
| --sharedst | --shareds | --shared | --share | --shar \
1129
ac_prev=sharedstatedir ;;
1130
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134
sharedstatedir=$ac_optarg ;;
1136
-site | --site | --sit)
1138
-site=* | --site=* | --sit=*)
1141
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144
srcdir=$ac_optarg ;;
1146
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147
| --syscon | --sysco | --sysc | --sys | --sy)
1148
ac_prev=sysconfdir ;;
1149
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151
sysconfdir=$ac_optarg ;;
1153
-target | --target | --targe | --targ | --tar | --ta | --t)
1154
ac_prev=target_alias ;;
1155
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156
target_alias=$ac_optarg ;;
1158
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1161
-version | --version | --versio | --versi | --vers | -V)
1162
ac_init_version=: ;;
1165
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166
# Reject names that are not valid shell variable names.
1167
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168
as_fn_error $? "invalid package name: $ac_useropt"
1169
ac_useropt_orig=$ac_useropt
1170
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171
case $ac_user_opts in
1175
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176
ac_unrecognized_sep=', ';;
1178
eval with_$ac_useropt=\$ac_optarg ;;
1180
-without-* | --without-*)
1181
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182
# Reject names that are not valid shell variable names.
1183
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184
as_fn_error $? "invalid package name: $ac_useropt"
1185
ac_useropt_orig=$ac_useropt
1186
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187
case $ac_user_opts in
1191
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192
ac_unrecognized_sep=', ';;
1194
eval with_$ac_useropt=no ;;
1197
# Obsolete; use --with-x.
1200
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201
| --x-incl | --x-inc | --x-in | --x-i)
1202
ac_prev=x_includes ;;
1203
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205
x_includes=$ac_optarg ;;
1207
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1208
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209
ac_prev=x_libraries ;;
1210
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212
x_libraries=$ac_optarg ;;
1214
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1215
Try \`$0 --help' for more information"
1219
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220
# Reject names that are not valid shell variable names.
1221
case $ac_envvar in #(
1222
'' | [0-9]* | *[!_$as_cr_alnum]* )
1223
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225
eval $ac_envvar=\$ac_optarg
1226
export $ac_envvar ;;
1229
# FIXME: should be removed in autoconf 3.0.
1230
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239
if test -n "$ac_prev"; then
1240
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241
as_fn_error $? "missing argument to $ac_option"
1244
if test -n "$ac_unrecognized_opts"; then
1245
case $enable_option_checking in
1247
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252
# Check all directory arguments for consistency.
1253
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254
datadir sysconfdir sharedstatedir localstatedir includedir \
1255
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256
libdir localedir mandir
1258
eval ac_val=\$$ac_var
1259
# Remove trailing slashes.
1262
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263
eval $ac_var=\$ac_val;;
1265
# Be sure to have absolute directory names.
1267
[\\/$]* | ?:[\\/]* ) continue;;
1268
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273
# There might be people who depend on the old broken behavior: `$host'
1274
# used to hold the argument of --host etc.
1275
# FIXME: To remove some day.
1278
target=$target_alias
1280
# FIXME: To remove some day.
1281
if test "x$host_alias" != x; then
1282
if test "x$build_alias" = x; then
1283
cross_compiling=maybe
1284
elif test "x$build_alias" != "x$host_alias"; then
1290
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
test "$silent" = yes && exec 6>/dev/null
1295
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296
ac_ls_di=`ls -di .` &&
1297
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298
as_fn_error $? "working directory cannot be determined"
1299
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300
as_fn_error $? "pwd does not report name of working directory"
1303
# Find the source files, if location was not specified.
1304
if test -z "$srcdir"; then
1305
ac_srcdir_defaulted=yes
1306
# Try the directory containing this script, then the parent directory.
1307
ac_confdir=`$as_dirname -- "$as_myself" ||
1308
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309
X"$as_myself" : 'X\(//\)[^/]' \| \
1310
X"$as_myself" : 'X\(//\)$' \| \
1311
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312
$as_echo X"$as_myself" |
1313
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331
if test ! -r "$srcdir/$ac_unique_file"; then
1335
ac_srcdir_defaulted=no
1337
if test ! -r "$srcdir/$ac_unique_file"; then
1338
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345
# When building in place, set srcdir=.
1346
if test "$ac_abs_confdir" = "$ac_pwd"; then
1349
# Remove unnecessary trailing slashes from srcdir.
1350
# Double slashes in file names in object file debugging info
1351
# mess up M-x gdb in Emacs.
1353
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355
for ac_var in $ac_precious_vars; do
1356
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357
eval ac_env_${ac_var}_value=\$${ac_var}
1358
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363
# Report the --help message.
1365
if test "$ac_init_help" = "long"; then
1366
# Omit some internal or obsolete options to make the list less imposing.
1367
# This message is too long to be a string in the A/UX 3.1 sh.
1369
\`configure' configures libcmis 0.4.1 to adapt to many kinds of systems.
1371
Usage: $0 [OPTION]... [VAR=VALUE]...
1373
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374
VAR=VALUE. See below for descriptions of some of the useful variables.
1376
Defaults for the options are specified in brackets.
1379
-h, --help display this help and exit
1380
--help=short display options specific to this package
1381
--help=recursive display the short help of all the included packages
1382
-V, --version display version information and exit
1383
-q, --quiet, --silent do not print \`checking ...' messages
1384
--cache-file=FILE cache test results in FILE [disabled]
1385
-C, --config-cache alias for \`--cache-file=config.cache'
1386
-n, --no-create do not create output files
1387
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1389
Installation directories:
1390
--prefix=PREFIX install architecture-independent files in PREFIX
1391
[$ac_default_prefix]
1392
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395
By default, \`make install' will install all the files in
1396
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398
for instance \`--prefix=\$HOME'.
1400
For better control, use the options below.
1402
Fine tuning of the installation directories:
1403
--bindir=DIR user executables [EPREFIX/bin]
1404
--sbindir=DIR system admin executables [EPREFIX/sbin]
1405
--libexecdir=DIR program executables [EPREFIX/libexec]
1406
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409
--libdir=DIR object code libraries [EPREFIX/lib]
1410
--includedir=DIR C header files [PREFIX/include]
1411
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1412
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414
--infodir=DIR info documentation [DATAROOTDIR/info]
1415
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416
--mandir=DIR man documentation [DATAROOTDIR/man]
1417
--docdir=DIR documentation root [DATAROOTDIR/doc/libcmis]
1418
--htmldir=DIR html documentation [DOCDIR]
1419
--dvidir=DIR dvi documentation [DOCDIR]
1420
--pdfdir=DIR pdf documentation [DOCDIR]
1421
--psdir=DIR ps documentation [DOCDIR]
1427
--program-prefix=PREFIX prepend PREFIX to installed program names
1428
--program-suffix=SUFFIX append SUFFIX to installed program names
1429
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
--build=BUILD configure for building on BUILD [guessed]
1433
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1437
if test -n "$ac_init_help"; then
1438
case $ac_init_help in
1439
short | recursive ) echo "Configuration of libcmis 0.4.1:";;
1444
--disable-option-checking ignore unrecognized --enable/--with options
1445
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447
--enable-silent-rules less verbose build output (undo: "make V=1")
1448
--disable-silent-rules verbose build output (undo: "make V=0")
1449
--disable-client Compile only the library, not the client tool
1450
--disable-tests Do not build the unit tests
1451
--disable-long-tests Do not build the unit tests needing to start a
1453
--enable-dependency-tracking
1454
do not reject slow dependency extractors
1455
--disable-dependency-tracking
1456
speeds up one-time build
1457
--enable-shared[=PKGS] build shared libraries [default=yes]
1458
--enable-static[=PKGS] build static libraries [default=yes]
1459
--enable-fast-install[=PKGS]
1460
optimize for fast installation [default=yes]
1461
--disable-libtool-lock avoid locking (might break parallel builds)
1462
--disable-werror Treat all warnings as errors, usefull for
1464
--enable-static-boost Prefer the static boost libraries over the shared
1468
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1472
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1473
--with-sysroot=DIR Search for dependent libraries within DIR
1474
(or the compiler's sysroot if not specified).
1475
--without-man Do not build manpage
1476
--with-boost=DIR prefix of Boost [guess]
1478
Some influential environment variables:
1479
CC C compiler command
1480
CFLAGS C compiler flags
1481
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1482
nonstandard directory <lib dir>
1483
LIBS libraries to pass to the linker, e.g. -l<library>
1484
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1485
you have headers in a nonstandard directory <include dir>
1487
CXX C++ compiler command
1488
CXXFLAGS C++ compiler flags
1489
CXXCPP C++ preprocessor
1490
PKG_CONFIG path to pkg-config utility
1492
directories to add to pkg-config's search path
1494
path overriding pkg-config's built-in search path
1495
CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1496
CURL_LIBS linker flags for CURL, overriding pkg-config
1497
XML2_CFLAGS C compiler flags for XML2, overriding pkg-config
1498
XML2_LIBS linker flags for XML2, overriding pkg-config
1500
C compiler flags for CPPUNIT, overriding pkg-config
1502
linker flags for CPPUNIT, overriding pkg-config
1503
BOOST_ROOT Location of Boost installation
1505
Use these variables to override the choices made by `configure' or to help
1506
it to find libraries and programs with nonstandard names/locations.
1508
Report bugs to the package provider.
1513
if test "$ac_init_help" = "recursive"; then
1514
# If there are subdirs, report their specific --help.
1515
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516
test -d "$ac_dir" ||
1517
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1525
# A ".." for each directory in $ac_dir_suffix.
1526
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1527
case $ac_top_builddir_sub in
1528
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532
ac_abs_top_builddir=$ac_pwd
1533
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534
# for backward compatibility:
1535
ac_top_builddir=$ac_top_build_prefix
1538
.) # We are building in place.
1540
ac_top_srcdir=$ac_top_builddir_sub
1541
ac_abs_top_srcdir=$ac_pwd ;;
1542
[\\/]* | ?:[\\/]* ) # Absolute name.
1543
ac_srcdir=$srcdir$ac_dir_suffix;
1544
ac_top_srcdir=$srcdir
1545
ac_abs_top_srcdir=$srcdir ;;
1547
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548
ac_top_srcdir=$ac_top_build_prefix$srcdir
1549
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553
cd "$ac_dir" || { ac_status=$?; continue; }
1554
# Check for guested configure.
1555
if test -f "$ac_srcdir/configure.gnu"; then
1557
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558
elif test -f "$ac_srcdir/configure"; then
1560
$SHELL "$ac_srcdir/configure" --help=recursive
1562
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564
cd "$ac_pwd" || { ac_status=$?; break; }
1568
test -n "$ac_init_help" && exit $ac_status
1569
if $ac_init_version; then
1571
libcmis configure 0.4.1
1572
generated by GNU Autoconf 2.69
1574
Copyright (C) 2012 Free Software Foundation, Inc.
1575
This configure script is free software; the Free Software Foundation
1576
gives unlimited permission to copy, distribute and modify it.
1581
## ------------------------ ##
1582
## Autoconf initialization. ##
1583
## ------------------------ ##
1585
# ac_fn_c_try_compile LINENO
1586
# --------------------------
1587
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1588
ac_fn_c_try_compile ()
1590
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591
rm -f conftest.$ac_objext
1592
if { { ac_try="$ac_compile"
1594
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595
*) ac_try_echo=$ac_try;;
1597
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598
$as_echo "$ac_try_echo"; } >&5
1599
(eval "$ac_compile") 2>conftest.err
1601
if test -s conftest.err; then
1602
grep -v '^ *+' conftest.err >conftest.er1
1603
cat conftest.er1 >&5
1604
mv -f conftest.er1 conftest.err
1606
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607
test $ac_status = 0; } && {
1608
test -z "$ac_c_werror_flag" ||
1609
test ! -s conftest.err
1610
} && test -s conftest.$ac_objext; then :
1613
$as_echo "$as_me: failed program was:" >&5
1614
sed 's/^/| /' conftest.$ac_ext >&5
1618
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619
as_fn_set_status $ac_retval
1621
} # ac_fn_c_try_compile
1623
# ac_fn_c_try_cpp LINENO
1624
# ----------------------
1625
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629
if { { ac_try="$ac_cpp conftest.$ac_ext"
1631
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632
*) ac_try_echo=$ac_try;;
1634
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635
$as_echo "$ac_try_echo"; } >&5
1636
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638
if test -s conftest.err; then
1639
grep -v '^ *+' conftest.err >conftest.er1
1640
cat conftest.er1 >&5
1641
mv -f conftest.er1 conftest.err
1643
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644
test $ac_status = 0; } > conftest.i && {
1645
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1646
test ! -s conftest.err
1650
$as_echo "$as_me: failed program was:" >&5
1651
sed 's/^/| /' conftest.$ac_ext >&5
1655
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
as_fn_set_status $ac_retval
1660
# ac_fn_cxx_try_compile LINENO
1661
# ----------------------------
1662
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1663
ac_fn_cxx_try_compile ()
1665
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666
rm -f conftest.$ac_objext
1667
if { { ac_try="$ac_compile"
1669
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670
*) ac_try_echo=$ac_try;;
1672
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673
$as_echo "$ac_try_echo"; } >&5
1674
(eval "$ac_compile") 2>conftest.err
1676
if test -s conftest.err; then
1677
grep -v '^ *+' conftest.err >conftest.er1
1678
cat conftest.er1 >&5
1679
mv -f conftest.er1 conftest.err
1681
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682
test $ac_status = 0; } && {
1683
test -z "$ac_cxx_werror_flag" ||
1684
test ! -s conftest.err
1685
} && test -s conftest.$ac_objext; then :
1688
$as_echo "$as_me: failed program was:" >&5
1689
sed 's/^/| /' conftest.$ac_ext >&5
1693
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694
as_fn_set_status $ac_retval
1696
} # ac_fn_cxx_try_compile
1698
# ac_fn_c_try_link LINENO
1699
# -----------------------
1700
# Try to link conftest.$ac_ext, and return whether this succeeded.
1703
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704
rm -f conftest.$ac_objext conftest$ac_exeext
1705
if { { ac_try="$ac_link"
1707
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708
*) ac_try_echo=$ac_try;;
1710
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711
$as_echo "$ac_try_echo"; } >&5
1712
(eval "$ac_link") 2>conftest.err
1714
if test -s conftest.err; then
1715
grep -v '^ *+' conftest.err >conftest.er1
1716
cat conftest.er1 >&5
1717
mv -f conftest.er1 conftest.err
1719
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720
test $ac_status = 0; } && {
1721
test -z "$ac_c_werror_flag" ||
1722
test ! -s conftest.err
1723
} && test -s conftest$ac_exeext && {
1724
test "$cross_compiling" = yes ||
1725
test -x conftest$ac_exeext
1729
$as_echo "$as_me: failed program was:" >&5
1730
sed 's/^/| /' conftest.$ac_ext >&5
1734
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1735
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1736
# interfere with the next link command; also delete a directory that is
1737
# left behind by Apple's compiler. We do this before executing the actions.
1738
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740
as_fn_set_status $ac_retval
1742
} # ac_fn_c_try_link
1744
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1745
# -------------------------------------------------------
1746
# Tests whether HEADER exists and can be compiled using the include files in
1747
# INCLUDES, setting the cache variable VAR accordingly.
1748
ac_fn_c_check_header_compile ()
1750
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752
$as_echo_n "checking for $2... " >&6; }
1753
if eval \${$3+:} false; then :
1754
$as_echo_n "(cached) " >&6
1756
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757
/* end confdefs.h. */
1761
if ac_fn_c_try_compile "$LINENO"; then :
1766
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770
$as_echo "$ac_res" >&6; }
1771
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773
} # ac_fn_c_check_header_compile
1775
# ac_fn_c_try_run LINENO
1776
# ----------------------
1777
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1778
# that executables *can* be run.
1781
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782
if { { ac_try="$ac_link"
1784
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785
*) ac_try_echo=$ac_try;;
1787
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788
$as_echo "$ac_try_echo"; } >&5
1789
(eval "$ac_link") 2>&5
1791
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1793
{ { case "(($ac_try" in
1794
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795
*) ac_try_echo=$ac_try;;
1797
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798
$as_echo "$ac_try_echo"; } >&5
1799
(eval "$ac_try") 2>&5
1801
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802
test $ac_status = 0; }; }; then :
1805
$as_echo "$as_me: program exited with status $ac_status" >&5
1806
$as_echo "$as_me: failed program was:" >&5
1807
sed 's/^/| /' conftest.$ac_ext >&5
1809
ac_retval=$ac_status
1811
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
as_fn_set_status $ac_retval
1817
# ac_fn_c_check_func LINENO FUNC VAR
1818
# ----------------------------------
1819
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1820
ac_fn_c_check_func ()
1822
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824
$as_echo_n "checking for $2... " >&6; }
1825
if eval \${$3+:} false; then :
1826
$as_echo_n "(cached) " >&6
1828
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829
/* end confdefs.h. */
1830
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1831
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1832
#define $2 innocuous_$2
1834
/* System header to define __stub macros and hopefully few prototypes,
1835
which can conflict with char $2 (); below.
1836
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1837
<limits.h> exists even on freestanding compilers. */
1840
# include <limits.h>
1842
# include <assert.h>
1847
/* Override any GCC internal prototype to avoid an error.
1848
Use char because int might match the return type of a GCC
1849
builtin and then its argument prototype would still apply. */
1854
/* The GNU C library defines this for functions which it implements
1855
to always fail with ENOSYS. Some functions are actually named
1856
something starting with __ and the normal name is an alias. */
1857
#if defined __stub_$2 || defined __stub___$2
1869
if ac_fn_c_try_link "$LINENO"; then :
1874
rm -f core conftest.err conftest.$ac_objext \
1875
conftest$ac_exeext conftest.$ac_ext
1878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879
$as_echo "$ac_res" >&6; }
1880
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
} # ac_fn_c_check_func
1884
# ac_fn_cxx_try_cpp LINENO
1885
# ------------------------
1886
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1887
ac_fn_cxx_try_cpp ()
1889
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890
if { { ac_try="$ac_cpp conftest.$ac_ext"
1892
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893
*) ac_try_echo=$ac_try;;
1895
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896
$as_echo "$ac_try_echo"; } >&5
1897
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1899
if test -s conftest.err; then
1900
grep -v '^ *+' conftest.err >conftest.er1
1901
cat conftest.er1 >&5
1902
mv -f conftest.er1 conftest.err
1904
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905
test $ac_status = 0; } > conftest.i && {
1906
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1907
test ! -s conftest.err
1911
$as_echo "$as_me: failed program was:" >&5
1912
sed 's/^/| /' conftest.$ac_ext >&5
1916
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
as_fn_set_status $ac_retval
1919
} # ac_fn_cxx_try_cpp
1921
# ac_fn_cxx_try_link LINENO
1922
# -------------------------
1923
# Try to link conftest.$ac_ext, and return whether this succeeded.
1924
ac_fn_cxx_try_link ()
1926
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927
rm -f conftest.$ac_objext conftest$ac_exeext
1928
if { { ac_try="$ac_link"
1930
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931
*) ac_try_echo=$ac_try;;
1933
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934
$as_echo "$ac_try_echo"; } >&5
1935
(eval "$ac_link") 2>conftest.err
1937
if test -s conftest.err; then
1938
grep -v '^ *+' conftest.err >conftest.er1
1939
cat conftest.er1 >&5
1940
mv -f conftest.er1 conftest.err
1942
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943
test $ac_status = 0; } && {
1944
test -z "$ac_cxx_werror_flag" ||
1945
test ! -s conftest.err
1946
} && test -s conftest$ac_exeext && {
1947
test "$cross_compiling" = yes ||
1948
test -x conftest$ac_exeext
1952
$as_echo "$as_me: failed program was:" >&5
1953
sed 's/^/| /' conftest.$ac_ext >&5
1957
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959
# interfere with the next link command; also delete a directory that is
1960
# left behind by Apple's compiler. We do this before executing the actions.
1961
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
as_fn_set_status $ac_retval
1965
} # ac_fn_cxx_try_link
1967
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1968
# ---------------------------------------------------------
1969
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1970
# the include files in INCLUDES and setting the cache variable VAR
1972
ac_fn_cxx_check_header_mongrel ()
1974
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975
if eval \${$3+:} false; then :
1976
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977
$as_echo_n "checking for $2... " >&6; }
1978
if eval \${$3+:} false; then :
1979
$as_echo_n "(cached) " >&6
1982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983
$as_echo "$ac_res" >&6; }
1985
# Is the header compilable?
1986
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1987
$as_echo_n "checking $2 usability... " >&6; }
1988
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989
/* end confdefs.h. */
1993
if ac_fn_cxx_try_compile "$LINENO"; then :
1994
ac_header_compiler=yes
1996
ac_header_compiler=no
1998
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2000
$as_echo "$ac_header_compiler" >&6; }
2002
# Is the header present?
2003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2004
$as_echo_n "checking $2 presence... " >&6; }
2005
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006
/* end confdefs.h. */
2009
if ac_fn_cxx_try_cpp "$LINENO"; then :
2010
ac_header_preproc=yes
2012
ac_header_preproc=no
2014
rm -f conftest.err conftest.i conftest.$ac_ext
2015
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2016
$as_echo "$ac_header_preproc" >&6; }
2018
# So? What about this header?
2019
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2021
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2022
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2023
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2027
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2028
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2029
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2030
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2031
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2032
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2033
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2034
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2035
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2039
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040
$as_echo_n "checking for $2... " >&6; }
2041
if eval \${$3+:} false; then :
2042
$as_echo_n "(cached) " >&6
2044
eval "$3=\$ac_header_compiler"
2047
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048
$as_echo "$ac_res" >&6; }
2050
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052
} # ac_fn_cxx_check_header_mongrel
2054
# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2055
# ---------------------------------------------
2056
# Tests whether TYPE exists after having included INCLUDES, setting cache
2057
# variable VAR accordingly.
2058
ac_fn_cxx_check_type ()
2060
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062
$as_echo_n "checking for $2... " >&6; }
2063
if eval \${$3+:} false; then :
2064
$as_echo_n "(cached) " >&6
2067
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068
/* end confdefs.h. */
2079
if ac_fn_cxx_try_compile "$LINENO"; then :
2080
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081
/* end confdefs.h. */
2092
if ac_fn_cxx_try_compile "$LINENO"; then :
2097
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103
$as_echo "$ac_res" >&6; }
2104
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106
} # ac_fn_cxx_check_type
2107
cat >config.log <<_ACEOF
2108
This file contains any messages produced by compilers while
2109
running configure, to aid debugging if configure makes a mistake.
2111
It was created by libcmis $as_me 0.4.1, which was
2112
generated by GNU Autoconf 2.69. Invocation command line was
2124
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2125
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2126
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2127
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2128
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2130
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2131
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2133
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2134
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2135
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2136
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2137
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2138
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2139
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2143
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147
test -z "$as_dir" && as_dir=.
2148
$as_echo "PATH: $as_dir"
2164
# Keep a trace of the command line.
2165
# Strip out --no-create and --no-recursion so they do not pile up.
2166
# Strip out --silent because we don't want to record it for future runs.
2167
# Also quote any args containing shell meta-characters.
2168
# Make two passes to allow for proper duplicate-argument suppression.
2172
ac_must_keep_next=false
2178
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2179
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2180
| -silent | --silent | --silen | --sile | --sil)
2183
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2186
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2188
as_fn_append ac_configure_args1 " '$ac_arg'"
2189
if test $ac_must_keep_next = true; then
2190
ac_must_keep_next=false # Got value, back to normal.
2193
*=* | --config-cache | -C | -disable-* | --disable-* \
2194
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2195
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2196
| -with-* | --with-* | -without-* | --without-* | --x)
2197
case "$ac_configure_args0 " in
2198
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2201
-* ) ac_must_keep_next=true ;;
2204
as_fn_append ac_configure_args " '$ac_arg'"
2209
{ ac_configure_args0=; unset ac_configure_args0;}
2210
{ ac_configure_args1=; unset ac_configure_args1;}
2212
# When interrupted or exit'd, cleanup temporary files, and complete
2213
# config.log. We remove comments because anyway the quotes in there
2214
# would cause problems or look ugly.
2215
# WARNING: Use '\'' to represent an apostrophe within the trap.
2216
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2217
trap 'exit_status=$?
2218
# Save into config.log some information that might help in debugging.
2222
$as_echo "## ---------------- ##
2223
## Cache variables. ##
2224
## ---------------- ##"
2226
# The following way of writing the cache mishandles newlines in values,
2228
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2229
eval ac_val=\$$ac_var
2233
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2234
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2237
_ | IFS | as_nl) ;; #(
2238
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2239
*) { eval $ac_var=; unset $ac_var;} ;;
2244
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2245
*${as_nl}ac_space=\ *)
2247
"s/'\''/'\''\\\\'\'''\''/g;
2248
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2251
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2258
$as_echo "## ----------------- ##
2259
## Output variables. ##
2260
## ----------------- ##"
2262
for ac_var in $ac_subst_vars
2264
eval ac_val=\$$ac_var
2266
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268
$as_echo "$ac_var='\''$ac_val'\''"
2272
if test -n "$ac_subst_files"; then
2273
$as_echo "## ------------------- ##
2274
## File substitutions. ##
2275
## ------------------- ##"
2277
for ac_var in $ac_subst_files
2279
eval ac_val=\$$ac_var
2281
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2283
$as_echo "$ac_var='\''$ac_val'\''"
2288
if test -s confdefs.h; then
2289
$as_echo "## ----------- ##
2296
test "$ac_signal" != 0 &&
2297
$as_echo "$as_me: caught signal $ac_signal"
2298
$as_echo "$as_me: exit $exit_status"
2300
rm -f core *.core core.conftest.* &&
2301
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2304
for ac_signal in 1 2 13 15; do
2305
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2309
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2310
rm -f -r conftest* confdefs.h
2312
$as_echo "/* confdefs.h */" > confdefs.h
2314
# Predefined preprocessor variables.
2316
cat >>confdefs.h <<_ACEOF
2317
#define PACKAGE_NAME "$PACKAGE_NAME"
2320
cat >>confdefs.h <<_ACEOF
2321
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2324
cat >>confdefs.h <<_ACEOF
2325
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2328
cat >>confdefs.h <<_ACEOF
2329
#define PACKAGE_STRING "$PACKAGE_STRING"
2332
cat >>confdefs.h <<_ACEOF
2333
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2336
cat >>confdefs.h <<_ACEOF
2337
#define PACKAGE_URL "$PACKAGE_URL"
2341
# Let the site file select an alternate cache file if it wants to.
2342
# Prefer an explicitly selected file to automatically selected ones.
2345
if test -n "$CONFIG_SITE"; then
2346
# We do not want a PATH search for config.site.
2347
case $CONFIG_SITE in #((
2348
-*) ac_site_file1=./$CONFIG_SITE;;
2349
*/*) ac_site_file1=$CONFIG_SITE;;
2350
*) ac_site_file1=./$CONFIG_SITE;;
2352
elif test "x$prefix" != xNONE; then
2353
ac_site_file1=$prefix/share/config.site
2354
ac_site_file2=$prefix/etc/config.site
2356
ac_site_file1=$ac_default_prefix/share/config.site
2357
ac_site_file2=$ac_default_prefix/etc/config.site
2359
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2361
test "x$ac_site_file" = xNONE && continue
2362
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2363
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2364
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2365
sed 's/^/| /' "$ac_site_file" >&5
2367
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369
as_fn_error $? "failed to load site script $ac_site_file
2370
See \`config.log' for more details" "$LINENO" 5; }
2374
if test -r "$cache_file"; then
2375
# Some versions of bash will fail to source /dev/null (special files
2376
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2377
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2378
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2379
$as_echo "$as_me: loading cache $cache_file" >&6;}
2381
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2382
*) . "./$cache_file";;
2386
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2387
$as_echo "$as_me: creating cache $cache_file" >&6;}
2391
# Check that the precious variables saved in the cache have kept the same
2393
ac_cache_corrupted=false
2394
for ac_var in $ac_precious_vars; do
2395
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2396
eval ac_new_set=\$ac_env_${ac_var}_set
2397
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2398
eval ac_new_val=\$ac_env_${ac_var}_value
2399
case $ac_old_set,$ac_new_set in
2401
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2402
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2403
ac_cache_corrupted=: ;;
2405
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2406
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2407
ac_cache_corrupted=: ;;
2410
if test "x$ac_old_val" != "x$ac_new_val"; then
2411
# differences in whitespace do not lead to failure.
2412
ac_old_val_w=`echo x $ac_old_val`
2413
ac_new_val_w=`echo x $ac_new_val`
2414
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2415
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2416
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2417
ac_cache_corrupted=:
2419
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2420
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2421
eval $ac_var=\$ac_old_val
2423
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2424
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2425
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2426
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2429
# Pass precious variables to config.status.
2430
if test "$ac_new_set" = set; then
2432
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2433
*) ac_arg=$ac_var=$ac_new_val ;;
2435
case " $ac_configure_args " in
2436
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2437
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2441
if $ac_cache_corrupted; then
2442
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2443
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2444
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2445
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2446
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2448
## -------------------- ##
2449
## Main body of script. ##
2450
## -------------------- ##
2453
ac_cpp='$CPP $CPPFLAGS'
2454
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2459
am__api_version='1.13'
2462
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2463
if test -f "$ac_dir/install-sh"; then
2465
ac_install_sh="$ac_aux_dir/install-sh -c"
2467
elif test -f "$ac_dir/install.sh"; then
2469
ac_install_sh="$ac_aux_dir/install.sh -c"
2471
elif test -f "$ac_dir/shtool"; then
2473
ac_install_sh="$ac_aux_dir/shtool install -c"
2477
if test -z "$ac_aux_dir"; then
2478
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2481
# These three variables are undocumented and unsupported,
2482
# and are intended to be withdrawn in a future Autoconf release.
2483
# They can cause serious problems if a builder's source tree is in a directory
2484
# whose full name contains unusual characters.
2485
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2486
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2487
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2490
# Find a good install program. We prefer a C program (faster),
2491
# so one script is as good as another. But avoid the broken or
2492
# incompatible versions:
2493
# SysV /etc/install, /usr/sbin/install
2494
# SunOS /usr/etc/install
2495
# IRIX /sbin/install
2497
# AmigaOS /C/install, which installs bootblocks on floppy discs
2498
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2499
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2500
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2501
# OS/2's system install, which has a completely different semantic
2502
# ./install, which can be erroneously created by make from ./install.sh.
2503
# Reject install programs that cannot install multiple files.
2504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2505
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2506
if test -z "$INSTALL"; then
2507
if ${ac_cv_path_install+:} false; then :
2508
$as_echo_n "(cached) " >&6
2510
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514
test -z "$as_dir" && as_dir=.
2515
# Account for people who put trailing slashes in PATH elements.
2516
case $as_dir/ in #((
2517
./ | .// | /[cC]/* | \
2518
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2519
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2522
# OSF1 and SCO ODT 3.0 have their own names for install.
2523
# Don't use installbsd from OSF since it installs stuff as root
2525
for ac_prog in ginstall scoinst install; do
2526
for ac_exec_ext in '' $ac_executable_extensions; do
2527
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2528
if test $ac_prog = install &&
2529
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530
# AIX install. It has an incompatible calling convention.
2532
elif test $ac_prog = install &&
2533
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534
# program-specific install script used by HP pwplus--don't use.
2537
rm -rf conftest.one conftest.two conftest.dir
2538
echo one > conftest.one
2539
echo two > conftest.two
2541
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2542
test -s conftest.one && test -s conftest.two &&
2543
test -s conftest.dir/conftest.one &&
2544
test -s conftest.dir/conftest.two
2546
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2559
rm -rf conftest.one conftest.two conftest.dir
2562
if test "${ac_cv_path_install+set}" = set; then
2563
INSTALL=$ac_cv_path_install
2565
# As a last resort, use the slow shell script. Don't cache a
2566
# value for INSTALL within a source directory, because that will
2567
# break other packages using the cache if that directory is
2568
# removed, or if the value is a relative name.
2569
INSTALL=$ac_install_sh
2572
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2573
$as_echo "$INSTALL" >&6; }
2575
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2576
# It thinks the first close brace ends the variable substitution.
2577
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2579
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2581
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2584
$as_echo_n "checking whether build environment is sane... " >&6; }
2585
# Reject unsafe characters in $srcdir or the absolute working directory
2586
# name. Accept space and tab only in the latter.
2590
*[\\\"\#\$\&\'\`$am_lf]*)
2591
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2594
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2595
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2598
# Do 'set' in a subshell so we don't clobber the current shell's
2599
# arguments. Must try -L first in case configure is actually a
2600
# symlink; some systems play weird games with the mod time of symlinks
2601
# (eg FreeBSD returns the mod time of the symlink's containing
2605
for am_try in 1 2; do
2606
echo "timestamp, slept: $am_has_slept" > conftest.file
2607
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2608
if test "$*" = "X"; then
2610
set X `ls -t "$srcdir/configure" conftest.file`
2612
if test "$*" != "X $srcdir/configure conftest.file" \
2613
&& test "$*" != "X conftest.file $srcdir/configure"; then
2615
# If neither matched, then we have a broken ls. This can happen
2616
# if, for instance, CONFIG_SHELL is bash and it inherits a
2617
# broken ls alias from the environment. This has actually
2618
# happened. Such a system could not be considered "sane".
2619
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2620
alias in your environment" "$LINENO" 5
2622
if test "$2" = conftest.file || test $am_try -eq 2; then
2629
test "$2" = conftest.file
2635
as_fn_error $? "newly created file is older than distributed files!
2636
Check your system clock" "$LINENO" 5
2638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2639
$as_echo "yes" >&6; }
2640
# If we didn't sleep, we still need to ensure time stamps of config.status and
2641
# generated files are strictly newer.
2643
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2650
test "$program_prefix" != NONE &&
2651
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2652
# Use a double $ so make ignores it.
2653
test "$program_suffix" != NONE &&
2654
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2655
# Double any \ or $.
2656
# By default was `s,x,x', remove it if useless.
2657
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2658
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2660
# expand $ac_aux_dir to an absolute path
2661
am_aux_dir=`cd $ac_aux_dir && pwd`
2663
if test x"${MISSING+set}" != xset; then
2666
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2668
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2671
# Use eval to expand $SHELL
2672
if eval "$MISSING --is-lightweight"; then
2673
am_missing_run="$MISSING "
2676
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2677
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2680
if test x"${install_sh}" != xset; then
2683
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2685
install_sh="\${SHELL} $am_aux_dir/install-sh"
2689
# Installed binaries are usually stripped using 'strip' when the user
2690
# run "make install-strip". However 'strip' might not be the right
2691
# tool to use in cross-compilation environments, therefore Automake
2692
# will honor the 'STRIP' environment variable to overrule this program.
2693
if test "$cross_compiling" != no; then
2694
if test -n "$ac_tool_prefix"; then
2695
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2696
set dummy ${ac_tool_prefix}strip; ac_word=$2
2697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698
$as_echo_n "checking for $ac_word... " >&6; }
2699
if ${ac_cv_prog_STRIP+:} false; then :
2700
$as_echo_n "(cached) " >&6
2702
if test -n "$STRIP"; then
2703
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2705
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709
test -z "$as_dir" && as_dir=.
2710
for ac_exec_ext in '' $ac_executable_extensions; do
2711
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2713
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722
STRIP=$ac_cv_prog_STRIP
2723
if test -n "$STRIP"; then
2724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2725
$as_echo "$STRIP" >&6; }
2727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728
$as_echo "no" >&6; }
2733
if test -z "$ac_cv_prog_STRIP"; then
2735
# Extract the first word of "strip", so it can be a program name with args.
2736
set dummy strip; ac_word=$2
2737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738
$as_echo_n "checking for $ac_word... " >&6; }
2739
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2740
$as_echo_n "(cached) " >&6
2742
if test -n "$ac_ct_STRIP"; then
2743
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2745
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749
test -z "$as_dir" && as_dir=.
2750
for ac_exec_ext in '' $ac_executable_extensions; do
2751
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2752
ac_cv_prog_ac_ct_STRIP="strip"
2753
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2763
if test -n "$ac_ct_STRIP"; then
2764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2765
$as_echo "$ac_ct_STRIP" >&6; }
2767
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768
$as_echo "no" >&6; }
2771
if test "x$ac_ct_STRIP" = x; then
2774
case $cross_compiling:$ac_tool_warned in
2776
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2777
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2778
ac_tool_warned=yes ;;
2783
STRIP="$ac_cv_prog_STRIP"
2787
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2789
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2790
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2791
if test -z "$MKDIR_P"; then
2792
if ${ac_cv_path_mkdir+:} false; then :
2793
$as_echo_n "(cached) " >&6
2795
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2799
test -z "$as_dir" && as_dir=.
2800
for ac_prog in mkdir gmkdir; do
2801
for ac_exec_ext in '' $ac_executable_extensions; do
2802
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2803
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2804
'mkdir (GNU coreutils) '* | \
2805
'mkdir (coreutils) '* | \
2806
'mkdir (fileutils) '4.1*)
2807
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2817
test -d ./--version && rmdir ./--version
2818
if test "${ac_cv_path_mkdir+set}" = set; then
2819
MKDIR_P="$ac_cv_path_mkdir -p"
2821
# As a last resort, use the slow shell script. Don't cache a
2822
# value for MKDIR_P within a source directory, because that will
2823
# break other packages using the cache if that directory is
2824
# removed, or if the value is a relative name.
2825
MKDIR_P="$ac_install_sh -d"
2828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2829
$as_echo "$MKDIR_P" >&6; }
2831
for ac_prog in gawk mawk nawk awk
2833
# Extract the first word of "$ac_prog", so it can be a program name with args.
2834
set dummy $ac_prog; ac_word=$2
2835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836
$as_echo_n "checking for $ac_word... " >&6; }
2837
if ${ac_cv_prog_AWK+:} false; then :
2838
$as_echo_n "(cached) " >&6
2840
if test -n "$AWK"; then
2841
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2843
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847
test -z "$as_dir" && as_dir=.
2848
for ac_exec_ext in '' $ac_executable_extensions; do
2849
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850
ac_cv_prog_AWK="$ac_prog"
2851
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861
if test -n "$AWK"; then
2862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2863
$as_echo "$AWK" >&6; }
2865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866
$as_echo "no" >&6; }
2870
test -n "$AWK" && break
2873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2874
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2876
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2877
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2878
$as_echo_n "(cached) " >&6
2880
cat >conftest.make <<\_ACEOF
2883
@echo '@@@%%%=$(MAKE)=@@@%%%'
2885
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2886
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2888
eval ac_cv_prog_make_${ac_make}_set=yes;;
2890
eval ac_cv_prog_make_${ac_make}_set=no;;
2894
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2896
$as_echo "yes" >&6; }
2899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900
$as_echo "no" >&6; }
2901
SET_MAKE="MAKE=${MAKE-make}"
2904
rm -rf .tst 2>/dev/null
2905
mkdir .tst 2>/dev/null
2906
if test -d .tst; then
2911
rmdir .tst 2>/dev/null
2913
# Check whether --enable-silent-rules was given.
2914
if test "${enable_silent_rules+set}" = set; then :
2915
enableval=$enable_silent_rules;
2918
case $enable_silent_rules in # (((
2919
yes) AM_DEFAULT_VERBOSITY=0;;
2920
no) AM_DEFAULT_VERBOSITY=1;;
2921
*) AM_DEFAULT_VERBOSITY=1;;
2923
am_make=${MAKE-make}
2924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2925
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2926
if ${am_cv_make_support_nested_variables+:} false; then :
2927
$as_echo_n "(cached) " >&6
2929
if $as_echo 'TRUE=$(BAR$(V))
2935
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2936
am_cv_make_support_nested_variables=yes
2938
am_cv_make_support_nested_variables=no
2941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2942
$as_echo "$am_cv_make_support_nested_variables" >&6; }
2943
if test $am_cv_make_support_nested_variables = yes; then
2945
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2947
AM_V=$AM_DEFAULT_VERBOSITY
2948
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2952
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2953
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2954
# is not polluted with repeated "-I."
2955
am__isrc=' -I$(srcdir)'
2956
# test to see if srcdir already configured
2957
if test -f $srcdir/config.status; then
2958
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2962
# test whether we have cygpath
2963
if test -z "$CYGPATH_W"; then
2964
if (cygpath --version) >/dev/null 2>/dev/null; then
2965
CYGPATH_W='cygpath -w'
2972
# Define the identity of the package.
2977
cat >>confdefs.h <<_ACEOF
2978
#define PACKAGE "$PACKAGE"
2982
cat >>confdefs.h <<_ACEOF
2983
#define VERSION "$VERSION"
2986
# Some tools Automake needs.
2988
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2991
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2994
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2997
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3000
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3002
# For better backward compatibility. To be removed once Automake 1.9.x
3003
# dies out for good. For more background, see:
3004
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3005
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3006
mkdir_p='$(MKDIR_P)'
3008
# We need awk for the "check" target. The system "awk" is bad on
3010
# Always define AMTAR for backward compatibility. Yes, it's still used
3011
# in the wild :-( We should find a proper way to deprecate it ...
3015
# We'll loop over all known methods to create a tar archive until one works.
3016
_am_tools='gnutar pax cpio none'
3018
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3025
# Check whether --enable-silent-rules was given.
3026
if test "${enable_silent_rules+set}" = set; then :
3027
enableval=$enable_silent_rules;
3030
case $enable_silent_rules in # (((
3031
yes) AM_DEFAULT_VERBOSITY=0;;
3032
no) AM_DEFAULT_VERBOSITY=1;;
3033
*) AM_DEFAULT_VERBOSITY=0;;
3035
am_make=${MAKE-make}
3036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3037
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3038
if ${am_cv_make_support_nested_variables+:} false; then :
3039
$as_echo_n "(cached) " >&6
3041
if $as_echo 'TRUE=$(BAR$(V))
3047
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3048
am_cv_make_support_nested_variables=yes
3050
am_cv_make_support_nested_variables=no
3053
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3054
$as_echo "$am_cv_make_support_nested_variables" >&6; }
3055
if test $am_cv_make_support_nested_variables = yes; then
3057
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3059
AM_V=$AM_DEFAULT_VERBOSITY
3060
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3065
# Check whether --enable-client was given.
3066
if test "${enable_client+set}" = set; then :
3067
enableval=$enable_client; enable_client=$enableval
3072
if test "x$enable_client" != "xno"; then
3074
ENABLE_CLIENT_FALSE='#'
3076
ENABLE_CLIENT_TRUE='#'
3077
ENABLE_CLIENT_FALSE=
3081
# Check whether --enable-tests was given.
3082
if test "${enable_tests+set}" = set; then :
3083
enableval=$enable_tests; enable_tests="$enableval"
3089
if test "x$enable_tests" != "xno"; then
3091
ENABLE_TESTS_FALSE='#'
3093
ENABLE_TESTS_TRUE='#'
3098
if test "x$enable_tests" != "xno"; then :
3100
# Check whether --enable-long-tests was given.
3101
if test "${enable_long_tests+set}" = set; then :
3102
enableval=$enable_long_tests; enable_long_tests="$enableval"
3104
enable_long_tests=yes
3110
enable_long_tests=no
3112
if test "x$enable_long_tests" != "xno"; then
3113
ENABLE_LONG_TESTS_TRUE=
3114
ENABLE_LONG_TESTS_FALSE='#'
3116
ENABLE_LONG_TESTS_TRUE='#'
3117
ENABLE_LONG_TESTS_FALSE=
3122
LIBCMIS_API_VERSION=0.4
3127
for top_builddir in . .. ../.. $ac_auxdir $ac_auxdir/..; do
3128
test -f $top_builddir/configure && break
3135
ac_cpp='$CXXCPP $CPPFLAGS'
3136
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3141
# Checks for programs.
3143
ac_cpp='$CPP $CPPFLAGS'
3144
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147
if test -n "$ac_tool_prefix"; then
3148
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3149
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3150
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151
$as_echo_n "checking for $ac_word... " >&6; }
3152
if ${ac_cv_prog_CC+:} false; then :
3153
$as_echo_n "(cached) " >&6
3155
if test -n "$CC"; then
3156
ac_cv_prog_CC="$CC" # Let the user override the test.
3158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162
test -z "$as_dir" && as_dir=.
3163
for ac_exec_ext in '' $ac_executable_extensions; do
3164
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3165
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3166
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176
if test -n "$CC"; then
3177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178
$as_echo "$CC" >&6; }
3180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181
$as_echo "no" >&6; }
3186
if test -z "$ac_cv_prog_CC"; then
3188
# Extract the first word of "gcc", so it can be a program name with args.
3189
set dummy gcc; ac_word=$2
3190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191
$as_echo_n "checking for $ac_word... " >&6; }
3192
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3193
$as_echo_n "(cached) " >&6
3195
if test -n "$ac_ct_CC"; then
3196
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202
test -z "$as_dir" && as_dir=.
3203
for ac_exec_ext in '' $ac_executable_extensions; do
3204
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205
ac_cv_prog_ac_ct_CC="gcc"
3206
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3216
if test -n "$ac_ct_CC"; then
3217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3218
$as_echo "$ac_ct_CC" >&6; }
3220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221
$as_echo "no" >&6; }
3224
if test "x$ac_ct_CC" = x; then
3227
case $cross_compiling:$ac_tool_warned in
3229
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3230
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3231
ac_tool_warned=yes ;;
3239
if test -z "$CC"; then
3240
if test -n "$ac_tool_prefix"; then
3241
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3242
set dummy ${ac_tool_prefix}cc; ac_word=$2
3243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244
$as_echo_n "checking for $ac_word... " >&6; }
3245
if ${ac_cv_prog_CC+:} false; then :
3246
$as_echo_n "(cached) " >&6
3248
if test -n "$CC"; then
3249
ac_cv_prog_CC="$CC" # Let the user override the test.
3251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255
test -z "$as_dir" && as_dir=.
3256
for ac_exec_ext in '' $ac_executable_extensions; do
3257
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258
ac_cv_prog_CC="${ac_tool_prefix}cc"
3259
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3269
if test -n "$CC"; then
3270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271
$as_echo "$CC" >&6; }
3273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274
$as_echo "no" >&6; }
3280
if test -z "$CC"; then
3281
# Extract the first word of "cc", so it can be a program name with args.
3282
set dummy cc; ac_word=$2
3283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284
$as_echo_n "checking for $ac_word... " >&6; }
3285
if ${ac_cv_prog_CC+:} false; then :
3286
$as_echo_n "(cached) " >&6
3288
if test -n "$CC"; then
3289
ac_cv_prog_CC="$CC" # Let the user override the test.
3292
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296
test -z "$as_dir" && as_dir=.
3297
for ac_exec_ext in '' $ac_executable_extensions; do
3298
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3300
ac_prog_rejected=yes
3304
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311
if test $ac_prog_rejected = yes; then
3312
# We found a bogon in the path, so make sure we never use it.
3313
set dummy $ac_cv_prog_CC
3315
if test $# != 0; then
3316
# We chose a different compiler from the bogus one.
3317
# However, it has the same basename, so the bogon will be chosen
3318
# first if we set CC to just the basename; use the full file name.
3320
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3326
if test -n "$CC"; then
3327
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328
$as_echo "$CC" >&6; }
3330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331
$as_echo "no" >&6; }
3336
if test -z "$CC"; then
3337
if test -n "$ac_tool_prefix"; then
3338
for ac_prog in cl.exe
3340
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3341
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343
$as_echo_n "checking for $ac_word... " >&6; }
3344
if ${ac_cv_prog_CC+:} false; then :
3345
$as_echo_n "(cached) " >&6
3347
if test -n "$CC"; then
3348
ac_cv_prog_CC="$CC" # Let the user override the test.
3350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354
test -z "$as_dir" && as_dir=.
3355
for ac_exec_ext in '' $ac_executable_extensions; do
3356
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3358
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368
if test -n "$CC"; then
3369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3370
$as_echo "$CC" >&6; }
3372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373
$as_echo "no" >&6; }
3377
test -n "$CC" && break
3380
if test -z "$CC"; then
3382
for ac_prog in cl.exe
3384
# Extract the first word of "$ac_prog", so it can be a program name with args.
3385
set dummy $ac_prog; ac_word=$2
3386
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387
$as_echo_n "checking for $ac_word... " >&6; }
3388
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3389
$as_echo_n "(cached) " >&6
3391
if test -n "$ac_ct_CC"; then
3392
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3394
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398
test -z "$as_dir" && as_dir=.
3399
for ac_exec_ext in '' $ac_executable_extensions; do
3400
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3401
ac_cv_prog_ac_ct_CC="$ac_prog"
3402
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3412
if test -n "$ac_ct_CC"; then
3413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3414
$as_echo "$ac_ct_CC" >&6; }
3416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417
$as_echo "no" >&6; }
3421
test -n "$ac_ct_CC" && break
3424
if test "x$ac_ct_CC" = x; then
3427
case $cross_compiling:$ac_tool_warned in
3429
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3430
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3431
ac_tool_warned=yes ;;
3440
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442
as_fn_error $? "no acceptable C compiler found in \$PATH
3443
See \`config.log' for more details" "$LINENO" 5; }
3445
# Provide some information about the compiler.
3446
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3449
for ac_option in --version -v -V -qversion; do
3450
{ { ac_try="$ac_compiler $ac_option >&5"
3452
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453
*) ac_try_echo=$ac_try;;
3455
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456
$as_echo "$ac_try_echo"; } >&5
3457
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3459
if test -s conftest.err; then
3461
... rest of stderr output deleted ...
3462
10q' conftest.err >conftest.er1
3463
cat conftest.er1 >&5
3465
rm -f conftest.er1 conftest.err
3466
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467
test $ac_status = 0; }
3470
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471
/* end confdefs.h. */
3481
ac_clean_files_save=$ac_clean_files
3482
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3483
# Try to create an executable without -o first, disregard a.out.
3484
# It will help us diagnose broken compilers, and finding out an intuition
3486
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3487
$as_echo_n "checking whether the C compiler works... " >&6; }
3488
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3490
# The possible output files:
3491
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3494
for ac_file in $ac_files
3497
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3498
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3503
if { { ac_try="$ac_link_default"
3505
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506
*) ac_try_echo=$ac_try;;
3508
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509
$as_echo "$ac_try_echo"; } >&5
3510
(eval "$ac_link_default") 2>&5
3512
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513
test $ac_status = 0; }; then :
3514
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3515
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3516
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3517
# so that the user can short-circuit this test for compilers unknown to
3519
for ac_file in $ac_files ''
3521
test -f "$ac_file" || continue
3523
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3526
# We found the default executable, but exeext='' is most
3530
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3532
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3534
# We set ac_cv_exeext here because the later test for it is not
3535
# safe: cross compilers may not add the suffix if given an `-o'
3536
# argument, so we may need to know it at that point already.
3537
# Even if this section looks crufty: it has the advantage of
3544
test "$ac_cv_exeext" = no && ac_cv_exeext=
3549
if test -z "$ac_file"; then :
3550
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551
$as_echo "no" >&6; }
3552
$as_echo "$as_me: failed program was:" >&5
3553
sed 's/^/| /' conftest.$ac_ext >&5
3555
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3556
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557
as_fn_error 77 "C compiler cannot create executables
3558
See \`config.log' for more details" "$LINENO" 5; }
3560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3561
$as_echo "yes" >&6; }
3563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3564
$as_echo_n "checking for C compiler default output file name... " >&6; }
3565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3566
$as_echo "$ac_file" >&6; }
3567
ac_exeext=$ac_cv_exeext
3569
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3570
ac_clean_files=$ac_clean_files_save
3571
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3572
$as_echo_n "checking for suffix of executables... " >&6; }
3573
if { { ac_try="$ac_link"
3575
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576
*) ac_try_echo=$ac_try;;
3578
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579
$as_echo "$ac_try_echo"; } >&5
3580
(eval "$ac_link") 2>&5
3582
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583
test $ac_status = 0; }; then :
3584
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3585
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3586
# work properly (i.e., refer to `conftest.exe'), while it won't with
3588
for ac_file in conftest.exe conftest conftest.*; do
3589
test -f "$ac_file" || continue
3591
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3592
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3598
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3599
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3601
See \`config.log' for more details" "$LINENO" 5; }
3603
rm -f conftest conftest$ac_cv_exeext
3604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3605
$as_echo "$ac_cv_exeext" >&6; }
3607
rm -f conftest.$ac_ext
3608
EXEEXT=$ac_cv_exeext
3610
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611
/* end confdefs.h. */
3616
FILE *f = fopen ("conftest.out", "w");
3617
return ferror (f) || fclose (f) != 0;
3623
ac_clean_files="$ac_clean_files conftest.out"
3624
# Check that the compiler produces executables we can run. If not, either
3625
# the compiler is broken, or we cross compile.
3626
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3627
$as_echo_n "checking whether we are cross compiling... " >&6; }
3628
if test "$cross_compiling" != yes; then
3629
{ { ac_try="$ac_link"
3631
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632
*) ac_try_echo=$ac_try;;
3634
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635
$as_echo "$ac_try_echo"; } >&5
3636
(eval "$ac_link") 2>&5
3638
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639
test $ac_status = 0; }
3640
if { ac_try='./conftest$ac_cv_exeext'
3641
{ { case "(($ac_try" in
3642
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643
*) ac_try_echo=$ac_try;;
3645
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646
$as_echo "$ac_try_echo"; } >&5
3647
(eval "$ac_try") 2>&5
3649
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650
test $ac_status = 0; }; }; then
3653
if test "$cross_compiling" = maybe; then
3656
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3657
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3658
as_fn_error $? "cannot run C compiled programs.
3659
If you meant to cross compile, use \`--host'.
3660
See \`config.log' for more details" "$LINENO" 5; }
3664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3665
$as_echo "$cross_compiling" >&6; }
3667
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3668
ac_clean_files=$ac_clean_files_save
3669
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3670
$as_echo_n "checking for suffix of object files... " >&6; }
3671
if ${ac_cv_objext+:} false; then :
3672
$as_echo_n "(cached) " >&6
3674
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675
/* end confdefs.h. */
3685
rm -f conftest.o conftest.obj
3686
if { { ac_try="$ac_compile"
3688
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689
*) ac_try_echo=$ac_try;;
3691
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692
$as_echo "$ac_try_echo"; } >&5
3693
(eval "$ac_compile") 2>&5
3695
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696
test $ac_status = 0; }; then :
3697
for ac_file in conftest.o conftest.obj conftest.*; do
3698
test -f "$ac_file" || continue;
3700
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3701
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3706
$as_echo "$as_me: failed program was:" >&5
3707
sed 's/^/| /' conftest.$ac_ext >&5
3709
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3710
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3711
as_fn_error $? "cannot compute suffix of object files: cannot compile
3712
See \`config.log' for more details" "$LINENO" 5; }
3714
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3717
$as_echo "$ac_cv_objext" >&6; }
3718
OBJEXT=$ac_cv_objext
3720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3721
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3722
if ${ac_cv_c_compiler_gnu+:} false; then :
3723
$as_echo_n "(cached) " >&6
3725
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726
/* end confdefs.h. */
3739
if ac_fn_c_try_compile "$LINENO"; then :
3744
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3749
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3750
if test $ac_compiler_gnu = yes; then
3755
ac_test_CFLAGS=${CFLAGS+set}
3756
ac_save_CFLAGS=$CFLAGS
3757
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3758
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3759
if ${ac_cv_prog_cc_g+:} false; then :
3760
$as_echo_n "(cached) " >&6
3762
ac_save_c_werror_flag=$ac_c_werror_flag
3763
ac_c_werror_flag=yes
3766
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767
/* end confdefs.h. */
3777
if ac_fn_c_try_compile "$LINENO"; then :
3781
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782
/* end confdefs.h. */
3792
if ac_fn_c_try_compile "$LINENO"; then :
3795
ac_c_werror_flag=$ac_save_c_werror_flag
3797
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798
/* end confdefs.h. */
3808
if ac_fn_c_try_compile "$LINENO"; then :
3811
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816
ac_c_werror_flag=$ac_save_c_werror_flag
3818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3819
$as_echo "$ac_cv_prog_cc_g" >&6; }
3820
if test "$ac_test_CFLAGS" = set; then
3821
CFLAGS=$ac_save_CFLAGS
3822
elif test $ac_cv_prog_cc_g = yes; then
3823
if test "$GCC" = yes; then
3829
if test "$GCC" = yes; then
3835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3836
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3837
if ${ac_cv_prog_cc_c89+:} false; then :
3838
$as_echo_n "(cached) " >&6
3840
ac_cv_prog_cc_c89=no
3842
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843
/* end confdefs.h. */
3847
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3848
struct buf { int x; };
3849
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3850
static char *e (p, i)
3856
static char *f (char * (*g) (char **, int), char **p, ...)
3861
s = g (p, va_arg (v,int));
3866
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3867
function prototypes and stuff, but not '\xHH' hex character constants.
3868
These don't provoke an error unfortunately, instead are silently treated
3869
as 'x'. The following induces an error, until -std is added to get
3870
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3871
array size at least. It's necessary to write '\x00'==0 to get something
3872
that's true only with -std. */
3873
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3875
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3876
inside strings and character constants. */
3878
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3880
int test (int i, double x);
3881
struct s1 {int (*f) (int a);};
3882
struct s2 {int (*f) (double a);};
3883
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3889
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3894
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3895
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3897
CC="$ac_save_CC $ac_arg"
3898
if ac_fn_c_try_compile "$LINENO"; then :
3899
ac_cv_prog_cc_c89=$ac_arg
3901
rm -f core conftest.err conftest.$ac_objext
3902
test "x$ac_cv_prog_cc_c89" != "xno" && break
3904
rm -f conftest.$ac_ext
3909
case "x$ac_cv_prog_cc_c89" in
3911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3912
$as_echo "none needed" >&6; } ;;
3914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3915
$as_echo "unsupported" >&6; } ;;
3917
CC="$CC $ac_cv_prog_cc_c89"
3918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3919
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3921
if test "x$ac_cv_prog_cc_c89" != xno; then :
3926
ac_cpp='$CXXCPP $CPPFLAGS'
3927
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3930
DEPDIR="${am__leading_dot}deps"
3932
ac_config_commands="$ac_config_commands depfiles"
3935
am_make=${MAKE-make}
3936
cat > confinc << 'END'
3938
@echo this is the am__doit target
3941
# If we don't find an include directive, just comment out the code.
3942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3943
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3947
# First try GNU make style include.
3948
echo "include confinc" > confmf
3949
# Ignore all kinds of additional output from 'make'.
3950
case `$am_make -s -f confmf 2> /dev/null` in #(
3951
*the\ am__doit\ target*)
3957
# Now try BSD make style include.
3958
if test "$am__include" = "#"; then
3959
echo '.include "confinc"' > confmf
3960
case `$am_make -s -f confmf 2> /dev/null` in #(
3961
*the\ am__doit\ target*)
3962
am__include=.include
3970
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3971
$as_echo "$_am_result" >&6; }
3972
rm -f confinc confmf
3974
# Check whether --enable-dependency-tracking was given.
3975
if test "${enable_dependency_tracking+set}" = set; then :
3976
enableval=$enable_dependency_tracking;
3979
if test "x$enable_dependency_tracking" != xno; then
3980
am_depcomp="$ac_aux_dir/depcomp"
3984
if test "x$enable_dependency_tracking" != xno; then
3994
depcc="$CC" am_compiler_list=
3996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3997
$as_echo_n "checking dependency style of $depcc... " >&6; }
3998
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3999
$as_echo_n "(cached) " >&6
4001
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4002
# We make a subdir and do the tests there. Otherwise we can end up
4003
# making bogus files that we don't know about and never remove. For
4004
# instance it was reported that on HP-UX the gcc test will end up
4005
# making a dummy file named 'D' -- because '-MD' means "put the output
4009
# Copy depcomp to subdir because otherwise we won't find it if we're
4010
# using a relative directory.
4011
cp "$am_depcomp" conftest.dir
4013
# We will build objects and dependencies in a subdirectory because
4014
# it helps to detect inapplicable dependency modes. For instance
4015
# both Tru64's cc and ICC support -MD to output dependencies as a
4016
# side effect of compilation, but ICC will put the dependencies in
4017
# the current directory while Tru64 will put them in the object
4021
am_cv_CC_dependencies_compiler_type=none
4022
if test "$am_compiler_list" = ""; then
4023
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4026
case " $depcc " in #(
4027
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4030
for depmode in $am_compiler_list; do
4031
# Setup a source with many dependencies, because some compilers
4032
# like to wrap large dependency lists on column 80 (with \), and
4033
# we should not choose a depcomp mode which is confused by this.
4035
# We need to recreate these files for each test, as the compiler may
4036
# overwrite some of them when testing with obscure command lines.
4037
# This happens at least with the AIX C compiler.
4039
for i in 1 2 3 4 5 6; do
4040
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4041
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4042
# Solaris 10 /bin/sh.
4043
echo '/* dummy */' > sub/conftst$i.h
4045
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4047
# We check with '-c' and '-o' for the sake of the "dashmstdout"
4048
# mode. It turns out that the SunPro C++ compiler does not properly
4049
# handle '-M -o', and we need to detect this. Also, some Intel
4050
# versions had trouble with output in subdirs.
4051
am__obj=sub/conftest.${OBJEXT-o}
4052
am__minus_obj="-o $am__obj"
4055
# This depmode causes a compiler race in universal mode.
4056
test "$am__universal" = false || continue
4059
# After this tag, mechanisms are not by side-effect, so they'll
4060
# only be used when explicitly requested.
4061
if test "x$enable_dependency_tracking" = xyes; then
4067
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4068
# This compiler won't grok '-c -o', but also, the minuso test has
4069
# not run yet. These depmodes are late enough in the game, and
4070
# so weak that their functioning should not be impacted.
4071
am__obj=conftest.${OBJEXT-o}
4076
if depmode=$depmode \
4077
source=sub/conftest.c object=$am__obj \
4078
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4079
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4080
>/dev/null 2>conftest.err &&
4081
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4082
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4083
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4084
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4085
# icc doesn't choke on unknown options, it will just issue warnings
4086
# or remarks (even with -Werror). So we grep stderr for any message
4087
# that says an option was ignored or not supported.
4088
# When given -MP, icc 7.0 and 7.1 complain thusly:
4089
# icc: Command line warning: ignoring option '-M'; no argument required
4090
# The diagnosis changed in icc 8.0:
4091
# icc: Command line remark: option '-MP' not supported
4092
if (grep 'ignoring option' conftest.err ||
4093
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4094
am_cv_CC_dependencies_compiler_type=$depmode
4103
am_cv_CC_dependencies_compiler_type=none
4107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4108
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4109
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4112
test "x$enable_dependency_tracking" != xno \
4113
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4115
am__fastdepCC_FALSE='#'
4117
am__fastdepCC_TRUE='#'
4118
am__fastdepCC_FALSE=
4123
ac_cpp='$CPP $CPPFLAGS'
4124
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4128
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4129
# On Suns, sometimes $CPP names a directory.
4130
if test -n "$CPP" && test -d "$CPP"; then
4133
if test -z "$CPP"; then
4134
if ${ac_cv_prog_CPP+:} false; then :
4135
$as_echo_n "(cached) " >&6
4137
# Double quotes because CPP needs to be expanded
4138
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4141
for ac_c_preproc_warn_flag in '' yes
4143
# Use a header file that comes with gcc, so configuring glibc
4144
# with a fresh cross-compiler works.
4145
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4146
# <limits.h> exists even on freestanding compilers.
4147
# On the NeXT, cc -E runs the code through the compiler's parser,
4148
# not just through cpp. "Syntax error" is here to catch this case.
4149
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150
/* end confdefs.h. */
4152
# include <limits.h>
4154
# include <assert.h>
4158
if ac_fn_c_try_cpp "$LINENO"; then :
4161
# Broken: fails on valid input.
4164
rm -f conftest.err conftest.i conftest.$ac_ext
4166
# OK, works on sane cases. Now check whether nonexistent headers
4167
# can be detected and how.
4168
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169
/* end confdefs.h. */
4170
#include <ac_nonexistent.h>
4172
if ac_fn_c_try_cpp "$LINENO"; then :
4173
# Broken: success on invalid input.
4176
# Passes both tests.
4180
rm -f conftest.err conftest.i conftest.$ac_ext
4183
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4184
rm -f conftest.i conftest.err conftest.$ac_ext
4185
if $ac_preproc_ok; then :
4197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4198
$as_echo "$CPP" >&6; }
4200
for ac_c_preproc_warn_flag in '' yes
4202
# Use a header file that comes with gcc, so configuring glibc
4203
# with a fresh cross-compiler works.
4204
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4205
# <limits.h> exists even on freestanding compilers.
4206
# On the NeXT, cc -E runs the code through the compiler's parser,
4207
# not just through cpp. "Syntax error" is here to catch this case.
4208
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209
/* end confdefs.h. */
4211
# include <limits.h>
4213
# include <assert.h>
4217
if ac_fn_c_try_cpp "$LINENO"; then :
4220
# Broken: fails on valid input.
4223
rm -f conftest.err conftest.i conftest.$ac_ext
4225
# OK, works on sane cases. Now check whether nonexistent headers
4226
# can be detected and how.
4227
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228
/* end confdefs.h. */
4229
#include <ac_nonexistent.h>
4231
if ac_fn_c_try_cpp "$LINENO"; then :
4232
# Broken: success on invalid input.
4235
# Passes both tests.
4239
rm -f conftest.err conftest.i conftest.$ac_ext
4242
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4243
rm -f conftest.i conftest.err conftest.$ac_ext
4244
if $ac_preproc_ok; then :
4247
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4248
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4249
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4250
See \`config.log' for more details" "$LINENO" 5; }
4254
ac_cpp='$CXXCPP $CPPFLAGS'
4255
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4260
ac_cpp='$CXXCPP $CPPFLAGS'
4261
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4264
if test -z "$CXX"; then
4265
if test -n "$CCC"; then
4268
if test -n "$ac_tool_prefix"; then
4269
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4271
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4272
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274
$as_echo_n "checking for $ac_word... " >&6; }
4275
if ${ac_cv_prog_CXX+:} false; then :
4276
$as_echo_n "(cached) " >&6
4278
if test -n "$CXX"; then
4279
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4281
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285
test -z "$as_dir" && as_dir=.
4286
for ac_exec_ext in '' $ac_executable_extensions; do
4287
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4288
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4289
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299
if test -n "$CXX"; then
4300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4301
$as_echo "$CXX" >&6; }
4303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304
$as_echo "no" >&6; }
4308
test -n "$CXX" && break
4311
if test -z "$CXX"; then
4313
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4315
# Extract the first word of "$ac_prog", so it can be a program name with args.
4316
set dummy $ac_prog; ac_word=$2
4317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318
$as_echo_n "checking for $ac_word... " >&6; }
4319
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4320
$as_echo_n "(cached) " >&6
4322
if test -n "$ac_ct_CXX"; then
4323
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329
test -z "$as_dir" && as_dir=.
4330
for ac_exec_ext in '' $ac_executable_extensions; do
4331
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332
ac_cv_prog_ac_ct_CXX="$ac_prog"
4333
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4342
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4343
if test -n "$ac_ct_CXX"; then
4344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4345
$as_echo "$ac_ct_CXX" >&6; }
4347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348
$as_echo "no" >&6; }
4352
test -n "$ac_ct_CXX" && break
4355
if test "x$ac_ct_CXX" = x; then
4358
case $cross_compiling:$ac_tool_warned in
4360
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4361
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4362
ac_tool_warned=yes ;;
4370
# Provide some information about the compiler.
4371
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4374
for ac_option in --version -v -V -qversion; do
4375
{ { ac_try="$ac_compiler $ac_option >&5"
4377
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378
*) ac_try_echo=$ac_try;;
4380
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4381
$as_echo "$ac_try_echo"; } >&5
4382
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4384
if test -s conftest.err; then
4386
... rest of stderr output deleted ...
4387
10q' conftest.err >conftest.er1
4388
cat conftest.er1 >&5
4390
rm -f conftest.er1 conftest.err
4391
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4392
test $ac_status = 0; }
4395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4396
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4397
if ${ac_cv_cxx_compiler_gnu+:} false; then :
4398
$as_echo_n "(cached) " >&6
4400
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401
/* end confdefs.h. */
4414
if ac_fn_cxx_try_compile "$LINENO"; then :
4419
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4424
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4425
if test $ac_compiler_gnu = yes; then
4430
ac_test_CXXFLAGS=${CXXFLAGS+set}
4431
ac_save_CXXFLAGS=$CXXFLAGS
4432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4433
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4434
if ${ac_cv_prog_cxx_g+:} false; then :
4435
$as_echo_n "(cached) " >&6
4437
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4438
ac_cxx_werror_flag=yes
4441
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442
/* end confdefs.h. */
4452
if ac_fn_cxx_try_compile "$LINENO"; then :
4453
ac_cv_prog_cxx_g=yes
4456
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457
/* end confdefs.h. */
4467
if ac_fn_cxx_try_compile "$LINENO"; then :
4470
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4472
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473
/* end confdefs.h. */
4483
if ac_fn_cxx_try_compile "$LINENO"; then :
4484
ac_cv_prog_cxx_g=yes
4486
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4493
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4494
$as_echo "$ac_cv_prog_cxx_g" >&6; }
4495
if test "$ac_test_CXXFLAGS" = set; then
4496
CXXFLAGS=$ac_save_CXXFLAGS
4497
elif test $ac_cv_prog_cxx_g = yes; then
4498
if test "$GXX" = yes; then
4504
if test "$GXX" = yes; then
4511
ac_cpp='$CXXCPP $CPPFLAGS'
4512
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4513
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4516
depcc="$CXX" am_compiler_list=
4518
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4519
$as_echo_n "checking dependency style of $depcc... " >&6; }
4520
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4521
$as_echo_n "(cached) " >&6
4523
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4524
# We make a subdir and do the tests there. Otherwise we can end up
4525
# making bogus files that we don't know about and never remove. For
4526
# instance it was reported that on HP-UX the gcc test will end up
4527
# making a dummy file named 'D' -- because '-MD' means "put the output
4531
# Copy depcomp to subdir because otherwise we won't find it if we're
4532
# using a relative directory.
4533
cp "$am_depcomp" conftest.dir
4535
# We will build objects and dependencies in a subdirectory because
4536
# it helps to detect inapplicable dependency modes. For instance
4537
# both Tru64's cc and ICC support -MD to output dependencies as a
4538
# side effect of compilation, but ICC will put the dependencies in
4539
# the current directory while Tru64 will put them in the object
4543
am_cv_CXX_dependencies_compiler_type=none
4544
if test "$am_compiler_list" = ""; then
4545
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4548
case " $depcc " in #(
4549
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4552
for depmode in $am_compiler_list; do
4553
# Setup a source with many dependencies, because some compilers
4554
# like to wrap large dependency lists on column 80 (with \), and
4555
# we should not choose a depcomp mode which is confused by this.
4557
# We need to recreate these files for each test, as the compiler may
4558
# overwrite some of them when testing with obscure command lines.
4559
# This happens at least with the AIX C compiler.
4561
for i in 1 2 3 4 5 6; do
4562
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4563
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4564
# Solaris 10 /bin/sh.
4565
echo '/* dummy */' > sub/conftst$i.h
4567
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4569
# We check with '-c' and '-o' for the sake of the "dashmstdout"
4570
# mode. It turns out that the SunPro C++ compiler does not properly
4571
# handle '-M -o', and we need to detect this. Also, some Intel
4572
# versions had trouble with output in subdirs.
4573
am__obj=sub/conftest.${OBJEXT-o}
4574
am__minus_obj="-o $am__obj"
4577
# This depmode causes a compiler race in universal mode.
4578
test "$am__universal" = false || continue
4581
# After this tag, mechanisms are not by side-effect, so they'll
4582
# only be used when explicitly requested.
4583
if test "x$enable_dependency_tracking" = xyes; then
4589
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4590
# This compiler won't grok '-c -o', but also, the minuso test has
4591
# not run yet. These depmodes are late enough in the game, and
4592
# so weak that their functioning should not be impacted.
4593
am__obj=conftest.${OBJEXT-o}
4598
if depmode=$depmode \
4599
source=sub/conftest.c object=$am__obj \
4600
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4601
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4602
>/dev/null 2>conftest.err &&
4603
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4604
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4605
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4606
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4607
# icc doesn't choke on unknown options, it will just issue warnings
4608
# or remarks (even with -Werror). So we grep stderr for any message
4609
# that says an option was ignored or not supported.
4610
# When given -MP, icc 7.0 and 7.1 complain thusly:
4611
# icc: Command line warning: ignoring option '-M'; no argument required
4612
# The diagnosis changed in icc 8.0:
4613
# icc: Command line remark: option '-MP' not supported
4614
if (grep 'ignoring option' conftest.err ||
4615
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4616
am_cv_CXX_dependencies_compiler_type=$depmode
4625
am_cv_CXX_dependencies_compiler_type=none
4629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4630
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4631
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4634
test "x$enable_dependency_tracking" != xno \
4635
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4636
am__fastdepCXX_TRUE=
4637
am__fastdepCXX_FALSE='#'
4639
am__fastdepCXX_TRUE='#'
4640
am__fastdepCXX_FALSE=
4645
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4646
$as_echo_n "checking whether ln -s works... " >&6; }
4648
if test "$LN_S" = "ln -s"; then
4649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4650
$as_echo "yes" >&6; }
4652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4653
$as_echo "no, using $LN_S" >&6; }
4656
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4657
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4659
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4660
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4661
$as_echo_n "(cached) " >&6
4663
cat >conftest.make <<\_ACEOF
4666
@echo '@@@%%%=$(MAKE)=@@@%%%'
4668
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4669
case `${MAKE-make} -f conftest.make 2>/dev/null` in
4671
eval ac_cv_prog_make_${ac_make}_set=yes;;
4673
eval ac_cv_prog_make_${ac_make}_set=no;;
4677
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4679
$as_echo "yes" >&6; }
4682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683
$as_echo "no" >&6; }
4684
SET_MAKE="MAKE=${MAKE-make}"
4689
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4690
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4695
macro_version='2.4.2'
4696
macro_revision='1.3337'
4710
ltmain="$ac_aux_dir/ltmain.sh"
4712
# Make sure we can run config.sub.
4713
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4714
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4717
$as_echo_n "checking build system type... " >&6; }
4718
if ${ac_cv_build+:} false; then :
4719
$as_echo_n "(cached) " >&6
4721
ac_build_alias=$build_alias
4722
test "x$ac_build_alias" = x &&
4723
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4724
test "x$ac_build_alias" = x &&
4725
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4726
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4727
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4731
$as_echo "$ac_cv_build" >&6; }
4732
case $ac_cv_build in
4734
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4737
ac_save_IFS=$IFS; IFS='-'
4743
# Remember, the first character of IFS is used to create $*,
4744
# except with old shells:
4747
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4751
$as_echo_n "checking host system type... " >&6; }
4752
if ${ac_cv_host+:} false; then :
4753
$as_echo_n "(cached) " >&6
4755
if test "x$host_alias" = x; then
4756
ac_cv_host=$ac_cv_build
4758
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4759
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4764
$as_echo "$ac_cv_host" >&6; }
4767
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4770
ac_save_IFS=$IFS; IFS='-'
4776
# Remember, the first character of IFS is used to create $*,
4777
# except with old shells:
4780
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4783
# Backslashify metacharacters that are still active within
4784
# double-quoted strings.
4785
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4787
# Same as above, but do not quote variable references.
4788
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4790
# Sed substitution to delay expansion of an escaped shell variable in a
4791
# double_quote_subst'ed string.
4792
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4794
# Sed substitution to delay expansion of an escaped single quote.
4795
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4797
# Sed substitution to avoid accidental globbing in evaled expressions
4798
no_glob_subst='s/\*/\\\*/g'
4800
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4801
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4802
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4805
$as_echo_n "checking how to print strings... " >&6; }
4806
# Test print first, because it will be a builtin if present.
4807
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4808
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4810
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4813
# Use this function as a fallback that always works.
4814
func_fallback_echo ()
4816
eval 'cat <<_LTECHO_EOF
4820
ECHO='func_fallback_echo'
4823
# func_echo_all arg...
4824
# Invoke $ECHO with all args, space-separated.
4831
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4832
$as_echo "printf" >&6; } ;;
4833
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4834
$as_echo "print -r" >&6; } ;;
4835
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4836
$as_echo "cat" >&6; } ;;
4852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4853
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4854
if ${ac_cv_path_SED+:} false; then :
4855
$as_echo_n "(cached) " >&6
4857
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4858
for ac_i in 1 2 3 4 5 6 7; do
4859
ac_script="$ac_script$as_nl$ac_script"
4861
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4862
{ ac_script=; unset ac_script;}
4863
if test -z "$SED"; then
4864
ac_path_SED_found=false
4865
# Loop through the user's path and test for each of PROGNAME-LIST
4866
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870
test -z "$as_dir" && as_dir=.
4871
for ac_prog in sed gsed; do
4872
for ac_exec_ext in '' $ac_executable_extensions; do
4873
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4874
as_fn_executable_p "$ac_path_SED" || continue
4875
# Check for GNU ac_path_SED and select it if it is found.
4876
# Check for GNU $ac_path_SED
4877
case `"$ac_path_SED" --version 2>&1` in
4879
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4882
$as_echo_n 0123456789 >"conftest.in"
4885
cat "conftest.in" "conftest.in" >"conftest.tmp"
4886
mv "conftest.tmp" "conftest.in"
4887
cp "conftest.in" "conftest.nl"
4888
$as_echo '' >> "conftest.nl"
4889
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4890
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4891
as_fn_arith $ac_count + 1 && ac_count=$as_val
4892
if test $ac_count -gt ${ac_path_SED_max-0}; then
4893
# Best one so far, save it but keep looking for a better one
4894
ac_cv_path_SED="$ac_path_SED"
4895
ac_path_SED_max=$ac_count
4897
# 10*(2^10) chars as input seems more than enough
4898
test $ac_count -gt 10 && break
4900
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4903
$ac_path_SED_found && break 3
4908
if test -z "$ac_cv_path_SED"; then
4909
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4916
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4917
$as_echo "$ac_cv_path_SED" >&6; }
4918
SED="$ac_cv_path_SED"
4921
test -z "$SED" && SED=sed
4922
Xsed="$SED -e 1s/^X//"
4934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4935
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4936
if ${ac_cv_path_GREP+:} false; then :
4937
$as_echo_n "(cached) " >&6
4939
if test -z "$GREP"; then
4940
ac_path_GREP_found=false
4941
# Loop through the user's path and test for each of PROGNAME-LIST
4942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4946
test -z "$as_dir" && as_dir=.
4947
for ac_prog in grep ggrep; do
4948
for ac_exec_ext in '' $ac_executable_extensions; do
4949
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4950
as_fn_executable_p "$ac_path_GREP" || continue
4951
# Check for GNU ac_path_GREP and select it if it is found.
4952
# Check for GNU $ac_path_GREP
4953
case `"$ac_path_GREP" --version 2>&1` in
4955
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4958
$as_echo_n 0123456789 >"conftest.in"
4961
cat "conftest.in" "conftest.in" >"conftest.tmp"
4962
mv "conftest.tmp" "conftest.in"
4963
cp "conftest.in" "conftest.nl"
4964
$as_echo 'GREP' >> "conftest.nl"
4965
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4966
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4967
as_fn_arith $ac_count + 1 && ac_count=$as_val
4968
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4969
# Best one so far, save it but keep looking for a better one
4970
ac_cv_path_GREP="$ac_path_GREP"
4971
ac_path_GREP_max=$ac_count
4973
# 10*(2^10) chars as input seems more than enough
4974
test $ac_count -gt 10 && break
4976
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4979
$ac_path_GREP_found && break 3
4984
if test -z "$ac_cv_path_GREP"; then
4985
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4988
ac_cv_path_GREP=$GREP
4992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4993
$as_echo "$ac_cv_path_GREP" >&6; }
4994
GREP="$ac_cv_path_GREP"
4997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4998
$as_echo_n "checking for egrep... " >&6; }
4999
if ${ac_cv_path_EGREP+:} false; then :
5000
$as_echo_n "(cached) " >&6
5002
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5003
then ac_cv_path_EGREP="$GREP -E"
5005
if test -z "$EGREP"; then
5006
ac_path_EGREP_found=false
5007
# Loop through the user's path and test for each of PROGNAME-LIST
5008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5012
test -z "$as_dir" && as_dir=.
5013
for ac_prog in egrep; do
5014
for ac_exec_ext in '' $ac_executable_extensions; do
5015
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5016
as_fn_executable_p "$ac_path_EGREP" || continue
5017
# Check for GNU ac_path_EGREP and select it if it is found.
5018
# Check for GNU $ac_path_EGREP
5019
case `"$ac_path_EGREP" --version 2>&1` in
5021
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5024
$as_echo_n 0123456789 >"conftest.in"
5027
cat "conftest.in" "conftest.in" >"conftest.tmp"
5028
mv "conftest.tmp" "conftest.in"
5029
cp "conftest.in" "conftest.nl"
5030
$as_echo 'EGREP' >> "conftest.nl"
5031
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5032
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5033
as_fn_arith $ac_count + 1 && ac_count=$as_val
5034
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5035
# Best one so far, save it but keep looking for a better one
5036
ac_cv_path_EGREP="$ac_path_EGREP"
5037
ac_path_EGREP_max=$ac_count
5039
# 10*(2^10) chars as input seems more than enough
5040
test $ac_count -gt 10 && break
5042
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5045
$ac_path_EGREP_found && break 3
5050
if test -z "$ac_cv_path_EGREP"; then
5051
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5054
ac_cv_path_EGREP=$EGREP
5059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5060
$as_echo "$ac_cv_path_EGREP" >&6; }
5061
EGREP="$ac_cv_path_EGREP"
5064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5065
$as_echo_n "checking for fgrep... " >&6; }
5066
if ${ac_cv_path_FGREP+:} false; then :
5067
$as_echo_n "(cached) " >&6
5069
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5070
then ac_cv_path_FGREP="$GREP -F"
5072
if test -z "$FGREP"; then
5073
ac_path_FGREP_found=false
5074
# Loop through the user's path and test for each of PROGNAME-LIST
5075
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5079
test -z "$as_dir" && as_dir=.
5080
for ac_prog in fgrep; do
5081
for ac_exec_ext in '' $ac_executable_extensions; do
5082
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5083
as_fn_executable_p "$ac_path_FGREP" || continue
5084
# Check for GNU ac_path_FGREP and select it if it is found.
5085
# Check for GNU $ac_path_FGREP
5086
case `"$ac_path_FGREP" --version 2>&1` in
5088
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5091
$as_echo_n 0123456789 >"conftest.in"
5094
cat "conftest.in" "conftest.in" >"conftest.tmp"
5095
mv "conftest.tmp" "conftest.in"
5096
cp "conftest.in" "conftest.nl"
5097
$as_echo 'FGREP' >> "conftest.nl"
5098
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5099
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5100
as_fn_arith $ac_count + 1 && ac_count=$as_val
5101
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5102
# Best one so far, save it but keep looking for a better one
5103
ac_cv_path_FGREP="$ac_path_FGREP"
5104
ac_path_FGREP_max=$ac_count
5106
# 10*(2^10) chars as input seems more than enough
5107
test $ac_count -gt 10 && break
5109
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5112
$ac_path_FGREP_found && break 3
5117
if test -z "$ac_cv_path_FGREP"; then
5118
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5121
ac_cv_path_FGREP=$FGREP
5126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5127
$as_echo "$ac_cv_path_FGREP" >&6; }
5128
FGREP="$ac_cv_path_FGREP"
5131
test -z "$GREP" && GREP=grep
5151
# Check whether --with-gnu-ld was given.
5152
if test "${with_gnu_ld+set}" = set; then :
5153
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5159
if test "$GCC" = yes; then
5160
# Check if gcc -print-prog-name=ld gives a path.
5161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5162
$as_echo_n "checking for ld used by $CC... " >&6; }
5165
# gcc leaves a trailing carriage return which upsets mingw
5166
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5168
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5171
# Accept absolute paths.
5173
re_direlt='/[^/][^/]*/\.\./'
5174
# Canonicalize the pathname of ld
5175
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5176
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5177
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5179
test -z "$LD" && LD="$ac_prog"
5182
# If it fails, then pretend we aren't using GCC.
5186
# If it is relative, then search for the first ld in PATH.
5190
elif test "$with_gnu_ld" = yes; then
5191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5192
$as_echo_n "checking for GNU ld... " >&6; }
5194
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5195
$as_echo_n "checking for non-GNU ld... " >&6; }
5197
if ${lt_cv_path_LD+:} false; then :
5198
$as_echo_n "(cached) " >&6
5200
if test -z "$LD"; then
5201
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5202
for ac_dir in $PATH; do
5204
test -z "$ac_dir" && ac_dir=.
5205
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5206
lt_cv_path_LD="$ac_dir/$ac_prog"
5207
# Check to see if the program is GNU ld. I'd rather use --version,
5208
# but apparently some variants of GNU ld only accept -v.
5209
# Break only if it was the GNU/non-GNU ld that we prefer.
5210
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5211
*GNU* | *'with BFD'*)
5212
test "$with_gnu_ld" != no && break
5215
test "$with_gnu_ld" != yes && break
5222
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5227
if test -n "$LD"; then
5228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5229
$as_echo "$LD" >&6; }
5231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232
$as_echo "no" >&6; }
5234
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5236
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5237
if ${lt_cv_prog_gnu_ld+:} false; then :
5238
$as_echo_n "(cached) " >&6
5240
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5241
case `$LD -v 2>&1 </dev/null` in
5242
*GNU* | *'with BFD'*)
5243
lt_cv_prog_gnu_ld=yes
5246
lt_cv_prog_gnu_ld=no
5250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5251
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5252
with_gnu_ld=$lt_cv_prog_gnu_ld
5262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5263
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5264
if ${lt_cv_path_NM+:} false; then :
5265
$as_echo_n "(cached) " >&6
5267
if test -n "$NM"; then
5268
# Let the user override the test.
5271
lt_nm_to_check="${ac_tool_prefix}nm"
5272
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5273
lt_nm_to_check="$lt_nm_to_check nm"
5275
for lt_tmp_nm in $lt_nm_to_check; do
5276
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5277
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5279
test -z "$ac_dir" && ac_dir=.
5280
tmp_nm="$ac_dir/$lt_tmp_nm"
5281
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5282
# Check to see if the nm accepts a BSD-compat flag.
5283
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5284
# nm: unknown option "B" ignored
5285
# Tru64's nm complains that /dev/null is an invalid object file
5286
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5287
*/dev/null* | *'Invalid file or object type'*)
5288
lt_cv_path_NM="$tmp_nm -B"
5292
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5294
lt_cv_path_NM="$tmp_nm -p"
5298
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5299
continue # so that we can try to find one that supports BSD flags
5308
: ${lt_cv_path_NM=no}
5311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5312
$as_echo "$lt_cv_path_NM" >&6; }
5313
if test "$lt_cv_path_NM" != "no"; then
5316
# Didn't find any BSD compatible name lister, look for dumpbin.
5317
if test -n "$DUMPBIN"; then :
5318
# Let the user override the test.
5320
if test -n "$ac_tool_prefix"; then
5321
for ac_prog in dumpbin "link -dump"
5323
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5324
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5325
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326
$as_echo_n "checking for $ac_word... " >&6; }
5327
if ${ac_cv_prog_DUMPBIN+:} false; then :
5328
$as_echo_n "(cached) " >&6
5330
if test -n "$DUMPBIN"; then
5331
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5333
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337
test -z "$as_dir" && as_dir=.
5338
for ac_exec_ext in '' $ac_executable_extensions; do
5339
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5341
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350
DUMPBIN=$ac_cv_prog_DUMPBIN
5351
if test -n "$DUMPBIN"; then
5352
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5353
$as_echo "$DUMPBIN" >&6; }
5355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356
$as_echo "no" >&6; }
5360
test -n "$DUMPBIN" && break
5363
if test -z "$DUMPBIN"; then
5364
ac_ct_DUMPBIN=$DUMPBIN
5365
for ac_prog in dumpbin "link -dump"
5367
# Extract the first word of "$ac_prog", so it can be a program name with args.
5368
set dummy $ac_prog; ac_word=$2
5369
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370
$as_echo_n "checking for $ac_word... " >&6; }
5371
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5372
$as_echo_n "(cached) " >&6
5374
if test -n "$ac_ct_DUMPBIN"; then
5375
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5377
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381
test -z "$as_dir" && as_dir=.
5382
for ac_exec_ext in '' $ac_executable_extensions; do
5383
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5385
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5395
if test -n "$ac_ct_DUMPBIN"; then
5396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5397
$as_echo "$ac_ct_DUMPBIN" >&6; }
5399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400
$as_echo "no" >&6; }
5404
test -n "$ac_ct_DUMPBIN" && break
5407
if test "x$ac_ct_DUMPBIN" = x; then
5410
case $cross_compiling:$ac_tool_warned in
5412
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5413
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5414
ac_tool_warned=yes ;;
5416
DUMPBIN=$ac_ct_DUMPBIN
5420
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5422
DUMPBIN="$DUMPBIN -symbols"
5430
if test "$DUMPBIN" != ":"; then
5434
test -z "$NM" && NM=nm
5441
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5442
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5443
if ${lt_cv_nm_interface+:} false; then :
5444
$as_echo_n "(cached) " >&6
5446
lt_cv_nm_interface="BSD nm"
5447
echo "int some_variable = 0;" > conftest.$ac_ext
5448
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5449
(eval "$ac_compile" 2>conftest.err)
5450
cat conftest.err >&5
5451
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5452
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5453
cat conftest.err >&5
5454
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
5455
cat conftest.out >&5
5456
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5457
lt_cv_nm_interface="MS dumpbin"
5461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5462
$as_echo "$lt_cv_nm_interface" >&6; }
5464
# find the maximum length of command line arguments
5465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5466
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5467
if ${lt_cv_sys_max_cmd_len+:} false; then :
5468
$as_echo_n "(cached) " >&6
5475
# On DJGPP, this test can blow up pretty badly due to problems in libc
5476
# (any single argument exceeding 2000 bytes causes a buffer overrun
5477
# during glob expansion). Even if it were fixed, the result of this
5478
# check would be larger than it should be.
5479
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5483
# Under GNU Hurd, this test is not required because there is
5484
# no limit to the length of command line arguments.
5485
# Libtool will interpret -1 as no limit whatsoever
5486
lt_cv_sys_max_cmd_len=-1;
5489
cygwin* | mingw* | cegcc*)
5490
# On Win9x/ME, this test blows up -- it succeeds, but takes
5491
# about 5 minutes as the teststring grows exponentially.
5492
# Worse, since 9x/ME are not pre-emptively multitasking,
5493
# you end up with a "frozen" computer, even though with patience
5494
# the test eventually succeeds (with a max line length of 256k).
5495
# Instead, let's just punt: use the minimum linelength reported by
5496
# all of the supported platforms: 8192 (on NT/2K/XP).
5497
lt_cv_sys_max_cmd_len=8192;
5501
# On MiNT this can take a long time and run out of memory.
5502
lt_cv_sys_max_cmd_len=8192;
5506
# On AmigaOS with pdksh, this test takes hours, literally.
5507
# So we just punt and use a minimum line length of 8192.
5508
lt_cv_sys_max_cmd_len=8192;
5511
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5512
# This has been around since 386BSD, at least. Likely further.
5513
if test -x /sbin/sysctl; then
5514
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5515
elif test -x /usr/sbin/sysctl; then
5516
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5518
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5520
# And add a safety zone
5521
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5522
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5526
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5527
lt_cv_sys_max_cmd_len=196608
5531
# The test takes a long time on OS/2.
5532
lt_cv_sys_max_cmd_len=8192
5536
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5537
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5538
# nice to cause kernel panics so lets avoid the loop below.
5539
# First set a reasonable default.
5540
lt_cv_sys_max_cmd_len=16384
5542
if test -x /sbin/sysconfig; then
5543
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5544
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5549
lt_cv_sys_max_cmd_len=102400
5551
sysv5* | sco5v6* | sysv4.2uw2*)
5552
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5553
if test -n "$kargmax"; then
5554
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5556
lt_cv_sys_max_cmd_len=32768
5560
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5561
if test -n "$lt_cv_sys_max_cmd_len"; then
5562
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5563
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5565
# Make teststring a little bigger before we do anything with it.
5566
# a 1K string should be a reasonable start.
5567
for i in 1 2 3 4 5 6 7 8 ; do
5568
teststring=$teststring$teststring
5570
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5571
# If test is not a shell built-in, we'll probably end up computing a
5572
# maximum length that is only half of the actual maximum length, but
5574
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5575
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
5576
test $i != 17 # 1/2 MB should be enough
5579
teststring=$teststring$teststring
5581
# Only check the string length outside the loop.
5582
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5584
# Add a significant safety factor because C++ compilers can tack on
5585
# massive amounts of additional arguments before passing them to the
5586
# linker. It appears as though 1/2 is a usable value.
5587
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5594
if test -n $lt_cv_sys_max_cmd_len ; then
5595
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5596
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5598
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5599
$as_echo "none" >&6; }
5601
max_cmd_len=$lt_cv_sys_max_cmd_len
5612
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5613
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5614
# Try some XSI features
5617
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5619
&& eval 'test $(( 1 + 1 )) -eq 2 \
5620
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5622
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5623
$as_echo "$xsi_shell" >&6; }
5626
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5627
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5629
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5631
&& lt_shell_append=yes
5632
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5633
$as_echo "$lt_shell_append" >&6; }
5636
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5646
# test EBCDIC or ASCII
5647
case `echo X|tr X '\101'` in
5648
A) # ASCII based system
5649
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5650
lt_SP2NL='tr \040 \012'
5651
lt_NL2SP='tr \015\012 \040\040'
5653
*) # EBCDIC based system
5654
lt_SP2NL='tr \100 \n'
5655
lt_NL2SP='tr \r\n \100\100'
5667
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5668
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5669
if ${lt_cv_to_host_file_cmd+:} false; then :
5670
$as_echo_n "(cached) " >&6
5675
*-*-mingw* ) # actually msys
5676
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5679
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5681
* ) # otherwise, assume *nix
5682
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5688
*-*-mingw* ) # actually msys
5689
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5692
lt_cv_to_host_file_cmd=func_convert_file_noop
5694
* ) # otherwise, assume *nix
5695
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5699
* ) # unhandled hosts (and "normal" native builds)
5700
lt_cv_to_host_file_cmd=func_convert_file_noop
5706
to_host_file_cmd=$lt_cv_to_host_file_cmd
5707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5708
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5715
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5716
if ${lt_cv_to_tool_file_cmd+:} false; then :
5717
$as_echo_n "(cached) " >&6
5719
#assume ordinary cross tools, or native build.
5720
lt_cv_to_tool_file_cmd=func_convert_file_noop
5724
*-*-mingw* ) # actually msys
5725
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5733
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5735
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5741
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5742
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5743
if ${lt_cv_ld_reload_flag+:} false; then :
5744
$as_echo_n "(cached) " >&6
5746
lt_cv_ld_reload_flag='-r'
5748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5749
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5750
reload_flag=$lt_cv_ld_reload_flag
5751
case $reload_flag in
5753
*) reload_flag=" $reload_flag" ;;
5755
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5757
cygwin* | mingw* | pw32* | cegcc*)
5758
if test "$GCC" != yes; then
5763
if test "$GCC" = yes; then
5764
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5766
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5779
if test -n "$ac_tool_prefix"; then
5780
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5781
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5783
$as_echo_n "checking for $ac_word... " >&6; }
5784
if ${ac_cv_prog_OBJDUMP+:} false; then :
5785
$as_echo_n "(cached) " >&6
5787
if test -n "$OBJDUMP"; then
5788
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5790
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794
test -z "$as_dir" && as_dir=.
5795
for ac_exec_ext in '' $ac_executable_extensions; do
5796
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5798
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5807
OBJDUMP=$ac_cv_prog_OBJDUMP
5808
if test -n "$OBJDUMP"; then
5809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5810
$as_echo "$OBJDUMP" >&6; }
5812
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813
$as_echo "no" >&6; }
5818
if test -z "$ac_cv_prog_OBJDUMP"; then
5819
ac_ct_OBJDUMP=$OBJDUMP
5820
# Extract the first word of "objdump", so it can be a program name with args.
5821
set dummy objdump; ac_word=$2
5822
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823
$as_echo_n "checking for $ac_word... " >&6; }
5824
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5825
$as_echo_n "(cached) " >&6
5827
if test -n "$ac_ct_OBJDUMP"; then
5828
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5830
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834
test -z "$as_dir" && as_dir=.
5835
for ac_exec_ext in '' $ac_executable_extensions; do
5836
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5837
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5838
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5847
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5848
if test -n "$ac_ct_OBJDUMP"; then
5849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5850
$as_echo "$ac_ct_OBJDUMP" >&6; }
5852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853
$as_echo "no" >&6; }
5856
if test "x$ac_ct_OBJDUMP" = x; then
5859
case $cross_compiling:$ac_tool_warned in
5861
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5862
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5863
ac_tool_warned=yes ;;
5865
OBJDUMP=$ac_ct_OBJDUMP
5868
OBJDUMP="$ac_cv_prog_OBJDUMP"
5871
test -z "$OBJDUMP" && OBJDUMP=objdump
5881
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5882
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5883
if ${lt_cv_deplibs_check_method+:} false; then :
5884
$as_echo_n "(cached) " >&6
5886
lt_cv_file_magic_cmd='$MAGIC_CMD'
5887
lt_cv_file_magic_test_file=
5888
lt_cv_deplibs_check_method='unknown'
5889
# Need to set the preceding variable on all platforms that support
5890
# interlibrary dependencies.
5891
# 'none' -- dependencies not supported.
5892
# `unknown' -- same as none, but documents that we really don't know.
5893
# 'pass_all' -- all dependencies passed with no checks.
5894
# 'test_compile' -- check by making test program.
5895
# 'file_magic [[regex]]' -- check by looking for files in library path
5896
# which responds to the $file_magic_cmd with a given extended regex.
5897
# If you have `file' or equivalent on your system and you're not sure
5898
# whether `pass_all' will *always* work, you probably want this one.
5902
lt_cv_deplibs_check_method=pass_all
5906
lt_cv_deplibs_check_method=pass_all
5910
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5911
lt_cv_file_magic_cmd='/usr/bin/file -L'
5912
lt_cv_file_magic_test_file=/shlib/libc.so
5916
# func_win32_libid is a shell function defined in ltmain.sh
5917
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5918
lt_cv_file_magic_cmd='func_win32_libid'
5922
# Base MSYS/MinGW do not provide the 'file' command needed by
5923
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5924
# unless we find 'file', for example because we are cross-compiling.
5925
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5926
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5927
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5928
lt_cv_file_magic_cmd='func_win32_libid'
5930
# Keep this pattern in sync with the one in func_win32_libid.
5931
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5932
lt_cv_file_magic_cmd='$OBJDUMP -f'
5937
# use the weaker test based on 'objdump'. See mingw*.
5938
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5939
lt_cv_file_magic_cmd='$OBJDUMP -f'
5942
darwin* | rhapsody*)
5943
lt_cv_deplibs_check_method=pass_all
5946
freebsd* | dragonfly*)
5947
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5950
# Not sure whether the presence of OpenBSD here was a mistake.
5951
# Let's accept both of them until this is cleared up.
5952
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5953
lt_cv_file_magic_cmd=/usr/bin/file
5954
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5958
lt_cv_deplibs_check_method=pass_all
5963
lt_cv_deplibs_check_method=pass_all
5967
lt_cv_deplibs_check_method=pass_all
5970
hpux10.20* | hpux11*)
5971
lt_cv_file_magic_cmd=/usr/bin/file
5974
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5975
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5978
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5979
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5982
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5983
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5989
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5990
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5993
irix5* | irix6* | nonstopux*)
5995
*-32|*"-32 ") libmagic=32-bit;;
5996
*-n32|*"-n32 ") libmagic=N32;;
5997
*-64|*"-64 ") libmagic=64-bit;;
5998
*) libmagic=never-match;;
6000
lt_cv_deplibs_check_method=pass_all
6003
# This must be glibc/ELF.
6004
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6005
lt_cv_deplibs_check_method=pass_all
6009
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6010
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6012
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6017
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6018
lt_cv_file_magic_cmd=/usr/bin/file
6019
lt_cv_file_magic_test_file=/usr/lib/libnls.so
6023
lt_cv_deplibs_check_method=pass_all
6027
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6028
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6030
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6034
osf3* | osf4* | osf5*)
6035
lt_cv_deplibs_check_method=pass_all
6039
lt_cv_deplibs_check_method=pass_all
6043
lt_cv_deplibs_check_method=pass_all
6046
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6047
lt_cv_deplibs_check_method=pass_all
6051
case $host_vendor in
6053
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]'
6054
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6057
lt_cv_deplibs_check_method=pass_all
6060
lt_cv_file_magic_cmd='/bin/file'
6061
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6064
lt_cv_file_magic_cmd='/bin/file'
6065
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6066
lt_cv_file_magic_test_file=/lib/libc.so
6069
lt_cv_deplibs_check_method=pass_all
6072
lt_cv_deplibs_check_method=pass_all
6078
lt_cv_deplibs_check_method=pass_all
6083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6084
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6088
if test "$build" = "$host"; then
6091
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6094
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6100
file_magic_cmd=$lt_cv_file_magic_cmd
6101
deplibs_check_method=$lt_cv_deplibs_check_method
6102
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6125
if test -n "$ac_tool_prefix"; then
6126
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6127
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6128
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129
$as_echo_n "checking for $ac_word... " >&6; }
6130
if ${ac_cv_prog_DLLTOOL+:} false; then :
6131
$as_echo_n "(cached) " >&6
6133
if test -n "$DLLTOOL"; then
6134
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6136
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140
test -z "$as_dir" && as_dir=.
6141
for ac_exec_ext in '' $ac_executable_extensions; do
6142
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6143
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6144
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153
DLLTOOL=$ac_cv_prog_DLLTOOL
6154
if test -n "$DLLTOOL"; then
6155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6156
$as_echo "$DLLTOOL" >&6; }
6158
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159
$as_echo "no" >&6; }
6164
if test -z "$ac_cv_prog_DLLTOOL"; then
6165
ac_ct_DLLTOOL=$DLLTOOL
6166
# Extract the first word of "dlltool", so it can be a program name with args.
6167
set dummy dlltool; ac_word=$2
6168
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169
$as_echo_n "checking for $ac_word... " >&6; }
6170
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6171
$as_echo_n "(cached) " >&6
6173
if test -n "$ac_ct_DLLTOOL"; then
6174
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6176
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180
test -z "$as_dir" && as_dir=.
6181
for ac_exec_ext in '' $ac_executable_extensions; do
6182
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6184
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6194
if test -n "$ac_ct_DLLTOOL"; then
6195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6196
$as_echo "$ac_ct_DLLTOOL" >&6; }
6198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199
$as_echo "no" >&6; }
6202
if test "x$ac_ct_DLLTOOL" = x; then
6205
case $cross_compiling:$ac_tool_warned in
6207
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6208
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6209
ac_tool_warned=yes ;;
6211
DLLTOOL=$ac_ct_DLLTOOL
6214
DLLTOOL="$ac_cv_prog_DLLTOOL"
6217
test -z "$DLLTOOL" && DLLTOOL=dlltool
6228
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6229
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6230
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6231
$as_echo_n "(cached) " >&6
6233
lt_cv_sharedlib_from_linklib_cmd='unknown'
6236
cygwin* | mingw* | pw32* | cegcc*)
6237
# two different shell functions defined in ltmain.sh
6238
# decide which to use based on capabilities of $DLLTOOL
6239
case `$DLLTOOL --help 2>&1` in
6240
*--identify-strict*)
6241
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6244
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6249
# fallback: assume linklib IS sharedlib
6250
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6256
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6257
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6258
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6267
if test -n "$ac_tool_prefix"; then
6270
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6271
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273
$as_echo_n "checking for $ac_word... " >&6; }
6274
if ${ac_cv_prog_AR+:} false; then :
6275
$as_echo_n "(cached) " >&6
6277
if test -n "$AR"; then
6278
ac_cv_prog_AR="$AR" # Let the user override the test.
6280
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284
test -z "$as_dir" && as_dir=.
6285
for ac_exec_ext in '' $ac_executable_extensions; do
6286
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6287
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6288
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6298
if test -n "$AR"; then
6299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6300
$as_echo "$AR" >&6; }
6302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303
$as_echo "no" >&6; }
6307
test -n "$AR" && break
6310
if test -z "$AR"; then
6314
# Extract the first word of "$ac_prog", so it can be a program name with args.
6315
set dummy $ac_prog; ac_word=$2
6316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317
$as_echo_n "checking for $ac_word... " >&6; }
6318
if ${ac_cv_prog_ac_ct_AR+:} false; then :
6319
$as_echo_n "(cached) " >&6
6321
if test -n "$ac_ct_AR"; then
6322
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6324
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328
test -z "$as_dir" && as_dir=.
6329
for ac_exec_ext in '' $ac_executable_extensions; do
6330
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6331
ac_cv_prog_ac_ct_AR="$ac_prog"
6332
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6342
if test -n "$ac_ct_AR"; then
6343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6344
$as_echo "$ac_ct_AR" >&6; }
6346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347
$as_echo "no" >&6; }
6351
test -n "$ac_ct_AR" && break
6354
if test "x$ac_ct_AR" = x; then
6357
case $cross_compiling:$ac_tool_warned in
6359
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6360
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6361
ac_tool_warned=yes ;;
6380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6381
$as_echo_n "checking for archiver @FILE support... " >&6; }
6382
if ${lt_cv_ar_at_file+:} false; then :
6383
$as_echo_n "(cached) " >&6
6386
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387
/* end confdefs.h. */
6397
if ac_fn_cxx_try_compile "$LINENO"; then :
6398
echo conftest.$ac_objext > conftest.lst
6399
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6400
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6401
(eval $lt_ar_try) 2>&5
6403
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6404
test $ac_status = 0; }
6405
if test "$ac_status" -eq 0; then
6406
# Ensure the archiver fails upon bogus file names.
6407
rm -f conftest.$ac_objext libconftest.a
6408
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6409
(eval $lt_ar_try) 2>&5
6411
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6412
test $ac_status = 0; }
6413
if test "$ac_status" -ne 0; then
6417
rm -f conftest.* libconftest.a
6420
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6424
$as_echo "$lt_cv_ar_at_file" >&6; }
6426
if test "x$lt_cv_ar_at_file" = xno; then
6429
archiver_list_spec=$lt_cv_ar_at_file
6438
if test -n "$ac_tool_prefix"; then
6439
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6440
set dummy ${ac_tool_prefix}strip; ac_word=$2
6441
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442
$as_echo_n "checking for $ac_word... " >&6; }
6443
if ${ac_cv_prog_STRIP+:} false; then :
6444
$as_echo_n "(cached) " >&6
6446
if test -n "$STRIP"; then
6447
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6449
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453
test -z "$as_dir" && as_dir=.
6454
for ac_exec_ext in '' $ac_executable_extensions; do
6455
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6457
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466
STRIP=$ac_cv_prog_STRIP
6467
if test -n "$STRIP"; then
6468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6469
$as_echo "$STRIP" >&6; }
6471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472
$as_echo "no" >&6; }
6477
if test -z "$ac_cv_prog_STRIP"; then
6479
# Extract the first word of "strip", so it can be a program name with args.
6480
set dummy strip; ac_word=$2
6481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482
$as_echo_n "checking for $ac_word... " >&6; }
6483
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6484
$as_echo_n "(cached) " >&6
6486
if test -n "$ac_ct_STRIP"; then
6487
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6489
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493
test -z "$as_dir" && as_dir=.
6494
for ac_exec_ext in '' $ac_executable_extensions; do
6495
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6496
ac_cv_prog_ac_ct_STRIP="strip"
6497
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6507
if test -n "$ac_ct_STRIP"; then
6508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6509
$as_echo "$ac_ct_STRIP" >&6; }
6511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512
$as_echo "no" >&6; }
6515
if test "x$ac_ct_STRIP" = x; then
6518
case $cross_compiling:$ac_tool_warned in
6520
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6521
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522
ac_tool_warned=yes ;;
6527
STRIP="$ac_cv_prog_STRIP"
6530
test -z "$STRIP" && STRIP=:
6537
if test -n "$ac_tool_prefix"; then
6538
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6539
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541
$as_echo_n "checking for $ac_word... " >&6; }
6542
if ${ac_cv_prog_RANLIB+:} false; then :
6543
$as_echo_n "(cached) " >&6
6545
if test -n "$RANLIB"; then
6546
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6548
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552
test -z "$as_dir" && as_dir=.
6553
for ac_exec_ext in '' $ac_executable_extensions; do
6554
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6555
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6556
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565
RANLIB=$ac_cv_prog_RANLIB
6566
if test -n "$RANLIB"; then
6567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6568
$as_echo "$RANLIB" >&6; }
6570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571
$as_echo "no" >&6; }
6576
if test -z "$ac_cv_prog_RANLIB"; then
6577
ac_ct_RANLIB=$RANLIB
6578
# Extract the first word of "ranlib", so it can be a program name with args.
6579
set dummy ranlib; ac_word=$2
6580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581
$as_echo_n "checking for $ac_word... " >&6; }
6582
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6583
$as_echo_n "(cached) " >&6
6585
if test -n "$ac_ct_RANLIB"; then
6586
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592
test -z "$as_dir" && as_dir=.
6593
for ac_exec_ext in '' $ac_executable_extensions; do
6594
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6595
ac_cv_prog_ac_ct_RANLIB="ranlib"
6596
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6606
if test -n "$ac_ct_RANLIB"; then
6607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6608
$as_echo "$ac_ct_RANLIB" >&6; }
6610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611
$as_echo "no" >&6; }
6614
if test "x$ac_ct_RANLIB" = x; then
6617
case $cross_compiling:$ac_tool_warned in
6619
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6620
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6621
ac_tool_warned=yes ;;
6623
RANLIB=$ac_ct_RANLIB
6626
RANLIB="$ac_cv_prog_RANLIB"
6629
test -z "$RANLIB" && RANLIB=:
6636
# Determine commands to create old-style static archives.
6637
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6638
old_postinstall_cmds='chmod 644 $oldlib'
6639
old_postuninstall_cmds=
6641
if test -n "$RANLIB"; then
6644
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6647
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6650
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6655
lock_old_archive_extraction=yes ;;
6657
lock_old_archive_extraction=no ;;
6698
# If no C compiler was specified, use CC.
6701
# If no C compiler flags were specified, use CFLAGS.
6702
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6704
# Allow CC to be a program name with arguments.
6708
# Check for command to grab the raw symbol name followed by C symbol from nm.
6709
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6710
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6711
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6712
$as_echo_n "(cached) " >&6
6715
# These are sane defaults that work on at least a few old systems.
6716
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6718
# Character class describing NM global symbol codes.
6719
symcode='[BCDEGRST]'
6721
# Regexp to match symbols that can be accessed directly from C.
6722
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6724
# Define system-specific variables.
6729
cygwin* | mingw* | pw32* | cegcc*)
6730
symcode='[ABCDGISTW]'
6733
if test "$host_cpu" = ia64; then
6734
symcode='[ABCDEGRST]'
6738
symcode='[BCDEGRST]'
6741
symcode='[BCDEGQRST]'
6752
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6760
# If we're using GNU nm, then use its standard symbol codes.
6761
case `$NM -V 2>&1` in
6762
*GNU* | *'with BFD'*)
6763
symcode='[ABCDGIRSTW]' ;;
6766
# Transform an extracted symbol line into a proper C declaration.
6767
# Some systems (esp. on ia64) link data and code symbols differently,
6768
# so use this general approach.
6769
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6771
# Transform an extracted symbol line into symbol name and symbol address
6772
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6773
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'"
6775
# Handle CRLF in mingw tool chain
6779
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6783
# Try without a prefix underscore, then with it.
6784
for ac_symprfx in "" "_"; do
6786
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6787
symxfrm="\\1 $ac_symprfx\\2 \\2"
6789
# Write the raw and C identifiers.
6790
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6791
# Fake it for dumpbin and say T for any non-static function
6792
# and D for any global variable.
6793
# Also find C++ and __fastcall symbols from MSVC++,
6794
# which start with @ or ?.
6795
lt_cv_sys_global_symbol_pipe="$AWK '"\
6796
" {last_section=section; section=\$ 3};"\
6797
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6798
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6799
" \$ 0!~/External *\|/{next};"\
6800
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6801
" {if(hide[section]) next};"\
6802
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6803
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6804
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6805
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6806
" ' prfx=^$ac_symprfx"
6808
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6810
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6812
# Check to see that the pipe works correctly.
6816
cat > conftest.$ac_ext <<_LT_EOF
6821
void nm_test_func(void);
6822
void nm_test_func(void){}
6826
int main(){nm_test_var='a';nm_test_func();return(0);}
6829
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6830
(eval $ac_compile) 2>&5
6832
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6833
test $ac_status = 0; }; then
6834
# Now try to grab the symbols.
6836
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6837
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6839
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6840
test $ac_status = 0; } && test -s "$nlist"; then
6841
# Try sorting and uniquifying the output.
6842
if sort "$nlist" | uniq > "$nlist"T; then
6843
mv -f "$nlist"T "$nlist"
6848
# Make sure that we snagged all the symbols we need.
6849
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6850
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6851
cat <<_LT_EOF > conftest.$ac_ext
6852
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6853
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6854
/* DATA imports from DLLs on WIN32 con't be const, because runtime
6855
relocations are performed -- see ld's documentation on pseudo-relocs. */
6856
# define LT_DLSYM_CONST
6857
#elif defined(__osf__)
6858
/* This system does not cope well with relocations in const data. */
6859
# define LT_DLSYM_CONST
6861
# define LT_DLSYM_CONST const
6869
# Now generate the symbol file.
6870
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6872
cat <<_LT_EOF >> conftest.$ac_ext
6874
/* The mapping between symbol names and symbols. */
6875
LT_DLSYM_CONST struct {
6879
lt__PROGRAM__LTX_preloaded_symbols[] =
6881
{ "@PROGRAM@", (void *) 0 },
6883
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6884
cat <<\_LT_EOF >> conftest.$ac_ext
6888
/* This works around a problem in FreeBSD linker */
6889
#ifdef FREEBSD_WORKAROUND
6890
static const void *lt_preloaded_setup() {
6891
return lt__PROGRAM__LTX_preloaded_symbols;
6899
# Now try linking the two files.
6900
mv conftest.$ac_objext conftstm.$ac_objext
6901
lt_globsym_save_LIBS=$LIBS
6902
lt_globsym_save_CFLAGS=$CFLAGS
6903
LIBS="conftstm.$ac_objext"
6904
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6905
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6906
(eval $ac_link) 2>&5
6908
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6912
LIBS=$lt_globsym_save_LIBS
6913
CFLAGS=$lt_globsym_save_CFLAGS
6915
echo "cannot find nm_test_func in $nlist" >&5
6918
echo "cannot find nm_test_var in $nlist" >&5
6921
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6924
echo "$progname: failed program was:" >&5
6925
cat conftest.$ac_ext >&5
6927
rm -rf conftest* conftst*
6929
# Do not use the global_symbol_pipe unless it works.
6930
if test "$pipe_works" = yes; then
6933
lt_cv_sys_global_symbol_pipe=
6939
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6940
lt_cv_sys_global_symbol_to_cdecl=
6942
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6944
$as_echo "failed" >&6; }
6946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6947
$as_echo "ok" >&6; }
6950
# Response file support.
6951
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6952
nm_file_list_spec='@'
6953
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6954
nm_file_list_spec='@'
6983
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6984
$as_echo_n "checking for sysroot... " >&6; }
6986
# Check whether --with-sysroot was given.
6987
if test "${with_sysroot+set}" = set; then :
6988
withval=$with_sysroot;
6995
case ${with_sysroot} in #(
6997
if test "$GCC" = yes; then
6998
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7002
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7008
$as_echo "${with_sysroot}" >&6; }
7009
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7013
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7014
$as_echo "${lt_sysroot:-no}" >&6; }
7021
# Check whether --enable-libtool-lock was given.
7022
if test "${enable_libtool_lock+set}" = set; then :
7023
enableval=$enable_libtool_lock;
7026
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7028
# Some flags need to be propagated to the compiler or linker for good
7032
# Find out which ABI we are using.
7033
echo 'int i;' > conftest.$ac_ext
7034
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7035
(eval $ac_compile) 2>&5
7037
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7038
test $ac_status = 0; }; then
7039
case `/usr/bin/file conftest.$ac_objext` in
7051
# Find out which ABI we are using.
7052
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7053
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7054
(eval $ac_compile) 2>&5
7056
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7057
test $ac_status = 0; }; then
7058
if test "$lt_cv_prog_gnu_ld" = yes; then
7059
case `/usr/bin/file conftest.$ac_objext` in
7061
LD="${LD-ld} -melf32bsmip"
7064
LD="${LD-ld} -melf32bmipn32"
7067
LD="${LD-ld} -melf64bmip"
7071
case `/usr/bin/file conftest.$ac_objext` in
7087
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7088
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7089
# Find out which ABI we are using.
7090
echo 'int i;' > conftest.$ac_ext
7091
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7092
(eval $ac_compile) 2>&5
7094
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7095
test $ac_status = 0; }; then
7096
case `/usr/bin/file conftest.o` in
7099
x86_64-*kfreebsd*-gnu)
7100
LD="${LD-ld} -m elf_i386_fbsd"
7103
LD="${LD-ld} -m elf_i386"
7105
ppc64-*linux*|powerpc64-*linux*)
7106
LD="${LD-ld} -m elf32ppclinux"
7109
LD="${LD-ld} -m elf_s390"
7112
LD="${LD-ld} -m elf32_sparc"
7118
x86_64-*kfreebsd*-gnu)
7119
LD="${LD-ld} -m elf_x86_64_fbsd"
7122
LD="${LD-ld} -m elf_x86_64"
7124
ppc*-*linux*|powerpc*-*linux*)
7125
LD="${LD-ld} -m elf64ppc"
7127
s390*-*linux*|s390*-*tpf*)
7128
LD="${LD-ld} -m elf64_s390"
7131
LD="${LD-ld} -m elf64_sparc"
7141
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
7142
SAVE_CFLAGS="$CFLAGS"
7143
CFLAGS="$CFLAGS -belf"
7144
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7145
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7146
if ${lt_cv_cc_needs_belf+:} false; then :
7147
$as_echo_n "(cached) " >&6
7150
ac_cpp='$CPP $CPPFLAGS'
7151
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7152
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7153
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7155
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156
/* end confdefs.h. */
7166
if ac_fn_c_try_link "$LINENO"; then :
7167
lt_cv_cc_needs_belf=yes
7169
lt_cv_cc_needs_belf=no
7171
rm -f core conftest.err conftest.$ac_objext \
7172
conftest$ac_exeext conftest.$ac_ext
7174
ac_cpp='$CPP $CPPFLAGS'
7175
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7176
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7177
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7181
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7182
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7183
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7184
CFLAGS="$SAVE_CFLAGS"
7188
# Find out which ABI we are using.
7189
echo 'int i;' > conftest.$ac_ext
7190
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7191
(eval $ac_compile) 2>&5
7193
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7194
test $ac_status = 0; }; then
7195
case `/usr/bin/file conftest.o` in
7197
case $lt_cv_prog_gnu_ld in
7201
LD="${LD-ld} -m elf_x86_64"
7204
LD="${LD-ld} -m elf64_sparc"
7207
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7208
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7213
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7225
need_locks="$enable_libtool_lock"
7227
if test -n "$ac_tool_prefix"; then
7228
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7229
set dummy ${ac_tool_prefix}mt; ac_word=$2
7230
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231
$as_echo_n "checking for $ac_word... " >&6; }
7232
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7233
$as_echo_n "(cached) " >&6
7235
if test -n "$MANIFEST_TOOL"; then
7236
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7238
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242
test -z "$as_dir" && as_dir=.
7243
for ac_exec_ext in '' $ac_executable_extensions; do
7244
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7245
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7246
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7256
if test -n "$MANIFEST_TOOL"; then
7257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7258
$as_echo "$MANIFEST_TOOL" >&6; }
7260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261
$as_echo "no" >&6; }
7266
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7267
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7268
# Extract the first word of "mt", so it can be a program name with args.
7269
set dummy mt; ac_word=$2
7270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271
$as_echo_n "checking for $ac_word... " >&6; }
7272
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7273
$as_echo_n "(cached) " >&6
7275
if test -n "$ac_ct_MANIFEST_TOOL"; then
7276
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7278
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282
test -z "$as_dir" && as_dir=.
7283
for ac_exec_ext in '' $ac_executable_extensions; do
7284
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7285
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7286
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7296
if test -n "$ac_ct_MANIFEST_TOOL"; then
7297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7298
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301
$as_echo "no" >&6; }
7304
if test "x$ac_ct_MANIFEST_TOOL" = x; then
7307
case $cross_compiling:$ac_tool_warned in
7309
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7310
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7311
ac_tool_warned=yes ;;
7313
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7316
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7319
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7321
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7322
if ${lt_cv_path_mainfest_tool+:} false; then :
7323
$as_echo_n "(cached) " >&6
7325
lt_cv_path_mainfest_tool=no
7326
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7327
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7328
cat conftest.err >&5
7329
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7330
lt_cv_path_mainfest_tool=yes
7334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7335
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7336
if test "x$lt_cv_path_mainfest_tool" != xyes; then
7346
rhapsody* | darwin*)
7347
if test -n "$ac_tool_prefix"; then
7348
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7349
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7350
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351
$as_echo_n "checking for $ac_word... " >&6; }
7352
if ${ac_cv_prog_DSYMUTIL+:} false; then :
7353
$as_echo_n "(cached) " >&6
7355
if test -n "$DSYMUTIL"; then
7356
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7358
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362
test -z "$as_dir" && as_dir=.
7363
for ac_exec_ext in '' $ac_executable_extensions; do
7364
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7366
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7376
if test -n "$DSYMUTIL"; then
7377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7378
$as_echo "$DSYMUTIL" >&6; }
7380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381
$as_echo "no" >&6; }
7386
if test -z "$ac_cv_prog_DSYMUTIL"; then
7387
ac_ct_DSYMUTIL=$DSYMUTIL
7388
# Extract the first word of "dsymutil", so it can be a program name with args.
7389
set dummy dsymutil; ac_word=$2
7390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391
$as_echo_n "checking for $ac_word... " >&6; }
7392
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7393
$as_echo_n "(cached) " >&6
7395
if test -n "$ac_ct_DSYMUTIL"; then
7396
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7398
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402
test -z "$as_dir" && as_dir=.
7403
for ac_exec_ext in '' $ac_executable_extensions; do
7404
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7406
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7416
if test -n "$ac_ct_DSYMUTIL"; then
7417
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7418
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421
$as_echo "no" >&6; }
7424
if test "x$ac_ct_DSYMUTIL" = x; then
7427
case $cross_compiling:$ac_tool_warned in
7429
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7430
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431
ac_tool_warned=yes ;;
7433
DSYMUTIL=$ac_ct_DSYMUTIL
7436
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7439
if test -n "$ac_tool_prefix"; then
7440
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7441
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7442
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443
$as_echo_n "checking for $ac_word... " >&6; }
7444
if ${ac_cv_prog_NMEDIT+:} false; then :
7445
$as_echo_n "(cached) " >&6
7447
if test -n "$NMEDIT"; then
7448
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7450
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454
test -z "$as_dir" && as_dir=.
7455
for ac_exec_ext in '' $ac_executable_extensions; do
7456
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7457
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7458
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467
NMEDIT=$ac_cv_prog_NMEDIT
7468
if test -n "$NMEDIT"; then
7469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7470
$as_echo "$NMEDIT" >&6; }
7472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473
$as_echo "no" >&6; }
7478
if test -z "$ac_cv_prog_NMEDIT"; then
7479
ac_ct_NMEDIT=$NMEDIT
7480
# Extract the first word of "nmedit", so it can be a program name with args.
7481
set dummy nmedit; ac_word=$2
7482
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483
$as_echo_n "checking for $ac_word... " >&6; }
7484
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7485
$as_echo_n "(cached) " >&6
7487
if test -n "$ac_ct_NMEDIT"; then
7488
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7490
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494
test -z "$as_dir" && as_dir=.
7495
for ac_exec_ext in '' $ac_executable_extensions; do
7496
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7498
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7508
if test -n "$ac_ct_NMEDIT"; then
7509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7510
$as_echo "$ac_ct_NMEDIT" >&6; }
7512
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513
$as_echo "no" >&6; }
7516
if test "x$ac_ct_NMEDIT" = x; then
7519
case $cross_compiling:$ac_tool_warned in
7521
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7522
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7523
ac_tool_warned=yes ;;
7525
NMEDIT=$ac_ct_NMEDIT
7528
NMEDIT="$ac_cv_prog_NMEDIT"
7531
if test -n "$ac_tool_prefix"; then
7532
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7533
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535
$as_echo_n "checking for $ac_word... " >&6; }
7536
if ${ac_cv_prog_LIPO+:} false; then :
7537
$as_echo_n "(cached) " >&6
7539
if test -n "$LIPO"; then
7540
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7542
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546
test -z "$as_dir" && as_dir=.
7547
for ac_exec_ext in '' $ac_executable_extensions; do
7548
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7549
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7550
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7559
LIPO=$ac_cv_prog_LIPO
7560
if test -n "$LIPO"; then
7561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7562
$as_echo "$LIPO" >&6; }
7564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565
$as_echo "no" >&6; }
7570
if test -z "$ac_cv_prog_LIPO"; then
7572
# Extract the first word of "lipo", so it can be a program name with args.
7573
set dummy lipo; ac_word=$2
7574
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575
$as_echo_n "checking for $ac_word... " >&6; }
7576
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7577
$as_echo_n "(cached) " >&6
7579
if test -n "$ac_ct_LIPO"; then
7580
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7582
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586
test -z "$as_dir" && as_dir=.
7587
for ac_exec_ext in '' $ac_executable_extensions; do
7588
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589
ac_cv_prog_ac_ct_LIPO="lipo"
7590
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7600
if test -n "$ac_ct_LIPO"; then
7601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7602
$as_echo "$ac_ct_LIPO" >&6; }
7604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605
$as_echo "no" >&6; }
7608
if test "x$ac_ct_LIPO" = x; then
7611
case $cross_compiling:$ac_tool_warned in
7613
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7614
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7615
ac_tool_warned=yes ;;
7620
LIPO="$ac_cv_prog_LIPO"
7623
if test -n "$ac_tool_prefix"; then
7624
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7625
set dummy ${ac_tool_prefix}otool; ac_word=$2
7626
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627
$as_echo_n "checking for $ac_word... " >&6; }
7628
if ${ac_cv_prog_OTOOL+:} false; then :
7629
$as_echo_n "(cached) " >&6
7631
if test -n "$OTOOL"; then
7632
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638
test -z "$as_dir" && as_dir=.
7639
for ac_exec_ext in '' $ac_executable_extensions; do
7640
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7641
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7642
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7651
OTOOL=$ac_cv_prog_OTOOL
7652
if test -n "$OTOOL"; then
7653
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7654
$as_echo "$OTOOL" >&6; }
7656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657
$as_echo "no" >&6; }
7662
if test -z "$ac_cv_prog_OTOOL"; then
7664
# Extract the first word of "otool", so it can be a program name with args.
7665
set dummy otool; ac_word=$2
7666
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667
$as_echo_n "checking for $ac_word... " >&6; }
7668
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7669
$as_echo_n "(cached) " >&6
7671
if test -n "$ac_ct_OTOOL"; then
7672
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7674
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678
test -z "$as_dir" && as_dir=.
7679
for ac_exec_ext in '' $ac_executable_extensions; do
7680
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7681
ac_cv_prog_ac_ct_OTOOL="otool"
7682
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7692
if test -n "$ac_ct_OTOOL"; then
7693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7694
$as_echo "$ac_ct_OTOOL" >&6; }
7696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697
$as_echo "no" >&6; }
7700
if test "x$ac_ct_OTOOL" = x; then
7703
case $cross_compiling:$ac_tool_warned in
7705
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7706
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7707
ac_tool_warned=yes ;;
7712
OTOOL="$ac_cv_prog_OTOOL"
7715
if test -n "$ac_tool_prefix"; then
7716
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7717
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719
$as_echo_n "checking for $ac_word... " >&6; }
7720
if ${ac_cv_prog_OTOOL64+:} false; then :
7721
$as_echo_n "(cached) " >&6
7723
if test -n "$OTOOL64"; then
7724
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730
test -z "$as_dir" && as_dir=.
7731
for ac_exec_ext in '' $ac_executable_extensions; do
7732
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7733
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7734
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743
OTOOL64=$ac_cv_prog_OTOOL64
7744
if test -n "$OTOOL64"; then
7745
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7746
$as_echo "$OTOOL64" >&6; }
7748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749
$as_echo "no" >&6; }
7754
if test -z "$ac_cv_prog_OTOOL64"; then
7755
ac_ct_OTOOL64=$OTOOL64
7756
# Extract the first word of "otool64", so it can be a program name with args.
7757
set dummy otool64; ac_word=$2
7758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759
$as_echo_n "checking for $ac_word... " >&6; }
7760
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7761
$as_echo_n "(cached) " >&6
7763
if test -n "$ac_ct_OTOOL64"; then
7764
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7766
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770
test -z "$as_dir" && as_dir=.
7771
for ac_exec_ext in '' $ac_executable_extensions; do
7772
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773
ac_cv_prog_ac_ct_OTOOL64="otool64"
7774
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7784
if test -n "$ac_ct_OTOOL64"; then
7785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7786
$as_echo "$ac_ct_OTOOL64" >&6; }
7788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789
$as_echo "no" >&6; }
7792
if test "x$ac_ct_OTOOL64" = x; then
7795
case $cross_compiling:$ac_tool_warned in
7797
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7798
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7799
ac_tool_warned=yes ;;
7801
OTOOL64=$ac_ct_OTOOL64
7804
OTOOL64="$ac_cv_prog_OTOOL64"
7833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7834
$as_echo_n "checking for -single_module linker flag... " >&6; }
7835
if ${lt_cv_apple_cc_single_mod+:} false; then :
7836
$as_echo_n "(cached) " >&6
7838
lt_cv_apple_cc_single_mod=no
7839
if test -z "${LT_MULTI_MODULE}"; then
7840
# By default we will add the -single_module flag. You can override
7841
# by either setting the environment variable LT_MULTI_MODULE
7842
# non-empty at configure time, or by adding -multi_module to the
7844
rm -rf libconftest.dylib*
7845
echo "int foo(void){return 1;}" > conftest.c
7846
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7847
-dynamiclib -Wl,-single_module conftest.c" >&5
7848
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7849
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7851
# If there is a non-empty error log, and "single_module"
7852
# appears in it, assume the flag caused a linker warning
7853
if test -s conftest.err && $GREP single_module conftest.err; then
7854
cat conftest.err >&5
7855
# Otherwise, if the output was created with a 0 exit code from
7856
# the compiler, it worked.
7857
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7858
lt_cv_apple_cc_single_mod=yes
7860
cat conftest.err >&5
7862
rm -rf libconftest.dylib*
7866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7867
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7870
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7871
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7872
$as_echo_n "(cached) " >&6
7874
lt_cv_ld_exported_symbols_list=no
7875
save_LDFLAGS=$LDFLAGS
7876
echo "_main" > conftest.sym
7877
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7878
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879
/* end confdefs.h. */
7889
if ac_fn_c_try_link "$LINENO"; then :
7890
lt_cv_ld_exported_symbols_list=yes
7892
lt_cv_ld_exported_symbols_list=no
7894
rm -f core conftest.err conftest.$ac_objext \
7895
conftest$ac_exeext conftest.$ac_ext
7896
LDFLAGS="$save_LDFLAGS"
7899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7900
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7902
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7903
$as_echo_n "checking for -force_load linker flag... " >&6; }
7904
if ${lt_cv_ld_force_load+:} false; then :
7905
$as_echo_n "(cached) " >&6
7907
lt_cv_ld_force_load=no
7908
cat > conftest.c << _LT_EOF
7909
int forced_loaded() { return 2;}
7911
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7912
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7913
echo "$AR cru libconftest.a conftest.o" >&5
7914
$AR cru libconftest.a conftest.o 2>&5
7915
echo "$RANLIB libconftest.a" >&5
7916
$RANLIB libconftest.a 2>&5
7917
cat > conftest.c << _LT_EOF
7918
int main() { return 0;}
7920
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7921
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7923
if test -s conftest.err && $GREP force_load conftest.err; then
7924
cat conftest.err >&5
7925
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7926
lt_cv_ld_force_load=yes
7928
cat conftest.err >&5
7930
rm -f conftest.err libconftest.a conftest conftest.c
7931
rm -rf conftest.dSYM
7934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7935
$as_echo "$lt_cv_ld_force_load" >&6; }
7937
rhapsody* | darwin1.[012])
7938
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7940
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7941
darwin*) # darwin 5.x on
7942
# if running on 10.5 or later, the deployment target defaults
7943
# to the OS version, if on x86, and 10.4, the deployment
7944
# target defaults to 10.4. Don't you love it?
7945
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7946
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7947
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7949
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7951
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7955
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7956
_lt_dar_single_mod='$single_module'
7958
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7959
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7961
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7963
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7964
_lt_dsymutil='~$DSYMUTIL $lib || :'
7972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7973
$as_echo_n "checking for ANSI C header files... " >&6; }
7974
if ${ac_cv_header_stdc+:} false; then :
7975
$as_echo_n "(cached) " >&6
7977
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978
/* end confdefs.h. */
7992
if ac_fn_c_try_compile "$LINENO"; then :
7993
ac_cv_header_stdc=yes
7995
ac_cv_header_stdc=no
7997
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999
if test $ac_cv_header_stdc = yes; then
8000
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8001
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002
/* end confdefs.h. */
8006
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8007
$EGREP "memchr" >/dev/null 2>&1; then :
8010
ac_cv_header_stdc=no
8016
if test $ac_cv_header_stdc = yes; then
8017
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8018
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019
/* end confdefs.h. */
8023
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8024
$EGREP "free" >/dev/null 2>&1; then :
8027
ac_cv_header_stdc=no
8033
if test $ac_cv_header_stdc = yes; then
8034
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8035
if test "$cross_compiling" = yes; then :
8038
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039
/* end confdefs.h. */
8042
#if ((' ' & 0x0FF) == 0x020)
8043
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8044
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8046
# define ISLOWER(c) \
8047
(('a' <= (c) && (c) <= 'i') \
8048
|| ('j' <= (c) && (c) <= 'r') \
8049
|| ('s' <= (c) && (c) <= 'z'))
8050
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8053
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8058
for (i = 0; i < 256; i++)
8059
if (XOR (islower (i), ISLOWER (i))
8060
|| toupper (i) != TOUPPER (i))
8065
if ac_fn_c_try_run "$LINENO"; then :
8068
ac_cv_header_stdc=no
8070
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8071
conftest.$ac_objext conftest.beam conftest.$ac_ext
8076
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8077
$as_echo "$ac_cv_header_stdc" >&6; }
8078
if test $ac_cv_header_stdc = yes; then
8080
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8084
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8085
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8086
inttypes.h stdint.h unistd.h
8088
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8089
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8091
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8092
cat >>confdefs.h <<_ACEOF
8093
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8101
for ac_header in dlfcn.h
8103
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8105
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8106
cat >>confdefs.h <<_ACEOF
8107
#define HAVE_DLFCN_H 1
8116
func_stripname_cnf ()
8119
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8120
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8122
} # func_stripname_cnf
8138
# Check whether --enable-shared was given.
8139
if test "${enable_shared+set}" = set; then :
8140
enableval=$enable_shared; p=${PACKAGE-default}
8142
yes) enable_shared=yes ;;
8143
no) enable_shared=no ;;
8146
# Look at the argument we got. We use all the common list separators.
8147
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8148
for pkg in $enableval; do
8150
if test "X$pkg" = "X$p"; then
8169
# Check whether --enable-static was given.
8170
if test "${enable_static+set}" = set; then :
8171
enableval=$enable_static; p=${PACKAGE-default}
8173
yes) enable_static=yes ;;
8174
no) enable_static=no ;;
8177
# Look at the argument we got. We use all the common list separators.
8178
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8179
for pkg in $enableval; do
8181
if test "X$pkg" = "X$p"; then
8201
# Check whether --with-pic was given.
8202
if test "${with_pic+set}" = set; then :
8203
withval=$with_pic; lt_p=${PACKAGE-default}
8205
yes|no) pic_mode=$withval ;;
8208
# Look at the argument we got. We use all the common list separators.
8209
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8210
for lt_pkg in $withval; do
8212
if test "X$lt_pkg" = "X$lt_p"; then
8224
test -z "$pic_mode" && pic_mode=default
8232
# Check whether --enable-fast-install was given.
8233
if test "${enable_fast_install+set}" = set; then :
8234
enableval=$enable_fast_install; p=${PACKAGE-default}
8236
yes) enable_fast_install=yes ;;
8237
no) enable_fast_install=no ;;
8239
enable_fast_install=no
8240
# Look at the argument we got. We use all the common list separators.
8241
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8242
for pkg in $enableval; do
8244
if test "X$pkg" = "X$p"; then
8245
enable_fast_install=yes
8252
enable_fast_install=yes
8265
# This can be used to rebuild libtool when needed
8266
LIBTOOL_DEPS="$ltmain"
8268
# Always use our own libtool.
8269
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8300
test -z "$LN_S" && LN_S="ln -s"
8315
if test -n "${ZSH_VERSION+set}" ; then
8316
setopt NO_GLOB_SUBST
8319
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8320
$as_echo_n "checking for objdir... " >&6; }
8321
if ${lt_cv_objdir+:} false; then :
8322
$as_echo_n "(cached) " >&6
8324
rm -f .libs 2>/dev/null
8325
mkdir .libs 2>/dev/null
8326
if test -d .libs; then
8329
# MS-DOS does not allow filenames that begin with a dot.
8332
rmdir .libs 2>/dev/null
8334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8335
$as_echo "$lt_cv_objdir" >&6; }
8336
objdir=$lt_cv_objdir
8342
cat >>confdefs.h <<_ACEOF
8343
#define LT_OBJDIR "$lt_cv_objdir/"
8351
# AIX sometimes has problems with the GCC collect2 program. For some
8352
# reason, if we set the COLLECT_NAMES environment variable, the problems
8353
# vanish in a puff of smoke.
8354
if test "X${COLLECT_NAMES+set}" != Xset; then
8356
export COLLECT_NAMES
8363
can_build_shared=yes
8365
# All known linkers require a `.a' archive for static linking (except MSVC,
8366
# which needs '.lib').
8369
with_gnu_ld="$lt_cv_prog_gnu_ld"
8372
old_CFLAGS="$CFLAGS"
8374
# Set sane defaults for various variables
8375
test -z "$CC" && CC=cc
8376
test -z "$LTCC" && LTCC=$CC
8377
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8378
test -z "$LD" && LD=ld
8379
test -z "$ac_objext" && ac_objext=o
8381
for cc_temp in $compiler""; do
8383
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8384
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8389
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8392
# Only perform the check for file, if the check method requires it
8393
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8394
case $deplibs_check_method in
8396
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8397
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8398
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8399
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8400
$as_echo_n "(cached) " >&6
8404
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8407
lt_save_MAGIC_CMD="$MAGIC_CMD"
8408
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8409
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8410
for ac_dir in $ac_dummy; do
8412
test -z "$ac_dir" && ac_dir=.
8413
if test -f $ac_dir/${ac_tool_prefix}file; then
8414
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8415
if test -n "$file_magic_test_file"; then
8416
case $deplibs_check_method in
8418
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8419
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8420
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8421
$EGREP "$file_magic_regex" > /dev/null; then
8426
*** Warning: the command libtool uses to detect shared libraries,
8427
*** $file_magic_cmd, produces output that libtool cannot recognize.
8428
*** The result is that libtool may fail to recognize shared libraries
8429
*** as such. This will affect the creation of libtool libraries that
8430
*** depend on shared libraries, but programs linked with such libtool
8431
*** libraries will work regardless of this problem. Nevertheless, you
8432
*** may want to report the problem to your system manager and/or to
8433
*** bug-libtool@gnu.org
8443
MAGIC_CMD="$lt_save_MAGIC_CMD"
8448
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8449
if test -n "$MAGIC_CMD"; then
8450
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8451
$as_echo "$MAGIC_CMD" >&6; }
8453
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454
$as_echo "no" >&6; }
8461
if test -z "$lt_cv_path_MAGIC_CMD"; then
8462
if test -n "$ac_tool_prefix"; then
8463
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8464
$as_echo_n "checking for file... " >&6; }
8465
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8466
$as_echo_n "(cached) " >&6
8470
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8473
lt_save_MAGIC_CMD="$MAGIC_CMD"
8474
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8475
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8476
for ac_dir in $ac_dummy; do
8478
test -z "$ac_dir" && ac_dir=.
8479
if test -f $ac_dir/file; then
8480
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8481
if test -n "$file_magic_test_file"; then
8482
case $deplibs_check_method in
8484
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8485
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8486
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8487
$EGREP "$file_magic_regex" > /dev/null; then
8492
*** Warning: the command libtool uses to detect shared libraries,
8493
*** $file_magic_cmd, produces output that libtool cannot recognize.
8494
*** The result is that libtool may fail to recognize shared libraries
8495
*** as such. This will affect the creation of libtool libraries that
8496
*** depend on shared libraries, but programs linked with such libtool
8497
*** libraries will work regardless of this problem. Nevertheless, you
8498
*** may want to report the problem to your system manager and/or to
8499
*** bug-libtool@gnu.org
8509
MAGIC_CMD="$lt_save_MAGIC_CMD"
8514
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8515
if test -n "$MAGIC_CMD"; then
8516
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8517
$as_echo "$MAGIC_CMD" >&6; }
8519
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520
$as_echo "no" >&6; }
8533
# Use C for the default configuration in the libtool script
8537
ac_cpp='$CPP $CPPFLAGS'
8538
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8539
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8540
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8543
# Source file extension for C test sources.
8546
# Object file extension for compiled C test sources.
8550
# Code to be used in simple compile tests
8551
lt_simple_compile_test_code="int some_variable = 0;"
8553
# Code to be used in simple link tests
8554
lt_simple_link_test_code='int main(){return(0);}'
8562
# If no C compiler was specified, use CC.
8565
# If no C compiler flags were specified, use CFLAGS.
8566
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8568
# Allow CC to be a program name with arguments.
8571
# Save the default compiler, since it gets overwritten when the other
8572
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8573
compiler_DEFAULT=$CC
8575
# save warnings/boilerplate of simple test code
8576
ac_outfile=conftest.$ac_objext
8577
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8578
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8579
_lt_compiler_boilerplate=`cat conftest.err`
8582
ac_outfile=conftest.$ac_objext
8583
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8584
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8585
_lt_linker_boilerplate=`cat conftest.err`
8590
## There is no encapsulation within the following macros, do not change
8591
## the running order or otherwise move them around unless you know exactly
8592
## what you are doing...
8593
if test -n "$compiler"; then
8595
lt_prog_compiler_no_builtin_flag=
8597
if test "$GCC" = yes; then
8598
case $cc_basename in
8600
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8602
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8605
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8606
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8607
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8608
$as_echo_n "(cached) " >&6
8610
lt_cv_prog_compiler_rtti_exceptions=no
8611
ac_outfile=conftest.$ac_objext
8612
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8613
lt_compiler_flag="-fno-rtti -fno-exceptions"
8614
# Insert the option either (1) after the last *FLAGS variable, or
8615
# (2) before a word containing "conftest.", or (3) at the end.
8616
# Note that $ac_compile itself does not contain backslashes and begins
8617
# with a dollar sign (not a hyphen), so the echo should work correctly.
8618
# The option is referenced via a variable to avoid confusing sed.
8619
lt_compile=`echo "$ac_compile" | $SED \
8620
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8621
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8622
-e 's:$: $lt_compiler_flag:'`
8623
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8624
(eval "$lt_compile" 2>conftest.err)
8626
cat conftest.err >&5
8627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628
if (exit $ac_status) && test -s "$ac_outfile"; then
8629
# The compiler can only warn and ignore the option if not recognized
8630
# So say no if there are warnings other than the usual output.
8631
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8632
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8633
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8634
lt_cv_prog_compiler_rtti_exceptions=yes
8640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8641
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8643
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8644
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8656
lt_prog_compiler_wl=
8657
lt_prog_compiler_pic=
8658
lt_prog_compiler_static=
8661
if test "$GCC" = yes; then
8662
lt_prog_compiler_wl='-Wl,'
8663
lt_prog_compiler_static='-static'
8667
# All AIX code is PIC.
8668
if test "$host_cpu" = ia64; then
8669
# AIX 5 now supports IA64 processor
8670
lt_prog_compiler_static='-Bstatic'
8677
# see comment about AmigaOS4 .so support
8678
lt_prog_compiler_pic='-fPIC'
8681
# FIXME: we need at least 68020 code to build shared libraries, but
8682
# adding the `-m68020' flag to GCC prevents building anything better,
8684
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8689
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8690
# PIC is the default for these OSes.
8693
mingw* | cygwin* | pw32* | os2* | cegcc*)
8694
# This hack is so that the source file can tell whether it is being
8695
# built for inclusion in a dll (and should export symbols for example).
8696
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8697
# (--disable-auto-import) libraries
8698
lt_prog_compiler_pic='-DDLL_EXPORT'
8701
darwin* | rhapsody*)
8702
# PIC is the default on this platform
8703
# Common symbols not allowed in MH_DYLIB files
8704
lt_prog_compiler_pic='-fno-common'
8708
# PIC is the default for Haiku.
8709
# The "-static" flag exists, but is broken.
8710
lt_prog_compiler_static=
8714
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8715
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8716
# sets the default TLS model and affects inlining.
8722
lt_prog_compiler_pic='-fPIC'
8728
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8729
# Instead, we relocate shared libraries at runtime.
8733
# Just because we use GCC doesn't mean we suddenly get shared libraries
8734
# on systems that don't support them.
8735
lt_prog_compiler_can_build_shared=no
8740
# QNX uses GNU C++, but need to define -shared option too, otherwise
8742
lt_prog_compiler_pic='-fPIC -shared'
8746
if test -d /usr/nec; then
8747
lt_prog_compiler_pic=-Kconform_pic
8752
lt_prog_compiler_pic='-fPIC'
8756
case $cc_basename in
8757
nvcc*) # Cuda Compiler Driver 2.2
8758
lt_prog_compiler_wl='-Xlinker '
8759
if test -n "$lt_prog_compiler_pic"; then
8760
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8765
# PORTME Check for flag to pass linker flags through the system compiler.
8768
lt_prog_compiler_wl='-Wl,'
8769
if test "$host_cpu" = ia64; then
8770
# AIX 5 now supports IA64 processor
8771
lt_prog_compiler_static='-Bstatic'
8773
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8777
mingw* | cygwin* | pw32* | os2* | cegcc*)
8778
# This hack is so that the source file can tell whether it is being
8779
# built for inclusion in a dll (and should export symbols for example).
8780
lt_prog_compiler_pic='-DDLL_EXPORT'
8783
hpux9* | hpux10* | hpux11*)
8784
lt_prog_compiler_wl='-Wl,'
8785
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8792
lt_prog_compiler_pic='+Z'
8795
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8796
lt_prog_compiler_static='${wl}-a ${wl}archive'
8799
irix5* | irix6* | nonstopux*)
8800
lt_prog_compiler_wl='-Wl,'
8801
# PIC (with -KPIC) is the default.
8802
lt_prog_compiler_static='-non_shared'
8805
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8806
case $cc_basename in
8807
# old Intel for x86_64 which still supported -KPIC.
8809
lt_prog_compiler_wl='-Wl,'
8810
lt_prog_compiler_pic='-KPIC'
8811
lt_prog_compiler_static='-static'
8813
# icc used to be incompatible with GCC.
8814
# ICC 10 doesn't accept -KPIC any more.
8816
lt_prog_compiler_wl='-Wl,'
8817
lt_prog_compiler_pic='-fPIC'
8818
lt_prog_compiler_static='-static'
8820
# Lahey Fortran 8.1.
8822
lt_prog_compiler_wl='-Wl,'
8823
lt_prog_compiler_pic='--shared'
8824
lt_prog_compiler_static='--static'
8827
# NAG Fortran compiler
8828
lt_prog_compiler_wl='-Wl,-Wl,,'
8829
lt_prog_compiler_pic='-PIC'
8830
lt_prog_compiler_static='-Bstatic'
8832
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8833
# Portland Group compilers (*not* the Pentium gcc compiler,
8834
# which looks to be a dead project)
8835
lt_prog_compiler_wl='-Wl,'
8836
lt_prog_compiler_pic='-fpic'
8837
lt_prog_compiler_static='-Bstatic'
8840
lt_prog_compiler_wl='-Wl,'
8841
# All Alpha code is PIC.
8842
lt_prog_compiler_static='-non_shared'
8844
xl* | bgxl* | bgf* | mpixl*)
8845
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8846
lt_prog_compiler_wl='-Wl,'
8847
lt_prog_compiler_pic='-qpic'
8848
lt_prog_compiler_static='-qstaticlink'
8851
case `$CC -V 2>&1 | sed 5q` in
8852
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8853
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8854
lt_prog_compiler_pic='-KPIC'
8855
lt_prog_compiler_static='-Bstatic'
8856
lt_prog_compiler_wl=''
8858
*Sun\ F* | *Sun*Fortran*)
8859
lt_prog_compiler_pic='-KPIC'
8860
lt_prog_compiler_static='-Bstatic'
8861
lt_prog_compiler_wl='-Qoption ld '
8865
lt_prog_compiler_pic='-KPIC'
8866
lt_prog_compiler_static='-Bstatic'
8867
lt_prog_compiler_wl='-Wl,'
8869
*Intel*\ [CF]*Compiler*)
8870
lt_prog_compiler_wl='-Wl,'
8871
lt_prog_compiler_pic='-fPIC'
8872
lt_prog_compiler_static='-static'
8875
lt_prog_compiler_wl='-Wl,'
8876
lt_prog_compiler_pic='-fpic'
8877
lt_prog_compiler_static='-Bstatic'
8885
lt_prog_compiler_pic='-KPIC'
8886
lt_prog_compiler_static='-Bstatic'
8890
# QNX uses GNU C++, but need to define -shared option too, otherwise
8892
lt_prog_compiler_pic='-fPIC -shared'
8895
osf3* | osf4* | osf5*)
8896
lt_prog_compiler_wl='-Wl,'
8897
# All OSF/1 code is PIC.
8898
lt_prog_compiler_static='-non_shared'
8902
lt_prog_compiler_static='-non_shared'
8906
lt_prog_compiler_pic='-KPIC'
8907
lt_prog_compiler_static='-Bstatic'
8908
case $cc_basename in
8909
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8910
lt_prog_compiler_wl='-Qoption ld ';;
8912
lt_prog_compiler_wl='-Wl,';;
8917
lt_prog_compiler_wl='-Qoption ld '
8918
lt_prog_compiler_pic='-PIC'
8919
lt_prog_compiler_static='-Bstatic'
8922
sysv4 | sysv4.2uw2* | sysv4.3*)
8923
lt_prog_compiler_wl='-Wl,'
8924
lt_prog_compiler_pic='-KPIC'
8925
lt_prog_compiler_static='-Bstatic'
8929
if test -d /usr/nec ;then
8930
lt_prog_compiler_pic='-Kconform_pic'
8931
lt_prog_compiler_static='-Bstatic'
8935
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8936
lt_prog_compiler_wl='-Wl,'
8937
lt_prog_compiler_pic='-KPIC'
8938
lt_prog_compiler_static='-Bstatic'
8942
lt_prog_compiler_wl='-Wl,'
8943
lt_prog_compiler_can_build_shared=no
8947
lt_prog_compiler_pic='-pic'
8948
lt_prog_compiler_static='-Bstatic'
8952
lt_prog_compiler_can_build_shared=no
8958
# For platforms which do not support PIC, -DPIC is meaningless:
8960
lt_prog_compiler_pic=
8963
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8968
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8969
if ${lt_cv_prog_compiler_pic+:} false; then :
8970
$as_echo_n "(cached) " >&6
8972
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8974
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8975
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8976
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8979
# Check to make sure the PIC flag actually works.
8981
if test -n "$lt_prog_compiler_pic"; then
8982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8983
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8984
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8985
$as_echo_n "(cached) " >&6
8987
lt_cv_prog_compiler_pic_works=no
8988
ac_outfile=conftest.$ac_objext
8989
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8990
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8991
# Insert the option either (1) after the last *FLAGS variable, or
8992
# (2) before a word containing "conftest.", or (3) at the end.
8993
# Note that $ac_compile itself does not contain backslashes and begins
8994
# with a dollar sign (not a hyphen), so the echo should work correctly.
8995
# The option is referenced via a variable to avoid confusing sed.
8996
lt_compile=`echo "$ac_compile" | $SED \
8997
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8998
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8999
-e 's:$: $lt_compiler_flag:'`
9000
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9001
(eval "$lt_compile" 2>conftest.err)
9003
cat conftest.err >&5
9004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005
if (exit $ac_status) && test -s "$ac_outfile"; then
9006
# The compiler can only warn and ignore the option if not recognized
9007
# So say no if there are warnings other than the usual output.
9008
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9009
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9010
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9011
lt_cv_prog_compiler_pic_works=yes
9017
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9018
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9020
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9021
case $lt_prog_compiler_pic in
9023
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9026
lt_prog_compiler_pic=
9027
lt_prog_compiler_can_build_shared=no
9043
# Check to make sure the static flag actually works.
9045
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9047
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9048
if ${lt_cv_prog_compiler_static_works+:} false; then :
9049
$as_echo_n "(cached) " >&6
9051
lt_cv_prog_compiler_static_works=no
9052
save_LDFLAGS="$LDFLAGS"
9053
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9054
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9055
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9056
# The linker can only warn and ignore the option if not recognized
9057
# So say no if there are warnings
9058
if test -s conftest.err; then
9059
# Append any errors to the config.log.
9060
cat conftest.err 1>&5
9061
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9062
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9063
if diff conftest.exp conftest.er2 >/dev/null; then
9064
lt_cv_prog_compiler_static_works=yes
9067
lt_cv_prog_compiler_static_works=yes
9071
LDFLAGS="$save_LDFLAGS"
9074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9075
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9077
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9080
lt_prog_compiler_static=
9089
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9090
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9091
if ${lt_cv_prog_compiler_c_o+:} false; then :
9092
$as_echo_n "(cached) " >&6
9094
lt_cv_prog_compiler_c_o=no
9095
$RM -r conftest 2>/dev/null
9099
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9101
lt_compiler_flag="-o out/conftest2.$ac_objext"
9102
# Insert the option either (1) after the last *FLAGS variable, or
9103
# (2) before a word containing "conftest.", or (3) at the end.
9104
# Note that $ac_compile itself does not contain backslashes and begins
9105
# with a dollar sign (not a hyphen), so the echo should work correctly.
9106
lt_compile=`echo "$ac_compile" | $SED \
9107
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9108
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9109
-e 's:$: $lt_compiler_flag:'`
9110
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9111
(eval "$lt_compile" 2>out/conftest.err)
9113
cat out/conftest.err >&5
9114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9117
# The compiler can only warn and ignore the option if not recognized
9118
# So say no if there are warnings
9119
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9120
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9121
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9122
lt_cv_prog_compiler_c_o=yes
9127
# SGI C++ compiler will create directory out/ii_files/ for
9128
# template instantiation
9129
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9130
$RM out/* && rmdir out
9136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9137
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9144
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9145
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9146
if ${lt_cv_prog_compiler_c_o+:} false; then :
9147
$as_echo_n "(cached) " >&6
9149
lt_cv_prog_compiler_c_o=no
9150
$RM -r conftest 2>/dev/null
9154
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9156
lt_compiler_flag="-o out/conftest2.$ac_objext"
9157
# Insert the option either (1) after the last *FLAGS variable, or
9158
# (2) before a word containing "conftest.", or (3) at the end.
9159
# Note that $ac_compile itself does not contain backslashes and begins
9160
# with a dollar sign (not a hyphen), so the echo should work correctly.
9161
lt_compile=`echo "$ac_compile" | $SED \
9162
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9163
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9164
-e 's:$: $lt_compiler_flag:'`
9165
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9166
(eval "$lt_compile" 2>out/conftest.err)
9168
cat out/conftest.err >&5
9169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9172
# The compiler can only warn and ignore the option if not recognized
9173
# So say no if there are warnings
9174
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9175
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9176
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9177
lt_cv_prog_compiler_c_o=yes
9182
# SGI C++ compiler will create directory out/ii_files/ for
9183
# template instantiation
9184
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9185
$RM out/* && rmdir out
9191
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9192
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9197
hard_links="nottested"
9198
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9199
# do not overwrite the value of need_locks provided by the user
9200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9201
$as_echo_n "checking if we can lock with hard links... " >&6; }
9204
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9206
ln conftest.a conftest.b 2>&5 || hard_links=no
9207
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9209
$as_echo "$hard_links" >&6; }
9210
if test "$hard_links" = no; then
9211
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9212
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9225
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9228
allow_undefined_flag=
9229
always_export_symbols=no
9231
archive_expsym_cmds=
9232
compiler_needs_object=no
9233
enable_shared_with_static_runtimes=no
9234
export_dynamic_flag_spec=
9235
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9236
hardcode_automatic=no
9238
hardcode_direct_absolute=no
9239
hardcode_libdir_flag_spec=
9240
hardcode_libdir_separator=
9242
hardcode_shlibpath_var=unsupported
9244
link_all_deplibs=unknown
9247
old_archive_from_new_cmds=
9248
old_archive_from_expsyms_cmds=
9249
thread_safe_flag_spec=
9250
whole_archive_flag_spec=
9251
# include_expsyms should be a list of space-separated symbols to be *always*
9252
# included in the symbol list
9254
# exclude_expsyms can be an extended regexp of symbols to exclude
9255
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9256
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9257
# as well as any symbol that contains `d'.
9258
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9259
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9260
# platforms (ab)use it in PIC code, but their linkers get confused if
9261
# the symbol is explicitly referenced. Since portable code cannot
9262
# rely on this symbol name, it's probably fine to never include it in
9263
# preloaded symbol tables.
9264
# Exclude shared library initialization/finalization symbols.
9265
extract_expsyms_cmds=
9268
cygwin* | mingw* | pw32* | cegcc*)
9269
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9270
# When not using gcc, we currently assume that we are using
9271
# Microsoft Visual C++.
9272
if test "$GCC" != yes; then
9277
# we just hope/assume this is gcc and not c89 (= MSVC++)
9287
# On some targets, GNU ld is compatible enough with the native linker
9288
# that we're better off using the native interface for both.
9289
lt_use_gnu_ld_interface=no
9290
if test "$with_gnu_ld" = yes; then
9293
# The AIX port of GNU ld has always aspired to compatibility
9294
# with the native linker. However, as the warning in the GNU ld
9295
# block says, versions before 2.19.5* couldn't really create working
9296
# shared libraries, regardless of the interface used.
9297
case `$LD -v 2>&1` in
9298
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9299
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9300
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
9302
lt_use_gnu_ld_interface=yes
9307
lt_use_gnu_ld_interface=yes
9312
if test "$lt_use_gnu_ld_interface" = yes; then
9313
# If archive_cmds runs LD, not CC, wlarc should be empty
9316
# Set some defaults for GNU ld with shared library support. These
9317
# are reset later if shared libraries are not supported. Putting them
9318
# here allows them to be overridden if necessary.
9319
runpath_var=LD_RUN_PATH
9320
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9321
export_dynamic_flag_spec='${wl}--export-dynamic'
9322
# ancient GNU ld didn't support --whole-archive et. al.
9323
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9324
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9326
whole_archive_flag_spec=
9328
supports_anon_versioning=no
9329
case `$LD -v 2>&1` in
9330
*GNU\ gold*) supports_anon_versioning=yes ;;
9331
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9332
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9333
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9334
*\ 2.11.*) ;; # other 2.11 versions
9335
*) supports_anon_versioning=yes ;;
9338
# See if GNU ld supports shared libraries.
9341
# On AIX/PPC, the GNU linker is very broken
9342
if test "$host_cpu" != ia64; then
9346
*** Warning: the GNU linker, at least up to release 2.19, is reported
9347
*** to be unable to reliably create shared libraries on AIX.
9348
*** Therefore, libtool is disabling shared libraries support. If you
9349
*** really care for shared libraries, you may want to install binutils
9350
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9351
*** You will then need to restart the configuration process.
9360
# see comment about AmigaOS4 .so support
9361
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9362
archive_expsym_cmds=''
9365
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)'
9366
hardcode_libdir_flag_spec='-L$libdir'
9367
hardcode_minus_L=yes
9373
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9374
allow_undefined_flag=unsupported
9375
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9376
# support --undefined. This deserves some investigation. FIXME
9377
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383
cygwin* | mingw* | pw32* | cegcc*)
9384
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9385
# as there is no search path for DLLs.
9386
hardcode_libdir_flag_spec='-L$libdir'
9387
export_dynamic_flag_spec='${wl}--export-all-symbols'
9388
allow_undefined_flag=unsupported
9389
always_export_symbols=no
9390
enable_shared_with_static_runtimes=yes
9391
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9392
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9394
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9395
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9396
# If the export-symbols file already is a .def file (1st line
9397
# is EXPORTS), use it as is; otherwise, prepend...
9398
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9399
cp $export_symbols $output_objdir/$soname.def;
9401
echo EXPORTS > $output_objdir/$soname.def;
9402
cat $export_symbols >> $output_objdir/$soname.def;
9404
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9411
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9412
link_all_deplibs=yes
9417
hardcode_shlibpath_var=no
9418
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9419
export_dynamic_flag_spec='${wl}-E'
9420
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9421
# Instead, shared libraries are loaded at an image base (0x10000000 by
9422
# default) and relocated if they conflict, which is a slow very memory
9423
# consuming and fragmenting process. To avoid this, we pick a random,
9424
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9425
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
9426
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9427
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'
9430
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9432
if test "$host_os" = linux-dietlibc; then
9433
case $cc_basename in
9434
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9437
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9438
&& test "$tmp_diet" = no
9440
tmp_addflag=' $pic_flag'
9441
tmp_sharedflag='-shared'
9442
case $cc_basename,$host_cpu in
9443
pgcc*) # Portland Group C compiler
9444
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9445
tmp_addflag=' $pic_flag'
9447
pgf77* | pgf90* | pgf95* | pgfortran*)
9448
# Portland Group f77 and f90 compilers
9449
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9450
tmp_addflag=' $pic_flag -Mnomain' ;;
9451
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9452
tmp_addflag=' -i_dynamic' ;;
9453
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9454
tmp_addflag=' -i_dynamic -nofor_main' ;;
9455
ifc* | ifort*) # Intel Fortran compiler
9456
tmp_addflag=' -nofor_main' ;;
9457
lf95*) # Lahey Fortran 8.1
9458
whole_archive_flag_spec=
9459
tmp_sharedflag='--shared' ;;
9460
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9461
tmp_sharedflag='-qmkshrobj'
9463
nvcc*) # Cuda Compiler Driver 2.2
9464
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9465
compiler_needs_object=yes
9468
case `$CC -V 2>&1 | sed 5q` in
9469
*Sun\ C*) # Sun C 5.9
9470
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9471
compiler_needs_object=yes
9472
tmp_sharedflag='-G' ;;
9473
*Sun\ F*) # Sun Fortran 8.3
9474
tmp_sharedflag='-G' ;;
9476
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9478
if test "x$supports_anon_versioning" = xyes; then
9479
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9480
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9481
echo "local: *; };" >> $output_objdir/$libname.ver~
9482
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9485
case $cc_basename in
9486
xlf* | bgf* | bgxlf* | mpixlf*)
9487
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9488
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9489
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9490
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9491
if test "x$supports_anon_versioning" = xyes; then
9492
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9493
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9494
echo "local: *; };" >> $output_objdir/$libname.ver~
9495
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9505
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9506
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9509
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9510
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9515
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9519
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9520
*** create shared libraries on Solaris systems. Therefore, libtool
9521
*** is disabling shared libraries support. We urge you to upgrade GNU
9522
*** binutils to release 2.9.1 or newer. Another option is to modify
9523
*** your PATH or compiler configuration so that the native linker is
9524
*** used, and then restart.
9527
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9528
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9529
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9535
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9536
case `$LD -v 2>&1` in
9537
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9541
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9542
*** reliably create shared libraries on SCO systems. Therefore, libtool
9543
*** is disabling shared libraries support. We urge you to upgrade GNU
9544
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9545
*** your PATH or compiler configuration so that the native linker is
9546
*** used, and then restart.
9551
# For security reasons, it is highly recommended that you always
9552
# use absolute paths for naming shared libraries, and exclude the
9553
# DT_RUNPATH tag from executables and libraries. But doing so
9554
# requires that you compile everything twice, which is a pain.
9555
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9556
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9558
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9567
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9570
hardcode_shlibpath_var=no
9574
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9575
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9583
if test "$ld_shlibs" = no; then
9585
hardcode_libdir_flag_spec=
9586
export_dynamic_flag_spec=
9587
whole_archive_flag_spec=
9590
# PORTME fill in a description of your system's linker (not GNU ld)
9593
allow_undefined_flag=unsupported
9594
always_export_symbols=yes
9595
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'
9596
# Note: this linker hardcodes the directories in LIBPATH if there
9597
# are no directories specified by -L.
9598
hardcode_minus_L=yes
9599
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9600
# Neither direct hardcoding nor static linking is supported with a
9602
hardcode_direct=unsupported
9607
if test "$host_cpu" = ia64; then
9608
# On IA64, the linker does run time linking by default, so we don't
9609
# have to do anything special.
9610
aix_use_runtimelinking=no
9611
exp_sym_flag='-Bexport'
9614
# If we're using GNU nm, then we don't want the "-C" option.
9615
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9616
# Also, AIX nm treats weak defined symbols like other global
9617
# defined symbols, whereas GNU nm marks them as "W".
9618
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9619
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9621
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'
9623
aix_use_runtimelinking=no
9625
# Test if we are trying to use run time linking or normal
9626
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9627
# need to do runtime linking.
9628
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9629
for ld_flag in $LDFLAGS; do
9630
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9631
aix_use_runtimelinking=yes
9638
exp_sym_flag='-bexport'
9639
no_entry_flag='-bnoentry'
9642
# When large executables or shared objects are built, AIX ld can
9643
# have problems creating the table of contents. If linking a library
9644
# or program results in "error TOC overflow" add -mminimal-toc to
9645
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9646
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9650
hardcode_direct_absolute=yes
9651
hardcode_libdir_separator=':'
9652
link_all_deplibs=yes
9653
file_list_spec='${wl}-f,'
9655
if test "$GCC" = yes; then
9656
case $host_os in aix4.[012]|aix4.[012].*)
9657
# We only want to do this on AIX 4.2 and lower, the check
9658
# below for broken collect2 doesn't work under 4.3+
9659
collect2name=`${CC} -print-prog-name=collect2`
9660
if test -f "$collect2name" &&
9661
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9663
# We have reworked collect2
9666
# We have old collect2
9667
hardcode_direct=unsupported
9668
# It fails to find uninstalled libraries when the uninstalled
9669
# path is not listed in the libpath. Setting hardcode_minus_L
9670
# to unsupported forces relinking
9671
hardcode_minus_L=yes
9672
hardcode_libdir_flag_spec='-L$libdir'
9673
hardcode_libdir_separator=
9677
shared_flag='-shared'
9678
if test "$aix_use_runtimelinking" = yes; then
9679
shared_flag="$shared_flag "'${wl}-G'
9683
if test "$host_cpu" = ia64; then
9684
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9685
# chokes on -Wl,-G. The following line is correct:
9688
if test "$aix_use_runtimelinking" = yes; then
9689
shared_flag='${wl}-G'
9691
shared_flag='${wl}-bM:SRE'
9696
export_dynamic_flag_spec='${wl}-bexpall'
9697
# It seems that -bexpall does not export symbols beginning with
9698
# underscore (_), so it is better to generate a list of symbols to export.
9699
always_export_symbols=yes
9700
if test "$aix_use_runtimelinking" = yes; then
9701
# Warning - without using the other runtime loading flags (-brtl),
9702
# -berok will link without error, but may produce a broken library.
9703
allow_undefined_flag='-berok'
9704
# Determine the default libpath from the value encoded in an
9706
if test "${lt_cv_aix_libpath+set}" = set; then
9707
aix_libpath=$lt_cv_aix_libpath
9709
if ${lt_cv_aix_libpath_+:} false; then :
9710
$as_echo_n "(cached) " >&6
9712
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713
/* end confdefs.h. */
9723
if ac_fn_c_try_link "$LINENO"; then :
9725
lt_aix_libpath_sed='
9726
/Import File Strings/,/^$/ {
9728
s/^0 *\([^ ]*\) *$/\1/
9732
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9733
# Check for a 64-bit object if we didn't find anything.
9734
if test -z "$lt_cv_aix_libpath_"; then
9735
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9738
rm -f core conftest.err conftest.$ac_objext \
9739
conftest$ac_exeext conftest.$ac_ext
9740
if test -z "$lt_cv_aix_libpath_"; then
9741
lt_cv_aix_libpath_="/usr/lib:/lib"
9746
aix_libpath=$lt_cv_aix_libpath_
9749
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9750
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9752
if test "$host_cpu" = ia64; then
9753
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9754
allow_undefined_flag="-z nodefs"
9755
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"
9757
# Determine the default libpath from the value encoded in an
9759
if test "${lt_cv_aix_libpath+set}" = set; then
9760
aix_libpath=$lt_cv_aix_libpath
9762
if ${lt_cv_aix_libpath_+:} false; then :
9763
$as_echo_n "(cached) " >&6
9765
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766
/* end confdefs.h. */
9776
if ac_fn_c_try_link "$LINENO"; then :
9778
lt_aix_libpath_sed='
9779
/Import File Strings/,/^$/ {
9781
s/^0 *\([^ ]*\) *$/\1/
9785
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9786
# Check for a 64-bit object if we didn't find anything.
9787
if test -z "$lt_cv_aix_libpath_"; then
9788
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9791
rm -f core conftest.err conftest.$ac_objext \
9792
conftest$ac_exeext conftest.$ac_ext
9793
if test -z "$lt_cv_aix_libpath_"; then
9794
lt_cv_aix_libpath_="/usr/lib:/lib"
9799
aix_libpath=$lt_cv_aix_libpath_
9802
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9803
# Warning - without using the other run time loading flags,
9804
# -berok will link without error, but may produce a broken library.
9805
no_undefined_flag=' ${wl}-bernotok'
9806
allow_undefined_flag=' ${wl}-berok'
9807
if test "$with_gnu_ld" = yes; then
9808
# We only use this code for GNU lds that support --whole-archive.
9809
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9811
# Exported symbols can be pulled into shared objects from archives
9812
whole_archive_flag_spec='$convenience'
9814
archive_cmds_need_lc=yes
9815
# This is similar to how AIX traditionally builds its shared libraries.
9816
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'
9824
# see comment about AmigaOS4 .so support
9825
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9826
archive_expsym_cmds=''
9829
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)'
9830
hardcode_libdir_flag_spec='-L$libdir'
9831
hardcode_minus_L=yes
9837
export_dynamic_flag_spec=-rdynamic
9840
cygwin* | mingw* | pw32* | cegcc*)
9841
# When not using gcc, we currently assume that we are using
9842
# Microsoft Visual C++.
9843
# hardcode_libdir_flag_spec is actually meaningless, as there is
9844
# no search path for DLLs.
9845
case $cc_basename in
9848
hardcode_libdir_flag_spec=' '
9849
allow_undefined_flag=unsupported
9850
always_export_symbols=yes
9852
# Tell ltmain to make .lib files, not .a files.
9854
# Tell ltmain to make .dll files, not .so files.
9856
# FIXME: Setting linknames here is a bad hack.
9857
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9858
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9859
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9861
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9863
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9865
# The linker will not automatically build a static lib if we build a DLL.
9866
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9867
enable_shared_with_static_runtimes=yes
9868
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9869
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9871
old_postinstall_cmds='chmod 644 $oldlib'
9872
postlink_cmds='lt_outputfile="@OUTPUT@"~
9873
lt_tool_outputfile="@TOOL_OUTPUT@"~
9874
case $lt_outputfile in
9877
lt_outputfile="$lt_outputfile.exe"
9878
lt_tool_outputfile="$lt_tool_outputfile.exe"
9881
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9882
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9883
$RM "$lt_outputfile.manifest";
9887
# Assume MSVC wrapper
9888
hardcode_libdir_flag_spec=' '
9889
allow_undefined_flag=unsupported
9890
# Tell ltmain to make .lib files, not .a files.
9892
# Tell ltmain to make .dll files, not .so files.
9894
# FIXME: Setting linknames here is a bad hack.
9895
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9896
# The linker will automatically build a .lib file if we build a DLL.
9897
old_archive_from_new_cmds='true'
9898
# FIXME: Should let the user specify the lib program.
9899
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9900
enable_shared_with_static_runtimes=yes
9905
darwin* | rhapsody*)
9908
archive_cmds_need_lc=no
9910
hardcode_automatic=yes
9911
hardcode_shlibpath_var=unsupported
9912
if test "$lt_cv_ld_force_load" = "yes"; then
9913
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9916
whole_archive_flag_spec=''
9918
link_all_deplibs=yes
9919
allow_undefined_flag="$_lt_dar_allow_undefined"
9920
case $cc_basename in
9921
ifort*) _lt_dar_can_shared=yes ;;
9922
*) _lt_dar_can_shared=$GCC ;;
9924
if test "$_lt_dar_can_shared" = "yes"; then
9925
output_verbose_link_cmd=func_echo_all
9926
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9927
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9928
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}"
9929
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}"
9938
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9939
hardcode_libdir_flag_spec='-L$libdir'
9940
hardcode_shlibpath_var=no
9943
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9944
# support. Future versions do this automatically, but an explicit c++rt0.o
9945
# does not break anything, and helps significantly (at the cost of a little
9948
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9949
hardcode_libdir_flag_spec='-R$libdir'
9951
hardcode_shlibpath_var=no
9954
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9956
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9958
hardcode_minus_L=yes
9959
hardcode_shlibpath_var=no
9962
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9963
freebsd* | dragonfly*)
9964
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9965
hardcode_libdir_flag_spec='-R$libdir'
9967
hardcode_shlibpath_var=no
9971
if test "$GCC" = yes; then
9972
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9974
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'
9976
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9977
hardcode_libdir_separator=:
9980
# hardcode_minus_L: Not really in the search PATH,
9981
# but as the default location of the library.
9982
hardcode_minus_L=yes
9983
export_dynamic_flag_spec='${wl}-E'
9987
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9988
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9990
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9992
if test "$with_gnu_ld" = no; then
9993
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9994
hardcode_libdir_separator=:
9996
hardcode_direct_absolute=yes
9997
export_dynamic_flag_spec='${wl}-E'
9998
# hardcode_minus_L: Not really in the search PATH,
9999
# but as the default location of the library.
10000
hardcode_minus_L=yes
10005
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10008
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10011
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10014
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10020
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10023
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10027
# Older versions of the 11.00 compiler do not understand -b yet
10028
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10029
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10030
$as_echo_n "checking if $CC understands -b... " >&6; }
10031
if ${lt_cv_prog_compiler__b+:} false; then :
10032
$as_echo_n "(cached) " >&6
10034
lt_cv_prog_compiler__b=no
10035
save_LDFLAGS="$LDFLAGS"
10036
LDFLAGS="$LDFLAGS -b"
10037
echo "$lt_simple_link_test_code" > conftest.$ac_ext
10038
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10039
# The linker can only warn and ignore the option if not recognized
10040
# So say no if there are warnings
10041
if test -s conftest.err; then
10042
# Append any errors to the config.log.
10043
cat conftest.err 1>&5
10044
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10045
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10046
if diff conftest.exp conftest.er2 >/dev/null; then
10047
lt_cv_prog_compiler__b=yes
10050
lt_cv_prog_compiler__b=yes
10054
LDFLAGS="$save_LDFLAGS"
10057
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10058
$as_echo "$lt_cv_prog_compiler__b" >&6; }
10060
if test x"$lt_cv_prog_compiler__b" = xyes; then
10061
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10063
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10069
if test "$with_gnu_ld" = no; then
10070
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10071
hardcode_libdir_separator=:
10076
hardcode_shlibpath_var=no
10079
hardcode_direct=yes
10080
hardcode_direct_absolute=yes
10081
export_dynamic_flag_spec='${wl}-E'
10083
# hardcode_minus_L: Not really in the search PATH,
10084
# but as the default location of the library.
10085
hardcode_minus_L=yes
10091
irix5* | irix6* | nonstopux*)
10092
if test "$GCC" = yes; then
10093
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10094
# Try to use the -exported_symbol ld option, if it does not
10095
# work, assume that -exports_file does not work either and
10096
# implicitly export all symbols.
10097
# This should be the same for all languages, so no per-tag cache variable.
10098
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10099
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10100
if ${lt_cv_irix_exported_symbol+:} false; then :
10101
$as_echo_n "(cached) " >&6
10103
save_LDFLAGS="$LDFLAGS"
10104
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10105
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106
/* end confdefs.h. */
10107
int foo (void) { return 0; }
10109
if ac_fn_c_try_link "$LINENO"; then :
10110
lt_cv_irix_exported_symbol=yes
10112
lt_cv_irix_exported_symbol=no
10114
rm -f core conftest.err conftest.$ac_objext \
10115
conftest$ac_exeext conftest.$ac_ext
10116
LDFLAGS="$save_LDFLAGS"
10118
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10119
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10120
if test "$lt_cv_irix_exported_symbol" = yes; then
10121
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10124
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10125
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10127
archive_cmds_need_lc='no'
10128
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10129
hardcode_libdir_separator=:
10131
link_all_deplibs=yes
10135
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10136
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10138
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10140
hardcode_libdir_flag_spec='-R$libdir'
10141
hardcode_direct=yes
10142
hardcode_shlibpath_var=no
10146
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147
hardcode_direct=yes
10148
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10149
hardcode_libdir_separator=:
10150
hardcode_shlibpath_var=no
10157
if test -f /usr/libexec/ld.so; then
10158
hardcode_direct=yes
10159
hardcode_shlibpath_var=no
10160
hardcode_direct_absolute=yes
10161
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10162
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10163
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10164
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10165
export_dynamic_flag_spec='${wl}-E'
10168
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10169
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10170
hardcode_libdir_flag_spec='-R$libdir'
10173
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10174
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10184
hardcode_libdir_flag_spec='-L$libdir'
10185
hardcode_minus_L=yes
10186
allow_undefined_flag=unsupported
10187
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'
10188
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10192
if test "$GCC" = yes; then
10193
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10194
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10196
allow_undefined_flag=' -expect_unresolved \*'
10197
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10199
archive_cmds_need_lc='no'
10200
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10201
hardcode_libdir_separator=:
10204
osf4* | osf5*) # as osf3* with the addition of -msym flag
10205
if test "$GCC" = yes; then
10206
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10207
archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10208
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10210
allow_undefined_flag=' -expect_unresolved \*'
10211
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10212
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~
10213
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10215
# Both c and cxx compiler support -rpath directly
10216
hardcode_libdir_flag_spec='-rpath $libdir'
10218
archive_cmds_need_lc='no'
10219
hardcode_libdir_separator=:
10223
no_undefined_flag=' -z defs'
10224
if test "$GCC" = yes; then
10226
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10227
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10228
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10230
case `$CC -V 2>&1` in
10233
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10234
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10235
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10239
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10240
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10241
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10245
hardcode_libdir_flag_spec='-R$libdir'
10246
hardcode_shlibpath_var=no
10248
solaris2.[0-5] | solaris2.[0-5].*) ;;
10250
# The compiler driver will combine and reorder linker options,
10251
# but understands `-z linker_flag'. GCC discards it without `$wl',
10252
# but is careful enough not to reorder.
10253
# Supported since Solaris 2.6 (maybe 2.5.1?)
10254
if test "$GCC" = yes; then
10255
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10257
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10261
link_all_deplibs=yes
10265
if test "x$host_vendor" = xsequent; then
10266
# Use $CC to link under sequent, because it throws in some extra .o
10267
# files that make .init and .fini sections work.
10268
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10270
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10272
hardcode_libdir_flag_spec='-L$libdir'
10273
hardcode_direct=yes
10274
hardcode_minus_L=yes
10275
hardcode_shlibpath_var=no
10279
case $host_vendor in
10281
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10282
hardcode_direct=yes # is this really true???
10285
## LD is ld it makes a PLAMLIB
10286
## CC just makes a GrossModule.
10287
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10288
reload_cmds='$CC -r -o $output$reload_objs'
10292
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10293
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10296
runpath_var='LD_RUN_PATH'
10297
hardcode_shlibpath_var=no
10301
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302
hardcode_shlibpath_var=no
10303
export_dynamic_flag_spec='-Bexport'
10307
if test -d /usr/nec; then
10308
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10309
hardcode_shlibpath_var=no
10310
runpath_var=LD_RUN_PATH
10311
hardcode_runpath_var=yes
10316
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10317
no_undefined_flag='${wl}-z,text'
10318
archive_cmds_need_lc=no
10319
hardcode_shlibpath_var=no
10320
runpath_var='LD_RUN_PATH'
10322
if test "$GCC" = yes; then
10323
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10324
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10326
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10327
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10331
sysv5* | sco3.2v5* | sco5v6*)
10332
# Note: We can NOT use -z defs as we might desire, because we do not
10333
# link with -lc, and that would cause any symbols used from libc to
10334
# always be unresolved, which means just about no library would
10335
# ever link correctly. If we're not using GNU ld we use -z text
10336
# though, which does catch some bad symbols but isn't as heavy-handed
10338
no_undefined_flag='${wl}-z,text'
10339
allow_undefined_flag='${wl}-z,nodefs'
10340
archive_cmds_need_lc=no
10341
hardcode_shlibpath_var=no
10342
hardcode_libdir_flag_spec='${wl}-R,$libdir'
10343
hardcode_libdir_separator=':'
10344
link_all_deplibs=yes
10345
export_dynamic_flag_spec='${wl}-Bexport'
10346
runpath_var='LD_RUN_PATH'
10348
if test "$GCC" = yes; then
10349
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10350
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10352
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10353
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10358
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10359
hardcode_libdir_flag_spec='-L$libdir'
10360
hardcode_shlibpath_var=no
10368
if test x$host_vendor = xsni; then
10370
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10371
export_dynamic_flag_spec='${wl}-Blargedynsym'
10377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10378
$as_echo "$ld_shlibs" >&6; }
10379
test "$ld_shlibs" = no && can_build_shared=no
10381
with_gnu_ld=$with_gnu_ld
10398
# Do we need to explicitly link libc?
10400
case "x$archive_cmds_need_lc" in
10402
# Assume -lc should be added
10403
archive_cmds_need_lc=yes
10405
if test "$enable_shared" = yes && test "$GCC" = yes; then
10406
case $archive_cmds in
10408
# FIXME: we may have to deal with multi-command sequences.
10411
# Test whether the compiler implicitly links with -lc since on some
10412
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10413
# to ld, don't add -lc before -lgcc.
10414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10415
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10416
if ${lt_cv_archive_cmds_need_lc+:} false; then :
10417
$as_echo_n "(cached) " >&6
10420
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10422
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10423
(eval $ac_compile) 2>&5
10425
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10426
test $ac_status = 0; } 2>conftest.err; then
10429
libobjs=conftest.$ac_objext
10431
wl=$lt_prog_compiler_wl
10432
pic_flag=$lt_prog_compiler_pic
10438
lt_save_allow_undefined_flag=$allow_undefined_flag
10439
allow_undefined_flag=
10440
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10441
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10443
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10444
test $ac_status = 0; }
10446
lt_cv_archive_cmds_need_lc=no
10448
lt_cv_archive_cmds_need_lc=yes
10450
allow_undefined_flag=$lt_save_allow_undefined_flag
10452
cat conftest.err 1>&5
10457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10458
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10459
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10618
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10620
if test "$GCC" = yes; then
10622
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10623
*) lt_awk_arg="/^libraries:/" ;;
10626
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10627
*) lt_sed_strip_eq="s,=/,/,g" ;;
10629
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10630
case $lt_search_path_spec in
10632
# if the path contains ";" then we assume it to be the separator
10633
# otherwise default to the standard path separator (i.e. ":") - it is
10634
# assumed that no part of a normal pathname contains ";" but that should
10635
# okay in the real world where ";" in dirpaths is itself problematic.
10636
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10639
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10642
# Ok, now we have the path, separated by spaces, we can step through it
10643
# and add multilib dir if necessary.
10644
lt_tmp_lt_search_path_spec=
10645
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10646
for lt_sys_path in $lt_search_path_spec; do
10647
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10648
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10650
test -d "$lt_sys_path" && \
10651
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10654
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10655
BEGIN {RS=" "; FS="/|\n";} {
10658
for (lt_i = NF; lt_i > 0; lt_i--) {
10659
if ($lt_i != "" && $lt_i != ".") {
10660
if ($lt_i == "..") {
10663
if (lt_count == 0) {
10664
lt_foo="/" $lt_i lt_foo;
10671
if (lt_foo != "") { lt_freq[lt_foo]++; }
10672
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10674
# AWK program above erroneously prepends '/' to C:/dos/paths
10677
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10678
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
10680
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10682
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10684
library_names_spec=
10685
libname_spec='lib$name'
10689
postuninstall_cmds=
10693
shlibpath_overrides_runpath=unknown
10695
dynamic_linker="$host_os ld.so"
10696
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10697
need_lib_prefix=unknown
10698
hardcode_into_libs=no
10700
# when you set need_version to no, make sure it does not cause -set_version
10701
# flags to be left without arguments
10702
need_version=unknown
10706
version_type=linux # correct to gnu/linux during the next big refactor
10707
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10708
shlibpath_var=LIBPATH
10710
# AIX 3 has no versioning support, so we append a major version to the name.
10711
soname_spec='${libname}${release}${shared_ext}$major'
10715
version_type=linux # correct to gnu/linux during the next big refactor
10718
hardcode_into_libs=yes
10719
if test "$host_cpu" = ia64; then
10720
# AIX 5 supports IA64
10721
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10722
shlibpath_var=LD_LIBRARY_PATH
10724
# With GCC up to 2.95.x, collect2 would create an import file
10725
# for dependence libraries. The import file would start with
10726
# the line `#! .'. This would cause the generated library to
10727
# depend on `.', always an invalid library. This was fixed in
10728
# development snapshots of GCC prior to 3.0.
10730
aix4 | aix4.[01] | aix4.[01].*)
10731
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10733
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10736
can_build_shared=no
10740
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10741
# soname into executable. Probably we can add versioning support to
10742
# collect2, so additional links can be useful in future.
10743
if test "$aix_use_runtimelinking" = yes; then
10744
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10745
# instead of lib<name>.a to let people know that these are not
10746
# typical AIX shared libraries.
10747
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749
# We preserve .a as extension for shared libraries through AIX4.2
10750
# and later when we are not doing run time linking.
10751
library_names_spec='${libname}${release}.a $libname.a'
10752
soname_spec='${libname}${release}${shared_ext}$major'
10754
shlibpath_var=LIBPATH
10761
# Since July 2007 AmigaOS4 officially supports .so libraries.
10762
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10763
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10766
library_names_spec='$libname.ixlibrary $libname.a'
10767
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10768
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10774
library_names_spec='${libname}${shared_ext}'
10775
dynamic_linker="$host_os ld.so"
10776
shlibpath_var=LIBRARY_PATH
10780
version_type=linux # correct to gnu/linux during the next big refactor
10782
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783
soname_spec='${libname}${release}${shared_ext}$major'
10784
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10785
shlibpath_var=LD_LIBRARY_PATH
10786
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10787
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10788
# the default ld.so.conf also contains /usr/contrib/lib and
10789
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10790
# libtool to hard-code these into programs
10793
cygwin* | mingw* | pw32* | cegcc*)
10794
version_type=windows
10799
case $GCC,$cc_basename in
10802
library_names_spec='$libname.dll.a'
10803
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10804
postinstall_cmds='base_file=`basename \${file}`~
10805
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10806
dldir=$destdir/`dirname \$dlpath`~
10807
test -d \$dldir || mkdir -p \$dldir~
10808
$install_prog $dir/$dlname \$dldir/$dlname~
10809
chmod a+x \$dldir/$dlname~
10810
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10811
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10813
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10814
dlpath=$dir/\$dldll~
10816
shlibpath_overrides_runpath=yes
10820
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10821
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10823
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10826
# MinGW DLLs use traditional 'lib' prefix
10827
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10830
# pw32 DLLs use 'pw' prefix rather than 'lib'
10831
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10834
dynamic_linker='Win32 ld.exe'
10839
libname_spec='$name'
10840
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10841
library_names_spec='${libname}.dll.lib'
10845
sys_lib_search_path_spec=
10848
for lt_path in $LIB
10851
# Let DOS variable expansion print the short 8.3 style file name.
10852
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10853
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10856
# Convert to MSYS style.
10857
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10860
# Convert to unix form, then to dos form, then back to unix form
10861
# but this time dos style (no spaces!) so that the unix form looks
10862
# like /cygdrive/c/PROGRA~1:/cygdr...
10863
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10864
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10865
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10868
sys_lib_search_path_spec="$LIB"
10869
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10870
# It is most probably a Windows format PATH.
10871
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10873
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10875
# FIXME: find the short name or the path components, as spaces are
10876
# common. (e.g. "Program Files" -> "PROGRA~1")
10880
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10881
postinstall_cmds='base_file=`basename \${file}`~
10882
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10883
dldir=$destdir/`dirname \$dlpath`~
10884
test -d \$dldir || mkdir -p \$dldir~
10885
$install_prog $dir/$dlname \$dldir/$dlname'
10886
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10887
dlpath=$dir/\$dldll~
10889
shlibpath_overrides_runpath=yes
10890
dynamic_linker='Win32 link.exe'
10894
# Assume MSVC wrapper
10895
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10896
dynamic_linker='Win32 ld.exe'
10899
# FIXME: first we should search . and the directory the executable is in
10903
darwin* | rhapsody*)
10904
dynamic_linker="$host_os dyld"
10905
version_type=darwin
10908
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10909
soname_spec='${libname}${release}${major}$shared_ext'
10910
shlibpath_overrides_runpath=yes
10911
shlibpath_var=DYLD_LIBRARY_PATH
10912
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10914
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10915
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10919
version_type=linux # correct to gnu/linux during the next big refactor
10922
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10923
soname_spec='${libname}${release}${shared_ext}$major'
10924
shlibpath_var=LD_LIBRARY_PATH
10927
freebsd* | dragonfly*)
10928
# DragonFly does not have aout. When/if they implement a new
10929
# versioning mechanism, adjust this.
10930
if test -x /usr/bin/objformat; then
10931
objformat=`/usr/bin/objformat`
10934
freebsd[23].*) objformat=aout ;;
10935
*) objformat=elf ;;
10938
version_type=freebsd-$objformat
10939
case $version_type in
10941
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10946
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10950
shlibpath_var=LD_LIBRARY_PATH
10953
shlibpath_overrides_runpath=yes
10955
freebsd3.[01]* | freebsdelf3.[01]*)
10956
shlibpath_overrides_runpath=yes
10957
hardcode_into_libs=yes
10959
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10960
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10961
shlibpath_overrides_runpath=no
10962
hardcode_into_libs=yes
10964
*) # from 4.6 on, and DragonFly
10965
shlibpath_overrides_runpath=yes
10966
hardcode_into_libs=yes
10972
version_type=linux # correct to gnu/linux during the next big refactor
10975
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10976
soname_spec='${libname}${release}${shared_ext}$major'
10977
shlibpath_var=LD_LIBRARY_PATH
10978
shlibpath_overrides_runpath=no
10979
hardcode_into_libs=yes
10983
version_type=linux # correct to gnu/linux during the next big refactor
10986
dynamic_linker="$host_os runtime_loader"
10987
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10988
soname_spec='${libname}${release}${shared_ext}$major'
10989
shlibpath_var=LIBRARY_PATH
10990
shlibpath_overrides_runpath=yes
10991
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10992
hardcode_into_libs=yes
10995
hpux9* | hpux10* | hpux11*)
10996
# Give a soname corresponding to the major version so that dld.sl refuses to
10997
# link against other versions.
11004
hardcode_into_libs=yes
11005
dynamic_linker="$host_os dld.so"
11006
shlibpath_var=LD_LIBRARY_PATH
11007
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11008
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009
soname_spec='${libname}${release}${shared_ext}$major'
11010
if test "X$HPUX_IA64_MODE" = X32; then
11011
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11013
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11015
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11019
hardcode_into_libs=yes
11020
dynamic_linker="$host_os dld.sl"
11021
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11022
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11023
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024
soname_spec='${libname}${release}${shared_ext}$major'
11025
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11026
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11030
dynamic_linker="$host_os dld.sl"
11031
shlibpath_var=SHLIB_PATH
11032
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11033
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034
soname_spec='${libname}${release}${shared_ext}$major'
11037
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11038
postinstall_cmds='chmod 555 $lib'
11039
# or fails outright, so override atomically:
11040
install_override_mode=555
11044
version_type=linux # correct to gnu/linux during the next big refactor
11047
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11048
soname_spec='${libname}${release}${shared_ext}$major'
11049
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11050
shlibpath_var=LD_LIBRARY_PATH
11051
shlibpath_overrides_runpath=no
11052
hardcode_into_libs=yes
11055
irix5* | irix6* | nonstopux*)
11057
nonstopux*) version_type=nonstopux ;;
11059
if test "$lt_cv_prog_gnu_ld" = yes; then
11060
version_type=linux # correct to gnu/linux during the next big refactor
11067
soname_spec='${libname}${release}${shared_ext}$major'
11068
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11070
irix5* | nonstopux*)
11071
libsuff= shlibsuff=
11074
case $LD in # libtool.m4 will add one of these switches to LD
11075
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11076
libsuff= shlibsuff= libmagic=32-bit;;
11077
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11078
libsuff=32 shlibsuff=N32 libmagic=N32;;
11079
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11080
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11081
*) libsuff= shlibsuff= libmagic=never-match;;
11085
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11086
shlibpath_overrides_runpath=no
11087
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11088
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11089
hardcode_into_libs=yes
11092
# No shared lib support for Linux oldld, aout, or coff.
11093
linux*oldld* | linux*aout* | linux*coff*)
11097
# This must be glibc/ELF.
11098
linux* | k*bsd*-gnu | kopensolaris*-gnu)
11099
version_type=linux # correct to gnu/linux during the next big refactor
11102
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103
soname_spec='${libname}${release}${shared_ext}$major'
11104
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11105
shlibpath_var=LD_LIBRARY_PATH
11106
shlibpath_overrides_runpath=no
11108
# Some binutils ld are patched to set DT_RUNPATH
11109
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11110
$as_echo_n "(cached) " >&6
11112
lt_cv_shlibpath_overrides_runpath=no
11113
save_LDFLAGS=$LDFLAGS
11114
save_libdir=$libdir
11115
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11116
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11117
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118
/* end confdefs.h. */
11128
if ac_fn_c_try_link "$LINENO"; then :
11129
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11130
lt_cv_shlibpath_overrides_runpath=yes
11133
rm -f core conftest.err conftest.$ac_objext \
11134
conftest$ac_exeext conftest.$ac_ext
11135
LDFLAGS=$save_LDFLAGS
11136
libdir=$save_libdir
11140
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11142
# This implies no fast_install, which is unacceptable.
11143
# Some rework will be needed to allow for fast_install
11144
# before this can be enabled.
11145
hardcode_into_libs=yes
11147
# Append ld.so.conf contents to the search path
11148
if test -f /etc/ld.so.conf; then
11149
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;s/"//g;/^$/d' | tr '\n' ' '`
11150
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11153
# We used to test for /lib/ld.so.1 and disable shared libraries on
11154
# powerpc, because MkLinux only supported shared libraries with the
11155
# GNU dynamic linker. Since this was broken with cross compilers,
11156
# most powerpc-linux boxes support dynamic linking these days and
11157
# people can always --disable-shared, the test was removed, and we
11158
# assume the GNU/Linux dynamic linker is in use.
11159
dynamic_linker='GNU/Linux ld.so'
11166
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11167
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11168
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11169
dynamic_linker='NetBSD (a.out) ld.so'
11171
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11172
soname_spec='${libname}${release}${shared_ext}$major'
11173
dynamic_linker='NetBSD ld.elf_so'
11175
shlibpath_var=LD_LIBRARY_PATH
11176
shlibpath_overrides_runpath=yes
11177
hardcode_into_libs=yes
11181
version_type=linux # correct to gnu/linux during the next big refactor
11182
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183
shlibpath_var=LD_LIBRARY_PATH
11184
shlibpath_overrides_runpath=yes
11191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192
soname_spec='${libname}${release}${shared_ext}$major'
11193
shlibpath_var=LD_LIBRARY_PATH
11194
shlibpath_overrides_runpath=no
11195
hardcode_into_libs=yes
11196
dynamic_linker='ldqnx.so'
11201
sys_lib_dlsearch_path_spec="/usr/lib"
11203
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11205
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11206
*) need_version=no ;;
11208
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11209
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11210
shlibpath_var=LD_LIBRARY_PATH
11211
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11213
openbsd2.[89] | openbsd2.[89].*)
11214
shlibpath_overrides_runpath=no
11217
shlibpath_overrides_runpath=yes
11221
shlibpath_overrides_runpath=yes
11226
libname_spec='$name'
11229
library_names_spec='$libname${shared_ext} $libname.a'
11230
dynamic_linker='OS/2 ld.exe'
11231
shlibpath_var=LIBPATH
11234
osf3* | osf4* | osf5*)
11238
soname_spec='${libname}${release}${shared_ext}$major'
11239
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11240
shlibpath_var=LD_LIBRARY_PATH
11241
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11242
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11250
version_type=linux # correct to gnu/linux during the next big refactor
11253
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254
soname_spec='${libname}${release}${shared_ext}$major'
11255
shlibpath_var=LD_LIBRARY_PATH
11256
shlibpath_overrides_runpath=yes
11257
hardcode_into_libs=yes
11258
# ldd complains unless libraries are executable
11259
postinstall_cmds='chmod +x $lib'
11264
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11265
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11266
shlibpath_var=LD_LIBRARY_PATH
11267
shlibpath_overrides_runpath=yes
11268
if test "$with_gnu_ld" = yes; then
11275
version_type=linux # correct to gnu/linux during the next big refactor
11276
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11277
soname_spec='${libname}${release}${shared_ext}$major'
11278
shlibpath_var=LD_LIBRARY_PATH
11279
case $host_vendor in
11281
shlibpath_overrides_runpath=no
11283
runpath_var=LD_RUN_PATH
11291
shlibpath_overrides_runpath=no
11292
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11298
if test -d /usr/nec ;then
11299
version_type=linux # correct to gnu/linux during the next big refactor
11300
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11301
soname_spec='$libname${shared_ext}.$major'
11302
shlibpath_var=LD_LIBRARY_PATH
11306
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11307
version_type=freebsd-elf
11310
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11311
soname_spec='${libname}${release}${shared_ext}$major'
11312
shlibpath_var=LD_LIBRARY_PATH
11313
shlibpath_overrides_runpath=yes
11314
hardcode_into_libs=yes
11315
if test "$with_gnu_ld" = yes; then
11316
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11318
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11321
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11325
sys_lib_dlsearch_path_spec='/usr/lib'
11329
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11330
version_type=linux # correct to gnu/linux during the next big refactor
11333
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334
shlibpath_var=LD_LIBRARY_PATH
11335
shlibpath_overrides_runpath=no
11336
hardcode_into_libs=yes
11340
version_type=linux # correct to gnu/linux during the next big refactor
11341
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342
soname_spec='${libname}${release}${shared_ext}$major'
11343
shlibpath_var=LD_LIBRARY_PATH
11350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11351
$as_echo "$dynamic_linker" >&6; }
11352
test "$dynamic_linker" = no && can_build_shared=no
11354
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11355
if test "$GCC" = yes; then
11356
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11359
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11360
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11362
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11363
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11458
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11460
if test -n "$hardcode_libdir_flag_spec" ||
11461
test -n "$runpath_var" ||
11462
test "X$hardcode_automatic" = "Xyes" ; then
11464
# We can hardcode non-existent directories.
11465
if test "$hardcode_direct" != no &&
11466
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11467
# have to relink, otherwise we might link with an installed library
11468
# when we should be linking with a yet-to-be-installed one
11469
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11470
test "$hardcode_minus_L" != no; then
11471
# Linking always hardcodes the temporary library directory.
11472
hardcode_action=relink
11474
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11475
hardcode_action=immediate
11478
# We cannot hardcode anything, or else we can only hardcode existing
11480
hardcode_action=unsupported
11482
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11483
$as_echo "$hardcode_action" >&6; }
11485
if test "$hardcode_action" = relink ||
11486
test "$inherit_rpath" = yes; then
11487
# Fast installation is not supported
11488
enable_fast_install=no
11489
elif test "$shlibpath_overrides_runpath" = yes ||
11490
test "$enable_shared" = no; then
11491
# Fast installation is not necessary
11492
enable_fast_install=needless
11500
if test "x$enable_dlopen" != xyes; then
11501
enable_dlopen=unknown
11502
enable_dlopen_self=unknown
11503
enable_dlopen_self_static=unknown
11510
lt_cv_dlopen="load_add_on"
11512
lt_cv_dlopen_self=yes
11515
mingw* | pw32* | cegcc*)
11516
lt_cv_dlopen="LoadLibrary"
11521
lt_cv_dlopen="dlopen"
11526
# if libdl is installed we need to link against it
11527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11528
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11529
if ${ac_cv_lib_dl_dlopen+:} false; then :
11530
$as_echo_n "(cached) " >&6
11532
ac_check_lib_save_LIBS=$LIBS
11534
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535
/* end confdefs.h. */
11537
/* Override any GCC internal prototype to avoid an error.
11538
Use char because int might match the return type of a GCC
11539
builtin and then its argument prototype would still apply. */
11552
if ac_fn_c_try_link "$LINENO"; then :
11553
ac_cv_lib_dl_dlopen=yes
11555
ac_cv_lib_dl_dlopen=no
11557
rm -f core conftest.err conftest.$ac_objext \
11558
conftest$ac_exeext conftest.$ac_ext
11559
LIBS=$ac_check_lib_save_LIBS
11561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11562
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11563
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11564
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11567
lt_cv_dlopen="dyld"
11569
lt_cv_dlopen_self=yes
11576
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11577
if test "x$ac_cv_func_shl_load" = xyes; then :
11578
lt_cv_dlopen="shl_load"
11580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11581
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11582
if ${ac_cv_lib_dld_shl_load+:} false; then :
11583
$as_echo_n "(cached) " >&6
11585
ac_check_lib_save_LIBS=$LIBS
11587
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588
/* end confdefs.h. */
11590
/* Override any GCC internal prototype to avoid an error.
11591
Use char because int might match the return type of a GCC
11592
builtin and then its argument prototype would still apply. */
11600
return shl_load ();
11605
if ac_fn_c_try_link "$LINENO"; then :
11606
ac_cv_lib_dld_shl_load=yes
11608
ac_cv_lib_dld_shl_load=no
11610
rm -f core conftest.err conftest.$ac_objext \
11611
conftest$ac_exeext conftest.$ac_ext
11612
LIBS=$ac_check_lib_save_LIBS
11614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11615
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11616
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11617
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11619
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11620
if test "x$ac_cv_func_dlopen" = xyes; then :
11621
lt_cv_dlopen="dlopen"
11623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11624
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11625
if ${ac_cv_lib_dl_dlopen+:} false; then :
11626
$as_echo_n "(cached) " >&6
11628
ac_check_lib_save_LIBS=$LIBS
11630
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631
/* end confdefs.h. */
11633
/* Override any GCC internal prototype to avoid an error.
11634
Use char because int might match the return type of a GCC
11635
builtin and then its argument prototype would still apply. */
11648
if ac_fn_c_try_link "$LINENO"; then :
11649
ac_cv_lib_dl_dlopen=yes
11651
ac_cv_lib_dl_dlopen=no
11653
rm -f core conftest.err conftest.$ac_objext \
11654
conftest$ac_exeext conftest.$ac_ext
11655
LIBS=$ac_check_lib_save_LIBS
11657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11658
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11659
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11660
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11662
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11663
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11664
if ${ac_cv_lib_svld_dlopen+:} false; then :
11665
$as_echo_n "(cached) " >&6
11667
ac_check_lib_save_LIBS=$LIBS
11668
LIBS="-lsvld $LIBS"
11669
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670
/* end confdefs.h. */
11672
/* Override any GCC internal prototype to avoid an error.
11673
Use char because int might match the return type of a GCC
11674
builtin and then its argument prototype would still apply. */
11687
if ac_fn_c_try_link "$LINENO"; then :
11688
ac_cv_lib_svld_dlopen=yes
11690
ac_cv_lib_svld_dlopen=no
11692
rm -f core conftest.err conftest.$ac_objext \
11693
conftest$ac_exeext conftest.$ac_ext
11694
LIBS=$ac_check_lib_save_LIBS
11696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11697
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11698
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11699
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11702
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11703
if ${ac_cv_lib_dld_dld_link+:} false; then :
11704
$as_echo_n "(cached) " >&6
11706
ac_check_lib_save_LIBS=$LIBS
11708
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709
/* end confdefs.h. */
11711
/* Override any GCC internal prototype to avoid an error.
11712
Use char because int might match the return type of a GCC
11713
builtin and then its argument prototype would still apply. */
11721
return dld_link ();
11726
if ac_fn_c_try_link "$LINENO"; then :
11727
ac_cv_lib_dld_dld_link=yes
11729
ac_cv_lib_dld_dld_link=no
11731
rm -f core conftest.err conftest.$ac_objext \
11732
conftest$ac_exeext conftest.$ac_ext
11733
LIBS=$ac_check_lib_save_LIBS
11735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11736
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11737
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11738
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11759
if test "x$lt_cv_dlopen" != xno; then
11765
case $lt_cv_dlopen in
11767
save_CPPFLAGS="$CPPFLAGS"
11768
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11770
save_LDFLAGS="$LDFLAGS"
11771
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11774
LIBS="$lt_cv_dlopen_libs $LIBS"
11776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11777
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11778
if ${lt_cv_dlopen_self+:} false; then :
11779
$as_echo_n "(cached) " >&6
11781
if test "$cross_compiling" = yes; then :
11782
lt_cv_dlopen_self=cross
11784
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11785
lt_status=$lt_dlunknown
11786
cat > conftest.$ac_ext <<_LT_EOF
11787
#line $LINENO "configure"
11788
#include "confdefs.h"
11797
# define LT_DLGLOBAL RTLD_GLOBAL
11800
# define LT_DLGLOBAL DL_GLOBAL
11802
# define LT_DLGLOBAL 0
11806
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11807
find out it does not work in some platform. */
11808
#ifndef LT_DLLAZY_OR_NOW
11810
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11813
# define LT_DLLAZY_OR_NOW DL_LAZY
11816
# define LT_DLLAZY_OR_NOW RTLD_NOW
11819
# define LT_DLLAZY_OR_NOW DL_NOW
11821
# define LT_DLLAZY_OR_NOW 0
11828
/* When -fvisbility=hidden is used, assume the code has been annotated
11829
correspondingly for the symbols needed. */
11830
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11831
int fnord () __attribute__((visibility("default")));
11834
int fnord () { return 42; }
11837
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11838
int status = $lt_dlunknown;
11842
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11845
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11846
else puts (dlerror ());
11848
/* dlclose (self); */
11856
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11857
(eval $ac_link) 2>&5
11859
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11860
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11861
(./conftest; exit; ) >&5 2>/dev/null
11863
case x$lt_status in
11864
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11865
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11866
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11869
# compilation failed
11870
lt_cv_dlopen_self=no
11877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11878
$as_echo "$lt_cv_dlopen_self" >&6; }
11880
if test "x$lt_cv_dlopen_self" = xyes; then
11881
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11883
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11884
if ${lt_cv_dlopen_self_static+:} false; then :
11885
$as_echo_n "(cached) " >&6
11887
if test "$cross_compiling" = yes; then :
11888
lt_cv_dlopen_self_static=cross
11890
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11891
lt_status=$lt_dlunknown
11892
cat > conftest.$ac_ext <<_LT_EOF
11893
#line $LINENO "configure"
11894
#include "confdefs.h"
11903
# define LT_DLGLOBAL RTLD_GLOBAL
11906
# define LT_DLGLOBAL DL_GLOBAL
11908
# define LT_DLGLOBAL 0
11912
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11913
find out it does not work in some platform. */
11914
#ifndef LT_DLLAZY_OR_NOW
11916
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11919
# define LT_DLLAZY_OR_NOW DL_LAZY
11922
# define LT_DLLAZY_OR_NOW RTLD_NOW
11925
# define LT_DLLAZY_OR_NOW DL_NOW
11927
# define LT_DLLAZY_OR_NOW 0
11934
/* When -fvisbility=hidden is used, assume the code has been annotated
11935
correspondingly for the symbols needed. */
11936
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11937
int fnord () __attribute__((visibility("default")));
11940
int fnord () { return 42; }
11943
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11944
int status = $lt_dlunknown;
11948
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11951
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11952
else puts (dlerror ());
11954
/* dlclose (self); */
11962
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11963
(eval $ac_link) 2>&5
11965
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11966
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11967
(./conftest; exit; ) >&5 2>/dev/null
11969
case x$lt_status in
11970
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11971
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11972
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11975
# compilation failed
11976
lt_cv_dlopen_self_static=no
11983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11984
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11987
CPPFLAGS="$save_CPPFLAGS"
11988
LDFLAGS="$save_LDFLAGS"
11993
case $lt_cv_dlopen_self in
11994
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11995
*) enable_dlopen_self=unknown ;;
11998
case $lt_cv_dlopen_self_static in
11999
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12000
*) enable_dlopen_self_static=unknown ;;
12022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12023
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12024
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12025
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12026
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12028
$as_echo "yes" >&6; }
12030
# FIXME - insert some real tests, host_os isn't really good enough
12033
if test -n "$STRIP" ; then
12034
striplib="$STRIP -x"
12035
old_striplib="$STRIP -S"
12036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12037
$as_echo "yes" >&6; }
12039
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040
$as_echo "no" >&6; }
12044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045
$as_echo "no" >&6; }
12061
# Report which library types will actually be built
12062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12063
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12065
$as_echo "$can_build_shared" >&6; }
12067
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12068
$as_echo_n "checking whether to build shared libraries... " >&6; }
12069
test "$can_build_shared" = "no" && enable_shared=no
12071
# On AIX, shared libraries and static libraries use the same namespace, and
12072
# are all built from PIC.
12075
test "$enable_shared" = yes && enable_static=no
12076
if test -n "$RANLIB"; then
12077
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12078
postinstall_cmds='$RANLIB $lib'
12083
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12084
test "$enable_shared" = yes && enable_static=no
12088
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12089
$as_echo "$enable_shared" >&6; }
12091
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12092
$as_echo_n "checking whether to build static libraries... " >&6; }
12093
# Make sure either enable_shared or enable_static is yes.
12094
test "$enable_shared" = yes || enable_static=yes
12095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12096
$as_echo "$enable_static" >&6; }
12103
ac_cpp='$CXXCPP $CPPFLAGS'
12104
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12105
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12106
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12110
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12111
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12112
(test "X$CXX" != "Xg++"))) ; then
12114
ac_cpp='$CXXCPP $CPPFLAGS'
12115
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12116
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12117
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12119
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12120
if test -z "$CXXCPP"; then
12121
if ${ac_cv_prog_CXXCPP+:} false; then :
12122
$as_echo_n "(cached) " >&6
12124
# Double quotes because CXXCPP needs to be expanded
12125
for CXXCPP in "$CXX -E" "/lib/cpp"
12127
ac_preproc_ok=false
12128
for ac_cxx_preproc_warn_flag in '' yes
12130
# Use a header file that comes with gcc, so configuring glibc
12131
# with a fresh cross-compiler works.
12132
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12133
# <limits.h> exists even on freestanding compilers.
12134
# On the NeXT, cc -E runs the code through the compiler's parser,
12135
# not just through cpp. "Syntax error" is here to catch this case.
12136
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137
/* end confdefs.h. */
12139
# include <limits.h>
12141
# include <assert.h>
12145
if ac_fn_cxx_try_cpp "$LINENO"; then :
12148
# Broken: fails on valid input.
12151
rm -f conftest.err conftest.i conftest.$ac_ext
12153
# OK, works on sane cases. Now check whether nonexistent headers
12154
# can be detected and how.
12155
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156
/* end confdefs.h. */
12157
#include <ac_nonexistent.h>
12159
if ac_fn_cxx_try_cpp "$LINENO"; then :
12160
# Broken: success on invalid input.
12163
# Passes both tests.
12167
rm -f conftest.err conftest.i conftest.$ac_ext
12170
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12171
rm -f conftest.i conftest.err conftest.$ac_ext
12172
if $ac_preproc_ok; then :
12177
ac_cv_prog_CXXCPP=$CXXCPP
12180
CXXCPP=$ac_cv_prog_CXXCPP
12182
ac_cv_prog_CXXCPP=$CXXCPP
12184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12185
$as_echo "$CXXCPP" >&6; }
12186
ac_preproc_ok=false
12187
for ac_cxx_preproc_warn_flag in '' yes
12189
# Use a header file that comes with gcc, so configuring glibc
12190
# with a fresh cross-compiler works.
12191
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12192
# <limits.h> exists even on freestanding compilers.
12193
# On the NeXT, cc -E runs the code through the compiler's parser,
12194
# not just through cpp. "Syntax error" is here to catch this case.
12195
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196
/* end confdefs.h. */
12198
# include <limits.h>
12200
# include <assert.h>
12204
if ac_fn_cxx_try_cpp "$LINENO"; then :
12207
# Broken: fails on valid input.
12210
rm -f conftest.err conftest.i conftest.$ac_ext
12212
# OK, works on sane cases. Now check whether nonexistent headers
12213
# can be detected and how.
12214
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215
/* end confdefs.h. */
12216
#include <ac_nonexistent.h>
12218
if ac_fn_cxx_try_cpp "$LINENO"; then :
12219
# Broken: success on invalid input.
12222
# Passes both tests.
12226
rm -f conftest.err conftest.i conftest.$ac_ext
12229
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12230
rm -f conftest.i conftest.err conftest.$ac_ext
12231
if $ac_preproc_ok; then :
12234
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12235
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12236
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12237
See \`config.log' for more details" "$LINENO" 5; }
12241
ac_cpp='$CXXCPP $CPPFLAGS'
12242
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12243
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12244
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12247
_lt_caught_CXX_error=yes
12251
ac_cpp='$CXXCPP $CPPFLAGS'
12252
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12253
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12254
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12256
archive_cmds_need_lc_CXX=no
12257
allow_undefined_flag_CXX=
12258
always_export_symbols_CXX=no
12259
archive_expsym_cmds_CXX=
12260
compiler_needs_object_CXX=no
12261
export_dynamic_flag_spec_CXX=
12262
hardcode_direct_CXX=no
12263
hardcode_direct_absolute_CXX=no
12264
hardcode_libdir_flag_spec_CXX=
12265
hardcode_libdir_separator_CXX=
12266
hardcode_minus_L_CXX=no
12267
hardcode_shlibpath_var_CXX=unsupported
12268
hardcode_automatic_CXX=no
12269
inherit_rpath_CXX=no
12271
module_expsym_cmds_CXX=
12272
link_all_deplibs_CXX=unknown
12273
old_archive_cmds_CXX=$old_archive_cmds
12274
reload_flag_CXX=$reload_flag
12275
reload_cmds_CXX=$reload_cmds
12276
no_undefined_flag_CXX=
12277
whole_archive_flag_spec_CXX=
12278
enable_shared_with_static_runtimes_CXX=no
12280
# Source file extension for C++ test sources.
12283
# Object file extension for compiled C++ test sources.
12287
# No sense in running all these tests if we already determined that
12288
# the CXX compiler isn't working. Some variables (like enable_shared)
12289
# are currently assumed to apply to all compilers on this platform,
12290
# and will be corrupted by setting them based on a non-working compiler.
12291
if test "$_lt_caught_CXX_error" != yes; then
12292
# Code to be used in simple compile tests
12293
lt_simple_compile_test_code="int some_variable = 0;"
12295
# Code to be used in simple link tests
12296
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12298
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12305
# If no C compiler was specified, use CC.
12308
# If no C compiler flags were specified, use CFLAGS.
12309
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12311
# Allow CC to be a program name with arguments.
12315
# save warnings/boilerplate of simple test code
12316
ac_outfile=conftest.$ac_objext
12317
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12318
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12319
_lt_compiler_boilerplate=`cat conftest.err`
12322
ac_outfile=conftest.$ac_objext
12323
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12324
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12325
_lt_linker_boilerplate=`cat conftest.err`
12329
# Allow CC to be a program name with arguments.
12331
lt_save_CFLAGS=$CFLAGS
12335
lt_save_with_gnu_ld=$with_gnu_ld
12336
lt_save_path_LD=$lt_cv_path_LD
12337
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12338
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12340
$as_unset lt_cv_prog_gnu_ld
12342
if test -n "${lt_cv_path_LDCXX+set}"; then
12343
lt_cv_path_LD=$lt_cv_path_LDCXX
12345
$as_unset lt_cv_path_LD
12347
test -z "${LDCXX+set}" || LD=$LDCXX
12352
for cc_temp in $compiler""; do
12354
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12355
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12360
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12363
if test -n "$compiler"; then
12364
# We don't want -fno-exception when compiling C++ code, so set the
12365
# no_builtin_flag separately
12366
if test "$GXX" = yes; then
12367
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12369
lt_prog_compiler_no_builtin_flag_CXX=
12372
if test "$GXX" = yes; then
12373
# Set up default GNU C++ configuration
12377
# Check whether --with-gnu-ld was given.
12378
if test "${with_gnu_ld+set}" = set; then :
12379
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12385
if test "$GCC" = yes; then
12386
# Check if gcc -print-prog-name=ld gives a path.
12387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12388
$as_echo_n "checking for ld used by $CC... " >&6; }
12391
# gcc leaves a trailing carriage return which upsets mingw
12392
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12394
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12397
# Accept absolute paths.
12399
re_direlt='/[^/][^/]*/\.\./'
12400
# Canonicalize the pathname of ld
12401
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12402
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12403
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12405
test -z "$LD" && LD="$ac_prog"
12408
# If it fails, then pretend we aren't using GCC.
12412
# If it is relative, then search for the first ld in PATH.
12413
with_gnu_ld=unknown
12416
elif test "$with_gnu_ld" = yes; then
12417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12418
$as_echo_n "checking for GNU ld... " >&6; }
12420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12421
$as_echo_n "checking for non-GNU ld... " >&6; }
12423
if ${lt_cv_path_LD+:} false; then :
12424
$as_echo_n "(cached) " >&6
12426
if test -z "$LD"; then
12427
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12428
for ac_dir in $PATH; do
12430
test -z "$ac_dir" && ac_dir=.
12431
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12432
lt_cv_path_LD="$ac_dir/$ac_prog"
12433
# Check to see if the program is GNU ld. I'd rather use --version,
12434
# but apparently some variants of GNU ld only accept -v.
12435
# Break only if it was the GNU/non-GNU ld that we prefer.
12436
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12437
*GNU* | *'with BFD'*)
12438
test "$with_gnu_ld" != no && break
12441
test "$with_gnu_ld" != yes && break
12448
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12452
LD="$lt_cv_path_LD"
12453
if test -n "$LD"; then
12454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12455
$as_echo "$LD" >&6; }
12457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458
$as_echo "no" >&6; }
12460
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12462
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12463
if ${lt_cv_prog_gnu_ld+:} false; then :
12464
$as_echo_n "(cached) " >&6
12466
# I'd rather use --version here, but apparently some GNU lds only accept -v.
12467
case `$LD -v 2>&1 </dev/null` in
12468
*GNU* | *'with BFD'*)
12469
lt_cv_prog_gnu_ld=yes
12472
lt_cv_prog_gnu_ld=no
12476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12477
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12478
with_gnu_ld=$lt_cv_prog_gnu_ld
12486
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12487
# archiving commands below assume that GNU ld is being used.
12488
if test "$with_gnu_ld" = yes; then
12489
archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12490
archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12492
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12493
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12495
# If archive_cmds runs LD, not CC, wlarc should be empty
12496
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12497
# investigate it a little bit more. (MM)
12500
# ancient GNU ld didn't support --whole-archive et. al.
12501
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12502
$GREP 'no-whole-archive' > /dev/null; then
12503
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12505
whole_archive_flag_spec_CXX=
12511
# A generic and very simple default shared library creation
12512
# command for GNU C++ for the case where it uses the native
12513
# linker, instead of GNU ld. If possible, this setting should
12514
# overridden to take advantage of the native linker features on
12515
# the platform it is being used on.
12516
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12519
# Commands to make compiler produce verbose output that lists
12520
# what "hidden" libraries, object files and flags are used when
12521
# linking a shared library.
12522
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12530
# PORTME: fill in a description of your system's C++ link characteristics
12531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12532
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12536
# FIXME: insert proper C++ library support
12540
if test "$host_cpu" = ia64; then
12541
# On IA64, the linker does run time linking by default, so we don't
12542
# have to do anything special.
12543
aix_use_runtimelinking=no
12544
exp_sym_flag='-Bexport'
12547
aix_use_runtimelinking=no
12549
# Test if we are trying to use run time linking or normal
12550
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12551
# need to do runtime linking.
12552
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12553
for ld_flag in $LDFLAGS; do
12556
aix_use_runtimelinking=yes
12564
exp_sym_flag='-bexport'
12565
no_entry_flag='-bnoentry'
12568
# When large executables or shared objects are built, AIX ld can
12569
# have problems creating the table of contents. If linking a library
12570
# or program results in "error TOC overflow" add -mminimal-toc to
12571
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12572
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12574
archive_cmds_CXX=''
12575
hardcode_direct_CXX=yes
12576
hardcode_direct_absolute_CXX=yes
12577
hardcode_libdir_separator_CXX=':'
12578
link_all_deplibs_CXX=yes
12579
file_list_spec_CXX='${wl}-f,'
12581
if test "$GXX" = yes; then
12582
case $host_os in aix4.[012]|aix4.[012].*)
12583
# We only want to do this on AIX 4.2 and lower, the check
12584
# below for broken collect2 doesn't work under 4.3+
12585
collect2name=`${CC} -print-prog-name=collect2`
12586
if test -f "$collect2name" &&
12587
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12589
# We have reworked collect2
12592
# We have old collect2
12593
hardcode_direct_CXX=unsupported
12594
# It fails to find uninstalled libraries when the uninstalled
12595
# path is not listed in the libpath. Setting hardcode_minus_L
12596
# to unsupported forces relinking
12597
hardcode_minus_L_CXX=yes
12598
hardcode_libdir_flag_spec_CXX='-L$libdir'
12599
hardcode_libdir_separator_CXX=
12602
shared_flag='-shared'
12603
if test "$aix_use_runtimelinking" = yes; then
12604
shared_flag="$shared_flag "'${wl}-G'
12608
if test "$host_cpu" = ia64; then
12609
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12610
# chokes on -Wl,-G. The following line is correct:
12613
if test "$aix_use_runtimelinking" = yes; then
12614
shared_flag='${wl}-G'
12616
shared_flag='${wl}-bM:SRE'
12621
export_dynamic_flag_spec_CXX='${wl}-bexpall'
12622
# It seems that -bexpall does not export symbols beginning with
12623
# underscore (_), so it is better to generate a list of symbols to
12625
always_export_symbols_CXX=yes
12626
if test "$aix_use_runtimelinking" = yes; then
12627
# Warning - without using the other runtime loading flags (-brtl),
12628
# -berok will link without error, but may produce a broken library.
12629
allow_undefined_flag_CXX='-berok'
12630
# Determine the default libpath from the value encoded in an empty
12632
if test "${lt_cv_aix_libpath+set}" = set; then
12633
aix_libpath=$lt_cv_aix_libpath
12635
if ${lt_cv_aix_libpath__CXX+:} false; then :
12636
$as_echo_n "(cached) " >&6
12638
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639
/* end confdefs.h. */
12649
if ac_fn_cxx_try_link "$LINENO"; then :
12651
lt_aix_libpath_sed='
12652
/Import File Strings/,/^$/ {
12654
s/^0 *\([^ ]*\) *$/\1/
12658
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12659
# Check for a 64-bit object if we didn't find anything.
12660
if test -z "$lt_cv_aix_libpath__CXX"; then
12661
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12664
rm -f core conftest.err conftest.$ac_objext \
12665
conftest$ac_exeext conftest.$ac_ext
12666
if test -z "$lt_cv_aix_libpath__CXX"; then
12667
lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12672
aix_libpath=$lt_cv_aix_libpath__CXX
12675
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12677
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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12679
if test "$host_cpu" = ia64; then
12680
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12681
allow_undefined_flag_CXX="-z nodefs"
12682
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"
12684
# Determine the default libpath from the value encoded in an
12685
# empty executable.
12686
if test "${lt_cv_aix_libpath+set}" = set; then
12687
aix_libpath=$lt_cv_aix_libpath
12689
if ${lt_cv_aix_libpath__CXX+:} false; then :
12690
$as_echo_n "(cached) " >&6
12692
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693
/* end confdefs.h. */
12703
if ac_fn_cxx_try_link "$LINENO"; then :
12705
lt_aix_libpath_sed='
12706
/Import File Strings/,/^$/ {
12708
s/^0 *\([^ ]*\) *$/\1/
12712
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12713
# Check for a 64-bit object if we didn't find anything.
12714
if test -z "$lt_cv_aix_libpath__CXX"; then
12715
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12718
rm -f core conftest.err conftest.$ac_objext \
12719
conftest$ac_exeext conftest.$ac_ext
12720
if test -z "$lt_cv_aix_libpath__CXX"; then
12721
lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12726
aix_libpath=$lt_cv_aix_libpath__CXX
12729
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12730
# Warning - without using the other run time loading flags,
12731
# -berok will link without error, but may produce a broken library.
12732
no_undefined_flag_CXX=' ${wl}-bernotok'
12733
allow_undefined_flag_CXX=' ${wl}-berok'
12734
if test "$with_gnu_ld" = yes; then
12735
# We only use this code for GNU lds that support --whole-archive.
12736
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12738
# Exported symbols can be pulled into shared objects from archives
12739
whole_archive_flag_spec_CXX='$convenience'
12741
archive_cmds_need_lc_CXX=yes
12742
# This is similar to how AIX traditionally builds its shared
12744
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'
12750
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12751
allow_undefined_flag_CXX=unsupported
12752
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12753
# support --undefined. This deserves some investigation. FIXME
12754
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12761
case $cc_basename in
12763
# FIXME: insert proper C++ library support
12769
cygwin* | mingw* | pw32* | cegcc*)
12770
case $GXX,$cc_basename in
12773
# hardcode_libdir_flag_spec is actually meaningless, as there is
12774
# no search path for DLLs.
12775
hardcode_libdir_flag_spec_CXX=' '
12776
allow_undefined_flag_CXX=unsupported
12777
always_export_symbols_CXX=yes
12778
file_list_spec_CXX='@'
12779
# Tell ltmain to make .lib files, not .a files.
12781
# Tell ltmain to make .dll files, not .so files.
12783
# FIXME: Setting linknames here is a bad hack.
12784
archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12785
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12786
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12788
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12790
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12792
# The linker will not automatically build a static lib if we build a DLL.
12793
# _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12794
enable_shared_with_static_runtimes_CXX=yes
12796
old_postinstall_cmds_CXX='chmod 644 $oldlib'
12797
postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12798
lt_tool_outputfile="@TOOL_OUTPUT@"~
12799
case $lt_outputfile in
12802
lt_outputfile="$lt_outputfile.exe"
12803
lt_tool_outputfile="$lt_tool_outputfile.exe"
12806
func_to_tool_file "$lt_outputfile"~
12807
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12808
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12809
$RM "$lt_outputfile.manifest";
12814
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12815
# as there is no search path for DLLs.
12816
hardcode_libdir_flag_spec_CXX='-L$libdir'
12817
export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12818
allow_undefined_flag_CXX=unsupported
12819
always_export_symbols_CXX=no
12820
enable_shared_with_static_runtimes_CXX=yes
12822
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12823
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'
12824
# If the export-symbols file already is a .def file (1st line
12825
# is EXPORTS), use it as is; otherwise, prepend...
12826
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12827
cp $export_symbols $output_objdir/$soname.def;
12829
echo EXPORTS > $output_objdir/$soname.def;
12830
cat $export_symbols >> $output_objdir/$soname.def;
12832
$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'
12839
darwin* | rhapsody*)
12842
archive_cmds_need_lc_CXX=no
12843
hardcode_direct_CXX=no
12844
hardcode_automatic_CXX=yes
12845
hardcode_shlibpath_var_CXX=unsupported
12846
if test "$lt_cv_ld_force_load" = "yes"; then
12847
whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12850
whole_archive_flag_spec_CXX=''
12852
link_all_deplibs_CXX=yes
12853
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12854
case $cc_basename in
12855
ifort*) _lt_dar_can_shared=yes ;;
12856
*) _lt_dar_can_shared=$GCC ;;
12858
if test "$_lt_dar_can_shared" = "yes"; then
12859
output_verbose_link_cmd=func_echo_all
12860
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}"
12861
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12862
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}"
12863
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}"
12864
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12865
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}"
12866
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}"
12876
case $cc_basename in
12878
# FIXME: insert proper C++ library support
12882
# Green Hills C++ Compiler
12883
# FIXME: insert proper C++ library support
12887
# FIXME: insert proper C++ library support
12894
# C++ shared libraries reported to be fairly broken before
12900
archive_cmds_need_lc_CXX=no
12903
freebsd* | dragonfly*)
12904
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12913
archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12914
link_all_deplibs_CXX=yes
12918
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12919
hardcode_libdir_separator_CXX=:
12920
export_dynamic_flag_spec_CXX='${wl}-E'
12921
hardcode_direct_CXX=yes
12922
hardcode_minus_L_CXX=yes # Not in the search PATH,
12923
# but as the default
12924
# location of the library.
12926
case $cc_basename in
12928
# FIXME: insert proper C++ library support
12932
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'
12933
# Commands to make compiler produce verbose output that lists
12934
# what "hidden" libraries, object files and flags are used when
12935
# linking a shared library.
12937
# There doesn't appear to be a way to prevent this compiler from
12938
# explicitly linking system object files so we need to strip them
12939
# from the output so that they don't get included in the library
12941
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; func_echo_all "$list"'
12944
if test "$GXX" = yes; then
12945
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
12947
# FIXME: insert proper C++ library support
12955
if test $with_gnu_ld = no; then
12956
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12957
hardcode_libdir_separator_CXX=:
12963
export_dynamic_flag_spec_CXX='${wl}-E'
12969
hardcode_direct_CXX=no
12970
hardcode_shlibpath_var_CXX=no
12973
hardcode_direct_CXX=yes
12974
hardcode_direct_absolute_CXX=yes
12975
hardcode_minus_L_CXX=yes # Not in the search PATH,
12976
# but as the default
12977
# location of the library.
12981
case $cc_basename in
12983
# FIXME: insert proper C++ library support
12989
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12992
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12995
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12998
# Commands to make compiler produce verbose output that lists
12999
# what "hidden" libraries, object files and flags are used when
13000
# linking a shared library.
13002
# There doesn't appear to be a way to prevent this compiler from
13003
# explicitly linking system object files so we need to strip them
13004
# from the output so that they don't get included in the library
13006
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; func_echo_all "$list"'
13009
if test "$GXX" = yes; then
13010
if test $with_gnu_ld = no; then
13013
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13016
archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13019
archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13024
# FIXME: insert proper C++ library support
13032
hardcode_direct_CXX=no
13033
hardcode_shlibpath_var_CXX=no
13034
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13035
export_dynamic_flag_spec_CXX='${wl}-E'
13036
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13037
# Instead, shared libraries are loaded at an image base (0x10000000 by
13038
# default) and relocated if they conflict, which is a slow very memory
13039
# consuming and fragmenting process. To avoid this, we pick a random,
13040
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13041
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13042
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'
13043
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'
13046
case $cc_basename in
13049
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13051
# Archives containing C++ object files must be created using
13052
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13053
# necessary to make sure instantiated templates are included
13055
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13058
if test "$GXX" = yes; then
13059
if test "$with_gnu_ld" = no; then
13060
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13062
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13065
link_all_deplibs_CXX=yes
13068
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13069
hardcode_libdir_separator_CXX=:
13070
inherit_rpath_CXX=yes
13073
linux* | k*bsd*-gnu | kopensolaris*-gnu)
13074
case $cc_basename in
13076
# Kuck and Associates, Inc. (KAI) C++ Compiler
13078
# KCC will only create a shared library if the output file
13079
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13080
# to its proper name (with version) after linking.
13081
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'
13082
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'
13083
# Commands to make compiler produce verbose output that lists
13084
# what "hidden" libraries, object files and flags are used when
13085
# linking a shared library.
13087
# There doesn't appear to be a way to prevent this compiler from
13088
# explicitly linking system object files so we need to strip them
13089
# from the output so that they don't get included in the library
13091
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; func_echo_all "$list"'
13093
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13094
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13096
# Archives containing C++ object files must be created using
13097
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13098
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13103
# version 8.0 and above of icpc choke on multiply defined symbols
13104
# if we add $predep_objects and $postdep_objects, however 7.1 and
13105
# earlier do not add the objects themselves.
13106
case `$CC -V 2>&1` in
13108
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13109
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'
13111
*) # Version 8.0 or newer
13114
ia64*) tmp_idyn=' -i_dynamic';;
13116
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13117
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'
13120
archive_cmds_need_lc_CXX=no
13121
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13122
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13123
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13126
# Portland Group C++ compiler
13128
*pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13129
prelink_cmds_CXX='tpldir=Template.dir~
13131
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13132
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13133
old_archive_cmds_CXX='tpldir=Template.dir~
13135
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13136
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13138
archive_cmds_CXX='tpldir=Template.dir~
13140
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13141
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13142
archive_expsym_cmds_CXX='tpldir=Template.dir~
13144
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13145
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13147
*) # Version 6 and above use weak symbols
13148
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13149
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'
13153
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13154
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13155
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13159
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13160
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'
13162
runpath_var=LD_RUN_PATH
13163
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13164
hardcode_libdir_separator_CXX=:
13166
# Commands to make compiler produce verbose output that lists
13167
# what "hidden" libraries, object files and flags are used when
13168
# linking a shared library.
13170
# There doesn't appear to be a way to prevent this compiler from
13171
# explicitly linking system object files so we need to strip them
13172
# from the output so that they don't get included in the library
13174
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13176
xl* | mpixl* | bgxl*)
13177
# IBM XL 8.0 on PPC, with GNU ld
13178
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13179
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13180
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13181
if test "x$supports_anon_versioning" = xyes; then
13182
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13183
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13184
echo "local: *; };" >> $output_objdir/$libname.ver~
13185
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13189
case `$CC -V 2>&1 | sed 5q` in
13192
no_undefined_flag_CXX=' -zdefs'
13193
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13194
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'
13195
hardcode_libdir_flag_spec_CXX='-R$libdir'
13196
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13197
compiler_needs_object_CXX=yes
13199
# Not sure whether something based on
13200
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13202
output_verbose_link_cmd='func_echo_all'
13204
# Archives containing C++ object files must be created using
13205
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13206
# necessary to make sure instantiated templates are included
13208
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13216
# FIXME: insert proper C++ library support
13221
# FIXME: insert proper C++ library support
13226
case $cc_basename in
13228
# FIXME: insert proper C++ library support
13232
# FIXME: insert proper C++ library support
13239
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13240
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13242
hardcode_libdir_flag_spec_CXX='-R$libdir'
13243
hardcode_direct_CXX=yes
13244
hardcode_shlibpath_var_CXX=no
13246
# Workaround some broken pre-1.5 toolchains
13247
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13255
# C++ shared libraries are fairly broken
13260
if test -f /usr/libexec/ld.so; then
13261
hardcode_direct_CXX=yes
13262
hardcode_shlibpath_var_CXX=no
13263
hardcode_direct_absolute_CXX=yes
13264
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13265
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13266
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13267
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13268
export_dynamic_flag_spec_CXX='${wl}-E'
13269
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13271
output_verbose_link_cmd=func_echo_all
13277
osf3* | osf4* | osf5*)
13278
case $cc_basename in
13280
# Kuck and Associates, Inc. (KAI) C++ Compiler
13282
# KCC will only create a shared library if the output file
13283
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13284
# to its proper name (with version) after linking.
13285
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'
13287
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13288
hardcode_libdir_separator_CXX=:
13290
# Archives containing C++ object files must be created using
13291
# the KAI C++ compiler.
13293
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13294
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13298
# Rational C++ 2.4.1
13299
# FIXME: insert proper C++ library support
13305
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13306
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13307
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13310
allow_undefined_flag_CXX=' -expect_unresolved \*'
13311
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13312
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13313
echo "-hidden">> $lib.exp~
13314
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13316
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13320
hardcode_libdir_separator_CXX=:
13322
# Commands to make compiler produce verbose output that lists
13323
# what "hidden" libraries, object files and flags are used when
13324
# linking a shared library.
13326
# There doesn't appear to be a way to prevent this compiler from
13327
# explicitly linking system object files so we need to strip them
13328
# from the output so that they don't get included in the library
13330
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13333
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13334
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13337
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13340
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13344
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13345
hardcode_libdir_separator_CXX=:
13347
# Commands to make compiler produce verbose output that lists
13348
# what "hidden" libraries, object files and flags are used when
13349
# linking a shared library.
13350
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13353
# FIXME: insert proper C++ library support
13361
# FIXME: insert proper C++ library support
13366
case $cc_basename in
13369
# FIXME: insert proper C++ library support
13374
# FIXME: insert proper C++ library support
13378
# FIXME: insert proper C++ library support
13385
case $cc_basename in
13387
# Sun C++ 4.2, 5.x and Centerline C++
13388
archive_cmds_need_lc_CXX=yes
13389
no_undefined_flag_CXX=' -zdefs'
13390
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13391
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13392
$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'
13394
hardcode_libdir_flag_spec_CXX='-R$libdir'
13395
hardcode_shlibpath_var_CXX=no
13397
solaris2.[0-5] | solaris2.[0-5].*) ;;
13399
# The compiler driver will combine and reorder linker options,
13400
# but understands `-z linker_flag'.
13401
# Supported since Solaris 2.6 (maybe 2.5.1?)
13402
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13405
link_all_deplibs_CXX=yes
13407
output_verbose_link_cmd='func_echo_all'
13409
# Archives containing C++ object files must be created using
13410
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13411
# necessary to make sure instantiated templates are included
13413
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13416
# Green Hills C++ Compiler
13417
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13419
# The C++ compiler must be used to create the archive.
13420
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13423
# GNU C++ compiler with Solaris linker
13424
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13425
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13426
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13427
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13428
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13429
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13431
# Commands to make compiler produce verbose output that lists
13432
# what "hidden" libraries, object files and flags are used when
13433
# linking a shared library.
13434
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13436
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13438
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13439
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13440
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13442
# Commands to make compiler produce verbose output that lists
13443
# what "hidden" libraries, object files and flags are used when
13444
# linking a shared library.
13445
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13448
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13450
solaris2.[0-5] | solaris2.[0-5].*) ;;
13452
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13460
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13461
no_undefined_flag_CXX='${wl}-z,text'
13462
archive_cmds_need_lc_CXX=no
13463
hardcode_shlibpath_var_CXX=no
13464
runpath_var='LD_RUN_PATH'
13466
case $cc_basename in
13468
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13469
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13472
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13473
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13478
sysv5* | sco3.2v5* | sco5v6*)
13479
# Note: We can NOT use -z defs as we might desire, because we do not
13480
# link with -lc, and that would cause any symbols used from libc to
13481
# always be unresolved, which means just about no library would
13482
# ever link correctly. If we're not using GNU ld we use -z text
13483
# though, which does catch some bad symbols but isn't as heavy-handed
13485
no_undefined_flag_CXX='${wl}-z,text'
13486
allow_undefined_flag_CXX='${wl}-z,nodefs'
13487
archive_cmds_need_lc_CXX=no
13488
hardcode_shlibpath_var_CXX=no
13489
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13490
hardcode_libdir_separator_CXX=':'
13491
link_all_deplibs_CXX=yes
13492
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13493
runpath_var='LD_RUN_PATH'
13495
case $cc_basename in
13497
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13498
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13499
old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13500
'"$old_archive_cmds_CXX"
13501
reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13502
'"$reload_cmds_CXX"
13505
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13506
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13512
case $cc_basename in
13514
# NonStop-UX NCC 3.20
13515
# FIXME: insert proper C++ library support
13519
# FIXME: insert proper C++ library support
13526
# FIXME: insert proper C++ library support
13531
# FIXME: insert proper C++ library support
13536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13537
$as_echo "$ld_shlibs_CXX" >&6; }
13538
test "$ld_shlibs_CXX" = no && can_build_shared=no
13544
## There is no encapsulation within the following macros, do not change
13545
## the running order or otherwise move them around unless you know exactly
13546
## what you are doing...
13547
# Dependencies to place before and after the object being linked:
13548
predep_objects_CXX=
13549
postdep_objects_CXX=
13552
compiler_lib_search_path_CXX=
13554
cat > conftest.$ac_ext <<_LT_EOF
13558
Foo (void) { a = 0; }
13565
_lt_libdeps_save_CFLAGS=$CFLAGS
13566
case "$CC $CFLAGS " in #(
13567
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13568
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13569
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13572
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13573
(eval $ac_compile) 2>&5
13575
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13576
test $ac_status = 0; }; then
13577
# Parse the compiler output and extract the necessary
13578
# objects, libraries and library flags.
13580
# Sentinel used to keep track of whether or not we are before
13581
# the conftest object file.
13582
pre_test_object_deps_done=no
13584
for p in `eval "$output_verbose_link_cmd"`; do
13585
case ${prev}${p} in
13588
# Some compilers place space between "-{L,R}" and the path.
13589
# Remove the space.
13590
if test $p = "-L" ||
13591
test $p = "-R"; then
13596
# Expand the sysroot to ease extracting the directories later.
13597
if test -z "$prev"; then
13599
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13600
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13601
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13605
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13607
if test "$pre_test_object_deps_done" = no; then
13610
# Internal compiler library paths should come after those
13611
# provided the user. The postdeps already come after the
13612
# user supplied libs so there is no need to process them.
13613
if test -z "$compiler_lib_search_path_CXX"; then
13614
compiler_lib_search_path_CXX="${prev}${p}"
13616
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13619
# The "-l" case would never come before the object being
13620
# linked, so don't bother handling this case.
13623
if test -z "$postdeps_CXX"; then
13624
postdeps_CXX="${prev}${p}"
13626
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13632
*.lto.$objext) ;; # Ignore GCC LTO objects
13634
# This assumes that the test object file only shows up
13635
# once in the compiler output.
13636
if test "$p" = "conftest.$objext"; then
13637
pre_test_object_deps_done=yes
13641
if test "$pre_test_object_deps_done" = no; then
13642
if test -z "$predep_objects_CXX"; then
13643
predep_objects_CXX="$p"
13645
predep_objects_CXX="$predep_objects_CXX $p"
13648
if test -z "$postdep_objects_CXX"; then
13649
postdep_objects_CXX="$p"
13651
postdep_objects_CXX="$postdep_objects_CXX $p"
13656
*) ;; # Ignore the rest.
13664
echo "libtool.m4: error: problem compiling CXX test program"
13667
$RM -f confest.$objext
13668
CFLAGS=$_lt_libdeps_save_CFLAGS
13670
# PORTME: override above test on systems where it is broken
13673
# Interix 3.5 installs completely hosed .la files for C++, so rather than
13674
# hack all around it, let's just trust "g++" to DTRT.
13675
predep_objects_CXX=
13676
postdep_objects_CXX=
13681
case `$CC -V 2>&1 | sed 5q` in
13685
# The more standards-conforming stlport4 library is
13686
# incompatible with the Cstd library. Avoid specifying
13687
# it if it's in CXXFLAGS. Ignore libCrun as
13688
# -library=stlport4 depends on it.
13689
case " $CXX $CXXFLAGS " in
13690
*" -library=stlport4 "*)
13691
solaris_use_stlport4=yes
13695
if test "$solaris_use_stlport4" != yes; then
13696
postdeps_CXX='-library=Cstd -library=Crun'
13703
case $cc_basename in
13705
# The more standards-conforming stlport4 library is
13706
# incompatible with the Cstd library. Avoid specifying
13707
# it if it's in CXXFLAGS. Ignore libCrun as
13708
# -library=stlport4 depends on it.
13709
case " $CXX $CXXFLAGS " in
13710
*" -library=stlport4 "*)
13711
solaris_use_stlport4=yes
13715
# Adding this requires a known-good setup of shared libraries for
13716
# Sun compiler versions before 5.6, else PIC objects from an old
13717
# archive will be linked into the output, leading to subtle bugs.
13718
if test "$solaris_use_stlport4" != yes; then
13719
postdeps_CXX='-library=Cstd -library=Crun'
13727
case " $postdeps_CXX " in
13728
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13730
compiler_lib_search_dirs_CXX=
13731
if test -n "${compiler_lib_search_path_CXX}"; then
13732
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13765
lt_prog_compiler_wl_CXX=
13766
lt_prog_compiler_pic_CXX=
13767
lt_prog_compiler_static_CXX=
13770
# C++ specific cases for pic, static, wl, etc.
13771
if test "$GXX" = yes; then
13772
lt_prog_compiler_wl_CXX='-Wl,'
13773
lt_prog_compiler_static_CXX='-static'
13777
# All AIX code is PIC.
13778
if test "$host_cpu" = ia64; then
13779
# AIX 5 now supports IA64 processor
13780
lt_prog_compiler_static_CXX='-Bstatic'
13787
# see comment about AmigaOS4 .so support
13788
lt_prog_compiler_pic_CXX='-fPIC'
13791
# FIXME: we need at least 68020 code to build shared libraries, but
13792
# adding the `-m68020' flag to GCC prevents building anything better,
13794
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13799
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13800
# PIC is the default for these OSes.
13802
mingw* | cygwin* | os2* | pw32* | cegcc*)
13803
# This hack is so that the source file can tell whether it is being
13804
# built for inclusion in a dll (and should export symbols for example).
13805
# Although the cygwin gcc ignores -fPIC, still need this for old-style
13806
# (--disable-auto-import) libraries
13807
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13809
darwin* | rhapsody*)
13810
# PIC is the default on this platform
13811
# Common symbols not allowed in MH_DYLIB files
13812
lt_prog_compiler_pic_CXX='-fno-common'
13815
# DJGPP does not support shared libraries at all
13816
lt_prog_compiler_pic_CXX=
13819
# PIC is the default for Haiku.
13820
# The "-static" flag exists, but is broken.
13821
lt_prog_compiler_static_CXX=
13824
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13825
# Instead, we relocate shared libraries at runtime.
13828
if test -d /usr/nec; then
13829
lt_prog_compiler_pic_CXX=-Kconform_pic
13833
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13834
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13835
# sets the default TLS model and affects inlining.
13840
lt_prog_compiler_pic_CXX='-fPIC'
13845
# QNX uses GNU C++, but need to define -shared option too, otherwise
13846
# it will coredump.
13847
lt_prog_compiler_pic_CXX='-fPIC -shared'
13850
lt_prog_compiler_pic_CXX='-fPIC'
13856
# All AIX code is PIC.
13857
if test "$host_cpu" = ia64; then
13858
# AIX 5 now supports IA64 processor
13859
lt_prog_compiler_static_CXX='-Bstatic'
13861
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13865
case $cc_basename in
13867
# Green Hills C++ Compiler
13868
# _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"
13872
mingw* | cygwin* | os2* | pw32* | cegcc*)
13873
# This hack is so that the source file can tell whether it is being
13874
# built for inclusion in a dll (and should export symbols for example).
13875
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13878
case $cc_basename in
13880
lt_prog_compiler_pic_CXX='-KPIC'
13883
# Green Hills C++ Compiler
13884
lt_prog_compiler_pic_CXX='-pic'
13890
freebsd* | dragonfly*)
13891
# FreeBSD uses GNU C++
13893
hpux9* | hpux10* | hpux11*)
13894
case $cc_basename in
13896
lt_prog_compiler_wl_CXX='-Wl,'
13897
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13898
if test "$host_cpu" != ia64; then
13899
lt_prog_compiler_pic_CXX='+Z'
13903
lt_prog_compiler_wl_CXX='-Wl,'
13904
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13910
lt_prog_compiler_pic_CXX='+Z'
13919
# This is c89, which is MS Visual C++ (no shared libs)
13920
# Anyone wants to do a port?
13922
irix5* | irix6* | nonstopux*)
13923
case $cc_basename in
13925
lt_prog_compiler_wl_CXX='-Wl,'
13926
lt_prog_compiler_static_CXX='-non_shared'
13927
# CC pic flag -KPIC is the default.
13933
linux* | k*bsd*-gnu | kopensolaris*-gnu)
13934
case $cc_basename in
13937
lt_prog_compiler_wl_CXX='--backend -Wl,'
13938
lt_prog_compiler_pic_CXX='-fPIC'
13941
# old Intel C++ for x86_64 which still supported -KPIC.
13942
lt_prog_compiler_wl_CXX='-Wl,'
13943
lt_prog_compiler_pic_CXX='-KPIC'
13944
lt_prog_compiler_static_CXX='-static'
13947
# Intel C++, used to be incompatible with GCC.
13948
# ICC 10 doesn't accept -KPIC any more.
13949
lt_prog_compiler_wl_CXX='-Wl,'
13950
lt_prog_compiler_pic_CXX='-fPIC'
13951
lt_prog_compiler_static_CXX='-static'
13954
# Portland Group C++ compiler
13955
lt_prog_compiler_wl_CXX='-Wl,'
13956
lt_prog_compiler_pic_CXX='-fpic'
13957
lt_prog_compiler_static_CXX='-Bstatic'
13961
# Make sure the PIC flag is empty. It appears that all Alpha
13962
# Linux and Compaq Tru64 Unix objects are PIC.
13963
lt_prog_compiler_pic_CXX=
13964
lt_prog_compiler_static_CXX='-non_shared'
13966
xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13967
# IBM XL 8.0, 9.0 on PPC and BlueGene
13968
lt_prog_compiler_wl_CXX='-Wl,'
13969
lt_prog_compiler_pic_CXX='-qpic'
13970
lt_prog_compiler_static_CXX='-qstaticlink'
13973
case `$CC -V 2>&1 | sed 5q` in
13976
lt_prog_compiler_pic_CXX='-KPIC'
13977
lt_prog_compiler_static_CXX='-Bstatic'
13978
lt_prog_compiler_wl_CXX='-Qoption ld '
13989
case $cc_basename in
13991
lt_prog_compiler_pic_CXX='-W c,exportall'
14000
# QNX uses GNU C++, but need to define -shared option too, otherwise
14001
# it will coredump.
14002
lt_prog_compiler_pic_CXX='-fPIC -shared'
14004
osf3* | osf4* | osf5*)
14005
case $cc_basename in
14007
lt_prog_compiler_wl_CXX='--backend -Wl,'
14010
# Rational C++ 2.4.1
14011
lt_prog_compiler_pic_CXX='-pic'
14014
# Digital/Compaq C++
14015
lt_prog_compiler_wl_CXX='-Wl,'
14016
# Make sure the PIC flag is empty. It appears that all Alpha
14017
# Linux and Compaq Tru64 Unix objects are PIC.
14018
lt_prog_compiler_pic_CXX=
14019
lt_prog_compiler_static_CXX='-non_shared'
14028
case $cc_basename in
14030
# Sun C++ 4.2, 5.x and Centerline C++
14031
lt_prog_compiler_pic_CXX='-KPIC'
14032
lt_prog_compiler_static_CXX='-Bstatic'
14033
lt_prog_compiler_wl_CXX='-Qoption ld '
14036
# Green Hills C++ Compiler
14037
lt_prog_compiler_pic_CXX='-PIC'
14044
case $cc_basename in
14047
lt_prog_compiler_pic_CXX='-pic'
14048
lt_prog_compiler_static_CXX='-Bstatic'
14052
lt_prog_compiler_pic_CXX='-pic'
14058
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14059
case $cc_basename in
14061
lt_prog_compiler_wl_CXX='-Wl,'
14062
lt_prog_compiler_pic_CXX='-KPIC'
14063
lt_prog_compiler_static_CXX='-Bstatic'
14068
case $cc_basename in
14070
# NonStop-UX NCC 3.20
14071
lt_prog_compiler_pic_CXX='-KPIC'
14080
lt_prog_compiler_can_build_shared_CXX=no
14086
# For platforms which do not support PIC, -DPIC is meaningless:
14088
lt_prog_compiler_pic_CXX=
14091
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14095
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14096
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14097
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14098
$as_echo_n "(cached) " >&6
14100
lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14102
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14103
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14104
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14107
# Check to make sure the PIC flag actually works.
14109
if test -n "$lt_prog_compiler_pic_CXX"; then
14110
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14111
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14112
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14113
$as_echo_n "(cached) " >&6
14115
lt_cv_prog_compiler_pic_works_CXX=no
14116
ac_outfile=conftest.$ac_objext
14117
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14118
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14119
# Insert the option either (1) after the last *FLAGS variable, or
14120
# (2) before a word containing "conftest.", or (3) at the end.
14121
# Note that $ac_compile itself does not contain backslashes and begins
14122
# with a dollar sign (not a hyphen), so the echo should work correctly.
14123
# The option is referenced via a variable to avoid confusing sed.
14124
lt_compile=`echo "$ac_compile" | $SED \
14125
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14126
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14127
-e 's:$: $lt_compiler_flag:'`
14128
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14129
(eval "$lt_compile" 2>conftest.err)
14131
cat conftest.err >&5
14132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133
if (exit $ac_status) && test -s "$ac_outfile"; then
14134
# The compiler can only warn and ignore the option if not recognized
14135
# So say no if there are warnings other than the usual output.
14136
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14137
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14138
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14139
lt_cv_prog_compiler_pic_works_CXX=yes
14145
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14146
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14148
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14149
case $lt_prog_compiler_pic_CXX in
14151
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14154
lt_prog_compiler_pic_CXX=
14155
lt_prog_compiler_can_build_shared_CXX=no
14165
# Check to make sure the static flag actually works.
14167
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14168
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14169
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14170
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14171
$as_echo_n "(cached) " >&6
14173
lt_cv_prog_compiler_static_works_CXX=no
14174
save_LDFLAGS="$LDFLAGS"
14175
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14176
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14177
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14178
# The linker can only warn and ignore the option if not recognized
14179
# So say no if there are warnings
14180
if test -s conftest.err; then
14181
# Append any errors to the config.log.
14182
cat conftest.err 1>&5
14183
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14184
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14185
if diff conftest.exp conftest.er2 >/dev/null; then
14186
lt_cv_prog_compiler_static_works_CXX=yes
14189
lt_cv_prog_compiler_static_works_CXX=yes
14193
LDFLAGS="$save_LDFLAGS"
14196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14197
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14199
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14202
lt_prog_compiler_static_CXX=
14208
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14209
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14210
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14211
$as_echo_n "(cached) " >&6
14213
lt_cv_prog_compiler_c_o_CXX=no
14214
$RM -r conftest 2>/dev/null
14218
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14220
lt_compiler_flag="-o out/conftest2.$ac_objext"
14221
# Insert the option either (1) after the last *FLAGS variable, or
14222
# (2) before a word containing "conftest.", or (3) at the end.
14223
# Note that $ac_compile itself does not contain backslashes and begins
14224
# with a dollar sign (not a hyphen), so the echo should work correctly.
14225
lt_compile=`echo "$ac_compile" | $SED \
14226
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14227
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14228
-e 's:$: $lt_compiler_flag:'`
14229
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14230
(eval "$lt_compile" 2>out/conftest.err)
14232
cat out/conftest.err >&5
14233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14236
# The compiler can only warn and ignore the option if not recognized
14237
# So say no if there are warnings
14238
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14239
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14240
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14241
lt_cv_prog_compiler_c_o_CXX=yes
14246
# SGI C++ compiler will create directory out/ii_files/ for
14247
# template instantiation
14248
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14249
$RM out/* && rmdir out
14255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14256
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14260
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14261
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14262
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14263
$as_echo_n "(cached) " >&6
14265
lt_cv_prog_compiler_c_o_CXX=no
14266
$RM -r conftest 2>/dev/null
14270
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14272
lt_compiler_flag="-o out/conftest2.$ac_objext"
14273
# Insert the option either (1) after the last *FLAGS variable, or
14274
# (2) before a word containing "conftest.", or (3) at the end.
14275
# Note that $ac_compile itself does not contain backslashes and begins
14276
# with a dollar sign (not a hyphen), so the echo should work correctly.
14277
lt_compile=`echo "$ac_compile" | $SED \
14278
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14279
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14280
-e 's:$: $lt_compiler_flag:'`
14281
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14282
(eval "$lt_compile" 2>out/conftest.err)
14284
cat out/conftest.err >&5
14285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14288
# The compiler can only warn and ignore the option if not recognized
14289
# So say no if there are warnings
14290
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14291
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14292
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14293
lt_cv_prog_compiler_c_o_CXX=yes
14298
# SGI C++ compiler will create directory out/ii_files/ for
14299
# template instantiation
14300
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14301
$RM out/* && rmdir out
14307
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14308
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14313
hard_links="nottested"
14314
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14315
# do not overwrite the value of need_locks provided by the user
14316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14317
$as_echo_n "checking if we can lock with hard links... " >&6; }
14320
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14322
ln conftest.a conftest.b 2>&5 || hard_links=no
14323
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14325
$as_echo "$hard_links" >&6; }
14326
if test "$hard_links" = no; then
14327
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14328
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14337
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14338
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14340
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14341
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14344
# If we're using GNU nm, then we don't want the "-C" option.
14345
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14346
# Also, AIX nm treats weak defined symbols like other global defined
14347
# symbols, whereas GNU nm marks them as "W".
14348
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14349
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14351
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'
14355
export_symbols_cmds_CXX="$ltdll_cmds"
14357
cygwin* | mingw* | cegcc*)
14358
case $cc_basename in
14360
exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14363
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14364
exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14369
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14374
$as_echo "$ld_shlibs_CXX" >&6; }
14375
test "$ld_shlibs_CXX" = no && can_build_shared=no
14377
with_gnu_ld_CXX=$with_gnu_ld
14385
# Do we need to explicitly link libc?
14387
case "x$archive_cmds_need_lc_CXX" in
14389
# Assume -lc should be added
14390
archive_cmds_need_lc_CXX=yes
14392
if test "$enable_shared" = yes && test "$GCC" = yes; then
14393
case $archive_cmds_CXX in
14395
# FIXME: we may have to deal with multi-command sequences.
14398
# Test whether the compiler implicitly links with -lc since on some
14399
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14400
# to ld, don't add -lc before -lgcc.
14401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14402
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14403
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14404
$as_echo_n "(cached) " >&6
14407
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14409
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14410
(eval $ac_compile) 2>&5
14412
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14413
test $ac_status = 0; } 2>conftest.err; then
14416
libobjs=conftest.$ac_objext
14418
wl=$lt_prog_compiler_wl_CXX
14419
pic_flag=$lt_prog_compiler_pic_CXX
14425
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14426
allow_undefined_flag_CXX=
14427
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14428
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14430
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14431
test $ac_status = 0; }
14433
lt_cv_archive_cmds_need_lc_CXX=no
14435
lt_cv_archive_cmds_need_lc_CXX=yes
14437
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14439
cat conftest.err 1>&5
14444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14445
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14446
archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14514
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14515
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14517
library_names_spec=
14518
libname_spec='lib$name'
14522
postuninstall_cmds=
14526
shlibpath_overrides_runpath=unknown
14528
dynamic_linker="$host_os ld.so"
14529
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14530
need_lib_prefix=unknown
14531
hardcode_into_libs=no
14533
# when you set need_version to no, make sure it does not cause -set_version
14534
# flags to be left without arguments
14535
need_version=unknown
14539
version_type=linux # correct to gnu/linux during the next big refactor
14540
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14541
shlibpath_var=LIBPATH
14543
# AIX 3 has no versioning support, so we append a major version to the name.
14544
soname_spec='${libname}${release}${shared_ext}$major'
14548
version_type=linux # correct to gnu/linux during the next big refactor
14551
hardcode_into_libs=yes
14552
if test "$host_cpu" = ia64; then
14553
# AIX 5 supports IA64
14554
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14555
shlibpath_var=LD_LIBRARY_PATH
14557
# With GCC up to 2.95.x, collect2 would create an import file
14558
# for dependence libraries. The import file would start with
14559
# the line `#! .'. This would cause the generated library to
14560
# depend on `.', always an invalid library. This was fixed in
14561
# development snapshots of GCC prior to 3.0.
14563
aix4 | aix4.[01] | aix4.[01].*)
14564
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14566
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14569
can_build_shared=no
14573
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14574
# soname into executable. Probably we can add versioning support to
14575
# collect2, so additional links can be useful in future.
14576
if test "$aix_use_runtimelinking" = yes; then
14577
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14578
# instead of lib<name>.a to let people know that these are not
14579
# typical AIX shared libraries.
14580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14582
# We preserve .a as extension for shared libraries through AIX4.2
14583
# and later when we are not doing run time linking.
14584
library_names_spec='${libname}${release}.a $libname.a'
14585
soname_spec='${libname}${release}${shared_ext}$major'
14587
shlibpath_var=LIBPATH
14594
# Since July 2007 AmigaOS4 officially supports .so libraries.
14595
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14596
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14599
library_names_spec='$libname.ixlibrary $libname.a'
14600
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14601
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14607
library_names_spec='${libname}${shared_ext}'
14608
dynamic_linker="$host_os ld.so"
14609
shlibpath_var=LIBRARY_PATH
14613
version_type=linux # correct to gnu/linux during the next big refactor
14615
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616
soname_spec='${libname}${release}${shared_ext}$major'
14617
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14618
shlibpath_var=LD_LIBRARY_PATH
14619
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14620
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14621
# the default ld.so.conf also contains /usr/contrib/lib and
14622
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14623
# libtool to hard-code these into programs
14626
cygwin* | mingw* | pw32* | cegcc*)
14627
version_type=windows
14632
case $GCC,$cc_basename in
14635
library_names_spec='$libname.dll.a'
14636
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14637
postinstall_cmds='base_file=`basename \${file}`~
14638
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14639
dldir=$destdir/`dirname \$dlpath`~
14640
test -d \$dldir || mkdir -p \$dldir~
14641
$install_prog $dir/$dlname \$dldir/$dlname~
14642
chmod a+x \$dldir/$dlname~
14643
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14644
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14646
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14647
dlpath=$dir/\$dldll~
14649
shlibpath_overrides_runpath=yes
14653
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14654
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14658
# MinGW DLLs use traditional 'lib' prefix
14659
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14662
# pw32 DLLs use 'pw' prefix rather than 'lib'
14663
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14666
dynamic_linker='Win32 ld.exe'
14671
libname_spec='$name'
14672
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14673
library_names_spec='${libname}.dll.lib'
14677
sys_lib_search_path_spec=
14680
for lt_path in $LIB
14683
# Let DOS variable expansion print the short 8.3 style file name.
14684
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14685
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14688
# Convert to MSYS style.
14689
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14692
# Convert to unix form, then to dos form, then back to unix form
14693
# but this time dos style (no spaces!) so that the unix form looks
14694
# like /cygdrive/c/PROGRA~1:/cygdr...
14695
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14696
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14697
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14700
sys_lib_search_path_spec="$LIB"
14701
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14702
# It is most probably a Windows format PATH.
14703
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14705
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14707
# FIXME: find the short name or the path components, as spaces are
14708
# common. (e.g. "Program Files" -> "PROGRA~1")
14712
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14713
postinstall_cmds='base_file=`basename \${file}`~
14714
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14715
dldir=$destdir/`dirname \$dlpath`~
14716
test -d \$dldir || mkdir -p \$dldir~
14717
$install_prog $dir/$dlname \$dldir/$dlname'
14718
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14719
dlpath=$dir/\$dldll~
14721
shlibpath_overrides_runpath=yes
14722
dynamic_linker='Win32 link.exe'
14726
# Assume MSVC wrapper
14727
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14728
dynamic_linker='Win32 ld.exe'
14731
# FIXME: first we should search . and the directory the executable is in
14735
darwin* | rhapsody*)
14736
dynamic_linker="$host_os dyld"
14737
version_type=darwin
14740
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14741
soname_spec='${libname}${release}${major}$shared_ext'
14742
shlibpath_overrides_runpath=yes
14743
shlibpath_var=DYLD_LIBRARY_PATH
14744
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14746
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14750
version_type=linux # correct to gnu/linux during the next big refactor
14753
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14754
soname_spec='${libname}${release}${shared_ext}$major'
14755
shlibpath_var=LD_LIBRARY_PATH
14758
freebsd* | dragonfly*)
14759
# DragonFly does not have aout. When/if they implement a new
14760
# versioning mechanism, adjust this.
14761
if test -x /usr/bin/objformat; then
14762
objformat=`/usr/bin/objformat`
14765
freebsd[23].*) objformat=aout ;;
14766
*) objformat=elf ;;
14769
version_type=freebsd-$objformat
14770
case $version_type in
14772
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14777
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14781
shlibpath_var=LD_LIBRARY_PATH
14784
shlibpath_overrides_runpath=yes
14786
freebsd3.[01]* | freebsdelf3.[01]*)
14787
shlibpath_overrides_runpath=yes
14788
hardcode_into_libs=yes
14790
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14791
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14792
shlibpath_overrides_runpath=no
14793
hardcode_into_libs=yes
14795
*) # from 4.6 on, and DragonFly
14796
shlibpath_overrides_runpath=yes
14797
hardcode_into_libs=yes
14803
version_type=linux # correct to gnu/linux during the next big refactor
14806
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14807
soname_spec='${libname}${release}${shared_ext}$major'
14808
shlibpath_var=LD_LIBRARY_PATH
14809
shlibpath_overrides_runpath=no
14810
hardcode_into_libs=yes
14814
version_type=linux # correct to gnu/linux during the next big refactor
14817
dynamic_linker="$host_os runtime_loader"
14818
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14819
soname_spec='${libname}${release}${shared_ext}$major'
14820
shlibpath_var=LIBRARY_PATH
14821
shlibpath_overrides_runpath=yes
14822
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14823
hardcode_into_libs=yes
14826
hpux9* | hpux10* | hpux11*)
14827
# Give a soname corresponding to the major version so that dld.sl refuses to
14828
# link against other versions.
14835
hardcode_into_libs=yes
14836
dynamic_linker="$host_os dld.so"
14837
shlibpath_var=LD_LIBRARY_PATH
14838
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14839
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840
soname_spec='${libname}${release}${shared_ext}$major'
14841
if test "X$HPUX_IA64_MODE" = X32; then
14842
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14844
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14846
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14850
hardcode_into_libs=yes
14851
dynamic_linker="$host_os dld.sl"
14852
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14853
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14854
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14855
soname_spec='${libname}${release}${shared_ext}$major'
14856
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14857
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14861
dynamic_linker="$host_os dld.sl"
14862
shlibpath_var=SHLIB_PATH
14863
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14864
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865
soname_spec='${libname}${release}${shared_ext}$major'
14868
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14869
postinstall_cmds='chmod 555 $lib'
14870
# or fails outright, so override atomically:
14871
install_override_mode=555
14875
version_type=linux # correct to gnu/linux during the next big refactor
14878
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14879
soname_spec='${libname}${release}${shared_ext}$major'
14880
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14881
shlibpath_var=LD_LIBRARY_PATH
14882
shlibpath_overrides_runpath=no
14883
hardcode_into_libs=yes
14886
irix5* | irix6* | nonstopux*)
14888
nonstopux*) version_type=nonstopux ;;
14890
if test "$lt_cv_prog_gnu_ld" = yes; then
14891
version_type=linux # correct to gnu/linux during the next big refactor
14898
soname_spec='${libname}${release}${shared_ext}$major'
14899
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14901
irix5* | nonstopux*)
14902
libsuff= shlibsuff=
14905
case $LD in # libtool.m4 will add one of these switches to LD
14906
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14907
libsuff= shlibsuff= libmagic=32-bit;;
14908
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14909
libsuff=32 shlibsuff=N32 libmagic=N32;;
14910
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14911
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14912
*) libsuff= shlibsuff= libmagic=never-match;;
14916
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14917
shlibpath_overrides_runpath=no
14918
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14919
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14920
hardcode_into_libs=yes
14923
# No shared lib support for Linux oldld, aout, or coff.
14924
linux*oldld* | linux*aout* | linux*coff*)
14928
# This must be glibc/ELF.
14929
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14930
version_type=linux # correct to gnu/linux during the next big refactor
14933
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14934
soname_spec='${libname}${release}${shared_ext}$major'
14935
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14936
shlibpath_var=LD_LIBRARY_PATH
14937
shlibpath_overrides_runpath=no
14939
# Some binutils ld are patched to set DT_RUNPATH
14940
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14941
$as_echo_n "(cached) " >&6
14943
lt_cv_shlibpath_overrides_runpath=no
14944
save_LDFLAGS=$LDFLAGS
14945
save_libdir=$libdir
14946
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14947
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14948
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949
/* end confdefs.h. */
14959
if ac_fn_cxx_try_link "$LINENO"; then :
14960
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14961
lt_cv_shlibpath_overrides_runpath=yes
14964
rm -f core conftest.err conftest.$ac_objext \
14965
conftest$ac_exeext conftest.$ac_ext
14966
LDFLAGS=$save_LDFLAGS
14967
libdir=$save_libdir
14971
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14973
# This implies no fast_install, which is unacceptable.
14974
# Some rework will be needed to allow for fast_install
14975
# before this can be enabled.
14976
hardcode_into_libs=yes
14978
# Append ld.so.conf contents to the search path
14979
if test -f /etc/ld.so.conf; then
14980
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;s/"//g;/^$/d' | tr '\n' ' '`
14981
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14984
# We used to test for /lib/ld.so.1 and disable shared libraries on
14985
# powerpc, because MkLinux only supported shared libraries with the
14986
# GNU dynamic linker. Since this was broken with cross compilers,
14987
# most powerpc-linux boxes support dynamic linking these days and
14988
# people can always --disable-shared, the test was removed, and we
14989
# assume the GNU/Linux dynamic linker is in use.
14990
dynamic_linker='GNU/Linux ld.so'
14997
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14998
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14999
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15000
dynamic_linker='NetBSD (a.out) ld.so'
15002
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15003
soname_spec='${libname}${release}${shared_ext}$major'
15004
dynamic_linker='NetBSD ld.elf_so'
15006
shlibpath_var=LD_LIBRARY_PATH
15007
shlibpath_overrides_runpath=yes
15008
hardcode_into_libs=yes
15012
version_type=linux # correct to gnu/linux during the next big refactor
15013
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15014
shlibpath_var=LD_LIBRARY_PATH
15015
shlibpath_overrides_runpath=yes
15022
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023
soname_spec='${libname}${release}${shared_ext}$major'
15024
shlibpath_var=LD_LIBRARY_PATH
15025
shlibpath_overrides_runpath=no
15026
hardcode_into_libs=yes
15027
dynamic_linker='ldqnx.so'
15032
sys_lib_dlsearch_path_spec="/usr/lib"
15034
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15036
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15037
*) need_version=no ;;
15039
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15040
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15041
shlibpath_var=LD_LIBRARY_PATH
15042
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15044
openbsd2.[89] | openbsd2.[89].*)
15045
shlibpath_overrides_runpath=no
15048
shlibpath_overrides_runpath=yes
15052
shlibpath_overrides_runpath=yes
15057
libname_spec='$name'
15060
library_names_spec='$libname${shared_ext} $libname.a'
15061
dynamic_linker='OS/2 ld.exe'
15062
shlibpath_var=LIBPATH
15065
osf3* | osf4* | osf5*)
15069
soname_spec='${libname}${release}${shared_ext}$major'
15070
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071
shlibpath_var=LD_LIBRARY_PATH
15072
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15073
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15081
version_type=linux # correct to gnu/linux during the next big refactor
15084
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15085
soname_spec='${libname}${release}${shared_ext}$major'
15086
shlibpath_var=LD_LIBRARY_PATH
15087
shlibpath_overrides_runpath=yes
15088
hardcode_into_libs=yes
15089
# ldd complains unless libraries are executable
15090
postinstall_cmds='chmod +x $lib'
15095
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15096
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15097
shlibpath_var=LD_LIBRARY_PATH
15098
shlibpath_overrides_runpath=yes
15099
if test "$with_gnu_ld" = yes; then
15106
version_type=linux # correct to gnu/linux during the next big refactor
15107
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15108
soname_spec='${libname}${release}${shared_ext}$major'
15109
shlibpath_var=LD_LIBRARY_PATH
15110
case $host_vendor in
15112
shlibpath_overrides_runpath=no
15114
runpath_var=LD_RUN_PATH
15122
shlibpath_overrides_runpath=no
15123
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15129
if test -d /usr/nec ;then
15130
version_type=linux # correct to gnu/linux during the next big refactor
15131
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15132
soname_spec='$libname${shared_ext}.$major'
15133
shlibpath_var=LD_LIBRARY_PATH
15137
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15138
version_type=freebsd-elf
15141
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15142
soname_spec='${libname}${release}${shared_ext}$major'
15143
shlibpath_var=LD_LIBRARY_PATH
15144
shlibpath_overrides_runpath=yes
15145
hardcode_into_libs=yes
15146
if test "$with_gnu_ld" = yes; then
15147
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15149
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15152
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15156
sys_lib_dlsearch_path_spec='/usr/lib'
15160
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15161
version_type=linux # correct to gnu/linux during the next big refactor
15164
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15165
shlibpath_var=LD_LIBRARY_PATH
15166
shlibpath_overrides_runpath=no
15167
hardcode_into_libs=yes
15171
version_type=linux # correct to gnu/linux during the next big refactor
15172
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173
soname_spec='${libname}${release}${shared_ext}$major'
15174
shlibpath_var=LD_LIBRARY_PATH
15181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15182
$as_echo "$dynamic_linker" >&6; }
15183
test "$dynamic_linker" = no && can_build_shared=no
15185
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15186
if test "$GCC" = yes; then
15187
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15190
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15191
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15193
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15194
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15235
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15236
hardcode_action_CXX=
15237
if test -n "$hardcode_libdir_flag_spec_CXX" ||
15238
test -n "$runpath_var_CXX" ||
15239
test "X$hardcode_automatic_CXX" = "Xyes" ; then
15241
# We can hardcode non-existent directories.
15242
if test "$hardcode_direct_CXX" != no &&
15243
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15244
# have to relink, otherwise we might link with an installed library
15245
# when we should be linking with a yet-to-be-installed one
15246
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15247
test "$hardcode_minus_L_CXX" != no; then
15248
# Linking always hardcodes the temporary library directory.
15249
hardcode_action_CXX=relink
15251
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15252
hardcode_action_CXX=immediate
15255
# We cannot hardcode anything, or else we can only hardcode existing
15257
hardcode_action_CXX=unsupported
15259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15260
$as_echo "$hardcode_action_CXX" >&6; }
15262
if test "$hardcode_action_CXX" = relink ||
15263
test "$inherit_rpath_CXX" = yes; then
15264
# Fast installation is not supported
15265
enable_fast_install=no
15266
elif test "$shlibpath_overrides_runpath" = yes ||
15267
test "$enable_shared" = no; then
15268
# Fast installation is not necessary
15269
enable_fast_install=needless
15278
fi # test -n "$compiler"
15281
CFLAGS=$lt_save_CFLAGS
15285
with_gnu_ld=$lt_save_with_gnu_ld
15286
lt_cv_path_LDCXX=$lt_cv_path_LD
15287
lt_cv_path_LD=$lt_save_path_LD
15288
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15289
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15290
fi # test "$_lt_caught_CXX_error" != yes
15293
ac_cpp='$CXXCPP $CPPFLAGS'
15294
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15295
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15296
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15312
ac_config_commands="$ac_config_commands libtool"
15317
# Only expand once:
15323
# ==========================
15324
# Platform check for windows
15325
# ==========================
15326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
15327
$as_echo_n "checking for native Win32... " >&6; }
15330
native_win32=yes ;; #(
15334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $native_win32" >&5
15335
$as_echo "$native_win32" >&6; }
15336
if test "x$native_win32" = "xyes"; then
15345
# TODO Check for docbook-to-man
15350
# Check whether --with-man was given.
15351
if test "${with_man+set}" = set; then :
15352
withval=$with_man; with_man="$withval"
15358
if test "x$with_man" != "xno"; then :
15361
if test -z "$DOCBOOK2MAN"; then :
15363
# Extract the first word of "docbook2x-man", so it can be a program name with args.
15364
set dummy docbook2x-man; ac_word=$2
15365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15366
$as_echo_n "checking for $ac_word... " >&6; }
15367
if ${ac_cv_path_DOCBOOK2MAN+:} false; then :
15368
$as_echo_n "(cached) " >&6
15370
case $DOCBOOK2MAN in
15372
ac_cv_path_DOCBOOK2MAN="$DOCBOOK2MAN" # Let the user override the test with a path.
15375
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15376
for as_dir in $PATH
15379
test -z "$as_dir" && as_dir=.
15380
for ac_exec_ext in '' $ac_executable_extensions; do
15381
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15382
ac_cv_path_DOCBOOK2MAN="$as_dir/$ac_word$ac_exec_ext"
15383
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15393
DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
15394
if test -n "$DOCBOOK2MAN"; then
15395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK2MAN" >&5
15396
$as_echo "$DOCBOOK2MAN" >&6; }
15398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15399
$as_echo "no" >&6; }
15403
if test -z "$DOCBOOK2MAN"; then :
15405
# Extract the first word of "docbook-to-man", so it can be a program name with args.
15406
set dummy docbook-to-man; ac_word=$2
15407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15408
$as_echo_n "checking for $ac_word... " >&6; }
15409
if ${ac_cv_path_DOCBOOK2MAN+:} false; then :
15410
$as_echo_n "(cached) " >&6
15412
case $DOCBOOK2MAN in
15414
ac_cv_path_DOCBOOK2MAN="$DOCBOOK2MAN" # Let the user override the test with a path.
15417
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15418
for as_dir in $PATH
15421
test -z "$as_dir" && as_dir=.
15422
for ac_exec_ext in '' $ac_executable_extensions; do
15423
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15424
ac_cv_path_DOCBOOK2MAN="$as_dir/$ac_word$ac_exec_ext"
15425
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15435
DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
15436
if test -n "$DOCBOOK2MAN"; then
15437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK2MAN" >&5
15438
$as_echo "$DOCBOOK2MAN" >&6; }
15440
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15441
$as_echo "no" >&6; }
15445
if test -z "$DOCBOOK2MAN"; then :
15447
# Extract the first word of "docbook2man.pl", so it can be a program name with args.
15448
set dummy docbook2man.pl; ac_word=$2
15449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15450
$as_echo_n "checking for $ac_word... " >&6; }
15451
if ${ac_cv_path_DOCBOOK2MAN+:} false; then :
15452
$as_echo_n "(cached) " >&6
15454
case $DOCBOOK2MAN in
15456
ac_cv_path_DOCBOOK2MAN="$DOCBOOK2MAN" # Let the user override the test with a path.
15459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15460
for as_dir in $PATH
15463
test -z "$as_dir" && as_dir=.
15464
for ac_exec_ext in '' $ac_executable_extensions; do
15465
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15466
ac_cv_path_DOCBOOK2MAN="$as_dir/$ac_word$ac_exec_ext"
15467
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15477
DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
15478
if test -n "$DOCBOOK2MAN"; then
15479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK2MAN" >&5
15480
$as_echo "$DOCBOOK2MAN" >&6; }
15482
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15483
$as_echo "no" >&6; }
15487
if test -z "$DOCBOOK2MAN"; then :
15489
as_fn_error $? "docbook-to-man is missing. Install docbook2X package." "$LINENO" 5
15503
if test "x$build_man" != "xno"; then
15504
WITH_LIBCMIS_MAN_TRUE=
15505
WITH_LIBCMIS_MAN_FALSE='#'
15507
WITH_LIBCMIS_MAN_TRUE='#'
15508
WITH_LIBCMIS_MAN_FALSE=
15515
# Extract the first word of "cppcheck", so it can be a program name with args.
15516
set dummy cppcheck; ac_word=$2
15517
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15518
$as_echo_n "checking for $ac_word... " >&6; }
15519
if ${ac_cv_path_CPPCHECK+:} false; then :
15520
$as_echo_n "(cached) " >&6
15524
ac_cv_path_CPPCHECK="$CPPCHECK" # Let the user override the test with a path.
15527
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15528
for as_dir in $PATH
15531
test -z "$as_dir" && as_dir=.
15532
for ac_exec_ext in '' $ac_executable_extensions; do
15533
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15534
ac_cv_path_CPPCHECK="$as_dir/$ac_word$ac_exec_ext"
15535
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15545
CPPCHECK=$ac_cv_path_CPPCHECK
15546
if test -n "$CPPCHECK"; then
15547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPCHECK" >&5
15548
$as_echo "$CPPCHECK" >&6; }
15550
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15551
$as_echo "no" >&6; }
15555
if test "x$ac_cv_path_CPPCHECK" != "x"; then :
15556
enable_cppcheck=yes
15560
if test "x$ac_cv_path_CPPCHECK" != "x"; then
15561
ENABLE_CPPCHECK_TRUE=
15562
ENABLE_CPPCHECK_FALSE='#'
15564
ENABLE_CPPCHECK_TRUE='#'
15565
ENABLE_CPPCHECK_FALSE=
15570
# Check whether --enable-werror was given.
15571
if test "${enable_werror+set}" = set; then :
15572
enableval=$enable_werror; enable_werror="$enableval"
15578
if test x"$enable_werror" != "xno"; then :
15580
CFLAGS="$CFLAGS -Werror"
15581
CXXFLAGS="$CXXFLAGS -Werror"
15584
if test x"$GCC" = xyes; then :
15586
# Be tough with warnings and produce less careless code
15587
CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wendif-labels -Wextra"
15588
CXXFLAGS="$CXXFLAGS -Wall -pedantic -Weffc++ -Wshadow -Wendif-labels -Wextra -Wsign-promo -Woverloaded-virtual -Wnon-virtual-dtor -Wsign-promo"
15600
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15601
if test -n "$ac_tool_prefix"; then
15602
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15603
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15605
$as_echo_n "checking for $ac_word... " >&6; }
15606
if ${ac_cv_path_PKG_CONFIG+:} false; then :
15607
$as_echo_n "(cached) " >&6
15609
case $PKG_CONFIG in
15611
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15614
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15615
for as_dir in $PATH
15618
test -z "$as_dir" && as_dir=.
15619
for ac_exec_ext in '' $ac_executable_extensions; do
15620
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15621
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15622
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15632
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15633
if test -n "$PKG_CONFIG"; then
15634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15635
$as_echo "$PKG_CONFIG" >&6; }
15637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15638
$as_echo "no" >&6; }
15643
if test -z "$ac_cv_path_PKG_CONFIG"; then
15644
ac_pt_PKG_CONFIG=$PKG_CONFIG
15645
# Extract the first word of "pkg-config", so it can be a program name with args.
15646
set dummy pkg-config; ac_word=$2
15647
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15648
$as_echo_n "checking for $ac_word... " >&6; }
15649
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15650
$as_echo_n "(cached) " >&6
15652
case $ac_pt_PKG_CONFIG in
15654
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15658
for as_dir in $PATH
15661
test -z "$as_dir" && as_dir=.
15662
for ac_exec_ext in '' $ac_executable_extensions; do
15663
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15664
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15665
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15675
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15676
if test -n "$ac_pt_PKG_CONFIG"; then
15677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15678
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15681
$as_echo "no" >&6; }
15684
if test "x$ac_pt_PKG_CONFIG" = x; then
15687
case $cross_compiling:$ac_tool_warned in
15689
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15690
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15691
ac_tool_warned=yes ;;
15693
PKG_CONFIG=$ac_pt_PKG_CONFIG
15696
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15700
if test -n "$PKG_CONFIG"; then
15701
_pkg_min_version=0.9.0
15702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15703
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15704
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15706
$as_echo "yes" >&6; }
15708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15709
$as_echo "no" >&6; }
15715
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
15716
$as_echo_n "checking for CURL... " >&6; }
15718
if test -n "$CURL_CFLAGS"; then
15719
pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
15720
elif test -n "$PKG_CONFIG"; then
15721
if test -n "$PKG_CONFIG" && \
15722
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
15725
($PKG_CONFIG --exists --print-errors "
15729
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15730
test $ac_status = 0; }; then
15731
pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "
15734
test "x$?" != "x0" && pkg_failed=yes
15741
if test -n "$CURL_LIBS"; then
15742
pkg_cv_CURL_LIBS="$CURL_LIBS"
15743
elif test -n "$PKG_CONFIG"; then
15744
if test -n "$PKG_CONFIG" && \
15745
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
15748
($PKG_CONFIG --exists --print-errors "
15752
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15753
test $ac_status = 0; }; then
15754
pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "
15757
test "x$?" != "x0" && pkg_failed=yes
15767
if test $pkg_failed = yes; then
15768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15769
$as_echo "no" >&6; }
15771
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15772
_pkg_short_errors_supported=yes
15774
_pkg_short_errors_supported=no
15776
if test $_pkg_short_errors_supported = yes; then
15777
CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
15781
CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
15785
# Put the nasty error message in config.log where it belongs
15786
echo "$CURL_PKG_ERRORS" >&5
15788
as_fn_error $? "Package requirements (
15794
Consider adjusting the PKG_CONFIG_PATH environment variable if you
15795
installed software in a non-standard prefix.
15797
Alternatively, you may set the environment variables CURL_CFLAGS
15798
and CURL_LIBS to avoid the need to call pkg-config.
15799
See the pkg-config man page for more details." "$LINENO" 5
15800
elif test $pkg_failed = untried; then
15801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15802
$as_echo "no" >&6; }
15803
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15804
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15805
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15806
is in your PATH or set the PKG_CONFIG environment variable to the full
15807
path to pkg-config.
15809
Alternatively, you may set the environment variables CURL_CFLAGS
15810
and CURL_LIBS to avoid the need to call pkg-config.
15811
See the pkg-config man page for more details.
15813
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15814
See \`config.log' for more details" "$LINENO" 5; }
15816
CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
15817
CURL_LIBS=$pkg_cv_CURL_LIBS
15818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15819
$as_echo "yes" >&6; }
15828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2" >&5
15829
$as_echo_n "checking for XML2... " >&6; }
15831
if test -n "$XML2_CFLAGS"; then
15832
pkg_cv_XML2_CFLAGS="$XML2_CFLAGS"
15833
elif test -n "$PKG_CONFIG"; then
15834
if test -n "$PKG_CONFIG" && \
15835
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
15838
($PKG_CONFIG --exists --print-errors "
15842
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15843
test $ac_status = 0; }; then
15844
pkg_cv_XML2_CFLAGS=`$PKG_CONFIG --cflags "
15847
test "x$?" != "x0" && pkg_failed=yes
15854
if test -n "$XML2_LIBS"; then
15855
pkg_cv_XML2_LIBS="$XML2_LIBS"
15856
elif test -n "$PKG_CONFIG"; then
15857
if test -n "$PKG_CONFIG" && \
15858
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
15861
($PKG_CONFIG --exists --print-errors "
15865
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15866
test $ac_status = 0; }; then
15867
pkg_cv_XML2_LIBS=`$PKG_CONFIG --libs "
15870
test "x$?" != "x0" && pkg_failed=yes
15880
if test $pkg_failed = yes; then
15881
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15882
$as_echo "no" >&6; }
15884
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15885
_pkg_short_errors_supported=yes
15887
_pkg_short_errors_supported=no
15889
if test $_pkg_short_errors_supported = yes; then
15890
XML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
15894
XML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
15898
# Put the nasty error message in config.log where it belongs
15899
echo "$XML2_PKG_ERRORS" >&5
15901
as_fn_error $? "Package requirements (
15907
Consider adjusting the PKG_CONFIG_PATH environment variable if you
15908
installed software in a non-standard prefix.
15910
Alternatively, you may set the environment variables XML2_CFLAGS
15911
and XML2_LIBS to avoid the need to call pkg-config.
15912
See the pkg-config man page for more details." "$LINENO" 5
15913
elif test $pkg_failed = untried; then
15914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15915
$as_echo "no" >&6; }
15916
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15917
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15918
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15919
is in your PATH or set the PKG_CONFIG environment variable to the full
15920
path to pkg-config.
15922
Alternatively, you may set the environment variables XML2_CFLAGS
15923
and XML2_LIBS to avoid the need to call pkg-config.
15924
See the pkg-config man page for more details.
15926
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15927
See \`config.log' for more details" "$LINENO" 5; }
15929
XML2_CFLAGS=$pkg_cv_XML2_CFLAGS
15930
XML2_LIBS=$pkg_cv_XML2_LIBS
15931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15932
$as_echo "yes" >&6; }
15938
# Check for cppunit
15939
if test "x$enable_tests" != "xno"; then :
15943
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPPUNIT" >&5
15944
$as_echo_n "checking for CPPUNIT... " >&6; }
15946
if test -n "$CPPUNIT_CFLAGS"; then
15947
pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
15948
elif test -n "$PKG_CONFIG"; then
15949
if test -n "$PKG_CONFIG" && \
15950
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.12 \""; } >&5
15951
($PKG_CONFIG --exists --print-errors "cppunit >= 1.12 ") 2>&5
15953
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15954
test $ac_status = 0; }; then
15955
pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit >= 1.12 " 2>/dev/null`
15956
test "x$?" != "x0" && pkg_failed=yes
15963
if test -n "$CPPUNIT_LIBS"; then
15964
pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
15965
elif test -n "$PKG_CONFIG"; then
15966
if test -n "$PKG_CONFIG" && \
15967
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.12 \""; } >&5
15968
($PKG_CONFIG --exists --print-errors "cppunit >= 1.12 ") 2>&5
15970
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15971
test $ac_status = 0; }; then
15972
pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit >= 1.12 " 2>/dev/null`
15973
test "x$?" != "x0" && pkg_failed=yes
15983
if test $pkg_failed = yes; then
15984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15985
$as_echo "no" >&6; }
15987
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15988
_pkg_short_errors_supported=yes
15990
_pkg_short_errors_supported=no
15992
if test $_pkg_short_errors_supported = yes; then
15993
CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cppunit >= 1.12 " 2>&1`
15995
CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cppunit >= 1.12 " 2>&1`
15997
# Put the nasty error message in config.log where it belongs
15998
echo "$CPPUNIT_PKG_ERRORS" >&5
16000
as_fn_error $? "Package requirements (cppunit >= 1.12 ) were not met:
16002
$CPPUNIT_PKG_ERRORS
16004
Consider adjusting the PKG_CONFIG_PATH environment variable if you
16005
installed software in a non-standard prefix.
16007
Alternatively, you may set the environment variables CPPUNIT_CFLAGS
16008
and CPPUNIT_LIBS to avoid the need to call pkg-config.
16009
See the pkg-config man page for more details." "$LINENO" 5
16010
elif test $pkg_failed = untried; then
16011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16012
$as_echo "no" >&6; }
16013
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16014
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16015
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16016
is in your PATH or set the PKG_CONFIG environment variable to the full
16017
path to pkg-config.
16019
Alternatively, you may set the environment variables CPPUNIT_CFLAGS
16020
and CPPUNIT_LIBS to avoid the need to call pkg-config.
16021
See the pkg-config man page for more details.
16023
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16024
See \`config.log' for more details" "$LINENO" 5; }
16026
CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
16027
CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
16028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16029
$as_echo "yes" >&6; }
16041
echo "$as_me: this is boost.m4 serial 12" >&5
16042
boost_save_IFS=$IFS
16045
set x $boost_version_req 0 0 0
16046
IFS=$boost_save_IFS
16048
boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
16050
# Check whether --with-boost was given.
16051
if test "${with_boost+set}" = set; then :
16052
withval=$with_boost;
16054
# If BOOST_ROOT is set and the user has not provided a value to
16055
# --with-boost, then treat BOOST_ROOT as if it the user supplied it.
16056
if test x"$BOOST_ROOT" != x; then
16057
if test x"$with_boost" = x; then
16058
{ $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
16059
$as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
16060
with_boost=$BOOST_ROOT
16062
{ $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
16063
$as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
16066
DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
16068
boost_save_CPPFLAGS=$CPPFLAGS
16069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req" >&5
16070
$as_echo_n "checking for Boost headers version >= $boost_version_req... " >&6; }
16071
if ${boost_cv_inc_path+:} false; then :
16072
$as_echo_n "(cached) " >&6
16074
boost_cv_inc_path=no
16076
ac_cpp='$CXXCPP $CPPFLAGS'
16077
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16078
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16079
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16080
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081
/* end confdefs.h. */
16082
#include <boost/version.hpp>
16083
#if !defined BOOST_VERSION
16084
# error BOOST_VERSION is not defined
16085
#elif BOOST_VERSION < $boost_version_req
16086
# error Boost headers version < $boost_version_req
16097
# If the user provided a value to --with-boost, use it and only it.
16098
case $with_boost in #(
16099
''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
16100
/usr/include C:/Boost/include;; #(
16101
*) set x "$with_boost/include" "$with_boost";;
16106
# Without --layout=system, Boost (or at least some versions) installs
16107
# itself in <prefix>/include/boost-<version>. This inner loop helps to
16108
# find headers in such directories.
16110
# Any ${boost_dir}/boost-x_xx directories are searched in reverse version
16111
# order followed by ${boost_dir}. The final '.' is a sentinel for
16112
# searching $boost_dir" itself. Entries are whitespace separated.
16114
# I didn't indent this loop on purpose (to avoid over-indented code)
16115
boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
16116
&& ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
16118
for boost_inc in $boost_layout_system_search_list
16120
if test x"$boost_inc" != x.; then
16121
boost_inc="$boost_dir/$boost_inc"
16123
boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
16125
if test x"$boost_inc" != x; then
16126
# We are going to check whether the version of Boost installed
16127
# in $boost_inc is usable by running a compilation that
16128
# #includes it. But if we pass a -I/some/path in which Boost
16129
# is not installed, the compiler will just skip this -I and
16130
# use other locations (either from CPPFLAGS, or from its list
16131
# of system include directories). As a result we would use
16132
# header installed on the machine instead of the /some/path
16133
# specified by the user. So in that precise case (trying
16134
# $boost_inc), make sure the version.hpp exists.
16136
# Use test -e as there can be symlinks.
16137
test -e "$boost_inc/boost/version.hpp" || continue
16138
CPPFLAGS="$CPPFLAGS -I$boost_inc"
16140
if ac_fn_cxx_try_compile "$LINENO"; then :
16141
boost_cv_inc_path=yes
16143
boost_cv_version=no
16145
rm -f core conftest.err conftest.$ac_objext
16146
if test x"$boost_cv_inc_path" = xyes; then
16147
if test x"$boost_inc" != x; then
16148
boost_cv_inc_path=$boost_inc
16155
ac_cpp='$CXXCPP $CPPFLAGS'
16156
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16157
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16158
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
16162
$as_echo "$boost_cv_inc_path" >&6; }
16163
case $boost_cv_inc_path in #(
16165
boost_errmsg="cannot find Boost headers version >= $boost_version_req"
16166
as_fn_error $? "$boost_errmsg" "$LINENO" 5
16173
BOOST_CPPFLAGS="-I$boost_cv_inc_path"
16177
if test x"$boost_cv_inc_path" != xno; then
16179
$as_echo "#define HAVE_BOOST 1" >>confdefs.h
16181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
16182
$as_echo_n "checking for Boost's header version... " >&6; }
16183
if ${boost_cv_lib_version+:} false; then :
16184
$as_echo_n "(cached) " >&6
16186
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187
/* end confdefs.h. */
16188
#include <boost/version.hpp>
16189
boost-lib-version = BOOST_LIB_VERSION
16191
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16193
$SED -n -e "/^boost-lib-version = /{s///;s/\"//g;p;g;}" >conftest.i 2>&1; then :
16194
boost_cv_lib_version=`cat conftest.i`
16199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
16200
$as_echo "$boost_cv_lib_version" >&6; }
16201
# e.g. "134" for 1_34_1 or "135" for 1_35
16202
boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
16203
case $boost_major_version in #(
16205
as_fn_error $? "invalid value: boost_major_version=$boost_major_version" "$LINENO" 5
16209
CPPFLAGS=$boost_save_CPPFLAGS
16211
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
16212
$as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
16213
if ${boost_cv_lib_tag+:} false; then :
16214
$as_echo_n "(cached) " >&6
16216
boost_cv_lib_tag=unknown
16217
if test x$boost_cv_inc_path != xno; then
16219
ac_cpp='$CXXCPP $CPPFLAGS'
16220
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16221
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16222
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16223
# The following tests are mostly inspired by boost/config/auto_link.hpp
16224
# The list is sorted to most recent/common to oldest compiler (in order
16225
# to increase the likelihood of finding the right compiler with the
16226
# least number of compilation attempt).
16227
# Beware that some tests are sensible to the order (for instance, we must
16228
# look for MinGW before looking for GCC3).
16229
# I used one compilation test per compiler with a #error to recognize
16230
# each compiler so that it works even when cross-compiling (let me know
16231
# if you know a better approach).
16232
# Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
16233
# como, edg, kcc, bck, mp, sw, tru, xlc
16234
# I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
16235
# the same defines as GCC's).
16236
# TODO: Move the test on GCC 4.4 up once it's released.
16238
"defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
16239
"defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
16240
"defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
16241
"defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
16242
"defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
16243
&& (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16244
|| defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
16245
"defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
16246
"defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
16247
"defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
16248
"defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
16249
"defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
16250
"defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
16251
"defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
16252
"defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
16253
"defined __BORLANDC__ @ bcb" \
16254
"defined __ICC && (defined __unix || defined ) @ il" \
16255
"defined __ICL @ iw" \
16256
"defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
16257
"defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
16258
"defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
16259
"defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
16260
"defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
16261
"defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
16262
"defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
16264
boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
16265
boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
16266
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267
/* end confdefs.h. */
16269
#if $boost_tag_test
16272
# error $boost_tag_test
16283
if ac_fn_cxx_try_compile "$LINENO"; then :
16284
boost_cv_lib_tag=$boost_tag; break
16286
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16289
ac_cpp='$CXXCPP $CPPFLAGS'
16290
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16291
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16292
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16293
case $boost_cv_lib_tag in #(
16294
# Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
16295
# to "gcc41" for instance.
16296
*-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
16299
case $host_os in #(
16301
if test $boost_major_version -ge 136; then
16302
# The `x' added in r46793 of Boost.
16306
# We can specify multiple tags in this variable because it's used by
16307
# BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
16308
boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
16311
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
16312
$as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
16318
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
16319
$as_echo "$boost_cv_lib_tag" >&6; }
16320
# Check whether --enable-static-boost was given.
16321
if test "${enable_static_boost+set}" = set; then :
16322
enableval=$enable_static_boost; enable_static_boost=yes
16324
enable_static_boost=no
16327
# Check whether we do better use `mt' even though we weren't ask to.
16328
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329
/* end confdefs.h. */
16331
#if defined _REENTRANT || defined _MT || defined __MT__
16334
# error MT not needed
16345
if ac_fn_cxx_try_compile "$LINENO"; then :
16346
boost_guess_use_mt=:
16348
boost_guess_use_mt=false
16350
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16352
if test x"$boost_cv_inc_path" = xno; then
16353
{ $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost date_time library" >&5
16354
$as_echo "$as_me: Boost not available, not searching for the Boost date_time library" >&6;}
16357
ac_cpp='$CXXCPP $CPPFLAGS'
16358
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16359
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16360
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16361
if test x"$boost_cv_inc_path" = xno; then
16362
{ $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/date_time/posix_time/posix_time.hpp" >&5
16363
$as_echo "$as_me: Boost not available, not searching for boost/date_time/posix_time/posix_time.hpp" >&6;}
16366
ac_cpp='$CXXCPP $CPPFLAGS'
16367
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16368
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16369
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16370
boost_save_CPPFLAGS=$CPPFLAGS
16371
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16372
ac_fn_cxx_check_header_mongrel "$LINENO" "boost/date_time/posix_time/posix_time.hpp" "ac_cv_header_boost_date_time_posix_time_posix_time_hpp" "$ac_includes_default"
16373
if test "x$ac_cv_header_boost_date_time_posix_time_posix_time_hpp" = xyes; then :
16375
$as_echo "#define HAVE_BOOST_DATE_TIME_POSIX_TIME_POSIX_TIME_HPP 1" >>confdefs.h
16378
as_fn_error $? "cannot find boost/date_time/posix_time/posix_time.hpp" "$LINENO" 5
16382
CPPFLAGS=$boost_save_CPPFLAGS
16384
ac_cpp='$CXXCPP $CPPFLAGS'
16385
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16386
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16387
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16390
boost_save_CPPFLAGS=$CPPFLAGS
16391
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16392
# Now let's try to find the library. The algorithm is as follows: first look
16393
# for a given library name according to the user's PREFERRED-RT-OPT. For each
16394
# library name, we prefer to use the ones that carry the tag (toolset name).
16395
# Each library is searched through the various standard paths were Boost is
16396
# usually installed. If we can't find the standard variants, we try to
16397
# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist
16398
# but there's -obviously- libboost_threads-mt.dylib).
16399
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost date_time library" >&5
16400
$as_echo_n "checking for the Boost date_time library... " >&6; }
16401
if ${boost_cv_lib_date_time+:} false; then :
16402
$as_echo_n "(cached) " >&6
16404
boost_cv_lib_date_time=no
16406
mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
16407
mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
16408
*) boost_mt=; boost_rtopt=;;
16410
if test $enable_static_boost = yes; then
16411
boost_rtopt="s$boost_rtopt"
16413
# Find the proper debug variant depending on what we've been asked to find.
16414
case $boost_rtopt in #(
16415
*d*) boost_rt_d=$boost_rtopt;; #(
16416
*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
16417
boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
16418
*) boost_rt_d='-d';;
16420
# If the PREFERRED-RT-OPT are not empty, prepend a `-'.
16421
test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
16422
$boost_guess_use_mt && boost_mt=-mt
16423
# Look for the abs path the static archive.
16424
# $libext is computed by Libtool but let's make sure it's non empty.
16425
test -z "$libext" &&
16426
as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
16427
boost_save_ac_objext=$ac_objext
16428
# Generate the test file.
16429
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16430
/* end confdefs.h. */
16431
#include <boost/date_time/posix_time/posix_time.hpp>
16436
boost::posix_time::ptime t;
16441
if ac_fn_cxx_try_compile "$LINENO"; then :
16442
ac_objext=do_not_rm_me_plz
16444
as_fn_error $? "cannot compile a test that uses Boost date_time" "$LINENO" 5
16446
rm -f core conftest.err conftest.$ac_objext
16447
ac_objext=$boost_save_ac_objext
16449
# Don't bother to ident the 6 nested for loops, only the 2 innermost ones
16451
for boost_tag_ in -$boost_cv_lib_tag ''; do
16452
for boost_ver_ in -$boost_cv_lib_version ''; do
16453
for boost_mt_ in $boost_mt -mt ''; do
16454
for boost_rtopt_ in $boost_rtopt '' -d; do
16456
boost_date_time$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
16457
boost_date_time$boost_tag_$boost_rtopt_$boost_ver_ \
16458
boost_date_time$boost_tag_$boost_mt_$boost_ver_ \
16459
boost_date_time$boost_tag_$boost_ver_
16461
# Avoid testing twice the same lib
16462
case $boost_failed_libs in #(
16463
*@$boost_lib@*) continue;;
16465
# If with_boost is empty, we'll search in /lib first, which is not quite
16466
# right so instead we'll try to a location based on where the headers are.
16467
boost_tmp_lib=$with_boost
16468
test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
16469
for boost_ldpath in "$boost_tmp_lib/lib" '' \
16470
/opt/local/lib /usr/local/lib /opt/lib /usr/lib \
16471
"$with_boost" C:/Boost/lib /lib /usr/lib64 /lib64
16473
test -e "$boost_ldpath" || continue
16474
boost_save_LDFLAGS=$LDFLAGS
16475
# Are we looking for a static library?
16476
case $boost_ldpath:$boost_rtopt_ in #(
16477
*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
16478
boost_cv_lib_date_time_LIBS="$boost_ldpath/lib$boost_lib.$libext"
16479
test -e "$boost_cv_lib_date_time_LIBS" || continue;; #(
16480
*) # No: use -lboost_foo to find the shared library.
16481
boost_cv_lib_date_time_LIBS="-l$boost_lib";;
16483
boost_save_LIBS=$LIBS
16484
LIBS="$boost_cv_lib_date_time_LIBS $LIBS"
16485
test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
16486
rm -f conftest$ac_exeext
16487
boost_save_ac_ext=$ac_ext
16489
# If we already have a .o, re-use it. We change $ac_ext so that $ac_link
16490
# tries to link the existing object file instead of compiling from source.
16491
test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
16492
$as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
16493
if { { ac_try="$ac_link"
16494
case "(($ac_try" in
16495
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496
*) ac_try_echo=$ac_try;;
16498
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16499
$as_echo "$ac_try_echo"; } >&5
16500
(eval "$ac_link") 2>conftest.err
16502
if test -s conftest.err; then
16503
grep -v '^ *+' conftest.err >conftest.er1
16504
cat conftest.er1 >&5
16505
mv -f conftest.er1 conftest.err
16507
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16508
test $ac_status = 0; } && {
16509
test -z "$ac_cxx_werror_flag" ||
16510
test ! -s conftest.err
16511
} && test -s conftest$ac_exeext && {
16512
test "$cross_compiling" = yes ||
16513
$as_executable_p conftest$ac_exeext
16515
boost_cv_lib_date_time=yes
16517
if $boost_use_source; then
16518
$as_echo "$as_me: failed program was:" >&5
16519
sed 's/^/| /' conftest.$ac_ext >&5
16522
boost_cv_lib_date_time=no
16524
ac_objext=$boost_save_ac_objext
16525
ac_ext=$boost_save_ac_ext
16526
rm -f core conftest.err conftest_ipa8_conftest.oo \
16528
ac_objext=$boost_save_ac_objext
16529
LDFLAGS=$boost_save_LDFLAGS
16530
LIBS=$boost_save_LIBS
16531
if test x"$boost_cv_lib_date_time" = xyes; then
16532
boost_cv_lib_date_time_LDFLAGS="-L$boost_ldpath -R$boost_ldpath"
16535
boost_failed_libs="$boost_failed_libs@$boost_lib@"
16543
rm -f conftest.$ac_objext
16546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_date_time" >&5
16547
$as_echo "$boost_cv_lib_date_time" >&6; }
16548
case $boost_cv_lib_date_time in #(
16549
no) $as_echo "$as_me: failed program was:" >&5
16550
sed 's/^/| /' conftest.$ac_ext >&5
16552
as_fn_error $? "cannot not find the flags to link with Boost date_time" "$LINENO" 5
16555
BOOST_DATE_TIME_LDFLAGS=$boost_cv_lib_date_time_LDFLAGS
16557
BOOST_DATE_TIME_LIBS=$boost_cv_lib_date_time_LIBS
16559
CPPFLAGS=$boost_save_CPPFLAGS
16561
ac_cpp='$CXXCPP $CPPFLAGS'
16562
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16563
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16564
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16568
if test x"$boost_cv_inc_path" = xno; then
16569
{ $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/scoped_ptr.hpp" >&5
16570
$as_echo "$as_me: Boost not available, not searching for boost/scoped_ptr.hpp" >&6;}
16573
ac_cpp='$CXXCPP $CPPFLAGS'
16574
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16575
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16576
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16577
boost_save_CPPFLAGS=$CPPFLAGS
16578
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16579
ac_fn_cxx_check_header_mongrel "$LINENO" "boost/scoped_ptr.hpp" "ac_cv_header_boost_scoped_ptr_hpp" "$ac_includes_default"
16580
if test "x$ac_cv_header_boost_scoped_ptr_hpp" = xyes; then :
16582
$as_echo "#define HAVE_BOOST_SCOPED_PTR_HPP 1" >>confdefs.h
16585
as_fn_error $? "cannot find boost/scoped_ptr.hpp" "$LINENO" 5
16589
CPPFLAGS=$boost_save_CPPFLAGS
16591
ac_cpp='$CXXCPP $CPPFLAGS'
16592
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16593
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16594
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16597
if test x"$boost_cv_inc_path" = xno; then
16598
{ $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/shared_ptr.hpp" >&5
16599
$as_echo "$as_me: Boost not available, not searching for boost/shared_ptr.hpp" >&6;}
16602
ac_cpp='$CXXCPP $CPPFLAGS'
16603
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16604
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16605
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16606
boost_save_CPPFLAGS=$CPPFLAGS
16607
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16608
ac_fn_cxx_check_header_mongrel "$LINENO" "boost/shared_ptr.hpp" "ac_cv_header_boost_shared_ptr_hpp" "$ac_includes_default"
16609
if test "x$ac_cv_header_boost_shared_ptr_hpp" = xyes; then :
16611
$as_echo "#define HAVE_BOOST_SHARED_PTR_HPP 1" >>confdefs.h
16614
as_fn_error $? "cannot find boost/shared_ptr.hpp" "$LINENO" 5
16618
CPPFLAGS=$boost_save_CPPFLAGS
16620
ac_cpp='$CXXCPP $CPPFLAGS'
16621
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16622
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16623
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16627
if test x"$boost_cv_inc_path" = xno; then
16628
{ $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/uuid/uuid.hpp" >&5
16629
$as_echo "$as_me: Boost not available, not searching for boost/uuid/uuid.hpp" >&6;}
16632
ac_cpp='$CXXCPP $CPPFLAGS'
16633
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16634
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16635
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16636
boost_save_CPPFLAGS=$CPPFLAGS
16637
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16638
ac_fn_cxx_check_header_mongrel "$LINENO" "boost/uuid/uuid.hpp" "ac_cv_header_boost_uuid_uuid_hpp" "$ac_includes_default"
16639
if test "x$ac_cv_header_boost_uuid_uuid_hpp" = xyes; then :
16641
$as_echo "#define HAVE_BOOST_UUID_UUID_HPP 1" >>confdefs.h
16644
as_fn_error $? "cannot find boost/uuid/uuid.hpp" "$LINENO" 5
16648
CPPFLAGS=$boost_save_CPPFLAGS
16650
ac_cpp='$CXXCPP $CPPFLAGS'
16651
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16652
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16653
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16656
if test x"$boost_cv_inc_path" = xno; then
16657
{ $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/uuid/uuid_generators.hpp" >&5
16658
$as_echo "$as_me: Boost not available, not searching for boost/uuid/uuid_generators.hpp" >&6;}
16661
ac_cpp='$CXXCPP $CPPFLAGS'
16662
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16663
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16664
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16665
boost_save_CPPFLAGS=$CPPFLAGS
16666
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16667
ac_fn_cxx_check_header_mongrel "$LINENO" "boost/uuid/uuid_generators.hpp" "ac_cv_header_boost_uuid_uuid_generators_hpp" "$ac_includes_default"
16668
if test "x$ac_cv_header_boost_uuid_uuid_generators_hpp" = xyes; then :
16670
$as_echo "#define HAVE_BOOST_UUID_UUID_GENERATORS_HPP 1" >>confdefs.h
16673
as_fn_error $? "cannot find boost/uuid/uuid_generators.hpp" "$LINENO" 5
16677
CPPFLAGS=$boost_save_CPPFLAGS
16679
ac_cpp='$CXXCPP $CPPFLAGS'
16680
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16681
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16682
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16685
if test x"$boost_cv_inc_path" = xno; then
16686
{ $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/uuid/uuid_io.hpp" >&5
16687
$as_echo "$as_me: Boost not available, not searching for boost/uuid/uuid_io.hpp" >&6;}
16690
ac_cpp='$CXXCPP $CPPFLAGS'
16691
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16692
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16693
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16694
boost_save_CPPFLAGS=$CPPFLAGS
16695
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16696
ac_fn_cxx_check_header_mongrel "$LINENO" "boost/uuid/uuid_io.hpp" "ac_cv_header_boost_uuid_uuid_io_hpp" "$ac_includes_default"
16697
if test "x$ac_cv_header_boost_uuid_uuid_io_hpp" = xyes; then :
16699
$as_echo "#define HAVE_BOOST_UUID_UUID_IO_HPP 1" >>confdefs.h
16702
as_fn_error $? "cannot find boost/uuid/uuid_io.hpp" "$LINENO" 5
16706
CPPFLAGS=$boost_save_CPPFLAGS
16708
ac_cpp='$CXXCPP $CPPFLAGS'
16709
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16710
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16711
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16714
if test x"$boost_cv_inc_path" = xno; then
16715
{ $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/uuid/uuid_serialize.hpp" >&5
16716
$as_echo "$as_me: Boost not available, not searching for boost/uuid/uuid_serialize.hpp" >&6;}
16719
ac_cpp='$CXXCPP $CPPFLAGS'
16720
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16721
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16722
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16723
boost_save_CPPFLAGS=$CPPFLAGS
16724
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16725
ac_fn_cxx_check_header_mongrel "$LINENO" "boost/uuid/uuid_serialize.hpp" "ac_cv_header_boost_uuid_uuid_serialize_hpp" "$ac_includes_default"
16726
if test "x$ac_cv_header_boost_uuid_uuid_serialize_hpp" = xyes; then :
16728
$as_echo "#define HAVE_BOOST_UUID_UUID_SERIALIZE_HPP 1" >>confdefs.h
16731
as_fn_error $? "cannot find boost/uuid/uuid_serialize.hpp" "$LINENO" 5
16735
CPPFLAGS=$boost_save_CPPFLAGS
16737
ac_cpp='$CXXCPP $CPPFLAGS'
16738
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16739
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16740
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16745
if test "x$enable_client" != "xno"; then :
16747
if test x"$boost_cv_inc_path" = xno; then
16748
{ $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost program_options library" >&5
16749
$as_echo "$as_me: Boost not available, not searching for the Boost program_options library" >&6;}
16752
ac_cpp='$CXXCPP $CPPFLAGS'
16753
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16754
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16755
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16756
if test x"$boost_cv_inc_path" = xno; then
16757
{ $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/program_options.hpp" >&5
16758
$as_echo "$as_me: Boost not available, not searching for boost/program_options.hpp" >&6;}
16761
ac_cpp='$CXXCPP $CPPFLAGS'
16762
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16763
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16764
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16765
boost_save_CPPFLAGS=$CPPFLAGS
16766
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16767
ac_fn_cxx_check_header_mongrel "$LINENO" "boost/program_options.hpp" "ac_cv_header_boost_program_options_hpp" "$ac_includes_default"
16768
if test "x$ac_cv_header_boost_program_options_hpp" = xyes; then :
16770
$as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS_HPP 1" >>confdefs.h
16773
as_fn_error $? "cannot find boost/program_options.hpp" "$LINENO" 5
16777
CPPFLAGS=$boost_save_CPPFLAGS
16779
ac_cpp='$CXXCPP $CPPFLAGS'
16780
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16781
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16782
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16785
boost_save_CPPFLAGS=$CPPFLAGS
16786
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16787
# Now let's try to find the library. The algorithm is as follows: first look
16788
# for a given library name according to the user's PREFERRED-RT-OPT. For each
16789
# library name, we prefer to use the ones that carry the tag (toolset name).
16790
# Each library is searched through the various standard paths were Boost is
16791
# usually installed. If we can't find the standard variants, we try to
16792
# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist
16793
# but there's -obviously- libboost_threads-mt.dylib).
16794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost program_options library" >&5
16795
$as_echo_n "checking for the Boost program_options library... " >&6; }
16796
if ${boost_cv_lib_program_options+:} false; then :
16797
$as_echo_n "(cached) " >&6
16799
boost_cv_lib_program_options=no
16801
mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
16802
mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
16803
*) boost_mt=; boost_rtopt=;;
16805
if test $enable_static_boost = yes; then
16806
boost_rtopt="s$boost_rtopt"
16808
# Find the proper debug variant depending on what we've been asked to find.
16809
case $boost_rtopt in #(
16810
*d*) boost_rt_d=$boost_rtopt;; #(
16811
*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
16812
boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
16813
*) boost_rt_d='-d';;
16815
# If the PREFERRED-RT-OPT are not empty, prepend a `-'.
16816
test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
16817
$boost_guess_use_mt && boost_mt=-mt
16818
# Look for the abs path the static archive.
16819
# $libext is computed by Libtool but let's make sure it's non empty.
16820
test -z "$libext" &&
16821
as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
16822
boost_save_ac_objext=$ac_objext
16823
# Generate the test file.
16824
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16825
/* end confdefs.h. */
16826
#include <boost/program_options.hpp>
16831
boost::program_options::options_description d("test");
16836
if ac_fn_cxx_try_compile "$LINENO"; then :
16837
ac_objext=do_not_rm_me_plz
16839
as_fn_error $? "cannot compile a test that uses Boost program_options" "$LINENO" 5
16841
rm -f core conftest.err conftest.$ac_objext
16842
ac_objext=$boost_save_ac_objext
16844
# Don't bother to ident the 6 nested for loops, only the 2 innermost ones
16846
for boost_tag_ in -$boost_cv_lib_tag ''; do
16847
for boost_ver_ in -$boost_cv_lib_version ''; do
16848
for boost_mt_ in $boost_mt -mt ''; do
16849
for boost_rtopt_ in $boost_rtopt '' -d; do
16851
boost_program_options$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
16852
boost_program_options$boost_tag_$boost_rtopt_$boost_ver_ \
16853
boost_program_options$boost_tag_$boost_mt_$boost_ver_ \
16854
boost_program_options$boost_tag_$boost_ver_
16856
# Avoid testing twice the same lib
16857
case $boost_failed_libs in #(
16858
*@$boost_lib@*) continue;;
16860
# If with_boost is empty, we'll search in /lib first, which is not quite
16861
# right so instead we'll try to a location based on where the headers are.
16862
boost_tmp_lib=$with_boost
16863
test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
16864
for boost_ldpath in "$boost_tmp_lib/lib" '' \
16865
/opt/local/lib /usr/local/lib /opt/lib /usr/lib \
16866
"$with_boost" C:/Boost/lib /lib /usr/lib64 /lib64
16868
test -e "$boost_ldpath" || continue
16869
boost_save_LDFLAGS=$LDFLAGS
16870
# Are we looking for a static library?
16871
case $boost_ldpath:$boost_rtopt_ in #(
16872
*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
16873
boost_cv_lib_program_options_LIBS="$boost_ldpath/lib$boost_lib.$libext"
16874
test -e "$boost_cv_lib_program_options_LIBS" || continue;; #(
16875
*) # No: use -lboost_foo to find the shared library.
16876
boost_cv_lib_program_options_LIBS="-l$boost_lib";;
16878
boost_save_LIBS=$LIBS
16879
LIBS="$boost_cv_lib_program_options_LIBS $LIBS"
16880
test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
16881
rm -f conftest$ac_exeext
16882
boost_save_ac_ext=$ac_ext
16884
# If we already have a .o, re-use it. We change $ac_ext so that $ac_link
16885
# tries to link the existing object file instead of compiling from source.
16886
test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
16887
$as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
16888
if { { ac_try="$ac_link"
16889
case "(($ac_try" in
16890
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891
*) ac_try_echo=$ac_try;;
16893
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16894
$as_echo "$ac_try_echo"; } >&5
16895
(eval "$ac_link") 2>conftest.err
16897
if test -s conftest.err; then
16898
grep -v '^ *+' conftest.err >conftest.er1
16899
cat conftest.er1 >&5
16900
mv -f conftest.er1 conftest.err
16902
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16903
test $ac_status = 0; } && {
16904
test -z "$ac_cxx_werror_flag" ||
16905
test ! -s conftest.err
16906
} && test -s conftest$ac_exeext && {
16907
test "$cross_compiling" = yes ||
16908
$as_executable_p conftest$ac_exeext
16910
boost_cv_lib_program_options=yes
16912
if $boost_use_source; then
16913
$as_echo "$as_me: failed program was:" >&5
16914
sed 's/^/| /' conftest.$ac_ext >&5
16917
boost_cv_lib_program_options=no
16919
ac_objext=$boost_save_ac_objext
16920
ac_ext=$boost_save_ac_ext
16921
rm -f core conftest.err conftest_ipa8_conftest.oo \
16923
ac_objext=$boost_save_ac_objext
16924
LDFLAGS=$boost_save_LDFLAGS
16925
LIBS=$boost_save_LIBS
16926
if test x"$boost_cv_lib_program_options" = xyes; then
16927
boost_cv_lib_program_options_LDFLAGS="-L$boost_ldpath -R$boost_ldpath"
16930
boost_failed_libs="$boost_failed_libs@$boost_lib@"
16938
rm -f conftest.$ac_objext
16941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_program_options" >&5
16942
$as_echo "$boost_cv_lib_program_options" >&6; }
16943
case $boost_cv_lib_program_options in #(
16944
no) $as_echo "$as_me: failed program was:" >&5
16945
sed 's/^/| /' conftest.$ac_ext >&5
16947
as_fn_error $? "cannot not find the flags to link with Boost program_options" "$LINENO" 5
16950
BOOST_PROGRAM_OPTIONS_LDFLAGS=$boost_cv_lib_program_options_LDFLAGS
16952
BOOST_PROGRAM_OPTIONS_LIBS=$boost_cv_lib_program_options_LIBS
16954
CPPFLAGS=$boost_save_CPPFLAGS
16956
ac_cpp='$CXXCPP $CPPFLAGS'
16957
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16958
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16959
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16967
# Checks for header files.
16968
for ac_header in stdlib.h unistd.h
16970
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16971
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16972
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16973
cat >>confdefs.h <<_ACEOF
16974
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16982
# Checks for typedefs, structures, and compiler characteristics.
16983
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16984
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16985
if ${ac_cv_header_stdbool_h+:} false; then :
16986
$as_echo_n "(cached) " >&6
16988
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989
/* end confdefs.h. */
16991
#include <stdbool.h>
16993
"error: bool is not defined"
16996
"error: false is not defined"
16999
"error: false is not 0"
17002
"error: true is not defined"
17005
"error: true is not 1"
17007
#ifndef __bool_true_false_are_defined
17008
"error: __bool_true_false_are_defined is not defined"
17011
struct s { _Bool s: 1; _Bool t; } s;
17013
char a[true == 1 ? 1 : -1];
17014
char b[false == 0 ? 1 : -1];
17015
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17016
char d[(bool) 0.5 == true ? 1 : -1];
17017
/* See body of main program for 'e'. */
17018
char f[(_Bool) 0.0 == false ? 1 : -1];
17020
char h[sizeof (_Bool)];
17021
char i[sizeof s.t];
17022
enum { j = false, k = true, l = false * true, m = true * 256 };
17023
/* The following fails for
17024
HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17026
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17027
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17028
/* Catch a bug in an HP-UX C compiler. See
17029
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17030
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17042
/* Refer to every declared value, to avoid compiler optimizations. */
17043
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17044
+ !m + !n + !o + !p + !q + !pq);
17050
if ac_fn_cxx_try_compile "$LINENO"; then :
17051
ac_cv_header_stdbool_h=yes
17053
ac_cv_header_stdbool_h=no
17055
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17057
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17058
$as_echo "$ac_cv_header_stdbool_h" >&6; }
17059
ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17060
if test "x$ac_cv_type__Bool" = xyes; then :
17062
cat >>confdefs.h <<_ACEOF
17063
#define HAVE__BOOL 1
17070
if test $ac_cv_header_stdbool_h = yes; then
17072
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
17076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17077
$as_echo_n "checking for inline... " >&6; }
17078
if ${ac_cv_c_inline+:} false; then :
17079
$as_echo_n "(cached) " >&6
17082
for ac_kw in inline __inline__ __inline; do
17083
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084
/* end confdefs.h. */
17085
#ifndef __cplusplus
17087
static $ac_kw foo_t static_foo () {return 0; }
17088
$ac_kw foo_t foo () {return 0; }
17092
if ac_fn_cxx_try_compile "$LINENO"; then :
17093
ac_cv_c_inline=$ac_kw
17095
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17096
test "$ac_cv_c_inline" != no && break
17100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17101
$as_echo "$ac_cv_c_inline" >&6; }
17103
case $ac_cv_c_inline in
17106
case $ac_cv_c_inline in
17108
*) ac_val=$ac_cv_c_inline;;
17110
cat >>confdefs.h <<_ACEOF
17111
#ifndef __cplusplus
17112
#define inline $ac_val
17118
ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17119
if test "x$ac_cv_type_mode_t" = xyes; then :
17123
cat >>confdefs.h <<_ACEOF
17129
ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17130
if test "x$ac_cv_type_size_t" = xyes; then :
17134
cat >>confdefs.h <<_ACEOF
17135
#define size_t unsigned int
17141
# Checks for library functions.
17143
ac_config_files="$ac_config_files Makefile libcmis.pc libcmis-c.pc run-test.sh cppcheck-test.sh src/Makefile src/libcmis/Makefile src/libcmis-c/Makefile qa/Makefile qa/mockup/Makefile qa/libcmis/Makefile qa/libcmis-c/Makefile"
17145
cat >confcache <<\_ACEOF
17146
# This file is a shell script that caches the results of configure
17147
# tests run on this system so they can be shared between configure
17148
# scripts and configure runs, see configure's option --config-cache.
17149
# It is not useful on other systems. If it contains results you don't
17150
# want to keep, you may remove or edit it.
17152
# config.status only pays attention to the cache file if you give it
17153
# the --recheck option to rerun configure.
17155
# `ac_cv_env_foo' variables (set or unset) will be overridden when
17156
# loading this file, other *unset* `ac_cv_foo' will be assigned the
17157
# following values.
17161
# The following way of writing the cache mishandles newlines in values,
17162
# but we know of no workaround that is simple, portable, and efficient.
17163
# So, we kill variables containing newlines.
17164
# Ultrix sh set writes to stderr and can't be redirected directly,
17165
# and sets the high bit in the cache file unless we assign to the vars.
17167
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17168
eval ac_val=\$$ac_var
17172
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17173
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17176
_ | IFS | as_nl) ;; #(
17177
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17178
*) { eval $ac_var=; unset $ac_var;} ;;
17184
case $as_nl`(ac_space=' '; set) 2>&1` in #(
17185
*${as_nl}ac_space=\ *)
17186
# `set' does not quote correctly, so add quotes: double-quote
17187
# substitution turns \\\\ into \\, and sed turns \\ into \.
17190
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17193
# `set' quotes correctly as required by POSIX, so do not add quotes.
17194
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17203
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17205
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17207
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17208
if test -w "$cache_file"; then
17209
if test "x$cache_file" != "x/dev/null"; then
17210
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17211
$as_echo "$as_me: updating cache $cache_file" >&6;}
17212
if test ! -f "$cache_file" || test -h "$cache_file"; then
17213
cat confcache >"$cache_file"
17215
case $cache_file in #(
17217
mv -f confcache "$cache_file"$$ &&
17218
mv -f "$cache_file"$$ "$cache_file" ;; #(
17220
mv -f confcache "$cache_file" ;;
17225
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17226
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17231
test "x$prefix" = xNONE && prefix=$ac_default_prefix
17232
# Let make expand exec_prefix.
17233
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17235
# Transform confdefs.h into DEFS.
17236
# Protect against shell expansion while executing Makefile rules.
17237
# Protect against Makefile macro expansion.
17239
# If the first sed substitution is executed (which looks for macros that
17240
# take arguments), then branch to the quote section. Otherwise,
17241
# look for a macro that doesn't take arguments.
17251
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17253
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17257
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17270
DEFS=`sed -n "$ac_script" confdefs.h`
17276
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17277
# 1. Remove the extension, and $U if already installed.
17278
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17279
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17280
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17281
# will be set to the directory where LIBOBJS objects are built.
17282
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17283
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17285
LIBOBJS=$ac_libobjs
17287
LTLIBOBJS=$ac_ltlibobjs
17290
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17291
$as_echo_n "checking that generated files are newer than configure... " >&6; }
17292
if test -n "$am_sleep_pid"; then
17293
# Hide warnings about reused PIDs.
17294
wait $am_sleep_pid 2>/dev/null
17296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17297
$as_echo "done" >&6; }
17298
if test -n "$EXEEXT"; then
17300
am__EXEEXT_FALSE='#'
17302
am__EXEEXT_TRUE='#'
17306
if test -z "${ENABLE_CLIENT_TRUE}" && test -z "${ENABLE_CLIENT_FALSE}"; then
17307
as_fn_error $? "conditional \"ENABLE_CLIENT\" was never defined.
17308
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17310
if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
17311
as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
17312
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17314
if test -z "${ENABLE_LONG_TESTS_TRUE}" && test -z "${ENABLE_LONG_TESTS_FALSE}"; then
17315
as_fn_error $? "conditional \"ENABLE_LONG_TESTS\" was never defined.
17316
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17318
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17319
as_fn_error $? "conditional \"AMDEP\" was never defined.
17320
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17322
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17323
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17324
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17326
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17327
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17328
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17330
if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
17331
as_fn_error $? "conditional \"OS_WIN32\" was never defined.
17332
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17334
if test -z "${WITH_LIBCMIS_MAN_TRUE}" && test -z "${WITH_LIBCMIS_MAN_FALSE}"; then
17335
as_fn_error $? "conditional \"WITH_LIBCMIS_MAN\" was never defined.
17336
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17338
if test -z "${ENABLE_CPPCHECK_TRUE}" && test -z "${ENABLE_CPPCHECK_FALSE}"; then
17339
as_fn_error $? "conditional \"ENABLE_CPPCHECK\" was never defined.
17340
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17343
: "${CONFIG_STATUS=./config.status}"
17345
ac_clean_files_save=$ac_clean_files
17346
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17347
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17348
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17350
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17352
# Generated by $as_me.
17353
# Run this file to recreate the current configuration.
17354
# Compiler output produced by configure, useful for debugging
17355
# configure, is in config.log if it exists.
17358
ac_cs_recheck=false
17361
SHELL=\${CONFIG_SHELL-$SHELL}
17364
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17365
## -------------------- ##
17366
## M4sh Initialization. ##
17367
## -------------------- ##
17369
# Be more Bourne compatible
17370
DUALCASE=1; export DUALCASE # for MKS sh
17371
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17374
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17375
# is contrary to our usage. Disable this feature.
17376
alias -g '${1+"$@"}'='"$@"'
17377
setopt NO_GLOB_SUBST
17379
case `(set -o) 2>/dev/null` in #(
17391
# Printing a long string crashes Solaris 7 /usr/bin/printf.
17392
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17393
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17394
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17395
# Prefer a ksh shell builtin over an external printf program on Solaris,
17396
# but without wasting forks for bash or zsh.
17397
if test -z "$BASH_VERSION$ZSH_VERSION" \
17398
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17399
as_echo='print -r --'
17400
as_echo_n='print -rn --'
17401
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17402
as_echo='printf %s\n'
17403
as_echo_n='printf %s'
17405
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17406
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17407
as_echo_n='/usr/ucb/echo -n'
17409
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17410
as_echo_n_body='eval
17414
expr "X$arg" : "X\\(.*\\)$as_nl";
17415
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17417
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17419
export as_echo_n_body
17420
as_echo_n='sh -c $as_echo_n_body as_echo'
17422
export as_echo_body
17423
as_echo='sh -c $as_echo_body as_echo'
17426
# The user is always right.
17427
if test "${PATH_SEPARATOR+set}" != set; then
17429
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17430
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17437
# We need space, tab and new line, in precisely that order. Quoting is
17438
# there to prevent editors from complaining about space-tab.
17439
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17440
# splitting by setting IFS to empty value.)
17443
# Find who we are. Look in the path if we contain no directory separator.
17446
*[\\/]* ) as_myself=$0 ;;
17447
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17448
for as_dir in $PATH
17451
test -z "$as_dir" && as_dir=.
17452
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17458
# We did not find ourselves, most probably we were run as `sh COMMAND'
17459
# in which case we are not to be found in the path.
17460
if test "x$as_myself" = x; then
17463
if test ! -f "$as_myself"; then
17464
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17468
# Unset variables that we do not need and which cause bugs (e.g. in
17469
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17470
# suppresses any "Segmentation fault" message there. '((' could
17471
# trigger a bug in pdksh 5.2.14.
17472
for as_var in BASH_ENV ENV MAIL MAILPATH
17473
do eval test x\${$as_var+set} = xset \
17474
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17487
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17490
# as_fn_error STATUS ERROR [LINENO LOG_FD]
17491
# ----------------------------------------
17492
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17493
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17494
# script with STATUS, using 1 if that was 0.
17497
as_status=$1; test $as_status -eq 0 && as_status=1
17499
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17500
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17502
$as_echo "$as_me: error: $2" >&2
17503
as_fn_exit $as_status
17507
# as_fn_set_status STATUS
17508
# -----------------------
17509
# Set $? to STATUS, without forking.
17510
as_fn_set_status ()
17513
} # as_fn_set_status
17515
# as_fn_exit STATUS
17516
# -----------------
17517
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17521
as_fn_set_status $1
17527
# Portably unset VAR.
17530
{ eval $1=; unset $1;}
17532
as_unset=as_fn_unset
17533
# as_fn_append VAR VALUE
17534
# ----------------------
17535
# Append the text in VALUE to the end of the definition contained in VAR. Take
17536
# advantage of any shell optimizations that allow amortized linear growth over
17537
# repeated appends, instead of the typical quadratic growth present in naive
17539
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17540
eval 'as_fn_append ()
17551
# as_fn_arith ARG...
17552
# ------------------
17553
# Perform arithmetic evaluation on the ARGs, and store the result in the
17554
# global $as_val. Take advantage of shells that can avoid forks. The arguments
17555
# must be portable across $(()) and expr.
17556
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17557
eval 'as_fn_arith ()
17564
as_val=`expr "$@" || test $? -eq 1`
17569
if expr a : '\(a\)' >/dev/null 2>&1 &&
17570
test "X`expr 00001 : '.*\(...\)'`" = X001; then
17576
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17577
as_basename=basename
17582
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17588
as_me=`$as_basename -- "$0" ||
17589
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17590
X"$0" : 'X\(//\)$' \| \
17591
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17593
sed '/^.*\/\([^/][^/]*\)\/*$/{
17607
# Avoid depending upon Character Ranges.
17608
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17609
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17610
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17611
as_cr_digits='0123456789'
17612
as_cr_alnum=$as_cr_Letters$as_cr_digits
17614
ECHO_C= ECHO_N= ECHO_T=
17615
case `echo -n x` in #(((((
17617
case `echo 'xy\c'` in
17618
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
17620
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17627
rm -f conf$$ conf$$.exe conf$$.file
17628
if test -d conf$$.dir; then
17629
rm -f conf$$.dir/conf$$.file
17632
mkdir conf$$.dir 2>/dev/null
17634
if (echo >conf$$.file) 2>/dev/null; then
17635
if ln -s conf$$.file conf$$ 2>/dev/null; then
17637
# ... but there are two gotchas:
17638
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17639
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17640
# In both cases, we have to default to `cp -pR'.
17641
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17643
elif ln conf$$.file conf$$ 2>/dev/null; then
17651
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17652
rmdir conf$$.dir 2>/dev/null
17657
# Create "$as_dir" as a directory, including parents if necessary.
17662
-*) as_dir=./$as_dir;;
17664
test -d "$as_dir" || eval $as_mkdir_p || {
17668
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17669
*) as_qdir=$as_dir;;
17671
as_dirs="'$as_qdir' $as_dirs"
17672
as_dir=`$as_dirname -- "$as_dir" ||
17673
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17674
X"$as_dir" : 'X\(//\)[^/]' \| \
17675
X"$as_dir" : 'X\(//\)$' \| \
17676
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17677
$as_echo X"$as_dir" |
17678
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17682
/^X\(\/\/\)[^/].*/{
17695
test -d "$as_dir" && break
17697
test -z "$as_dirs" || eval "mkdir $as_dirs"
17698
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17702
if mkdir -p . 2>/dev/null; then
17703
as_mkdir_p='mkdir -p "$as_dir"'
17705
test -d ./-p && rmdir ./-p
17710
# as_fn_executable_p FILE
17711
# -----------------------
17712
# Test if FILE is an executable regular file.
17713
as_fn_executable_p ()
17715
test -f "$1" && test -x "$1"
17716
} # as_fn_executable_p
17717
as_test_x='test -x'
17718
as_executable_p=as_fn_executable_p
17720
# Sed expression to map a string onto a valid CPP name.
17721
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17723
# Sed expression to map a string onto a valid variable name.
17724
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17728
## ----------------------------------- ##
17729
## Main body of $CONFIG_STATUS script. ##
17730
## ----------------------------------- ##
17732
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17734
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17735
# Save the log message, to keep $0 and so on meaningful, and to
17736
# report actual input values of CONFIG_FILES etc. instead of their
17737
# values after options handling.
17739
This file was extended by libcmis $as_me 0.4.1, which was
17740
generated by GNU Autoconf 2.69. Invocation command line was
17742
CONFIG_FILES = $CONFIG_FILES
17743
CONFIG_HEADERS = $CONFIG_HEADERS
17744
CONFIG_LINKS = $CONFIG_LINKS
17745
CONFIG_COMMANDS = $CONFIG_COMMANDS
17748
on `(hostname || uname -n) 2>/dev/null | sed 1q`
17753
case $ac_config_files in *"
17754
"*) set x $ac_config_files; shift; ac_config_files=$*;;
17759
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17760
# Files that config.status was made for.
17761
config_files="$ac_config_files"
17762
config_commands="$ac_config_commands"
17766
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17768
\`$as_me' instantiates files and other configuration actions
17769
from templates according to the current configuration. Unless the files
17770
and actions are specified as TAGs, all are instantiated by default.
17772
Usage: $0 [OPTION]... [TAG]...
17774
-h, --help print this help, then exit
17775
-V, --version print version number and configuration settings, then exit
17776
--config print configuration, then exit
17777
-q, --quiet, --silent
17778
do not print progress messages
17779
-d, --debug don't remove temporary files
17780
--recheck update $as_me by reconfiguring in the same conditions
17781
--file=FILE[:TEMPLATE]
17782
instantiate the configuration file FILE
17784
Configuration files:
17787
Configuration commands:
17790
Report bugs to the package provider."
17793
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17794
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17796
libcmis config.status 0.4.1
17797
configured by $0, generated by GNU Autoconf 2.69,
17798
with options \\"\$ac_cs_config\\"
17800
Copyright (C) 2012 Free Software Foundation, Inc.
17801
This config.status script is free software; the Free Software Foundation
17802
gives unlimited permission to copy, distribute and modify it."
17809
test -n "\$AWK" || AWK=awk
17812
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17813
# The default lists apply if the user does not specify any file.
17819
ac_option=`expr "X$1" : 'X\([^=]*\)='`
17820
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17824
ac_option=`expr "X$1" : 'X\([^=]*\)='`
17836
# Handling of the options.
17837
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17839
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17840
$as_echo "$ac_cs_version"; exit ;;
17841
--config | --confi | --conf | --con | --co | --c )
17842
$as_echo "$ac_cs_config"; exit ;;
17843
--debug | --debu | --deb | --de | --d | -d )
17845
--file | --fil | --fi | --f )
17848
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17849
'') as_fn_error $? "missing file argument" ;;
17851
as_fn_append CONFIG_FILES " '$ac_optarg'"
17852
ac_need_defaults=false;;
17853
--he | --h | --help | --hel | -h )
17854
$as_echo "$ac_cs_usage"; exit ;;
17855
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
17856
| -silent | --silent | --silen | --sile | --sil | --si | --s)
17859
# This is an error.
17860
-*) as_fn_error $? "unrecognized option: \`$1'
17861
Try \`$0 --help' for more information." ;;
17863
*) as_fn_append ac_config_targets " $1"
17864
ac_need_defaults=false ;;
17870
ac_configure_extra_args=
17872
if $ac_cs_silent; then
17874
ac_configure_extra_args="$ac_configure_extra_args --silent"
17878
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17879
if \$ac_cs_recheck; then
17880
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17882
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17883
CONFIG_SHELL='$SHELL'
17884
export CONFIG_SHELL
17889
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17893
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17894
## Running $as_me. ##
17900
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17904
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17907
# The HP-UX ksh and POSIX shell print the target directory to stdout
17908
# if CDPATH is set.
17909
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17911
sed_quote_subst='$sed_quote_subst'
17912
double_quote_subst='$double_quote_subst'
17913
delay_variable_subst='$delay_variable_subst'
17914
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17915
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17916
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17917
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17918
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17919
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17920
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17921
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17922
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17923
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17924
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17925
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17926
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17927
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17928
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17929
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17930
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17931
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17932
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17933
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17934
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17935
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17936
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17937
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17938
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17939
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17940
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17941
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17942
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17943
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17944
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17945
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17946
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17947
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17948
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17949
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17950
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17951
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17952
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17953
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17954
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17955
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17956
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17957
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17958
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17959
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17960
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17961
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17962
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17963
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17964
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17965
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17966
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17967
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17968
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17969
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17970
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17971
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17972
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17973
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17974
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17975
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17976
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17977
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17978
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17979
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17980
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17981
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17982
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17983
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17984
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17985
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17986
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17987
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17988
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17989
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17990
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17991
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17992
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17993
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17994
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17995
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17996
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17997
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17998
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17999
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18000
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18001
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18002
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18003
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18004
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18005
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18006
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18007
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18008
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18009
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18010
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18011
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18012
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18013
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18014
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18015
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18016
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18017
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18018
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18019
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18020
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18021
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18022
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18023
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18024
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18025
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18026
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18027
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18028
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18029
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18030
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18031
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18032
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18033
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18034
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18035
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18036
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18037
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18038
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18039
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18040
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18041
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18042
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18043
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18044
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18045
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18046
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18047
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18048
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18049
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18050
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18051
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18052
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18053
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18054
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18055
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18056
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18057
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18058
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18059
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18060
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18061
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18062
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18063
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18064
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18065
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18066
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18067
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18068
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18069
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18070
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18071
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18072
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18073
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18074
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18075
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18076
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18077
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18078
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18079
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18080
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18081
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18082
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18083
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18084
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18085
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18086
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18087
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18088
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18089
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18090
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18091
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18092
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18093
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18094
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18095
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18096
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18097
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18100
LTCFLAGS='$LTCFLAGS'
18101
compiler='$compiler_DEFAULT'
18103
# A function that is used when there is no print builtin or printf.
18104
func_fallback_echo ()
18106
eval 'cat <<_LTECHO_EOF
18111
# Quote evaled strings.
18126
deplibs_check_method \
18131
sharedlib_from_linklib_cmd \
18134
archiver_list_spec \
18140
lt_cv_sys_global_symbol_pipe \
18141
lt_cv_sys_global_symbol_to_cdecl \
18142
lt_cv_sys_global_symbol_to_c_name_address \
18143
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18144
nm_file_list_spec \
18145
lt_prog_compiler_no_builtin_flag \
18146
lt_prog_compiler_pic \
18147
lt_prog_compiler_wl \
18148
lt_prog_compiler_static \
18149
lt_cv_prog_compiler_c_o \
18158
export_dynamic_flag_spec \
18159
whole_archive_flag_spec \
18160
compiler_needs_object \
18162
allow_undefined_flag \
18163
no_undefined_flag \
18164
hardcode_libdir_flag_spec \
18165
hardcode_libdir_separator \
18169
variables_saved_for_relink \
18171
library_names_spec \
18173
install_override_mode \
18177
compiler_lib_search_dirs \
18182
compiler_lib_search_path \
18186
lt_prog_compiler_no_builtin_flag_CXX \
18187
lt_prog_compiler_pic_CXX \
18188
lt_prog_compiler_wl_CXX \
18189
lt_prog_compiler_static_CXX \
18190
lt_cv_prog_compiler_c_o_CXX \
18191
export_dynamic_flag_spec_CXX \
18192
whole_archive_flag_spec_CXX \
18193
compiler_needs_object_CXX \
18195
allow_undefined_flag_CXX \
18196
no_undefined_flag_CXX \
18197
hardcode_libdir_flag_spec_CXX \
18198
hardcode_libdir_separator_CXX \
18199
exclude_expsyms_CXX \
18200
include_expsyms_CXX \
18201
file_list_spec_CXX \
18202
compiler_lib_search_dirs_CXX \
18203
predep_objects_CXX \
18204
postdep_objects_CXX \
18207
compiler_lib_search_path_CXX; do
18208
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18209
*[\\\\\\\`\\"\\\$]*)
18210
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18213
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18218
# Double-quote double-evaled strings.
18219
for var in reload_cmds \
18220
old_postinstall_cmds \
18221
old_postuninstall_cmds \
18223
extract_expsyms_cmds \
18224
old_archive_from_new_cmds \
18225
old_archive_from_expsyms_cmds \
18227
archive_expsym_cmds \
18229
module_expsym_cmds \
18230
export_symbols_cmds \
18234
postuninstall_cmds \
18236
sys_lib_search_path_spec \
18237
sys_lib_dlsearch_path_spec \
18239
old_archive_cmds_CXX \
18240
old_archive_from_new_cmds_CXX \
18241
old_archive_from_expsyms_cmds_CXX \
18243
archive_expsym_cmds_CXX \
18245
module_expsym_cmds_CXX \
18246
export_symbols_cmds_CXX \
18248
postlink_cmds_CXX; do
18249
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18250
*[\\\\\\\`\\"\\\$]*)
18251
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18254
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18259
ac_aux_dir='$ac_aux_dir'
18260
xsi_shell='$xsi_shell'
18261
lt_shell_append='$lt_shell_append'
18263
# See if we are running on zsh, and set the options which allow our
18264
# commands through without removal of \ escapes INIT.
18265
if test -n "\${ZSH_VERSION+set}" ; then
18266
setopt NO_GLOB_SUBST
18272
TIMESTAMP='$TIMESTAMP'
18283
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18285
# Handling of arguments.
18286
for ac_config_target in $ac_config_targets
18288
case $ac_config_target in
18289
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18290
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18291
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18292
"libcmis.pc") CONFIG_FILES="$CONFIG_FILES libcmis.pc" ;;
18293
"libcmis-c.pc") CONFIG_FILES="$CONFIG_FILES libcmis-c.pc" ;;
18294
"run-test.sh") CONFIG_FILES="$CONFIG_FILES run-test.sh" ;;
18295
"cppcheck-test.sh") CONFIG_FILES="$CONFIG_FILES cppcheck-test.sh" ;;
18296
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18297
"src/libcmis/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcmis/Makefile" ;;
18298
"src/libcmis-c/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcmis-c/Makefile" ;;
18299
"qa/Makefile") CONFIG_FILES="$CONFIG_FILES qa/Makefile" ;;
18300
"qa/mockup/Makefile") CONFIG_FILES="$CONFIG_FILES qa/mockup/Makefile" ;;
18301
"qa/libcmis/Makefile") CONFIG_FILES="$CONFIG_FILES qa/libcmis/Makefile" ;;
18302
"qa/libcmis-c/Makefile") CONFIG_FILES="$CONFIG_FILES qa/libcmis-c/Makefile" ;;
18304
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18309
# If the user did not use the arguments to specify the items to instantiate,
18310
# then the envvar interface is used. Set only those that are not.
18311
# We use the long form for the default assignment because of an extremely
18312
# bizarre bug on SunOS 4.1.3.
18313
if $ac_need_defaults; then
18314
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18315
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18318
# Have a temporary directory for convenience. Make it in the build tree
18319
# simply because there is no reason against having it here, and in addition,
18320
# creating and moving files from /tmp can sometimes cause problems.
18321
# Hook for its removal unless debugging.
18322
# Note that there is a small window in which the directory will not be cleaned:
18323
# after its creation but before its name has been assigned to `$tmp'.
18327
trap 'exit_status=$?
18328
: "${ac_tmp:=$tmp}"
18329
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18331
trap 'as_fn_exit 1' 1 2 13 15
18333
# Create a (secure) tmp directory for tmp files.
18336
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18340
tmp=./conf$$-$RANDOM
18341
(umask 077 && mkdir "$tmp")
18342
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18345
# Set up the scripts for CONFIG_FILES section.
18346
# No need to generate them if there are no CONFIG_FILES.
18347
# This happens for instance with `./config.status config.h'.
18348
if test -n "$CONFIG_FILES"; then
18351
ac_cr=`echo X | tr X '\015'`
18352
# On cygwin, bash can eat \r inside `` if the user requested igncr.
18353
# But we know of no other shell where ac_cr would be empty at this
18354
# point, so we can use a bashism as a fallback.
18355
if test "x$ac_cr" = x; then
18356
eval ac_cr=\$\'\\r\'
18358
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18359
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18362
ac_cs_awk_cr=$ac_cr
18365
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18370
echo "cat >conf$$subs.awk <<_ACEOF" &&
18371
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18373
} >conf$$subs.sh ||
18374
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18375
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18377
for ac_last_try in false false false false false :; do
18378
. ./conf$$subs.sh ||
18379
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18381
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18382
if test $ac_delim_n = $ac_delim_num; then
18384
elif $ac_last_try; then
18385
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18387
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18390
rm -f conf$$subs.sh
18392
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18393
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18397
s/^/S["/; s/!.*/"]=/
18407
s/\(.\{148\}\)..*/\1/
18409
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18414
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18421
s/\(.\{148\}\)..*/\1/
18423
s/["\\]/\\&/g; s/^/"/; s/$/"/
18427
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18432
' <conf$$subs.awk | sed '
18437
' >>$CONFIG_STATUS || ac_write_fail=1
18438
rm -f conf$$subs.awk
18439
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18441
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18442
for (key in S) S_is_set[key] = 1
18448
nfields = split(line, field, "@")
18450
len = length(field[1])
18451
for (i = 2; i < nfields; i++) {
18453
keylen = length(key)
18454
if (S_is_set[key]) {
18456
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18457
len += length(value) + length(field[++i])
18468
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18469
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18470
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18473
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18474
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18477
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18478
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18479
# trailing colons and then remove the whole line if VPATH becomes empty
18480
# (actually we leave an empty line to preserve line numbers).
18481
if test "x$srcdir" = x.; then
18482
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18500
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18501
fi # test -n "$CONFIG_FILES"
18504
eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
18509
:[FHLC]) ac_mode=$ac_tag; continue;;
18511
case $ac_mode$ac_tag in
18513
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18514
:[FH]-) ac_tag=-:-;;
18515
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18532
-) ac_f="$ac_tmp/stdin";;
18533
*) # Look for the file first in the build tree, then in the source tree
18534
# (if the path is not absolute). The absolute path cannot be DOS-style,
18535
# because $ac_f cannot contain `:'.
18539
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18541
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18543
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18544
as_fn_append ac_file_inputs " '$ac_f'"
18547
# Let's still pretend it is `configure' which instantiates (i.e., don't
18548
# use $as_me), people would be surprised to read:
18549
# /* config.h. Generated by config.status. */
18550
configure_input='Generated from '`
18551
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18553
if test x"$ac_file" != x-; then
18554
configure_input="$ac_file. $configure_input"
18555
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18556
$as_echo "$as_me: creating $ac_file" >&6;}
18558
# Neutralize special characters interpreted by sed in replacement strings.
18559
case $configure_input in #(
18560
*\&* | *\|* | *\\* )
18561
ac_sed_conf_input=`$as_echo "$configure_input" |
18562
sed 's/[\\\\&|]/\\\\&/g'`;; #(
18563
*) ac_sed_conf_input=$configure_input;;
18567
*:-:* | *:-) cat >"$ac_tmp/stdin" \
18568
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18573
ac_dir=`$as_dirname -- "$ac_file" ||
18574
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18575
X"$ac_file" : 'X\(//\)[^/]' \| \
18576
X"$ac_file" : 'X\(//\)$' \| \
18577
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18578
$as_echo X"$ac_file" |
18579
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18583
/^X\(\/\/\)[^/].*/{
18596
as_dir="$ac_dir"; as_fn_mkdir_p
18600
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18602
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18603
# A ".." for each directory in $ac_dir_suffix.
18604
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18605
case $ac_top_builddir_sub in
18606
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18607
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18610
ac_abs_top_builddir=$ac_pwd
18611
ac_abs_builddir=$ac_pwd$ac_dir_suffix
18612
# for backward compatibility:
18613
ac_top_builddir=$ac_top_build_prefix
18616
.) # We are building in place.
18618
ac_top_srcdir=$ac_top_builddir_sub
18619
ac_abs_top_srcdir=$ac_pwd ;;
18620
[\\/]* | ?:[\\/]* ) # Absolute name.
18621
ac_srcdir=$srcdir$ac_dir_suffix;
18622
ac_top_srcdir=$srcdir
18623
ac_abs_top_srcdir=$srcdir ;;
18624
*) # Relative name.
18625
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18626
ac_top_srcdir=$ac_top_build_prefix$srcdir
18627
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18629
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18639
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18640
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18642
ac_MKDIR_P=$MKDIR_P
18644
[\\/$]* | ?:[\\/]* ) ;;
18645
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18649
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18650
# If the template does not know about datarootdir, expand it.
18651
# FIXME: This hack should be removed a few years after 2.60.
18652
ac_datarootdir_hack=; ac_datarootdir_seen=
18663
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18664
*datarootdir*) ac_datarootdir_seen=yes;;
18665
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18666
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18667
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18669
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18670
ac_datarootdir_hack='
18671
s&@datadir@&$datadir&g
18672
s&@docdir@&$docdir&g
18673
s&@infodir@&$infodir&g
18674
s&@localedir@&$localedir&g
18675
s&@mandir@&$mandir&g
18676
s&\\\${datarootdir}&$datarootdir&g' ;;
18680
# Neutralize VPATH when `$srcdir' = `.'.
18681
# Shell code in configure.ac might set extrasub.
18682
# FIXME: do we really want to maintain this feature?
18683
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18684
ac_sed_extra="$ac_vpsub
18687
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18689
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18690
s|@configure_input@|$ac_sed_conf_input|;t t
18691
s&@top_builddir@&$ac_top_builddir_sub&;t t
18692
s&@top_build_prefix@&$ac_top_build_prefix&;t t
18693
s&@srcdir@&$ac_srcdir&;t t
18694
s&@abs_srcdir@&$ac_abs_srcdir&;t t
18695
s&@top_srcdir@&$ac_top_srcdir&;t t
18696
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18697
s&@builddir@&$ac_builddir&;t t
18698
s&@abs_builddir@&$ac_abs_builddir&;t t
18699
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18700
s&@INSTALL@&$ac_INSTALL&;t t
18701
s&@MKDIR_P@&$ac_MKDIR_P&;t t
18702
$ac_datarootdir_hack
18704
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18705
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18707
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18708
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18709
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18710
"$ac_tmp/out"`; test -z "$ac_out"; } &&
18711
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18712
which seems to be undefined. Please make sure it is defined" >&5
18713
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18714
which seems to be undefined. Please make sure it is defined" >&2;}
18716
rm -f "$ac_tmp/stdin"
18718
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18719
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18721
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18725
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18726
$as_echo "$as_me: executing $ac_file commands" >&6;}
18731
case $ac_file$ac_mode in
18732
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18733
# Older Autoconf quotes --file arguments for eval, but not when files
18734
# are listed without --file. Let's play safe and only enable the eval
18735
# if we detect the quoting.
18736
case $CONFIG_FILES in
18737
*\'*) eval set x "$CONFIG_FILES" ;;
18738
*) set x $CONFIG_FILES ;;
18743
# Strip MF so we end up with the name of the file.
18744
mf=`echo "$mf" | sed -e 's/:.*$//'`
18745
# Check whether this is an Automake generated Makefile or not.
18746
# We used to match only the files named 'Makefile.in', but
18747
# some people rename them; so instead we look at the file content.
18748
# Grep'ing the first line is not enough: some people post-process
18749
# each Makefile.in and add a new line on top of each file to say so.
18750
# Grep'ing the whole file is not good either: AIX grep has a line
18751
# limit of 2048, but all sed's we know have understand at least 4000.
18752
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18753
dirpart=`$as_dirname -- "$mf" ||
18754
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18755
X"$mf" : 'X\(//\)[^/]' \| \
18756
X"$mf" : 'X\(//\)$' \| \
18757
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18759
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18763
/^X\(\/\/\)[^/].*/{
18779
# Extract the definition of DEPDIR, am__include, and am__quote
18780
# from the Makefile without running 'make'.
18781
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18782
test -z "$DEPDIR" && continue
18783
am__include=`sed -n 's/^am__include = //p' < "$mf"`
18784
test -z "$am__include" && continue
18785
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18786
# Find all dependency output files, they are included files with
18787
# $(DEPDIR) in their names. We invoke sed twice because it is the
18788
# simplest approach to changing $(DEPDIR) to its actual value in the
18790
for file in `sed -n "
18791
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18792
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18793
# Make sure the directory exists.
18794
test -f "$dirpart/$file" && continue
18795
fdir=`$as_dirname -- "$file" ||
18796
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18797
X"$file" : 'X\(//\)[^/]' \| \
18798
X"$file" : 'X\(//\)$' \| \
18799
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18800
$as_echo X"$file" |
18801
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18805
/^X\(\/\/\)[^/].*/{
18818
as_dir=$dirpart/$fdir; as_fn_mkdir_p
18819
# echo "creating $dirpart/$file"
18820
echo '# dummy' > "$dirpart/$file"
18827
# See if we are running on zsh, and set the options which allow our
18828
# commands through without removal of \ escapes.
18829
if test -n "${ZSH_VERSION+set}" ; then
18830
setopt NO_GLOB_SUBST
18833
cfgfile="${ofile}T"
18834
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18837
cat <<_LT_EOF >> "$cfgfile"
18840
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18841
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18842
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18843
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18845
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18846
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18848
# Written by Gordon Matzigkeit, 1996
18850
# This file is part of GNU Libtool.
18852
# GNU Libtool is free software; you can redistribute it and/or
18853
# modify it under the terms of the GNU General Public License as
18854
# published by the Free Software Foundation; either version 2 of
18855
# the License, or (at your option) any later version.
18857
# As a special exception to the GNU General Public License,
18858
# if you distribute this file as part of a program or library that
18859
# is built using GNU Libtool, you may include this file under the
18860
# same distribution terms that you use for the rest of that program.
18862
# GNU Libtool is distributed in the hope that it will be useful,
18863
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18864
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18865
# GNU General Public License for more details.
18867
# You should have received a copy of the GNU General Public License
18868
# along with GNU Libtool; see the file COPYING. If not, a copy
18869
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18870
# obtained by writing to the Free Software Foundation, Inc.,
18871
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18874
# The names of the tagged configurations supported by this script.
18875
available_tags="CXX "
18877
# ### BEGIN LIBTOOL CONFIG
18879
# Which release of libtool.m4 was used?
18880
macro_version=$macro_version
18881
macro_revision=$macro_revision
18883
# Whether or not to build shared libraries.
18884
build_libtool_libs=$enable_shared
18886
# Whether or not to build static libraries.
18887
build_old_libs=$enable_static
18889
# What type of objects to build.
18892
# Whether or not to optimize for fast installation.
18893
fast_install=$enable_fast_install
18895
# Shell to use when invoking shell scripts.
18898
# An echo program that protects backslashes.
18901
# The PATH separator for the build system.
18902
PATH_SEPARATOR=$lt_PATH_SEPARATOR
18905
host_alias=$host_alias
18909
# The build system.
18910
build_alias=$build_alias
18914
# A sed program that does not truncate output.
18917
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18918
Xsed="\$SED -e 1s/^X//"
18920
# A grep program that handles long lines.
18926
# A literal string matcher.
18929
# A BSD- or MS-compatible name lister.
18932
# Whether we need soft or hard links.
18935
# What is the maximum length of a command?
18936
max_cmd_len=$max_cmd_len
18938
# Object file suffix (normally "o").
18941
# Executable file suffix (normally "").
18944
# whether the shell understands "unset".
18947
# turn spaces into newlines.
18950
# turn newlines into spaces.
18953
# convert \$build file names to \$host format.
18954
to_host_file_cmd=$lt_cv_to_host_file_cmd
18956
# convert \$build files to toolchain format.
18957
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18959
# An object symbol dumper.
18960
OBJDUMP=$lt_OBJDUMP
18962
# Method to check whether dependent libraries are shared objects.
18963
deplibs_check_method=$lt_deplibs_check_method
18965
# Command to use when deplibs_check_method = "file_magic".
18966
file_magic_cmd=$lt_file_magic_cmd
18968
# How to find potential files when deplibs_check_method = "file_magic".
18969
file_magic_glob=$lt_file_magic_glob
18971
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18972
want_nocaseglob=$lt_want_nocaseglob
18974
# DLL creation program.
18975
DLLTOOL=$lt_DLLTOOL
18977
# Command to associate shared and link libraries.
18978
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18983
# Flags to create an archive.
18984
AR_FLAGS=$lt_AR_FLAGS
18986
# How to feed a file listing to the archiver.
18987
archiver_list_spec=$lt_archiver_list_spec
18989
# A symbol stripping program.
18992
# Commands used to install an old-style archive.
18994
old_postinstall_cmds=$lt_old_postinstall_cmds
18995
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18997
# Whether to use a lock for old archive extraction.
18998
lock_old_archive_extraction=$lock_old_archive_extraction
19003
# LTCC compiler flags.
19004
LTCFLAGS=$lt_CFLAGS
19006
# Take the output of nm and produce a listing of raw symbols and C names.
19007
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19009
# Transform the output of nm in a proper C declaration.
19010
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19012
# Transform the output of nm in a C name address pair.
19013
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19015
# Transform the output of nm in a C name address pair when lib prefix is needed.
19016
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19018
# Specify filename containing input files for \$NM.
19019
nm_file_list_spec=$lt_nm_file_list_spec
19021
# The root where to search for dependent libraries,and in which our libraries should be installed.
19022
lt_sysroot=$lt_sysroot
19024
# The name of the directory that contains temporary libtool files.
19027
# Used to examine libraries when file_magic_cmd begins with "file".
19028
MAGIC_CMD=$MAGIC_CMD
19030
# Must we lock files when doing compilation?
19031
need_locks=$lt_need_locks
19034
MANIFEST_TOOL=$lt_MANIFEST_TOOL
19036
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19037
DSYMUTIL=$lt_DSYMUTIL
19039
# Tool to change global to local symbols on Mac OS X.
19042
# Tool to manipulate fat objects and archives on Mac OS X.
19045
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19048
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19049
OTOOL64=$lt_OTOOL64
19051
# Old archive suffix (normally "a").
19054
# Shared library suffix (normally ".so").
19055
shrext_cmds=$lt_shrext_cmds
19057
# The commands to extract the exported symbol list from a shared archive.
19058
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19060
# Variables whose values should be saved in libtool wrapper scripts and
19061
# restored at link time.
19062
variables_saved_for_relink=$lt_variables_saved_for_relink
19064
# Do we need the "lib" prefix for modules?
19065
need_lib_prefix=$need_lib_prefix
19067
# Do we need a version for libraries?
19068
need_version=$need_version
19070
# Library versioning type.
19071
version_type=$version_type
19073
# Shared library runtime path variable.
19074
runpath_var=$runpath_var
19076
# Shared library path variable.
19077
shlibpath_var=$shlibpath_var
19079
# Is shlibpath searched before the hard-coded library search path?
19080
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19082
# Format of library name prefix.
19083
libname_spec=$lt_libname_spec
19085
# List of archive names. First name is the real one, the rest are links.
19086
# The last name is the one that the linker finds with -lNAME
19087
library_names_spec=$lt_library_names_spec
19089
# The coded name of the library, if different from the real name.
19090
soname_spec=$lt_soname_spec
19092
# Permission mode override for installation of shared libraries.
19093
install_override_mode=$lt_install_override_mode
19095
# Command to use after installation of a shared archive.
19096
postinstall_cmds=$lt_postinstall_cmds
19098
# Command to use after uninstallation of a shared archive.
19099
postuninstall_cmds=$lt_postuninstall_cmds
19101
# Commands used to finish a libtool library installation in a directory.
19102
finish_cmds=$lt_finish_cmds
19104
# As "finish_cmds", except a single script fragment to be evaled but
19106
finish_eval=$lt_finish_eval
19108
# Whether we should hardcode library paths into libraries.
19109
hardcode_into_libs=$hardcode_into_libs
19111
# Compile-time system search path for libraries.
19112
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19114
# Run-time system search path for libraries.
19115
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19117
# Whether dlopen is supported.
19118
dlopen_support=$enable_dlopen
19120
# Whether dlopen of programs is supported.
19121
dlopen_self=$enable_dlopen_self
19123
# Whether dlopen of statically linked programs is supported.
19124
dlopen_self_static=$enable_dlopen_self_static
19126
# Commands to strip libraries.
19127
old_striplib=$lt_old_striplib
19128
striplib=$lt_striplib
19131
# The linker used to build libraries.
19134
# How to create reloadable object files.
19135
reload_flag=$lt_reload_flag
19136
reload_cmds=$lt_reload_cmds
19138
# Commands used to build an old-style archive.
19139
old_archive_cmds=$lt_old_archive_cmds
19141
# A language specific compiler.
19144
# Is the compiler the GNU compiler?
19147
# Compiler flag to turn off builtin functions.
19148
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19150
# Additional compiler flags for building library objects.
19151
pic_flag=$lt_lt_prog_compiler_pic
19153
# How to pass a linker flag through the compiler.
19154
wl=$lt_lt_prog_compiler_wl
19156
# Compiler flag to prevent dynamic linking.
19157
link_static_flag=$lt_lt_prog_compiler_static
19159
# Does compiler simultaneously support -c and -o options?
19160
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19162
# Whether or not to add -lc for building shared libraries.
19163
build_libtool_need_lc=$archive_cmds_need_lc
19165
# Whether or not to disallow shared libs when runtime libs are static.
19166
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19168
# Compiler flag to allow reflexive dlopens.
19169
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19171
# Compiler flag to generate shared objects directly from archives.
19172
whole_archive_flag_spec=$lt_whole_archive_flag_spec
19174
# Whether the compiler copes with passing no objects directly.
19175
compiler_needs_object=$lt_compiler_needs_object
19177
# Create an old-style archive from a shared archive.
19178
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19180
# Create a temporary old-style archive to link instead of a shared archive.
19181
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19183
# Commands used to build a shared archive.
19184
archive_cmds=$lt_archive_cmds
19185
archive_expsym_cmds=$lt_archive_expsym_cmds
19187
# Commands used to build a loadable module if different from building
19188
# a shared archive.
19189
module_cmds=$lt_module_cmds
19190
module_expsym_cmds=$lt_module_expsym_cmds
19192
# Whether we are building with GNU ld or not.
19193
with_gnu_ld=$lt_with_gnu_ld
19195
# Flag that allows shared libraries with undefined symbols to be built.
19196
allow_undefined_flag=$lt_allow_undefined_flag
19198
# Flag that enforces no undefined symbols.
19199
no_undefined_flag=$lt_no_undefined_flag
19201
# Flag to hardcode \$libdir into a binary during linking.
19202
# This must work even if \$libdir does not exist
19203
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19205
# Whether we need a single "-rpath" flag with a separated argument.
19206
hardcode_libdir_separator=$lt_hardcode_libdir_separator
19208
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19209
# DIR into the resulting binary.
19210
hardcode_direct=$hardcode_direct
19212
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19213
# DIR into the resulting binary and the resulting library dependency is
19214
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19215
# library is relocated.
19216
hardcode_direct_absolute=$hardcode_direct_absolute
19218
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19219
# into the resulting binary.
19220
hardcode_minus_L=$hardcode_minus_L
19222
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19223
# into the resulting binary.
19224
hardcode_shlibpath_var=$hardcode_shlibpath_var
19226
# Set to "yes" if building a shared library automatically hardcodes DIR
19227
# into the library and all subsequent libraries and executables linked
19229
hardcode_automatic=$hardcode_automatic
19231
# Set to yes if linker adds runtime paths of dependent libraries
19232
# to runtime path list.
19233
inherit_rpath=$inherit_rpath
19235
# Whether libtool must link a program against all its dependency libraries.
19236
link_all_deplibs=$link_all_deplibs
19238
# Set to "yes" if exported symbols are required.
19239
always_export_symbols=$always_export_symbols
19241
# The commands to list exported symbols.
19242
export_symbols_cmds=$lt_export_symbols_cmds
19244
# Symbols that should not be listed in the preloaded symbols.
19245
exclude_expsyms=$lt_exclude_expsyms
19247
# Symbols that must always be exported.
19248
include_expsyms=$lt_include_expsyms
19250
# Commands necessary for linking programs (against libraries) with templates.
19251
prelink_cmds=$lt_prelink_cmds
19253
# Commands necessary for finishing linking programs.
19254
postlink_cmds=$lt_postlink_cmds
19256
# Specify filename containing input files.
19257
file_list_spec=$lt_file_list_spec
19259
# How to hardcode a shared library path into an executable.
19260
hardcode_action=$hardcode_action
19262
# The directories searched by this compiler when creating a shared library.
19263
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19265
# Dependencies to place before and after the objects being linked to
19266
# create a shared library.
19267
predep_objects=$lt_predep_objects
19268
postdep_objects=$lt_postdep_objects
19269
predeps=$lt_predeps
19270
postdeps=$lt_postdeps
19272
# The library search path used internally by the compiler when linking
19273
# a shared library.
19274
compiler_lib_search_path=$lt_compiler_lib_search_path
19276
# ### END LIBTOOL CONFIG
19282
cat <<\_LT_EOF >> "$cfgfile"
19283
# AIX sometimes has problems with the GCC collect2 program. For some
19284
# reason, if we set the COLLECT_NAMES environment variable, the problems
19285
# vanish in a puff of smoke.
19286
if test "X${COLLECT_NAMES+set}" != Xset; then
19288
export COLLECT_NAMES
19295
ltmain="$ac_aux_dir/ltmain.sh"
19298
# We use sed instead of cat because bash on DJGPP gets confused if
19299
# if finds mixed CR/LF and LF-only lines. Since sed operates in
19300
# text mode, it properly converts lines to CR/LF. This bash problem
19301
# is reportedly fixed, but why not run on old versions too?
19302
sed '$q' "$ltmain" >> "$cfgfile" \
19303
|| (rm -f "$cfgfile"; exit 1)
19305
if test x"$xsi_shell" = xyes; then
19306
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19310
\ */*) func_dirname_result="${1%/*}${2}" ;;\
19311
\ * ) func_dirname_result="${3}" ;;\
19313
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19314
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19315
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19316
test 0 -eq $? || _lt_function_replace_fail=:
19319
sed -e '/^func_basename ()$/,/^} # func_basename /c\
19322
\ func_basename_result="${1##*/}"\
19323
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19324
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19325
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19326
test 0 -eq $? || _lt_function_replace_fail=:
19329
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19330
func_dirname_and_basename ()\
19333
\ */*) func_dirname_result="${1%/*}${2}" ;;\
19334
\ * ) func_dirname_result="${3}" ;;\
19336
\ func_basename_result="${1##*/}"\
19337
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19338
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19339
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19340
test 0 -eq $? || _lt_function_replace_fail=:
19343
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19346
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19347
\ # positional parameters, so assign one to ordinary parameter first.\
19348
\ func_stripname_result=${3}\
19349
\ func_stripname_result=${func_stripname_result#"${1}"}\
19350
\ func_stripname_result=${func_stripname_result%"${2}"}\
19351
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19352
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19353
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19354
test 0 -eq $? || _lt_function_replace_fail=:
19357
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19358
func_split_long_opt ()\
19360
\ func_split_long_opt_name=${1%%=*}\
19361
\ func_split_long_opt_arg=${1#*=}\
19362
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19363
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19364
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19365
test 0 -eq $? || _lt_function_replace_fail=:
19368
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19369
func_split_short_opt ()\
19371
\ func_split_short_opt_arg=${1#??}\
19372
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19373
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19374
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19375
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19376
test 0 -eq $? || _lt_function_replace_fail=:
19379
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19383
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19384
\ *) func_lo2o_result=${1} ;;\
19386
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19387
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19388
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19389
test 0 -eq $? || _lt_function_replace_fail=:
19392
sed -e '/^func_xform ()$/,/^} # func_xform /c\
19395
func_xform_result=${1%.*}.lo\
19396
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19397
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19398
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19399
test 0 -eq $? || _lt_function_replace_fail=:
19402
sed -e '/^func_arith ()$/,/^} # func_arith /c\
19405
func_arith_result=$(( $* ))\
19406
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19407
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19408
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19409
test 0 -eq $? || _lt_function_replace_fail=:
19412
sed -e '/^func_len ()$/,/^} # func_len /c\
19415
func_len_result=${#1}\
19416
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19417
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19418
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19419
test 0 -eq $? || _lt_function_replace_fail=:
19423
if test x"$lt_shell_append" = xyes; then
19424
sed -e '/^func_append ()$/,/^} # func_append /c\
19427
eval "${1}+=\\${2}"\
19428
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19429
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19430
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19431
test 0 -eq $? || _lt_function_replace_fail=:
19434
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19435
func_append_quoted ()\
19437
\ func_quote_for_eval "${2}"\
19438
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19439
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19440
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19441
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19442
test 0 -eq $? || _lt_function_replace_fail=:
19445
# Save a `func_append' function call where possible by direct use of '+='
19446
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19447
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19448
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19449
test 0 -eq $? || _lt_function_replace_fail=:
19451
# Save a `func_append' function call even when '+=' is not available
19452
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19453
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19454
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19455
test 0 -eq $? || _lt_function_replace_fail=:
19458
if test x"$_lt_function_replace_fail" = x":"; then
19459
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19460
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19464
mv -f "$cfgfile" "$ofile" ||
19465
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19469
cat <<_LT_EOF >> "$ofile"
19471
# ### BEGIN LIBTOOL TAG CONFIG: CXX
19473
# The linker used to build libraries.
19476
# How to create reloadable object files.
19477
reload_flag=$lt_reload_flag_CXX
19478
reload_cmds=$lt_reload_cmds_CXX
19480
# Commands used to build an old-style archive.
19481
old_archive_cmds=$lt_old_archive_cmds_CXX
19483
# A language specific compiler.
19484
CC=$lt_compiler_CXX
19486
# Is the compiler the GNU compiler?
19489
# Compiler flag to turn off builtin functions.
19490
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19492
# Additional compiler flags for building library objects.
19493
pic_flag=$lt_lt_prog_compiler_pic_CXX
19495
# How to pass a linker flag through the compiler.
19496
wl=$lt_lt_prog_compiler_wl_CXX
19498
# Compiler flag to prevent dynamic linking.
19499
link_static_flag=$lt_lt_prog_compiler_static_CXX
19501
# Does compiler simultaneously support -c and -o options?
19502
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19504
# Whether or not to add -lc for building shared libraries.
19505
build_libtool_need_lc=$archive_cmds_need_lc_CXX
19507
# Whether or not to disallow shared libs when runtime libs are static.
19508
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19510
# Compiler flag to allow reflexive dlopens.
19511
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19513
# Compiler flag to generate shared objects directly from archives.
19514
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19516
# Whether the compiler copes with passing no objects directly.
19517
compiler_needs_object=$lt_compiler_needs_object_CXX
19519
# Create an old-style archive from a shared archive.
19520
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19522
# Create a temporary old-style archive to link instead of a shared archive.
19523
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19525
# Commands used to build a shared archive.
19526
archive_cmds=$lt_archive_cmds_CXX
19527
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19529
# Commands used to build a loadable module if different from building
19530
# a shared archive.
19531
module_cmds=$lt_module_cmds_CXX
19532
module_expsym_cmds=$lt_module_expsym_cmds_CXX
19534
# Whether we are building with GNU ld or not.
19535
with_gnu_ld=$lt_with_gnu_ld_CXX
19537
# Flag that allows shared libraries with undefined symbols to be built.
19538
allow_undefined_flag=$lt_allow_undefined_flag_CXX
19540
# Flag that enforces no undefined symbols.
19541
no_undefined_flag=$lt_no_undefined_flag_CXX
19543
# Flag to hardcode \$libdir into a binary during linking.
19544
# This must work even if \$libdir does not exist
19545
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19547
# Whether we need a single "-rpath" flag with a separated argument.
19548
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19550
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19551
# DIR into the resulting binary.
19552
hardcode_direct=$hardcode_direct_CXX
19554
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19555
# DIR into the resulting binary and the resulting library dependency is
19556
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19557
# library is relocated.
19558
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19560
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19561
# into the resulting binary.
19562
hardcode_minus_L=$hardcode_minus_L_CXX
19564
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19565
# into the resulting binary.
19566
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19568
# Set to "yes" if building a shared library automatically hardcodes DIR
19569
# into the library and all subsequent libraries and executables linked
19571
hardcode_automatic=$hardcode_automatic_CXX
19573
# Set to yes if linker adds runtime paths of dependent libraries
19574
# to runtime path list.
19575
inherit_rpath=$inherit_rpath_CXX
19577
# Whether libtool must link a program against all its dependency libraries.
19578
link_all_deplibs=$link_all_deplibs_CXX
19580
# Set to "yes" if exported symbols are required.
19581
always_export_symbols=$always_export_symbols_CXX
19583
# The commands to list exported symbols.
19584
export_symbols_cmds=$lt_export_symbols_cmds_CXX
19586
# Symbols that should not be listed in the preloaded symbols.
19587
exclude_expsyms=$lt_exclude_expsyms_CXX
19589
# Symbols that must always be exported.
19590
include_expsyms=$lt_include_expsyms_CXX
19592
# Commands necessary for linking programs (against libraries) with templates.
19593
prelink_cmds=$lt_prelink_cmds_CXX
19595
# Commands necessary for finishing linking programs.
19596
postlink_cmds=$lt_postlink_cmds_CXX
19598
# Specify filename containing input files.
19599
file_list_spec=$lt_file_list_spec_CXX
19601
# How to hardcode a shared library path into an executable.
19602
hardcode_action=$hardcode_action_CXX
19604
# The directories searched by this compiler when creating a shared library.
19605
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19607
# Dependencies to place before and after the objects being linked to
19608
# create a shared library.
19609
predep_objects=$lt_predep_objects_CXX
19610
postdep_objects=$lt_postdep_objects_CXX
19611
predeps=$lt_predeps_CXX
19612
postdeps=$lt_postdeps_CXX
19614
# The library search path used internally by the compiler when linking
19615
# a shared library.
19616
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19618
# ### END LIBTOOL TAG CONFIG: CXX
19629
ac_clean_files=$ac_clean_files_save
19631
test $ac_write_fail = 0 ||
19632
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19635
# configure is writing to config.log, and then calls config.status.
19636
# config.status does its own redirection, appending to config.log.
19637
# Unfortunately, on DOS this fails, as config.log is still kept open
19638
# by configure, so config.status won't be able to write to it; its
19639
# output is simply discarded. So we exec the FD to /dev/null,
19640
# effectively closing config.log, so it can be properly (re)opened and
19641
# appended to by config.status. When coming back to configure, we
19642
# need to make the FD available again.
19643
if test "$no_create" != yes; then
19645
ac_config_status_args=
19646
test "$silent" = yes &&
19647
ac_config_status_args="$ac_config_status_args --quiet"
19649
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19651
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
19652
# would make configure fail if this is the last instruction.
19653
$ac_cs_success || as_fn_exit 1
19655
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19656
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19657
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19661
{ $as_echo "$as_me:${as_lineno-$LINENO}:
19665
Compiler flags: ${CXXFLAGS}
19666
client: ${enable_client}
19667
werror: ${enable_werror}
19668
tests: ${enable_tests}
19669
long tests: ${enable_long_tests}
19670
cppcheck tests: ${enable_cppcheck}
19677
Compiler flags: ${CXXFLAGS}
19678
client: ${enable_client}
19679
werror: ${enable_werror}
19680
tests: ${enable_tests}
19681
long tests: ${enable_long_tests}
19682
cppcheck tests: ${enable_cppcheck}