2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69 for CubeW 4.4-RC1.
5
# Report bugs to <scalasca@fz-juelich.de>.
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
94
*[\\/]* ) as_myself=$0 ;;
95
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99
test -z "$as_dir" && as_dir=.
100
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
111
if test ! -f "$as_myself"; then
112
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there. '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
# Use a proper internal environment variable to ensure we don't fall
138
# into an infinite loop, continuously re-executing ourselves.
139
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
_as_can_reexec=no; export _as_can_reexec;
141
# We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149
*v*x* | *x*v* ) as_opts=-vx ;;
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160
# We don't want this to propagate to other subprocesses.
161
{ _as_can_reexec=; unset _as_can_reexec;}
162
if test "x$CONFIG_SHELL" = x; then
163
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
# is contrary to our usage. Disable this feature.
168
alias -g '\${1+\"\$@\"}'='\"\$@\"'
171
case \`(set -o) 2>/dev/null\` in #(
179
as_required="as_fn_return () { (exit \$1); }
180
as_fn_success () { as_fn_return 0; }
181
as_fn_failure () { as_fn_return 1; }
182
as_fn_ret_success () { return 0; }
183
as_fn_ret_failure () { return 1; }
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
exitcode=1; echo positional parameters were not saved.
195
test x\$exitcode = x0 || exit 1
197
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206
PATH=/empty FPATH=/empty; export PATH FPATH
207
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209
test \$(( 1 + 1 )) = 2 || exit 1"
210
if (eval "$as_required") 2>/dev/null; then :
215
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223
test -z "$as_dir" && as_dir=.
227
for as_base in sh bash ksh sh5; do
228
# Try only shells that exist, to save several forks.
229
as_shell=$as_dir/$as_base
230
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232
CONFIG_SHELL=$as_shell as_have_required=yes
233
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243
CONFIG_SHELL=$SHELL as_have_required=yes
248
if test "x$CONFIG_SHELL" != x; then :
250
# We cannot yet assume a decent shell, so we have to provide a
251
# neutralization value for shells without unset; and this also
252
# works around shells that cannot unset nonexistent variables.
253
# Preserve -v and -x to the replacement shell.
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258
*v*x* | *x*v* ) as_opts=-vx ;;
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
# Admittedly, this is quite paranoid, since all the known shells bail
265
# out after a failed `exec'.
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270
if test x$as_have_required = xno; then :
271
$as_echo "$0: This script requires a shell more modern than all"
272
$as_echo "$0: the shells that I found on your system."
273
if test x${ZSH_VERSION+set} = xset ; then
274
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
277
$as_echo "$0: Please tell bug-autoconf@gnu.org and
278
$0: scalasca@fz-juelich.de about your system, including any
279
$0: error possibly output before this message. Then install
280
$0: a modern shell, or manually run the script under such a
281
$0: shell if you do have one."
287
SHELL=${CONFIG_SHELL-/bin/sh}
289
# Unset more variables known to interfere with behavior of common tools.
290
CLICOLOR_FORCE= GREP_OPTIONS=
291
unset CLICOLOR_FORCE GREP_OPTIONS
293
## --------------------- ##
294
## M4sh Shell Functions. ##
295
## --------------------- ##
298
# Portably unset VAR.
301
{ eval $1=; unset $1;}
305
# as_fn_set_status STATUS
306
# -----------------------
307
# Set $? to STATUS, without forking.
315
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325
# Create "$as_dir" as a directory, including parents if necessary.
330
-*) as_dir=./$as_dir;;
332
test -d "$as_dir" || eval $as_mkdir_p || {
336
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339
as_dirs="'$as_qdir' $as_dirs"
340
as_dir=`$as_dirname -- "$as_dir" ||
341
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342
X"$as_dir" : 'X\(//\)[^/]' \| \
343
X"$as_dir" : 'X\(//\)$' \| \
344
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345
$as_echo X"$as_dir" |
346
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363
test -d "$as_dir" && break
365
test -z "$as_dirs" || eval "mkdir $as_dirs"
366
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371
# as_fn_executable_p FILE
372
# -----------------------
373
# Test if FILE is an executable regular file.
374
as_fn_executable_p ()
376
test -f "$1" && test -x "$1"
377
} # as_fn_executable_p
378
# as_fn_append VAR VALUE
379
# ----------------------
380
# Append the text in VALUE to the end of the definition contained in VAR. Take
381
# advantage of any shell optimizations that allow amortized linear growth over
382
# repeated appends, instead of the typical quadratic growth present in naive
384
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385
eval 'as_fn_append ()
398
# Perform arithmetic evaluation on the ARGs, and store the result in the
399
# global $as_val. Take advantage of shells that can avoid forks. The arguments
400
# must be portable across $(()) and expr.
401
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409
as_val=`expr "$@" || test $? -eq 1`
414
# as_fn_error STATUS ERROR [LINENO LOG_FD]
415
# ----------------------------------------
416
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418
# script with STATUS, using 1 if that was 0.
421
as_status=$1; test $as_status -eq 0 && as_status=1
423
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426
$as_echo "$as_me: error: $2" >&2
427
as_fn_exit $as_status
430
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436
# Avoid depending upon Character Ranges.
437
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
438
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
439
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
440
as_cr_digits='0123456789'
441
as_cr_alnum=$as_cr_Letters$as_cr_digits
444
as_lineno_1=$LINENO as_lineno_1a=$LINENO
445
as_lineno_2=$LINENO as_lineno_2a=$LINENO
446
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
447
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
448
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
460
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
464
chmod +x "$as_me.lineno" ||
465
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
467
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
468
# already done that, so ensure we don't try to do so again and fall
469
# in an infinite loop. This has already happened in practice.
470
_as_can_reexec=no; export _as_can_reexec
471
# Don't try to exec as it changes $[0], causing all sort of problems
472
# (the dirname of $[0] is not the place where we might find the
473
# original and so on. Autoconf is especially sensitive to this).
475
# Exit status is that of the last command.
479
ECHO_C= ECHO_N= ECHO_T=
480
case `echo -n x` in #(((((
482
case `echo 'xy\c'` in
483
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
485
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
492
rm -f conf$$ conf$$.exe conf$$.file
493
if test -d conf$$.dir; then
494
rm -f conf$$.dir/conf$$.file
497
mkdir conf$$.dir 2>/dev/null
499
if (echo >conf$$.file) 2>/dev/null; then
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
502
# ... but there are two gotchas:
503
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
# In both cases, we have to default to `cp -pR'.
506
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508
elif ln conf$$.file conf$$ 2>/dev/null; then
516
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
517
rmdir conf$$.dir 2>/dev/null
519
if mkdir -p . 2>/dev/null; then
520
as_mkdir_p='mkdir -p "$as_dir"'
522
test -d ./-p && rmdir ./-p
527
as_executable_p=as_fn_executable_p
529
# Sed expression to map a string onto a valid CPP name.
530
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
# Sed expression to map a string onto a valid variable name.
533
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
SHELL=${CONFIG_SHELL-/bin/sh}
538
test -n "$DJDIR" || exec 7<&0 </dev/null
542
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
543
# so uname gets run too.
544
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549
ac_default_prefix=/usr/local
551
ac_config_libobj_dir=.
558
# Identity of this package.
560
PACKAGE_TARNAME='cubew'
561
PACKAGE_VERSION='4.4-RC1'
562
PACKAGE_STRING='CubeW 4.4-RC1'
563
PACKAGE_BUGREPORT='scalasca@fz-juelich.de'
564
PACKAGE_URL='http://www.scalasca.org'
566
# Factoring default headers for most tests.
567
ac_includes_default="\
569
#ifdef HAVE_SYS_TYPES_H
570
# include <sys/types.h>
572
#ifdef HAVE_SYS_STAT_H
573
# include <sys/stat.h>
579
# ifdef HAVE_STDLIB_H
584
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589
#ifdef HAVE_STRINGS_H
590
# include <strings.h>
592
#ifdef HAVE_INTTYPES_H
593
# include <inttypes.h>
602
ac_subst_vars='am__EXEEXT_FALSE
606
PACKAGE_ERROR_CODES_INCDIR
607
SYS_LIB_DLSEARCH_PATH_SPEC
608
HARDCODE_LIBDIR_AIX_LIBPATH
610
HARDCODE_LIBDIR_FLAG_CXX
611
HARDCODE_LIBDIR_FLAG_CC
613
MPI_CUBEW_BACKEND_EXAMPLES_EXE
614
MPI_CUBEW_BACKEND_EXAMPLES_SRC
615
NOMPI_CUBEW_BACKEND_EXAMPLES_EXE
616
NOMPI_CUBEW_BACKEND_EXAMPLES_SRC
617
MPI_CUBEW_FRONTEND_EXAMPLES_EXE
618
MPI_CUBEW_FRONTEND_EXAMPLES_SRC
619
NOMPI_CUBEW_FRONTEND_EXAMPLES_EXE
620
NOMPI_CUBEW_FRONTEND_EXAMPLES_SRC
621
CUBEW_COMPRESSION_BACKEND_FALSE
622
CUBEW_COMPRESSION_BACKEND_TRUE
623
CUBEW_COMPRESSION_FRONTEND_FALSE
624
CUBEW_COMPRESSION_FRONTEND_TRUE
628
HAVE_MEMORY_TRACING_FALSE
629
HAVE_MEMORY_TRACING_TRUE
630
HAVE_MEMORY_TRACKING_FALSE
631
HAVE_MEMORY_TRACKING_TRUE
632
HAVE_ADVANCED_MEMORY_FALSE
633
HAVE_ADVANCED_MEMORY_TRUE
698
INSTALL_STRIP_PROGRAM
731
PLATFORM_CYGWIN_FALSE
737
PLATFORM_SOLARIS_FALSE
738
PLATFORM_SOLARIS_TRUE
741
PLATFORM_CRAYXC_FALSE
743
PLATFORM_CRAYXK_FALSE
745
PLATFORM_CRAYXE_FALSE
747
PLATFORM_CRAYXT_FALSE
763
AFS_PACKAGE_BUILD_NAME
764
AFS_PACKAGE_BUILD_name
781
LIBRARY_INTERFACE_VERSION
809
program_transform_name
820
MSG_FRONTEND_COMPRESSION
822
FRONTEND_LIBZ_HEADERS
824
FRONTEND_LIBZ_LDFLAGS'
827
enable_option_checking
829
enable_dependency_tracking
843
ac_precious_vars='build_alias
865
# Initialize some variables set by options.
867
ac_init_version=false
868
ac_unrecognized_opts=
870
# The variables have the same names as the options, with
871
# dashes changed to underlines.
879
program_transform_name=s,x,x,
887
# Installation directory options.
888
# These are left unexpanded so users can "make install exec_prefix=/foo"
889
# and all the variables that are supposed to be based on exec_prefix
890
# by default will actually change.
891
# Use braces instead of parens because sh, perl, etc. also accept them.
892
# (The list follows the same order as the GNU Coding Standards.)
893
bindir='${exec_prefix}/bin'
894
sbindir='${exec_prefix}/sbin'
895
libexecdir='${exec_prefix}/libexec'
896
datarootdir='${prefix}/share'
897
datadir='${datarootdir}'
898
sysconfdir='${prefix}/etc'
899
sharedstatedir='${prefix}/com'
900
localstatedir='${prefix}/var'
901
includedir='${prefix}/include'
902
oldincludedir='/usr/include'
903
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904
infodir='${datarootdir}/info'
909
libdir='${exec_prefix}/lib'
910
localedir='${datarootdir}/locale'
911
mandir='${datarootdir}/man'
917
# If the previous option needs an argument, assign it.
918
if test -n "$ac_prev"; then
919
eval $ac_prev=\$ac_option
925
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930
# Accept the important Cygnus configure options, so we can diagnose typos.
932
case $ac_dashdash$ac_option in
936
-bindir | --bindir | --bindi | --bind | --bin | --bi)
938
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941
-build | --build | --buil | --bui | --bu)
942
ac_prev=build_alias ;;
943
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
944
build_alias=$ac_optarg ;;
946
-cache-file | --cache-file | --cache-fil | --cache-fi \
947
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948
ac_prev=cache_file ;;
949
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951
cache_file=$ac_optarg ;;
954
cache_file=config.cache ;;
956
-datadir | --datadir | --datadi | --datad)
958
-datadir=* | --datadir=* | --datadi=* | --datad=*)
959
datadir=$ac_optarg ;;
961
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962
| --dataroo | --dataro | --datar)
963
ac_prev=datarootdir ;;
964
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966
datarootdir=$ac_optarg ;;
968
-disable-* | --disable-*)
969
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970
# Reject names that are not valid shell variable names.
971
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972
as_fn_error $? "invalid feature name: $ac_useropt"
973
ac_useropt_orig=$ac_useropt
974
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975
case $ac_user_opts in
979
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980
ac_unrecognized_sep=', ';;
982
eval enable_$ac_useropt=no ;;
984
-docdir | --docdir | --docdi | --doc | --do)
986
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994
-enable-* | --enable-*)
995
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996
# Reject names that are not valid shell variable names.
997
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998
as_fn_error $? "invalid feature name: $ac_useropt"
999
ac_useropt_orig=$ac_useropt
1000
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001
case $ac_user_opts in
1003
"enable_$ac_useropt"
1005
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006
ac_unrecognized_sep=', ';;
1008
eval enable_$ac_useropt=\$ac_optarg ;;
1010
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012
| --exec | --exe | --ex)
1013
ac_prev=exec_prefix ;;
1014
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016
| --exec=* | --exe=* | --ex=*)
1017
exec_prefix=$ac_optarg ;;
1019
-gas | --gas | --ga | --g)
1020
# Obsolete; use --with-gas.
1023
-help | --help | --hel | --he | -h)
1024
ac_init_help=long ;;
1025
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026
ac_init_help=recursive ;;
1027
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028
ac_init_help=short ;;
1030
-host | --host | --hos | --ho)
1031
ac_prev=host_alias ;;
1032
-host=* | --host=* | --hos=* | --ho=*)
1033
host_alias=$ac_optarg ;;
1035
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039
htmldir=$ac_optarg ;;
1041
-includedir | --includedir | --includedi | --included | --include \
1042
| --includ | --inclu | --incl | --inc)
1043
ac_prev=includedir ;;
1044
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045
| --includ=* | --inclu=* | --incl=* | --inc=*)
1046
includedir=$ac_optarg ;;
1048
-infodir | --infodir | --infodi | --infod | --info | --inf)
1050
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051
infodir=$ac_optarg ;;
1053
-libdir | --libdir | --libdi | --libd)
1055
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1056
libdir=$ac_optarg ;;
1058
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059
| --libexe | --libex | --libe)
1060
ac_prev=libexecdir ;;
1061
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062
| --libexe=* | --libex=* | --libe=*)
1063
libexecdir=$ac_optarg ;;
1065
-localedir | --localedir | --localedi | --localed | --locale)
1066
ac_prev=localedir ;;
1067
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068
localedir=$ac_optarg ;;
1070
-localstatedir | --localstatedir | --localstatedi | --localstated \
1071
| --localstate | --localstat | --localsta | --localst | --locals)
1072
ac_prev=localstatedir ;;
1073
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075
localstatedir=$ac_optarg ;;
1077
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080
mandir=$ac_optarg ;;
1082
-nfp | --nfp | --nf)
1083
# Obsolete; use --without-fp.
1086
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087
| --no-cr | --no-c | -n)
1090
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096
| --oldin | --oldi | --old | --ol | --o)
1097
ac_prev=oldincludedir ;;
1098
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101
oldincludedir=$ac_optarg ;;
1103
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106
prefix=$ac_optarg ;;
1108
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1109
| --program-pre | --program-pr | --program-p)
1110
ac_prev=program_prefix ;;
1111
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1112
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113
program_prefix=$ac_optarg ;;
1115
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1116
| --program-suf | --program-su | --program-s)
1117
ac_prev=program_suffix ;;
1118
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1119
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120
program_suffix=$ac_optarg ;;
1122
-program-transform-name | --program-transform-name \
1123
| --program-transform-nam | --program-transform-na \
1124
| --program-transform-n | --program-transform- \
1125
| --program-transform | --program-transfor \
1126
| --program-transfo | --program-transf \
1127
| --program-trans | --program-tran \
1128
| --progr-tra | --program-tr | --program-t)
1129
ac_prev=program_transform_name ;;
1130
-program-transform-name=* | --program-transform-name=* \
1131
| --program-transform-nam=* | --program-transform-na=* \
1132
| --program-transform-n=* | --program-transform-=* \
1133
| --program-transform=* | --program-transfor=* \
1134
| --program-transfo=* | --program-transf=* \
1135
| --program-trans=* | --program-tran=* \
1136
| --progr-tra=* | --program-tr=* | --program-t=*)
1137
program_transform_name=$ac_optarg ;;
1139
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142
pdfdir=$ac_optarg ;;
1144
-psdir | --psdir | --psdi | --psd | --ps)
1146
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150
| -silent | --silent | --silen | --sile | --sil)
1153
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157
sbindir=$ac_optarg ;;
1159
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1160
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161
| --sharedst | --shareds | --shared | --share | --shar \
1163
ac_prev=sharedstatedir ;;
1164
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168
sharedstatedir=$ac_optarg ;;
1170
-site | --site | --sit)
1172
-site=* | --site=* | --sit=*)
1175
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178
srcdir=$ac_optarg ;;
1180
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181
| --syscon | --sysco | --sysc | --sys | --sy)
1182
ac_prev=sysconfdir ;;
1183
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185
sysconfdir=$ac_optarg ;;
1187
-target | --target | --targe | --targ | --tar | --ta | --t)
1188
ac_prev=target_alias ;;
1189
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190
target_alias=$ac_optarg ;;
1192
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1195
-version | --version | --versio | --versi | --vers | -V)
1196
ac_init_version=: ;;
1199
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200
# Reject names that are not valid shell variable names.
1201
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202
as_fn_error $? "invalid package name: $ac_useropt"
1203
ac_useropt_orig=$ac_useropt
1204
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205
case $ac_user_opts in
1209
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210
ac_unrecognized_sep=', ';;
1212
eval with_$ac_useropt=\$ac_optarg ;;
1214
-without-* | --without-*)
1215
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216
# Reject names that are not valid shell variable names.
1217
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218
as_fn_error $? "invalid package name: $ac_useropt"
1219
ac_useropt_orig=$ac_useropt
1220
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221
case $ac_user_opts in
1225
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226
ac_unrecognized_sep=', ';;
1228
eval with_$ac_useropt=no ;;
1231
# Obsolete; use --with-x.
1234
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235
| --x-incl | --x-inc | --x-in | --x-i)
1236
ac_prev=x_includes ;;
1237
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239
x_includes=$ac_optarg ;;
1241
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1242
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243
ac_prev=x_libraries ;;
1244
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246
x_libraries=$ac_optarg ;;
1248
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1249
Try \`$0 --help' for more information"
1253
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254
# Reject names that are not valid shell variable names.
1255
case $ac_envvar in #(
1256
'' | [0-9]* | *[!_$as_cr_alnum]* )
1257
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1259
eval $ac_envvar=\$ac_optarg
1260
export $ac_envvar ;;
1263
# FIXME: should be removed in autoconf 3.0.
1264
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1273
if test -n "$ac_prev"; then
1274
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275
as_fn_error $? "missing argument to $ac_option"
1278
if test -n "$ac_unrecognized_opts"; then
1279
case $enable_option_checking in
1281
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1282
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286
# Check all directory arguments for consistency.
1287
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288
datadir sysconfdir sharedstatedir localstatedir includedir \
1289
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290
libdir localedir mandir
1292
eval ac_val=\$$ac_var
1293
# Remove trailing slashes.
1296
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297
eval $ac_var=\$ac_val;;
1299
# Be sure to have absolute directory names.
1301
[\\/$]* | ?:[\\/]* ) continue;;
1302
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1307
# There might be people who depend on the old broken behavior: `$host'
1308
# used to hold the argument of --host etc.
1309
# FIXME: To remove some day.
1312
target=$target_alias
1314
# FIXME: To remove some day.
1315
if test "x$host_alias" != x; then
1316
if test "x$build_alias" = x; then
1317
cross_compiling=maybe
1318
elif test "x$build_alias" != "x$host_alias"; then
1324
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
test "$silent" = yes && exec 6>/dev/null
1329
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330
ac_ls_di=`ls -di .` &&
1331
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332
as_fn_error $? "working directory cannot be determined"
1333
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334
as_fn_error $? "pwd does not report name of working directory"
1337
# Find the source files, if location was not specified.
1338
if test -z "$srcdir"; then
1339
ac_srcdir_defaulted=yes
1340
# Try the directory containing this script, then the parent directory.
1341
ac_confdir=`$as_dirname -- "$as_myself" ||
1342
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343
X"$as_myself" : 'X\(//\)[^/]' \| \
1344
X"$as_myself" : 'X\(//\)$' \| \
1345
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346
$as_echo X"$as_myself" |
1347
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365
if test ! -r "$srcdir/$ac_unique_file"; then
1369
ac_srcdir_defaulted=no
1371
if test ! -r "$srcdir/$ac_unique_file"; then
1372
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379
# When building in place, set srcdir=.
1380
if test "$ac_abs_confdir" = "$ac_pwd"; then
1383
# Remove unnecessary trailing slashes from srcdir.
1384
# Double slashes in file names in object file debugging info
1385
# mess up M-x gdb in Emacs.
1387
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389
for ac_var in $ac_precious_vars; do
1390
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391
eval ac_env_${ac_var}_value=\$${ac_var}
1392
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397
# Report the --help message.
1399
if test "$ac_init_help" = "long"; then
1400
# Omit some internal or obsolete options to make the list less imposing.
1401
# This message is too long to be a string in the A/UX 3.1 sh.
1403
\`configure' configures CubeW 4.4-RC1 to adapt to many kinds of systems.
1405
Usage: $0 [OPTION]... [VAR=VALUE]...
1407
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408
VAR=VALUE. See below for descriptions of some of the useful variables.
1410
Defaults for the options are specified in brackets.
1413
-h, --help display this help and exit
1414
--help=short display options specific to this package
1415
--help=recursive display the short help of all the included packages
1416
-V, --version display version information and exit
1417
-q, --quiet, --silent do not print \`checking ...' messages
1418
--cache-file=FILE cache test results in FILE [disabled]
1419
-C, --config-cache alias for \`--cache-file=config.cache'
1420
-n, --no-create do not create output files
1421
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1423
Installation directories:
1424
--prefix=PREFIX install architecture-independent files in PREFIX
1425
[$ac_default_prefix]
1426
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429
By default, \`make install' will install all the files in
1430
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432
for instance \`--prefix=\$HOME'.
1434
For better control, use the options below.
1436
Fine tuning of the installation directories:
1437
--bindir=DIR user executables [EPREFIX/bin]
1438
--sbindir=DIR system admin executables [EPREFIX/sbin]
1439
--libexecdir=DIR program executables [EPREFIX/libexec]
1440
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443
--libdir=DIR object code libraries [EPREFIX/lib]
1444
--includedir=DIR C header files [PREFIX/include]
1445
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1446
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448
--infodir=DIR info documentation [DATAROOTDIR/info]
1449
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450
--mandir=DIR man documentation [DATAROOTDIR/man]
1451
--docdir=DIR documentation root [DATAROOTDIR/doc/cubew]
1452
--htmldir=DIR html documentation [DOCDIR]
1453
--dvidir=DIR dvi documentation [DOCDIR]
1454
--pdfdir=DIR pdf documentation [DOCDIR]
1455
--psdir=DIR ps documentation [DOCDIR]
1461
--program-prefix=PREFIX prepend PREFIX to installed program names
1462
--program-suffix=SUFFIX append SUFFIX to installed program names
1463
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1466
--build=BUILD configure for building on BUILD [guessed]
1467
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1471
if test -n "$ac_init_help"; then
1472
case $ac_init_help in
1473
short | recursive ) echo "Configuration of CubeW 4.4-RC1:";;
1478
--disable-option-checking ignore unrecognized --enable/--with options
1479
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481
--enable-silent-rules less verbose build output (undo: "make V=1")
1482
--disable-silent-rules verbose build output (undo: "make V=0")
1483
--enable-dependency-tracking
1484
do not reject slow dependency extractors
1485
--disable-dependency-tracking
1486
speeds up one-time build
1487
--enable-shared[=PKGS] build shared libraries [default=no]
1488
--enable-static[=PKGS] build static libraries [default=yes]
1489
--enable-fast-install[=PKGS]
1490
optimize for fast installation [default=yes]
1491
--disable-libtool-lock avoid locking (might break parallel builds)
1494
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1498
--with-aix-soname=aix|svr4|both
1499
shared library versioning (aka "SONAME") variant to
1500
provide on AIX, [default=aix].
1501
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1502
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1503
compiler's sysroot if not specified).
1504
--with-advanced-memory | --without-advanced-memory
1505
Enables advanced memory features such as usage of an
1506
external memory allocator.
1507
--with-memory-tracking | --without-memory-tracking
1508
Enables internal memory tracking (reguires
1509
--with-advanced-memory).
1510
--with-memory-tracing | --without-memory-tracing
1511
Enables internal memory tracing (reguires
1512
--with-advanced-memory), more intensive memory usage
1514
--with-frontend-zlib="path to frontrend zlib"
1515
Defines the zlib library, used by frontend c-writer
1518
Some influential environment variables:
1520
C compiler command for the frontend build
1522
C++ compiler command for the frontend build
1524
(Objective) C/C++ preprocessor flags for the frontend build,
1525
e.g. -I<include dir> if you have headers in a nonstandard
1526
directory <include dir>
1528
C compiler flags for the frontend build
1530
linker flags for the frontend build, e.g. -L<lib dir> if you
1531
have libraries in a nonstandard directory <lib dir>
1533
libraries to pass to the linker for the frontend build, e.g.
1535
CC C compiler command
1536
CFLAGS C compiler flags
1537
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1538
nonstandard directory <lib dir>
1539
LIBS libraries to pass to the linker, e.g. -l<library>
1540
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1541
you have headers in a nonstandard directory <include dir>
1543
User-defined run-time library search path.
1545
CXX C++ compiler command
1546
CXXFLAGS C++ compiler flags
1547
CXXCPP C++ preprocessor
1549
Use these variables to override the choices made by `configure' or to help
1550
it to find libraries and programs with nonstandard names/locations.
1552
Report bugs to <scalasca@fz-juelich.de>.
1553
CubeW home page: <http://www.scalasca.org>.
1558
if test "$ac_init_help" = "recursive"; then
1559
# If there are subdirs, report their specific --help.
1560
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561
test -d "$ac_dir" ||
1562
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1567
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1570
# A ".." for each directory in $ac_dir_suffix.
1571
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1572
case $ac_top_builddir_sub in
1573
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577
ac_abs_top_builddir=$ac_pwd
1578
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579
# for backward compatibility:
1580
ac_top_builddir=$ac_top_build_prefix
1583
.) # We are building in place.
1585
ac_top_srcdir=$ac_top_builddir_sub
1586
ac_abs_top_srcdir=$ac_pwd ;;
1587
[\\/]* | ?:[\\/]* ) # Absolute name.
1588
ac_srcdir=$srcdir$ac_dir_suffix;
1589
ac_top_srcdir=$srcdir
1590
ac_abs_top_srcdir=$srcdir ;;
1592
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593
ac_top_srcdir=$ac_top_build_prefix$srcdir
1594
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598
cd "$ac_dir" || { ac_status=$?; continue; }
1599
# Check for guested configure.
1600
if test -f "$ac_srcdir/configure.gnu"; then
1602
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603
elif test -f "$ac_srcdir/configure"; then
1605
$SHELL "$ac_srcdir/configure" --help=recursive
1607
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609
cd "$ac_pwd" || { ac_status=$?; break; }
1613
test -n "$ac_init_help" && exit $ac_status
1614
if $ac_init_version; then
1616
CubeW configure 4.4-RC1
1617
generated by GNU Autoconf 2.69
1619
Copyright (C) 2012 Free Software Foundation, Inc.
1620
This configure script is free software; the Free Software Foundation
1621
gives unlimited permission to copy, distribute and modify it.
1626
## ------------------------ ##
1627
## Autoconf initialization. ##
1628
## ------------------------ ##
1630
# ac_fn_c_try_compile LINENO
1631
# --------------------------
1632
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1633
ac_fn_c_try_compile ()
1635
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636
rm -f conftest.$ac_objext
1637
if { { ac_try="$ac_compile"
1639
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640
*) ac_try_echo=$ac_try;;
1642
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643
$as_echo "$ac_try_echo"; } >&5
1644
(eval "$ac_compile") 2>conftest.err
1646
if test -s conftest.err; then
1647
grep -v '^ *+' conftest.err >conftest.er1
1648
cat conftest.er1 >&5
1649
mv -f conftest.er1 conftest.err
1651
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652
test $ac_status = 0; } && {
1653
test -z "$ac_c_werror_flag" ||
1654
test ! -s conftest.err
1655
} && test -s conftest.$ac_objext; then :
1658
$as_echo "$as_me: failed program was:" >&5
1659
sed 's/^/| /' conftest.$ac_ext >&5
1663
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664
as_fn_set_status $ac_retval
1666
} # ac_fn_c_try_compile
1668
# ac_fn_c_try_link LINENO
1669
# -----------------------
1670
# Try to link conftest.$ac_ext, and return whether this succeeded.
1673
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674
rm -f conftest.$ac_objext conftest$ac_exeext
1675
if { { ac_try="$ac_link"
1677
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678
*) ac_try_echo=$ac_try;;
1680
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681
$as_echo "$ac_try_echo"; } >&5
1682
(eval "$ac_link") 2>conftest.err
1684
if test -s conftest.err; then
1685
grep -v '^ *+' conftest.err >conftest.er1
1686
cat conftest.er1 >&5
1687
mv -f conftest.er1 conftest.err
1689
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690
test $ac_status = 0; } && {
1691
test -z "$ac_c_werror_flag" ||
1692
test ! -s conftest.err
1693
} && test -s conftest$ac_exeext && {
1694
test "$cross_compiling" = yes ||
1695
test -x conftest$ac_exeext
1699
$as_echo "$as_me: failed program was:" >&5
1700
sed 's/^/| /' conftest.$ac_ext >&5
1704
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1705
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1706
# interfere with the next link command; also delete a directory that is
1707
# left behind by Apple's compiler. We do this before executing the actions.
1708
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710
as_fn_set_status $ac_retval
1712
} # ac_fn_c_try_link
1714
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1715
# -------------------------------------------------------
1716
# Tests whether HEADER exists and can be compiled using the include files in
1717
# INCLUDES, setting the cache variable VAR accordingly.
1718
ac_fn_c_check_header_compile ()
1720
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722
$as_echo_n "checking for $2... " >&6; }
1723
if eval \${$3+:} false; then :
1724
$as_echo_n "(cached) " >&6
1726
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727
/* end confdefs.h. */
1731
if ac_fn_c_try_compile "$LINENO"; then :
1736
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740
$as_echo "$ac_res" >&6; }
1741
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743
} # ac_fn_c_check_header_compile
1745
# ac_fn_c_try_cpp LINENO
1746
# ----------------------
1747
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1750
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751
if { { ac_try="$ac_cpp conftest.$ac_ext"
1753
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754
*) ac_try_echo=$ac_try;;
1756
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757
$as_echo "$ac_try_echo"; } >&5
1758
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1760
if test -s conftest.err; then
1761
grep -v '^ *+' conftest.err >conftest.er1
1762
cat conftest.er1 >&5
1763
mv -f conftest.er1 conftest.err
1765
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766
test $ac_status = 0; } > conftest.i && {
1767
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1768
test ! -s conftest.err
1772
$as_echo "$as_me: failed program was:" >&5
1773
sed 's/^/| /' conftest.$ac_ext >&5
1777
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778
as_fn_set_status $ac_retval
1782
# ac_fn_c_try_run LINENO
1783
# ----------------------
1784
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1785
# that executables *can* be run.
1788
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789
if { { ac_try="$ac_link"
1791
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792
*) ac_try_echo=$ac_try;;
1794
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795
$as_echo "$ac_try_echo"; } >&5
1796
(eval "$ac_link") 2>&5
1798
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800
{ { case "(($ac_try" in
1801
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802
*) ac_try_echo=$ac_try;;
1804
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805
$as_echo "$ac_try_echo"; } >&5
1806
(eval "$ac_try") 2>&5
1808
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809
test $ac_status = 0; }; }; then :
1812
$as_echo "$as_me: program exited with status $ac_status" >&5
1813
$as_echo "$as_me: failed program was:" >&5
1814
sed 's/^/| /' conftest.$ac_ext >&5
1816
ac_retval=$ac_status
1818
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
as_fn_set_status $ac_retval
1824
# ac_fn_c_check_func LINENO FUNC VAR
1825
# ----------------------------------
1826
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1827
ac_fn_c_check_func ()
1829
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831
$as_echo_n "checking for $2... " >&6; }
1832
if eval \${$3+:} false; then :
1833
$as_echo_n "(cached) " >&6
1835
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836
/* end confdefs.h. */
1837
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1838
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1839
#define $2 innocuous_$2
1841
/* System header to define __stub macros and hopefully few prototypes,
1842
which can conflict with char $2 (); below.
1843
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1844
<limits.h> exists even on freestanding compilers. */
1847
# include <limits.h>
1849
# include <assert.h>
1854
/* Override any GCC internal prototype to avoid an error.
1855
Use char because int might match the return type of a GCC
1856
builtin and then its argument prototype would still apply. */
1861
/* The GNU C library defines this for functions which it implements
1862
to always fail with ENOSYS. Some functions are actually named
1863
something starting with __ and the normal name is an alias. */
1864
#if defined __stub_$2 || defined __stub___$2
1876
if ac_fn_c_try_link "$LINENO"; then :
1881
rm -f core conftest.err conftest.$ac_objext \
1882
conftest$ac_exeext conftest.$ac_ext
1885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886
$as_echo "$ac_res" >&6; }
1887
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
} # ac_fn_c_check_func
1891
# ac_fn_cxx_try_compile LINENO
1892
# ----------------------------
1893
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1894
ac_fn_cxx_try_compile ()
1896
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897
rm -f conftest.$ac_objext
1898
if { { ac_try="$ac_compile"
1900
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901
*) ac_try_echo=$ac_try;;
1903
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904
$as_echo "$ac_try_echo"; } >&5
1905
(eval "$ac_compile") 2>conftest.err
1907
if test -s conftest.err; then
1908
grep -v '^ *+' conftest.err >conftest.er1
1909
cat conftest.er1 >&5
1910
mv -f conftest.er1 conftest.err
1912
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913
test $ac_status = 0; } && {
1914
test -z "$ac_cxx_werror_flag" ||
1915
test ! -s conftest.err
1916
} && test -s conftest.$ac_objext; then :
1919
$as_echo "$as_me: failed program was:" >&5
1920
sed 's/^/| /' conftest.$ac_ext >&5
1924
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
as_fn_set_status $ac_retval
1927
} # ac_fn_cxx_try_compile
1929
# ac_fn_cxx_try_cpp LINENO
1930
# ------------------------
1931
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1932
ac_fn_cxx_try_cpp ()
1934
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935
if { { ac_try="$ac_cpp conftest.$ac_ext"
1937
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938
*) ac_try_echo=$ac_try;;
1940
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941
$as_echo "$ac_try_echo"; } >&5
1942
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1944
if test -s conftest.err; then
1945
grep -v '^ *+' conftest.err >conftest.er1
1946
cat conftest.er1 >&5
1947
mv -f conftest.er1 conftest.err
1949
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950
test $ac_status = 0; } > conftest.i && {
1951
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1952
test ! -s conftest.err
1956
$as_echo "$as_me: failed program was:" >&5
1957
sed 's/^/| /' conftest.$ac_ext >&5
1961
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962
as_fn_set_status $ac_retval
1964
} # ac_fn_cxx_try_cpp
1966
# ac_fn_cxx_try_link LINENO
1967
# -------------------------
1968
# Try to link conftest.$ac_ext, and return whether this succeeded.
1969
ac_fn_cxx_try_link ()
1971
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972
rm -f conftest.$ac_objext conftest$ac_exeext
1973
if { { ac_try="$ac_link"
1975
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976
*) ac_try_echo=$ac_try;;
1978
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979
$as_echo "$ac_try_echo"; } >&5
1980
(eval "$ac_link") 2>conftest.err
1982
if test -s conftest.err; then
1983
grep -v '^ *+' conftest.err >conftest.er1
1984
cat conftest.er1 >&5
1985
mv -f conftest.er1 conftest.err
1987
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988
test $ac_status = 0; } && {
1989
test -z "$ac_cxx_werror_flag" ||
1990
test ! -s conftest.err
1991
} && test -s conftest$ac_exeext && {
1992
test "$cross_compiling" = yes ||
1993
test -x conftest$ac_exeext
1997
$as_echo "$as_me: failed program was:" >&5
1998
sed 's/^/| /' conftest.$ac_ext >&5
2002
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2003
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2004
# interfere with the next link command; also delete a directory that is
2005
# left behind by Apple's compiler. We do this before executing the actions.
2006
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2007
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008
as_fn_set_status $ac_retval
2010
} # ac_fn_cxx_try_link
2012
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2013
# -------------------------------------------------------
2014
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2015
# the include files in INCLUDES and setting the cache variable VAR
2017
ac_fn_c_check_header_mongrel ()
2019
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020
if eval \${$3+:} false; then :
2021
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022
$as_echo_n "checking for $2... " >&6; }
2023
if eval \${$3+:} false; then :
2024
$as_echo_n "(cached) " >&6
2027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028
$as_echo "$ac_res" >&6; }
2030
# Is the header compilable?
2031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2032
$as_echo_n "checking $2 usability... " >&6; }
2033
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034
/* end confdefs.h. */
2038
if ac_fn_c_try_compile "$LINENO"; then :
2039
ac_header_compiler=yes
2041
ac_header_compiler=no
2043
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2045
$as_echo "$ac_header_compiler" >&6; }
2047
# Is the header present?
2048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2049
$as_echo_n "checking $2 presence... " >&6; }
2050
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051
/* end confdefs.h. */
2054
if ac_fn_c_try_cpp "$LINENO"; then :
2055
ac_header_preproc=yes
2057
ac_header_preproc=no
2059
rm -f conftest.err conftest.i conftest.$ac_ext
2060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2061
$as_echo "$ac_header_preproc" >&6; }
2063
# So? What about this header?
2064
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2066
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2067
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2068
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2069
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2072
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2073
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2074
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2075
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2076
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2077
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2078
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2079
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2080
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2081
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2082
( $as_echo "## ------------------------------------- ##
2083
## Report this to scalasca@fz-juelich.de ##
2084
## ------------------------------------- ##"
2085
) | sed "s/^/$as_me: WARNING: /" >&2
2088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089
$as_echo_n "checking for $2... " >&6; }
2090
if eval \${$3+:} false; then :
2091
$as_echo_n "(cached) " >&6
2093
eval "$3=\$ac_header_compiler"
2096
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097
$as_echo "$ac_res" >&6; }
2099
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101
} # ac_fn_c_check_header_mongrel
2102
cat >config.log <<_ACEOF
2103
This file contains any messages produced by compilers while
2104
running configure, to aid debugging if configure makes a mistake.
2106
It was created by CubeW $as_me 4.4-RC1, which was
2107
generated by GNU Autoconf 2.69. Invocation command line was
2119
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2120
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2121
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2122
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2123
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2125
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2126
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2128
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2129
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2130
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2131
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2132
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2133
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2134
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2138
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142
test -z "$as_dir" && as_dir=.
2143
$as_echo "PATH: $as_dir"
2159
# Keep a trace of the command line.
2160
# Strip out --no-create and --no-recursion so they do not pile up.
2161
# Strip out --silent because we don't want to record it for future runs.
2162
# Also quote any args containing shell meta-characters.
2163
# Make two passes to allow for proper duplicate-argument suppression.
2167
ac_must_keep_next=false
2173
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2174
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2175
| -silent | --silent | --silen | --sile | --sil)
2178
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2181
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2183
as_fn_append ac_configure_args1 " '$ac_arg'"
2184
if test $ac_must_keep_next = true; then
2185
ac_must_keep_next=false # Got value, back to normal.
2188
*=* | --config-cache | -C | -disable-* | --disable-* \
2189
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2190
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2191
| -with-* | --with-* | -without-* | --without-* | --x)
2192
case "$ac_configure_args0 " in
2193
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2196
-* ) ac_must_keep_next=true ;;
2199
as_fn_append ac_configure_args " '$ac_arg'"
2204
{ ac_configure_args0=; unset ac_configure_args0;}
2205
{ ac_configure_args1=; unset ac_configure_args1;}
2207
# When interrupted or exit'd, cleanup temporary files, and complete
2208
# config.log. We remove comments because anyway the quotes in there
2209
# would cause problems or look ugly.
2210
# WARNING: Use '\'' to represent an apostrophe within the trap.
2211
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2212
trap 'exit_status=$?
2213
# Save into config.log some information that might help in debugging.
2217
$as_echo "## ---------------- ##
2218
## Cache variables. ##
2219
## ---------------- ##"
2221
# The following way of writing the cache mishandles newlines in values,
2223
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2224
eval ac_val=\$$ac_var
2228
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2229
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2232
_ | IFS | as_nl) ;; #(
2233
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2234
*) { eval $ac_var=; unset $ac_var;} ;;
2239
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2240
*${as_nl}ac_space=\ *)
2242
"s/'\''/'\''\\\\'\'''\''/g;
2243
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2246
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2253
$as_echo "## ----------------- ##
2254
## Output variables. ##
2255
## ----------------- ##"
2257
for ac_var in $ac_subst_vars
2259
eval ac_val=\$$ac_var
2261
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2263
$as_echo "$ac_var='\''$ac_val'\''"
2267
if test -n "$ac_subst_files"; then
2268
$as_echo "## ------------------- ##
2269
## File substitutions. ##
2270
## ------------------- ##"
2272
for ac_var in $ac_subst_files
2274
eval ac_val=\$$ac_var
2276
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2278
$as_echo "$ac_var='\''$ac_val'\''"
2283
if test -s confdefs.h; then
2284
$as_echo "## ----------- ##
2291
test "$ac_signal" != 0 &&
2292
$as_echo "$as_me: caught signal $ac_signal"
2293
$as_echo "$as_me: exit $exit_status"
2295
rm -f core *.core core.conftest.* &&
2296
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2299
for ac_signal in 1 2 13 15; do
2300
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2304
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2305
rm -f -r conftest* confdefs.h
2307
$as_echo "/* confdefs.h */" > confdefs.h
2309
# Predefined preprocessor variables.
2311
cat >>confdefs.h <<_ACEOF
2312
#define PACKAGE_NAME "$PACKAGE_NAME"
2315
cat >>confdefs.h <<_ACEOF
2316
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2319
cat >>confdefs.h <<_ACEOF
2320
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2323
cat >>confdefs.h <<_ACEOF
2324
#define PACKAGE_STRING "$PACKAGE_STRING"
2327
cat >>confdefs.h <<_ACEOF
2328
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2331
cat >>confdefs.h <<_ACEOF
2332
#define PACKAGE_URL "$PACKAGE_URL"
2336
# Let the site file select an alternate cache file if it wants to.
2337
# Prefer an explicitly selected file to automatically selected ones.
2340
if test -n "$CONFIG_SITE"; then
2341
# We do not want a PATH search for config.site.
2342
case $CONFIG_SITE in #((
2343
-*) ac_site_file1=./$CONFIG_SITE;;
2344
*/*) ac_site_file1=$CONFIG_SITE;;
2345
*) ac_site_file1=./$CONFIG_SITE;;
2347
elif test "x$prefix" != xNONE; then
2348
ac_site_file1=$prefix/share/config.site
2349
ac_site_file2=$prefix/etc/config.site
2351
ac_site_file1=$ac_default_prefix/share/config.site
2352
ac_site_file2=$ac_default_prefix/etc/config.site
2354
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2356
test "x$ac_site_file" = xNONE && continue
2357
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2358
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2359
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2360
sed 's/^/| /' "$ac_site_file" >&5
2362
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2363
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2364
as_fn_error $? "failed to load site script $ac_site_file
2365
See \`config.log' for more details" "$LINENO" 5; }
2369
if test -r "$cache_file"; then
2370
# Some versions of bash will fail to source /dev/null (special files
2371
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2372
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2373
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2374
$as_echo "$as_me: loading cache $cache_file" >&6;}
2376
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2377
*) . "./$cache_file";;
2381
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2382
$as_echo "$as_me: creating cache $cache_file" >&6;}
2386
# Check that the precious variables saved in the cache have kept the same
2388
ac_cache_corrupted=false
2389
for ac_var in $ac_precious_vars; do
2390
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2391
eval ac_new_set=\$ac_env_${ac_var}_set
2392
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2393
eval ac_new_val=\$ac_env_${ac_var}_value
2394
case $ac_old_set,$ac_new_set in
2396
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2397
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2398
ac_cache_corrupted=: ;;
2400
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2401
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2402
ac_cache_corrupted=: ;;
2405
if test "x$ac_old_val" != "x$ac_new_val"; then
2406
# differences in whitespace do not lead to failure.
2407
ac_old_val_w=`echo x $ac_old_val`
2408
ac_new_val_w=`echo x $ac_new_val`
2409
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2410
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2411
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2412
ac_cache_corrupted=:
2414
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2415
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2416
eval $ac_var=\$ac_old_val
2418
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2419
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2420
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2421
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2424
# Pass precious variables to config.status.
2425
if test "$ac_new_set" = set; then
2427
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2428
*) ac_arg=$ac_var=$ac_new_val ;;
2430
case " $ac_configure_args " in
2431
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2432
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2436
if $ac_cache_corrupted; then
2437
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2438
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2439
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2440
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2441
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2443
## -------------------- ##
2444
## Main body of script. ##
2445
## -------------------- ##
2448
ac_cpp='$CPP $CPPFLAGS'
2449
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454
LIBRARY_INTERFACE_VERSION=8:0:1
2457
cat >>confdefs.h <<_ACEOF
2458
#define LIBRARY_INTERFACE_VERSION "$LIBRARY_INTERFACE_VERSION"
2461
_lcl_receval="${libexecdir}/${PACKAGE}"
2462
PKGLIBEXECDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
2463
test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
2465
while test "$_lcl_receval_old" != "$_lcl_receval"; do
2466
_lcl_receval_old="$_lcl_receval"
2467
eval _lcl_receval="\"$_lcl_receval\""
2469
echo "$_lcl_receval")`
2471
cat >>confdefs.h <<_ACEOF
2472
#define PKGLIBEXECDIR "${PKGLIBEXECDIR}"
2475
_lcl_receval="${includedir}"
2476
INCLUDEDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
2477
test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
2479
while test "$_lcl_receval_old" != "$_lcl_receval"; do
2480
_lcl_receval_old="$_lcl_receval"
2481
eval _lcl_receval="\"$_lcl_receval\""
2483
echo "$_lcl_receval")`
2485
_lcl_receval="${bindir}"
2486
BINDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
2487
test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
2489
while test "$_lcl_receval_old" != "$_lcl_receval"; do
2490
_lcl_receval_old="$_lcl_receval"
2491
eval _lcl_receval="\"$_lcl_receval\""
2493
echo "$_lcl_receval")`
2495
_lcl_receval="${libdir}/${PACKAGE}"
2496
PKGLIBDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
2497
test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
2499
while test "$_lcl_receval_old" != "$_lcl_receval"; do
2500
_lcl_receval_old="$_lcl_receval"
2501
eval _lcl_receval="\"$_lcl_receval\""
2503
echo "$_lcl_receval")`
2505
_lcl_receval="${libdir}${backend_suffix}/${PACKAGE}"
2506
BACKEND_PKGLIBDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
2507
test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
2509
while test "$_lcl_receval_old" != "$_lcl_receval"; do
2510
_lcl_receval_old="$_lcl_receval"
2511
eval _lcl_receval="\"$_lcl_receval\""
2513
echo "$_lcl_receval")`
2515
_lcl_receval="${datadir}/${PACKAGE}"
2516
PKGDATADIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
2517
test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
2519
while test "$_lcl_receval_old" != "$_lcl_receval"; do
2520
_lcl_receval_old="$_lcl_receval"
2521
eval _lcl_receval="\"$_lcl_receval\""
2523
echo "$_lcl_receval")`
2526
cat >>confdefs.h <<_ACEOF
2527
#define PKGDATADIR "${PKGDATADIR}"
2530
_lcl_receval="${docdir}"
2531
DOCDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
2532
test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
2534
while test "$_lcl_receval_old" != "$_lcl_receval"; do
2535
_lcl_receval_old="$_lcl_receval"
2536
eval _lcl_receval="\"$_lcl_receval\""
2538
echo "$_lcl_receval")`
2542
## Where to find auxiliary build tools & local macros
2544
for ac_dir in ../build-config "$srcdir"/../build-config; do
2545
if test -f "$ac_dir/install-sh"; then
2547
ac_install_sh="$ac_aux_dir/install-sh -c"
2549
elif test -f "$ac_dir/install.sh"; then
2551
ac_install_sh="$ac_aux_dir/install.sh -c"
2553
elif test -f "$ac_dir/shtool"; then
2555
ac_install_sh="$ac_aux_dir/shtool install -c"
2559
if test -z "$ac_aux_dir"; then
2560
as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../build-config \"$srcdir\"/../build-config" "$LINENO" 5
2563
# These three variables are undocumented and unsupported,
2564
# and are intended to be withdrawn in a future Autoconf release.
2565
# They can cause serious problems if a builder's source tree is in a directory
2566
# whose full name contains unusual characters.
2567
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2568
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2569
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2579
## Define frontend-specific environment variables
2587
## Consistency checks for compilers
2589
if test "x${ac_cv_env_CC_FOR_BUILD_set}" != "xset"; then
2590
as_fn_error 1 "argument CC_FOR_BUILD not provided in configure call." "$LINENO" 5
2594
if test "x${ac_cv_env_CXX_FOR_BUILD_set}" != "xset"; then
2595
as_fn_error 1 "argument CXX_FOR_BUILD not provided in configure call." "$LINENO" 5
2599
## Convert compilers & flags
2601
if test "x${ac_cv_env_CC_FOR_BUILD_set}" != "xset"; then
2602
# don't use the default compiler if nothing is specified for the frontend
2605
CC="$ac_cv_env_CC_FOR_BUILD_value"
2609
if test "x${ac_cv_env_CXX_FOR_BUILD_set}" != "xset"; then
2610
# don't use the default compiler if nothing is specified for the frontend
2613
CXX="$ac_cv_env_CXX_FOR_BUILD_value"
2617
if test "x${ac_cv_env_CPPFLAGS_FOR_BUILD_set}" != "xset"; then
2618
# don't use the default flags if nothing is specified for the frontend
2621
# use the FOR_BUILD flags
2622
CPPFLAGS="$ac_cv_env_CPPFLAGS_FOR_BUILD_value"
2626
if test "x${ac_cv_env_CXXFLAGS_FOR_BUILD_set}" != "xset"; then
2627
# don't use the default flags if nothing is specified for the frontend
2630
# use the FOR_BUILD flags
2631
CXXFLAGS="$ac_cv_env_CXXFLAGS_FOR_BUILD_value"
2635
if test "x${ac_cv_env_CFLAGS_FOR_BUILD_set}" != "xset"; then
2636
# don't use the default flags if nothing is specified for the frontend
2639
# use the FOR_BUILD flags
2640
CFLAGS="$ac_cv_env_CFLAGS_FOR_BUILD_value"
2644
if test "x${ac_cv_env_LDFLAGS_FOR_BUILD_set}" != "xset"; then
2645
# don't use the default flags if nothing is specified for the frontend
2648
# use the FOR_BUILD flags
2649
LDFLAGS="$ac_cv_env_LDFLAGS_FOR_BUILD_value"
2653
if test "x${ac_cv_env_LIBS_FOR_BUILD_set}" != "xset"; then
2654
# don't use the default flags if nothing is specified for the frontend
2657
# use the FOR_BUILD flags
2658
LIBS="$ac_cv_env_LIBS_FOR_BUILD_value"
2663
## Initialize configuration summary
2667
AFS_PACKAGE_name=cubew
2670
AFS_PACKAGE_NAME=CUBEW
2678
cat >>confdefs.h <<_ACEOF
2679
#define AFS_PACKAGE_BUILD "frontend"
2684
AFS_PACKAGE_TO_TOP=../
2688
# when building inplace, $srcdir equals ., ignore $srcdir than
2691
afs_srcdir="../" ;; #(
2693
afs_srcdir="${srcdir}/../" ;;
2695
cat >>confdefs.h <<_ACEOF
2696
#define AFS_PACKAGE_SRCDIR "${afs_srcdir}"
2702
cat >>confdefs.h <<_ACEOF
2703
#define AFS_PACKAGE_BUILD_name frontend
2706
AFS_PACKAGE_BUILD_name=frontend
2710
cat >>confdefs.h <<_ACEOF
2711
#define AFS_PACKAGE_BUILD_NAME FRONTEND
2714
AFS_PACKAGE_BUILD_NAME=FRONTEND
2718
cat >>confdefs.h <<_ACEOF
2719
#define AFS_PACKAGE_name cubew
2724
cat >>confdefs.h <<_ACEOF
2725
#define AFS_PACKAGE_NAME CUBEW
2731
LC_ALL=C find . -name config.summary -exec rm -f '{}' \;
2733
cat >config.summary <<_ACEOF
2738
# Make sure we can run config.sub.
2739
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2740
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2742
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2743
$as_echo_n "checking build system type... " >&6; }
2744
if ${ac_cv_build+:} false; then :
2745
$as_echo_n "(cached) " >&6
2747
ac_build_alias=$build_alias
2748
test "x$ac_build_alias" = x &&
2749
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2750
test "x$ac_build_alias" = x &&
2751
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2752
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2753
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2757
$as_echo "$ac_cv_build" >&6; }
2758
case $ac_cv_build in
2760
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2763
ac_save_IFS=$IFS; IFS='-'
2769
# Remember, the first character of IFS is used to create $*,
2770
# except with old shells:
2773
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2779
if test "x${ac_scorep_platform}" = "xaltix"; then
2780
PLATFORM_ALTIX_TRUE=
2781
PLATFORM_ALTIX_FALSE='#'
2783
PLATFORM_ALTIX_TRUE='#'
2784
PLATFORM_ALTIX_FALSE=
2787
if test "x${ac_scorep_platform}" = "xaix" && test "x${build_cpu}" = "xpowerpc"; then
2789
PLATFORM_AIX_FALSE='#'
2791
PLATFORM_AIX_TRUE='#'
2795
if test "x${ac_scorep_platform}" = "xbgl"; then
2797
PLATFORM_BGL_FALSE='#'
2799
PLATFORM_BGL_TRUE='#'
2803
if test "x${ac_scorep_platform}" = "xbgp"; then
2805
PLATFORM_BGP_FALSE='#'
2807
PLATFORM_BGP_TRUE='#'
2811
if test "x${ac_scorep_platform}" = "xbgq"; then
2813
PLATFORM_BGQ_FALSE='#'
2815
PLATFORM_BGQ_TRUE='#'
2819
if test "x${ac_scorep_platform}" = "xcrayxt"; then
2820
PLATFORM_CRAYXT_TRUE=
2821
PLATFORM_CRAYXT_FALSE='#'
2823
PLATFORM_CRAYXT_TRUE='#'
2824
PLATFORM_CRAYXT_FALSE=
2827
if test "x${ac_scorep_platform}" = "xcrayxe"; then
2828
PLATFORM_CRAYXE_TRUE=
2829
PLATFORM_CRAYXE_FALSE='#'
2831
PLATFORM_CRAYXE_TRUE='#'
2832
PLATFORM_CRAYXE_FALSE=
2835
if test "x${ac_scorep_platform}" = "xcrayxk"; then
2836
PLATFORM_CRAYXK_TRUE=
2837
PLATFORM_CRAYXK_FALSE='#'
2839
PLATFORM_CRAYXK_TRUE='#'
2840
PLATFORM_CRAYXK_FALSE=
2843
if test "x${ac_scorep_platform}" = "xcrayxc"; then
2844
PLATFORM_CRAYXC_TRUE=
2845
PLATFORM_CRAYXC_FALSE='#'
2847
PLATFORM_CRAYXC_TRUE='#'
2848
PLATFORM_CRAYXC_FALSE=
2851
if test "x${ac_scorep_platform}" = "xlinux"; then
2852
PLATFORM_LINUX_TRUE=
2853
PLATFORM_LINUX_FALSE='#'
2855
PLATFORM_LINUX_TRUE='#'
2856
PLATFORM_LINUX_FALSE=
2859
if test "x${ac_scorep_platform}" = "xsolaris"; then
2860
PLATFORM_SOLARIS_TRUE=
2861
PLATFORM_SOLARIS_FALSE='#'
2863
PLATFORM_SOLARIS_TRUE='#'
2864
PLATFORM_SOLARIS_FALSE=
2867
if test "x${ac_scorep_platform}" = "xmac"; then
2869
PLATFORM_MAC_FALSE='#'
2871
PLATFORM_MAC_TRUE='#'
2875
if test "x${ac_scorep_platform}" = "xmingw"; then
2876
PLATFORM_MINGW_TRUE=
2877
PLATFORM_MINGW_FALSE='#'
2879
PLATFORM_MINGW_TRUE='#'
2880
PLATFORM_MINGW_FALSE=
2883
if test "x${ac_scorep_platform}" = "xcygwin"; then
2884
PLATFORM_CYGWIN_TRUE=
2885
PLATFORM_CYGWIN_FALSE='#'
2887
PLATFORM_CYGWIN_TRUE='#'
2888
PLATFORM_CYGWIN_FALSE=
2891
if test "x${ac_scorep_platform}" = "xmic"; then
2893
PLATFORM_MIC_FALSE='#'
2895
PLATFORM_MIC_TRUE='#'
2899
if test "x${ac_scorep_platform}" = "xnecsx"; then
2900
PLATFORM_NECSX_TRUE=
2901
PLATFORM_NECSX_FALSE='#'
2903
PLATFORM_NECSX_TRUE='#'
2904
PLATFORM_NECSX_FALSE=
2907
if test "x${ac_scorep_platform}" = "xarm"; then
2909
PLATFORM_ARM_FALSE='#'
2911
PLATFORM_ARM_TRUE='#'
2915
if test "x${ac_scorep_platform}" = "xmingw"; then
2916
PLATFORM_MINGW_TRUE=
2917
PLATFORM_MINGW_FALSE='#'
2919
PLATFORM_MINGW_TRUE='#'
2920
PLATFORM_MINGW_FALSE=
2923
if test "x${ac_scorep_platform}" = "xk"; then
2925
PLATFORM_K_FALSE='#'
2931
if test "x${ac_scorep_platform}" = "xfx10"; then
2933
PLATFORM_FX10_FALSE='#'
2935
PLATFORM_FX10_TRUE='#'
2936
PLATFORM_FX10_FALSE=
2939
if test "x${ac_scorep_platform}" = "xfx100"; then
2940
PLATFORM_FX100_TRUE=
2941
PLATFORM_FX100_FALSE='#'
2943
PLATFORM_FX100_TRUE='#'
2944
PLATFORM_FX100_FALSE=
2948
case ${ac_scorep_platform} in #(
2950
afs_platform_cray="yes" ;; #(
2952
afs_platform_cray="no" ;;
2954
if test "x${afs_platform_cray}" = "xyes" ; then
2956
PLATFORM_CRAY_FALSE='#'
2958
PLATFORM_CRAY_TRUE='#'
2959
PLATFORM_CRAY_FALSE=
2963
if test -z "$PLATFORM_ALTIX_TRUE"; then :
2965
$as_echo "#define HAVE_PLATFORM_ALTIX 1" >>confdefs.h
2968
if test -z "$PLATFORM_AIX_TRUE"; then :
2970
$as_echo "#define HAVE_PLATFORM_AIX 1" >>confdefs.h
2973
if test -z "$PLATFORM_BGL_TRUE"; then :
2975
$as_echo "#define HAVE_PLATFORM_BGL 1" >>confdefs.h
2978
if test -z "$PLATFORM_BGP_TRUE"; then :
2980
$as_echo "#define HAVE_PLATFORM_BGP 1" >>confdefs.h
2983
if test -z "$PLATFORM_BGQ_TRUE"; then :
2985
$as_echo "#define HAVE_PLATFORM_BGQ 1" >>confdefs.h
2988
if test -z "$PLATFORM_CRAY_TRUE"; then :
2990
$as_echo "#define HAVE_PLATFORM_CRAY 1" >>confdefs.h
2993
if test -z "$PLATFORM_CRAYXT_TRUE"; then :
2995
$as_echo "#define HAVE_PLATFORM_CRAYXT 1" >>confdefs.h
2998
if test -z "$PLATFORM_CRAYXE_TRUE"; then :
3000
$as_echo "#define HAVE_PLATFORM_CRAYXE 1" >>confdefs.h
3003
if test -z "$PLATFORM_CRAYXK_TRUE"; then :
3005
$as_echo "#define HAVE_PLATFORM_CRAYXK 1" >>confdefs.h
3008
if test -z "$PLATFORM_CRAYXC_TRUE"; then :
3010
$as_echo "#define HAVE_PLATFORM_CRAYXC 1" >>confdefs.h
3013
if test -z "$PLATFORM_LINUX_TRUE"; then :
3015
$as_echo "#define HAVE_PLATFORM_LINUX 1" >>confdefs.h
3018
if test -z "$PLATFORM_SOLARIS_TRUE"; then :
3020
$as_echo "#define HAVE_PLATFORM_SOLARIS 1" >>confdefs.h
3023
if test -z "$PLATFORM_MAC_TRUE"; then :
3025
$as_echo "#define HAVE_PLATFORM_MAC 1" >>confdefs.h
3028
if test -z "$PLATFORM_MINGW_TRUE"; then :
3030
$as_echo "#define HAVE_PLATFORM_MINGW 1" >>confdefs.h
3033
if test -z "$PLATFORM_CYGWIN_TRUE"; then :
3035
$as_echo "#define HAVE_PLATFORM_CYGWIN 1" >>confdefs.h
3038
if test -z "$PLATFORM_MIC_TRUE"; then :
3040
$as_echo "#define HAVE_PLATFORM_MIC 1" >>confdefs.h
3043
if test -z "$PLATFORM_NECSX_TRUE"; then :
3045
$as_echo "#define HAVE_PLATFORM_NECSX 1" >>confdefs.h
3048
if test -z "$PLATFORM_ARM_TRUE"; then :
3050
$as_echo "#define HAVE_PLATFORM_ARM 1" >>confdefs.h
3053
if test -z "$PLATFORM_MINGW_TRUE"; then :
3055
$as_echo "#define HAVE_PLATFORM_MINGW 1" >>confdefs.h
3058
if test -z "$PLATFORM_K_TRUE"; then :
3060
$as_echo "#define HAVE_PLATFORM_K 1" >>confdefs.h
3063
if test -z "$PLATFORM_FX10_TRUE"; then :
3065
$as_echo "#define HAVE_PLATFORM_FX10 1" >>confdefs.h
3068
if test -z "$PLATFORM_FX100_TRUE"; then :
3070
$as_echo "#define HAVE_PLATFORM_FX100 1" >>confdefs.h
3075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Intel MIC build" >&5
3076
$as_echo_n "checking for native Intel MIC build... " >&6; }
3077
cubew_have_mic_support=no
3078
if test -z "$PLATFORM_MIC_TRUE"; then :
3080
if as_fn_executable_p ${PKGLIBEXECDIR}/cubew-config-mic; then :
3081
cubew_have_mic_support=yes
3083
$as_echo "#define HAVE_MIC_SUPPORT 1" >>confdefs.h
3089
if test x$cubew_have_mic_support = "xyes"; then
3091
MIC_SUPPORT_FALSE='#'
3093
MIC_SUPPORT_TRUE='#'
3097
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cubew_have_mic_support" >&5
3098
$as_echo "$cubew_have_mic_support" >&6; }
3101
## Set (non-)cross compilation mode
3102
if test "x${ac_scorep_cross_compiling}" != "xyes" && \
3103
test "x${ac_scorep_cross_compiling}" != "xno"; then :
3104
as_fn_error 1 "invalid value '$ac_scorep_cross_compiling' for variable \$ac_scorep_cross_compiling." "$LINENO" 5
3106
if test "x${ac_scorep_cross_compiling}" = "xyes"; then
3108
CROSS_BUILD_FALSE='#'
3110
CROSS_BUILD_TRUE='#'
3114
cross_compiling=${ac_scorep_cross_compiling}
3115
# used for EXTRA_DIST in Makefile.am
3118
## Set convenience variables for macros
3119
ac_scorep_backend=no
3120
ac_scorep_frontend=yes
3123
##--- Package-specific configuration ----------------------------------------
3125
am__api_version='1.13'
3127
# Find a good install program. We prefer a C program (faster),
3128
# so one script is as good as another. But avoid the broken or
3129
# incompatible versions:
3130
# SysV /etc/install, /usr/sbin/install
3131
# SunOS /usr/etc/install
3132
# IRIX /sbin/install
3134
# AmigaOS /C/install, which installs bootblocks on floppy discs
3135
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3136
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3137
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3138
# OS/2's system install, which has a completely different semantic
3139
# ./install, which can be erroneously created by make from ./install.sh.
3140
# Reject install programs that cannot install multiple files.
3141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3142
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3143
if test -z "$INSTALL"; then
3144
if ${ac_cv_path_install+:} false; then :
3145
$as_echo_n "(cached) " >&6
3147
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151
test -z "$as_dir" && as_dir=.
3152
# Account for people who put trailing slashes in PATH elements.
3153
case $as_dir/ in #((
3154
./ | .// | /[cC]/* | \
3155
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3156
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3159
# OSF1 and SCO ODT 3.0 have their own names for install.
3160
# Don't use installbsd from OSF since it installs stuff as root
3162
for ac_prog in ginstall scoinst install; do
3163
for ac_exec_ext in '' $ac_executable_extensions; do
3164
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3165
if test $ac_prog = install &&
3166
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3167
# AIX install. It has an incompatible calling convention.
3169
elif test $ac_prog = install &&
3170
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3171
# program-specific install script used by HP pwplus--don't use.
3174
rm -rf conftest.one conftest.two conftest.dir
3175
echo one > conftest.one
3176
echo two > conftest.two
3178
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3179
test -s conftest.one && test -s conftest.two &&
3180
test -s conftest.dir/conftest.one &&
3181
test -s conftest.dir/conftest.two
3183
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3196
rm -rf conftest.one conftest.two conftest.dir
3199
if test "${ac_cv_path_install+set}" = set; then
3200
INSTALL=$ac_cv_path_install
3202
# As a last resort, use the slow shell script. Don't cache a
3203
# value for INSTALL within a source directory, because that will
3204
# break other packages using the cache if that directory is
3205
# removed, or if the value is a relative name.
3206
INSTALL=$ac_install_sh
3209
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3210
$as_echo "$INSTALL" >&6; }
3212
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3213
# It thinks the first close brace ends the variable substitution.
3214
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3216
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3218
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3220
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3221
$as_echo_n "checking whether build environment is sane... " >&6; }
3222
# Reject unsafe characters in $srcdir or the absolute working directory
3223
# name. Accept space and tab only in the latter.
3227
*[\\\"\#\$\&\'\`$am_lf]*)
3228
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3231
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3232
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3235
# Do 'set' in a subshell so we don't clobber the current shell's
3236
# arguments. Must try -L first in case configure is actually a
3237
# symlink; some systems play weird games with the mod time of symlinks
3238
# (eg FreeBSD returns the mod time of the symlink's containing
3242
for am_try in 1 2; do
3243
echo "timestamp, slept: $am_has_slept" > conftest.file
3244
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3245
if test "$*" = "X"; then
3247
set X `ls -t "$srcdir/configure" conftest.file`
3249
if test "$*" != "X $srcdir/configure conftest.file" \
3250
&& test "$*" != "X conftest.file $srcdir/configure"; then
3252
# If neither matched, then we have a broken ls. This can happen
3253
# if, for instance, CONFIG_SHELL is bash and it inherits a
3254
# broken ls alias from the environment. This has actually
3255
# happened. Such a system could not be considered "sane".
3256
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3257
alias in your environment" "$LINENO" 5
3259
if test "$2" = conftest.file || test $am_try -eq 2; then
3266
test "$2" = conftest.file
3272
as_fn_error $? "newly created file is older than distributed files!
3273
Check your system clock" "$LINENO" 5
3275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276
$as_echo "yes" >&6; }
3277
# If we didn't sleep, we still need to ensure time stamps of config.status and
3278
# generated files are strictly newer.
3280
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3287
test "$program_prefix" != NONE &&
3288
program_transform_name="s&^&$program_prefix&;$program_transform_name"
3289
# Use a double $ so make ignores it.
3290
test "$program_suffix" != NONE &&
3291
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3292
# Double any \ or $.
3293
# By default was `s,x,x', remove it if useless.
3294
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3295
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3297
# expand $ac_aux_dir to an absolute path
3298
am_aux_dir=`cd $ac_aux_dir && pwd`
3300
if test x"${MISSING+set}" != xset; then
3303
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3305
MISSING="\${SHELL} $am_aux_dir/missing" ;;
3308
# Use eval to expand $SHELL
3309
if eval "$MISSING --is-lightweight"; then
3310
am_missing_run="$MISSING "
3313
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3314
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3317
if test x"${install_sh}" != xset; then
3320
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3322
install_sh="\${SHELL} $am_aux_dir/install-sh"
3326
# Installed binaries are usually stripped using 'strip' when the user
3327
# run "make install-strip". However 'strip' might not be the right
3328
# tool to use in cross-compilation environments, therefore Automake
3329
# will honor the 'STRIP' environment variable to overrule this program.
3330
if test "$cross_compiling" != no; then
3331
if test -n "$ac_tool_prefix"; then
3332
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3333
set dummy ${ac_tool_prefix}strip; ac_word=$2
3334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335
$as_echo_n "checking for $ac_word... " >&6; }
3336
if ${ac_cv_prog_STRIP+:} false; then :
3337
$as_echo_n "(cached) " >&6
3339
if test -n "$STRIP"; then
3340
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346
test -z "$as_dir" && as_dir=.
3347
for ac_exec_ext in '' $ac_executable_extensions; do
3348
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3350
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359
STRIP=$ac_cv_prog_STRIP
3360
if test -n "$STRIP"; then
3361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3362
$as_echo "$STRIP" >&6; }
3364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365
$as_echo "no" >&6; }
3370
if test -z "$ac_cv_prog_STRIP"; then
3372
# Extract the first word of "strip", so it can be a program name with args.
3373
set dummy strip; ac_word=$2
3374
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375
$as_echo_n "checking for $ac_word... " >&6; }
3376
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3377
$as_echo_n "(cached) " >&6
3379
if test -n "$ac_ct_STRIP"; then
3380
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386
test -z "$as_dir" && as_dir=.
3387
for ac_exec_ext in '' $ac_executable_extensions; do
3388
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389
ac_cv_prog_ac_ct_STRIP="strip"
3390
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3400
if test -n "$ac_ct_STRIP"; then
3401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3402
$as_echo "$ac_ct_STRIP" >&6; }
3404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405
$as_echo "no" >&6; }
3408
if test "x$ac_ct_STRIP" = x; then
3411
case $cross_compiling:$ac_tool_warned in
3413
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3414
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3415
ac_tool_warned=yes ;;
3420
STRIP="$ac_cv_prog_STRIP"
3424
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3426
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3427
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3428
if test -z "$MKDIR_P"; then
3429
if ${ac_cv_path_mkdir+:} false; then :
3430
$as_echo_n "(cached) " >&6
3432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3436
test -z "$as_dir" && as_dir=.
3437
for ac_prog in mkdir gmkdir; do
3438
for ac_exec_ext in '' $ac_executable_extensions; do
3439
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3440
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3441
'mkdir (GNU coreutils) '* | \
3442
'mkdir (coreutils) '* | \
3443
'mkdir (fileutils) '4.1*)
3444
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3454
test -d ./--version && rmdir ./--version
3455
if test "${ac_cv_path_mkdir+set}" = set; then
3456
MKDIR_P="$ac_cv_path_mkdir -p"
3458
# As a last resort, use the slow shell script. Don't cache a
3459
# value for MKDIR_P within a source directory, because that will
3460
# break other packages using the cache if that directory is
3461
# removed, or if the value is a relative name.
3462
MKDIR_P="$ac_install_sh -d"
3465
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3466
$as_echo "$MKDIR_P" >&6; }
3468
for ac_prog in gawk mawk nawk awk
3470
# Extract the first word of "$ac_prog", so it can be a program name with args.
3471
set dummy $ac_prog; ac_word=$2
3472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473
$as_echo_n "checking for $ac_word... " >&6; }
3474
if ${ac_cv_prog_AWK+:} false; then :
3475
$as_echo_n "(cached) " >&6
3477
if test -n "$AWK"; then
3478
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3480
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484
test -z "$as_dir" && as_dir=.
3485
for ac_exec_ext in '' $ac_executable_extensions; do
3486
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487
ac_cv_prog_AWK="$ac_prog"
3488
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498
if test -n "$AWK"; then
3499
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3500
$as_echo "$AWK" >&6; }
3502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503
$as_echo "no" >&6; }
3507
test -n "$AWK" && break
3510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3511
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3513
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3514
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3515
$as_echo_n "(cached) " >&6
3517
cat >conftest.make <<\_ACEOF
3520
@echo '@@@%%%=$(MAKE)=@@@%%%'
3522
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3523
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3525
eval ac_cv_prog_make_${ac_make}_set=yes;;
3527
eval ac_cv_prog_make_${ac_make}_set=no;;
3531
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3533
$as_echo "yes" >&6; }
3536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537
$as_echo "no" >&6; }
3538
SET_MAKE="MAKE=${MAKE-make}"
3541
rm -rf .tst 2>/dev/null
3542
mkdir .tst 2>/dev/null
3543
if test -d .tst; then
3548
rmdir .tst 2>/dev/null
3550
# Check whether --enable-silent-rules was given.
3551
if test "${enable_silent_rules+set}" = set; then :
3552
enableval=$enable_silent_rules;
3555
case $enable_silent_rules in # (((
3556
yes) AM_DEFAULT_VERBOSITY=0;;
3557
no) AM_DEFAULT_VERBOSITY=1;;
3558
*) AM_DEFAULT_VERBOSITY=1;;
3560
am_make=${MAKE-make}
3561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3562
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3563
if ${am_cv_make_support_nested_variables+:} false; then :
3564
$as_echo_n "(cached) " >&6
3566
if $as_echo 'TRUE=$(BAR$(V))
3572
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3573
am_cv_make_support_nested_variables=yes
3575
am_cv_make_support_nested_variables=no
3578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3579
$as_echo "$am_cv_make_support_nested_variables" >&6; }
3580
if test $am_cv_make_support_nested_variables = yes; then
3582
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3584
AM_V=$AM_DEFAULT_VERBOSITY
3585
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3589
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3590
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3591
# is not polluted with repeated "-I."
3592
am__isrc=' -I$(srcdir)'
3593
# test to see if srcdir already configured
3594
if test -f $srcdir/config.status; then
3595
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3599
# test whether we have cygpath
3600
if test -z "$CYGPATH_W"; then
3601
if (cygpath --version) >/dev/null 2>/dev/null; then
3602
CYGPATH_W='cygpath -w'
3609
# Define the identity of the package.
3614
cat >>confdefs.h <<_ACEOF
3615
#define PACKAGE "$PACKAGE"
3619
cat >>confdefs.h <<_ACEOF
3620
#define VERSION "$VERSION"
3623
# Some tools Automake needs.
3625
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3628
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3631
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3634
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3637
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3639
# For better backward compatibility. To be removed once Automake 1.9.x
3640
# dies out for good. For more background, see:
3641
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3642
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3643
mkdir_p='$(MKDIR_P)'
3645
# We need awk for the "check" target. The system "awk" is bad on
3647
# Always define AMTAR for backward compatibility. Yes, it's still used
3648
# in the wild :-( We should find a proper way to deprecate it ...
3652
# We'll loop over all known methods to create a tar archive until one works.
3653
_am_tools='gnutar pax cpio none'
3657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3658
$as_echo_n "checking how to create a pax tar archive... " >&6; }
3660
# Go ahead even if we have the value already cached. We do so because we
3661
# need to set the values for the 'am__tar' and 'am__untar' variables.
3662
_am_tools=${am_cv_prog_tar_pax-$_am_tools}
3664
for _am_tool in $_am_tools; do
3667
for _am_tar in tar gnutar gtar; do
3668
{ echo "$as_me:$LINENO: $_am_tar --version" >&5
3669
($_am_tar --version) >&5 2>&5
3671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672
(exit $ac_status); } && break
3674
am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3675
am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3676
am__untar="$_am_tar -xf -"
3679
# Must skip GNU tar: if it does not support --format= it doesn't create
3680
# ustar tarball either.
3681
(tar --version) >/dev/null 2>&1 && continue
3682
am__tar='tar chf - "$$tardir"'
3683
am__tar_='tar chf - "$tardir"'
3684
am__untar='tar xf -'
3687
am__tar='pax -L -x pax -w "$$tardir"'
3688
am__tar_='pax -L -x pax -w "$tardir"'
3692
am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3693
am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3694
am__untar='cpio -i -H pax -d'
3703
# If the value was cached, stop now. We just wanted to have am__tar
3704
# and am__untar set.
3705
test -n "${am_cv_prog_tar_pax}" && break
3707
# tar/untar a dummy directory, and stop if the command works.
3710
echo GrepMe > conftest.dir/file
3711
{ echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3712
(tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715
(exit $ac_status); }
3717
if test -s conftest.tar; then
3718
{ echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3719
($am__untar <conftest.tar) >&5 2>&5
3721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722
(exit $ac_status); }
3723
{ echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3724
(cat conftest.dir/file) >&5 2>&5
3726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727
(exit $ac_status); }
3728
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3733
if ${am_cv_prog_tar_pax+:} false; then :
3734
$as_echo_n "(cached) " >&6
3736
am_cv_prog_tar_pax=$_am_tool
3739
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3740
$as_echo "$am_cv_prog_tar_pax" >&6; }
3747
# Check whether --enable-silent-rules was given.
3748
if test "${enable_silent_rules+set}" = set; then :
3749
enableval=$enable_silent_rules;
3752
case $enable_silent_rules in # (((
3753
yes) AM_DEFAULT_VERBOSITY=0;;
3754
no) AM_DEFAULT_VERBOSITY=1;;
3755
*) AM_DEFAULT_VERBOSITY=0;;
3757
am_make=${MAKE-make}
3758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3759
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3760
if ${am_cv_make_support_nested_variables+:} false; then :
3761
$as_echo_n "(cached) " >&6
3763
if $as_echo 'TRUE=$(BAR$(V))
3769
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3770
am_cv_make_support_nested_variables=yes
3772
am_cv_make_support_nested_variables=no
3775
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3776
$as_echo "$am_cv_make_support_nested_variables" >&6; }
3777
if test $am_cv_make_support_nested_variables = yes; then
3779
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3781
AM_V=$AM_DEFAULT_VERBOSITY
3782
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3786
DEPDIR="${am__leading_dot}deps"
3788
ac_config_commands="$ac_config_commands depfiles"
3791
am_make=${MAKE-make}
3792
cat > confinc << 'END'
3794
@echo this is the am__doit target
3797
# If we don't find an include directive, just comment out the code.
3798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3799
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3803
# First try GNU make style include.
3804
echo "include confinc" > confmf
3805
# Ignore all kinds of additional output from 'make'.
3806
case `$am_make -s -f confmf 2> /dev/null` in #(
3807
*the\ am__doit\ target*)
3813
# Now try BSD make style include.
3814
if test "$am__include" = "#"; then
3815
echo '.include "confinc"' > confmf
3816
case `$am_make -s -f confmf 2> /dev/null` in #(
3817
*the\ am__doit\ target*)
3818
am__include=.include
3826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3827
$as_echo "$_am_result" >&6; }
3828
rm -f confinc confmf
3830
# Check whether --enable-dependency-tracking was given.
3831
if test "${enable_dependency_tracking+set}" = set; then :
3832
enableval=$enable_dependency_tracking;
3835
if test "x$enable_dependency_tracking" != xno; then
3836
am_depcomp="$ac_aux_dir/depcomp"
3840
if test "x$enable_dependency_tracking" != xno; then
3850
ac_cpp='$CPP $CPPFLAGS'
3851
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3852
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3853
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3854
if test -n "$ac_tool_prefix"; then
3855
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3856
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858
$as_echo_n "checking for $ac_word... " >&6; }
3859
if ${ac_cv_prog_CC+:} false; then :
3860
$as_echo_n "(cached) " >&6
3862
if test -n "$CC"; then
3863
ac_cv_prog_CC="$CC" # Let the user override the test.
3865
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869
test -z "$as_dir" && as_dir=.
3870
for ac_exec_ext in '' $ac_executable_extensions; do
3871
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3872
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3873
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3883
if test -n "$CC"; then
3884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3885
$as_echo "$CC" >&6; }
3887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888
$as_echo "no" >&6; }
3893
if test -z "$ac_cv_prog_CC"; then
3895
# Extract the first word of "gcc", so it can be a program name with args.
3896
set dummy gcc; ac_word=$2
3897
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898
$as_echo_n "checking for $ac_word... " >&6; }
3899
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3900
$as_echo_n "(cached) " >&6
3902
if test -n "$ac_ct_CC"; then
3903
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3905
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909
test -z "$as_dir" && as_dir=.
3910
for ac_exec_ext in '' $ac_executable_extensions; do
3911
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912
ac_cv_prog_ac_ct_CC="gcc"
3913
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3923
if test -n "$ac_ct_CC"; then
3924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3925
$as_echo "$ac_ct_CC" >&6; }
3927
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928
$as_echo "no" >&6; }
3931
if test "x$ac_ct_CC" = x; then
3934
case $cross_compiling:$ac_tool_warned in
3936
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3937
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3938
ac_tool_warned=yes ;;
3946
if test -z "$CC"; then
3947
if test -n "$ac_tool_prefix"; then
3948
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3949
set dummy ${ac_tool_prefix}cc; ac_word=$2
3950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3951
$as_echo_n "checking for $ac_word... " >&6; }
3952
if ${ac_cv_prog_CC+:} false; then :
3953
$as_echo_n "(cached) " >&6
3955
if test -n "$CC"; then
3956
ac_cv_prog_CC="$CC" # Let the user override the test.
3958
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962
test -z "$as_dir" && as_dir=.
3963
for ac_exec_ext in '' $ac_executable_extensions; do
3964
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3965
ac_cv_prog_CC="${ac_tool_prefix}cc"
3966
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3976
if test -n "$CC"; then
3977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3978
$as_echo "$CC" >&6; }
3980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3981
$as_echo "no" >&6; }
3987
if test -z "$CC"; then
3988
# Extract the first word of "cc", so it can be a program name with args.
3989
set dummy cc; ac_word=$2
3990
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991
$as_echo_n "checking for $ac_word... " >&6; }
3992
if ${ac_cv_prog_CC+:} false; then :
3993
$as_echo_n "(cached) " >&6
3995
if test -n "$CC"; then
3996
ac_cv_prog_CC="$CC" # Let the user override the test.
3999
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003
test -z "$as_dir" && as_dir=.
4004
for ac_exec_ext in '' $ac_executable_extensions; do
4005
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4007
ac_prog_rejected=yes
4011
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4018
if test $ac_prog_rejected = yes; then
4019
# We found a bogon in the path, so make sure we never use it.
4020
set dummy $ac_cv_prog_CC
4022
if test $# != 0; then
4023
# We chose a different compiler from the bogus one.
4024
# However, it has the same basename, so the bogon will be chosen
4025
# first if we set CC to just the basename; use the full file name.
4027
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4033
if test -n "$CC"; then
4034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4035
$as_echo "$CC" >&6; }
4037
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038
$as_echo "no" >&6; }
4043
if test -z "$CC"; then
4044
if test -n "$ac_tool_prefix"; then
4045
for ac_prog in cl.exe
4047
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4048
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050
$as_echo_n "checking for $ac_word... " >&6; }
4051
if ${ac_cv_prog_CC+:} false; then :
4052
$as_echo_n "(cached) " >&6
4054
if test -n "$CC"; then
4055
ac_cv_prog_CC="$CC" # Let the user override the test.
4057
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061
test -z "$as_dir" && as_dir=.
4062
for ac_exec_ext in '' $ac_executable_extensions; do
4063
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4065
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075
if test -n "$CC"; then
4076
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4077
$as_echo "$CC" >&6; }
4079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080
$as_echo "no" >&6; }
4084
test -n "$CC" && break
4087
if test -z "$CC"; then
4089
for ac_prog in cl.exe
4091
# Extract the first word of "$ac_prog", so it can be a program name with args.
4092
set dummy $ac_prog; ac_word=$2
4093
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094
$as_echo_n "checking for $ac_word... " >&6; }
4095
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4096
$as_echo_n "(cached) " >&6
4098
if test -n "$ac_ct_CC"; then
4099
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105
test -z "$as_dir" && as_dir=.
4106
for ac_exec_ext in '' $ac_executable_extensions; do
4107
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108
ac_cv_prog_ac_ct_CC="$ac_prog"
4109
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4118
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4119
if test -n "$ac_ct_CC"; then
4120
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4121
$as_echo "$ac_ct_CC" >&6; }
4123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124
$as_echo "no" >&6; }
4128
test -n "$ac_ct_CC" && break
4131
if test "x$ac_ct_CC" = x; then
4134
case $cross_compiling:$ac_tool_warned in
4136
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4137
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4138
ac_tool_warned=yes ;;
4147
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4148
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4149
as_fn_error $? "no acceptable C compiler found in \$PATH
4150
See \`config.log' for more details" "$LINENO" 5; }
4152
# Provide some information about the compiler.
4153
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4156
for ac_option in --version -v -V -qversion; do
4157
{ { ac_try="$ac_compiler $ac_option >&5"
4159
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160
*) ac_try_echo=$ac_try;;
4162
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4163
$as_echo "$ac_try_echo"; } >&5
4164
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4166
if test -s conftest.err; then
4168
... rest of stderr output deleted ...
4169
10q' conftest.err >conftest.er1
4170
cat conftest.er1 >&5
4172
rm -f conftest.er1 conftest.err
4173
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4174
test $ac_status = 0; }
4177
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178
/* end confdefs.h. */
4188
ac_clean_files_save=$ac_clean_files
4189
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4190
# Try to create an executable without -o first, disregard a.out.
4191
# It will help us diagnose broken compilers, and finding out an intuition
4193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4194
$as_echo_n "checking whether the C compiler works... " >&6; }
4195
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4197
# The possible output files:
4198
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4201
for ac_file in $ac_files
4204
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4205
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
4210
if { { ac_try="$ac_link_default"
4212
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213
*) ac_try_echo=$ac_try;;
4215
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4216
$as_echo "$ac_try_echo"; } >&5
4217
(eval "$ac_link_default") 2>&5
4219
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4220
test $ac_status = 0; }; then :
4221
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4222
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4223
# in a Makefile. We should not override ac_cv_exeext if it was cached,
4224
# so that the user can short-circuit this test for compilers unknown to
4226
for ac_file in $ac_files ''
4228
test -f "$ac_file" || continue
4230
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4233
# We found the default executable, but exeext='' is most
4237
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4239
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4241
# We set ac_cv_exeext here because the later test for it is not
4242
# safe: cross compilers may not add the suffix if given an `-o'
4243
# argument, so we may need to know it at that point already.
4244
# Even if this section looks crufty: it has the advantage of
4251
test "$ac_cv_exeext" = no && ac_cv_exeext=
4256
if test -z "$ac_file"; then :
4257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258
$as_echo "no" >&6; }
4259
$as_echo "$as_me: failed program was:" >&5
4260
sed 's/^/| /' conftest.$ac_ext >&5
4262
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4263
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4264
as_fn_error 77 "C compiler cannot create executables
4265
See \`config.log' for more details" "$LINENO" 5; }
4267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4268
$as_echo "yes" >&6; }
4270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4271
$as_echo_n "checking for C compiler default output file name... " >&6; }
4272
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4273
$as_echo "$ac_file" >&6; }
4274
ac_exeext=$ac_cv_exeext
4276
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4277
ac_clean_files=$ac_clean_files_save
4278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4279
$as_echo_n "checking for suffix of executables... " >&6; }
4280
if { { ac_try="$ac_link"
4282
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283
*) ac_try_echo=$ac_try;;
4285
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286
$as_echo "$ac_try_echo"; } >&5
4287
(eval "$ac_link") 2>&5
4289
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290
test $ac_status = 0; }; then :
4291
# If both `conftest.exe' and `conftest' are `present' (well, observable)
4292
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4293
# work properly (i.e., refer to `conftest.exe'), while it won't with
4295
for ac_file in conftest.exe conftest conftest.*; do
4296
test -f "$ac_file" || continue
4298
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4299
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4305
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4306
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4307
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4308
See \`config.log' for more details" "$LINENO" 5; }
4310
rm -f conftest conftest$ac_cv_exeext
4311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4312
$as_echo "$ac_cv_exeext" >&6; }
4314
rm -f conftest.$ac_ext
4315
EXEEXT=$ac_cv_exeext
4317
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318
/* end confdefs.h. */
4323
FILE *f = fopen ("conftest.out", "w");
4324
return ferror (f) || fclose (f) != 0;
4330
ac_clean_files="$ac_clean_files conftest.out"
4331
# Check that the compiler produces executables we can run. If not, either
4332
# the compiler is broken, or we cross compile.
4333
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4334
$as_echo_n "checking whether we are cross compiling... " >&6; }
4335
if test "$cross_compiling" != yes; then
4336
{ { ac_try="$ac_link"
4338
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339
*) ac_try_echo=$ac_try;;
4341
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342
$as_echo "$ac_try_echo"; } >&5
4343
(eval "$ac_link") 2>&5
4345
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346
test $ac_status = 0; }
4347
if { ac_try='./conftest$ac_cv_exeext'
4348
{ { case "(($ac_try" in
4349
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350
*) ac_try_echo=$ac_try;;
4352
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353
$as_echo "$ac_try_echo"; } >&5
4354
(eval "$ac_try") 2>&5
4356
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357
test $ac_status = 0; }; }; then
4360
if test "$cross_compiling" = maybe; then
4363
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4365
as_fn_error $? "cannot run C compiled programs.
4366
If you meant to cross compile, use \`--host'.
4367
See \`config.log' for more details" "$LINENO" 5; }
4371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4372
$as_echo "$cross_compiling" >&6; }
4374
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4375
ac_clean_files=$ac_clean_files_save
4376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4377
$as_echo_n "checking for suffix of object files... " >&6; }
4378
if ${ac_cv_objext+:} false; then :
4379
$as_echo_n "(cached) " >&6
4381
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382
/* end confdefs.h. */
4392
rm -f conftest.o conftest.obj
4393
if { { ac_try="$ac_compile"
4395
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396
*) ac_try_echo=$ac_try;;
4398
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399
$as_echo "$ac_try_echo"; } >&5
4400
(eval "$ac_compile") 2>&5
4402
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403
test $ac_status = 0; }; then :
4404
for ac_file in conftest.o conftest.obj conftest.*; do
4405
test -f "$ac_file" || continue;
4407
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4408
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4413
$as_echo "$as_me: failed program was:" >&5
4414
sed 's/^/| /' conftest.$ac_ext >&5
4416
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4417
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4418
as_fn_error $? "cannot compute suffix of object files: cannot compile
4419
See \`config.log' for more details" "$LINENO" 5; }
4421
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4424
$as_echo "$ac_cv_objext" >&6; }
4425
OBJEXT=$ac_cv_objext
4427
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4428
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4429
if ${ac_cv_c_compiler_gnu+:} false; then :
4430
$as_echo_n "(cached) " >&6
4432
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433
/* end confdefs.h. */
4446
if ac_fn_c_try_compile "$LINENO"; then :
4451
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4452
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4456
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4457
if test $ac_compiler_gnu = yes; then
4462
ac_test_CFLAGS=${CFLAGS+set}
4463
ac_save_CFLAGS=$CFLAGS
4464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4465
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4466
if ${ac_cv_prog_cc_g+:} false; then :
4467
$as_echo_n "(cached) " >&6
4469
ac_save_c_werror_flag=$ac_c_werror_flag
4470
ac_c_werror_flag=yes
4473
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474
/* end confdefs.h. */
4484
if ac_fn_c_try_compile "$LINENO"; then :
4488
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489
/* end confdefs.h. */
4499
if ac_fn_c_try_compile "$LINENO"; then :
4502
ac_c_werror_flag=$ac_save_c_werror_flag
4504
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505
/* end confdefs.h. */
4515
if ac_fn_c_try_compile "$LINENO"; then :
4518
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523
ac_c_werror_flag=$ac_save_c_werror_flag
4525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4526
$as_echo "$ac_cv_prog_cc_g" >&6; }
4527
if test "$ac_test_CFLAGS" = set; then
4528
CFLAGS=$ac_save_CFLAGS
4529
elif test $ac_cv_prog_cc_g = yes; then
4530
if test "$GCC" = yes; then
4536
if test "$GCC" = yes; then
4542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4543
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4544
if ${ac_cv_prog_cc_c89+:} false; then :
4545
$as_echo_n "(cached) " >&6
4547
ac_cv_prog_cc_c89=no
4549
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550
/* end confdefs.h. */
4554
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4555
struct buf { int x; };
4556
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4557
static char *e (p, i)
4563
static char *f (char * (*g) (char **, int), char **p, ...)
4568
s = g (p, va_arg (v,int));
4573
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4574
function prototypes and stuff, but not '\xHH' hex character constants.
4575
These don't provoke an error unfortunately, instead are silently treated
4576
as 'x'. The following induces an error, until -std is added to get
4577
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4578
array size at least. It's necessary to write '\x00'==0 to get something
4579
that's true only with -std. */
4580
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4582
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4583
inside strings and character constants. */
4585
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4587
int test (int i, double x);
4588
struct s1 {int (*f) (int a);};
4589
struct s2 {int (*f) (double a);};
4590
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4596
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4601
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4602
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4604
CC="$ac_save_CC $ac_arg"
4605
if ac_fn_c_try_compile "$LINENO"; then :
4606
ac_cv_prog_cc_c89=$ac_arg
4608
rm -f core conftest.err conftest.$ac_objext
4609
test "x$ac_cv_prog_cc_c89" != "xno" && break
4611
rm -f conftest.$ac_ext
4616
case "x$ac_cv_prog_cc_c89" in
4618
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4619
$as_echo "none needed" >&6; } ;;
4621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4622
$as_echo "unsupported" >&6; } ;;
4624
CC="$CC $ac_cv_prog_cc_c89"
4625
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4626
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4628
if test "x$ac_cv_prog_cc_c89" != xno; then :
4633
ac_cpp='$CPP $CPPFLAGS'
4634
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638
depcc="$CC" am_compiler_list=
4640
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4641
$as_echo_n "checking dependency style of $depcc... " >&6; }
4642
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4643
$as_echo_n "(cached) " >&6
4645
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4646
# We make a subdir and do the tests there. Otherwise we can end up
4647
# making bogus files that we don't know about and never remove. For
4648
# instance it was reported that on HP-UX the gcc test will end up
4649
# making a dummy file named 'D' -- because '-MD' means "put the output
4653
# Copy depcomp to subdir because otherwise we won't find it if we're
4654
# using a relative directory.
4655
cp "$am_depcomp" conftest.dir
4657
# We will build objects and dependencies in a subdirectory because
4658
# it helps to detect inapplicable dependency modes. For instance
4659
# both Tru64's cc and ICC support -MD to output dependencies as a
4660
# side effect of compilation, but ICC will put the dependencies in
4661
# the current directory while Tru64 will put them in the object
4665
am_cv_CC_dependencies_compiler_type=none
4666
if test "$am_compiler_list" = ""; then
4667
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4670
case " $depcc " in #(
4671
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4674
for depmode in $am_compiler_list; do
4675
# Setup a source with many dependencies, because some compilers
4676
# like to wrap large dependency lists on column 80 (with \), and
4677
# we should not choose a depcomp mode which is confused by this.
4679
# We need to recreate these files for each test, as the compiler may
4680
# overwrite some of them when testing with obscure command lines.
4681
# This happens at least with the AIX C compiler.
4683
for i in 1 2 3 4 5 6; do
4684
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4685
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4686
# Solaris 10 /bin/sh.
4687
echo '/* dummy */' > sub/conftst$i.h
4689
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4691
# We check with '-c' and '-o' for the sake of the "dashmstdout"
4692
# mode. It turns out that the SunPro C++ compiler does not properly
4693
# handle '-M -o', and we need to detect this. Also, some Intel
4694
# versions had trouble with output in subdirs.
4695
am__obj=sub/conftest.${OBJEXT-o}
4696
am__minus_obj="-o $am__obj"
4699
# This depmode causes a compiler race in universal mode.
4700
test "$am__universal" = false || continue
4703
# After this tag, mechanisms are not by side-effect, so they'll
4704
# only be used when explicitly requested.
4705
if test "x$enable_dependency_tracking" = xyes; then
4711
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4712
# This compiler won't grok '-c -o', but also, the minuso test has
4713
# not run yet. These depmodes are late enough in the game, and
4714
# so weak that their functioning should not be impacted.
4715
am__obj=conftest.${OBJEXT-o}
4720
if depmode=$depmode \
4721
source=sub/conftest.c object=$am__obj \
4722
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4723
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4724
>/dev/null 2>conftest.err &&
4725
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4726
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4727
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4728
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4729
# icc doesn't choke on unknown options, it will just issue warnings
4730
# or remarks (even with -Werror). So we grep stderr for any message
4731
# that says an option was ignored or not supported.
4732
# When given -MP, icc 7.0 and 7.1 complain thusly:
4733
# icc: Command line warning: ignoring option '-M'; no argument required
4734
# The diagnosis changed in icc 8.0:
4735
# icc: Command line remark: option '-MP' not supported
4736
if (grep 'ignoring option' conftest.err ||
4737
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4738
am_cv_CC_dependencies_compiler_type=$depmode
4747
am_cv_CC_dependencies_compiler_type=none
4751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4752
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4753
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4756
test "x$enable_dependency_tracking" != xno \
4757
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4759
am__fastdepCC_FALSE='#'
4761
am__fastdepCC_TRUE='#'
4762
am__fastdepCC_FALSE=
4767
if test -n "$ac_tool_prefix"; then
4768
for ac_prog in ar lib "link -lib"
4770
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4771
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773
$as_echo_n "checking for $ac_word... " >&6; }
4774
if ${ac_cv_prog_AR+:} false; then :
4775
$as_echo_n "(cached) " >&6
4777
if test -n "$AR"; then
4778
ac_cv_prog_AR="$AR" # Let the user override the test.
4780
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784
test -z "$as_dir" && as_dir=.
4785
for ac_exec_ext in '' $ac_executable_extensions; do
4786
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4788
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798
if test -n "$AR"; then
4799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4800
$as_echo "$AR" >&6; }
4802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803
$as_echo "no" >&6; }
4807
test -n "$AR" && break
4810
if test -z "$AR"; then
4812
for ac_prog in ar lib "link -lib"
4814
# Extract the first word of "$ac_prog", so it can be a program name with args.
4815
set dummy $ac_prog; ac_word=$2
4816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817
$as_echo_n "checking for $ac_word... " >&6; }
4818
if ${ac_cv_prog_ac_ct_AR+:} false; then :
4819
$as_echo_n "(cached) " >&6
4821
if test -n "$ac_ct_AR"; then
4822
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828
test -z "$as_dir" && as_dir=.
4829
for ac_exec_ext in '' $ac_executable_extensions; do
4830
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831
ac_cv_prog_ac_ct_AR="$ac_prog"
4832
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4842
if test -n "$ac_ct_AR"; then
4843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4844
$as_echo "$ac_ct_AR" >&6; }
4846
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847
$as_echo "no" >&6; }
4851
test -n "$ac_ct_AR" && break
4854
if test "x$ac_ct_AR" = x; then
4857
case $cross_compiling:$ac_tool_warned in
4859
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4860
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4861
ac_tool_warned=yes ;;
4869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4870
$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4871
if ${am_cv_ar_interface+:} false; then :
4872
$as_echo_n "(cached) " >&6
4874
am_cv_ar_interface=ar
4875
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876
/* end confdefs.h. */
4877
int some_variable = 0;
4879
if ac_fn_c_try_compile "$LINENO"; then :
4880
am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4881
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4882
(eval $am_ar_try) 2>&5
4884
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4885
test $ac_status = 0; }
4886
if test "$ac_status" -eq 0; then
4887
am_cv_ar_interface=ar
4889
am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4890
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4891
(eval $am_ar_try) 2>&5
4893
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4894
test $ac_status = 0; }
4895
if test "$ac_status" -eq 0; then
4896
am_cv_ar_interface=lib
4898
am_cv_ar_interface=unknown
4901
rm -f conftest.lib libconftest.a
4904
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4908
$as_echo "$am_cv_ar_interface" >&6; }
4910
case $am_cv_ar_interface in
4914
# Microsoft lib, so override with the ar-lib wrapper script.
4915
# FIXME: It is wrong to rewrite AR.
4916
# But if we don't then we get into trouble of one sort or another.
4917
# A longer-term fix would be to have automake use am__AR in this case,
4918
# and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4920
AR="$am_aux_dir/ar-lib $AR"
4923
as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4928
## Set updisable-shared Libtool
4932
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4933
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4938
macro_version='2.4.6'
4939
macro_revision='2.4.6'
4953
ltmain=$ac_aux_dir/ltmain.sh
4955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4956
$as_echo_n "checking host system type... " >&6; }
4957
if ${ac_cv_host+:} false; then :
4958
$as_echo_n "(cached) " >&6
4960
if test "x$host_alias" = x; then
4961
ac_cv_host=$ac_cv_build
4963
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4964
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4969
$as_echo "$ac_cv_host" >&6; }
4972
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4975
ac_save_IFS=$IFS; IFS='-'
4981
# Remember, the first character of IFS is used to create $*,
4982
# except with old shells:
4985
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4988
# Backslashify metacharacters that are still active within
4989
# double-quoted strings.
4990
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4992
# Same as above, but do not quote variable references.
4993
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4995
# Sed substitution to delay expansion of an escaped shell variable in a
4996
# double_quote_subst'ed string.
4997
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4999
# Sed substitution to delay expansion of an escaped single quote.
5000
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5002
# Sed substitution to avoid accidental globbing in evaled expressions
5003
no_glob_subst='s/\*/\\\*/g'
5005
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5006
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5007
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5010
$as_echo_n "checking how to print strings... " >&6; }
5011
# Test print first, because it will be a builtin if present.
5012
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5013
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5015
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5018
# Use this function as a fallback that always works.
5019
func_fallback_echo ()
5021
eval 'cat <<_LTECHO_EOF
5025
ECHO='func_fallback_echo'
5028
# func_echo_all arg...
5029
# Invoke $ECHO with all args, space-separated.
5036
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5037
$as_echo "printf" >&6; } ;;
5038
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5039
$as_echo "print -r" >&6; } ;;
5040
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5041
$as_echo "cat" >&6; } ;;
5057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5058
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5059
if ${ac_cv_path_SED+:} false; then :
5060
$as_echo_n "(cached) " >&6
5062
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5063
for ac_i in 1 2 3 4 5 6 7; do
5064
ac_script="$ac_script$as_nl$ac_script"
5066
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5067
{ ac_script=; unset ac_script;}
5068
if test -z "$SED"; then
5069
ac_path_SED_found=false
5070
# Loop through the user's path and test for each of PROGNAME-LIST
5071
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075
test -z "$as_dir" && as_dir=.
5076
for ac_prog in sed gsed; do
5077
for ac_exec_ext in '' $ac_executable_extensions; do
5078
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5079
as_fn_executable_p "$ac_path_SED" || continue
5080
# Check for GNU ac_path_SED and select it if it is found.
5081
# Check for GNU $ac_path_SED
5082
case `"$ac_path_SED" --version 2>&1` in
5084
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5087
$as_echo_n 0123456789 >"conftest.in"
5090
cat "conftest.in" "conftest.in" >"conftest.tmp"
5091
mv "conftest.tmp" "conftest.in"
5092
cp "conftest.in" "conftest.nl"
5093
$as_echo '' >> "conftest.nl"
5094
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5095
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5096
as_fn_arith $ac_count + 1 && ac_count=$as_val
5097
if test $ac_count -gt ${ac_path_SED_max-0}; then
5098
# Best one so far, save it but keep looking for a better one
5099
ac_cv_path_SED="$ac_path_SED"
5100
ac_path_SED_max=$ac_count
5102
# 10*(2^10) chars as input seems more than enough
5103
test $ac_count -gt 10 && break
5105
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5108
$ac_path_SED_found && break 3
5113
if test -z "$ac_cv_path_SED"; then
5114
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5121
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5122
$as_echo "$ac_cv_path_SED" >&6; }
5123
SED="$ac_cv_path_SED"
5126
test -z "$SED" && SED=sed
5127
Xsed="$SED -e 1s/^X//"
5139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5140
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5141
if ${ac_cv_path_GREP+:} false; then :
5142
$as_echo_n "(cached) " >&6
5144
if test -z "$GREP"; then
5145
ac_path_GREP_found=false
5146
# Loop through the user's path and test for each of PROGNAME-LIST
5147
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5151
test -z "$as_dir" && as_dir=.
5152
for ac_prog in grep ggrep; do
5153
for ac_exec_ext in '' $ac_executable_extensions; do
5154
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5155
as_fn_executable_p "$ac_path_GREP" || continue
5156
# Check for GNU ac_path_GREP and select it if it is found.
5157
# Check for GNU $ac_path_GREP
5158
case `"$ac_path_GREP" --version 2>&1` in
5160
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5163
$as_echo_n 0123456789 >"conftest.in"
5166
cat "conftest.in" "conftest.in" >"conftest.tmp"
5167
mv "conftest.tmp" "conftest.in"
5168
cp "conftest.in" "conftest.nl"
5169
$as_echo 'GREP' >> "conftest.nl"
5170
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5171
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5172
as_fn_arith $ac_count + 1 && ac_count=$as_val
5173
if test $ac_count -gt ${ac_path_GREP_max-0}; then
5174
# Best one so far, save it but keep looking for a better one
5175
ac_cv_path_GREP="$ac_path_GREP"
5176
ac_path_GREP_max=$ac_count
5178
# 10*(2^10) chars as input seems more than enough
5179
test $ac_count -gt 10 && break
5181
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5184
$ac_path_GREP_found && break 3
5189
if test -z "$ac_cv_path_GREP"; then
5190
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5193
ac_cv_path_GREP=$GREP
5197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5198
$as_echo "$ac_cv_path_GREP" >&6; }
5199
GREP="$ac_cv_path_GREP"
5202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5203
$as_echo_n "checking for egrep... " >&6; }
5204
if ${ac_cv_path_EGREP+:} false; then :
5205
$as_echo_n "(cached) " >&6
5207
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5208
then ac_cv_path_EGREP="$GREP -E"
5210
if test -z "$EGREP"; then
5211
ac_path_EGREP_found=false
5212
# Loop through the user's path and test for each of PROGNAME-LIST
5213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5217
test -z "$as_dir" && as_dir=.
5218
for ac_prog in egrep; do
5219
for ac_exec_ext in '' $ac_executable_extensions; do
5220
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5221
as_fn_executable_p "$ac_path_EGREP" || continue
5222
# Check for GNU ac_path_EGREP and select it if it is found.
5223
# Check for GNU $ac_path_EGREP
5224
case `"$ac_path_EGREP" --version 2>&1` in
5226
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5229
$as_echo_n 0123456789 >"conftest.in"
5232
cat "conftest.in" "conftest.in" >"conftest.tmp"
5233
mv "conftest.tmp" "conftest.in"
5234
cp "conftest.in" "conftest.nl"
5235
$as_echo 'EGREP' >> "conftest.nl"
5236
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5237
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5238
as_fn_arith $ac_count + 1 && ac_count=$as_val
5239
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5240
# Best one so far, save it but keep looking for a better one
5241
ac_cv_path_EGREP="$ac_path_EGREP"
5242
ac_path_EGREP_max=$ac_count
5244
# 10*(2^10) chars as input seems more than enough
5245
test $ac_count -gt 10 && break
5247
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5250
$ac_path_EGREP_found && break 3
5255
if test -z "$ac_cv_path_EGREP"; then
5256
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5259
ac_cv_path_EGREP=$EGREP
5264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5265
$as_echo "$ac_cv_path_EGREP" >&6; }
5266
EGREP="$ac_cv_path_EGREP"
5269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5270
$as_echo_n "checking for fgrep... " >&6; }
5271
if ${ac_cv_path_FGREP+:} false; then :
5272
$as_echo_n "(cached) " >&6
5274
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5275
then ac_cv_path_FGREP="$GREP -F"
5277
if test -z "$FGREP"; then
5278
ac_path_FGREP_found=false
5279
# Loop through the user's path and test for each of PROGNAME-LIST
5280
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5284
test -z "$as_dir" && as_dir=.
5285
for ac_prog in fgrep; do
5286
for ac_exec_ext in '' $ac_executable_extensions; do
5287
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5288
as_fn_executable_p "$ac_path_FGREP" || continue
5289
# Check for GNU ac_path_FGREP and select it if it is found.
5290
# Check for GNU $ac_path_FGREP
5291
case `"$ac_path_FGREP" --version 2>&1` in
5293
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5296
$as_echo_n 0123456789 >"conftest.in"
5299
cat "conftest.in" "conftest.in" >"conftest.tmp"
5300
mv "conftest.tmp" "conftest.in"
5301
cp "conftest.in" "conftest.nl"
5302
$as_echo 'FGREP' >> "conftest.nl"
5303
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5304
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5305
as_fn_arith $ac_count + 1 && ac_count=$as_val
5306
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5307
# Best one so far, save it but keep looking for a better one
5308
ac_cv_path_FGREP="$ac_path_FGREP"
5309
ac_path_FGREP_max=$ac_count
5311
# 10*(2^10) chars as input seems more than enough
5312
test $ac_count -gt 10 && break
5314
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5317
$ac_path_FGREP_found && break 3
5322
if test -z "$ac_cv_path_FGREP"; then
5323
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5326
ac_cv_path_FGREP=$FGREP
5331
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5332
$as_echo "$ac_cv_path_FGREP" >&6; }
5333
FGREP="$ac_cv_path_FGREP"
5336
test -z "$GREP" && GREP=grep
5356
# Check whether --with-gnu-ld was given.
5357
if test "${with_gnu_ld+set}" = set; then :
5358
withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5364
if test yes = "$GCC"; then
5365
# Check if gcc -print-prog-name=ld gives a path.
5366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5367
$as_echo_n "checking for ld used by $CC... " >&6; }
5370
# gcc leaves a trailing carriage return, which upsets mingw
5371
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5373
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5376
# Accept absolute paths.
5378
re_direlt='/[^/][^/]*/\.\./'
5379
# Canonicalize the pathname of ld
5380
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5381
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5382
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5384
test -z "$LD" && LD=$ac_prog
5387
# If it fails, then pretend we aren't using GCC.
5391
# If it is relative, then search for the first ld in PATH.
5395
elif test yes = "$with_gnu_ld"; then
5396
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5397
$as_echo_n "checking for GNU ld... " >&6; }
5399
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5400
$as_echo_n "checking for non-GNU ld... " >&6; }
5402
if ${lt_cv_path_LD+:} false; then :
5403
$as_echo_n "(cached) " >&6
5405
if test -z "$LD"; then
5406
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5407
for ac_dir in $PATH; do
5409
test -z "$ac_dir" && ac_dir=.
5410
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5411
lt_cv_path_LD=$ac_dir/$ac_prog
5412
# Check to see if the program is GNU ld. I'd rather use --version,
5413
# but apparently some variants of GNU ld only accept -v.
5414
# Break only if it was the GNU/non-GNU ld that we prefer.
5415
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5416
*GNU* | *'with BFD'*)
5417
test no != "$with_gnu_ld" && break
5420
test yes != "$with_gnu_ld" && break
5427
lt_cv_path_LD=$LD # Let the user override the test with a path.
5432
if test -n "$LD"; then
5433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5434
$as_echo "$LD" >&6; }
5436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437
$as_echo "no" >&6; }
5439
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5441
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5442
if ${lt_cv_prog_gnu_ld+:} false; then :
5443
$as_echo_n "(cached) " >&6
5445
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5446
case `$LD -v 2>&1 </dev/null` in
5447
*GNU* | *'with BFD'*)
5448
lt_cv_prog_gnu_ld=yes
5451
lt_cv_prog_gnu_ld=no
5455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5456
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5457
with_gnu_ld=$lt_cv_prog_gnu_ld
5467
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5468
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5469
if ${lt_cv_path_NM+:} false; then :
5470
$as_echo_n "(cached) " >&6
5472
if test -n "$NM"; then
5473
# Let the user override the test.
5476
lt_nm_to_check=${ac_tool_prefix}nm
5477
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5478
lt_nm_to_check="$lt_nm_to_check nm"
5480
for lt_tmp_nm in $lt_nm_to_check; do
5481
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5482
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5484
test -z "$ac_dir" && ac_dir=.
5485
tmp_nm=$ac_dir/$lt_tmp_nm
5486
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5487
# Check to see if the nm accepts a BSD-compat flag.
5488
# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5489
# nm: unknown option "B" ignored
5490
# Tru64's nm complains that /dev/null is an invalid object file
5491
# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5493
mingw*) lt_bad_file=conftest.nm/nofile ;;
5494
*) lt_bad_file=/dev/null ;;
5496
case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5497
*$lt_bad_file* | *'Invalid file or object type'*)
5498
lt_cv_path_NM="$tmp_nm -B"
5502
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5504
lt_cv_path_NM="$tmp_nm -p"
5508
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5509
continue # so that we can try to find one that supports BSD flags
5518
: ${lt_cv_path_NM=no}
5521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5522
$as_echo "$lt_cv_path_NM" >&6; }
5523
if test no != "$lt_cv_path_NM"; then
5526
# Didn't find any BSD compatible name lister, look for dumpbin.
5527
if test -n "$DUMPBIN"; then :
5528
# Let the user override the test.
5530
if test -n "$ac_tool_prefix"; then
5531
for ac_prog in dumpbin "link -dump"
5533
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5534
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536
$as_echo_n "checking for $ac_word... " >&6; }
5537
if ${ac_cv_prog_DUMPBIN+:} false; then :
5538
$as_echo_n "(cached) " >&6
5540
if test -n "$DUMPBIN"; then
5541
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547
test -z "$as_dir" && as_dir=.
5548
for ac_exec_ext in '' $ac_executable_extensions; do
5549
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5551
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560
DUMPBIN=$ac_cv_prog_DUMPBIN
5561
if test -n "$DUMPBIN"; then
5562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5563
$as_echo "$DUMPBIN" >&6; }
5565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566
$as_echo "no" >&6; }
5570
test -n "$DUMPBIN" && break
5573
if test -z "$DUMPBIN"; then
5574
ac_ct_DUMPBIN=$DUMPBIN
5575
for ac_prog in dumpbin "link -dump"
5577
# Extract the first word of "$ac_prog", so it can be a program name with args.
5578
set dummy $ac_prog; ac_word=$2
5579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580
$as_echo_n "checking for $ac_word... " >&6; }
5581
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5582
$as_echo_n "(cached) " >&6
5584
if test -n "$ac_ct_DUMPBIN"; then
5585
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5587
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591
test -z "$as_dir" && as_dir=.
5592
for ac_exec_ext in '' $ac_executable_extensions; do
5593
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5595
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5605
if test -n "$ac_ct_DUMPBIN"; then
5606
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5607
$as_echo "$ac_ct_DUMPBIN" >&6; }
5609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610
$as_echo "no" >&6; }
5614
test -n "$ac_ct_DUMPBIN" && break
5617
if test "x$ac_ct_DUMPBIN" = x; then
5620
case $cross_compiling:$ac_tool_warned in
5622
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5623
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5624
ac_tool_warned=yes ;;
5626
DUMPBIN=$ac_ct_DUMPBIN
5630
case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5632
DUMPBIN="$DUMPBIN -symbols -headers"
5640
if test : != "$DUMPBIN"; then
5644
test -z "$NM" && NM=nm
5651
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5652
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5653
if ${lt_cv_nm_interface+:} false; then :
5654
$as_echo_n "(cached) " >&6
5656
lt_cv_nm_interface="BSD nm"
5657
echo "int some_variable = 0;" > conftest.$ac_ext
5658
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5659
(eval "$ac_compile" 2>conftest.err)
5660
cat conftest.err >&5
5661
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5662
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5663
cat conftest.err >&5
5664
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
5665
cat conftest.out >&5
5666
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5667
lt_cv_nm_interface="MS dumpbin"
5671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5672
$as_echo "$lt_cv_nm_interface" >&6; }
5674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5675
$as_echo_n "checking whether ln -s works... " >&6; }
5677
if test "$LN_S" = "ln -s"; then
5678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5679
$as_echo "yes" >&6; }
5681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5682
$as_echo "no, using $LN_S" >&6; }
5685
# find the maximum length of command line arguments
5686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5687
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5688
if ${lt_cv_sys_max_cmd_len+:} false; then :
5689
$as_echo_n "(cached) " >&6
5696
# On DJGPP, this test can blow up pretty badly due to problems in libc
5697
# (any single argument exceeding 2000 bytes causes a buffer overrun
5698
# during glob expansion). Even if it were fixed, the result of this
5699
# check would be larger than it should be.
5700
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5704
# Under GNU Hurd, this test is not required because there is
5705
# no limit to the length of command line arguments.
5706
# Libtool will interpret -1 as no limit whatsoever
5707
lt_cv_sys_max_cmd_len=-1;
5710
cygwin* | mingw* | cegcc*)
5711
# On Win9x/ME, this test blows up -- it succeeds, but takes
5712
# about 5 minutes as the teststring grows exponentially.
5713
# Worse, since 9x/ME are not pre-emptively multitasking,
5714
# you end up with a "frozen" computer, even though with patience
5715
# the test eventually succeeds (with a max line length of 256k).
5716
# Instead, let's just punt: use the minimum linelength reported by
5717
# all of the supported platforms: 8192 (on NT/2K/XP).
5718
lt_cv_sys_max_cmd_len=8192;
5722
# On MiNT this can take a long time and run out of memory.
5723
lt_cv_sys_max_cmd_len=8192;
5727
# On AmigaOS with pdksh, this test takes hours, literally.
5728
# So we just punt and use a minimum line length of 8192.
5729
lt_cv_sys_max_cmd_len=8192;
5732
bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5733
# This has been around since 386BSD, at least. Likely further.
5734
if test -x /sbin/sysctl; then
5735
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5736
elif test -x /usr/sbin/sysctl; then
5737
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5739
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5741
# And add a safety zone
5742
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5743
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5747
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5748
lt_cv_sys_max_cmd_len=196608
5752
# The test takes a long time on OS/2.
5753
lt_cv_sys_max_cmd_len=8192
5757
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5758
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5759
# nice to cause kernel panics so lets avoid the loop below.
5760
# First set a reasonable default.
5761
lt_cv_sys_max_cmd_len=16384
5763
if test -x /sbin/sysconfig; then
5764
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5765
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5770
lt_cv_sys_max_cmd_len=102400
5772
sysv5* | sco5v6* | sysv4.2uw2*)
5773
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5774
if test -n "$kargmax"; then
5775
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5777
lt_cv_sys_max_cmd_len=32768
5781
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5782
if test -n "$lt_cv_sys_max_cmd_len" && \
5783
test undefined != "$lt_cv_sys_max_cmd_len"; then
5784
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5785
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5787
# Make teststring a little bigger before we do anything with it.
5788
# a 1K string should be a reasonable start.
5789
for i in 1 2 3 4 5 6 7 8; do
5790
teststring=$teststring$teststring
5792
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5793
# If test is not a shell built-in, we'll probably end up computing a
5794
# maximum length that is only half of the actual maximum length, but
5796
while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5797
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
5798
test 17 != "$i" # 1/2 MB should be enough
5801
teststring=$teststring$teststring
5803
# Only check the string length outside the loop.
5804
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5806
# Add a significant safety factor because C++ compilers can tack on
5807
# massive amounts of additional arguments before passing them to the
5808
# linker. It appears as though 1/2 is a usable value.
5809
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5816
if test -n "$lt_cv_sys_max_cmd_len"; then
5817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5818
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5821
$as_echo "none" >&6; }
5823
max_cmd_len=$lt_cv_sys_max_cmd_len
5834
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5844
# test EBCDIC or ASCII
5845
case `echo X|tr X '\101'` in
5846
A) # ASCII based system
5847
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5848
lt_SP2NL='tr \040 \012'
5849
lt_NL2SP='tr \015\012 \040\040'
5851
*) # EBCDIC based system
5852
lt_SP2NL='tr \100 \n'
5853
lt_NL2SP='tr \r\n \100\100'
5865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5866
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5867
if ${lt_cv_to_host_file_cmd+:} false; then :
5868
$as_echo_n "(cached) " >&6
5873
*-*-mingw* ) # actually msys
5874
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5877
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5879
* ) # otherwise, assume *nix
5880
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5886
*-*-mingw* ) # actually msys
5887
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5890
lt_cv_to_host_file_cmd=func_convert_file_noop
5892
* ) # otherwise, assume *nix
5893
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5897
* ) # unhandled hosts (and "normal" native builds)
5898
lt_cv_to_host_file_cmd=func_convert_file_noop
5904
to_host_file_cmd=$lt_cv_to_host_file_cmd
5905
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5906
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5912
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5913
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5914
if ${lt_cv_to_tool_file_cmd+:} false; then :
5915
$as_echo_n "(cached) " >&6
5917
#assume ordinary cross tools, or native build.
5918
lt_cv_to_tool_file_cmd=func_convert_file_noop
5922
*-*-mingw* ) # actually msys
5923
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5931
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5933
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5940
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5941
if ${lt_cv_ld_reload_flag+:} false; then :
5942
$as_echo_n "(cached) " >&6
5944
lt_cv_ld_reload_flag='-r'
5946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5947
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5948
reload_flag=$lt_cv_ld_reload_flag
5949
case $reload_flag in
5951
*) reload_flag=" $reload_flag" ;;
5953
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5955
cygwin* | mingw* | pw32* | cegcc*)
5956
if test yes != "$GCC"; then
5961
if test yes = "$GCC"; then
5962
reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5964
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5977
if test -n "$ac_tool_prefix"; then
5978
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5979
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5981
$as_echo_n "checking for $ac_word... " >&6; }
5982
if ${ac_cv_prog_OBJDUMP+:} false; then :
5983
$as_echo_n "(cached) " >&6
5985
if test -n "$OBJDUMP"; then
5986
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5988
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992
test -z "$as_dir" && as_dir=.
5993
for ac_exec_ext in '' $ac_executable_extensions; do
5994
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5995
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5996
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6005
OBJDUMP=$ac_cv_prog_OBJDUMP
6006
if test -n "$OBJDUMP"; then
6007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6008
$as_echo "$OBJDUMP" >&6; }
6010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011
$as_echo "no" >&6; }
6016
if test -z "$ac_cv_prog_OBJDUMP"; then
6017
ac_ct_OBJDUMP=$OBJDUMP
6018
# Extract the first word of "objdump", so it can be a program name with args.
6019
set dummy objdump; ac_word=$2
6020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021
$as_echo_n "checking for $ac_word... " >&6; }
6022
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6023
$as_echo_n "(cached) " >&6
6025
if test -n "$ac_ct_OBJDUMP"; then
6026
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6028
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032
test -z "$as_dir" && as_dir=.
6033
for ac_exec_ext in '' $ac_executable_extensions; do
6034
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6035
ac_cv_prog_ac_ct_OBJDUMP="objdump"
6036
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6046
if test -n "$ac_ct_OBJDUMP"; then
6047
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6048
$as_echo "$ac_ct_OBJDUMP" >&6; }
6050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051
$as_echo "no" >&6; }
6054
if test "x$ac_ct_OBJDUMP" = x; then
6057
case $cross_compiling:$ac_tool_warned in
6059
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6060
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6061
ac_tool_warned=yes ;;
6063
OBJDUMP=$ac_ct_OBJDUMP
6066
OBJDUMP="$ac_cv_prog_OBJDUMP"
6069
test -z "$OBJDUMP" && OBJDUMP=objdump
6079
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6080
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6081
if ${lt_cv_deplibs_check_method+:} false; then :
6082
$as_echo_n "(cached) " >&6
6084
lt_cv_file_magic_cmd='$MAGIC_CMD'
6085
lt_cv_file_magic_test_file=
6086
lt_cv_deplibs_check_method='unknown'
6087
# Need to set the preceding variable on all platforms that support
6088
# interlibrary dependencies.
6089
# 'none' -- dependencies not supported.
6090
# 'unknown' -- same as none, but documents that we really don't know.
6091
# 'pass_all' -- all dependencies passed with no checks.
6092
# 'test_compile' -- check by making test program.
6093
# 'file_magic [[regex]]' -- check by looking for files in library path
6094
# that responds to the $file_magic_cmd with a given extended regex.
6095
# If you have 'file' or equivalent on your system and you're not sure
6096
# whether 'pass_all' will *always* work, you probably want this one.
6100
lt_cv_deplibs_check_method=pass_all
6104
lt_cv_deplibs_check_method=pass_all
6108
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6109
lt_cv_file_magic_cmd='/usr/bin/file -L'
6110
lt_cv_file_magic_test_file=/shlib/libc.so
6114
# func_win32_libid is a shell function defined in ltmain.sh
6115
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6116
lt_cv_file_magic_cmd='func_win32_libid'
6120
# Base MSYS/MinGW do not provide the 'file' command needed by
6121
# func_win32_libid shell function, so use a weaker test based on 'objdump',
6122
# unless we find 'file', for example because we are cross-compiling.
6123
if ( file / ) >/dev/null 2>&1; then
6124
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6125
lt_cv_file_magic_cmd='func_win32_libid'
6127
# Keep this pattern in sync with the one in func_win32_libid.
6128
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6129
lt_cv_file_magic_cmd='$OBJDUMP -f'
6134
# use the weaker test based on 'objdump'. See mingw*.
6135
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6136
lt_cv_file_magic_cmd='$OBJDUMP -f'
6139
darwin* | rhapsody*)
6140
lt_cv_deplibs_check_method=pass_all
6143
freebsd* | dragonfly*)
6144
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6147
# Not sure whether the presence of OpenBSD here was a mistake.
6148
# Let's accept both of them until this is cleared up.
6149
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6150
lt_cv_file_magic_cmd=/usr/bin/file
6151
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6155
lt_cv_deplibs_check_method=pass_all
6160
lt_cv_deplibs_check_method=pass_all
6163
hpux10.20* | hpux11*)
6164
lt_cv_file_magic_cmd=/usr/bin/file
6167
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6168
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6171
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]'
6172
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6175
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6176
lt_cv_file_magic_test_file=/usr/lib/libc.sl
6182
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6183
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6186
irix5* | irix6* | nonstopux*)
6188
*-32|*"-32 ") libmagic=32-bit;;
6189
*-n32|*"-n32 ") libmagic=N32;;
6190
*-64|*"-64 ") libmagic=64-bit;;
6191
*) libmagic=never-match;;
6193
lt_cv_deplibs_check_method=pass_all
6196
# This must be glibc/ELF.
6197
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6198
lt_cv_deplibs_check_method=pass_all
6202
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6203
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6205
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6210
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6211
lt_cv_file_magic_cmd=/usr/bin/file
6212
lt_cv_file_magic_test_file=/usr/lib/libnls.so
6216
lt_cv_deplibs_check_method=pass_all
6220
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6221
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6223
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6227
osf3* | osf4* | osf5*)
6228
lt_cv_deplibs_check_method=pass_all
6232
lt_cv_deplibs_check_method=pass_all
6236
lt_cv_deplibs_check_method=pass_all
6239
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6240
lt_cv_deplibs_check_method=pass_all
6244
case $host_vendor in
6246
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]'
6247
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6250
lt_cv_deplibs_check_method=pass_all
6253
lt_cv_file_magic_cmd='/bin/file'
6254
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6257
lt_cv_file_magic_cmd='/bin/file'
6258
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6259
lt_cv_file_magic_test_file=/lib/libc.so
6262
lt_cv_deplibs_check_method=pass_all
6265
lt_cv_deplibs_check_method=pass_all
6271
lt_cv_deplibs_check_method=pass_all
6274
lt_cv_deplibs_check_method=pass_all
6279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6280
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6284
if test "$build" = "$host"; then
6287
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6290
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6296
file_magic_cmd=$lt_cv_file_magic_cmd
6297
deplibs_check_method=$lt_cv_deplibs_check_method
6298
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6321
if test -n "$ac_tool_prefix"; then
6322
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6323
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325
$as_echo_n "checking for $ac_word... " >&6; }
6326
if ${ac_cv_prog_DLLTOOL+:} false; then :
6327
$as_echo_n "(cached) " >&6
6329
if test -n "$DLLTOOL"; then
6330
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336
test -z "$as_dir" && as_dir=.
6337
for ac_exec_ext in '' $ac_executable_extensions; do
6338
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6339
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6340
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349
DLLTOOL=$ac_cv_prog_DLLTOOL
6350
if test -n "$DLLTOOL"; then
6351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6352
$as_echo "$DLLTOOL" >&6; }
6354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355
$as_echo "no" >&6; }
6360
if test -z "$ac_cv_prog_DLLTOOL"; then
6361
ac_ct_DLLTOOL=$DLLTOOL
6362
# Extract the first word of "dlltool", so it can be a program name with args.
6363
set dummy dlltool; ac_word=$2
6364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365
$as_echo_n "checking for $ac_word... " >&6; }
6366
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6367
$as_echo_n "(cached) " >&6
6369
if test -n "$ac_ct_DLLTOOL"; then
6370
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6372
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376
test -z "$as_dir" && as_dir=.
6377
for ac_exec_ext in '' $ac_executable_extensions; do
6378
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6379
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6380
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6390
if test -n "$ac_ct_DLLTOOL"; then
6391
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6392
$as_echo "$ac_ct_DLLTOOL" >&6; }
6394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395
$as_echo "no" >&6; }
6398
if test "x$ac_ct_DLLTOOL" = x; then
6401
case $cross_compiling:$ac_tool_warned in
6403
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6404
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6405
ac_tool_warned=yes ;;
6407
DLLTOOL=$ac_ct_DLLTOOL
6410
DLLTOOL="$ac_cv_prog_DLLTOOL"
6413
test -z "$DLLTOOL" && DLLTOOL=dlltool
6424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6425
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6426
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6427
$as_echo_n "(cached) " >&6
6429
lt_cv_sharedlib_from_linklib_cmd='unknown'
6432
cygwin* | mingw* | pw32* | cegcc*)
6433
# two different shell functions defined in ltmain.sh;
6434
# decide which one to use based on capabilities of $DLLTOOL
6435
case `$DLLTOOL --help 2>&1` in
6436
*--identify-strict*)
6437
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6440
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6445
# fallback: assume linklib IS sharedlib
6446
lt_cv_sharedlib_from_linklib_cmd=$ECHO
6451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6452
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6453
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6454
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6462
if test -n "$ac_tool_prefix"; then
6465
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6466
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6467
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468
$as_echo_n "checking for $ac_word... " >&6; }
6469
if ${ac_cv_prog_AR+:} false; then :
6470
$as_echo_n "(cached) " >&6
6472
if test -n "$AR"; then
6473
ac_cv_prog_AR="$AR" # Let the user override the test.
6475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479
test -z "$as_dir" && as_dir=.
6480
for ac_exec_ext in '' $ac_executable_extensions; do
6481
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6482
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6483
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6493
if test -n "$AR"; then
6494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6495
$as_echo "$AR" >&6; }
6497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498
$as_echo "no" >&6; }
6502
test -n "$AR" && break
6505
if test -z "$AR"; then
6509
# Extract the first word of "$ac_prog", so it can be a program name with args.
6510
set dummy $ac_prog; ac_word=$2
6511
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512
$as_echo_n "checking for $ac_word... " >&6; }
6513
if ${ac_cv_prog_ac_ct_AR+:} false; then :
6514
$as_echo_n "(cached) " >&6
6516
if test -n "$ac_ct_AR"; then
6517
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6519
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523
test -z "$as_dir" && as_dir=.
6524
for ac_exec_ext in '' $ac_executable_extensions; do
6525
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526
ac_cv_prog_ac_ct_AR="$ac_prog"
6527
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6537
if test -n "$ac_ct_AR"; then
6538
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6539
$as_echo "$ac_ct_AR" >&6; }
6541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542
$as_echo "no" >&6; }
6546
test -n "$ac_ct_AR" && break
6549
if test "x$ac_ct_AR" = x; then
6552
case $cross_compiling:$ac_tool_warned in
6554
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6555
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6556
ac_tool_warned=yes ;;
6569
# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6570
# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6571
# higher priority because thats what people were doing historically (setting
6572
# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6573
# variable obsoleted/removed.
6575
test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6576
lt_ar_flags=$AR_FLAGS
6583
# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6584
# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6591
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6592
$as_echo_n "checking for archiver @FILE support... " >&6; }
6593
if ${lt_cv_ar_at_file+:} false; then :
6594
$as_echo_n "(cached) " >&6
6597
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598
/* end confdefs.h. */
6608
if ac_fn_c_try_compile "$LINENO"; then :
6609
echo conftest.$ac_objext > conftest.lst
6610
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6611
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6612
(eval $lt_ar_try) 2>&5
6614
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6615
test $ac_status = 0; }
6616
if test 0 -eq "$ac_status"; then
6617
# Ensure the archiver fails upon bogus file names.
6618
rm -f conftest.$ac_objext libconftest.a
6619
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6620
(eval $lt_ar_try) 2>&5
6622
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6623
test $ac_status = 0; }
6624
if test 0 -ne "$ac_status"; then
6628
rm -f conftest.* libconftest.a
6631
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6635
$as_echo "$lt_cv_ar_at_file" >&6; }
6637
if test no = "$lt_cv_ar_at_file"; then
6640
archiver_list_spec=$lt_cv_ar_at_file
6649
# Cray's compiler drivers need STRIP to be an absolute file name when
6651
if test -n "$ac_tool_prefix"; then
6652
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6653
set dummy ${ac_tool_prefix}strip; ac_word=$2
6654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655
$as_echo_n "checking for $ac_word... " >&6; }
6656
if ${ac_cv_path_STRIP+:} false; then :
6657
$as_echo_n "(cached) " >&6
6661
ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6664
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668
test -z "$as_dir" && as_dir=.
6669
for ac_exec_ext in '' $ac_executable_extensions; do
6670
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671
ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6672
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682
STRIP=$ac_cv_path_STRIP
6683
if test -n "$STRIP"; then
6684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6685
$as_echo "$STRIP" >&6; }
6687
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688
$as_echo "no" >&6; }
6693
if test -z "$ac_cv_path_STRIP"; then
6695
# Extract the first word of "strip", so it can be a program name with args.
6696
set dummy strip; ac_word=$2
6697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698
$as_echo_n "checking for $ac_word... " >&6; }
6699
if ${ac_cv_path_ac_pt_STRIP+:} false; then :
6700
$as_echo_n "(cached) " >&6
6702
case $ac_pt_STRIP in
6704
ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6707
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711
test -z "$as_dir" && as_dir=.
6712
for ac_exec_ext in '' $ac_executable_extensions; do
6713
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6714
ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6715
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725
ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6726
if test -n "$ac_pt_STRIP"; then
6727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_STRIP" >&5
6728
$as_echo "$ac_pt_STRIP" >&6; }
6730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731
$as_echo "no" >&6; }
6734
if test "x$ac_pt_STRIP" = x; then
6737
case $cross_compiling:$ac_tool_warned in
6739
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6740
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6741
ac_tool_warned=yes ;;
6746
STRIP="$ac_cv_path_STRIP"
6749
test -z "$STRIP" && STRIP=:
6756
if test -n "$ac_tool_prefix"; then
6757
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6758
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760
$as_echo_n "checking for $ac_word... " >&6; }
6761
if ${ac_cv_prog_RANLIB+:} false; then :
6762
$as_echo_n "(cached) " >&6
6764
if test -n "$RANLIB"; then
6765
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771
test -z "$as_dir" && as_dir=.
6772
for ac_exec_ext in '' $ac_executable_extensions; do
6773
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6774
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6775
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784
RANLIB=$ac_cv_prog_RANLIB
6785
if test -n "$RANLIB"; then
6786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6787
$as_echo "$RANLIB" >&6; }
6789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790
$as_echo "no" >&6; }
6795
if test -z "$ac_cv_prog_RANLIB"; then
6796
ac_ct_RANLIB=$RANLIB
6797
# Extract the first word of "ranlib", so it can be a program name with args.
6798
set dummy ranlib; ac_word=$2
6799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800
$as_echo_n "checking for $ac_word... " >&6; }
6801
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6802
$as_echo_n "(cached) " >&6
6804
if test -n "$ac_ct_RANLIB"; then
6805
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6807
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811
test -z "$as_dir" && as_dir=.
6812
for ac_exec_ext in '' $ac_executable_extensions; do
6813
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6814
ac_cv_prog_ac_ct_RANLIB="ranlib"
6815
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6825
if test -n "$ac_ct_RANLIB"; then
6826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6827
$as_echo "$ac_ct_RANLIB" >&6; }
6829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830
$as_echo "no" >&6; }
6833
if test "x$ac_ct_RANLIB" = x; then
6836
case $cross_compiling:$ac_tool_warned in
6838
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6839
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6840
ac_tool_warned=yes ;;
6842
RANLIB=$ac_ct_RANLIB
6845
RANLIB="$ac_cv_prog_RANLIB"
6848
test -z "$RANLIB" && RANLIB=:
6855
# Determine commands to create old-style static archives.
6856
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6857
old_postinstall_cmds='chmod 644 $oldlib'
6858
old_postuninstall_cmds=
6860
if test -n "$RANLIB"; then
6863
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6866
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6869
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6874
lock_old_archive_extraction=yes ;;
6876
lock_old_archive_extraction=no ;;
6917
# If no C compiler was specified, use CC.
6920
# If no C compiler flags were specified, use CFLAGS.
6921
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6923
# Allow CC to be a program name with arguments.
6927
# Check for command to grab the raw symbol name followed by C symbol from nm.
6928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6929
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6930
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6931
$as_echo_n "(cached) " >&6
6934
# These are sane defaults that work on at least a few old systems.
6935
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6937
# Character class describing NM global symbol codes.
6938
symcode='[BCDEGRST]'
6940
# Regexp to match symbols that can be accessed directly from C.
6941
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6943
# Define system-specific variables.
6948
cygwin* | mingw* | pw32* | cegcc*)
6949
symcode='[ABCDGISTW]'
6952
if test ia64 = "$host_cpu"; then
6953
symcode='[ABCDEGRST]'
6957
symcode='[BCDEGRST]'
6960
symcode='[BCDEGQRST]'
6971
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6979
# If we're using GNU nm, then use its standard symbol codes.
6980
case `$NM -V 2>&1` in
6981
*GNU* | *'with BFD'*)
6982
symcode='[ABCDGIRSTW]' ;;
6985
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6986
# Gets list of data symbols to import.
6987
lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6988
# Adjust the below global symbol transforms to fixup imported variables.
6989
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6990
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6991
lt_c_name_lib_hook="\
6992
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6993
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6995
# Disable hooks by default.
6996
lt_cv_sys_global_symbol_to_import=
7002
# Transform an extracted symbol line into a proper C declaration.
7003
# Some systems (esp. on ia64) link data and code symbols differently,
7004
# so use this general approach.
7005
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7007
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7008
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7010
# Transform an extracted symbol line into symbol name and symbol address
7011
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7013
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7014
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7016
# Transform an extracted symbol line into symbol name with lib prefix and
7018
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7019
$lt_c_name_lib_hook\
7020
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7021
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7022
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7024
# Handle CRLF in mingw tool chain
7028
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7032
# Try without a prefix underscore, then with it.
7033
for ac_symprfx in "" "_"; do
7035
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7036
symxfrm="\\1 $ac_symprfx\\2 \\2"
7038
# Write the raw and C identifiers.
7039
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7040
# Fake it for dumpbin and say T for any non-static function,
7041
# D for any global variable and I for any imported variable.
7042
# Also find C++ and __fastcall symbols from MSVC++,
7043
# which start with @ or ?.
7044
lt_cv_sys_global_symbol_pipe="$AWK '"\
7045
" {last_section=section; section=\$ 3};"\
7046
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7047
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7048
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7049
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7050
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7051
" \$ 0!~/External *\|/{next};"\
7052
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7053
" {if(hide[section]) next};"\
7054
" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7055
" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7056
" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7057
" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7058
" ' prfx=^$ac_symprfx"
7060
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7062
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7064
# Check to see that the pipe works correctly.
7068
cat > conftest.$ac_ext <<_LT_EOF
7073
void nm_test_func(void);
7074
void nm_test_func(void){}
7078
int main(){nm_test_var='a';nm_test_func();return(0);}
7081
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7082
(eval $ac_compile) 2>&5
7084
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7085
test $ac_status = 0; }; then
7086
# Now try to grab the symbols.
7088
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7089
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7091
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7092
test $ac_status = 0; } && test -s "$nlist"; then
7093
# Try sorting and uniquifying the output.
7094
if sort "$nlist" | uniq > "$nlist"T; then
7095
mv -f "$nlist"T "$nlist"
7100
# Make sure that we snagged all the symbols we need.
7101
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7102
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7103
cat <<_LT_EOF > conftest.$ac_ext
7104
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7105
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7106
/* DATA imports from DLLs on WIN32 can't be const, because runtime
7107
relocations are performed -- see ld's documentation on pseudo-relocs. */
7108
# define LT_DLSYM_CONST
7109
#elif defined __osf__
7110
/* This system does not cope well with relocations in const data. */
7111
# define LT_DLSYM_CONST
7113
# define LT_DLSYM_CONST const
7121
# Now generate the symbol file.
7122
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7124
cat <<_LT_EOF >> conftest.$ac_ext
7126
/* The mapping between symbol names and symbols. */
7127
LT_DLSYM_CONST struct {
7131
lt__PROGRAM__LTX_preloaded_symbols[] =
7133
{ "@PROGRAM@", (void *) 0 },
7135
$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7136
cat <<\_LT_EOF >> conftest.$ac_ext
7140
/* This works around a problem in FreeBSD linker */
7141
#ifdef FREEBSD_WORKAROUND
7142
static const void *lt_preloaded_setup() {
7143
return lt__PROGRAM__LTX_preloaded_symbols;
7151
# Now try linking the two files.
7152
mv conftest.$ac_objext conftstm.$ac_objext
7153
lt_globsym_save_LIBS=$LIBS
7154
lt_globsym_save_CFLAGS=$CFLAGS
7155
LIBS=conftstm.$ac_objext
7156
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7157
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7158
(eval $ac_link) 2>&5
7160
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7161
test $ac_status = 0; } && test -s conftest$ac_exeext; then
7164
LIBS=$lt_globsym_save_LIBS
7165
CFLAGS=$lt_globsym_save_CFLAGS
7167
echo "cannot find nm_test_func in $nlist" >&5
7170
echo "cannot find nm_test_var in $nlist" >&5
7173
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7176
echo "$progname: failed program was:" >&5
7177
cat conftest.$ac_ext >&5
7179
rm -rf conftest* conftst*
7181
# Do not use the global_symbol_pipe unless it works.
7182
if test yes = "$pipe_works"; then
7185
lt_cv_sys_global_symbol_pipe=
7191
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7192
lt_cv_sys_global_symbol_to_cdecl=
7194
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7196
$as_echo "failed" >&6; }
7198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7199
$as_echo "ok" >&6; }
7202
# Response file support.
7203
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7204
nm_file_list_spec='@'
7205
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7206
nm_file_list_spec='@'
7245
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7246
$as_echo_n "checking for sysroot... " >&6; }
7248
# Check whether --with-sysroot was given.
7249
if test "${with_sysroot+set}" = set; then :
7250
withval=$with_sysroot;
7257
case $with_sysroot in #(
7259
if test yes = "$GCC"; then
7260
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7264
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7270
$as_echo "$with_sysroot" >&6; }
7271
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7276
$as_echo "${lt_sysroot:-no}" >&6; }
7282
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7283
$as_echo_n "checking for a working dd... " >&6; }
7284
if ${ac_cv_path_lt_DD+:} false; then :
7285
$as_echo_n "(cached) " >&6
7287
printf 0123456789abcdef0123456789abcdef >conftest.i
7288
cat conftest.i conftest.i >conftest2.i
7290
if test -z "$lt_DD"; then
7291
ac_path_lt_DD_found=false
7292
# Loop through the user's path and test for each of PROGNAME-LIST
7293
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297
test -z "$as_dir" && as_dir=.
7298
for ac_prog in dd; do
7299
for ac_exec_ext in '' $ac_executable_extensions; do
7300
ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7301
as_fn_executable_p "$ac_path_lt_DD" || continue
7302
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7303
cmp -s conftest.i conftest.out \
7304
&& ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7306
$ac_path_lt_DD_found && break 3
7311
if test -z "$ac_cv_path_lt_DD"; then
7315
ac_cv_path_lt_DD=$lt_DD
7318
rm -f conftest.i conftest2.i conftest.out
7320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7321
$as_echo "$ac_cv_path_lt_DD" >&6; }
7324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7325
$as_echo_n "checking how to truncate binary pipes... " >&6; }
7326
if ${lt_cv_truncate_bin+:} false; then :
7327
$as_echo_n "(cached) " >&6
7329
printf 0123456789abcdef0123456789abcdef >conftest.i
7330
cat conftest.i conftest.i >conftest2.i
7332
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7333
cmp -s conftest.i conftest.out \
7334
&& lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7336
rm -f conftest.i conftest2.i conftest.out
7337
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7340
$as_echo "$lt_cv_truncate_bin" >&6; }
7348
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7351
for cc_temp in $*""; do
7353
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7354
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7359
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7362
# Check whether --enable-libtool-lock was given.
7363
if test "${enable_libtool_lock+set}" = set; then :
7364
enableval=$enable_libtool_lock;
7367
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7369
# Some flags need to be propagated to the compiler or linker for good
7373
# Find out what ABI is being produced by ac_compile, and set mode
7374
# options accordingly.
7375
echo 'int i;' > conftest.$ac_ext
7376
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7377
(eval $ac_compile) 2>&5
7379
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7380
test $ac_status = 0; }; then
7381
case `/usr/bin/file conftest.$ac_objext` in
7393
# Find out what ABI is being produced by ac_compile, and set linker
7394
# options accordingly.
7395
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7396
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7397
(eval $ac_compile) 2>&5
7399
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7400
test $ac_status = 0; }; then
7401
if test yes = "$lt_cv_prog_gnu_ld"; then
7402
case `/usr/bin/file conftest.$ac_objext` in
7404
LD="${LD-ld} -melf32bsmip"
7407
LD="${LD-ld} -melf32bmipn32"
7410
LD="${LD-ld} -melf64bmip"
7414
case `/usr/bin/file conftest.$ac_objext` in
7431
# Find out what ABI is being produced by ac_compile, and set linker
7432
# options accordingly.
7433
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7434
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7435
(eval $ac_compile) 2>&5
7437
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438
test $ac_status = 0; }; then
7440
case `/usr/bin/file conftest.$ac_objext` in
7448
case `/usr/bin/file conftest.$ac_objext` in
7450
emul="${emul}btsmip"
7453
emul="${emul}ltsmip"
7456
case `/usr/bin/file conftest.$ac_objext` in
7461
LD="${LD-ld} -m $emul"
7466
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7467
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7468
# Find out what ABI is being produced by ac_compile, and set linker
7469
# options accordingly. Note that the listed cases only cover the
7470
# situations where additional linker options are needed (such as when
7471
# doing 32-bit compilation for a host where ld defaults to 64-bit, or
7472
# vice versa); the common cases where no linker options are needed do
7473
# not appear in the list.
7474
echo 'int i;' > conftest.$ac_ext
7475
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7476
(eval $ac_compile) 2>&5
7478
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7479
test $ac_status = 0; }; then
7480
case `/usr/bin/file conftest.o` in
7483
x86_64-*kfreebsd*-gnu)
7484
LD="${LD-ld} -m elf_i386_fbsd"
7487
case `/usr/bin/file conftest.o` in
7489
LD="${LD-ld} -m elf32_x86_64"
7492
LD="${LD-ld} -m elf_i386"
7496
powerpc64le-*linux*)
7497
LD="${LD-ld} -m elf32lppclinux"
7500
LD="${LD-ld} -m elf32ppclinux"
7503
LD="${LD-ld} -m elf_s390"
7506
LD="${LD-ld} -m elf32_sparc"
7512
x86_64-*kfreebsd*-gnu)
7513
LD="${LD-ld} -m elf_x86_64_fbsd"
7516
LD="${LD-ld} -m elf_x86_64"
7519
LD="${LD-ld} -m elf64lppc"
7522
LD="${LD-ld} -m elf64ppc"
7524
s390*-*linux*|s390*-*tpf*)
7525
LD="${LD-ld} -m elf64_s390"
7528
LD="${LD-ld} -m elf64_sparc"
7538
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
7540
CFLAGS="$CFLAGS -belf"
7541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7542
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7543
if ${lt_cv_cc_needs_belf+:} false; then :
7544
$as_echo_n "(cached) " >&6
7547
ac_cpp='$CPP $CPPFLAGS'
7548
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7549
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7550
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7552
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553
/* end confdefs.h. */
7563
if ac_fn_c_try_link "$LINENO"; then :
7564
lt_cv_cc_needs_belf=yes
7566
lt_cv_cc_needs_belf=no
7568
rm -f core conftest.err conftest.$ac_objext \
7569
conftest$ac_exeext conftest.$ac_ext
7571
ac_cpp='$CPP $CPPFLAGS'
7572
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7573
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7574
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7577
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7578
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7579
if test yes != "$lt_cv_cc_needs_belf"; then
7580
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7585
# Find out what ABI is being produced by ac_compile, and set linker
7586
# options accordingly.
7587
echo 'int i;' > conftest.$ac_ext
7588
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7589
(eval $ac_compile) 2>&5
7591
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7592
test $ac_status = 0; }; then
7593
case `/usr/bin/file conftest.o` in
7595
case $lt_cv_prog_gnu_ld in
7598
i?86-*-solaris*|x86_64-*-solaris*)
7599
LD="${LD-ld} -m elf_x86_64"
7602
LD="${LD-ld} -m elf64_sparc"
7605
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7606
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7611
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7623
need_locks=$enable_libtool_lock
7625
if test -n "$ac_tool_prefix"; then
7626
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7627
set dummy ${ac_tool_prefix}mt; ac_word=$2
7628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629
$as_echo_n "checking for $ac_word... " >&6; }
7630
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7631
$as_echo_n "(cached) " >&6
7633
if test -n "$MANIFEST_TOOL"; then
7634
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640
test -z "$as_dir" && as_dir=.
7641
for ac_exec_ext in '' $ac_executable_extensions; do
7642
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7643
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7644
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7654
if test -n "$MANIFEST_TOOL"; then
7655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7656
$as_echo "$MANIFEST_TOOL" >&6; }
7658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659
$as_echo "no" >&6; }
7664
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7665
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7666
# Extract the first word of "mt", so it can be a program name with args.
7667
set dummy mt; ac_word=$2
7668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669
$as_echo_n "checking for $ac_word... " >&6; }
7670
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7671
$as_echo_n "(cached) " >&6
7673
if test -n "$ac_ct_MANIFEST_TOOL"; then
7674
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7676
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680
test -z "$as_dir" && as_dir=.
7681
for ac_exec_ext in '' $ac_executable_extensions; do
7682
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7683
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7684
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7694
if test -n "$ac_ct_MANIFEST_TOOL"; then
7695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7696
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699
$as_echo "no" >&6; }
7702
if test "x$ac_ct_MANIFEST_TOOL" = x; then
7705
case $cross_compiling:$ac_tool_warned in
7707
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7708
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7709
ac_tool_warned=yes ;;
7711
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7714
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7717
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7719
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7720
if ${lt_cv_path_mainfest_tool+:} false; then :
7721
$as_echo_n "(cached) " >&6
7723
lt_cv_path_mainfest_tool=no
7724
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7725
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7726
cat conftest.err >&5
7727
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7728
lt_cv_path_mainfest_tool=yes
7732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7733
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7734
if test yes != "$lt_cv_path_mainfest_tool"; then
7744
rhapsody* | darwin*)
7745
if test -n "$ac_tool_prefix"; then
7746
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7747
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749
$as_echo_n "checking for $ac_word... " >&6; }
7750
if ${ac_cv_prog_DSYMUTIL+:} false; then :
7751
$as_echo_n "(cached) " >&6
7753
if test -n "$DSYMUTIL"; then
7754
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760
test -z "$as_dir" && as_dir=.
7761
for ac_exec_ext in '' $ac_executable_extensions; do
7762
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7763
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7764
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7774
if test -n "$DSYMUTIL"; then
7775
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7776
$as_echo "$DSYMUTIL" >&6; }
7778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779
$as_echo "no" >&6; }
7784
if test -z "$ac_cv_prog_DSYMUTIL"; then
7785
ac_ct_DSYMUTIL=$DSYMUTIL
7786
# Extract the first word of "dsymutil", so it can be a program name with args.
7787
set dummy dsymutil; ac_word=$2
7788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789
$as_echo_n "checking for $ac_word... " >&6; }
7790
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7791
$as_echo_n "(cached) " >&6
7793
if test -n "$ac_ct_DSYMUTIL"; then
7794
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800
test -z "$as_dir" && as_dir=.
7801
for ac_exec_ext in '' $ac_executable_extensions; do
7802
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7803
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7804
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7814
if test -n "$ac_ct_DSYMUTIL"; then
7815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7816
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819
$as_echo "no" >&6; }
7822
if test "x$ac_ct_DSYMUTIL" = x; then
7825
case $cross_compiling:$ac_tool_warned in
7827
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7828
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7829
ac_tool_warned=yes ;;
7831
DSYMUTIL=$ac_ct_DSYMUTIL
7834
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7837
if test -n "$ac_tool_prefix"; then
7838
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7839
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841
$as_echo_n "checking for $ac_word... " >&6; }
7842
if ${ac_cv_prog_NMEDIT+:} false; then :
7843
$as_echo_n "(cached) " >&6
7845
if test -n "$NMEDIT"; then
7846
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852
test -z "$as_dir" && as_dir=.
7853
for ac_exec_ext in '' $ac_executable_extensions; do
7854
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7855
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7856
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865
NMEDIT=$ac_cv_prog_NMEDIT
7866
if test -n "$NMEDIT"; then
7867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7868
$as_echo "$NMEDIT" >&6; }
7870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871
$as_echo "no" >&6; }
7876
if test -z "$ac_cv_prog_NMEDIT"; then
7877
ac_ct_NMEDIT=$NMEDIT
7878
# Extract the first word of "nmedit", so it can be a program name with args.
7879
set dummy nmedit; ac_word=$2
7880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881
$as_echo_n "checking for $ac_word... " >&6; }
7882
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7883
$as_echo_n "(cached) " >&6
7885
if test -n "$ac_ct_NMEDIT"; then
7886
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892
test -z "$as_dir" && as_dir=.
7893
for ac_exec_ext in '' $ac_executable_extensions; do
7894
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7896
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7906
if test -n "$ac_ct_NMEDIT"; then
7907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7908
$as_echo "$ac_ct_NMEDIT" >&6; }
7910
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911
$as_echo "no" >&6; }
7914
if test "x$ac_ct_NMEDIT" = x; then
7917
case $cross_compiling:$ac_tool_warned in
7919
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7920
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7921
ac_tool_warned=yes ;;
7923
NMEDIT=$ac_ct_NMEDIT
7926
NMEDIT="$ac_cv_prog_NMEDIT"
7929
if test -n "$ac_tool_prefix"; then
7930
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7931
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933
$as_echo_n "checking for $ac_word... " >&6; }
7934
if ${ac_cv_prog_LIPO+:} false; then :
7935
$as_echo_n "(cached) " >&6
7937
if test -n "$LIPO"; then
7938
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7940
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944
test -z "$as_dir" && as_dir=.
7945
for ac_exec_ext in '' $ac_executable_extensions; do
7946
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7947
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7948
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957
LIPO=$ac_cv_prog_LIPO
7958
if test -n "$LIPO"; then
7959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7960
$as_echo "$LIPO" >&6; }
7962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963
$as_echo "no" >&6; }
7968
if test -z "$ac_cv_prog_LIPO"; then
7970
# Extract the first word of "lipo", so it can be a program name with args.
7971
set dummy lipo; ac_word=$2
7972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973
$as_echo_n "checking for $ac_word... " >&6; }
7974
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7975
$as_echo_n "(cached) " >&6
7977
if test -n "$ac_ct_LIPO"; then
7978
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984
test -z "$as_dir" && as_dir=.
7985
for ac_exec_ext in '' $ac_executable_extensions; do
7986
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7987
ac_cv_prog_ac_ct_LIPO="lipo"
7988
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7998
if test -n "$ac_ct_LIPO"; then
7999
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8000
$as_echo "$ac_ct_LIPO" >&6; }
8002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003
$as_echo "no" >&6; }
8006
if test "x$ac_ct_LIPO" = x; then
8009
case $cross_compiling:$ac_tool_warned in
8011
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8012
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8013
ac_tool_warned=yes ;;
8018
LIPO="$ac_cv_prog_LIPO"
8021
if test -n "$ac_tool_prefix"; then
8022
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8023
set dummy ${ac_tool_prefix}otool; ac_word=$2
8024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025
$as_echo_n "checking for $ac_word... " >&6; }
8026
if ${ac_cv_prog_OTOOL+:} false; then :
8027
$as_echo_n "(cached) " >&6
8029
if test -n "$OTOOL"; then
8030
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8032
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036
test -z "$as_dir" && as_dir=.
8037
for ac_exec_ext in '' $ac_executable_extensions; do
8038
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8039
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8040
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8049
OTOOL=$ac_cv_prog_OTOOL
8050
if test -n "$OTOOL"; then
8051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8052
$as_echo "$OTOOL" >&6; }
8054
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055
$as_echo "no" >&6; }
8060
if test -z "$ac_cv_prog_OTOOL"; then
8062
# Extract the first word of "otool", so it can be a program name with args.
8063
set dummy otool; ac_word=$2
8064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065
$as_echo_n "checking for $ac_word... " >&6; }
8066
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8067
$as_echo_n "(cached) " >&6
8069
if test -n "$ac_ct_OTOOL"; then
8070
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8072
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076
test -z "$as_dir" && as_dir=.
8077
for ac_exec_ext in '' $ac_executable_extensions; do
8078
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8079
ac_cv_prog_ac_ct_OTOOL="otool"
8080
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8089
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8090
if test -n "$ac_ct_OTOOL"; then
8091
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8092
$as_echo "$ac_ct_OTOOL" >&6; }
8094
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095
$as_echo "no" >&6; }
8098
if test "x$ac_ct_OTOOL" = x; then
8101
case $cross_compiling:$ac_tool_warned in
8103
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8104
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8105
ac_tool_warned=yes ;;
8110
OTOOL="$ac_cv_prog_OTOOL"
8113
if test -n "$ac_tool_prefix"; then
8114
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8115
set dummy ${ac_tool_prefix}otool64; ac_word=$2
8116
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117
$as_echo_n "checking for $ac_word... " >&6; }
8118
if ${ac_cv_prog_OTOOL64+:} false; then :
8119
$as_echo_n "(cached) " >&6
8121
if test -n "$OTOOL64"; then
8122
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128
test -z "$as_dir" && as_dir=.
8129
for ac_exec_ext in '' $ac_executable_extensions; do
8130
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8131
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8132
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8141
OTOOL64=$ac_cv_prog_OTOOL64
8142
if test -n "$OTOOL64"; then
8143
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8144
$as_echo "$OTOOL64" >&6; }
8146
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147
$as_echo "no" >&6; }
8152
if test -z "$ac_cv_prog_OTOOL64"; then
8153
ac_ct_OTOOL64=$OTOOL64
8154
# Extract the first word of "otool64", so it can be a program name with args.
8155
set dummy otool64; ac_word=$2
8156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157
$as_echo_n "checking for $ac_word... " >&6; }
8158
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8159
$as_echo_n "(cached) " >&6
8161
if test -n "$ac_ct_OTOOL64"; then
8162
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168
test -z "$as_dir" && as_dir=.
8169
for ac_exec_ext in '' $ac_executable_extensions; do
8170
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8171
ac_cv_prog_ac_ct_OTOOL64="otool64"
8172
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8182
if test -n "$ac_ct_OTOOL64"; then
8183
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8184
$as_echo "$ac_ct_OTOOL64" >&6; }
8186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187
$as_echo "no" >&6; }
8190
if test "x$ac_ct_OTOOL64" = x; then
8193
case $cross_compiling:$ac_tool_warned in
8195
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8196
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8197
ac_tool_warned=yes ;;
8199
OTOOL64=$ac_ct_OTOOL64
8202
OTOOL64="$ac_cv_prog_OTOOL64"
8231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8232
$as_echo_n "checking for -single_module linker flag... " >&6; }
8233
if ${lt_cv_apple_cc_single_mod+:} false; then :
8234
$as_echo_n "(cached) " >&6
8236
lt_cv_apple_cc_single_mod=no
8237
if test -z "$LT_MULTI_MODULE"; then
8238
# By default we will add the -single_module flag. You can override
8239
# by either setting the environment variable LT_MULTI_MODULE
8240
# non-empty at configure time, or by adding -multi_module to the
8242
rm -rf libconftest.dylib*
8243
echo "int foo(void){return 1;}" > conftest.c
8244
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8245
-dynamiclib -Wl,-single_module conftest.c" >&5
8246
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8247
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8249
# If there is a non-empty error log, and "single_module"
8250
# appears in it, assume the flag caused a linker warning
8251
if test -s conftest.err && $GREP single_module conftest.err; then
8252
cat conftest.err >&5
8253
# Otherwise, if the output was created with a 0 exit code from
8254
# the compiler, it worked.
8255
elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8256
lt_cv_apple_cc_single_mod=yes
8258
cat conftest.err >&5
8260
rm -rf libconftest.dylib*
8264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8265
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8267
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8268
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8269
if ${lt_cv_ld_exported_symbols_list+:} false; then :
8270
$as_echo_n "(cached) " >&6
8272
lt_cv_ld_exported_symbols_list=no
8273
save_LDFLAGS=$LDFLAGS
8274
echo "_main" > conftest.sym
8275
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8276
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277
/* end confdefs.h. */
8287
if ac_fn_c_try_link "$LINENO"; then :
8288
lt_cv_ld_exported_symbols_list=yes
8290
lt_cv_ld_exported_symbols_list=no
8292
rm -f core conftest.err conftest.$ac_objext \
8293
conftest$ac_exeext conftest.$ac_ext
8294
LDFLAGS=$save_LDFLAGS
8297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8298
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8300
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8301
$as_echo_n "checking for -force_load linker flag... " >&6; }
8302
if ${lt_cv_ld_force_load+:} false; then :
8303
$as_echo_n "(cached) " >&6
8305
lt_cv_ld_force_load=no
8306
cat > conftest.c << _LT_EOF
8307
int forced_loaded() { return 2;}
8309
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8310
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8311
echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8312
$AR $AR_FLAGS libconftest.a conftest.o 2>&5
8313
echo "$RANLIB libconftest.a" >&5
8314
$RANLIB libconftest.a 2>&5
8315
cat > conftest.c << _LT_EOF
8316
int main() { return 0;}
8318
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8319
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8321
if test -s conftest.err && $GREP force_load conftest.err; then
8322
cat conftest.err >&5
8323
elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8324
lt_cv_ld_force_load=yes
8326
cat conftest.err >&5
8328
rm -f conftest.err libconftest.a conftest conftest.c
8329
rm -rf conftest.dSYM
8332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8333
$as_echo "$lt_cv_ld_force_load" >&6; }
8335
rhapsody* | darwin1.[012])
8336
_lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8338
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8339
darwin*) # darwin 5.x on
8340
# if running on 10.5 or later, the deployment target defaults
8341
# to the OS version, if on x86, and 10.4, the deployment
8342
# target defaults to 10.4. Don't you love it?
8343
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8344
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8345
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8347
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8349
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8353
if test yes = "$lt_cv_apple_cc_single_mod"; then
8354
_lt_dar_single_mod='$single_module'
8356
if test yes = "$lt_cv_ld_exported_symbols_list"; then
8357
_lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8359
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8361
if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8362
_lt_dsymutil='~$DSYMUTIL $lib || :'
8369
# func_munge_path_list VARIABLE PATH
8370
# -----------------------------------
8371
# VARIABLE is name of variable containing _space_ separated list of
8372
# directories to be munged by the contents of PATH, which is string
8375
# string "DIR[ DIR]" will be prepended to VARIABLE
8377
# string "DIR[ DIR]" will be appended to VARIABLE
8378
# "DIRP[:DIRP]::[DIRA:]DIRA"
8379
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8380
# "DIRA[ DIRA]" will be appended to VARIABLE
8382
# VARIABLE will be replaced by "DIR[ DIR]"
8383
func_munge_path_list ()
8389
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8392
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8395
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8396
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8399
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8405
ac_cpp='$CPP $CPPFLAGS'
8406
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8410
$as_echo_n "checking how to run the C preprocessor... " >&6; }
8411
# On Suns, sometimes $CPP names a directory.
8412
if test -n "$CPP" && test -d "$CPP"; then
8415
if test -z "$CPP"; then
8416
if ${ac_cv_prog_CPP+:} false; then :
8417
$as_echo_n "(cached) " >&6
8419
# Double quotes because CPP needs to be expanded
8420
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8423
for ac_c_preproc_warn_flag in '' yes
8425
# Use a header file that comes with gcc, so configuring glibc
8426
# with a fresh cross-compiler works.
8427
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8428
# <limits.h> exists even on freestanding compilers.
8429
# On the NeXT, cc -E runs the code through the compiler's parser,
8430
# not just through cpp. "Syntax error" is here to catch this case.
8431
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432
/* end confdefs.h. */
8434
# include <limits.h>
8436
# include <assert.h>
8440
if ac_fn_c_try_cpp "$LINENO"; then :
8443
# Broken: fails on valid input.
8446
rm -f conftest.err conftest.i conftest.$ac_ext
8448
# OK, works on sane cases. Now check whether nonexistent headers
8449
# can be detected and how.
8450
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451
/* end confdefs.h. */
8452
#include <ac_nonexistent.h>
8454
if ac_fn_c_try_cpp "$LINENO"; then :
8455
# Broken: success on invalid input.
8458
# Passes both tests.
8462
rm -f conftest.err conftest.i conftest.$ac_ext
8465
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8466
rm -f conftest.i conftest.err conftest.$ac_ext
8467
if $ac_preproc_ok; then :
8479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8480
$as_echo "$CPP" >&6; }
8482
for ac_c_preproc_warn_flag in '' yes
8484
# Use a header file that comes with gcc, so configuring glibc
8485
# with a fresh cross-compiler works.
8486
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8487
# <limits.h> exists even on freestanding compilers.
8488
# On the NeXT, cc -E runs the code through the compiler's parser,
8489
# not just through cpp. "Syntax error" is here to catch this case.
8490
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491
/* end confdefs.h. */
8493
# include <limits.h>
8495
# include <assert.h>
8499
if ac_fn_c_try_cpp "$LINENO"; then :
8502
# Broken: fails on valid input.
8505
rm -f conftest.err conftest.i conftest.$ac_ext
8507
# OK, works on sane cases. Now check whether nonexistent headers
8508
# can be detected and how.
8509
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510
/* end confdefs.h. */
8511
#include <ac_nonexistent.h>
8513
if ac_fn_c_try_cpp "$LINENO"; then :
8514
# Broken: success on invalid input.
8517
# Passes both tests.
8521
rm -f conftest.err conftest.i conftest.$ac_ext
8524
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8525
rm -f conftest.i conftest.err conftest.$ac_ext
8526
if $ac_preproc_ok; then :
8529
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8530
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8531
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8532
See \`config.log' for more details" "$LINENO" 5; }
8536
ac_cpp='$CPP $CPPFLAGS'
8537
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8538
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8539
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8543
$as_echo_n "checking for ANSI C header files... " >&6; }
8544
if ${ac_cv_header_stdc+:} false; then :
8545
$as_echo_n "(cached) " >&6
8547
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548
/* end confdefs.h. */
8562
if ac_fn_c_try_compile "$LINENO"; then :
8563
ac_cv_header_stdc=yes
8565
ac_cv_header_stdc=no
8567
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8569
if test $ac_cv_header_stdc = yes; then
8570
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8571
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572
/* end confdefs.h. */
8576
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8577
$EGREP "memchr" >/dev/null 2>&1; then :
8580
ac_cv_header_stdc=no
8586
if test $ac_cv_header_stdc = yes; then
8587
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8588
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589
/* end confdefs.h. */
8593
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8594
$EGREP "free" >/dev/null 2>&1; then :
8597
ac_cv_header_stdc=no
8603
if test $ac_cv_header_stdc = yes; then
8604
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8605
if test "$cross_compiling" = yes; then :
8608
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609
/* end confdefs.h. */
8612
#if ((' ' & 0x0FF) == 0x020)
8613
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8614
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8616
# define ISLOWER(c) \
8617
(('a' <= (c) && (c) <= 'i') \
8618
|| ('j' <= (c) && (c) <= 'r') \
8619
|| ('s' <= (c) && (c) <= 'z'))
8620
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8623
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8628
for (i = 0; i < 256; i++)
8629
if (XOR (islower (i), ISLOWER (i))
8630
|| toupper (i) != TOUPPER (i))
8635
if ac_fn_c_try_run "$LINENO"; then :
8638
ac_cv_header_stdc=no
8640
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8641
conftest.$ac_objext conftest.beam conftest.$ac_ext
8646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8647
$as_echo "$ac_cv_header_stdc" >&6; }
8648
if test $ac_cv_header_stdc = yes; then
8650
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8654
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8655
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8656
inttypes.h stdint.h unistd.h
8658
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8659
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8661
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8662
cat >>confdefs.h <<_ACEOF
8663
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8671
for ac_header in dlfcn.h
8673
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8675
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8676
cat >>confdefs.h <<_ACEOF
8677
#define HAVE_DLFCN_H 1
8689
# Check whether --enable-shared was given.
8690
if test "${enable_shared+set}" = set; then :
8691
enableval=$enable_shared; p=${PACKAGE-default}
8693
yes) enable_shared=yes ;;
8694
no) enable_shared=no ;;
8697
# Look at the argument we got. We use all the common list separators.
8698
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8699
for pkg in $enableval; do
8701
if test "X$pkg" = "X$p"; then
8728
# Check whether --enable-static was given.
8729
if test "${enable_static+set}" = set; then :
8730
enableval=$enable_static; p=${PACKAGE-default}
8732
yes) enable_static=yes ;;
8733
no) enable_static=no ;;
8736
# Look at the argument we got. We use all the common list separators.
8737
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8738
for pkg in $enableval; do
8740
if test "X$pkg" = "X$p"; then
8760
# Check whether --with-pic was given.
8761
if test "${with_pic+set}" = set; then :
8762
withval=$with_pic; lt_p=${PACKAGE-default}
8764
yes|no) pic_mode=$withval ;;
8767
# Look at the argument we got. We use all the common list separators.
8768
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8769
for lt_pkg in $withval; do
8771
if test "X$lt_pkg" = "X$lt_p"; then
8789
# Check whether --enable-fast-install was given.
8790
if test "${enable_fast_install+set}" = set; then :
8791
enableval=$enable_fast_install; p=${PACKAGE-default}
8793
yes) enable_fast_install=yes ;;
8794
no) enable_fast_install=no ;;
8796
enable_fast_install=no
8797
# Look at the argument we got. We use all the common list separators.
8798
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8799
for pkg in $enableval; do
8801
if test "X$pkg" = "X$p"; then
8802
enable_fast_install=yes
8809
enable_fast_install=yes
8819
shared_archive_member_spec=
8820
case $host,$enable_shared in
8821
power*-*-aix[5-9]*,yes)
8822
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8823
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8825
# Check whether --with-aix-soname was given.
8826
if test "${with_aix_soname+set}" = set; then :
8827
withval=$with_aix_soname; case $withval in
8831
as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8834
lt_cv_with_aix_soname=$with_aix_soname
8836
if ${lt_cv_with_aix_soname+:} false; then :
8837
$as_echo_n "(cached) " >&6
8839
lt_cv_with_aix_soname=aix
8842
with_aix_soname=$lt_cv_with_aix_soname
8845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8846
$as_echo "$with_aix_soname" >&6; }
8847
if test aix != "$with_aix_soname"; then
8848
# For the AIX way of multilib, we name the shared archive member
8849
# based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8850
# and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8851
# Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8852
# the AIX toolchain works better with OBJECT_MODE set (default 32).
8853
if test 64 = "${OBJECT_MODE-32}"; then
8854
shared_archive_member_spec=shr_64
8856
shared_archive_member_spec=shr
8874
# This can be used to rebuild libtool when needed
8875
LIBTOOL_DEPS=$ltmain
8877
# Always use our own libtool.
8878
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8909
test -z "$LN_S" && LN_S="ln -s"
8924
if test -n "${ZSH_VERSION+set}"; then
8925
setopt NO_GLOB_SUBST
8928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8929
$as_echo_n "checking for objdir... " >&6; }
8930
if ${lt_cv_objdir+:} false; then :
8931
$as_echo_n "(cached) " >&6
8933
rm -f .libs 2>/dev/null
8934
mkdir .libs 2>/dev/null
8935
if test -d .libs; then
8938
# MS-DOS does not allow filenames that begin with a dot.
8941
rmdir .libs 2>/dev/null
8943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8944
$as_echo "$lt_cv_objdir" >&6; }
8945
objdir=$lt_cv_objdir
8951
cat >>confdefs.h <<_ACEOF
8952
#define LT_OBJDIR "$lt_cv_objdir/"
8960
# AIX sometimes has problems with the GCC collect2 program. For some
8961
# reason, if we set the COLLECT_NAMES environment variable, the problems
8962
# vanish in a puff of smoke.
8963
if test set != "${COLLECT_NAMES+set}"; then
8965
export COLLECT_NAMES
8972
can_build_shared=yes
8974
# All known linkers require a '.a' archive for static linking (except MSVC,
8975
# which needs '.lib').
8978
with_gnu_ld=$lt_cv_prog_gnu_ld
8983
# Set sane defaults for various variables
8984
test -z "$CC" && CC=cc
8985
test -z "$LTCC" && LTCC=$CC
8986
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8987
test -z "$LD" && LD=ld
8988
test -z "$ac_objext" && ac_objext=o
8990
func_cc_basename $compiler
8991
cc_basename=$func_cc_basename_result
8994
# Only perform the check for file, if the check method requires it
8995
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8996
case $deplibs_check_method in
8998
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9000
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9001
if ${lt_cv_path_MAGIC_CMD+:} false; then :
9002
$as_echo_n "(cached) " >&6
9006
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9009
lt_save_MAGIC_CMD=$MAGIC_CMD
9010
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9011
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9012
for ac_dir in $ac_dummy; do
9014
test -z "$ac_dir" && ac_dir=.
9015
if test -f "$ac_dir/${ac_tool_prefix}file"; then
9016
lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9017
if test -n "$file_magic_test_file"; then
9018
case $deplibs_check_method in
9020
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9021
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9022
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9023
$EGREP "$file_magic_regex" > /dev/null; then
9028
*** Warning: the command libtool uses to detect shared libraries,
9029
*** $file_magic_cmd, produces output that libtool cannot recognize.
9030
*** The result is that libtool may fail to recognize shared libraries
9031
*** as such. This will affect the creation of libtool libraries that
9032
*** depend on shared libraries, but programs linked with such libtool
9033
*** libraries will work regardless of this problem. Nevertheless, you
9034
*** may want to report the problem to your system manager and/or to
9035
*** bug-libtool@gnu.org
9045
MAGIC_CMD=$lt_save_MAGIC_CMD
9050
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9051
if test -n "$MAGIC_CMD"; then
9052
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9053
$as_echo "$MAGIC_CMD" >&6; }
9055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9056
$as_echo "no" >&6; }
9063
if test -z "$lt_cv_path_MAGIC_CMD"; then
9064
if test -n "$ac_tool_prefix"; then
9065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9066
$as_echo_n "checking for file... " >&6; }
9067
if ${lt_cv_path_MAGIC_CMD+:} false; then :
9068
$as_echo_n "(cached) " >&6
9072
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9075
lt_save_MAGIC_CMD=$MAGIC_CMD
9076
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9077
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9078
for ac_dir in $ac_dummy; do
9080
test -z "$ac_dir" && ac_dir=.
9081
if test -f "$ac_dir/file"; then
9082
lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9083
if test -n "$file_magic_test_file"; then
9084
case $deplibs_check_method in
9086
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9087
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9088
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9089
$EGREP "$file_magic_regex" > /dev/null; then
9094
*** Warning: the command libtool uses to detect shared libraries,
9095
*** $file_magic_cmd, produces output that libtool cannot recognize.
9096
*** The result is that libtool may fail to recognize shared libraries
9097
*** as such. This will affect the creation of libtool libraries that
9098
*** depend on shared libraries, but programs linked with such libtool
9099
*** libraries will work regardless of this problem. Nevertheless, you
9100
*** may want to report the problem to your system manager and/or to
9101
*** bug-libtool@gnu.org
9111
MAGIC_CMD=$lt_save_MAGIC_CMD
9116
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9117
if test -n "$MAGIC_CMD"; then
9118
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9119
$as_echo "$MAGIC_CMD" >&6; }
9121
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122
$as_echo "no" >&6; }
9135
# Use C for the default configuration in the libtool script
9139
ac_cpp='$CPP $CPPFLAGS'
9140
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9141
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9142
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9145
# Source file extension for C test sources.
9148
# Object file extension for compiled C test sources.
9152
# Code to be used in simple compile tests
9153
lt_simple_compile_test_code="int some_variable = 0;"
9155
# Code to be used in simple link tests
9156
lt_simple_link_test_code='int main(){return(0);}'
9164
# If no C compiler was specified, use CC.
9167
# If no C compiler flags were specified, use CFLAGS.
9168
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9170
# Allow CC to be a program name with arguments.
9173
# Save the default compiler, since it gets overwritten when the other
9174
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9175
compiler_DEFAULT=$CC
9177
# save warnings/boilerplate of simple test code
9178
ac_outfile=conftest.$ac_objext
9179
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9180
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9181
_lt_compiler_boilerplate=`cat conftest.err`
9184
ac_outfile=conftest.$ac_objext
9185
echo "$lt_simple_link_test_code" >conftest.$ac_ext
9186
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9187
_lt_linker_boilerplate=`cat conftest.err`
9192
## There is no encapsulation within the following macros, do not change
9193
## the running order or otherwise move them around unless you know exactly
9194
## what you are doing...
9195
if test -n "$compiler"; then
9197
lt_prog_compiler_no_builtin_flag=
9199
if test yes = "$GCC"; then
9200
case $cc_basename in
9202
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9204
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9207
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9208
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9209
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9210
$as_echo_n "(cached) " >&6
9212
lt_cv_prog_compiler_rtti_exceptions=no
9213
ac_outfile=conftest.$ac_objext
9214
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9215
lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9216
# Insert the option either (1) after the last *FLAGS variable, or
9217
# (2) before a word containing "conftest.", or (3) at the end.
9218
# Note that $ac_compile itself does not contain backslashes and begins
9219
# with a dollar sign (not a hyphen), so the echo should work correctly.
9220
# The option is referenced via a variable to avoid confusing sed.
9221
lt_compile=`echo "$ac_compile" | $SED \
9222
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9223
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9224
-e 's:$: $lt_compiler_flag:'`
9225
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9226
(eval "$lt_compile" 2>conftest.err)
9228
cat conftest.err >&5
9229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230
if (exit $ac_status) && test -s "$ac_outfile"; then
9231
# The compiler can only warn and ignore the option if not recognized
9232
# So say no if there are warnings other than the usual output.
9233
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9234
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9235
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9236
lt_cv_prog_compiler_rtti_exceptions=yes
9242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9243
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9245
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9246
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9258
lt_prog_compiler_wl=
9259
lt_prog_compiler_pic=
9260
lt_prog_compiler_static=
9263
if test yes = "$GCC"; then
9264
lt_prog_compiler_wl='-Wl,'
9265
lt_prog_compiler_static='-static'
9269
# All AIX code is PIC.
9270
if test ia64 = "$host_cpu"; then
9271
# AIX 5 now supports IA64 processor
9272
lt_prog_compiler_static='-Bstatic'
9274
lt_prog_compiler_pic='-fPIC'
9280
# see comment about AmigaOS4 .so support
9281
lt_prog_compiler_pic='-fPIC'
9284
# FIXME: we need at least 68020 code to build shared libraries, but
9285
# adding the '-m68020' flag to GCC prevents building anything better,
9287
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9292
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9293
# PIC is the default for these OSes.
9296
mingw* | cygwin* | pw32* | os2* | cegcc*)
9297
# This hack is so that the source file can tell whether it is being
9298
# built for inclusion in a dll (and should export symbols for example).
9299
# Although the cygwin gcc ignores -fPIC, still need this for old-style
9300
# (--disable-auto-import) libraries
9301
lt_prog_compiler_pic='-DDLL_EXPORT'
9304
lt_prog_compiler_static='$wl-static'
9309
darwin* | rhapsody*)
9310
# PIC is the default on this platform
9311
# Common symbols not allowed in MH_DYLIB files
9312
lt_prog_compiler_pic='-fno-common'
9316
# PIC is the default for Haiku.
9317
# The "-static" flag exists, but is broken.
9318
lt_prog_compiler_static=
9322
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9323
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9324
# sets the default TLS model and affects inlining.
9330
lt_prog_compiler_pic='-fPIC'
9336
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
9337
# Instead, we relocate shared libraries at runtime.
9341
# Just because we use GCC doesn't mean we suddenly get shared libraries
9342
# on systems that don't support them.
9343
lt_prog_compiler_can_build_shared=no
9348
# QNX uses GNU C++, but need to define -shared option too, otherwise
9350
lt_prog_compiler_pic='-fPIC -shared'
9354
if test -d /usr/nec; then
9355
lt_prog_compiler_pic=-Kconform_pic
9360
lt_prog_compiler_pic='-fPIC'
9364
case $cc_basename in
9365
nvcc*) # Cuda Compiler Driver 2.2
9366
lt_prog_compiler_wl='-Xlinker '
9367
if test -n "$lt_prog_compiler_pic"; then
9368
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9373
# PORTME Check for flag to pass linker flags through the system compiler.
9376
lt_prog_compiler_wl='-Wl,'
9377
if test ia64 = "$host_cpu"; then
9378
# AIX 5 now supports IA64 processor
9379
lt_prog_compiler_static='-Bstatic'
9381
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9385
darwin* | rhapsody*)
9386
# PIC is the default on this platform
9387
# Common symbols not allowed in MH_DYLIB files
9388
lt_prog_compiler_pic='-fno-common'
9389
case $cc_basename in
9391
# NAG Fortran compiler
9392
lt_prog_compiler_wl='-Wl,-Wl,,'
9393
lt_prog_compiler_pic='-PIC'
9394
lt_prog_compiler_static='-Bstatic'
9399
mingw* | cygwin* | pw32* | os2* | cegcc*)
9400
# This hack is so that the source file can tell whether it is being
9401
# built for inclusion in a dll (and should export symbols for example).
9402
lt_prog_compiler_pic='-DDLL_EXPORT'
9405
lt_prog_compiler_static='$wl-static'
9410
hpux9* | hpux10* | hpux11*)
9411
lt_prog_compiler_wl='-Wl,'
9412
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9419
lt_prog_compiler_pic='+Z'
9422
# Is there a better lt_prog_compiler_static that works with the bundled CC?
9423
lt_prog_compiler_static='$wl-a ${wl}archive'
9426
irix5* | irix6* | nonstopux*)
9427
lt_prog_compiler_wl='-Wl,'
9428
# PIC (with -KPIC) is the default.
9429
lt_prog_compiler_static='-non_shared'
9432
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9433
case $cc_basename in
9434
# old Intel for x86_64, which still supported -KPIC.
9436
lt_prog_compiler_wl='-Wl,'
9437
lt_prog_compiler_pic='-KPIC'
9438
lt_prog_compiler_static='-static'
9440
# icc used to be incompatible with GCC.
9441
# ICC 10 doesn't accept -KPIC any more.
9443
lt_prog_compiler_wl='-Wl,'
9444
lt_prog_compiler_pic='-fPIC'
9445
lt_prog_compiler_static='-static'
9447
# Lahey Fortran 8.1.
9449
lt_prog_compiler_wl='-Wl,'
9450
lt_prog_compiler_pic='--shared'
9451
lt_prog_compiler_static='--static'
9454
# NAG Fortran compiler
9455
lt_prog_compiler_wl='-Wl,-Wl,,'
9456
lt_prog_compiler_pic='-PIC'
9457
lt_prog_compiler_static='-Bstatic'
9460
# Fabrice Bellard et al's Tiny C Compiler
9461
lt_prog_compiler_wl='-Wl,'
9462
lt_prog_compiler_pic='-fPIC'
9463
lt_prog_compiler_static='-static'
9465
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9466
# Portland Group compilers (*not* the Pentium gcc compiler,
9467
# which looks to be a dead project)
9468
lt_prog_compiler_wl='-Wl,'
9469
lt_prog_compiler_pic='-fpic'
9470
lt_prog_compiler_static='-Bstatic'
9473
lt_prog_compiler_wl='-Wl,'
9474
# All Alpha code is PIC.
9475
lt_prog_compiler_static='-non_shared'
9477
xl* | bgxl* | bgf* | mpixl*)
9478
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9479
lt_prog_compiler_wl='-Wl,'
9480
lt_prog_compiler_pic='-qpic'
9481
lt_prog_compiler_static='-qstaticlink'
9484
case `$CC -V 2>&1` in
9485
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9486
# Sun Fortran 8.3 passes all unrecognized flags to the linker
9487
lt_prog_compiler_pic='-KPIC'
9488
lt_prog_compiler_static='-Bstatic'
9489
lt_prog_compiler_wl=''
9491
*Sun\ F* | *Sun*Fortran*)
9492
lt_prog_compiler_pic='-KPIC'
9493
lt_prog_compiler_static='-Bstatic'
9494
lt_prog_compiler_wl='-Qoption ld '
9498
lt_prog_compiler_pic='-KPIC'
9499
lt_prog_compiler_static='-Bstatic'
9500
lt_prog_compiler_wl='-Wl,'
9502
*Intel*\ [CF]*Compiler*)
9503
lt_prog_compiler_wl='-Wl,'
9504
lt_prog_compiler_pic='-fPIC'
9505
lt_prog_compiler_static='-static'
9507
*Cray\ Fortran* | *Cray\ C*)
9508
lt_prog_compiler_wl='-Wl,'
9509
lt_prog_compiler_pic='-hpic'
9510
lt_prog_compiler_static='-static'
9512
*pgcc* | *pgf77* | *pgf90* | *pgf95* | *pgfortran*)
9513
lt_prog_compiler_wl='-Wl,'
9514
lt_prog_compiler_pic='-fpic'
9515
lt_prog_compiler_static='-Bstatic'
9518
lt_prog_compiler_wl='-Wl,'
9519
lt_prog_compiler_pic='-Kpic'
9520
lt_prog_compiler_static='-Bstatic'
9528
lt_prog_compiler_pic='-KPIC'
9529
lt_prog_compiler_static='-Bstatic'
9533
# QNX uses GNU C++, but need to define -shared option too, otherwise
9535
lt_prog_compiler_pic='-fPIC -shared'
9538
osf3* | osf4* | osf5*)
9539
lt_prog_compiler_wl='-Wl,'
9540
# All OSF/1 code is PIC.
9541
lt_prog_compiler_static='-non_shared'
9545
lt_prog_compiler_static='-non_shared'
9549
lt_prog_compiler_pic='-KPIC'
9550
lt_prog_compiler_static='-Bstatic'
9551
case $cc_basename in
9552
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9553
lt_prog_compiler_wl='-Qoption ld ';;
9555
lt_prog_compiler_wl='-Wl,';;
9560
lt_prog_compiler_wl='-Qoption ld '
9561
lt_prog_compiler_pic='-PIC'
9562
lt_prog_compiler_static='-Bstatic'
9565
sysv4 | sysv4.2uw2* | sysv4.3*)
9566
lt_prog_compiler_wl='-Wl,'
9567
lt_prog_compiler_pic='-KPIC'
9568
lt_prog_compiler_static='-Bstatic'
9572
if test -d /usr/nec; then
9573
lt_prog_compiler_pic='-Kconform_pic'
9574
lt_prog_compiler_static='-Bstatic'
9578
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9579
lt_prog_compiler_wl='-Wl,'
9580
lt_prog_compiler_pic='-KPIC'
9581
lt_prog_compiler_static='-Bstatic'
9585
lt_prog_compiler_wl='-Wl,'
9586
lt_prog_compiler_can_build_shared=no
9590
lt_prog_compiler_pic='-pic'
9591
lt_prog_compiler_static='-Bstatic'
9595
lt_prog_compiler_can_build_shared=no
9601
# For platforms that do not support PIC, -DPIC is meaningless:
9603
lt_prog_compiler_pic=
9606
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9610
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9611
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9612
if ${lt_cv_prog_compiler_pic+:} false; then :
9613
$as_echo_n "(cached) " >&6
9615
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9617
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9618
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9619
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9622
# Check to make sure the PIC flag actually works.
9624
if test -n "$lt_prog_compiler_pic"; then
9625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9626
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9627
if ${lt_cv_prog_compiler_pic_works+:} false; then :
9628
$as_echo_n "(cached) " >&6
9630
lt_cv_prog_compiler_pic_works=no
9631
ac_outfile=conftest.$ac_objext
9632
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9633
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9634
# Insert the option either (1) after the last *FLAGS variable, or
9635
# (2) before a word containing "conftest.", or (3) at the end.
9636
# Note that $ac_compile itself does not contain backslashes and begins
9637
# with a dollar sign (not a hyphen), so the echo should work correctly.
9638
# The option is referenced via a variable to avoid confusing sed.
9639
lt_compile=`echo "$ac_compile" | $SED \
9640
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9641
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9642
-e 's:$: $lt_compiler_flag:'`
9643
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9644
(eval "$lt_compile" 2>conftest.err)
9646
cat conftest.err >&5
9647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648
if (exit $ac_status) && test -s "$ac_outfile"; then
9649
# The compiler can only warn and ignore the option if not recognized
9650
# So say no if there are warnings other than the usual output.
9651
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9652
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9653
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9654
lt_cv_prog_compiler_pic_works=yes
9660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9661
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9663
if test yes = "$lt_cv_prog_compiler_pic_works"; then
9664
case $lt_prog_compiler_pic in
9666
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9669
lt_prog_compiler_pic=
9670
lt_prog_compiler_can_build_shared=no
9686
# Check to make sure the static flag actually works.
9688
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9689
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9690
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9691
if ${lt_cv_prog_compiler_static_works+:} false; then :
9692
$as_echo_n "(cached) " >&6
9694
lt_cv_prog_compiler_static_works=no
9695
save_LDFLAGS=$LDFLAGS
9696
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9697
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9698
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9699
# The linker can only warn and ignore the option if not recognized
9700
# So say no if there are warnings
9701
if test -s conftest.err; then
9702
# Append any errors to the config.log.
9703
cat conftest.err 1>&5
9704
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9705
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9706
if diff conftest.exp conftest.er2 >/dev/null; then
9707
lt_cv_prog_compiler_static_works=yes
9710
lt_cv_prog_compiler_static_works=yes
9714
LDFLAGS=$save_LDFLAGS
9717
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9718
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9720
if test yes = "$lt_cv_prog_compiler_static_works"; then
9723
lt_prog_compiler_static=
9732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9733
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9734
if ${lt_cv_prog_compiler_c_o+:} false; then :
9735
$as_echo_n "(cached) " >&6
9737
lt_cv_prog_compiler_c_o=no
9738
$RM -r conftest 2>/dev/null
9742
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9744
lt_compiler_flag="-o out/conftest2.$ac_objext"
9745
# Insert the option either (1) after the last *FLAGS variable, or
9746
# (2) before a word containing "conftest.", or (3) at the end.
9747
# Note that $ac_compile itself does not contain backslashes and begins
9748
# with a dollar sign (not a hyphen), so the echo should work correctly.
9749
lt_compile=`echo "$ac_compile" | $SED \
9750
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9751
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9752
-e 's:$: $lt_compiler_flag:'`
9753
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9754
(eval "$lt_compile" 2>out/conftest.err)
9756
cat out/conftest.err >&5
9757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9760
# The compiler can only warn and ignore the option if not recognized
9761
# So say no if there are warnings
9762
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9763
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9764
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9765
lt_cv_prog_compiler_c_o=yes
9770
# SGI C++ compiler will create directory out/ii_files/ for
9771
# template instantiation
9772
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9773
$RM out/* && rmdir out
9779
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9780
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9788
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9789
if ${lt_cv_prog_compiler_c_o+:} false; then :
9790
$as_echo_n "(cached) " >&6
9792
lt_cv_prog_compiler_c_o=no
9793
$RM -r conftest 2>/dev/null
9797
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9799
lt_compiler_flag="-o out/conftest2.$ac_objext"
9800
# Insert the option either (1) after the last *FLAGS variable, or
9801
# (2) before a word containing "conftest.", or (3) at the end.
9802
# Note that $ac_compile itself does not contain backslashes and begins
9803
# with a dollar sign (not a hyphen), so the echo should work correctly.
9804
lt_compile=`echo "$ac_compile" | $SED \
9805
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9806
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9807
-e 's:$: $lt_compiler_flag:'`
9808
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9809
(eval "$lt_compile" 2>out/conftest.err)
9811
cat out/conftest.err >&5
9812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9815
# The compiler can only warn and ignore the option if not recognized
9816
# So say no if there are warnings
9817
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9818
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9819
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9820
lt_cv_prog_compiler_c_o=yes
9825
# SGI C++ compiler will create directory out/ii_files/ for
9826
# template instantiation
9827
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9828
$RM out/* && rmdir out
9834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9835
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9840
hard_links=nottested
9841
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9842
# do not overwrite the value of need_locks provided by the user
9843
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9844
$as_echo_n "checking if we can lock with hard links... " >&6; }
9847
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9849
ln conftest.a conftest.b 2>&5 || hard_links=no
9850
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9851
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9852
$as_echo "$hard_links" >&6; }
9853
if test no = "$hard_links"; then
9854
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9855
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9868
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9871
allow_undefined_flag=
9872
always_export_symbols=no
9874
archive_expsym_cmds=
9875
compiler_needs_object=no
9876
enable_shared_with_static_runtimes=no
9877
export_dynamic_flag_spec=
9878
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9879
hardcode_automatic=no
9881
hardcode_direct_absolute=no
9882
hardcode_libdir_flag_spec=
9883
hardcode_libdir_separator=
9885
hardcode_shlibpath_var=unsupported
9887
link_all_deplibs=unknown
9890
old_archive_from_new_cmds=
9891
old_archive_from_expsyms_cmds=
9892
thread_safe_flag_spec=
9893
whole_archive_flag_spec=
9894
# include_expsyms should be a list of space-separated symbols to be *always*
9895
# included in the symbol list
9897
# exclude_expsyms can be an extended regexp of symbols to exclude
9898
# it will be wrapped by ' (' and ')$', so one must not match beginning or
9899
# end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9900
# as well as any symbol that contains 'd'.
9901
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9902
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9903
# platforms (ab)use it in PIC code, but their linkers get confused if
9904
# the symbol is explicitly referenced. Since portable code cannot
9905
# rely on this symbol name, it's probably fine to never include it in
9906
# preloaded symbol tables.
9907
# Exclude shared library initialization/finalization symbols.
9908
extract_expsyms_cmds=
9911
cygwin* | mingw* | pw32* | cegcc*)
9912
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9913
# When not using gcc, we currently assume that we are using
9914
# Microsoft Visual C++.
9915
if test yes != "$GCC"; then
9920
# we just hope/assume this is gcc and not c89 (= MSVC++)
9930
# On some targets, GNU ld is compatible enough with the native linker
9931
# that we're better off using the native interface for both.
9932
lt_use_gnu_ld_interface=no
9933
if test yes = "$with_gnu_ld"; then
9936
# The AIX port of GNU ld has always aspired to compatibility
9937
# with the native linker. However, as the warning in the GNU ld
9938
# block says, versions before 2.19.5* couldn't really create working
9939
# shared libraries, regardless of the interface used.
9940
case `$LD -v 2>&1` in
9941
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9942
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9943
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
9945
lt_use_gnu_ld_interface=yes
9950
lt_use_gnu_ld_interface=yes
9955
if test yes = "$lt_use_gnu_ld_interface"; then
9956
# If archive_cmds runs LD, not CC, wlarc should be empty
9959
# Set some defaults for GNU ld with shared library support. These
9960
# are reset later if shared libraries are not supported. Putting them
9961
# here allows them to be overridden if necessary.
9962
runpath_var=LD_RUN_PATH
9963
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9964
export_dynamic_flag_spec='$wl--export-dynamic'
9965
# ancient GNU ld didn't support --whole-archive et. al.
9966
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9967
whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9969
whole_archive_flag_spec=
9971
supports_anon_versioning=no
9972
case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9973
*GNU\ gold*) supports_anon_versioning=yes ;;
9974
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9975
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9976
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9977
*\ 2.11.*) ;; # other 2.11 versions
9978
*) supports_anon_versioning=yes ;;
9981
# See if GNU ld supports shared libraries.
9984
# On AIX/PPC, the GNU linker is very broken
9985
if test ia64 != "$host_cpu"; then
9989
*** Warning: the GNU linker, at least up to release 2.19, is reported
9990
*** to be unable to reliably create shared libraries on AIX.
9991
*** Therefore, libtool is disabling shared libraries support. If you
9992
*** really care for shared libraries, you may want to install binutils
9993
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9994
*** You will then need to restart the configuration process.
10003
# see comment about AmigaOS4 .so support
10004
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10005
archive_expsym_cmds=''
10008
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)'
10009
hardcode_libdir_flag_spec='-L$libdir'
10010
hardcode_minus_L=yes
10016
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10017
allow_undefined_flag=unsupported
10018
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10019
# support --undefined. This deserves some investigation. FIXME
10020
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10026
cygwin* | mingw* | pw32* | cegcc*)
10027
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10028
# as there is no search path for DLLs.
10029
hardcode_libdir_flag_spec='-L$libdir'
10030
export_dynamic_flag_spec='$wl--export-all-symbols'
10031
allow_undefined_flag=unsupported
10032
always_export_symbols=no
10033
enable_shared_with_static_runtimes=yes
10034
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'
10035
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10037
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10038
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10039
# If the export-symbols file already is a .def file, use it as
10040
# is; otherwise, prepend EXPORTS...
10041
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10042
cp $export_symbols $output_objdir/$soname.def;
10044
echo EXPORTS > $output_objdir/$soname.def;
10045
cat $export_symbols >> $output_objdir/$soname.def;
10047
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10054
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10055
link_all_deplibs=yes
10059
hardcode_libdir_flag_spec='-L$libdir'
10060
hardcode_minus_L=yes
10061
allow_undefined_flag=unsupported
10063
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10064
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10065
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10066
$ECHO EXPORTS >> $output_objdir/$libname.def~
10067
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10068
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10069
emximp -o $lib $output_objdir/$libname.def'
10070
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10071
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10072
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10073
$ECHO EXPORTS >> $output_objdir/$libname.def~
10074
prefix_cmds="$SED"~
10075
if test EXPORTS = "`$SED 1q $export_symbols`"; then
10076
prefix_cmds="$prefix_cmds -e 1d";
10078
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10079
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10080
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10081
emximp -o $lib $output_objdir/$libname.def'
10082
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10083
enable_shared_with_static_runtimes=yes
10088
hardcode_shlibpath_var=no
10089
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10090
export_dynamic_flag_spec='$wl-E'
10091
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10092
# Instead, shared libraries are loaded at an image base (0x10000000 by
10093
# default) and relocated if they conflict, which is a slow very memory
10094
# consuming and fragmenting process. To avoid this, we pick a random,
10095
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10096
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
10097
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10098
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'
10101
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10103
if test linux-dietlibc = "$host_os"; then
10104
case $cc_basename in
10105
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10108
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10109
&& test no = "$tmp_diet"
10111
tmp_addflag=' $pic_flag'
10112
tmp_sharedflag='-shared'
10113
case $cc_basename,$host_cpu in
10114
pgcc*) # Portland Group C compiler
10115
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'
10116
tmp_addflag=' $pic_flag'
10118
pgCC*) # Portland Group C++ compiler
10119
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'
10120
tmp_addflag=' $pic_flag'
10122
pgf77* | pgf90* | pgf95* | pgfortran*)
10123
# Portland Group f77 and f90 compilers
10124
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'
10125
tmp_addflag=' $pic_flag -Mnomain' ;;
10126
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10127
tmp_addflag=' -i_dynamic' ;;
10128
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10129
tmp_addflag=' -i_dynamic -nofor_main' ;;
10130
ifc* | ifort*) # Intel Fortran compiler
10131
tmp_addflag=' -nofor_main' ;;
10132
lf95*) # Lahey Fortran 8.1
10133
whole_archive_flag_spec=
10134
tmp_sharedflag='--shared' ;;
10135
nagfor*) # NAGFOR 5.3
10136
tmp_sharedflag='-Wl,-shared' ;;
10137
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10138
tmp_sharedflag='-qmkshrobj'
10140
nvcc*) # Cuda Compiler Driver 2.2
10141
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'
10142
compiler_needs_object=yes
10145
case `$CC -V 2>&1 | sed 5q` in
10146
*Sun\ C*) # Sun C 5.9
10147
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'
10148
compiler_needs_object=yes
10149
tmp_sharedflag='-G' ;;
10150
*Sun\ F*) # Sun Fortran 8.3
10151
tmp_sharedflag='-G' ;;
10153
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10155
if test yes = "$supports_anon_versioning"; then
10156
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10157
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10158
echo "local: *; };" >> $output_objdir/$libname.ver~
10159
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10162
case $cc_basename in
10164
export_dynamic_flag_spec='-rdynamic'
10166
xlf* | bgf* | bgxlf* | mpixlf*)
10167
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10168
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10169
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10170
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10171
if test yes = "$supports_anon_versioning"; then
10172
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10173
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10174
echo "local: *; };" >> $output_objdir/$libname.ver~
10175
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10179
case `$CC -V 2>&1 | sed 5q` in
10180
*Cray\ C* | *Cray\ Fortran*) # Cray C/C++/Fortran
10181
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'
10182
compiler_needs_object=yes
10183
archive_cmds_need_lc='no'
10184
archive_cmds='save_STRIP=$STRIP; unset STRIP; $CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib; ret=\$?; STRIP=\$save_STRIP; export STRIP; (exit \$ret)'
10193
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10194
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10197
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10198
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10203
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10207
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10208
*** create shared libraries on Solaris systems. Therefore, libtool
10209
*** is disabling shared libraries support. We urge you to upgrade GNU
10210
*** binutils to release 2.9.1 or newer. Another option is to modify
10211
*** your PATH or compiler configuration so that the native linker is
10212
*** used, and then restart.
10215
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10216
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10217
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10223
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10224
case `$LD -v 2>&1` in
10225
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10229
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10230
*** reliably create shared libraries on SCO systems. Therefore, libtool
10231
*** is disabling shared libraries support. We urge you to upgrade GNU
10232
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10233
*** your PATH or compiler configuration so that the native linker is
10234
*** used, and then restart.
10239
# For security reasons, it is highly recommended that you always
10240
# use absolute paths for naming shared libraries, and exclude the
10241
# DT_RUNPATH tag from executables and libraries. But doing so
10242
# requires that you compile everything twice, which is a pain.
10243
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10244
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10245
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10246
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10255
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10257
hardcode_direct=yes
10258
hardcode_shlibpath_var=no
10262
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10263
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10264
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10271
if test no = "$ld_shlibs"; then
10273
hardcode_libdir_flag_spec=
10274
export_dynamic_flag_spec=
10275
whole_archive_flag_spec=
10278
# PORTME fill in a description of your system's linker (not GNU ld)
10281
allow_undefined_flag=unsupported
10282
always_export_symbols=yes
10283
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'
10284
# Note: this linker hardcodes the directories in LIBPATH if there
10285
# are no directories specified by -L.
10286
hardcode_minus_L=yes
10287
if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10288
# Neither direct hardcoding nor static linking is supported with a
10290
hardcode_direct=unsupported
10295
if test ia64 = "$host_cpu"; then
10296
# On IA64, the linker does run time linking by default, so we don't
10297
# have to do anything special.
10298
aix_use_runtimelinking=no
10299
exp_sym_flag='-Bexport'
10302
# If we're using GNU nm, then we don't want the "-C" option.
10303
# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10304
# Without the "-l" option, or with the "-B" option, AIX nm treats
10305
# weak defined symbols like other global defined symbols, whereas
10306
# GNU nm marks them as "W".
10307
# While the 'weak' keyword is ignored in the Export File, we need
10308
# it in the Import File for the 'aix-soname' feature, so we have
10309
# to replace the "-B" option with "-P" for AIX nm.
10310
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10311
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10313
export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10315
aix_use_runtimelinking=no
10317
# Test if we are trying to use run time linking or normal
10318
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10319
# have runtime linking enabled, and use it for executables.
10320
# For shared libraries, we enable/disable runtime linking
10321
# depending on the kind of the shared library created -
10322
# when "with_aix_soname,aix_use_runtimelinking" is:
10323
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10324
# "aix,yes" lib.so shared, rtl:yes, for executables
10325
# lib.a static archive
10326
# "both,no" lib.so.V(shr.o) shared, rtl:yes
10327
# lib.a(lib.so.V) shared, rtl:no, for executables
10328
# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10329
# lib.a(lib.so.V) shared, rtl:no
10330
# "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10331
# lib.a static archive
10332
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10333
for ld_flag in $LDFLAGS; do
10334
if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10335
aix_use_runtimelinking=yes
10339
if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10340
# With aix-soname=svr4, we create the lib.so.V shared archives only,
10341
# so we don't have lib.a shared libs to link our executables.
10342
# We have to force runtime linking in this case.
10343
aix_use_runtimelinking=yes
10344
LDFLAGS="$LDFLAGS -Wl,-brtl"
10349
exp_sym_flag='-bexport'
10350
no_entry_flag='-bnoentry'
10353
# When large executables or shared objects are built, AIX ld can
10354
# have problems creating the table of contents. If linking a library
10355
# or program results in "error TOC overflow" add -mminimal-toc to
10356
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10357
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10360
hardcode_direct=yes
10361
hardcode_direct_absolute=yes
10362
hardcode_libdir_separator=':'
10363
link_all_deplibs=yes
10364
file_list_spec='$wl-f,'
10365
case $with_aix_soname,$aix_use_runtimelinking in
10366
aix,*) ;; # traditional, no import file
10367
svr4,* | *,yes) # use import file
10368
# The Import File defines what to hardcode.
10370
hardcode_direct_absolute=no
10374
if test yes = "$GCC"; then
10375
case $host_os in aix4.[012]|aix4.[012].*)
10376
# We only want to do this on AIX 4.2 and lower, the check
10377
# below for broken collect2 doesn't work under 4.3+
10378
collect2name=`$CC -print-prog-name=collect2`
10379
if test -f "$collect2name" &&
10380
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10382
# We have reworked collect2
10385
# We have old collect2
10386
hardcode_direct=unsupported
10387
# It fails to find uninstalled libraries when the uninstalled
10388
# path is not listed in the libpath. Setting hardcode_minus_L
10389
# to unsupported forces relinking
10390
hardcode_minus_L=yes
10391
hardcode_libdir_flag_spec='-L$libdir'
10392
hardcode_libdir_separator=
10396
shared_flag='-shared'
10397
if test yes = "$aix_use_runtimelinking"; then
10398
shared_flag="$shared_flag "'$wl-G'
10400
# Need to ensure runtime linking is disabled for the traditional
10401
# shared library, or the linker may eventually find shared libraries
10402
# /with/ Import File - we do not want to mix them.
10403
shared_flag_aix='-shared'
10404
shared_flag_svr4='-shared $wl-G'
10407
if test ia64 = "$host_cpu"; then
10408
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10409
# chokes on -Wl,-G. The following line is correct:
10412
if test yes = "$aix_use_runtimelinking"; then
10413
shared_flag='$wl-G'
10415
shared_flag='$wl-bM:SRE'
10417
shared_flag_aix='$wl-bM:SRE'
10418
shared_flag_svr4='$wl-G'
10422
export_dynamic_flag_spec='$wl-bexpall'
10423
# It seems that -bexpall does not export symbols beginning with
10424
# underscore (_), so it is better to generate a list of symbols to export.
10425
always_export_symbols=yes
10426
if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10427
# Warning - without using the other runtime loading flags (-brtl),
10428
# -berok will link without error, but may produce a broken library.
10429
allow_undefined_flag='-berok'
10430
# Determine the default libpath from the value encoded in an
10431
# empty executable.
10432
if test set = "${lt_cv_aix_libpath+set}"; then
10433
aix_libpath=$lt_cv_aix_libpath
10435
if ${lt_cv_aix_libpath_+:} false; then :
10436
$as_echo_n "(cached) " >&6
10438
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439
/* end confdefs.h. */
10449
if ac_fn_c_try_link "$LINENO"; then :
10451
lt_aix_libpath_sed='
10452
/Import File Strings/,/^$/ {
10454
s/^0 *\([^ ]*\) *$/\1/
10458
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10459
# Check for a 64-bit object if we didn't find anything.
10460
if test -z "$lt_cv_aix_libpath_"; then
10461
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10464
rm -f core conftest.err conftest.$ac_objext \
10465
conftest$ac_exeext conftest.$ac_ext
10466
if test -z "$lt_cv_aix_libpath_"; then
10467
lt_cv_aix_libpath_=/usr/lib:/lib
10472
aix_libpath=$lt_cv_aix_libpath_
10475
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10476
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10478
if test ia64 = "$host_cpu"; then
10479
hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10480
allow_undefined_flag="-z nodefs"
10481
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"
10483
# Determine the default libpath from the value encoded in an
10484
# empty executable.
10485
if test set = "${lt_cv_aix_libpath+set}"; then
10486
aix_libpath=$lt_cv_aix_libpath
10488
if ${lt_cv_aix_libpath_+:} false; then :
10489
$as_echo_n "(cached) " >&6
10491
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492
/* end confdefs.h. */
10502
if ac_fn_c_try_link "$LINENO"; then :
10504
lt_aix_libpath_sed='
10505
/Import File Strings/,/^$/ {
10507
s/^0 *\([^ ]*\) *$/\1/
10511
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10512
# Check for a 64-bit object if we didn't find anything.
10513
if test -z "$lt_cv_aix_libpath_"; then
10514
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10517
rm -f core conftest.err conftest.$ac_objext \
10518
conftest$ac_exeext conftest.$ac_ext
10519
if test -z "$lt_cv_aix_libpath_"; then
10520
lt_cv_aix_libpath_=/usr/lib:/lib
10525
aix_libpath=$lt_cv_aix_libpath_
10528
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10529
# Warning - without using the other run time loading flags,
10530
# -berok will link without error, but may produce a broken library.
10531
no_undefined_flag=' $wl-bernotok'
10532
allow_undefined_flag=' $wl-berok'
10533
if test yes = "$with_gnu_ld"; then
10534
# We only use this code for GNU lds that support --whole-archive.
10535
whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10537
# Exported symbols can be pulled into shared objects from archives
10538
whole_archive_flag_spec='$convenience'
10540
archive_cmds_need_lc=yes
10541
archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10542
# -brtl affects multiple linker settings, -berok does not and is overridden later
10543
compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10544
if test svr4 != "$with_aix_soname"; then
10545
# This is similar to how AIX traditionally builds its shared libraries.
10546
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10548
if test aix != "$with_aix_soname"; then
10549
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10551
# used by -dlpreopen to get the symbols
10552
archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10554
archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10562
# see comment about AmigaOS4 .so support
10563
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10564
archive_expsym_cmds=''
10567
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)'
10568
hardcode_libdir_flag_spec='-L$libdir'
10569
hardcode_minus_L=yes
10575
export_dynamic_flag_spec=-rdynamic
10578
cygwin* | mingw* | pw32* | cegcc*)
10579
# When not using gcc, we currently assume that we are using
10580
# Microsoft Visual C++.
10581
# hardcode_libdir_flag_spec is actually meaningless, as there is
10582
# no search path for DLLs.
10583
case $cc_basename in
10586
hardcode_libdir_flag_spec=' '
10587
allow_undefined_flag=unsupported
10588
always_export_symbols=yes
10590
# Tell ltmain to make .lib files, not .a files.
10592
# Tell ltmain to make .dll files, not .so files.
10594
# FIXME: Setting linknames here is a bad hack.
10595
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10596
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10597
cp "$export_symbols" "$output_objdir/$soname.def";
10598
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10600
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10602
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10604
# The linker will not automatically build a static lib if we build a DLL.
10605
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10606
enable_shared_with_static_runtimes=yes
10607
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10608
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10610
old_postinstall_cmds='chmod 644 $oldlib'
10611
postlink_cmds='lt_outputfile="@OUTPUT@"~
10612
lt_tool_outputfile="@TOOL_OUTPUT@"~
10613
case $lt_outputfile in
10616
lt_outputfile=$lt_outputfile.exe
10617
lt_tool_outputfile=$lt_tool_outputfile.exe
10620
if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10621
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10622
$RM "$lt_outputfile.manifest";
10626
# Assume MSVC wrapper
10627
hardcode_libdir_flag_spec=' '
10628
allow_undefined_flag=unsupported
10629
# Tell ltmain to make .lib files, not .a files.
10631
# Tell ltmain to make .dll files, not .so files.
10633
# FIXME: Setting linknames here is a bad hack.
10634
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10635
# The linker will automatically build a .lib file if we build a DLL.
10636
old_archive_from_new_cmds='true'
10637
# FIXME: Should let the user specify the lib program.
10638
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10639
enable_shared_with_static_runtimes=yes
10644
darwin* | rhapsody*)
10647
archive_cmds_need_lc=no
10649
hardcode_automatic=yes
10650
hardcode_shlibpath_var=unsupported
10651
if test yes = "$lt_cv_ld_force_load"; then
10652
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\"`'
10655
whole_archive_flag_spec=''
10657
link_all_deplibs=yes
10658
allow_undefined_flag=$_lt_dar_allow_undefined
10659
case $cc_basename in
10660
ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10661
*) _lt_dar_can_shared=$GCC ;;
10663
if test yes = "$_lt_dar_can_shared"; then
10664
output_verbose_link_cmd=func_echo_all
10665
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10666
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10667
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"
10668
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"
10677
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10678
hardcode_libdir_flag_spec='-L$libdir'
10679
hardcode_shlibpath_var=no
10682
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10683
# support. Future versions do this automatically, but an explicit c++rt0.o
10684
# does not break anything, and helps significantly (at the cost of a little
10687
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10688
hardcode_libdir_flag_spec='-R$libdir'
10689
hardcode_direct=yes
10690
hardcode_shlibpath_var=no
10693
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
10695
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10696
hardcode_direct=yes
10697
hardcode_minus_L=yes
10698
hardcode_shlibpath_var=no
10701
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10702
freebsd* | dragonfly*)
10703
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10704
hardcode_libdir_flag_spec='-R$libdir'
10705
hardcode_direct=yes
10706
hardcode_shlibpath_var=no
10710
if test yes = "$GCC"; then
10711
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10713
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10715
hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10716
hardcode_libdir_separator=:
10717
hardcode_direct=yes
10719
# hardcode_minus_L: Not really in the search PATH,
10720
# but as the default location of the library.
10721
hardcode_minus_L=yes
10722
export_dynamic_flag_spec='$wl-E'
10726
if test yes,no = "$GCC,$with_gnu_ld"; then
10727
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10729
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10731
if test no = "$with_gnu_ld"; then
10732
hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10733
hardcode_libdir_separator=:
10734
hardcode_direct=yes
10735
hardcode_direct_absolute=yes
10736
export_dynamic_flag_spec='$wl-E'
10737
# hardcode_minus_L: Not really in the search PATH,
10738
# but as the default location of the library.
10739
hardcode_minus_L=yes
10744
if test yes,no = "$GCC,$with_gnu_ld"; then
10747
archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10750
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10753
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10759
archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10762
archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10766
# Older versions of the 11.00 compiler do not understand -b yet
10767
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10769
$as_echo_n "checking if $CC understands -b... " >&6; }
10770
if ${lt_cv_prog_compiler__b+:} false; then :
10771
$as_echo_n "(cached) " >&6
10773
lt_cv_prog_compiler__b=no
10774
save_LDFLAGS=$LDFLAGS
10775
LDFLAGS="$LDFLAGS -b"
10776
echo "$lt_simple_link_test_code" > conftest.$ac_ext
10777
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10778
# The linker can only warn and ignore the option if not recognized
10779
# So say no if there are warnings
10780
if test -s conftest.err; then
10781
# Append any errors to the config.log.
10782
cat conftest.err 1>&5
10783
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10784
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10785
if diff conftest.exp conftest.er2 >/dev/null; then
10786
lt_cv_prog_compiler__b=yes
10789
lt_cv_prog_compiler__b=yes
10793
LDFLAGS=$save_LDFLAGS
10796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10797
$as_echo "$lt_cv_prog_compiler__b" >&6; }
10799
if test yes = "$lt_cv_prog_compiler__b"; then
10800
archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10802
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10808
if test no = "$with_gnu_ld"; then
10809
hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10810
hardcode_libdir_separator=:
10815
hardcode_shlibpath_var=no
10818
hardcode_direct=yes
10819
hardcode_direct_absolute=yes
10820
export_dynamic_flag_spec='$wl-E'
10822
# hardcode_minus_L: Not really in the search PATH,
10823
# but as the default location of the library.
10824
hardcode_minus_L=yes
10830
irix5* | irix6* | nonstopux*)
10831
if test yes = "$GCC"; then
10832
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'
10833
# Try to use the -exported_symbol ld option, if it does not
10834
# work, assume that -exports_file does not work either and
10835
# implicitly export all symbols.
10836
# This should be the same for all languages, so no per-tag cache variable.
10837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10838
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10839
if ${lt_cv_irix_exported_symbol+:} false; then :
10840
$as_echo_n "(cached) " >&6
10842
save_LDFLAGS=$LDFLAGS
10843
LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10844
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845
/* end confdefs.h. */
10846
int foo (void) { return 0; }
10848
if ac_fn_c_try_link "$LINENO"; then :
10849
lt_cv_irix_exported_symbol=yes
10851
lt_cv_irix_exported_symbol=no
10853
rm -f core conftest.err conftest.$ac_objext \
10854
conftest$ac_exeext conftest.$ac_ext
10855
LDFLAGS=$save_LDFLAGS
10857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10858
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10859
if test yes = "$lt_cv_irix_exported_symbol"; then
10860
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'
10863
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'
10864
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'
10866
archive_cmds_need_lc='no'
10867
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10868
hardcode_libdir_separator=:
10870
link_all_deplibs=yes
10874
case $cc_basename in
10876
# Fabrice Bellard et al's Tiny C Compiler
10878
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10881
case `$CC -V 2>&1 | sed 5q` in
10882
*Cray\ C* | *Cray\ Fortran*) # Cray C/C++/Fortran
10883
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'
10884
compiler_needs_object=yes
10885
archive_cmds='save_STRIP=$STRIP; unset STRIP; $CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib; ret=\$?; STRIP=\$save_STRIP; export STRIP; (exit \$ret)'
10894
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10895
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10897
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10899
hardcode_libdir_flag_spec='-R$libdir'
10900
hardcode_direct=yes
10901
hardcode_shlibpath_var=no
10905
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10906
hardcode_direct=yes
10907
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10908
hardcode_libdir_separator=:
10909
hardcode_shlibpath_var=no
10915
openbsd* | bitrig*)
10916
if test -f /usr/libexec/ld.so; then
10917
hardcode_direct=yes
10918
hardcode_shlibpath_var=no
10919
hardcode_direct_absolute=yes
10920
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10921
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10922
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10923
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10924
export_dynamic_flag_spec='$wl-E'
10926
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10927
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10935
hardcode_libdir_flag_spec='-L$libdir'
10936
hardcode_minus_L=yes
10937
allow_undefined_flag=unsupported
10939
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10940
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10941
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10942
$ECHO EXPORTS >> $output_objdir/$libname.def~
10943
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10944
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10945
emximp -o $lib $output_objdir/$libname.def'
10946
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10947
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10948
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10949
$ECHO EXPORTS >> $output_objdir/$libname.def~
10950
prefix_cmds="$SED"~
10951
if test EXPORTS = "`$SED 1q $export_symbols`"; then
10952
prefix_cmds="$prefix_cmds -e 1d";
10954
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10955
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10956
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10957
emximp -o $lib $output_objdir/$libname.def'
10958
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10959
enable_shared_with_static_runtimes=yes
10963
if test yes = "$GCC"; then
10964
allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10965
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'
10967
allow_undefined_flag=' -expect_unresolved \*'
10968
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'
10970
archive_cmds_need_lc='no'
10971
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10972
hardcode_libdir_separator=:
10975
osf4* | osf5*) # as osf3* with the addition of -msym flag
10976
if test yes = "$GCC"; then
10977
allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10978
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'
10979
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10981
allow_undefined_flag=' -expect_unresolved \*'
10982
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'
10983
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~
10984
$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'
10986
# Both c and cxx compiler support -rpath directly
10987
hardcode_libdir_flag_spec='-rpath $libdir'
10989
archive_cmds_need_lc='no'
10990
hardcode_libdir_separator=:
10994
no_undefined_flag=' -z defs'
10995
if test yes = "$GCC"; then
10997
archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10998
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10999
$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'
11001
case `$CC -V 2>&1` in
11004
archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11005
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11006
$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11010
archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11011
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11012
$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11016
hardcode_libdir_flag_spec='-R$libdir'
11017
hardcode_shlibpath_var=no
11019
solaris2.[0-5] | solaris2.[0-5].*) ;;
11021
# The compiler driver will combine and reorder linker options,
11022
# but understands '-z linker_flag'. GCC discards it without '$wl',
11023
# but is careful enough not to reorder.
11024
# Supported since Solaris 2.6 (maybe 2.5.1?)
11025
if test yes = "$GCC"; then
11026
whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11028
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11032
link_all_deplibs=yes
11036
if test sequent = "$host_vendor"; then
11037
# Use $CC to link under sequent, because it throws in some extra .o
11038
# files that make .init and .fini sections work.
11039
archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11041
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11043
hardcode_libdir_flag_spec='-L$libdir'
11044
hardcode_direct=yes
11045
hardcode_minus_L=yes
11046
hardcode_shlibpath_var=no
11050
case $host_vendor in
11052
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11053
hardcode_direct=yes # is this really true???
11056
## LD is ld it makes a PLAMLIB
11057
## CC just makes a GrossModule.
11058
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11059
reload_cmds='$CC -r -o $output$reload_objs'
11063
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11064
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11067
runpath_var='LD_RUN_PATH'
11068
hardcode_shlibpath_var=no
11072
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11073
hardcode_shlibpath_var=no
11074
export_dynamic_flag_spec='-Bexport'
11078
if test -d /usr/nec; then
11079
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11080
hardcode_shlibpath_var=no
11081
runpath_var=LD_RUN_PATH
11082
hardcode_runpath_var=yes
11087
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11088
no_undefined_flag='$wl-z,text'
11089
archive_cmds_need_lc=no
11090
hardcode_shlibpath_var=no
11091
runpath_var='LD_RUN_PATH'
11093
if test yes = "$GCC"; then
11094
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11095
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11097
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11098
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11102
sysv5* | sco3.2v5* | sco5v6*)
11103
# Note: We CANNOT use -z defs as we might desire, because we do not
11104
# link with -lc, and that would cause any symbols used from libc to
11105
# always be unresolved, which means just about no library would
11106
# ever link correctly. If we're not using GNU ld we use -z text
11107
# though, which does catch some bad symbols but isn't as heavy-handed
11109
no_undefined_flag='$wl-z,text'
11110
allow_undefined_flag='$wl-z,nodefs'
11111
archive_cmds_need_lc=no
11112
hardcode_shlibpath_var=no
11113
hardcode_libdir_flag_spec='$wl-R,$libdir'
11114
hardcode_libdir_separator=':'
11115
link_all_deplibs=yes
11116
export_dynamic_flag_spec='$wl-Bexport'
11117
runpath_var='LD_RUN_PATH'
11119
if test yes = "$GCC"; then
11120
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11121
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11123
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11124
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11129
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11130
hardcode_libdir_flag_spec='-L$libdir'
11131
hardcode_shlibpath_var=no
11139
if test sni = "$host_vendor"; then
11141
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11142
export_dynamic_flag_spec='$wl-Blargedynsym'
11148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11149
$as_echo "$ld_shlibs" >&6; }
11150
test no = "$ld_shlibs" && can_build_shared=no
11152
with_gnu_ld=$with_gnu_ld
11169
# Do we need to explicitly link libc?
11171
case "x$archive_cmds_need_lc" in
11173
# Assume -lc should be added
11174
archive_cmds_need_lc=yes
11176
if test yes,yes = "$GCC,$enable_shared"; then
11177
case $archive_cmds in
11179
# FIXME: we may have to deal with multi-command sequences.
11182
# Test whether the compiler implicitly links with -lc since on some
11183
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11184
# to ld, don't add -lc before -lgcc.
11185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11186
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11187
if ${lt_cv_archive_cmds_need_lc+:} false; then :
11188
$as_echo_n "(cached) " >&6
11191
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11193
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11194
(eval $ac_compile) 2>&5
11196
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11197
test $ac_status = 0; } 2>conftest.err; then
11200
libobjs=conftest.$ac_objext
11202
wl=$lt_prog_compiler_wl
11203
pic_flag=$lt_prog_compiler_pic
11209
lt_save_allow_undefined_flag=$allow_undefined_flag
11210
allow_undefined_flag=
11211
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11212
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11214
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11215
test $ac_status = 0; }
11217
lt_cv_archive_cmds_need_lc=no
11219
lt_cv_archive_cmds_need_lc=yes
11221
allow_undefined_flag=$lt_save_allow_undefined_flag
11223
cat conftest.err 1>&5
11228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11229
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11230
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11389
$as_echo_n "checking dynamic linker characteristics... " >&6; }
11391
if test yes = "$GCC"; then
11393
darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11394
*) lt_awk_arg='/^libraries:/' ;;
11397
mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11398
*) lt_sed_strip_eq='s|=/|/|g' ;;
11400
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11401
case $lt_search_path_spec in
11403
# if the path contains ";" then we assume it to be the separator
11404
# otherwise default to the standard path separator (i.e. ":") - it is
11405
# assumed that no part of a normal pathname contains ";" but that should
11406
# okay in the real world where ";" in dirpaths is itself problematic.
11407
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11410
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11413
# Ok, now we have the path, separated by spaces, we can step through it
11414
# and add multilib dir if necessary...
11415
lt_tmp_lt_search_path_spec=
11416
lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11417
# ...but if some path component already ends with the multilib dir we assume
11418
# that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11419
case "$lt_multi_os_dir; $lt_search_path_spec " in
11420
"/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11424
for lt_sys_path in $lt_search_path_spec; do
11425
if test -d "$lt_sys_path$lt_multi_os_dir"; then
11426
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11427
elif test -n "$lt_multi_os_dir"; then
11428
test -d "$lt_sys_path" && \
11429
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11432
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11433
BEGIN {RS = " "; FS = "/|\n";} {
11436
for (lt_i = NF; lt_i > 0; lt_i--) {
11437
if ($lt_i != "" && $lt_i != ".") {
11438
if ($lt_i == "..") {
11441
if (lt_count == 0) {
11442
lt_foo = "/" $lt_i lt_foo;
11449
if (lt_foo != "") { lt_freq[lt_foo]++; }
11450
if (lt_freq[lt_foo] == 1) { print lt_foo; }
11452
# AWK program above erroneously prepends '/' to C:/dos/paths
11455
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11456
$SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11458
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11460
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11462
library_names_spec=
11463
libname_spec='lib$name'
11467
postuninstall_cmds=
11471
shlibpath_overrides_runpath=unknown
11473
dynamic_linker="$host_os ld.so"
11474
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11475
need_lib_prefix=unknown
11476
hardcode_into_libs=no
11478
# when you set need_version to no, make sure it does not cause -set_version
11479
# flags to be left without arguments
11480
need_version=unknown
11486
version_type=linux # correct to gnu/linux during the next big refactor
11487
library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11488
shlibpath_var=LIBPATH
11490
# AIX 3 has no versioning support, so we append a major version to the name.
11491
soname_spec='$libname$release$shared_ext$major'
11495
version_type=linux # correct to gnu/linux during the next big refactor
11498
hardcode_into_libs=yes
11499
if test ia64 = "$host_cpu"; then
11500
# AIX 5 supports IA64
11501
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11502
shlibpath_var=LD_LIBRARY_PATH
11504
# With GCC up to 2.95.x, collect2 would create an import file
11505
# for dependence libraries. The import file would start with
11506
# the line '#! .'. This would cause the generated library to
11507
# depend on '.', always an invalid library. This was fixed in
11508
# development snapshots of GCC prior to 3.0.
11510
aix4 | aix4.[01] | aix4.[01].*)
11511
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11513
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11516
can_build_shared=no
11520
# Using Import Files as archive members, it is possible to support
11521
# filename-based versioning of shared library archives on AIX. While
11522
# this would work for both with and without runtime linking, it will
11523
# prevent static linking of such archives. So we do filename-based
11524
# shared library versioning with .so extension only, which is used
11525
# when both runtime linking and shared linking is enabled.
11526
# Unfortunately, runtime linking may impact performance, so we do
11527
# not want this to be the default eventually. Also, we use the
11528
# versioned .so libs for executables only if there is the -brtl
11529
# linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11530
# To allow for filename-based versioning support, we need to create
11531
# libNAME.so.V as an archive file, containing:
11532
# *) an Import File, referring to the versioned filename of the
11533
# archive as well as the shared archive member, telling the
11534
# bitwidth (32 or 64) of that shared object, and providing the
11535
# list of exported symbols of that shared object, eventually
11536
# decorated with the 'weak' keyword
11537
# *) the shared object with the F_LOADONLY flag set, to really avoid
11538
# it being seen by the linker.
11539
# At run time we better use the real file rather than another symlink,
11540
# but for link time we create the symlink libNAME.so -> libNAME.so.V
11542
case $with_aix_soname,$aix_use_runtimelinking in
11543
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11544
# soname into executable. Probably we can add versioning support to
11545
# collect2, so additional links can be useful in future.
11546
aix,yes) # traditional libtool
11547
dynamic_linker='AIX unversionable lib.so'
11548
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11549
# instead of lib<name>.a to let people know that these are not
11550
# typical AIX shared libraries.
11551
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11553
aix,no) # traditional AIX only
11554
dynamic_linker='AIX lib.a(lib.so.V)'
11555
# We preserve .a as extension for shared libraries through AIX4.2
11556
# and later when we are not doing run time linking.
11557
library_names_spec='$libname$release.a $libname.a'
11558
soname_spec='$libname$release$shared_ext$major'
11560
svr4,*) # full svr4 only
11561
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11562
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11563
# We do not specify a path in Import Files, so LIBPATH fires.
11564
shlibpath_overrides_runpath=yes
11566
*,yes) # both, prefer svr4
11567
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11568
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11569
# unpreferred sharedlib libNAME.a needs extra handling
11570
postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11571
postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11572
# We do not specify a path in Import Files, so LIBPATH fires.
11573
shlibpath_overrides_runpath=yes
11575
*,no) # both, prefer aix
11576
dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11577
library_names_spec='$libname$release.a $libname.a'
11578
soname_spec='$libname$release$shared_ext$major'
11579
# unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11580
postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11581
postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11584
shlibpath_var=LIBPATH
11591
# Since July 2007 AmigaOS4 officially supports .so libraries.
11592
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11593
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11596
library_names_spec='$libname.ixlibrary $libname.a'
11597
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11598
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11604
library_names_spec='$libname$shared_ext'
11605
dynamic_linker="$host_os ld.so"
11606
shlibpath_var=LIBRARY_PATH
11610
version_type=linux # correct to gnu/linux during the next big refactor
11612
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11613
soname_spec='$libname$release$shared_ext$major'
11614
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11615
shlibpath_var=LD_LIBRARY_PATH
11616
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11617
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11618
# the default ld.so.conf also contains /usr/contrib/lib and
11619
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11620
# libtool to hard-code these into programs
11623
cygwin* | mingw* | pw32* | cegcc*)
11624
version_type=windows
11629
case $GCC,$cc_basename in
11632
library_names_spec='$libname.dll.a'
11633
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11634
postinstall_cmds='base_file=`basename \$file`~
11635
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11636
dldir=$destdir/`dirname \$dlpath`~
11637
test -d \$dldir || mkdir -p \$dldir~
11638
$install_prog $dir/$dlname \$dldir/$dlname~
11639
chmod a+x \$dldir/$dlname~
11640
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11641
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11643
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11644
dlpath=$dir/\$dldll~
11646
shlibpath_overrides_runpath=yes
11650
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11651
soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11653
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11656
# MinGW DLLs use traditional 'lib' prefix
11657
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11660
# pw32 DLLs use 'pw' prefix rather than 'lib'
11661
library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11664
dynamic_linker='Win32 ld.exe'
11669
libname_spec='$name'
11670
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11671
library_names_spec='$libname.dll.lib'
11675
sys_lib_search_path_spec=
11678
for lt_path in $LIB
11681
# Let DOS variable expansion print the short 8.3 style file name.
11682
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11683
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11686
# Convert to MSYS style.
11687
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11690
# Convert to unix form, then to dos form, then back to unix form
11691
# but this time dos style (no spaces!) so that the unix form looks
11692
# like /cygdrive/c/PROGRA~1:/cygdr...
11693
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11694
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11695
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11698
sys_lib_search_path_spec=$LIB
11699
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11700
# It is most probably a Windows format PATH.
11701
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11703
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11705
# FIXME: find the short name or the path components, as spaces are
11706
# common. (e.g. "Program Files" -> "PROGRA~1")
11710
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11711
postinstall_cmds='base_file=`basename \$file`~
11712
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11713
dldir=$destdir/`dirname \$dlpath`~
11714
test -d \$dldir || mkdir -p \$dldir~
11715
$install_prog $dir/$dlname \$dldir/$dlname'
11716
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11717
dlpath=$dir/\$dldll~
11719
shlibpath_overrides_runpath=yes
11720
dynamic_linker='Win32 link.exe'
11724
# Assume MSVC wrapper
11725
library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11726
dynamic_linker='Win32 ld.exe'
11729
# FIXME: first we should search . and the directory the executable is in
11733
darwin* | rhapsody*)
11734
dynamic_linker="$host_os dyld"
11735
version_type=darwin
11738
library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11739
soname_spec='$libname$release$major$shared_ext'
11740
shlibpath_overrides_runpath=yes
11741
shlibpath_var=DYLD_LIBRARY_PATH
11742
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11744
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11745
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11749
version_type=linux # correct to gnu/linux during the next big refactor
11752
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11753
soname_spec='$libname$release$shared_ext$major'
11754
shlibpath_var=LD_LIBRARY_PATH
11757
freebsd* | dragonfly*)
11758
# DragonFly does not have aout. When/if they implement a new
11759
# versioning mechanism, adjust this.
11760
if test -x /usr/bin/objformat; then
11761
objformat=`/usr/bin/objformat`
11764
freebsd[23].*) objformat=aout ;;
11765
*) objformat=elf ;;
11768
version_type=freebsd-$objformat
11769
case $version_type in
11771
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11772
soname_spec='$libname$release$shared_ext$major'
11777
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11781
shlibpath_var=LD_LIBRARY_PATH
11784
shlibpath_overrides_runpath=yes
11786
freebsd3.[01]* | freebsdelf3.[01]*)
11787
shlibpath_overrides_runpath=yes
11788
hardcode_into_libs=yes
11790
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11791
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11792
shlibpath_overrides_runpath=no
11793
hardcode_into_libs=yes
11795
*) # from 4.6 on, and DragonFly
11796
shlibpath_overrides_runpath=yes
11797
hardcode_into_libs=yes
11803
version_type=linux # correct to gnu/linux during the next big refactor
11806
dynamic_linker="$host_os runtime_loader"
11807
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11808
soname_spec='$libname$release$shared_ext$major'
11809
shlibpath_var=LIBRARY_PATH
11810
shlibpath_overrides_runpath=no
11811
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11812
hardcode_into_libs=yes
11815
hpux9* | hpux10* | hpux11*)
11816
# Give a soname corresponding to the major version so that dld.sl refuses to
11817
# link against other versions.
11824
hardcode_into_libs=yes
11825
dynamic_linker="$host_os dld.so"
11826
shlibpath_var=LD_LIBRARY_PATH
11827
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11828
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11829
soname_spec='$libname$release$shared_ext$major'
11830
if test 32 = "$HPUX_IA64_MODE"; then
11831
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11832
sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11834
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11835
sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11840
hardcode_into_libs=yes
11841
dynamic_linker="$host_os dld.sl"
11842
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11843
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11844
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11845
soname_spec='$libname$release$shared_ext$major'
11846
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11847
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11851
dynamic_linker="$host_os dld.sl"
11852
shlibpath_var=SHLIB_PATH
11853
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11854
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11855
soname_spec='$libname$release$shared_ext$major'
11858
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11859
postinstall_cmds='chmod 555 $lib'
11860
# or fails outright, so override atomically:
11861
install_override_mode=555
11865
version_type=linux # correct to gnu/linux during the next big refactor
11868
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11869
soname_spec='$libname$release$shared_ext$major'
11870
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11871
shlibpath_var=LD_LIBRARY_PATH
11872
shlibpath_overrides_runpath=no
11873
hardcode_into_libs=yes
11876
irix5* | irix6* | nonstopux*)
11878
nonstopux*) version_type=nonstopux ;;
11880
if test yes = "$lt_cv_prog_gnu_ld"; then
11881
version_type=linux # correct to gnu/linux during the next big refactor
11888
soname_spec='$libname$release$shared_ext$major'
11889
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11891
irix5* | nonstopux*)
11892
libsuff= shlibsuff=
11895
case $LD in # libtool.m4 will add one of these switches to LD
11896
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11897
libsuff= shlibsuff= libmagic=32-bit;;
11898
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11899
libsuff=32 shlibsuff=N32 libmagic=N32;;
11900
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11901
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11902
*) libsuff= shlibsuff= libmagic=never-match;;
11906
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11907
shlibpath_overrides_runpath=no
11908
sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11909
sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11910
hardcode_into_libs=yes
11913
# No shared lib support for Linux oldld, aout, or coff.
11914
linux*oldld* | linux*aout* | linux*coff*)
11919
version_type=none # Android doesn't support versioned libraries.
11922
library_names_spec='$libname$release$shared_ext'
11923
soname_spec='$libname$release$shared_ext'
11925
shlibpath_var=LD_LIBRARY_PATH
11926
shlibpath_overrides_runpath=yes
11928
# This implies no fast_install, which is unacceptable.
11929
# Some rework will be needed to allow for fast_install
11930
# before this can be enabled.
11931
hardcode_into_libs=yes
11933
dynamic_linker='Android linker'
11934
# Don't embed -rpath directories since the linker doesn't support them.
11935
hardcode_libdir_flag_spec='-L$libdir'
11938
# This must be glibc/ELF.
11939
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11940
version_type=linux # correct to gnu/linux during the next big refactor
11943
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11944
soname_spec='$libname$release$shared_ext$major'
11945
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11946
shlibpath_var=LD_LIBRARY_PATH
11947
shlibpath_overrides_runpath=no
11949
# Some binutils ld are patched to set DT_RUNPATH
11950
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11951
$as_echo_n "(cached) " >&6
11953
lt_cv_shlibpath_overrides_runpath=no
11954
save_LDFLAGS=$LDFLAGS
11955
save_libdir=$libdir
11956
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11957
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11958
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959
/* end confdefs.h. */
11969
if ac_fn_c_try_link "$LINENO"; then :
11970
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11971
lt_cv_shlibpath_overrides_runpath=yes
11974
rm -f core conftest.err conftest.$ac_objext \
11975
conftest$ac_exeext conftest.$ac_ext
11976
LDFLAGS=$save_LDFLAGS
11977
libdir=$save_libdir
11981
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11983
# This implies no fast_install, which is unacceptable.
11984
# Some rework will be needed to allow for fast_install
11985
# before this can be enabled.
11986
hardcode_into_libs=yes
11988
# Ideally, we could use ldconfig to report *all* directores which are
11989
# searched for libraries, however this is still not possible. Aside from not
11990
# being certain /sbin/ldconfig is available, command
11991
# 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11992
# even though it is searched at run-time. Try to do the best guess by
11993
# appending ld.so.conf contents (and includes) to the search path.
11994
if test -f /etc/ld.so.conf; then
11995
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' ' '`
11996
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11999
# We used to test for /lib/ld.so.1 and disable shared libraries on
12000
# powerpc, because MkLinux only supported shared libraries with the
12001
# GNU dynamic linker. Since this was broken with cross compilers,
12002
# most powerpc-linux boxes support dynamic linking these days and
12003
# people can always --disable-shared, the test was removed, and we
12004
# assume the GNU/Linux dynamic linker is in use.
12005
dynamic_linker='GNU/Linux ld.so'
12012
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12013
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12014
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12015
dynamic_linker='NetBSD (a.out) ld.so'
12017
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12018
soname_spec='$libname$release$shared_ext$major'
12019
dynamic_linker='NetBSD ld.elf_so'
12021
shlibpath_var=LD_LIBRARY_PATH
12022
shlibpath_overrides_runpath=yes
12023
hardcode_into_libs=yes
12027
version_type=linux # correct to gnu/linux during the next big refactor
12028
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12029
shlibpath_var=LD_LIBRARY_PATH
12030
shlibpath_overrides_runpath=yes
12037
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12038
soname_spec='$libname$release$shared_ext$major'
12039
shlibpath_var=LD_LIBRARY_PATH
12040
shlibpath_overrides_runpath=no
12041
hardcode_into_libs=yes
12042
dynamic_linker='ldqnx.so'
12045
openbsd* | bitrig*)
12047
sys_lib_dlsearch_path_spec=/usr/lib
12049
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12054
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12055
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12056
shlibpath_var=LD_LIBRARY_PATH
12057
shlibpath_overrides_runpath=yes
12061
libname_spec='$name'
12062
version_type=windows
12066
# OS/2 can only load a DLL with a base name of 8 characters or less.
12067
soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12068
v=$($ECHO $release$versuffix | tr -d .-);
12069
n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12070
$ECHO $n$v`$shared_ext'
12071
library_names_spec='${libname}_dll.$libext'
12072
dynamic_linker='OS/2 ld.exe'
12073
shlibpath_var=BEGINLIBPATH
12074
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12075
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12076
postinstall_cmds='base_file=`basename \$file`~
12077
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12078
dldir=$destdir/`dirname \$dlpath`~
12079
test -d \$dldir || mkdir -p \$dldir~
12080
$install_prog $dir/$dlname \$dldir/$dlname~
12081
chmod a+x \$dldir/$dlname~
12082
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12083
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12085
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12086
dlpath=$dir/\$dldll~
12090
osf3* | osf4* | osf5*)
12094
soname_spec='$libname$release$shared_ext$major'
12095
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12096
shlibpath_var=LD_LIBRARY_PATH
12097
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12098
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12106
version_type=linux # correct to gnu/linux during the next big refactor
12109
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12110
soname_spec='$libname$release$shared_ext$major'
12111
shlibpath_var=LD_LIBRARY_PATH
12112
shlibpath_overrides_runpath=yes
12113
hardcode_into_libs=yes
12114
# ldd complains unless libraries are executable
12115
postinstall_cmds='chmod +x $lib'
12120
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12121
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12122
shlibpath_var=LD_LIBRARY_PATH
12123
shlibpath_overrides_runpath=yes
12124
if test yes = "$with_gnu_ld"; then
12131
version_type=linux # correct to gnu/linux during the next big refactor
12132
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12133
soname_spec='$libname$release$shared_ext$major'
12134
shlibpath_var=LD_LIBRARY_PATH
12135
case $host_vendor in
12137
shlibpath_overrides_runpath=no
12139
runpath_var=LD_RUN_PATH
12147
shlibpath_overrides_runpath=no
12148
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12154
if test -d /usr/nec; then
12155
version_type=linux # correct to gnu/linux during the next big refactor
12156
library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12157
soname_spec='$libname$shared_ext.$major'
12158
shlibpath_var=LD_LIBRARY_PATH
12162
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12166
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12167
soname_spec='$libname$release$shared_ext$major'
12168
shlibpath_var=LD_LIBRARY_PATH
12169
shlibpath_overrides_runpath=yes
12170
hardcode_into_libs=yes
12171
if test yes = "$with_gnu_ld"; then
12172
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12174
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12177
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12181
sys_lib_dlsearch_path_spec='/usr/lib'
12185
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12186
version_type=linux # correct to gnu/linux during the next big refactor
12189
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12190
shlibpath_var=LD_LIBRARY_PATH
12191
shlibpath_overrides_runpath=no
12192
hardcode_into_libs=yes
12196
version_type=linux # correct to gnu/linux during the next big refactor
12197
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12198
soname_spec='$libname$release$shared_ext$major'
12199
shlibpath_var=LD_LIBRARY_PATH
12206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12207
$as_echo "$dynamic_linker" >&6; }
12208
test no = "$dynamic_linker" && can_build_shared=no
12210
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12211
if test yes = "$GCC"; then
12212
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12215
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12216
sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12219
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12220
sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12223
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12224
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12226
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12227
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12229
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12230
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12329
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12331
if test -n "$hardcode_libdir_flag_spec" ||
12332
test -n "$runpath_var" ||
12333
test yes = "$hardcode_automatic"; then
12335
# We can hardcode non-existent directories.
12336
if test no != "$hardcode_direct" &&
12337
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12338
# have to relink, otherwise we might link with an installed library
12339
# when we should be linking with a yet-to-be-installed one
12340
## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12341
test no != "$hardcode_minus_L"; then
12342
# Linking always hardcodes the temporary library directory.
12343
hardcode_action=relink
12345
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12346
hardcode_action=immediate
12349
# We cannot hardcode anything, or else we can only hardcode existing
12351
hardcode_action=unsupported
12353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12354
$as_echo "$hardcode_action" >&6; }
12356
if test relink = "$hardcode_action" ||
12357
test yes = "$inherit_rpath"; then
12358
# Fast installation is not supported
12359
enable_fast_install=no
12360
elif test yes = "$shlibpath_overrides_runpath" ||
12361
test no = "$enable_shared"; then
12362
# Fast installation is not necessary
12363
enable_fast_install=needless
12371
if test yes != "$enable_dlopen"; then
12372
enable_dlopen=unknown
12373
enable_dlopen_self=unknown
12374
enable_dlopen_self_static=unknown
12381
lt_cv_dlopen=load_add_on
12383
lt_cv_dlopen_self=yes
12386
mingw* | pw32* | cegcc*)
12387
lt_cv_dlopen=LoadLibrary
12392
lt_cv_dlopen=dlopen
12397
# if libdl is installed we need to link against it
12398
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12399
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12400
if ${ac_cv_lib_dl_dlopen+:} false; then :
12401
$as_echo_n "(cached) " >&6
12403
ac_check_lib_save_LIBS=$LIBS
12405
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406
/* end confdefs.h. */
12408
/* Override any GCC internal prototype to avoid an error.
12409
Use char because int might match the return type of a GCC
12410
builtin and then its argument prototype would still apply. */
12423
if ac_fn_c_try_link "$LINENO"; then :
12424
ac_cv_lib_dl_dlopen=yes
12426
ac_cv_lib_dl_dlopen=no
12428
rm -f core conftest.err conftest.$ac_objext \
12429
conftest$ac_exeext conftest.$ac_ext
12430
LIBS=$ac_check_lib_save_LIBS
12432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12433
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12434
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12435
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12440
lt_cv_dlopen_self=yes
12447
# Don't try to run any link tests for TPF. We know it's impossible
12448
# because TPF is a cross-compiler, and we know how we open DSOs.
12449
lt_cv_dlopen=dlopen
12451
lt_cv_dlopen_self=no
12455
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12456
if test "x$ac_cv_func_shl_load" = xyes; then :
12457
lt_cv_dlopen=shl_load
12459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12460
$as_echo_n "checking for shl_load in -ldld... " >&6; }
12461
if ${ac_cv_lib_dld_shl_load+:} false; then :
12462
$as_echo_n "(cached) " >&6
12464
ac_check_lib_save_LIBS=$LIBS
12466
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467
/* end confdefs.h. */
12469
/* Override any GCC internal prototype to avoid an error.
12470
Use char because int might match the return type of a GCC
12471
builtin and then its argument prototype would still apply. */
12479
return shl_load ();
12484
if ac_fn_c_try_link "$LINENO"; then :
12485
ac_cv_lib_dld_shl_load=yes
12487
ac_cv_lib_dld_shl_load=no
12489
rm -f core conftest.err conftest.$ac_objext \
12490
conftest$ac_exeext conftest.$ac_ext
12491
LIBS=$ac_check_lib_save_LIBS
12493
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12494
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12495
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12496
lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12498
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12499
if test "x$ac_cv_func_dlopen" = xyes; then :
12500
lt_cv_dlopen=dlopen
12502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12503
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12504
if ${ac_cv_lib_dl_dlopen+:} false; then :
12505
$as_echo_n "(cached) " >&6
12507
ac_check_lib_save_LIBS=$LIBS
12509
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510
/* end confdefs.h. */
12512
/* Override any GCC internal prototype to avoid an error.
12513
Use char because int might match the return type of a GCC
12514
builtin and then its argument prototype would still apply. */
12527
if ac_fn_c_try_link "$LINENO"; then :
12528
ac_cv_lib_dl_dlopen=yes
12530
ac_cv_lib_dl_dlopen=no
12532
rm -f core conftest.err conftest.$ac_objext \
12533
conftest$ac_exeext conftest.$ac_ext
12534
LIBS=$ac_check_lib_save_LIBS
12536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12537
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12538
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12539
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12542
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12543
if ${ac_cv_lib_svld_dlopen+:} false; then :
12544
$as_echo_n "(cached) " >&6
12546
ac_check_lib_save_LIBS=$LIBS
12547
LIBS="-lsvld $LIBS"
12548
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549
/* end confdefs.h. */
12551
/* Override any GCC internal prototype to avoid an error.
12552
Use char because int might match the return type of a GCC
12553
builtin and then its argument prototype would still apply. */
12566
if ac_fn_c_try_link "$LINENO"; then :
12567
ac_cv_lib_svld_dlopen=yes
12569
ac_cv_lib_svld_dlopen=no
12571
rm -f core conftest.err conftest.$ac_objext \
12572
conftest$ac_exeext conftest.$ac_ext
12573
LIBS=$ac_check_lib_save_LIBS
12575
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12576
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12577
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12578
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12581
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12582
if ${ac_cv_lib_dld_dld_link+:} false; then :
12583
$as_echo_n "(cached) " >&6
12585
ac_check_lib_save_LIBS=$LIBS
12587
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588
/* end confdefs.h. */
12590
/* Override any GCC internal prototype to avoid an error.
12591
Use char because int might match the return type of a GCC
12592
builtin and then its argument prototype would still apply. */
12600
return dld_link ();
12605
if ac_fn_c_try_link "$LINENO"; then :
12606
ac_cv_lib_dld_dld_link=yes
12608
ac_cv_lib_dld_dld_link=no
12610
rm -f core conftest.err conftest.$ac_objext \
12611
conftest$ac_exeext conftest.$ac_ext
12612
LIBS=$ac_check_lib_save_LIBS
12614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12615
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12616
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12617
lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12638
if test no = "$lt_cv_dlopen"; then
12644
case $lt_cv_dlopen in
12646
save_CPPFLAGS=$CPPFLAGS
12647
test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12649
save_LDFLAGS=$LDFLAGS
12650
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12653
LIBS="$lt_cv_dlopen_libs $LIBS"
12655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12656
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12657
if ${lt_cv_dlopen_self+:} false; then :
12658
$as_echo_n "(cached) " >&6
12660
if test yes = "$cross_compiling"; then :
12661
lt_cv_dlopen_self=cross
12663
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12664
lt_status=$lt_dlunknown
12665
cat > conftest.$ac_ext <<_LT_EOF
12666
#line $LINENO "configure"
12667
#include "confdefs.h"
12676
# define LT_DLGLOBAL RTLD_GLOBAL
12679
# define LT_DLGLOBAL DL_GLOBAL
12681
# define LT_DLGLOBAL 0
12685
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12686
find out it does not work in some platform. */
12687
#ifndef LT_DLLAZY_OR_NOW
12689
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12692
# define LT_DLLAZY_OR_NOW DL_LAZY
12695
# define LT_DLLAZY_OR_NOW RTLD_NOW
12698
# define LT_DLLAZY_OR_NOW DL_NOW
12700
# define LT_DLLAZY_OR_NOW 0
12707
/* When -fvisibility=hidden is used, assume the code has been annotated
12708
correspondingly for the symbols needed. */
12709
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12710
int fnord () __attribute__((visibility("default")));
12713
int fnord () { return 42; }
12716
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12717
int status = $lt_dlunknown;
12721
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12724
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12725
else puts (dlerror ());
12727
/* dlclose (self); */
12735
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12736
(eval $ac_link) 2>&5
12738
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12739
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12740
(./conftest; exit; ) >&5 2>/dev/null
12742
case x$lt_status in
12743
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12744
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12745
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12748
# compilation failed
12749
lt_cv_dlopen_self=no
12756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12757
$as_echo "$lt_cv_dlopen_self" >&6; }
12759
if test yes = "$lt_cv_dlopen_self"; then
12760
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12761
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12762
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12763
if ${lt_cv_dlopen_self_static+:} false; then :
12764
$as_echo_n "(cached) " >&6
12766
if test yes = "$cross_compiling"; then :
12767
lt_cv_dlopen_self_static=cross
12769
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12770
lt_status=$lt_dlunknown
12771
cat > conftest.$ac_ext <<_LT_EOF
12772
#line $LINENO "configure"
12773
#include "confdefs.h"
12782
# define LT_DLGLOBAL RTLD_GLOBAL
12785
# define LT_DLGLOBAL DL_GLOBAL
12787
# define LT_DLGLOBAL 0
12791
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12792
find out it does not work in some platform. */
12793
#ifndef LT_DLLAZY_OR_NOW
12795
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12798
# define LT_DLLAZY_OR_NOW DL_LAZY
12801
# define LT_DLLAZY_OR_NOW RTLD_NOW
12804
# define LT_DLLAZY_OR_NOW DL_NOW
12806
# define LT_DLLAZY_OR_NOW 0
12813
/* When -fvisibility=hidden is used, assume the code has been annotated
12814
correspondingly for the symbols needed. */
12815
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12816
int fnord () __attribute__((visibility("default")));
12819
int fnord () { return 42; }
12822
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12823
int status = $lt_dlunknown;
12827
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12830
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12831
else puts (dlerror ());
12833
/* dlclose (self); */
12841
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12842
(eval $ac_link) 2>&5
12844
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12845
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12846
(./conftest; exit; ) >&5 2>/dev/null
12848
case x$lt_status in
12849
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12850
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12851
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12854
# compilation failed
12855
lt_cv_dlopen_self_static=no
12862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12863
$as_echo "$lt_cv_dlopen_self_static" >&6; }
12866
CPPFLAGS=$save_CPPFLAGS
12867
LDFLAGS=$save_LDFLAGS
12872
case $lt_cv_dlopen_self in
12873
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12874
*) enable_dlopen_self=unknown ;;
12877
case $lt_cv_dlopen_self_static in
12878
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12879
*) enable_dlopen_self_static=unknown ;;
12901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12902
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12903
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12904
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12905
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12907
$as_echo "yes" >&6; }
12909
# FIXME - insert some real tests, host_os isn't really good enough
12912
if test -n "$STRIP"; then
12913
striplib="$STRIP -x"
12914
old_striplib="$STRIP -S"
12915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12916
$as_echo "yes" >&6; }
12918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919
$as_echo "no" >&6; }
12923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12924
$as_echo "no" >&6; }
12940
# Report what library types will actually be built
12941
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12942
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12944
$as_echo "$can_build_shared" >&6; }
12946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12947
$as_echo_n "checking whether to build shared libraries... " >&6; }
12948
test no = "$can_build_shared" && enable_shared=no
12950
# On AIX, shared libraries and static libraries use the same namespace, and
12951
# are all built from PIC.
12954
test yes = "$enable_shared" && enable_static=no
12955
if test -n "$RANLIB"; then
12956
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12957
postinstall_cmds='$RANLIB $lib'
12962
if test ia64 != "$host_cpu"; then
12963
case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12964
yes,aix,yes) ;; # shared object as lib.so file only
12965
yes,svr4,*) ;; # shared object as lib.so archive member only
12966
yes,*) enable_static=no ;; # shared object in lib.a archive as well
12971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12972
$as_echo "$enable_shared" >&6; }
12974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12975
$as_echo_n "checking whether to build static libraries... " >&6; }
12976
# Make sure either enable_shared or enable_static is yes.
12977
test yes = "$enable_shared" || enable_static=yes
12978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12979
$as_echo "$enable_static" >&6; }
12986
ac_cpp='$CPP $CPPFLAGS'
12987
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12988
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12989
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13007
ac_config_commands="$ac_config_commands libtool"
13012
# Only expand once:
13019
## Checks for programs
13021
ac_cpp='$CPP $CPPFLAGS'
13022
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13023
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13024
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13025
if test -n "$ac_tool_prefix"; then
13026
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13027
set dummy ${ac_tool_prefix}gcc; ac_word=$2
13028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13029
$as_echo_n "checking for $ac_word... " >&6; }
13030
if ${ac_cv_prog_CC+:} false; then :
13031
$as_echo_n "(cached) " >&6
13033
if test -n "$CC"; then
13034
ac_cv_prog_CC="$CC" # Let the user override the test.
13036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037
for as_dir in $PATH
13040
test -z "$as_dir" && as_dir=.
13041
for ac_exec_ext in '' $ac_executable_extensions; do
13042
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13043
ac_cv_prog_CC="${ac_tool_prefix}gcc"
13044
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13054
if test -n "$CC"; then
13055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13056
$as_echo "$CC" >&6; }
13058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059
$as_echo "no" >&6; }
13064
if test -z "$ac_cv_prog_CC"; then
13066
# Extract the first word of "gcc", so it can be a program name with args.
13067
set dummy gcc; ac_word=$2
13068
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13069
$as_echo_n "checking for $ac_word... " >&6; }
13070
if ${ac_cv_prog_ac_ct_CC+:} false; then :
13071
$as_echo_n "(cached) " >&6
13073
if test -n "$ac_ct_CC"; then
13074
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13076
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13077
for as_dir in $PATH
13080
test -z "$as_dir" && as_dir=.
13081
for ac_exec_ext in '' $ac_executable_extensions; do
13082
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13083
ac_cv_prog_ac_ct_CC="gcc"
13084
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13093
ac_ct_CC=$ac_cv_prog_ac_ct_CC
13094
if test -n "$ac_ct_CC"; then
13095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13096
$as_echo "$ac_ct_CC" >&6; }
13098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099
$as_echo "no" >&6; }
13102
if test "x$ac_ct_CC" = x; then
13105
case $cross_compiling:$ac_tool_warned in
13107
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13108
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13109
ac_tool_warned=yes ;;
13114
CC="$ac_cv_prog_CC"
13117
if test -z "$CC"; then
13118
if test -n "$ac_tool_prefix"; then
13119
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13120
set dummy ${ac_tool_prefix}cc; ac_word=$2
13121
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13122
$as_echo_n "checking for $ac_word... " >&6; }
13123
if ${ac_cv_prog_CC+:} false; then :
13124
$as_echo_n "(cached) " >&6
13126
if test -n "$CC"; then
13127
ac_cv_prog_CC="$CC" # Let the user override the test.
13129
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130
for as_dir in $PATH
13133
test -z "$as_dir" && as_dir=.
13134
for ac_exec_ext in '' $ac_executable_extensions; do
13135
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13136
ac_cv_prog_CC="${ac_tool_prefix}cc"
13137
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13147
if test -n "$CC"; then
13148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13149
$as_echo "$CC" >&6; }
13151
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152
$as_echo "no" >&6; }
13158
if test -z "$CC"; then
13159
# Extract the first word of "cc", so it can be a program name with args.
13160
set dummy cc; ac_word=$2
13161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13162
$as_echo_n "checking for $ac_word... " >&6; }
13163
if ${ac_cv_prog_CC+:} false; then :
13164
$as_echo_n "(cached) " >&6
13166
if test -n "$CC"; then
13167
ac_cv_prog_CC="$CC" # Let the user override the test.
13169
ac_prog_rejected=no
13170
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171
for as_dir in $PATH
13174
test -z "$as_dir" && as_dir=.
13175
for ac_exec_ext in '' $ac_executable_extensions; do
13176
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13177
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13178
ac_prog_rejected=yes
13182
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13189
if test $ac_prog_rejected = yes; then
13190
# We found a bogon in the path, so make sure we never use it.
13191
set dummy $ac_cv_prog_CC
13193
if test $# != 0; then
13194
# We chose a different compiler from the bogus one.
13195
# However, it has the same basename, so the bogon will be chosen
13196
# first if we set CC to just the basename; use the full file name.
13198
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13204
if test -n "$CC"; then
13205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13206
$as_echo "$CC" >&6; }
13208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209
$as_echo "no" >&6; }
13214
if test -z "$CC"; then
13215
if test -n "$ac_tool_prefix"; then
13216
for ac_prog in cl.exe
13218
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13219
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13220
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13221
$as_echo_n "checking for $ac_word... " >&6; }
13222
if ${ac_cv_prog_CC+:} false; then :
13223
$as_echo_n "(cached) " >&6
13225
if test -n "$CC"; then
13226
ac_cv_prog_CC="$CC" # Let the user override the test.
13228
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13229
for as_dir in $PATH
13232
test -z "$as_dir" && as_dir=.
13233
for ac_exec_ext in '' $ac_executable_extensions; do
13234
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13235
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13236
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13246
if test -n "$CC"; then
13247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13248
$as_echo "$CC" >&6; }
13250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251
$as_echo "no" >&6; }
13255
test -n "$CC" && break
13258
if test -z "$CC"; then
13260
for ac_prog in cl.exe
13262
# Extract the first word of "$ac_prog", so it can be a program name with args.
13263
set dummy $ac_prog; ac_word=$2
13264
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265
$as_echo_n "checking for $ac_word... " >&6; }
13266
if ${ac_cv_prog_ac_ct_CC+:} false; then :
13267
$as_echo_n "(cached) " >&6
13269
if test -n "$ac_ct_CC"; then
13270
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13272
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273
for as_dir in $PATH
13276
test -z "$as_dir" && as_dir=.
13277
for ac_exec_ext in '' $ac_executable_extensions; do
13278
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13279
ac_cv_prog_ac_ct_CC="$ac_prog"
13280
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13289
ac_ct_CC=$ac_cv_prog_ac_ct_CC
13290
if test -n "$ac_ct_CC"; then
13291
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13292
$as_echo "$ac_ct_CC" >&6; }
13294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295
$as_echo "no" >&6; }
13299
test -n "$ac_ct_CC" && break
13302
if test "x$ac_ct_CC" = x; then
13305
case $cross_compiling:$ac_tool_warned in
13307
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13308
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13309
ac_tool_warned=yes ;;
13318
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13319
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13320
as_fn_error $? "no acceptable C compiler found in \$PATH
13321
See \`config.log' for more details" "$LINENO" 5; }
13323
# Provide some information about the compiler.
13324
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13327
for ac_option in --version -v -V -qversion; do
13328
{ { ac_try="$ac_compiler $ac_option >&5"
13329
case "(($ac_try" in
13330
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331
*) ac_try_echo=$ac_try;;
13333
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13334
$as_echo "$ac_try_echo"; } >&5
13335
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
13337
if test -s conftest.err; then
13339
... rest of stderr output deleted ...
13340
10q' conftest.err >conftest.er1
13341
cat conftest.er1 >&5
13343
rm -f conftest.er1 conftest.err
13344
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13345
test $ac_status = 0; }
13348
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13349
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13350
if ${ac_cv_c_compiler_gnu+:} false; then :
13351
$as_echo_n "(cached) " >&6
13353
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354
/* end confdefs.h. */
13367
if ac_fn_c_try_compile "$LINENO"; then :
13368
ac_compiler_gnu=yes
13372
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13373
ac_cv_c_compiler_gnu=$ac_compiler_gnu
13376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13377
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
13378
if test $ac_compiler_gnu = yes; then
13383
ac_test_CFLAGS=${CFLAGS+set}
13384
ac_save_CFLAGS=$CFLAGS
13385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13386
$as_echo_n "checking whether $CC accepts -g... " >&6; }
13387
if ${ac_cv_prog_cc_g+:} false; then :
13388
$as_echo_n "(cached) " >&6
13390
ac_save_c_werror_flag=$ac_c_werror_flag
13391
ac_c_werror_flag=yes
13394
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395
/* end confdefs.h. */
13405
if ac_fn_c_try_compile "$LINENO"; then :
13406
ac_cv_prog_cc_g=yes
13409
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410
/* end confdefs.h. */
13420
if ac_fn_c_try_compile "$LINENO"; then :
13423
ac_c_werror_flag=$ac_save_c_werror_flag
13425
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426
/* end confdefs.h. */
13436
if ac_fn_c_try_compile "$LINENO"; then :
13437
ac_cv_prog_cc_g=yes
13439
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13443
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13444
ac_c_werror_flag=$ac_save_c_werror_flag
13446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13447
$as_echo "$ac_cv_prog_cc_g" >&6; }
13448
if test "$ac_test_CFLAGS" = set; then
13449
CFLAGS=$ac_save_CFLAGS
13450
elif test $ac_cv_prog_cc_g = yes; then
13451
if test "$GCC" = yes; then
13457
if test "$GCC" = yes; then
13463
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13464
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13465
if ${ac_cv_prog_cc_c89+:} false; then :
13466
$as_echo_n "(cached) " >&6
13468
ac_cv_prog_cc_c89=no
13470
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471
/* end confdefs.h. */
13472
#include <stdarg.h>
13475
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13476
struct buf { int x; };
13477
FILE * (*rcsopen) (struct buf *, struct stat *, int);
13478
static char *e (p, i)
13484
static char *f (char * (*g) (char **, int), char **p, ...)
13489
s = g (p, va_arg (v,int));
13494
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13495
function prototypes and stuff, but not '\xHH' hex character constants.
13496
These don't provoke an error unfortunately, instead are silently treated
13497
as 'x'. The following induces an error, until -std is added to get
13498
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13499
array size at least. It's necessary to write '\x00'==0 to get something
13500
that's true only with -std. */
13501
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13503
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13504
inside strings and character constants. */
13506
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13508
int test (int i, double x);
13509
struct s1 {int (*f) (int a);};
13510
struct s2 {int (*f) (double a);};
13511
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13517
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13522
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13523
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13525
CC="$ac_save_CC $ac_arg"
13526
if ac_fn_c_try_compile "$LINENO"; then :
13527
ac_cv_prog_cc_c89=$ac_arg
13529
rm -f core conftest.err conftest.$ac_objext
13530
test "x$ac_cv_prog_cc_c89" != "xno" && break
13532
rm -f conftest.$ac_ext
13537
case "x$ac_cv_prog_cc_c89" in
13539
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13540
$as_echo "none needed" >&6; } ;;
13542
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13543
$as_echo "unsupported" >&6; } ;;
13545
CC="$CC $ac_cv_prog_cc_c89"
13546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13547
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13549
if test "x$ac_cv_prog_cc_c89" != xno; then :
13554
ac_cpp='$CPP $CPPFLAGS'
13555
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13556
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13557
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13559
depcc="$CC" am_compiler_list=
13561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13562
$as_echo_n "checking dependency style of $depcc... " >&6; }
13563
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13564
$as_echo_n "(cached) " >&6
13566
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13567
# We make a subdir and do the tests there. Otherwise we can end up
13568
# making bogus files that we don't know about and never remove. For
13569
# instance it was reported that on HP-UX the gcc test will end up
13570
# making a dummy file named 'D' -- because '-MD' means "put the output
13572
rm -rf conftest.dir
13574
# Copy depcomp to subdir because otherwise we won't find it if we're
13575
# using a relative directory.
13576
cp "$am_depcomp" conftest.dir
13578
# We will build objects and dependencies in a subdirectory because
13579
# it helps to detect inapplicable dependency modes. For instance
13580
# both Tru64's cc and ICC support -MD to output dependencies as a
13581
# side effect of compilation, but ICC will put the dependencies in
13582
# the current directory while Tru64 will put them in the object
13586
am_cv_CC_dependencies_compiler_type=none
13587
if test "$am_compiler_list" = ""; then
13588
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13590
am__universal=false
13591
case " $depcc " in #(
13592
*\ -arch\ *\ -arch\ *) am__universal=true ;;
13595
for depmode in $am_compiler_list; do
13596
# Setup a source with many dependencies, because some compilers
13597
# like to wrap large dependency lists on column 80 (with \), and
13598
# we should not choose a depcomp mode which is confused by this.
13600
# We need to recreate these files for each test, as the compiler may
13601
# overwrite some of them when testing with obscure command lines.
13602
# This happens at least with the AIX C compiler.
13604
for i in 1 2 3 4 5 6; do
13605
echo '#include "conftst'$i'.h"' >> sub/conftest.c
13606
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13607
# Solaris 10 /bin/sh.
13608
echo '/* dummy */' > sub/conftst$i.h
13610
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13612
# We check with '-c' and '-o' for the sake of the "dashmstdout"
13613
# mode. It turns out that the SunPro C++ compiler does not properly
13614
# handle '-M -o', and we need to detect this. Also, some Intel
13615
# versions had trouble with output in subdirs.
13616
am__obj=sub/conftest.${OBJEXT-o}
13617
am__minus_obj="-o $am__obj"
13620
# This depmode causes a compiler race in universal mode.
13621
test "$am__universal" = false || continue
13624
# After this tag, mechanisms are not by side-effect, so they'll
13625
# only be used when explicitly requested.
13626
if test "x$enable_dependency_tracking" = xyes; then
13632
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13633
# This compiler won't grok '-c -o', but also, the minuso test has
13634
# not run yet. These depmodes are late enough in the game, and
13635
# so weak that their functioning should not be impacted.
13636
am__obj=conftest.${OBJEXT-o}
13641
if depmode=$depmode \
13642
source=sub/conftest.c object=$am__obj \
13643
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13644
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13645
>/dev/null 2>conftest.err &&
13646
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13647
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13648
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13649
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13650
# icc doesn't choke on unknown options, it will just issue warnings
13651
# or remarks (even with -Werror). So we grep stderr for any message
13652
# that says an option was ignored or not supported.
13653
# When given -MP, icc 7.0 and 7.1 complain thusly:
13654
# icc: Command line warning: ignoring option '-M'; no argument required
13655
# The diagnosis changed in icc 8.0:
13656
# icc: Command line remark: option '-MP' not supported
13657
if (grep 'ignoring option' conftest.err ||
13658
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13659
am_cv_CC_dependencies_compiler_type=$depmode
13666
rm -rf conftest.dir
13668
am_cv_CC_dependencies_compiler_type=none
13672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13673
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13674
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13677
test "x$enable_dependency_tracking" != xno \
13678
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13679
am__fastdepCC_TRUE=
13680
am__fastdepCC_FALSE='#'
13682
am__fastdepCC_TRUE='#'
13683
am__fastdepCC_FALSE=
13687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
13688
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
13689
if ${ac_cv_prog_cc_c99+:} false; then :
13690
$as_echo_n "(cached) " >&6
13692
ac_cv_prog_cc_c99=no
13694
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695
/* end confdefs.h. */
13696
#include <stdarg.h>
13697
#include <stdbool.h>
13698
#include <stdlib.h>
13702
// Check varargs macros. These examples are taken from C99 6.10.3.5.
13703
#define debug(...) fprintf (stderr, __VA_ARGS__)
13704
#define showlist(...) puts (#__VA_ARGS__)
13705
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
13707
test_varargs_macros (void)
13712
debug ("X = %d\n", x);
13713
showlist (The first, second, and third items.);
13714
report (x>y, "x is %d but y is %d", x, y);
13717
// Check long long types.
13718
#define BIG64 18446744073709551615ull
13719
#define BIG32 4294967295ul
13720
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
13722
your preprocessor is broken;
13726
your preprocessor is broken;
13728
static long long int bignum = -9223372036854775807LL;
13729
static unsigned long long int ubignum = BIG64;
13731
struct incomplete_array
13737
struct named_init {
13739
const wchar_t *name;
13743
typedef const char *ccp;
13746
test_restrict (ccp restrict text)
13748
// See if C++-style comments work.
13749
// Iterate through items via the restricted pointer.
13750
// Also check for declarations in for loops.
13751
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
13756
// Check varargs and va_copy.
13758
test_varargs (const char *format, ...)
13761
va_start (args, format);
13763
va_copy (args_copy, args);
13773
case 's': // string
13774
str = va_arg (args_copy, const char *);
13777
number = va_arg (args_copy, int);
13780
fnumber = va_arg (args_copy, double);
13786
va_end (args_copy);
13795
_Bool success = false;
13798
if (test_restrict ("String literal") == 0)
13800
char *restrict newvar = "Another string";
13803
test_varargs ("s, d' f .", "string", 65, 34.234);
13804
test_varargs_macros ();
13806
// Check flexible array members.
13807
struct incomplete_array *ia =
13808
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13810
for (int i = 0; i < ia->datasize; ++i)
13811
ia->data[i] = i * 1.234;
13813
// Check named initializers.
13814
struct named_init ni = {
13816
.name = L"Test wide string",
13817
.average = 543.34343,
13822
int dynamic_array[ni.number];
13823
dynamic_array[ni.number - 1] = 543;
13825
// work around unused variable warnings
13826
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13827
|| dynamic_array[ni.number - 1] != 543);
13833
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 -Kc99
13835
CC="$ac_save_CC $ac_arg"
13836
if ac_fn_c_try_compile "$LINENO"; then :
13837
ac_cv_prog_cc_c99=$ac_arg
13839
rm -f core conftest.err conftest.$ac_objext
13840
test "x$ac_cv_prog_cc_c99" != "xno" && break
13842
rm -f conftest.$ac_ext
13847
case "x$ac_cv_prog_cc_c99" in
13849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13850
$as_echo "none needed" >&6; } ;;
13852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13853
$as_echo "unsupported" >&6; } ;;
13855
CC="$CC $ac_cv_prog_cc_c99"
13856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13857
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13859
if test "x$ac_cv_prog_cc_c99" != xno; then :
13864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13865
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13866
if ${ac_cv_c_bigendian+:} false; then :
13867
$as_echo_n "(cached) " >&6
13869
ac_cv_c_bigendian=unknown
13870
# See if we're dealing with a universal compiler.
13871
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872
/* end confdefs.h. */
13873
#ifndef __APPLE_CC__
13874
not a universal capable compiler
13879
if ac_fn_c_try_compile "$LINENO"; then :
13881
# Check for potential -arch flags. It is not universal unless
13882
# there are at least two -arch flags with different values.
13885
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13886
if test -n "$ac_prev"; then
13888
i?86 | x86_64 | ppc | ppc64)
13889
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13892
ac_cv_c_bigendian=universal
13898
elif test "x$ac_word" = "x-arch"; then
13903
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13904
if test $ac_cv_c_bigendian = unknown; then
13905
# See if sys/param.h defines the BYTE_ORDER macro.
13906
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907
/* end confdefs.h. */
13908
#include <sys/types.h>
13909
#include <sys/param.h>
13914
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13915
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13917
bogus endian macros
13924
if ac_fn_c_try_compile "$LINENO"; then :
13925
# It does; now see whether it defined to BIG_ENDIAN or not.
13926
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927
/* end confdefs.h. */
13928
#include <sys/types.h>
13929
#include <sys/param.h>
13934
#if BYTE_ORDER != BIG_ENDIAN
13942
if ac_fn_c_try_compile "$LINENO"; then :
13943
ac_cv_c_bigendian=yes
13945
ac_cv_c_bigendian=no
13947
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13949
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13951
if test $ac_cv_c_bigendian = unknown; then
13952
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13953
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954
/* end confdefs.h. */
13955
#include <limits.h>
13960
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13961
bogus endian macros
13968
if ac_fn_c_try_compile "$LINENO"; then :
13969
# It does; now see whether it defined to _BIG_ENDIAN or not.
13970
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971
/* end confdefs.h. */
13972
#include <limits.h>
13977
#ifndef _BIG_ENDIAN
13985
if ac_fn_c_try_compile "$LINENO"; then :
13986
ac_cv_c_bigendian=yes
13988
ac_cv_c_bigendian=no
13990
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13992
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13994
if test $ac_cv_c_bigendian = unknown; then
13995
# Compile a test program.
13996
if test "$cross_compiling" = yes; then :
13997
# Try to guess by grepping values from an object file.
13998
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999
/* end confdefs.h. */
14000
short int ascii_mm[] =
14001
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14002
short int ascii_ii[] =
14003
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14004
int use_ascii (int i) {
14005
return ascii_mm[i] + ascii_ii[i];
14007
short int ebcdic_ii[] =
14008
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14009
short int ebcdic_mm[] =
14010
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14011
int use_ebcdic (int i) {
14012
return ebcdic_mm[i] + ebcdic_ii[i];
14019
return use_ascii (foo) == use_ebcdic (foo);
14024
if ac_fn_c_try_compile "$LINENO"; then :
14025
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14026
ac_cv_c_bigendian=yes
14028
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14029
if test "$ac_cv_c_bigendian" = unknown; then
14030
ac_cv_c_bigendian=no
14032
# finding both strings is unlikely to happen, but who knows?
14033
ac_cv_c_bigendian=unknown
14037
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14039
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040
/* end confdefs.h. */
14041
$ac_includes_default
14046
/* Are we little or big endian? From Harbison&Steele. */
14050
char c[sizeof (long int)];
14053
return u.c[sizeof (long int) - 1] == 1;
14059
if ac_fn_c_try_run "$LINENO"; then :
14060
ac_cv_c_bigendian=no
14062
ac_cv_c_bigendian=yes
14064
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14065
conftest.$ac_objext conftest.beam conftest.$ac_ext
14070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14071
$as_echo "$ac_cv_c_bigendian" >&6; }
14072
case $ac_cv_c_bigendian in #(
14074
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14080
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14084
as_fn_error $? "unknown endianness
14085
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14088
if test "x$CC" != xcc; then
14089
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
14090
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
14092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
14093
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
14095
set dummy $CC; ac_cc=`$as_echo "$2" |
14096
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
14097
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
14098
$as_echo_n "(cached) " >&6
14100
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101
/* end confdefs.h. */
14111
# Make sure it works both with $CC and with simple cc.
14112
# We do the test twice because some compilers refuse to overwrite an
14113
# existing .o file with -o, though they will create one.
14114
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
14116
if { { case "(($ac_try" in
14117
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14118
*) ac_try_echo=$ac_try;;
14120
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14121
$as_echo "$ac_try_echo"; } >&5
14122
(eval "$ac_try") 2>&5
14124
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14125
test $ac_status = 0; } &&
14126
test -f conftest2.$ac_objext && { { case "(($ac_try" in
14127
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128
*) ac_try_echo=$ac_try;;
14130
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14131
$as_echo "$ac_try_echo"; } >&5
14132
(eval "$ac_try") 2>&5
14134
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14135
test $ac_status = 0; };
14137
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
14138
if test "x$CC" != xcc; then
14139
# Test first that cc exists at all.
14140
if { ac_try='cc -c conftest.$ac_ext >&5'
14141
{ { case "(($ac_try" in
14142
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14143
*) ac_try_echo=$ac_try;;
14145
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14146
$as_echo "$ac_try_echo"; } >&5
14147
(eval "$ac_try") 2>&5
14149
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14150
test $ac_status = 0; }; }; then
14151
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
14153
if { { case "(($ac_try" in
14154
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155
*) ac_try_echo=$ac_try;;
14157
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14158
$as_echo "$ac_try_echo"; } >&5
14159
(eval "$ac_try") 2>&5
14161
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14162
test $ac_status = 0; } &&
14163
test -f conftest2.$ac_objext && { { case "(($ac_try" in
14164
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165
*) ac_try_echo=$ac_try;;
14167
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14168
$as_echo "$ac_try_echo"; } >&5
14169
(eval "$ac_try") 2>&5
14171
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14172
test $ac_status = 0; };
14177
# cc exists but doesn't like -o.
14178
eval ac_cv_prog_cc_${ac_cc}_c_o=no
14183
eval ac_cv_prog_cc_${ac_cc}_c_o=no
14185
rm -f core conftest*
14188
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
14189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14190
$as_echo "yes" >&6; }
14192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14193
$as_echo "no" >&6; }
14195
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
14199
# FIXME: we rely on the cache variable name because
14200
# there is no other way.
14202
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
14203
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
14204
if test "$am_t" != yes; then
14205
# Losing compiler, so override with the script.
14206
# FIXME: It is wrong to rewrite CC.
14207
# But if we don't then we get into trouble of one sort or another.
14208
# A longer-term fix would be to have automake use am__CC in this case,
14209
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14210
CC="$am_aux_dir/compile $CC"
14216
ac_cpp='$CXXCPP $CPPFLAGS'
14217
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14218
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14219
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14220
if test -z "$CXX"; then
14221
if test -n "$CCC"; then
14224
if test -n "$ac_tool_prefix"; then
14225
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14227
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14228
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14230
$as_echo_n "checking for $ac_word... " >&6; }
14231
if ${ac_cv_prog_CXX+:} false; then :
14232
$as_echo_n "(cached) " >&6
14234
if test -n "$CXX"; then
14235
ac_cv_prog_CXX="$CXX" # Let the user override the test.
14237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14238
for as_dir in $PATH
14241
test -z "$as_dir" && as_dir=.
14242
for ac_exec_ext in '' $ac_executable_extensions; do
14243
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14244
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14245
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14254
CXX=$ac_cv_prog_CXX
14255
if test -n "$CXX"; then
14256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14257
$as_echo "$CXX" >&6; }
14259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14260
$as_echo "no" >&6; }
14264
test -n "$CXX" && break
14267
if test -z "$CXX"; then
14269
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14271
# Extract the first word of "$ac_prog", so it can be a program name with args.
14272
set dummy $ac_prog; ac_word=$2
14273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14274
$as_echo_n "checking for $ac_word... " >&6; }
14275
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14276
$as_echo_n "(cached) " >&6
14278
if test -n "$ac_ct_CXX"; then
14279
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14281
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14282
for as_dir in $PATH
14285
test -z "$as_dir" && as_dir=.
14286
for ac_exec_ext in '' $ac_executable_extensions; do
14287
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14288
ac_cv_prog_ac_ct_CXX="$ac_prog"
14289
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14298
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14299
if test -n "$ac_ct_CXX"; then
14300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14301
$as_echo "$ac_ct_CXX" >&6; }
14303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14304
$as_echo "no" >&6; }
14308
test -n "$ac_ct_CXX" && break
14311
if test "x$ac_ct_CXX" = x; then
14314
case $cross_compiling:$ac_tool_warned in
14316
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14317
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14318
ac_tool_warned=yes ;;
14326
# Provide some information about the compiler.
14327
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14330
for ac_option in --version -v -V -qversion; do
14331
{ { ac_try="$ac_compiler $ac_option >&5"
14332
case "(($ac_try" in
14333
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334
*) ac_try_echo=$ac_try;;
14336
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14337
$as_echo "$ac_try_echo"; } >&5
14338
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
14340
if test -s conftest.err; then
14342
... rest of stderr output deleted ...
14343
10q' conftest.err >conftest.er1
14344
cat conftest.er1 >&5
14346
rm -f conftest.er1 conftest.err
14347
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14348
test $ac_status = 0; }
14351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14352
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14353
if ${ac_cv_cxx_compiler_gnu+:} false; then :
14354
$as_echo_n "(cached) " >&6
14356
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357
/* end confdefs.h. */
14370
if ac_fn_cxx_try_compile "$LINENO"; then :
14371
ac_compiler_gnu=yes
14375
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14376
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14380
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14381
if test $ac_compiler_gnu = yes; then
14386
ac_test_CXXFLAGS=${CXXFLAGS+set}
14387
ac_save_CXXFLAGS=$CXXFLAGS
14388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14389
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
14390
if ${ac_cv_prog_cxx_g+:} false; then :
14391
$as_echo_n "(cached) " >&6
14393
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14394
ac_cxx_werror_flag=yes
14395
ac_cv_prog_cxx_g=no
14397
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398
/* end confdefs.h. */
14408
if ac_fn_cxx_try_compile "$LINENO"; then :
14409
ac_cv_prog_cxx_g=yes
14412
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413
/* end confdefs.h. */
14423
if ac_fn_cxx_try_compile "$LINENO"; then :
14426
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14428
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429
/* end confdefs.h. */
14439
if ac_fn_cxx_try_compile "$LINENO"; then :
14440
ac_cv_prog_cxx_g=yes
14442
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14447
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14450
$as_echo "$ac_cv_prog_cxx_g" >&6; }
14451
if test "$ac_test_CXXFLAGS" = set; then
14452
CXXFLAGS=$ac_save_CXXFLAGS
14453
elif test $ac_cv_prog_cxx_g = yes; then
14454
if test "$GXX" = yes; then
14460
if test "$GXX" = yes; then
14467
ac_cpp='$CPP $CPPFLAGS'
14468
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14469
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14470
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14472
depcc="$CXX" am_compiler_list=
14474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14475
$as_echo_n "checking dependency style of $depcc... " >&6; }
14476
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14477
$as_echo_n "(cached) " >&6
14479
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14480
# We make a subdir and do the tests there. Otherwise we can end up
14481
# making bogus files that we don't know about and never remove. For
14482
# instance it was reported that on HP-UX the gcc test will end up
14483
# making a dummy file named 'D' -- because '-MD' means "put the output
14485
rm -rf conftest.dir
14487
# Copy depcomp to subdir because otherwise we won't find it if we're
14488
# using a relative directory.
14489
cp "$am_depcomp" conftest.dir
14491
# We will build objects and dependencies in a subdirectory because
14492
# it helps to detect inapplicable dependency modes. For instance
14493
# both Tru64's cc and ICC support -MD to output dependencies as a
14494
# side effect of compilation, but ICC will put the dependencies in
14495
# the current directory while Tru64 will put them in the object
14499
am_cv_CXX_dependencies_compiler_type=none
14500
if test "$am_compiler_list" = ""; then
14501
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14503
am__universal=false
14504
case " $depcc " in #(
14505
*\ -arch\ *\ -arch\ *) am__universal=true ;;
14508
for depmode in $am_compiler_list; do
14509
# Setup a source with many dependencies, because some compilers
14510
# like to wrap large dependency lists on column 80 (with \), and
14511
# we should not choose a depcomp mode which is confused by this.
14513
# We need to recreate these files for each test, as the compiler may
14514
# overwrite some of them when testing with obscure command lines.
14515
# This happens at least with the AIX C compiler.
14517
for i in 1 2 3 4 5 6; do
14518
echo '#include "conftst'$i'.h"' >> sub/conftest.c
14519
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14520
# Solaris 10 /bin/sh.
14521
echo '/* dummy */' > sub/conftst$i.h
14523
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14525
# We check with '-c' and '-o' for the sake of the "dashmstdout"
14526
# mode. It turns out that the SunPro C++ compiler does not properly
14527
# handle '-M -o', and we need to detect this. Also, some Intel
14528
# versions had trouble with output in subdirs.
14529
am__obj=sub/conftest.${OBJEXT-o}
14530
am__minus_obj="-o $am__obj"
14533
# This depmode causes a compiler race in universal mode.
14534
test "$am__universal" = false || continue
14537
# After this tag, mechanisms are not by side-effect, so they'll
14538
# only be used when explicitly requested.
14539
if test "x$enable_dependency_tracking" = xyes; then
14545
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14546
# This compiler won't grok '-c -o', but also, the minuso test has
14547
# not run yet. These depmodes are late enough in the game, and
14548
# so weak that their functioning should not be impacted.
14549
am__obj=conftest.${OBJEXT-o}
14554
if depmode=$depmode \
14555
source=sub/conftest.c object=$am__obj \
14556
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14557
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14558
>/dev/null 2>conftest.err &&
14559
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14560
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14561
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14562
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14563
# icc doesn't choke on unknown options, it will just issue warnings
14564
# or remarks (even with -Werror). So we grep stderr for any message
14565
# that says an option was ignored or not supported.
14566
# When given -MP, icc 7.0 and 7.1 complain thusly:
14567
# icc: Command line warning: ignoring option '-M'; no argument required
14568
# The diagnosis changed in icc 8.0:
14569
# icc: Command line remark: option '-MP' not supported
14570
if (grep 'ignoring option' conftest.err ||
14571
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14572
am_cv_CXX_dependencies_compiler_type=$depmode
14579
rm -rf conftest.dir
14581
am_cv_CXX_dependencies_compiler_type=none
14585
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14586
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14587
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14590
test "x$enable_dependency_tracking" != xno \
14591
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14592
am__fastdepCXX_TRUE=
14593
am__fastdepCXX_FALSE='#'
14595
am__fastdepCXX_TRUE='#'
14596
am__fastdepCXX_FALSE=
14602
func_stripname_cnf ()
14605
.*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14606
*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14608
} # func_stripname_cnf
14610
if test -n "$CXX" && ( test no != "$CXX" &&
14611
( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14612
(test g++ != "$CXX"))); then
14614
ac_cpp='$CXXCPP $CPPFLAGS'
14615
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14616
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14617
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14619
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14620
if test -z "$CXXCPP"; then
14621
if ${ac_cv_prog_CXXCPP+:} false; then :
14622
$as_echo_n "(cached) " >&6
14624
# Double quotes because CXXCPP needs to be expanded
14625
for CXXCPP in "$CXX -E" "/lib/cpp"
14627
ac_preproc_ok=false
14628
for ac_cxx_preproc_warn_flag in '' yes
14630
# Use a header file that comes with gcc, so configuring glibc
14631
# with a fresh cross-compiler works.
14632
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14633
# <limits.h> exists even on freestanding compilers.
14634
# On the NeXT, cc -E runs the code through the compiler's parser,
14635
# not just through cpp. "Syntax error" is here to catch this case.
14636
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637
/* end confdefs.h. */
14639
# include <limits.h>
14641
# include <assert.h>
14645
if ac_fn_cxx_try_cpp "$LINENO"; then :
14648
# Broken: fails on valid input.
14651
rm -f conftest.err conftest.i conftest.$ac_ext
14653
# OK, works on sane cases. Now check whether nonexistent headers
14654
# can be detected and how.
14655
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656
/* end confdefs.h. */
14657
#include <ac_nonexistent.h>
14659
if ac_fn_cxx_try_cpp "$LINENO"; then :
14660
# Broken: success on invalid input.
14663
# Passes both tests.
14667
rm -f conftest.err conftest.i conftest.$ac_ext
14670
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14671
rm -f conftest.i conftest.err conftest.$ac_ext
14672
if $ac_preproc_ok; then :
14677
ac_cv_prog_CXXCPP=$CXXCPP
14680
CXXCPP=$ac_cv_prog_CXXCPP
14682
ac_cv_prog_CXXCPP=$CXXCPP
14684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14685
$as_echo "$CXXCPP" >&6; }
14686
ac_preproc_ok=false
14687
for ac_cxx_preproc_warn_flag in '' yes
14689
# Use a header file that comes with gcc, so configuring glibc
14690
# with a fresh cross-compiler works.
14691
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14692
# <limits.h> exists even on freestanding compilers.
14693
# On the NeXT, cc -E runs the code through the compiler's parser,
14694
# not just through cpp. "Syntax error" is here to catch this case.
14695
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14696
/* end confdefs.h. */
14698
# include <limits.h>
14700
# include <assert.h>
14704
if ac_fn_cxx_try_cpp "$LINENO"; then :
14707
# Broken: fails on valid input.
14710
rm -f conftest.err conftest.i conftest.$ac_ext
14712
# OK, works on sane cases. Now check whether nonexistent headers
14713
# can be detected and how.
14714
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715
/* end confdefs.h. */
14716
#include <ac_nonexistent.h>
14718
if ac_fn_cxx_try_cpp "$LINENO"; then :
14719
# Broken: success on invalid input.
14722
# Passes both tests.
14726
rm -f conftest.err conftest.i conftest.$ac_ext
14729
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14730
rm -f conftest.i conftest.err conftest.$ac_ext
14731
if $ac_preproc_ok; then :
14734
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14735
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14736
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14737
See \`config.log' for more details" "$LINENO" 5; }
14741
ac_cpp='$CPP $CPPFLAGS'
14742
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14743
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14744
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14747
_lt_caught_CXX_error=yes
14751
ac_cpp='$CXXCPP $CPPFLAGS'
14752
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14753
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14754
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14756
archive_cmds_need_lc_CXX=no
14757
allow_undefined_flag_CXX=
14758
always_export_symbols_CXX=no
14759
archive_expsym_cmds_CXX=
14760
compiler_needs_object_CXX=no
14761
export_dynamic_flag_spec_CXX=
14762
hardcode_direct_CXX=no
14763
hardcode_direct_absolute_CXX=no
14764
hardcode_libdir_flag_spec_CXX=
14765
hardcode_libdir_separator_CXX=
14766
hardcode_minus_L_CXX=no
14767
hardcode_shlibpath_var_CXX=unsupported
14768
hardcode_automatic_CXX=no
14769
inherit_rpath_CXX=no
14771
module_expsym_cmds_CXX=
14772
link_all_deplibs_CXX=unknown
14773
old_archive_cmds_CXX=$old_archive_cmds
14774
reload_flag_CXX=$reload_flag
14775
reload_cmds_CXX=$reload_cmds
14776
no_undefined_flag_CXX=
14777
whole_archive_flag_spec_CXX=
14778
enable_shared_with_static_runtimes_CXX=no
14780
# Source file extension for C++ test sources.
14783
# Object file extension for compiled C++ test sources.
14787
# No sense in running all these tests if we already determined that
14788
# the CXX compiler isn't working. Some variables (like enable_shared)
14789
# are currently assumed to apply to all compilers on this platform,
14790
# and will be corrupted by setting them based on a non-working compiler.
14791
if test yes != "$_lt_caught_CXX_error"; then
14792
# Code to be used in simple compile tests
14793
lt_simple_compile_test_code="int some_variable = 0;"
14795
# Code to be used in simple link tests
14796
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14798
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14805
# If no C compiler was specified, use CC.
14808
# If no C compiler flags were specified, use CFLAGS.
14809
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14811
# Allow CC to be a program name with arguments.
14815
# save warnings/boilerplate of simple test code
14816
ac_outfile=conftest.$ac_objext
14817
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14818
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14819
_lt_compiler_boilerplate=`cat conftest.err`
14822
ac_outfile=conftest.$ac_objext
14823
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14824
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14825
_lt_linker_boilerplate=`cat conftest.err`
14829
# Allow CC to be a program name with arguments.
14831
lt_save_CFLAGS=$CFLAGS
14835
lt_save_with_gnu_ld=$with_gnu_ld
14836
lt_save_path_LD=$lt_cv_path_LD
14837
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14838
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14840
$as_unset lt_cv_prog_gnu_ld
14842
if test -n "${lt_cv_path_LDCXX+set}"; then
14843
lt_cv_path_LD=$lt_cv_path_LDCXX
14845
$as_unset lt_cv_path_LD
14847
test -z "${LDCXX+set}" || LD=$LDCXX
14852
func_cc_basename $compiler
14853
cc_basename=$func_cc_basename_result
14856
if test -n "$compiler"; then
14857
# We don't want -fno-exception when compiling C++ code, so set the
14858
# no_builtin_flag separately
14859
if test yes = "$GXX"; then
14860
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14862
lt_prog_compiler_no_builtin_flag_CXX=
14865
if test yes = "$GXX"; then
14866
# Set up default GNU C++ configuration
14870
# Check whether --with-gnu-ld was given.
14871
if test "${with_gnu_ld+set}" = set; then :
14872
withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14878
if test yes = "$GCC"; then
14879
# Check if gcc -print-prog-name=ld gives a path.
14880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14881
$as_echo_n "checking for ld used by $CC... " >&6; }
14884
# gcc leaves a trailing carriage return, which upsets mingw
14885
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14887
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14890
# Accept absolute paths.
14892
re_direlt='/[^/][^/]*/\.\./'
14893
# Canonicalize the pathname of ld
14894
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14895
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14896
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14898
test -z "$LD" && LD=$ac_prog
14901
# If it fails, then pretend we aren't using GCC.
14905
# If it is relative, then search for the first ld in PATH.
14906
with_gnu_ld=unknown
14909
elif test yes = "$with_gnu_ld"; then
14910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14911
$as_echo_n "checking for GNU ld... " >&6; }
14913
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14914
$as_echo_n "checking for non-GNU ld... " >&6; }
14916
if ${lt_cv_path_LD+:} false; then :
14917
$as_echo_n "(cached) " >&6
14919
if test -z "$LD"; then
14920
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14921
for ac_dir in $PATH; do
14923
test -z "$ac_dir" && ac_dir=.
14924
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14925
lt_cv_path_LD=$ac_dir/$ac_prog
14926
# Check to see if the program is GNU ld. I'd rather use --version,
14927
# but apparently some variants of GNU ld only accept -v.
14928
# Break only if it was the GNU/non-GNU ld that we prefer.
14929
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14930
*GNU* | *'with BFD'*)
14931
test no != "$with_gnu_ld" && break
14934
test yes != "$with_gnu_ld" && break
14941
lt_cv_path_LD=$LD # Let the user override the test with a path.
14946
if test -n "$LD"; then
14947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14948
$as_echo "$LD" >&6; }
14950
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14951
$as_echo "no" >&6; }
14953
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14954
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14955
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14956
if ${lt_cv_prog_gnu_ld+:} false; then :
14957
$as_echo_n "(cached) " >&6
14959
# I'd rather use --version here, but apparently some GNU lds only accept -v.
14960
case `$LD -v 2>&1 </dev/null` in
14961
*GNU* | *'with BFD'*)
14962
lt_cv_prog_gnu_ld=yes
14965
lt_cv_prog_gnu_ld=no
14969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14970
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14971
with_gnu_ld=$lt_cv_prog_gnu_ld
14979
# Check if GNU C++ uses GNU ld as the underlying linker, since the
14980
# archiving commands below assume that GNU ld is being used.
14981
if test yes = "$with_gnu_ld"; then
14982
archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14983
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'
14985
hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14986
export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14988
# If archive_cmds runs LD, not CC, wlarc should be empty
14989
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14990
# investigate it a little bit more. (MM)
14993
# ancient GNU ld didn't support --whole-archive et. al.
14994
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14995
$GREP 'no-whole-archive' > /dev/null; then
14996
whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14998
whole_archive_flag_spec_CXX=
15004
# A generic and very simple default shared library creation
15005
# command for GNU C++ for the case where it uses the native
15006
# linker, instead of GNU ld. If possible, this setting should
15007
# overridden to take advantage of the native linker features on
15008
# the platform it is being used on.
15009
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15012
# Commands to make compiler produce verbose output that lists
15013
# what "hidden" libraries, object files and flags are used when
15014
# linking a shared library.
15015
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15023
# PORTME: fill in a description of your system's C++ link characteristics
15024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15025
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15029
# FIXME: insert proper C++ library support
15033
if test ia64 = "$host_cpu"; then
15034
# On IA64, the linker does run time linking by default, so we don't
15035
# have to do anything special.
15036
aix_use_runtimelinking=no
15037
exp_sym_flag='-Bexport'
15040
aix_use_runtimelinking=no
15042
# Test if we are trying to use run time linking or normal
15043
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15044
# have runtime linking enabled, and use it for executables.
15045
# For shared libraries, we enable/disable runtime linking
15046
# depending on the kind of the shared library created -
15047
# when "with_aix_soname,aix_use_runtimelinking" is:
15048
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15049
# "aix,yes" lib.so shared, rtl:yes, for executables
15050
# lib.a static archive
15051
# "both,no" lib.so.V(shr.o) shared, rtl:yes
15052
# lib.a(lib.so.V) shared, rtl:no, for executables
15053
# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15054
# lib.a(lib.so.V) shared, rtl:no
15055
# "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15056
# lib.a static archive
15057
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15058
for ld_flag in $LDFLAGS; do
15061
aix_use_runtimelinking=yes
15066
if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15067
# With aix-soname=svr4, we create the lib.so.V shared archives only,
15068
# so we don't have lib.a shared libs to link our executables.
15069
# We have to force runtime linking in this case.
15070
aix_use_runtimelinking=yes
15071
LDFLAGS="$LDFLAGS -Wl,-brtl"
15076
exp_sym_flag='-bexport'
15077
no_entry_flag='-bnoentry'
15080
# When large executables or shared objects are built, AIX ld can
15081
# have problems creating the table of contents. If linking a library
15082
# or program results in "error TOC overflow" add -mminimal-toc to
15083
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15084
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15086
archive_cmds_CXX=''
15087
hardcode_direct_CXX=yes
15088
hardcode_direct_absolute_CXX=yes
15089
hardcode_libdir_separator_CXX=':'
15090
link_all_deplibs_CXX=yes
15091
file_list_spec_CXX='$wl-f,'
15092
case $with_aix_soname,$aix_use_runtimelinking in
15093
aix,*) ;; # no import file
15094
svr4,* | *,yes) # use import file
15095
# The Import File defines what to hardcode.
15096
hardcode_direct_CXX=no
15097
hardcode_direct_absolute_CXX=no
15101
if test yes = "$GXX"; then
15102
case $host_os in aix4.[012]|aix4.[012].*)
15103
# We only want to do this on AIX 4.2 and lower, the check
15104
# below for broken collect2 doesn't work under 4.3+
15105
collect2name=`$CC -print-prog-name=collect2`
15106
if test -f "$collect2name" &&
15107
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15109
# We have reworked collect2
15112
# We have old collect2
15113
hardcode_direct_CXX=unsupported
15114
# It fails to find uninstalled libraries when the uninstalled
15115
# path is not listed in the libpath. Setting hardcode_minus_L
15116
# to unsupported forces relinking
15117
hardcode_minus_L_CXX=yes
15118
hardcode_libdir_flag_spec_CXX='-L$libdir'
15119
hardcode_libdir_separator_CXX=
15122
shared_flag='-shared'
15123
if test yes = "$aix_use_runtimelinking"; then
15124
shared_flag=$shared_flag' $wl-G'
15126
# Need to ensure runtime linking is disabled for the traditional
15127
# shared library, or the linker may eventually find shared libraries
15128
# /with/ Import File - we do not want to mix them.
15129
shared_flag_aix='-shared'
15130
shared_flag_svr4='-shared $wl-G'
15133
if test ia64 = "$host_cpu"; then
15134
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15135
# chokes on -Wl,-G. The following line is correct:
15138
if test yes = "$aix_use_runtimelinking"; then
15139
shared_flag='$wl-G'
15141
shared_flag='$wl-bM:SRE'
15143
shared_flag_aix='$wl-bM:SRE'
15144
shared_flag_svr4='$wl-G'
15148
export_dynamic_flag_spec_CXX='$wl-bexpall'
15149
# It seems that -bexpall does not export symbols beginning with
15150
# underscore (_), so it is better to generate a list of symbols to
15152
always_export_symbols_CXX=yes
15153
if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15154
# Warning - without using the other runtime loading flags (-brtl),
15155
# -berok will link without error, but may produce a broken library.
15156
# The "-G" linker flag allows undefined symbols.
15157
no_undefined_flag_CXX='-bernotok'
15158
# Determine the default libpath from the value encoded in an empty
15160
if test set = "${lt_cv_aix_libpath+set}"; then
15161
aix_libpath=$lt_cv_aix_libpath
15163
if ${lt_cv_aix_libpath__CXX+:} false; then :
15164
$as_echo_n "(cached) " >&6
15166
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167
/* end confdefs.h. */
15177
if ac_fn_cxx_try_link "$LINENO"; then :
15179
lt_aix_libpath_sed='
15180
/Import File Strings/,/^$/ {
15182
s/^0 *\([^ ]*\) *$/\1/
15186
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15187
# Check for a 64-bit object if we didn't find anything.
15188
if test -z "$lt_cv_aix_libpath__CXX"; then
15189
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15192
rm -f core conftest.err conftest.$ac_objext \
15193
conftest$ac_exeext conftest.$ac_ext
15194
if test -z "$lt_cv_aix_libpath__CXX"; then
15195
lt_cv_aix_libpath__CXX=/usr/lib:/lib
15200
aix_libpath=$lt_cv_aix_libpath__CXX
15203
hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15205
archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15207
if test ia64 = "$host_cpu"; then
15208
hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15209
allow_undefined_flag_CXX="-z nodefs"
15210
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"
15212
# Determine the default libpath from the value encoded in an
15213
# empty executable.
15214
if test set = "${lt_cv_aix_libpath+set}"; then
15215
aix_libpath=$lt_cv_aix_libpath
15217
if ${lt_cv_aix_libpath__CXX+:} false; then :
15218
$as_echo_n "(cached) " >&6
15220
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221
/* end confdefs.h. */
15231
if ac_fn_cxx_try_link "$LINENO"; then :
15233
lt_aix_libpath_sed='
15234
/Import File Strings/,/^$/ {
15236
s/^0 *\([^ ]*\) *$/\1/
15240
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15241
# Check for a 64-bit object if we didn't find anything.
15242
if test -z "$lt_cv_aix_libpath__CXX"; then
15243
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15246
rm -f core conftest.err conftest.$ac_objext \
15247
conftest$ac_exeext conftest.$ac_ext
15248
if test -z "$lt_cv_aix_libpath__CXX"; then
15249
lt_cv_aix_libpath__CXX=/usr/lib:/lib
15254
aix_libpath=$lt_cv_aix_libpath__CXX
15257
hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15258
# Warning - without using the other run time loading flags,
15259
# -berok will link without error, but may produce a broken library.
15260
no_undefined_flag_CXX=' $wl-bernotok'
15261
allow_undefined_flag_CXX=' $wl-berok'
15262
if test yes = "$with_gnu_ld"; then
15263
# We only use this code for GNU lds that support --whole-archive.
15264
whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15266
# Exported symbols can be pulled into shared objects from archives
15267
whole_archive_flag_spec_CXX='$convenience'
15269
archive_cmds_need_lc_CXX=yes
15270
archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15271
# -brtl affects multiple linker settings, -berok does not and is overridden later
15272
compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15273
if test svr4 != "$with_aix_soname"; then
15274
# This is similar to how AIX traditionally builds its shared
15275
# libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15276
archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15278
if test aix != "$with_aix_soname"; then
15279
archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15281
# used by -dlpreopen to get the symbols
15282
archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15284
archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15290
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15291
allow_undefined_flag_CXX=unsupported
15292
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15293
# support --undefined. This deserves some investigation. FIXME
15294
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15301
case $cc_basename in
15303
# FIXME: insert proper C++ library support
15309
cygwin* | mingw* | pw32* | cegcc*)
15310
case $GXX,$cc_basename in
15313
# hardcode_libdir_flag_spec is actually meaningless, as there is
15314
# no search path for DLLs.
15315
hardcode_libdir_flag_spec_CXX=' '
15316
allow_undefined_flag_CXX=unsupported
15317
always_export_symbols_CXX=yes
15318
file_list_spec_CXX='@'
15319
# Tell ltmain to make .lib files, not .a files.
15321
# Tell ltmain to make .dll files, not .so files.
15323
# FIXME: Setting linknames here is a bad hack.
15324
archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15325
archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15326
cp "$export_symbols" "$output_objdir/$soname.def";
15327
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15329
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15331
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15333
# The linker will not automatically build a static lib if we build a DLL.
15334
# _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15335
enable_shared_with_static_runtimes_CXX=yes
15337
old_postinstall_cmds_CXX='chmod 644 $oldlib'
15338
postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15339
lt_tool_outputfile="@TOOL_OUTPUT@"~
15340
case $lt_outputfile in
15343
lt_outputfile=$lt_outputfile.exe
15344
lt_tool_outputfile=$lt_tool_outputfile.exe
15347
func_to_tool_file "$lt_outputfile"~
15348
if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15349
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15350
$RM "$lt_outputfile.manifest";
15355
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15356
# as there is no search path for DLLs.
15357
hardcode_libdir_flag_spec_CXX='-L$libdir'
15358
export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15359
allow_undefined_flag_CXX=unsupported
15360
always_export_symbols_CXX=no
15361
enable_shared_with_static_runtimes_CXX=yes
15363
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15364
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'
15365
# If the export-symbols file already is a .def file, use it as
15366
# is; otherwise, prepend EXPORTS...
15367
archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15368
cp $export_symbols $output_objdir/$soname.def;
15370
echo EXPORTS > $output_objdir/$soname.def;
15371
cat $export_symbols >> $output_objdir/$soname.def;
15373
$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'
15380
darwin* | rhapsody*)
15383
archive_cmds_need_lc_CXX=no
15384
hardcode_direct_CXX=no
15385
hardcode_automatic_CXX=yes
15386
hardcode_shlibpath_var_CXX=unsupported
15387
if test yes = "$lt_cv_ld_force_load"; then
15388
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\"`'
15391
whole_archive_flag_spec_CXX=''
15393
link_all_deplibs_CXX=yes
15394
allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15395
case $cc_basename in
15396
ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15397
*) _lt_dar_can_shared=$GCC ;;
15399
if test yes = "$_lt_dar_can_shared"; then
15400
output_verbose_link_cmd=func_echo_all
15401
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"
15402
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15403
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"
15404
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"
15405
if test yes != "$lt_cv_apple_cc_single_mod"; then
15406
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"
15407
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"
15417
hardcode_libdir_flag_spec_CXX='-L$libdir'
15418
hardcode_minus_L_CXX=yes
15419
allow_undefined_flag_CXX=unsupported
15421
archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15422
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15423
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15424
$ECHO EXPORTS >> $output_objdir/$libname.def~
15425
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15426
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15427
emximp -o $lib $output_objdir/$libname.def'
15428
archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15429
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15430
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15431
$ECHO EXPORTS >> $output_objdir/$libname.def~
15432
prefix_cmds="$SED"~
15433
if test EXPORTS = "`$SED 1q $export_symbols`"; then
15434
prefix_cmds="$prefix_cmds -e 1d";
15436
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15437
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15438
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15439
emximp -o $lib $output_objdir/$libname.def'
15440
old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15441
enable_shared_with_static_runtimes_CXX=yes
15445
case $cc_basename in
15447
# FIXME: insert proper C++ library support
15451
# Green Hills C++ Compiler
15452
# FIXME: insert proper C++ library support
15456
# FIXME: insert proper C++ library support
15463
# C++ shared libraries reported to be fairly broken before
15469
archive_cmds_need_lc_CXX=no
15472
freebsd* | dragonfly*)
15473
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15479
archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15480
link_all_deplibs_CXX=yes
15484
hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15485
hardcode_libdir_separator_CXX=:
15486
export_dynamic_flag_spec_CXX='$wl-E'
15487
hardcode_direct_CXX=yes
15488
hardcode_minus_L_CXX=yes # Not in the search PATH,
15489
# but as the default
15490
# location of the library.
15492
case $cc_basename in
15494
# FIXME: insert proper C++ library support
15498
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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15499
# Commands to make compiler produce verbose output that lists
15500
# what "hidden" libraries, object files and flags are used when
15501
# linking a shared library.
15503
# There doesn't appear to be a way to prevent this compiler from
15504
# explicitly linking system object files so we need to strip them
15505
# from the output so that they don't get included in the library
15507
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"'
15510
if test yes = "$GXX"; then
15511
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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15513
# FIXME: insert proper C++ library support
15521
if test no = "$with_gnu_ld"; then
15522
hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15523
hardcode_libdir_separator_CXX=:
15529
export_dynamic_flag_spec_CXX='$wl-E'
15535
hardcode_direct_CXX=no
15536
hardcode_shlibpath_var_CXX=no
15539
hardcode_direct_CXX=yes
15540
hardcode_direct_absolute_CXX=yes
15541
hardcode_minus_L_CXX=yes # Not in the search PATH,
15542
# but as the default
15543
# location of the library.
15547
case $cc_basename in
15549
# FIXME: insert proper C++ library support
15555
archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15558
archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15561
archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15564
# Commands to make compiler produce verbose output that lists
15565
# what "hidden" libraries, object files and flags are used when
15566
# linking a shared library.
15568
# There doesn't appear to be a way to prevent this compiler from
15569
# explicitly linking system object files so we need to strip them
15570
# from the output so that they don't get included in the library
15572
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"'
15575
if test yes = "$GXX"; then
15576
if test no = "$with_gnu_ld"; then
15579
archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15582
archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15585
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'
15590
# FIXME: insert proper C++ library support
15598
hardcode_direct_CXX=no
15599
hardcode_shlibpath_var_CXX=no
15600
hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15601
export_dynamic_flag_spec_CXX='$wl-E'
15602
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15603
# Instead, shared libraries are loaded at an image base (0x10000000 by
15604
# default) and relocated if they conflict, which is a slow very memory
15605
# consuming and fragmenting process. To avoid this, we pick a random,
15606
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15607
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15608
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'
15609
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'
15612
case $cc_basename in
15615
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'
15617
# Archives containing C++ object files must be created using
15618
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
15619
# necessary to make sure instantiated templates are included
15621
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15624
if test yes = "$GXX"; then
15625
if test no = "$with_gnu_ld"; then
15626
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'
15628
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'
15631
link_all_deplibs_CXX=yes
15634
hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15635
hardcode_libdir_separator_CXX=:
15636
inherit_rpath_CXX=yes
15639
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15640
case $cc_basename in
15642
# Kuck and Associates, Inc. (KAI) C++ Compiler
15644
# KCC will only create a shared library if the output file
15645
# ends with ".so" (or ".sl" for HP-UX), so rename the library
15646
# to its proper name (with version) after linking.
15647
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'
15648
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'
15649
# Commands to make compiler produce verbose output that lists
15650
# what "hidden" libraries, object files and flags are used when
15651
# linking a shared library.
15653
# There doesn't appear to be a way to prevent this compiler from
15654
# explicitly linking system object files so we need to strip them
15655
# from the output so that they don't get included in the library
15657
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"'
15659
hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15660
export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15662
# Archives containing C++ object files must be created using
15663
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
15664
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15669
# version 8.0 and above of icpc choke on multiply defined symbols
15670
# if we add $predep_objects and $postdep_objects, however 7.1 and
15671
# earlier do not add the objects themselves.
15672
case `$CC -V 2>&1` in
15674
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15675
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'
15677
*) # Version 8.0 or newer
15680
ia64*) tmp_idyn=' -i_dynamic';;
15682
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15683
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'
15686
archive_cmds_need_lc_CXX=no
15687
hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15688
export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15689
whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15692
# Portland Group C++ compiler
15694
*pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15695
prelink_cmds_CXX='tpldir=Template.dir~
15697
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15698
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15699
old_archive_cmds_CXX='tpldir=Template.dir~
15701
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15702
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15704
archive_cmds_CXX='tpldir=Template.dir~
15706
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15707
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15708
archive_expsym_cmds_CXX='tpldir=Template.dir~
15710
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15711
$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'
15713
*) # Version 6 and above use weak symbols
15714
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15715
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'
15719
hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15720
export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15721
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'
15725
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15726
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'
15728
runpath_var=LD_RUN_PATH
15729
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15730
hardcode_libdir_separator_CXX=:
15732
# Commands to make compiler produce verbose output that lists
15733
# what "hidden" libraries, object files and flags are used when
15734
# linking a shared library.
15736
# There doesn't appear to be a way to prevent this compiler from
15737
# explicitly linking system object files so we need to strip them
15738
# from the output so that they don't get included in the library
15740
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'
15742
xl* | mpixl* | bgxl*)
15743
# IBM XL 8.0 on PPC, with GNU ld
15744
hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15745
export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15746
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15747
if test yes = "$supports_anon_versioning"; then
15748
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15749
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15750
echo "local: *; };" >> $output_objdir/$libname.ver~
15751
$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15755
case `$CC -V 2>&1` in
15758
no_undefined_flag_CXX=' -zdefs'
15759
archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15760
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'
15761
hardcode_libdir_flag_spec_CXX='-R$libdir'
15762
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'
15763
compiler_needs_object_CXX=yes
15765
# Not sure whether something based on
15766
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15768
output_verbose_link_cmd='func_echo_all'
15770
# Archives containing C++ object files must be created using
15771
# "CC -xar", where "CC" is the Sun C++ compiler. This is
15772
# necessary to make sure instantiated templates are included
15774
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15776
*Cray\ C*) # Cray C++ compiler
15777
# If STRIP is set while creating a shared library with
15778
# the Cray compiler, the library has its symbols
15779
# removed. So we unset and restore it.
15780
archive_cmds_CXX='save_STRIP=$STRIP; unset STRIP; $CC -shared $wl-soname $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags; ret=\$?; STRIP=\$save_STRIP; export STRIP; (exit \$ret)'
15781
archive_expsym_cmds_CXX=''
15782
hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15783
whole_archive_flag_spec_CXX='-vv $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'
15784
compiler_needs_object_CXX=yes
15786
# Not sure whether something based on
15787
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15789
output_verbose_link_cmd='func_echo_all'
15792
# Portland Group C++ compiler
15794
*pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15795
prelink_cmds_CXX='tpldir=Template.dir~
15797
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15798
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15799
old_archive_cmds_CXX='tpldir=Template.dir~
15801
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15802
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15804
archive_cmds_CXX='tpldir=Template.dir~
15806
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15807
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15808
archive_expsym_cmds_CXX='tpldir=Template.dir~
15810
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15811
$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'
15813
*) # Version 6 and above use weak symbols
15814
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15815
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'
15819
hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15820
export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15821
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'
15829
# FIXME: insert proper C++ library support
15834
# FIXME: insert proper C++ library support
15839
case $cc_basename in
15841
# FIXME: insert proper C++ library support
15845
# FIXME: insert proper C++ library support
15852
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15853
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15855
hardcode_libdir_flag_spec_CXX='-R$libdir'
15856
hardcode_direct_CXX=yes
15857
hardcode_shlibpath_var_CXX=no
15859
# Workaround some broken pre-1.5 toolchains
15860
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15867
openbsd* | bitrig*)
15868
if test -f /usr/libexec/ld.so; then
15869
hardcode_direct_CXX=yes
15870
hardcode_shlibpath_var_CXX=no
15871
hardcode_direct_absolute_CXX=yes
15872
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15873
hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15874
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15875
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15876
export_dynamic_flag_spec_CXX='$wl-E'
15877
whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15879
output_verbose_link_cmd=func_echo_all
15885
osf3* | osf4* | osf5*)
15886
case $cc_basename in
15888
# Kuck and Associates, Inc. (KAI) C++ Compiler
15890
# KCC will only create a shared library if the output file
15891
# ends with ".so" (or ".sl" for HP-UX), so rename the library
15892
# to its proper name (with version) after linking.
15893
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'
15895
hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15896
hardcode_libdir_separator_CXX=:
15898
# Archives containing C++ object files must be created using
15899
# the KAI C++ compiler.
15901
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15902
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15906
# Rational C++ 2.4.1
15907
# FIXME: insert proper C++ library support
15913
allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15914
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'
15915
hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15918
allow_undefined_flag_CXX=' -expect_unresolved \*'
15919
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'
15920
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15921
echo "-hidden">> $lib.exp~
15922
$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~
15924
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15928
hardcode_libdir_separator_CXX=:
15930
# Commands to make compiler produce verbose output that lists
15931
# what "hidden" libraries, object files and flags are used when
15932
# linking a shared library.
15934
# There doesn't appear to be a way to prevent this compiler from
15935
# explicitly linking system object files so we need to strip them
15936
# from the output so that they don't get included in the library
15938
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"'
15941
if test yes,no = "$GXX,$with_gnu_ld"; then
15942
allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15945
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'
15948
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'
15952
hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15953
hardcode_libdir_separator_CXX=:
15955
# Commands to make compiler produce verbose output that lists
15956
# what "hidden" libraries, object files and flags are used when
15957
# linking a shared library.
15958
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15961
# FIXME: insert proper C++ library support
15969
# FIXME: insert proper C++ library support
15974
case $cc_basename in
15977
# FIXME: insert proper C++ library support
15982
# FIXME: insert proper C++ library support
15986
# FIXME: insert proper C++ library support
15993
case $cc_basename in
15995
# Sun C++ 4.2, 5.x and Centerline C++
15996
archive_cmds_need_lc_CXX=yes
15997
no_undefined_flag_CXX=' -zdefs'
15998
archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15999
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16000
$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'
16002
hardcode_libdir_flag_spec_CXX='-R$libdir'
16003
hardcode_shlibpath_var_CXX=no
16005
solaris2.[0-5] | solaris2.[0-5].*) ;;
16007
# The compiler driver will combine and reorder linker options,
16008
# but understands '-z linker_flag'.
16009
# Supported since Solaris 2.6 (maybe 2.5.1?)
16010
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16013
link_all_deplibs_CXX=yes
16015
output_verbose_link_cmd='func_echo_all'
16017
# Archives containing C++ object files must be created using
16018
# "CC -xar", where "CC" is the Sun C++ compiler. This is
16019
# necessary to make sure instantiated templates are included
16021
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16024
# Green Hills C++ Compiler
16025
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16027
# The C++ compiler must be used to create the archive.
16028
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16031
# GNU C++ compiler with Solaris linker
16032
if test yes,no = "$GXX,$with_gnu_ld"; then
16033
no_undefined_flag_CXX=' $wl-z ${wl}defs'
16034
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16035
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16036
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16037
$CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16039
# Commands to make compiler produce verbose output that lists
16040
# what "hidden" libraries, object files and flags are used when
16041
# linking a shared library.
16042
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16044
# g++ 2.7 appears to require '-G' NOT '-shared' on this
16046
archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16047
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16048
$CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16050
# Commands to make compiler produce verbose output that lists
16051
# what "hidden" libraries, object files and flags are used when
16052
# linking a shared library.
16053
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16056
hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16058
solaris2.[0-5] | solaris2.[0-5].*) ;;
16060
whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16068
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16069
no_undefined_flag_CXX='$wl-z,text'
16070
archive_cmds_need_lc_CXX=no
16071
hardcode_shlibpath_var_CXX=no
16072
runpath_var='LD_RUN_PATH'
16074
case $cc_basename in
16076
archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16077
archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16080
archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16081
archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16086
sysv5* | sco3.2v5* | sco5v6*)
16087
# Note: We CANNOT use -z defs as we might desire, because we do not
16088
# link with -lc, and that would cause any symbols used from libc to
16089
# always be unresolved, which means just about no library would
16090
# ever link correctly. If we're not using GNU ld we use -z text
16091
# though, which does catch some bad symbols but isn't as heavy-handed
16093
no_undefined_flag_CXX='$wl-z,text'
16094
allow_undefined_flag_CXX='$wl-z,nodefs'
16095
archive_cmds_need_lc_CXX=no
16096
hardcode_shlibpath_var_CXX=no
16097
hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16098
hardcode_libdir_separator_CXX=':'
16099
link_all_deplibs_CXX=yes
16100
export_dynamic_flag_spec_CXX='$wl-Bexport'
16101
runpath_var='LD_RUN_PATH'
16103
case $cc_basename in
16105
archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16106
archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16107
old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16108
'"$old_archive_cmds_CXX"
16109
reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16110
'"$reload_cmds_CXX"
16113
archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16114
archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16120
case $cc_basename in
16122
# NonStop-UX NCC 3.20
16123
# FIXME: insert proper C++ library support
16127
# FIXME: insert proper C++ library support
16134
# FIXME: insert proper C++ library support
16139
# FIXME: insert proper C++ library support
16144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16145
$as_echo "$ld_shlibs_CXX" >&6; }
16146
test no = "$ld_shlibs_CXX" && can_build_shared=no
16152
## There is no encapsulation within the following macros, do not change
16153
## the running order or otherwise move them around unless you know exactly
16154
## what you are doing...
16155
# Dependencies to place before and after the object being linked:
16156
predep_objects_CXX=
16157
postdep_objects_CXX=
16160
compiler_lib_search_path_CXX=
16162
cat > conftest.$ac_ext <<_LT_EOF
16166
Foo (void) { a = 0; }
16173
_lt_libdeps_save_CFLAGS=$CFLAGS
16174
case "$CC $CFLAGS " in #(
16175
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16176
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16177
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16180
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16181
(eval $ac_compile) 2>&5
16183
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16184
test $ac_status = 0; }; then
16185
# Parse the compiler output and extract the necessary
16186
# objects, libraries and library flags.
16188
# Sentinel used to keep track of whether or not we are before
16189
# the conftest object file.
16190
pre_test_object_deps_done=no
16192
for p in `eval "$output_verbose_link_cmd"`; do
16196
# Some compilers place space between "-{L,R}" and the path.
16197
# Remove the space.
16198
if test x-L = "$p" ||
16199
test x-R = "$p"; then
16204
# Expand the sysroot to ease extracting the directories later.
16205
if test -z "$prev"; then
16207
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16208
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16209
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16213
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16215
if test no = "$pre_test_object_deps_done"; then
16218
# Internal compiler library paths should come after those
16219
# provided the user. The postdeps already come after the
16220
# user supplied libs so there is no need to process them.
16221
if test -z "$compiler_lib_search_path_CXX"; then
16222
compiler_lib_search_path_CXX=$prev$p
16224
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16227
# The "-l" case would never come before the object being
16228
# linked, so don't bother handling this case.
16231
if test -z "$postdeps_CXX"; then
16232
postdeps_CXX=$prev$p
16234
postdeps_CXX="${postdeps_CXX} $prev$p"
16241
# Ignore all other options starting with a dash
16242
# (e.g., "-mIPOPT_obj_output_file_name=<tmp_obj>" used by Intel compiler)
16245
*.lto.$objext) ;; # Ignore GCC LTO objects
16247
# This assumes that the test object file only shows up
16248
# once in the compiler output.
16249
if test "$p" = "conftest.$objext"; then
16250
pre_test_object_deps_done=yes
16254
if test no = "$pre_test_object_deps_done"; then
16255
if test -z "$predep_objects_CXX"; then
16256
predep_objects_CXX=$p
16258
predep_objects_CXX="$predep_objects_CXX $p"
16261
if test -z "$postdep_objects_CXX"; then
16262
postdep_objects_CXX=$p
16264
postdep_objects_CXX="$postdep_objects_CXX $p"
16269
*) ;; # Ignore the rest.
16277
echo "libtool.m4: error: problem compiling CXX test program"
16280
$RM -f confest.$objext
16281
CFLAGS=$_lt_libdeps_save_CFLAGS
16283
# PORTME: override above test on systems where it is broken
16286
# Interix 3.5 installs completely hosed .la files for C++, so rather than
16287
# hack all around it, let's just trust "g++" to DTRT.
16288
predep_objects_CXX=
16289
postdep_objects_CXX=
16295
case " $postdeps_CXX " in
16296
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16298
compiler_lib_search_dirs_CXX=
16299
if test -n "${compiler_lib_search_path_CXX}"; then
16300
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16333
lt_prog_compiler_wl_CXX=
16334
lt_prog_compiler_pic_CXX=
16335
lt_prog_compiler_static_CXX=
16338
# C++ specific cases for pic, static, wl, etc.
16339
if test yes = "$GXX"; then
16340
lt_prog_compiler_wl_CXX='-Wl,'
16341
lt_prog_compiler_static_CXX='-static'
16345
# All AIX code is PIC.
16346
if test ia64 = "$host_cpu"; then
16347
# AIX 5 now supports IA64 processor
16348
lt_prog_compiler_static_CXX='-Bstatic'
16350
lt_prog_compiler_pic_CXX='-fPIC'
16356
# see comment about AmigaOS4 .so support
16357
lt_prog_compiler_pic_CXX='-fPIC'
16360
# FIXME: we need at least 68020 code to build shared libraries, but
16361
# adding the '-m68020' flag to GCC prevents building anything better,
16363
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16368
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16369
# PIC is the default for these OSes.
16371
mingw* | cygwin* | os2* | pw32* | cegcc*)
16372
# This hack is so that the source file can tell whether it is being
16373
# built for inclusion in a dll (and should export symbols for example).
16374
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16375
# (--disable-auto-import) libraries
16376
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16379
lt_prog_compiler_static_CXX='$wl-static'
16383
darwin* | rhapsody*)
16384
# PIC is the default on this platform
16385
# Common symbols not allowed in MH_DYLIB files
16386
lt_prog_compiler_pic_CXX='-fno-common'
16389
# DJGPP does not support shared libraries at all
16390
lt_prog_compiler_pic_CXX=
16393
# PIC is the default for Haiku.
16394
# The "-static" flag exists, but is broken.
16395
lt_prog_compiler_static_CXX=
16398
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16399
# Instead, we relocate shared libraries at runtime.
16402
if test -d /usr/nec; then
16403
lt_prog_compiler_pic_CXX=-Kconform_pic
16407
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16408
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16409
# sets the default TLS model and affects inlining.
16414
lt_prog_compiler_pic_CXX='-fPIC'
16419
# QNX uses GNU C++, but need to define -shared option too, otherwise
16420
# it will coredump.
16421
lt_prog_compiler_pic_CXX='-fPIC -shared'
16424
lt_prog_compiler_pic_CXX='-fPIC'
16430
# All AIX code is PIC.
16431
if test ia64 = "$host_cpu"; then
16432
# AIX 5 now supports IA64 processor
16433
lt_prog_compiler_static_CXX='-Bstatic'
16435
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16439
case $cc_basename in
16441
# Green Hills C++ Compiler
16442
# _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"
16446
mingw* | cygwin* | os2* | pw32* | cegcc*)
16447
# This hack is so that the source file can tell whether it is being
16448
# built for inclusion in a dll (and should export symbols for example).
16449
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16452
case $cc_basename in
16454
lt_prog_compiler_pic_CXX='-KPIC'
16457
# Green Hills C++ Compiler
16458
lt_prog_compiler_pic_CXX='-pic'
16464
freebsd* | dragonfly*)
16465
# FreeBSD uses GNU C++
16467
hpux9* | hpux10* | hpux11*)
16468
case $cc_basename in
16470
lt_prog_compiler_wl_CXX='-Wl,'
16471
lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16472
if test ia64 != "$host_cpu"; then
16473
lt_prog_compiler_pic_CXX='+Z'
16477
lt_prog_compiler_wl_CXX='-Wl,'
16478
lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16484
lt_prog_compiler_pic_CXX='+Z'
16493
# This is c89, which is MS Visual C++ (no shared libs)
16494
# Anyone wants to do a port?
16496
irix5* | irix6* | nonstopux*)
16497
case $cc_basename in
16499
lt_prog_compiler_wl_CXX='-Wl,'
16500
lt_prog_compiler_static_CXX='-non_shared'
16501
# CC pic flag -KPIC is the default.
16507
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16508
case $cc_basename in
16511
lt_prog_compiler_wl_CXX='--backend -Wl,'
16512
lt_prog_compiler_pic_CXX='-fPIC'
16515
# old Intel C++ for x86_64, which still supported -KPIC.
16516
lt_prog_compiler_wl_CXX='-Wl,'
16517
lt_prog_compiler_pic_CXX='-KPIC'
16518
lt_prog_compiler_static_CXX='-static'
16521
# Intel C++, used to be incompatible with GCC.
16522
# ICC 10 doesn't accept -KPIC any more.
16523
lt_prog_compiler_wl_CXX='-Wl,'
16524
lt_prog_compiler_pic_CXX='-fPIC'
16525
lt_prog_compiler_static_CXX='-static'
16528
# Portland Group C++ compiler
16529
lt_prog_compiler_wl_CXX='-Wl,'
16530
lt_prog_compiler_pic_CXX='-fpic'
16531
lt_prog_compiler_static_CXX='-Bstatic'
16535
# Make sure the PIC flag is empty. It appears that all Alpha
16536
# Linux and Compaq Tru64 Unix objects are PIC.
16537
lt_prog_compiler_pic_CXX=
16538
lt_prog_compiler_static_CXX='-non_shared'
16540
xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16541
# IBM XL 8.0, 9.0 on PPC and BlueGene
16542
lt_prog_compiler_wl_CXX='-Wl,'
16543
lt_prog_compiler_pic_CXX='-qpic'
16544
lt_prog_compiler_static_CXX='-qstaticlink'
16547
case `$CC -V 2>&1` in
16550
lt_prog_compiler_pic_CXX='-KPIC'
16551
lt_prog_compiler_static_CXX='-Bstatic'
16552
lt_prog_compiler_wl_CXX='-Qoption ld '
16555
# Cray C++ compiler
16556
lt_prog_compiler_pic_CXX='-hpic'
16557
lt_prog_compiler_static_CXX='-static'
16558
lt_prog_compiler_wl_CXX='-Wl,'
16561
# Portland Group/NVIDIA C++ compiler
16562
lt_prog_compiler_pic_CXX='-fpic'
16563
lt_prog_compiler_static_CXX='-Bstatic'
16564
lt_prog_compiler_wl_CXX='-Wl,'
16567
# Fujitsu C/C++ Compiler Driver
16568
lt_prog_compiler_pic_CXX='-Kpic'
16569
lt_prog_compiler_static_CXX='-Bstatic'
16570
lt_prog_compiler_wl_CXX='-Wl,'
16581
case $cc_basename in
16583
lt_prog_compiler_pic_CXX='-W c,exportall'
16592
# QNX uses GNU C++, but need to define -shared option too, otherwise
16593
# it will coredump.
16594
lt_prog_compiler_pic_CXX='-fPIC -shared'
16596
osf3* | osf4* | osf5*)
16597
case $cc_basename in
16599
lt_prog_compiler_wl_CXX='--backend -Wl,'
16602
# Rational C++ 2.4.1
16603
lt_prog_compiler_pic_CXX='-pic'
16606
# Digital/Compaq C++
16607
lt_prog_compiler_wl_CXX='-Wl,'
16608
# Make sure the PIC flag is empty. It appears that all Alpha
16609
# Linux and Compaq Tru64 Unix objects are PIC.
16610
lt_prog_compiler_pic_CXX=
16611
lt_prog_compiler_static_CXX='-non_shared'
16620
case $cc_basename in
16622
# Sun C++ 4.2, 5.x and Centerline C++
16623
lt_prog_compiler_pic_CXX='-KPIC'
16624
lt_prog_compiler_static_CXX='-Bstatic'
16625
lt_prog_compiler_wl_CXX='-Qoption ld '
16628
# Green Hills C++ Compiler
16629
lt_prog_compiler_pic_CXX='-PIC'
16636
case $cc_basename in
16639
lt_prog_compiler_pic_CXX='-pic'
16640
lt_prog_compiler_static_CXX='-Bstatic'
16644
lt_prog_compiler_pic_CXX='-pic'
16650
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16651
case $cc_basename in
16653
lt_prog_compiler_wl_CXX='-Wl,'
16654
lt_prog_compiler_pic_CXX='-KPIC'
16655
lt_prog_compiler_static_CXX='-Bstatic'
16660
case $cc_basename in
16662
# NonStop-UX NCC 3.20
16663
lt_prog_compiler_pic_CXX='-KPIC'
16672
lt_prog_compiler_can_build_shared_CXX=no
16678
# For platforms that do not support PIC, -DPIC is meaningless:
16680
lt_prog_compiler_pic_CXX=
16683
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16688
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16689
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16690
$as_echo_n "(cached) " >&6
16692
lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16695
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16696
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16699
# Check to make sure the PIC flag actually works.
16701
if test -n "$lt_prog_compiler_pic_CXX"; then
16702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16703
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16704
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16705
$as_echo_n "(cached) " >&6
16707
lt_cv_prog_compiler_pic_works_CXX=no
16708
ac_outfile=conftest.$ac_objext
16709
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16710
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16711
# Insert the option either (1) after the last *FLAGS variable, or
16712
# (2) before a word containing "conftest.", or (3) at the end.
16713
# Note that $ac_compile itself does not contain backslashes and begins
16714
# with a dollar sign (not a hyphen), so the echo should work correctly.
16715
# The option is referenced via a variable to avoid confusing sed.
16716
lt_compile=`echo "$ac_compile" | $SED \
16717
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16718
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16719
-e 's:$: $lt_compiler_flag:'`
16720
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16721
(eval "$lt_compile" 2>conftest.err)
16723
cat conftest.err >&5
16724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725
if (exit $ac_status) && test -s "$ac_outfile"; then
16726
# The compiler can only warn and ignore the option if not recognized
16727
# So say no if there are warnings other than the usual output.
16728
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16729
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16730
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16731
lt_cv_prog_compiler_pic_works_CXX=yes
16737
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16738
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16740
if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16741
case $lt_prog_compiler_pic_CXX in
16743
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16746
lt_prog_compiler_pic_CXX=
16747
lt_prog_compiler_can_build_shared_CXX=no
16757
# Check to make sure the static flag actually works.
16759
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16761
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16762
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16763
$as_echo_n "(cached) " >&6
16765
lt_cv_prog_compiler_static_works_CXX=no
16766
save_LDFLAGS=$LDFLAGS
16767
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16768
echo "$lt_simple_link_test_code" > conftest.$ac_ext
16769
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16770
# The linker can only warn and ignore the option if not recognized
16771
# So say no if there are warnings
16772
if test -s conftest.err; then
16773
# Append any errors to the config.log.
16774
cat conftest.err 1>&5
16775
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16776
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16777
if diff conftest.exp conftest.er2 >/dev/null; then
16778
lt_cv_prog_compiler_static_works_CXX=yes
16781
lt_cv_prog_compiler_static_works_CXX=yes
16785
LDFLAGS=$save_LDFLAGS
16788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16789
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16791
if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16794
lt_prog_compiler_static_CXX=
16800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16801
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16802
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16803
$as_echo_n "(cached) " >&6
16805
lt_cv_prog_compiler_c_o_CXX=no
16806
$RM -r conftest 2>/dev/null
16810
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16812
lt_compiler_flag="-o out/conftest2.$ac_objext"
16813
# Insert the option either (1) after the last *FLAGS variable, or
16814
# (2) before a word containing "conftest.", or (3) at the end.
16815
# Note that $ac_compile itself does not contain backslashes and begins
16816
# with a dollar sign (not a hyphen), so the echo should work correctly.
16817
lt_compile=`echo "$ac_compile" | $SED \
16818
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16819
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16820
-e 's:$: $lt_compiler_flag:'`
16821
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16822
(eval "$lt_compile" 2>out/conftest.err)
16824
cat out/conftest.err >&5
16825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16828
# The compiler can only warn and ignore the option if not recognized
16829
# So say no if there are warnings
16830
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16831
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16832
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16833
lt_cv_prog_compiler_c_o_CXX=yes
16838
# SGI C++ compiler will create directory out/ii_files/ for
16839
# template instantiation
16840
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16841
$RM out/* && rmdir out
16847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16848
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16853
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16854
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16855
$as_echo_n "(cached) " >&6
16857
lt_cv_prog_compiler_c_o_CXX=no
16858
$RM -r conftest 2>/dev/null
16862
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16864
lt_compiler_flag="-o out/conftest2.$ac_objext"
16865
# Insert the option either (1) after the last *FLAGS variable, or
16866
# (2) before a word containing "conftest.", or (3) at the end.
16867
# Note that $ac_compile itself does not contain backslashes and begins
16868
# with a dollar sign (not a hyphen), so the echo should work correctly.
16869
lt_compile=`echo "$ac_compile" | $SED \
16870
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16871
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16872
-e 's:$: $lt_compiler_flag:'`
16873
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16874
(eval "$lt_compile" 2>out/conftest.err)
16876
cat out/conftest.err >&5
16877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16880
# The compiler can only warn and ignore the option if not recognized
16881
# So say no if there are warnings
16882
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16883
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16884
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16885
lt_cv_prog_compiler_c_o_CXX=yes
16890
# SGI C++ compiler will create directory out/ii_files/ for
16891
# template instantiation
16892
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16893
$RM out/* && rmdir out
16899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16900
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16905
hard_links=nottested
16906
if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16907
# do not overwrite the value of need_locks provided by the user
16908
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16909
$as_echo_n "checking if we can lock with hard links... " >&6; }
16912
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16914
ln conftest.a conftest.b 2>&5 || hard_links=no
16915
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16916
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16917
$as_echo "$hard_links" >&6; }
16918
if test no = "$hard_links"; then
16919
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16920
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16929
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16930
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16932
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16933
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16936
# If we're using GNU nm, then we don't want the "-C" option.
16937
# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16938
# Without the "-l" option, or with the "-B" option, AIX nm treats
16939
# weak defined symbols like other global defined symbols, whereas
16940
# GNU nm marks them as "W".
16941
# While the 'weak' keyword is ignored in the Export File, we need
16942
# it in the Import File for the 'aix-soname' feature, so we have
16943
# to replace the "-B" option with "-P" for AIX nm.
16944
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16945
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16947
export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16951
export_symbols_cmds_CXX=$ltdll_cmds
16953
cygwin* | mingw* | cegcc*)
16954
case $cc_basename in
16956
exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16959
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'
16960
exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16965
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16970
$as_echo "$ld_shlibs_CXX" >&6; }
16971
test no = "$ld_shlibs_CXX" && can_build_shared=no
16973
with_gnu_ld_CXX=$with_gnu_ld
16981
# Do we need to explicitly link libc?
16983
case "x$archive_cmds_need_lc_CXX" in
16985
# Assume -lc should be added
16986
archive_cmds_need_lc_CXX=yes
16988
if test yes,yes = "$GCC,$enable_shared"; then
16989
case $archive_cmds_CXX in
16991
# FIXME: we may have to deal with multi-command sequences.
16994
# Test whether the compiler implicitly links with -lc since on some
16995
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16996
# to ld, don't add -lc before -lgcc.
16997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16998
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16999
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17000
$as_echo_n "(cached) " >&6
17003
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17005
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17006
(eval $ac_compile) 2>&5
17008
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17009
test $ac_status = 0; } 2>conftest.err; then
17012
libobjs=conftest.$ac_objext
17014
wl=$lt_prog_compiler_wl_CXX
17015
pic_flag=$lt_prog_compiler_pic_CXX
17021
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17022
allow_undefined_flag_CXX=
17023
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17024
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17026
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17027
test $ac_status = 0; }
17029
lt_cv_archive_cmds_need_lc_CXX=no
17031
lt_cv_archive_cmds_need_lc_CXX=yes
17033
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17035
cat conftest.err 1>&5
17040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17041
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17042
archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17110
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17111
$as_echo_n "checking dynamic linker characteristics... " >&6; }
17113
library_names_spec=
17114
libname_spec='lib$name'
17118
postuninstall_cmds=
17122
shlibpath_overrides_runpath=unknown
17124
dynamic_linker="$host_os ld.so"
17125
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17126
need_lib_prefix=unknown
17127
hardcode_into_libs=no
17129
# when you set need_version to no, make sure it does not cause -set_version
17130
# flags to be left without arguments
17131
need_version=unknown
17137
version_type=linux # correct to gnu/linux during the next big refactor
17138
library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17139
shlibpath_var=LIBPATH
17141
# AIX 3 has no versioning support, so we append a major version to the name.
17142
soname_spec='$libname$release$shared_ext$major'
17146
version_type=linux # correct to gnu/linux during the next big refactor
17149
hardcode_into_libs=yes
17150
if test ia64 = "$host_cpu"; then
17151
# AIX 5 supports IA64
17152
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17153
shlibpath_var=LD_LIBRARY_PATH
17155
# With GCC up to 2.95.x, collect2 would create an import file
17156
# for dependence libraries. The import file would start with
17157
# the line '#! .'. This would cause the generated library to
17158
# depend on '.', always an invalid library. This was fixed in
17159
# development snapshots of GCC prior to 3.0.
17161
aix4 | aix4.[01] | aix4.[01].*)
17162
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17164
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17167
can_build_shared=no
17171
# Using Import Files as archive members, it is possible to support
17172
# filename-based versioning of shared library archives on AIX. While
17173
# this would work for both with and without runtime linking, it will
17174
# prevent static linking of such archives. So we do filename-based
17175
# shared library versioning with .so extension only, which is used
17176
# when both runtime linking and shared linking is enabled.
17177
# Unfortunately, runtime linking may impact performance, so we do
17178
# not want this to be the default eventually. Also, we use the
17179
# versioned .so libs for executables only if there is the -brtl
17180
# linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17181
# To allow for filename-based versioning support, we need to create
17182
# libNAME.so.V as an archive file, containing:
17183
# *) an Import File, referring to the versioned filename of the
17184
# archive as well as the shared archive member, telling the
17185
# bitwidth (32 or 64) of that shared object, and providing the
17186
# list of exported symbols of that shared object, eventually
17187
# decorated with the 'weak' keyword
17188
# *) the shared object with the F_LOADONLY flag set, to really avoid
17189
# it being seen by the linker.
17190
# At run time we better use the real file rather than another symlink,
17191
# but for link time we create the symlink libNAME.so -> libNAME.so.V
17193
case $with_aix_soname,$aix_use_runtimelinking in
17194
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17195
# soname into executable. Probably we can add versioning support to
17196
# collect2, so additional links can be useful in future.
17197
aix,yes) # traditional libtool
17198
dynamic_linker='AIX unversionable lib.so'
17199
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17200
# instead of lib<name>.a to let people know that these are not
17201
# typical AIX shared libraries.
17202
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17204
aix,no) # traditional AIX only
17205
dynamic_linker='AIX lib.a(lib.so.V)'
17206
# We preserve .a as extension for shared libraries through AIX4.2
17207
# and later when we are not doing run time linking.
17208
library_names_spec='$libname$release.a $libname.a'
17209
soname_spec='$libname$release$shared_ext$major'
17211
svr4,*) # full svr4 only
17212
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17213
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17214
# We do not specify a path in Import Files, so LIBPATH fires.
17215
shlibpath_overrides_runpath=yes
17217
*,yes) # both, prefer svr4
17218
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17219
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17220
# unpreferred sharedlib libNAME.a needs extra handling
17221
postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17222
postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17223
# We do not specify a path in Import Files, so LIBPATH fires.
17224
shlibpath_overrides_runpath=yes
17226
*,no) # both, prefer aix
17227
dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17228
library_names_spec='$libname$release.a $libname.a'
17229
soname_spec='$libname$release$shared_ext$major'
17230
# unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17231
postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17232
postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17235
shlibpath_var=LIBPATH
17242
# Since July 2007 AmigaOS4 officially supports .so libraries.
17243
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17244
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17247
library_names_spec='$libname.ixlibrary $libname.a'
17248
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17249
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
17255
library_names_spec='$libname$shared_ext'
17256
dynamic_linker="$host_os ld.so"
17257
shlibpath_var=LIBRARY_PATH
17261
version_type=linux # correct to gnu/linux during the next big refactor
17263
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17264
soname_spec='$libname$release$shared_ext$major'
17265
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17266
shlibpath_var=LD_LIBRARY_PATH
17267
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17268
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17269
# the default ld.so.conf also contains /usr/contrib/lib and
17270
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17271
# libtool to hard-code these into programs
17274
cygwin* | mingw* | pw32* | cegcc*)
17275
version_type=windows
17280
case $GCC,$cc_basename in
17283
library_names_spec='$libname.dll.a'
17284
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17285
postinstall_cmds='base_file=`basename \$file`~
17286
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17287
dldir=$destdir/`dirname \$dlpath`~
17288
test -d \$dldir || mkdir -p \$dldir~
17289
$install_prog $dir/$dlname \$dldir/$dlname~
17290
chmod a+x \$dldir/$dlname~
17291
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17292
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17294
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17295
dlpath=$dir/\$dldll~
17297
shlibpath_overrides_runpath=yes
17301
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17302
soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17306
# MinGW DLLs use traditional 'lib' prefix
17307
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17310
# pw32 DLLs use 'pw' prefix rather than 'lib'
17311
library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17314
dynamic_linker='Win32 ld.exe'
17319
libname_spec='$name'
17320
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17321
library_names_spec='$libname.dll.lib'
17325
sys_lib_search_path_spec=
17328
for lt_path in $LIB
17331
# Let DOS variable expansion print the short 8.3 style file name.
17332
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17333
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17336
# Convert to MSYS style.
17337
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17340
# Convert to unix form, then to dos form, then back to unix form
17341
# but this time dos style (no spaces!) so that the unix form looks
17342
# like /cygdrive/c/PROGRA~1:/cygdr...
17343
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17344
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17345
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17348
sys_lib_search_path_spec=$LIB
17349
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17350
# It is most probably a Windows format PATH.
17351
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17353
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17355
# FIXME: find the short name or the path components, as spaces are
17356
# common. (e.g. "Program Files" -> "PROGRA~1")
17360
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17361
postinstall_cmds='base_file=`basename \$file`~
17362
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17363
dldir=$destdir/`dirname \$dlpath`~
17364
test -d \$dldir || mkdir -p \$dldir~
17365
$install_prog $dir/$dlname \$dldir/$dlname'
17366
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17367
dlpath=$dir/\$dldll~
17369
shlibpath_overrides_runpath=yes
17370
dynamic_linker='Win32 link.exe'
17374
# Assume MSVC wrapper
17375
library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17376
dynamic_linker='Win32 ld.exe'
17379
# FIXME: first we should search . and the directory the executable is in
17383
darwin* | rhapsody*)
17384
dynamic_linker="$host_os dyld"
17385
version_type=darwin
17388
library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17389
soname_spec='$libname$release$major$shared_ext'
17390
shlibpath_overrides_runpath=yes
17391
shlibpath_var=DYLD_LIBRARY_PATH
17392
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17394
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17398
version_type=linux # correct to gnu/linux during the next big refactor
17401
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17402
soname_spec='$libname$release$shared_ext$major'
17403
shlibpath_var=LD_LIBRARY_PATH
17406
freebsd* | dragonfly*)
17407
# DragonFly does not have aout. When/if they implement a new
17408
# versioning mechanism, adjust this.
17409
if test -x /usr/bin/objformat; then
17410
objformat=`/usr/bin/objformat`
17413
freebsd[23].*) objformat=aout ;;
17414
*) objformat=elf ;;
17417
version_type=freebsd-$objformat
17418
case $version_type in
17420
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17421
soname_spec='$libname$release$shared_ext$major'
17426
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17430
shlibpath_var=LD_LIBRARY_PATH
17433
shlibpath_overrides_runpath=yes
17435
freebsd3.[01]* | freebsdelf3.[01]*)
17436
shlibpath_overrides_runpath=yes
17437
hardcode_into_libs=yes
17439
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17440
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17441
shlibpath_overrides_runpath=no
17442
hardcode_into_libs=yes
17444
*) # from 4.6 on, and DragonFly
17445
shlibpath_overrides_runpath=yes
17446
hardcode_into_libs=yes
17452
version_type=linux # correct to gnu/linux during the next big refactor
17455
dynamic_linker="$host_os runtime_loader"
17456
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17457
soname_spec='$libname$release$shared_ext$major'
17458
shlibpath_var=LIBRARY_PATH
17459
shlibpath_overrides_runpath=no
17460
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17461
hardcode_into_libs=yes
17464
hpux9* | hpux10* | hpux11*)
17465
# Give a soname corresponding to the major version so that dld.sl refuses to
17466
# link against other versions.
17473
hardcode_into_libs=yes
17474
dynamic_linker="$host_os dld.so"
17475
shlibpath_var=LD_LIBRARY_PATH
17476
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17477
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17478
soname_spec='$libname$release$shared_ext$major'
17479
if test 32 = "$HPUX_IA64_MODE"; then
17480
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17481
sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17483
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17484
sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17489
hardcode_into_libs=yes
17490
dynamic_linker="$host_os dld.sl"
17491
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17492
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17493
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17494
soname_spec='$libname$release$shared_ext$major'
17495
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17496
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17500
dynamic_linker="$host_os dld.sl"
17501
shlibpath_var=SHLIB_PATH
17502
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17503
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17504
soname_spec='$libname$release$shared_ext$major'
17507
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17508
postinstall_cmds='chmod 555 $lib'
17509
# or fails outright, so override atomically:
17510
install_override_mode=555
17514
version_type=linux # correct to gnu/linux during the next big refactor
17517
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17518
soname_spec='$libname$release$shared_ext$major'
17519
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17520
shlibpath_var=LD_LIBRARY_PATH
17521
shlibpath_overrides_runpath=no
17522
hardcode_into_libs=yes
17525
irix5* | irix6* | nonstopux*)
17527
nonstopux*) version_type=nonstopux ;;
17529
if test yes = "$lt_cv_prog_gnu_ld"; then
17530
version_type=linux # correct to gnu/linux during the next big refactor
17537
soname_spec='$libname$release$shared_ext$major'
17538
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17540
irix5* | nonstopux*)
17541
libsuff= shlibsuff=
17544
case $LD in # libtool.m4 will add one of these switches to LD
17545
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17546
libsuff= shlibsuff= libmagic=32-bit;;
17547
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17548
libsuff=32 shlibsuff=N32 libmagic=N32;;
17549
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17550
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17551
*) libsuff= shlibsuff= libmagic=never-match;;
17555
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17556
shlibpath_overrides_runpath=no
17557
sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17558
sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17559
hardcode_into_libs=yes
17562
# No shared lib support for Linux oldld, aout, or coff.
17563
linux*oldld* | linux*aout* | linux*coff*)
17568
version_type=none # Android doesn't support versioned libraries.
17571
library_names_spec='$libname$release$shared_ext'
17572
soname_spec='$libname$release$shared_ext'
17574
shlibpath_var=LD_LIBRARY_PATH
17575
shlibpath_overrides_runpath=yes
17577
# This implies no fast_install, which is unacceptable.
17578
# Some rework will be needed to allow for fast_install
17579
# before this can be enabled.
17580
hardcode_into_libs=yes
17582
dynamic_linker='Android linker'
17583
# Don't embed -rpath directories since the linker doesn't support them.
17584
hardcode_libdir_flag_spec_CXX='-L$libdir'
17587
# This must be glibc/ELF.
17588
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17589
version_type=linux # correct to gnu/linux during the next big refactor
17592
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17593
soname_spec='$libname$release$shared_ext$major'
17594
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17595
shlibpath_var=LD_LIBRARY_PATH
17596
shlibpath_overrides_runpath=no
17598
# Some binutils ld are patched to set DT_RUNPATH
17599
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17600
$as_echo_n "(cached) " >&6
17602
lt_cv_shlibpath_overrides_runpath=no
17603
save_LDFLAGS=$LDFLAGS
17604
save_libdir=$libdir
17605
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17606
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17607
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17608
/* end confdefs.h. */
17618
if ac_fn_cxx_try_link "$LINENO"; then :
17619
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17620
lt_cv_shlibpath_overrides_runpath=yes
17623
rm -f core conftest.err conftest.$ac_objext \
17624
conftest$ac_exeext conftest.$ac_ext
17625
LDFLAGS=$save_LDFLAGS
17626
libdir=$save_libdir
17630
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17632
# This implies no fast_install, which is unacceptable.
17633
# Some rework will be needed to allow for fast_install
17634
# before this can be enabled.
17635
hardcode_into_libs=yes
17637
# Ideally, we could use ldconfig to report *all* directores which are
17638
# searched for libraries, however this is still not possible. Aside from not
17639
# being certain /sbin/ldconfig is available, command
17640
# 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17641
# even though it is searched at run-time. Try to do the best guess by
17642
# appending ld.so.conf contents (and includes) to the search path.
17643
if test -f /etc/ld.so.conf; then
17644
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' ' '`
17645
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17648
# We used to test for /lib/ld.so.1 and disable shared libraries on
17649
# powerpc, because MkLinux only supported shared libraries with the
17650
# GNU dynamic linker. Since this was broken with cross compilers,
17651
# most powerpc-linux boxes support dynamic linking these days and
17652
# people can always --disable-shared, the test was removed, and we
17653
# assume the GNU/Linux dynamic linker is in use.
17654
dynamic_linker='GNU/Linux ld.so'
17661
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17662
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17663
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17664
dynamic_linker='NetBSD (a.out) ld.so'
17666
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17667
soname_spec='$libname$release$shared_ext$major'
17668
dynamic_linker='NetBSD ld.elf_so'
17670
shlibpath_var=LD_LIBRARY_PATH
17671
shlibpath_overrides_runpath=yes
17672
hardcode_into_libs=yes
17676
version_type=linux # correct to gnu/linux during the next big refactor
17677
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17678
shlibpath_var=LD_LIBRARY_PATH
17679
shlibpath_overrides_runpath=yes
17686
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17687
soname_spec='$libname$release$shared_ext$major'
17688
shlibpath_var=LD_LIBRARY_PATH
17689
shlibpath_overrides_runpath=no
17690
hardcode_into_libs=yes
17691
dynamic_linker='ldqnx.so'
17694
openbsd* | bitrig*)
17696
sys_lib_dlsearch_path_spec=/usr/lib
17698
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17703
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17704
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17705
shlibpath_var=LD_LIBRARY_PATH
17706
shlibpath_overrides_runpath=yes
17710
libname_spec='$name'
17711
version_type=windows
17715
# OS/2 can only load a DLL with a base name of 8 characters or less.
17716
soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17717
v=$($ECHO $release$versuffix | tr -d .-);
17718
n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17719
$ECHO $n$v`$shared_ext'
17720
library_names_spec='${libname}_dll.$libext'
17721
dynamic_linker='OS/2 ld.exe'
17722
shlibpath_var=BEGINLIBPATH
17723
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17724
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17725
postinstall_cmds='base_file=`basename \$file`~
17726
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17727
dldir=$destdir/`dirname \$dlpath`~
17728
test -d \$dldir || mkdir -p \$dldir~
17729
$install_prog $dir/$dlname \$dldir/$dlname~
17730
chmod a+x \$dldir/$dlname~
17731
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17732
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17734
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17735
dlpath=$dir/\$dldll~
17739
osf3* | osf4* | osf5*)
17743
soname_spec='$libname$release$shared_ext$major'
17744
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17745
shlibpath_var=LD_LIBRARY_PATH
17746
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17747
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17755
version_type=linux # correct to gnu/linux during the next big refactor
17758
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17759
soname_spec='$libname$release$shared_ext$major'
17760
shlibpath_var=LD_LIBRARY_PATH
17761
shlibpath_overrides_runpath=yes
17762
hardcode_into_libs=yes
17763
# ldd complains unless libraries are executable
17764
postinstall_cmds='chmod +x $lib'
17769
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17770
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17771
shlibpath_var=LD_LIBRARY_PATH
17772
shlibpath_overrides_runpath=yes
17773
if test yes = "$with_gnu_ld"; then
17780
version_type=linux # correct to gnu/linux during the next big refactor
17781
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17782
soname_spec='$libname$release$shared_ext$major'
17783
shlibpath_var=LD_LIBRARY_PATH
17784
case $host_vendor in
17786
shlibpath_overrides_runpath=no
17788
runpath_var=LD_RUN_PATH
17796
shlibpath_overrides_runpath=no
17797
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17803
if test -d /usr/nec; then
17804
version_type=linux # correct to gnu/linux during the next big refactor
17805
library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17806
soname_spec='$libname$shared_ext.$major'
17807
shlibpath_var=LD_LIBRARY_PATH
17811
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17815
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17816
soname_spec='$libname$release$shared_ext$major'
17817
shlibpath_var=LD_LIBRARY_PATH
17818
shlibpath_overrides_runpath=yes
17819
hardcode_into_libs=yes
17820
if test yes = "$with_gnu_ld"; then
17821
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17823
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17826
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17830
sys_lib_dlsearch_path_spec='/usr/lib'
17834
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17835
version_type=linux # correct to gnu/linux during the next big refactor
17838
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17839
shlibpath_var=LD_LIBRARY_PATH
17840
shlibpath_overrides_runpath=no
17841
hardcode_into_libs=yes
17845
version_type=linux # correct to gnu/linux during the next big refactor
17846
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17847
soname_spec='$libname$release$shared_ext$major'
17848
shlibpath_var=LD_LIBRARY_PATH
17855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17856
$as_echo "$dynamic_linker" >&6; }
17857
test no = "$dynamic_linker" && can_build_shared=no
17859
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17860
if test yes = "$GCC"; then
17861
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17864
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17865
sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17868
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17869
sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17872
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17873
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17875
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17876
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17878
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17879
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17920
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17921
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17922
hardcode_action_CXX=
17923
if test -n "$hardcode_libdir_flag_spec_CXX" ||
17924
test -n "$runpath_var_CXX" ||
17925
test yes = "$hardcode_automatic_CXX"; then
17927
# We can hardcode non-existent directories.
17928
if test no != "$hardcode_direct_CXX" &&
17929
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17930
# have to relink, otherwise we might link with an installed library
17931
# when we should be linking with a yet-to-be-installed one
17932
## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17933
test no != "$hardcode_minus_L_CXX"; then
17934
# Linking always hardcodes the temporary library directory.
17935
hardcode_action_CXX=relink
17937
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17938
hardcode_action_CXX=immediate
17941
# We cannot hardcode anything, or else we can only hardcode existing
17943
hardcode_action_CXX=unsupported
17945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17946
$as_echo "$hardcode_action_CXX" >&6; }
17948
if test relink = "$hardcode_action_CXX" ||
17949
test yes = "$inherit_rpath_CXX"; then
17950
# Fast installation is not supported
17951
enable_fast_install=no
17952
elif test yes = "$shlibpath_overrides_runpath" ||
17953
test no = "$enable_shared"; then
17954
# Fast installation is not necessary
17955
enable_fast_install=needless
17964
fi # test -n "$compiler"
17967
CFLAGS=$lt_save_CFLAGS
17971
with_gnu_ld=$lt_save_with_gnu_ld
17972
lt_cv_path_LDCXX=$lt_cv_path_LD
17973
lt_cv_path_LD=$lt_save_path_LD
17974
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17975
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17976
fi # test yes != "$_lt_caught_CXX_error"
17979
ac_cpp='$CPP $CPPFLAGS'
17980
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17981
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17982
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17988
ac_cpp='$CPP $CPPFLAGS'
17989
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17990
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17991
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing trunc" >&5
17994
$as_echo_n "checking for library containing trunc... " >&6; }
17995
if ${ac_cv_search_trunc+:} false; then :
17996
$as_echo_n "(cached) " >&6
17998
ac_func_search_save_LIBS=$LIBS
17999
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000
/* end confdefs.h. */
18002
/* Override any GCC internal prototype to avoid an error.
18003
Use char because int might match the return type of a GCC
18004
builtin and then its argument prototype would still apply. */
18017
for ac_lib in '' m; do
18018
if test -z "$ac_lib"; then
18019
ac_res="none required"
18022
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18024
if ac_fn_c_try_link "$LINENO"; then :
18025
ac_cv_search_trunc=$ac_res
18027
rm -f core conftest.err conftest.$ac_objext \
18029
if ${ac_cv_search_trunc+:} false; then :
18033
if ${ac_cv_search_trunc+:} false; then :
18036
ac_cv_search_trunc=no
18038
rm conftest.$ac_ext
18039
LIBS=$ac_func_search_save_LIBS
18041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_trunc" >&5
18042
$as_echo "$ac_cv_search_trunc" >&6; }
18043
ac_res=$ac_cv_search_trunc
18044
if test "$ac_res" != no; then :
18045
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
18050
$as_echo_n "checking for library containing ceil... " >&6; }
18051
if ${ac_cv_search_ceil+:} false; then :
18052
$as_echo_n "(cached) " >&6
18054
ac_func_search_save_LIBS=$LIBS
18055
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18056
/* end confdefs.h. */
18058
/* Override any GCC internal prototype to avoid an error.
18059
Use char because int might match the return type of a GCC
18060
builtin and then its argument prototype would still apply. */
18073
for ac_lib in '' m; do
18074
if test -z "$ac_lib"; then
18075
ac_res="none required"
18078
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18080
if ac_fn_c_try_link "$LINENO"; then :
18081
ac_cv_search_ceil=$ac_res
18083
rm -f core conftest.err conftest.$ac_objext \
18085
if ${ac_cv_search_ceil+:} false; then :
18089
if ${ac_cv_search_ceil+:} false; then :
18092
ac_cv_search_ceil=no
18094
rm conftest.$ac_ext
18095
LIBS=$ac_func_search_save_LIBS
18097
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
18098
$as_echo "$ac_cv_search_ceil" >&6; }
18099
ac_res=$ac_cv_search_ceil
18100
if test "$ac_res" != no; then :
18101
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18106
ac_cpp='$CPP $CPPFLAGS'
18107
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18108
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18109
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18114
# Check whether --with-advanced-memory was given.
18115
if test "${with_advanced_memory+set}" = set; then :
18116
withval=$with_advanced_memory; advmemory=$with_advanced_memory
18122
# Check whether --with-memory-tracking was given.
18123
if test "${with_memory_tracking+set}" = set; then :
18124
withval=$with_memory_tracking; memory_tracking=$with_memory_tracking
18126
memory_tracking="no"
18130
# Check whether --with-memory-tracing was given.
18131
if test "${with_memory_tracing+set}" = set; then :
18132
withval=$with_memory_tracing; memory_tracing=$with_memory_tracing
18134
memory_tracing="no"
18138
## check function declarations
18142
ac_cpp='$CPP $CPPFLAGS'
18143
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18144
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18145
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18148
if test "x$memory_tracing" == "xyes" ; then :
18150
{ $as_echo "$as_me:${as_lineno-$LINENO}: Enable internal memory tracing" >&5
18151
$as_echo "$as_me: Enable internal memory tracing" >&6;}
18153
$as_echo "#define HAVE_MEMORY_TRACING 1" >>confdefs.h
18155
advmemory="yes" # enable advanced memory
18156
memory_tracking="yes" #enable memory tracking
18159
if test "x$memory_tracking" == "xyes" ; then :
18161
{ $as_echo "$as_me:${as_lineno-$LINENO}: Enable internal memory tracking" >&5
18162
$as_echo "$as_me: Enable internal memory tracking" >&6;}
18164
$as_echo "#define HAVE_MEMORY_TRACKING 1" >>confdefs.h
18166
advmemory="yes" # enable advanced memory
18169
if test "x$advmemory" == "xyes" ; then :
18171
{ $as_echo "$as_me:${as_lineno-$LINENO}: Enable advanced memory handling" >&5
18172
$as_echo "$as_me: Enable advanced memory handling" >&6;}
18174
$as_echo "#define HAVE_ADVANCED_MEMORY 1" >>confdefs.h
18180
ac_cpp='$CPP $CPPFLAGS'
18181
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18182
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18183
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18190
if test "x${advmemory}" = "xyes"; then
18191
HAVE_ADVANCED_MEMORY_TRUE=
18192
HAVE_ADVANCED_MEMORY_FALSE='#'
18194
HAVE_ADVANCED_MEMORY_TRUE='#'
18195
HAVE_ADVANCED_MEMORY_FALSE=
18198
if test "x${memory_tracking}" = "xyes"; then
18199
HAVE_MEMORY_TRACKING_TRUE=
18200
HAVE_MEMORY_TRACKING_FALSE='#'
18202
HAVE_MEMORY_TRACKING_TRUE='#'
18203
HAVE_MEMORY_TRACKING_FALSE=
18206
if test "x${memory_tracking}" = "xyes"; then
18207
HAVE_MEMORY_TRACING_TRUE=
18208
HAVE_MEMORY_TRACING_FALSE='#'
18210
HAVE_MEMORY_TRACING_TRUE='#'
18211
HAVE_MEMORY_TRACING_FALSE=
18216
#AC_CUBE_POSIX_FUNCTIONS
18217
#AC_CHECK_FUNCS_ONCE([readlink])
18219
if test "x${ac_scorep_cross_compiling}" = "xyes"; then
18228
case "x${build_cpu}" in
18260
if test "x$sufix" = "x"; then
18261
LIBDIRS_LIST="/lib/ /usr/lib/ "
18263
LIBDIRS_LIST="/lib/ /lib$sufix/ /usr/lib/ /usr/lib$sufix/ "
18271
WITH_C_WRITER="yes"
18276
#AC_ARG_WITH(cwriter, [AS_HELP_STRING([--with-cwriter | --without-cwriter], [Enables (default) or disables building and installation of the C cube writer.])],[],[])
18278
if test x$with_cwriter = "xyes" ; then :
18280
WITH_C_WRITER="yes"
18284
if test x$with_cwriter = "xno" || test "x$without_cwriter" = "xyes" ; then :
18290
if test x$WITH_C_WRITER == "xyes"; then
18291
WITH_C_WRITER_TRUE=
18292
WITH_C_WRITER_FALSE='#'
18294
WITH_C_WRITER_TRUE='#'
18295
WITH_C_WRITER_FALSE=
18300
if test "x$MSG_FRONTEND_COMPRESSION" = "xyes"; then
18301
CUBEW_COMPRESSION_FRONTEND_TRUE=
18302
CUBEW_COMPRESSION_FRONTEND_FALSE='#'
18304
CUBEW_COMPRESSION_FRONTEND_TRUE='#'
18305
CUBEW_COMPRESSION_FRONTEND_FALSE=
18310
if test "x$MSG_FRONTEND_COMPRESSION" = "xyes"; then
18311
CUBEW_COMPRESSION_FRONTEND_TRUE=
18312
CUBEW_COMPRESSION_FRONTEND_FALSE='#'
18314
CUBEW_COMPRESSION_FRONTEND_TRUE='#'
18315
CUBEW_COMPRESSION_FRONTEND_FALSE=
18318
if test "x$MSG_BACKEND_COMPRESSION" = "xyes"; then
18319
CUBEW_COMPRESSION_BACKEND_TRUE=
18320
CUBEW_COMPRESSION_BACKEND_FALSE='#'
18322
CUBEW_COMPRESSION_BACKEND_TRUE='#'
18323
CUBEW_COMPRESSION_BACKEND_FALSE=
18328
# Check whether --with-frontend-zlib was given.
18329
if test "${with_frontend_zlib+set}" = set; then :
18330
withval=$with_frontend_zlib; FRONTEND_PATH=$withval ; FRONTEND_LIBZ_LDFLAGS="-L$withval/lib"; FRONTEND_LIBZ_LIBS="-lz" ; FRONTEND_LIBZ_HEADERS="-I$withval/include"
18332
FRONTEND_PATH= ; FRONTEND_LIBZ_LDFLAGS=""; FRONTEND_LIBZ_LIBS="-lz" ; FRONTEND_LIBZ_HEADERS=""
18335
#AC_ARG_WITH(frontend-compression, [AS_HELP_STRING([--with-frontend-compression], [Enables reading and writing of compressed cube files by C++ library(tools, GUI) and c-writer on frontend.)])],[FRONTEND_COMPRESSION_ON=$withval ],[])
18337
if test "x$compression_on" = "xyes"; then :
18344
as_ax_Var=`$as_echo "ac_cv_lib_${ax_var}_zlibVersion" | $as_tr_sh`
18346
{ eval $as_ax_Var=; unset $as_ax_Var;}
18352
for ax_var in zlib.h
18355
as_ax_Var=`$as_echo "ac_cv_header_${ax_var}" | $as_tr_sh`
18357
{ eval $as_ax_Var=; unset $as_ax_Var;}
18363
LIB_RETURN="__NOT_FOUND__"
18364
if test "x$FRONTEND_PATH" == "x" ; then :
18366
{ $as_echo "$as_me:${as_lineno-$LINENO}: Try pkg-config zlib for library..." >&5
18367
$as_echo "$as_me: Try pkg-config zlib for library..." >&6;}
18368
PKG_CONFIG_AVAILABLE=`which pkg-config`
18369
#here we try tu use pkg-config
18370
if test "x$PKG_CONFIG_AVAILABLE" != "x" ; then :
18372
ZLIBCHECK=`pkg-config --libs-only-L zlib 2>&1| grep "No package "`
18373
if test "x$ZLIBCHECK" = "x" ; then :
18375
LIB_RETURN=$ZLIBCHECK
18376
{ $as_echo "$as_me:${as_lineno-$LINENO}: Found zlib. Library linked via ${LIB_RETURN} -lz" >&5
18377
$as_echo "$as_me: Found zlib. Library linked via ${LIB_RETURN} -lz" >&6;}
18385
if test -e $FRONTEND_PATH ; then :
18387
if test -f $FRONTEND_PATH ; then :
18389
ZLIB_PATH=`dirname $FRONTEND_PATH`
18390
ZLIB_PATH=`dirname $ZLIB_PATH`
18394
ZLIB_PATH=$FRONTEND_PATH
18398
PATH_CANDIDATES=`find $ZLIB_PATH/ -type d `
18401
for zlib_path in $PATH_CANDIDATES; do
18403
ax_probe_library_save_LDFLAGS=${LDFLAGS}
18405
LDFLAGS="-L$zlib_path"
18406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking zlib in $zlib_path" >&5
18407
$as_echo_n "checking zlib in $zlib_path... " >&6; }
18409
$as_echo "$as_me:${as_lineno-$LINENO}: LDFLAGS=\"${LDFLAGS}\"" >&5
18411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
18412
$as_echo_n "checking for zlibVersion in -lz... " >&6; }
18413
if ${ac_cv_lib_z_zlibVersion+:} false; then :
18414
$as_echo_n "(cached) " >&6
18416
ac_check_lib_save_LIBS=$LIBS
18418
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419
/* end confdefs.h. */
18421
/* Override any GCC internal prototype to avoid an error.
18422
Use char because int might match the return type of a GCC
18423
builtin and then its argument prototype would still apply. */
18427
char zlibVersion ();
18431
return zlibVersion ();
18436
if ac_fn_c_try_link "$LINENO"; then :
18437
ac_cv_lib_z_zlibVersion=yes
18439
ac_cv_lib_z_zlibVersion=no
18441
rm -f core conftest.err conftest.$ac_objext \
18442
conftest$ac_exeext conftest.$ac_ext
18443
LIBS=$ac_check_lib_save_LIBS
18445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
18446
$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
18447
if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
18454
LDFLAGS=${ax_probe_library_save_LDFLAGS}
18459
as_ax_Var=`$as_echo "ac_cv_lib_${ax_var}_zlibVersion" | $as_tr_sh`
18461
{ eval $as_ax_Var=; unset $as_ax_Var;}
18467
if test "x$ZLIB_FOUND" == "xyes" ; then :
18469
{ $as_echo "$as_me:${as_lineno-$LINENO}: FOUND zlib at $FRONTEND_PATH" >&5
18470
$as_echo "$as_me: FOUND zlib at $FRONTEND_PATH" >&6;}
18471
LIB_RETURN="-L$zlib_path"
18479
as_fn_error $? "\"Error: $FRONTEND_PATH doesn't exist\"" "$LINENO" 5
18486
HEADER_RETURN="__NOT_FOUND__"
18488
if test "x$FRONTEND_PATH" == "x" ; then :
18490
{ $as_echo "$as_me:${as_lineno-$LINENO}: Try pkg-config zlib for headers..." >&5
18491
$as_echo "$as_me: Try pkg-config zlib for headers..." >&6;}
18492
PKG_CONFIG_AVAILABLE=`which pkg-config`
18493
#here we try tu use pkg-config
18494
if test "x$PKG_CONFIG_AVAILABLE" != "x" ; then :
18496
ZLIBCHECK=`pkg-config --cflags zlib 2>&1| grep "No package "`
18497
if test "x$ZLIBCHECK" = "x" ; then :
18499
HEADER_RETURN=$ZLIBCHECK
18500
{ $as_echo "$as_me:${as_lineno-$LINENO}: Found zlib. Headers are included via $HEADER_RETURN" >&5
18501
$as_echo "$as_me: Found zlib. Headers are included via $HEADER_RETURN" >&6;}
18509
if test -e $FRONTEND_PATH ; then :
18511
if test -f $FRONTEND_PATH ; then :
18513
ZLIB_PATH=`dirname $FRONTEND_PATH`
18514
ZLIB_PATH=`dirname $ZLIB_PATH`
18518
ZLIB_PATH=$FRONTEND_PATH
18522
PATH_CANDIDATES=`find $ZLIB_PATH/ -type d `
18524
for zlib_path in $PATH_CANDIDATES; do
18526
ax_probe_header_save_CXXFLAGS=${CXXFLAGS}
18527
ax_probe_header_save_CFLAGS=${CFLAGS}
18529
CXXFLAGS="-I$zlib_path"
18530
CFLAGS="-I$zlib_path"
18531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking zlib.h in $zlib_path" >&5
18532
$as_echo_n "checking zlib.h in $zlib_path... " >&6; }
18534
$as_echo "$as_me:${as_lineno-$LINENO}: CXXFLAGS=\"${CXXFLAGS}\"" >&5
18535
$as_echo "$as_me:${as_lineno-$LINENO}: CFLAGS=\"${CFLAGS}\"" >&5
18537
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18538
if test "x$ac_cv_header_zlib_h" = xyes; then :
18539
ZLIB_HEADER_FOUND="yes"
18541
ZLIB_HEADER_FOUND="no"
18546
CXXFLAGS=${ax_probe_header_save_CXXFLAGS}
18547
CFLAGS=${ax_probe_header_save_CFLAGS}
18549
for ax_var in zlib.h
18552
as_ax_Var=`$as_echo "ac_cv_header_${ax_var}" | $as_tr_sh`
18554
{ eval $as_ax_Var=; unset $as_ax_Var;}
18560
if test "x$ZLIB_HEADER_FOUND" == "xyes" ; then :
18562
{ $as_echo "$as_me:${as_lineno-$LINENO}: FOUND zlib.h at $FRONTEND_PATH" >&5
18563
$as_echo "$as_me: FOUND zlib.h at $FRONTEND_PATH" >&6;}
18564
HEADER_RETURN="-I$zlib_path"
18572
# here is not $FRONTEND_PATH given or test is failed
18573
as_fn_error $? "\"Error: $FRONTEND_PATH doesn't exist\"" "$LINENO" 5
18579
if test "x$HEADER_RETURN" != "x__NOT_FOUND__" && test "x$LIB_RETURN" != "x__NOT_FOUND__" ; then :
18581
FRONTEND_LIBZ_LDFLAGS="$LIB_RETURN "
18582
FRONTEND_LIBZ_LIBS="-lz"
18583
FRONTEND_LIBZ_HEADERS="$HEADER_RETURN"
18584
COMPRESSION="$COMPRESSION -DFRONTEND_CUBE_COMPRESSED=yes "
18586
$as_echo "#define COMPRESSION 1" >>confdefs.h
18588
MSG_FRONTEND_COMPRESSION=yes
18592
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find zlib under $FRONTEND_PATH. CUBE uses zlib compression and this library is needed, if you create a frontend application." >&5
18593
$as_echo "$as_me: WARNING: Cannot find zlib under $FRONTEND_PATH. CUBE uses zlib compression and this library is needed, if you create a frontend application." >&2;}
18594
FRONTEND_LIBZ_LDFLAGS=""
18595
FRONTEND_LIBZ_LIBS=""
18596
FRONTEND_LIBZ_HEADERS=""
18597
MSG_FRONTEND_COMPRESSION=no
18598
COMPRESSION="$COMPRESSION"
18605
as_ax_Var=`$as_echo "ac_cv_lib_${ax_var}_zlibVersion" | $as_tr_sh`
18607
{ eval $as_ax_Var=; unset $as_ax_Var;}
18613
for ax_var in zlib.h
18616
as_ax_Var=`$as_echo "ac_cv_header_${ax_var}" | $as_tr_sh`
18618
{ eval $as_ax_Var=; unset $as_ax_Var;}
18631
FRONTEND_LIBZ_HEADERS=""
18632
FRONTEND_LIBZ_LDFLAGS=""
18633
FRONTEND_LIBZ_LIBS=""
18634
MSG_FRONTEND_COMPRESSION="no"
18641
if test "x$MSG_FRONTEND_COMPRESSION" != "xno" ; then :
18643
{ $as_echo "$as_me:${as_lineno-$LINENO}: Frontend zlib get linked as: $FRONTEND_LIBZ_LDFLAGS $FRONTEND_LIBZ_LIBS" >&5
18644
$as_echo "$as_me: Frontend zlib get linked as: $FRONTEND_LIBZ_LDFLAGS $FRONTEND_LIBZ_LIBS" >&6;}
18645
{ $as_echo "$as_me:${as_lineno-$LINENO}: Frontend zlib headers included as: $FRONTEND_LIBZ_HEADERS" >&5
18646
$as_echo "$as_me: Frontend zlib headers included as: $FRONTEND_LIBZ_HEADERS" >&6;}
18650
if test "x$MSG_FRONTEND_COMPRESSION" = "xyes"; then
18651
CUBEW_COMPRESSION_FRONTEND_TRUE=
18652
CUBEW_COMPRESSION_FRONTEND_FALSE='#'
18654
CUBEW_COMPRESSION_FRONTEND_TRUE='#'
18655
CUBEW_COMPRESSION_FRONTEND_FALSE=
18671
if test "x$CROSS_BUILD" = "xyes" ; then :
18674
if test "x$XEND" = "xfrontend" ; then :
18678
cat >>config.summary <<_ACEOF
18679
Frontend zlib compression :
18680
$MSG_FRONTEND_COMPRESSION
18683
if test "x$MSG_FRONTEND_COMPRESSION" != "xno" ; then :
18687
cat >>config.summary <<_ACEOF
18688
zlib headers : $FRONTEND_LIBZ_HEADERS
18693
cat >>config.summary <<_ACEOF
18694
zlib library : $FRONTEND_LIBZ_LDFLAGS $FRONTEND_LIBZ_LIBS
18699
cat >>config.summary <<_ACEOF
18700
Notice: Front end part of cube (c-writer library) produces compressed cube report.(enabled via
18701
environment variable CUBEW_ZLIB_COMPRESSION=true)
18709
if test "x$XEND" = "xbackend" ; then :
18713
cat >>config.summary <<_ACEOF
18714
Backend zlib compression :
18715
$MSG_BACKEND_COMPRESSION
18718
if test "x$MSG_BACKEND_COMPRESSION" = "xyes" ; then :
18722
cat >>config.summary <<_ACEOF
18723
zlib headers : $BACKEND_LIBZ_HEADERS
18728
cat >>config.summary <<_ACEOF
18729
zlib library : $BACKEND_LIBZ_LDFLAGS $BACKEND_LIBZ_LIBS
18734
cat >>config.summary <<_ACEOF
18735
Notice: Back end part of cube (c-writer library) produces compressed cube report.(enabled via
18736
environment variable CUBEW_ZLIB_COMPRESSION=true)
18749
cat >>config.summary <<_ACEOF
18750
zlib compression : $MSG_BACKEND_COMPRESSION
18753
if test "x$MSG_BACKEND_COMPRESSION" != "xno" ; then :
18757
cat >>config.summary <<_ACEOF
18758
zlib headers : $BACKEND_LIBZ_HEADERS
18763
cat >>config.summary <<_ACEOF
18764
zlib library : $BACKEND_LIBZ_LDFLAGS $BACKEND_LIBZ_LIBS
18769
cat >>config.summary <<_ACEOF
18770
Notice: Cube (c-writer library) produces compressed cube report.(enabled via environment variable
18771
CUBEW_ZLIB_COMPRESSION=true)
18780
cat >>config.summary <<_ACEOF
18781
zlib compression flags :
18788
cat >>config.summary <<_ACEOF
18789
Advanced memory handling :
18795
cat >>config.summary <<_ACEOF
18796
Internal memory tracking :
18802
cat >>config.summary <<_ACEOF
18803
Internal memory tracing : $memory_tracing
18810
if test "x$XEND" = "xbackend" && test "x$CROSS_BUILD" == "xyes" ; then :
18814
cat >>config.summary <<_ACEOF
18815
C99 compiler used: $CC
18820
cat >>config.summary <<_ACEOF
18821
C++ compiler used: $CXX
18826
cat >>config.summary <<_ACEOF
18827
Compiler flags used: $CFLAGS
18832
cat >>config.summary <<_ACEOF
18833
Compiler cxxflags used: $CXXFLAGS
18841
cat >>config.summary <<_ACEOF
18842
C99 compiler used: $CC
18847
cat >>config.summary <<_ACEOF
18848
C++ compiler used: $CXX
18853
cat >>config.summary <<_ACEOF
18854
Compiler flags used: $CFLAGS
18859
cat >>config.summary <<_ACEOF
18860
Compiler cxxflags used: $CXXFLAGS
18873
#check for examples
18877
NOMPI_CUBEW_FRONTEND_EXAMPLES_SRC="cubew_example_complex.c \
18878
cubew_example_simple.c \
18879
cubew_system_tree_memory_footprint_standard.c\
18880
cubew_system_tree_memory_footprint_optimized.c"
18881
NOMPI_CUBEW_FRONTEND_EXAMPLES_EXE="cubew_example_complex.c.exe \
18882
cubew_example_simple.c.exe \
18883
cubew_system_tree_memory_footprint_standard.c.exe\
18884
cubew_system_tree_memory_footprint_optimized.c.exe"
18885
if test "x$MPICC" != "x"; then
18886
MPI_CUBEW_FRONTEND_EXAMPLES_SRC=""
18887
MPI_CUBEW_FRONTEND_EXAMPLES_EXE=""
18891
NOMPI_FRONTEND_APPS_EXE="$NOMPI_CUBEW_FRONTEND_EXAMPLES_EXE"
18892
MPI_FRONTEND_APPS_EXE="$MPI_CUBEW_FRONTEND_EXAMPLES_EXE"
18906
MPI_BACKEND_APPS=""
18907
NOMPI_BACKEND_APPS=""
18909
NOMPI_CUBEW_BACKEND_EXAMPLES_SRC=""
18910
NOMPI_CUBEW_BACKEND_EXAMPLES_EXE=""
18911
if test "x$MPICC" != "x"; then
18912
MPI_CUBEW_BACKEND_EXAMPLES_SRC="cubew_example_simple.mpi.c \
18913
cubew_example_complex.mpi.c"
18914
MPI_CUBEW_BACKEND_EXAMPLES_EXE="cubew_example_simple.mpi.c.exe \
18915
cubew_example_complex.mpi.c.exe"
18918
NOMPI_BACKEND_APPS_EXE="$NOMPI_CUBEW_BACKEND_EXAMPLES_EXE"
18919
MPI_BACKEND_APPS_EXE="$MPI_CUBEW_BACKEND_EXAMPLES_EXE"
18935
ac_config_headers="$ac_config_headers ../src/cubew-config-frontend.h"
18938
if test "x${hardcode_into_libs}" = "xyes"; then :
18939
ac_scorep_hardcode_into_libs=1
18941
ac_scorep_hardcode_into_libs=0
18943
HARDCODE_INTO_LIBS=${ac_scorep_hardcode_into_libs}
18945
HARDCODE_LIBDIR_FLAG_CC=${hardcode_libdir_flag_spec}
18947
HARDCODE_LIBDIR_FLAG_CXX=${hardcode_libdir_flag_spec_CXX}
18949
HARDCODE_LIBDIR_WL=${wl}
18951
HARDCODE_LIBDIR_AIX_LIBPATH=${aix_libpath}
18955
SYS_LIB_DLSEARCH_PATH_SPEC=${sys_lib_dlsearch_path_spec}
18959
PACKAGE_ERROR_CODES_INCDIR=../include/cubew
18962
cat >>confdefs.h <<_ACEOF
18963
#define PACKAGE_ERROR_CODES_HEADER <CubeWErrorCodes.h>
18969
ac_cpp='$CXXCPP $CPPFLAGS'
18970
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18971
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18972
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18976
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX needs __STDC_CONSTANT_MACROS" >&5
18977
$as_echo_n "checking whether $CXX needs __STDC_CONSTANT_MACROS... " >&6; }
18978
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18979
/* end confdefs.h. */
18982
#include <stdint.h>
18988
int8_t i8 = INT8_C( 42 );
18989
int16_t i16 = INT16_C( 42 );
18990
int32_t i32 = INT32_C( 42 );
18991
int64_t i64 = INT64_C( 42 );
18992
uint8_t u8 = UINT8_C( 42 );
18993
uint16_t u16 = UINT16_C( 42 );
18994
uint32_t u32 = UINT32_C( 42 );
18995
uint64_t u64 = UINT64_C( 42 );
19002
if ac_fn_cxx_try_compile "$LINENO"; then :
19005
_ax_save_CPPFLAGS="$CPPFLAGS"
19006
CPPFLAGS="-D__STDC_CONSTANT_MACROS"
19007
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19008
/* end confdefs.h. */
19011
#include <stdint.h>
19017
int8_t i8 = INT8_C( 42 );
19018
int16_t i16 = INT16_C( 42 );
19019
int32_t i32 = INT32_C( 42 );
19020
int64_t i64 = INT64_C( 42 );
19021
uint8_t u8 = UINT8_C( 42 );
19022
uint16_t u16 = UINT16_C( 42 );
19023
uint32_t u32 = UINT32_C( 42 );
19024
uint64_t u64 = UINT64_C( 42 );
19031
if ac_fn_cxx_try_compile "$LINENO"; then :
19034
$as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
19037
as_fn_error $? "$CXX cannot compile fixed-width integer constant macros" "$LINENO" 5
19039
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19040
CPPFLAGS="$_ax_save_CPPFLAGS"
19042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_result" >&5
19044
$as_echo "$_ax_result" >&6; }
19049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX needs __STDC_FORMAT_MACROS" >&5
19050
$as_echo_n "checking whether $CXX needs __STDC_FORMAT_MACROS... " >&6; }
19051
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19052
/* end confdefs.h. */
19055
#include <inttypes.h>
19061
const char* i8 = PRId8;
19062
const char* i16 = PRId16;
19063
const char* i32 = PRId32;
19064
const char* i64 = PRId64;
19065
const char* u8 = PRIu8;
19066
const char* u16 = PRIu16;
19067
const char* u32 = PRIu32;
19068
const char* u64 = PRIu64;
19075
if ac_fn_cxx_try_compile "$LINENO"; then :
19078
_ax_save_CPPFLAGS="$CPPFLAGS"
19079
CPPFLAGS="-D__STDC_FORMAT_MACROS"
19080
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19081
/* end confdefs.h. */
19084
#include <inttypes.h>
19090
const char* i8 = PRId8;
19091
const char* i16 = PRId16;
19092
const char* i32 = PRId32;
19093
const char* i64 = PRId64;
19094
const char* u8 = PRIu8;
19095
const char* u16 = PRIu16;
19096
const char* u32 = PRIu32;
19097
const char* u64 = PRIu64;
19104
if ac_fn_cxx_try_compile "$LINENO"; then :
19107
$as_echo "#define __STDC_FORMAT_MACROS 1" >>confdefs.h
19110
as_fn_error $? "$CXX cannot compile fixed-width integer format macros" "$LINENO" 5
19112
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19113
CPPFLAGS="$_ax_save_CPPFLAGS"
19115
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_result" >&5
19117
$as_echo "$_ax_result" >&6; }
19122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX needs __STDC_LIMIT_MACROS" >&5
19123
$as_echo_n "checking whether $CXX needs __STDC_LIMIT_MACROS... " >&6; }
19124
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19125
/* end confdefs.h. */
19128
#include <stdint.h>
19134
int8_t i8 = INT8_MAX;
19135
int16_t i16 = INT16_MAX;
19136
int32_t i32 = INT32_MAX;
19137
int64_t i64 = INT64_MAX;
19138
uint8_t u8 = UINT8_MAX;
19139
uint16_t u16 = UINT16_MAX;
19140
uint32_t u32 = UINT32_MAX;
19141
uint64_t u64 = UINT64_MAX;
19148
if ac_fn_cxx_try_compile "$LINENO"; then :
19151
_ax_save_CPPFLAGS="$CPPFLAGS"
19152
CPPFLAGS="-D__STDC_LIMIT_MACROS"
19153
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154
/* end confdefs.h. */
19157
#include <stdint.h>
19163
int8_t i8 = INT8_MAX;
19164
int16_t i16 = INT16_MAX;
19165
int32_t i32 = INT32_MAX;
19166
int64_t i64 = INT64_MAX;
19167
uint8_t u8 = UINT8_MAX;
19168
uint16_t u16 = UINT16_MAX;
19169
uint32_t u32 = UINT32_MAX;
19170
uint64_t u64 = UINT64_MAX;
19177
if ac_fn_cxx_try_compile "$LINENO"; then :
19180
$as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
19183
as_fn_error $? "$CXX cannot compile fixed-width integer limit macros" "$LINENO" 5
19185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19186
CPPFLAGS="$_ax_save_CPPFLAGS"
19188
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_result" >&5
19190
$as_echo "$_ax_result" >&6; }
19194
ac_cpp='$CPP $CPPFLAGS'
19195
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19196
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19197
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19201
ac_config_files="$ac_config_files ../src/tools/cubew_config/cubew_config_data_frontend.cpp:../src/tools/cubew_config/cubew_config_data_build.cpp.in"
19205
ac_config_files="$ac_config_files Makefile"
19207
ac_config_files="$ac_config_files ../examples/Makefile.frontend"
19210
ac_config_files="$ac_config_files ../test/test3/cube_self_test.c"
19212
ac_config_files="$ac_config_files ../test/test3/cube_self_test3_4.c"
19214
ac_config_files="$ac_config_files ../test/test3/run_test_3.sh"
19218
cat >confcache <<\_ACEOF
19219
# This file is a shell script that caches the results of configure
19220
# tests run on this system so they can be shared between configure
19221
# scripts and configure runs, see configure's option --config-cache.
19222
# It is not useful on other systems. If it contains results you don't
19223
# want to keep, you may remove or edit it.
19225
# config.status only pays attention to the cache file if you give it
19226
# the --recheck option to rerun configure.
19228
# `ac_cv_env_foo' variables (set or unset) will be overridden when
19229
# loading this file, other *unset* `ac_cv_foo' will be assigned the
19230
# following values.
19234
# The following way of writing the cache mishandles newlines in values,
19235
# but we know of no workaround that is simple, portable, and efficient.
19236
# So, we kill variables containing newlines.
19237
# Ultrix sh set writes to stderr and can't be redirected directly,
19238
# and sets the high bit in the cache file unless we assign to the vars.
19240
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19241
eval ac_val=\$$ac_var
19245
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19246
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19249
_ | IFS | as_nl) ;; #(
19250
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19251
*) { eval $ac_var=; unset $ac_var;} ;;
19257
case $as_nl`(ac_space=' '; set) 2>&1` in #(
19258
*${as_nl}ac_space=\ *)
19259
# `set' does not quote correctly, so add quotes: double-quote
19260
# substitution turns \\\\ into \\, and sed turns \\ into \.
19263
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19266
# `set' quotes correctly as required by POSIX, so do not add quotes.
19267
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19276
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19278
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19280
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19281
if test -w "$cache_file"; then
19282
if test "x$cache_file" != "x/dev/null"; then
19283
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19284
$as_echo "$as_me: updating cache $cache_file" >&6;}
19285
if test ! -f "$cache_file" || test -h "$cache_file"; then
19286
cat confcache >"$cache_file"
19288
case $cache_file in #(
19290
mv -f confcache "$cache_file"$$ &&
19291
mv -f "$cache_file"$$ "$cache_file" ;; #(
19293
mv -f confcache "$cache_file" ;;
19298
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19299
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19304
test "x$prefix" = xNONE && prefix=$ac_default_prefix
19305
# Let make expand exec_prefix.
19306
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19308
DEFS=-DHAVE_CONFIG_H
19313
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19314
# 1. Remove the extension, and $U if already installed.
19315
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19316
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19317
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19318
# will be set to the directory where LIBOBJS objects are built.
19319
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19320
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19322
LIBOBJS=$ac_libobjs
19324
LTLIBOBJS=$ac_ltlibobjs
19327
if test -z "${PLATFORM_ALTIX_TRUE}" && test -z "${PLATFORM_ALTIX_FALSE}"; then
19328
as_fn_error $? "conditional \"PLATFORM_ALTIX\" was never defined.
19329
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19331
if test -z "${PLATFORM_AIX_TRUE}" && test -z "${PLATFORM_AIX_FALSE}"; then
19332
as_fn_error $? "conditional \"PLATFORM_AIX\" was never defined.
19333
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19335
if test -z "${PLATFORM_BGL_TRUE}" && test -z "${PLATFORM_BGL_FALSE}"; then
19336
as_fn_error $? "conditional \"PLATFORM_BGL\" was never defined.
19337
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19339
if test -z "${PLATFORM_BGP_TRUE}" && test -z "${PLATFORM_BGP_FALSE}"; then
19340
as_fn_error $? "conditional \"PLATFORM_BGP\" was never defined.
19341
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19343
if test -z "${PLATFORM_BGQ_TRUE}" && test -z "${PLATFORM_BGQ_FALSE}"; then
19344
as_fn_error $? "conditional \"PLATFORM_BGQ\" was never defined.
19345
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19347
if test -z "${PLATFORM_CRAYXT_TRUE}" && test -z "${PLATFORM_CRAYXT_FALSE}"; then
19348
as_fn_error $? "conditional \"PLATFORM_CRAYXT\" was never defined.
19349
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19351
if test -z "${PLATFORM_CRAYXE_TRUE}" && test -z "${PLATFORM_CRAYXE_FALSE}"; then
19352
as_fn_error $? "conditional \"PLATFORM_CRAYXE\" was never defined.
19353
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19355
if test -z "${PLATFORM_CRAYXK_TRUE}" && test -z "${PLATFORM_CRAYXK_FALSE}"; then
19356
as_fn_error $? "conditional \"PLATFORM_CRAYXK\" was never defined.
19357
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19359
if test -z "${PLATFORM_CRAYXC_TRUE}" && test -z "${PLATFORM_CRAYXC_FALSE}"; then
19360
as_fn_error $? "conditional \"PLATFORM_CRAYXC\" was never defined.
19361
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19363
if test -z "${PLATFORM_LINUX_TRUE}" && test -z "${PLATFORM_LINUX_FALSE}"; then
19364
as_fn_error $? "conditional \"PLATFORM_LINUX\" was never defined.
19365
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19367
if test -z "${PLATFORM_SOLARIS_TRUE}" && test -z "${PLATFORM_SOLARIS_FALSE}"; then
19368
as_fn_error $? "conditional \"PLATFORM_SOLARIS\" was never defined.
19369
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19371
if test -z "${PLATFORM_MAC_TRUE}" && test -z "${PLATFORM_MAC_FALSE}"; then
19372
as_fn_error $? "conditional \"PLATFORM_MAC\" was never defined.
19373
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19375
if test -z "${PLATFORM_MINGW_TRUE}" && test -z "${PLATFORM_MINGW_FALSE}"; then
19376
as_fn_error $? "conditional \"PLATFORM_MINGW\" was never defined.
19377
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19379
if test -z "${PLATFORM_CYGWIN_TRUE}" && test -z "${PLATFORM_CYGWIN_FALSE}"; then
19380
as_fn_error $? "conditional \"PLATFORM_CYGWIN\" was never defined.
19381
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19383
if test -z "${PLATFORM_MIC_TRUE}" && test -z "${PLATFORM_MIC_FALSE}"; then
19384
as_fn_error $? "conditional \"PLATFORM_MIC\" was never defined.
19385
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19387
if test -z "${PLATFORM_NECSX_TRUE}" && test -z "${PLATFORM_NECSX_FALSE}"; then
19388
as_fn_error $? "conditional \"PLATFORM_NECSX\" was never defined.
19389
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19391
if test -z "${PLATFORM_ARM_TRUE}" && test -z "${PLATFORM_ARM_FALSE}"; then
19392
as_fn_error $? "conditional \"PLATFORM_ARM\" was never defined.
19393
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19395
if test -z "${PLATFORM_MINGW_TRUE}" && test -z "${PLATFORM_MINGW_FALSE}"; then
19396
as_fn_error $? "conditional \"PLATFORM_MINGW\" was never defined.
19397
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19399
if test -z "${PLATFORM_K_TRUE}" && test -z "${PLATFORM_K_FALSE}"; then
19400
as_fn_error $? "conditional \"PLATFORM_K\" was never defined.
19401
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19403
if test -z "${PLATFORM_FX10_TRUE}" && test -z "${PLATFORM_FX10_FALSE}"; then
19404
as_fn_error $? "conditional \"PLATFORM_FX10\" was never defined.
19405
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19407
if test -z "${PLATFORM_FX100_TRUE}" && test -z "${PLATFORM_FX100_FALSE}"; then
19408
as_fn_error $? "conditional \"PLATFORM_FX100\" was never defined.
19409
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19411
if test -z "${PLATFORM_CRAY_TRUE}" && test -z "${PLATFORM_CRAY_FALSE}"; then
19412
as_fn_error $? "conditional \"PLATFORM_CRAY\" was never defined.
19413
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19415
if test -z "${MIC_SUPPORT_TRUE}" && test -z "${MIC_SUPPORT_FALSE}"; then
19416
as_fn_error $? "conditional \"MIC_SUPPORT\" was never defined.
19417
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19419
if test -z "${CROSS_BUILD_TRUE}" && test -z "${CROSS_BUILD_FALSE}"; then
19420
as_fn_error $? "conditional \"CROSS_BUILD\" was never defined.
19421
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19423
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19424
$as_echo_n "checking that generated files are newer than configure... " >&6; }
19425
if test -n "$am_sleep_pid"; then
19426
# Hide warnings about reused PIDs.
19427
wait $am_sleep_pid 2>/dev/null
19429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19430
$as_echo "done" >&6; }
19431
if test -n "$EXEEXT"; then
19433
am__EXEEXT_FALSE='#'
19435
am__EXEEXT_TRUE='#'
19439
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19440
as_fn_error $? "conditional \"AMDEP\" was never defined.
19441
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19443
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19444
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19445
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19447
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19448
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19449
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19452
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19453
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19454
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19456
if test -z "${HAVE_ADVANCED_MEMORY_TRUE}" && test -z "${HAVE_ADVANCED_MEMORY_FALSE}"; then
19457
as_fn_error $? "conditional \"HAVE_ADVANCED_MEMORY\" was never defined.
19458
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19460
if test -z "${HAVE_MEMORY_TRACKING_TRUE}" && test -z "${HAVE_MEMORY_TRACKING_FALSE}"; then
19461
as_fn_error $? "conditional \"HAVE_MEMORY_TRACKING\" was never defined.
19462
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19464
if test -z "${HAVE_MEMORY_TRACING_TRUE}" && test -z "${HAVE_MEMORY_TRACING_FALSE}"; then
19465
as_fn_error $? "conditional \"HAVE_MEMORY_TRACING\" was never defined.
19466
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19468
if test -z "${WITH_C_WRITER_TRUE}" && test -z "${WITH_C_WRITER_FALSE}"; then
19469
as_fn_error $? "conditional \"WITH_C_WRITER\" was never defined.
19470
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19472
if test -z "${CUBEW_COMPRESSION_FRONTEND_TRUE}" && test -z "${CUBEW_COMPRESSION_FRONTEND_FALSE}"; then
19473
as_fn_error $? "conditional \"CUBEW_COMPRESSION_FRONTEND\" was never defined.
19474
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19476
if test -z "${CUBEW_COMPRESSION_FRONTEND_TRUE}" && test -z "${CUBEW_COMPRESSION_FRONTEND_FALSE}"; then
19477
as_fn_error $? "conditional \"CUBEW_COMPRESSION_FRONTEND\" was never defined.
19478
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19480
if test -z "${CUBEW_COMPRESSION_BACKEND_TRUE}" && test -z "${CUBEW_COMPRESSION_BACKEND_FALSE}"; then
19481
as_fn_error $? "conditional \"CUBEW_COMPRESSION_BACKEND\" was never defined.
19482
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19484
if test -z "${CUBEW_COMPRESSION_FRONTEND_TRUE}" && test -z "${CUBEW_COMPRESSION_FRONTEND_FALSE}"; then
19485
as_fn_error $? "conditional \"CUBEW_COMPRESSION_FRONTEND\" was never defined.
19486
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19489
: "${CONFIG_STATUS=./config.status}"
19491
ac_clean_files_save=$ac_clean_files
19492
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19493
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19494
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19496
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19498
# Generated by $as_me.
19499
# Run this file to recreate the current configuration.
19500
# Compiler output produced by configure, useful for debugging
19501
# configure, is in config.log if it exists.
19504
ac_cs_recheck=false
19507
SHELL=\${CONFIG_SHELL-$SHELL}
19510
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19511
## -------------------- ##
19512
## M4sh Initialization. ##
19513
## -------------------- ##
19515
# Be more Bourne compatible
19516
DUALCASE=1; export DUALCASE # for MKS sh
19517
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19520
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19521
# is contrary to our usage. Disable this feature.
19522
alias -g '${1+"$@"}'='"$@"'
19523
setopt NO_GLOB_SUBST
19525
case `(set -o) 2>/dev/null` in #(
19537
# Printing a long string crashes Solaris 7 /usr/bin/printf.
19538
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19539
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19540
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19541
# Prefer a ksh shell builtin over an external printf program on Solaris,
19542
# but without wasting forks for bash or zsh.
19543
if test -z "$BASH_VERSION$ZSH_VERSION" \
19544
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19545
as_echo='print -r --'
19546
as_echo_n='print -rn --'
19547
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19548
as_echo='printf %s\n'
19549
as_echo_n='printf %s'
19551
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19552
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19553
as_echo_n='/usr/ucb/echo -n'
19555
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19556
as_echo_n_body='eval
19560
expr "X$arg" : "X\\(.*\\)$as_nl";
19561
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19563
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19565
export as_echo_n_body
19566
as_echo_n='sh -c $as_echo_n_body as_echo'
19568
export as_echo_body
19569
as_echo='sh -c $as_echo_body as_echo'
19572
# The user is always right.
19573
if test "${PATH_SEPARATOR+set}" != set; then
19575
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19576
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19583
# We need space, tab and new line, in precisely that order. Quoting is
19584
# there to prevent editors from complaining about space-tab.
19585
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19586
# splitting by setting IFS to empty value.)
19589
# Find who we are. Look in the path if we contain no directory separator.
19592
*[\\/]* ) as_myself=$0 ;;
19593
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19594
for as_dir in $PATH
19597
test -z "$as_dir" && as_dir=.
19598
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19604
# We did not find ourselves, most probably we were run as `sh COMMAND'
19605
# in which case we are not to be found in the path.
19606
if test "x$as_myself" = x; then
19609
if test ! -f "$as_myself"; then
19610
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19614
# Unset variables that we do not need and which cause bugs (e.g. in
19615
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19616
# suppresses any "Segmentation fault" message there. '((' could
19617
# trigger a bug in pdksh 5.2.14.
19618
for as_var in BASH_ENV ENV MAIL MAILPATH
19619
do eval test x\${$as_var+set} = xset \
19620
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19633
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19636
# as_fn_error STATUS ERROR [LINENO LOG_FD]
19637
# ----------------------------------------
19638
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19639
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19640
# script with STATUS, using 1 if that was 0.
19643
as_status=$1; test $as_status -eq 0 && as_status=1
19645
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19646
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19648
$as_echo "$as_me: error: $2" >&2
19649
as_fn_exit $as_status
19653
# as_fn_set_status STATUS
19654
# -----------------------
19655
# Set $? to STATUS, without forking.
19656
as_fn_set_status ()
19659
} # as_fn_set_status
19661
# as_fn_exit STATUS
19662
# -----------------
19663
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19667
as_fn_set_status $1
19673
# Portably unset VAR.
19676
{ eval $1=; unset $1;}
19678
as_unset=as_fn_unset
19679
# as_fn_append VAR VALUE
19680
# ----------------------
19681
# Append the text in VALUE to the end of the definition contained in VAR. Take
19682
# advantage of any shell optimizations that allow amortized linear growth over
19683
# repeated appends, instead of the typical quadratic growth present in naive
19685
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19686
eval 'as_fn_append ()
19697
# as_fn_arith ARG...
19698
# ------------------
19699
# Perform arithmetic evaluation on the ARGs, and store the result in the
19700
# global $as_val. Take advantage of shells that can avoid forks. The arguments
19701
# must be portable across $(()) and expr.
19702
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19703
eval 'as_fn_arith ()
19710
as_val=`expr "$@" || test $? -eq 1`
19715
if expr a : '\(a\)' >/dev/null 2>&1 &&
19716
test "X`expr 00001 : '.*\(...\)'`" = X001; then
19722
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19723
as_basename=basename
19728
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19734
as_me=`$as_basename -- "$0" ||
19735
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19736
X"$0" : 'X\(//\)$' \| \
19737
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19739
sed '/^.*\/\([^/][^/]*\)\/*$/{
19753
# Avoid depending upon Character Ranges.
19754
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19755
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19756
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19757
as_cr_digits='0123456789'
19758
as_cr_alnum=$as_cr_Letters$as_cr_digits
19760
ECHO_C= ECHO_N= ECHO_T=
19761
case `echo -n x` in #(((((
19763
case `echo 'xy\c'` in
19764
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
19766
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19773
rm -f conf$$ conf$$.exe conf$$.file
19774
if test -d conf$$.dir; then
19775
rm -f conf$$.dir/conf$$.file
19778
mkdir conf$$.dir 2>/dev/null
19780
if (echo >conf$$.file) 2>/dev/null; then
19781
if ln -s conf$$.file conf$$ 2>/dev/null; then
19783
# ... but there are two gotchas:
19784
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19785
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19786
# In both cases, we have to default to `cp -pR'.
19787
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19789
elif ln conf$$.file conf$$ 2>/dev/null; then
19797
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19798
rmdir conf$$.dir 2>/dev/null
19803
# Create "$as_dir" as a directory, including parents if necessary.
19808
-*) as_dir=./$as_dir;;
19810
test -d "$as_dir" || eval $as_mkdir_p || {
19814
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19815
*) as_qdir=$as_dir;;
19817
as_dirs="'$as_qdir' $as_dirs"
19818
as_dir=`$as_dirname -- "$as_dir" ||
19819
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19820
X"$as_dir" : 'X\(//\)[^/]' \| \
19821
X"$as_dir" : 'X\(//\)$' \| \
19822
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19823
$as_echo X"$as_dir" |
19824
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19828
/^X\(\/\/\)[^/].*/{
19841
test -d "$as_dir" && break
19843
test -z "$as_dirs" || eval "mkdir $as_dirs"
19844
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19848
if mkdir -p . 2>/dev/null; then
19849
as_mkdir_p='mkdir -p "$as_dir"'
19851
test -d ./-p && rmdir ./-p
19856
# as_fn_executable_p FILE
19857
# -----------------------
19858
# Test if FILE is an executable regular file.
19859
as_fn_executable_p ()
19861
test -f "$1" && test -x "$1"
19862
} # as_fn_executable_p
19863
as_test_x='test -x'
19864
as_executable_p=as_fn_executable_p
19866
# Sed expression to map a string onto a valid CPP name.
19867
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19869
# Sed expression to map a string onto a valid variable name.
19870
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19874
## ----------------------------------- ##
19875
## Main body of $CONFIG_STATUS script. ##
19876
## ----------------------------------- ##
19878
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19880
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19881
# Save the log message, to keep $0 and so on meaningful, and to
19882
# report actual input values of CONFIG_FILES etc. instead of their
19883
# values after options handling.
19885
This file was extended by CubeW $as_me 4.4-RC1, which was
19886
generated by GNU Autoconf 2.69. Invocation command line was
19888
CONFIG_FILES = $CONFIG_FILES
19889
CONFIG_HEADERS = $CONFIG_HEADERS
19890
CONFIG_LINKS = $CONFIG_LINKS
19891
CONFIG_COMMANDS = $CONFIG_COMMANDS
19894
on `(hostname || uname -n) 2>/dev/null | sed 1q`
19899
case $ac_config_files in *"
19900
"*) set x $ac_config_files; shift; ac_config_files=$*;;
19903
case $ac_config_headers in *"
19904
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19908
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19909
# Files that config.status was made for.
19910
config_files="$ac_config_files"
19911
config_headers="$ac_config_headers"
19912
config_commands="$ac_config_commands"
19916
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19918
\`$as_me' instantiates files and other configuration actions
19919
from templates according to the current configuration. Unless the files
19920
and actions are specified as TAGs, all are instantiated by default.
19922
Usage: $0 [OPTION]... [TAG]...
19924
-h, --help print this help, then exit
19925
-V, --version print version number and configuration settings, then exit
19926
--config print configuration, then exit
19927
-q, --quiet, --silent
19928
do not print progress messages
19929
-d, --debug don't remove temporary files
19930
--recheck update $as_me by reconfiguring in the same conditions
19931
--file=FILE[:TEMPLATE]
19932
instantiate the configuration file FILE
19933
--header=FILE[:TEMPLATE]
19934
instantiate the configuration header FILE
19936
Configuration files:
19939
Configuration headers:
19942
Configuration commands:
19945
Report bugs to <scalasca@fz-juelich.de>.
19946
CubeW home page: <http://www.scalasca.org>."
19949
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19950
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19952
CubeW config.status 4.4-RC1
19953
configured by $0, generated by GNU Autoconf 2.69,
19954
with options \\"\$ac_cs_config\\"
19956
Copyright (C) 2012 Free Software Foundation, Inc.
19957
This config.status script is free software; the Free Software Foundation
19958
gives unlimited permission to copy, distribute and modify it."
19965
test -n "\$AWK" || AWK=awk
19968
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19969
# The default lists apply if the user does not specify any file.
19975
ac_option=`expr "X$1" : 'X\([^=]*\)='`
19976
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19980
ac_option=`expr "X$1" : 'X\([^=]*\)='`
19992
# Handling of the options.
19993
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19995
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19996
$as_echo "$ac_cs_version"; exit ;;
19997
--config | --confi | --conf | --con | --co | --c )
19998
$as_echo "$ac_cs_config"; exit ;;
19999
--debug | --debu | --deb | --de | --d | -d )
20001
--file | --fil | --fi | --f )
20004
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20005
'') as_fn_error $? "missing file argument" ;;
20007
as_fn_append CONFIG_FILES " '$ac_optarg'"
20008
ac_need_defaults=false;;
20009
--header | --heade | --head | --hea )
20012
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20014
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20015
ac_need_defaults=false;;
20017
# Conflict between --help and --header
20018
as_fn_error $? "ambiguous option: \`$1'
20019
Try \`$0 --help' for more information.";;
20020
--help | --hel | -h )
20021
$as_echo "$ac_cs_usage"; exit ;;
20022
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
20023
| -silent | --silent | --silen | --sile | --sil | --si | --s)
20026
# This is an error.
20027
-*) as_fn_error $? "unrecognized option: \`$1'
20028
Try \`$0 --help' for more information." ;;
20030
*) as_fn_append ac_config_targets " $1"
20031
ac_need_defaults=false ;;
20037
ac_configure_extra_args=
20039
if $ac_cs_silent; then
20041
ac_configure_extra_args="$ac_configure_extra_args --silent"
20045
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20046
if \$ac_cs_recheck; then
20047
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20049
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20050
CONFIG_SHELL='$SHELL'
20051
export CONFIG_SHELL
20056
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20060
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20061
## Running $as_me. ##
20067
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20071
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20074
# The HP-UX ksh and POSIX shell print the target directory to stdout
20075
# if CDPATH is set.
20076
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20078
sed_quote_subst='$sed_quote_subst'
20079
double_quote_subst='$double_quote_subst'
20080
delay_variable_subst='$delay_variable_subst'
20081
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20082
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20083
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20084
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20085
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20086
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20087
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20088
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20089
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20090
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20091
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20092
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20093
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20094
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20095
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20096
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20097
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20098
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20099
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20100
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20101
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20102
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20103
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20104
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20105
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20106
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20107
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20108
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20109
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20110
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20111
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20112
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20113
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20114
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20115
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20116
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20117
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20118
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20119
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20120
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20121
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20122
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20123
lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20124
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20125
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20126
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20127
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20128
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20129
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20130
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20131
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20132
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20133
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20134
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20135
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20136
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20137
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20138
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20139
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20140
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"`'
20141
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20142
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20143
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20144
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20145
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20146
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20147
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20148
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20149
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20150
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20151
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20152
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20153
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20154
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20155
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20156
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20157
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20158
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20159
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20160
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20161
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20162
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20163
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20164
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20165
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20166
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20167
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20168
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20169
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20170
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20171
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20172
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20173
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20174
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20175
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20176
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20177
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20178
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20179
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20180
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20181
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20182
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20183
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20184
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20185
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20186
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20187
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20188
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20189
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20190
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20191
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20192
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20193
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20194
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20195
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20196
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20197
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20198
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20199
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20200
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20201
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20202
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20203
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20204
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20205
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20206
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20207
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20208
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20209
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20210
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20211
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20212
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20213
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20214
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20215
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20216
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20217
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20218
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20219
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20220
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20221
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20222
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20223
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20224
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20225
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20226
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20227
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20228
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20229
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20230
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20231
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20232
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20233
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20234
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20235
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20236
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20237
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20238
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20239
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20240
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20241
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20242
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20243
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20244
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20245
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20246
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20247
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20248
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20249
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20250
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20251
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20252
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20253
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20254
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20255
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20256
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20257
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20258
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20259
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20260
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20261
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20262
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20263
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20264
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20265
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20266
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20267
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20268
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20269
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20270
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20273
LTCFLAGS='$LTCFLAGS'
20274
compiler='$compiler_DEFAULT'
20276
# A function that is used when there is no print builtin or printf.
20277
func_fallback_echo ()
20279
eval 'cat <<_LTECHO_EOF
20284
# Quote evaled strings.
20299
deplibs_check_method \
20304
sharedlib_from_linklib_cmd \
20306
archiver_list_spec \
20312
lt_cv_sys_global_symbol_pipe \
20313
lt_cv_sys_global_symbol_to_cdecl \
20314
lt_cv_sys_global_symbol_to_import \
20315
lt_cv_sys_global_symbol_to_c_name_address \
20316
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20317
lt_cv_nm_interface \
20318
nm_file_list_spec \
20319
lt_cv_truncate_bin \
20320
lt_prog_compiler_no_builtin_flag \
20321
lt_prog_compiler_pic \
20322
lt_prog_compiler_wl \
20323
lt_prog_compiler_static \
20324
lt_cv_prog_compiler_c_o \
20333
export_dynamic_flag_spec \
20334
whole_archive_flag_spec \
20335
compiler_needs_object \
20337
allow_undefined_flag \
20338
no_undefined_flag \
20339
hardcode_libdir_flag_spec \
20340
hardcode_libdir_separator \
20344
variables_saved_for_relink \
20346
library_names_spec \
20348
install_override_mode \
20352
compiler_lib_search_dirs \
20357
compiler_lib_search_path \
20361
lt_prog_compiler_no_builtin_flag_CXX \
20362
lt_prog_compiler_pic_CXX \
20363
lt_prog_compiler_wl_CXX \
20364
lt_prog_compiler_static_CXX \
20365
lt_cv_prog_compiler_c_o_CXX \
20366
export_dynamic_flag_spec_CXX \
20367
whole_archive_flag_spec_CXX \
20368
compiler_needs_object_CXX \
20370
allow_undefined_flag_CXX \
20371
no_undefined_flag_CXX \
20372
hardcode_libdir_flag_spec_CXX \
20373
hardcode_libdir_separator_CXX \
20374
exclude_expsyms_CXX \
20375
include_expsyms_CXX \
20376
file_list_spec_CXX \
20377
compiler_lib_search_dirs_CXX \
20378
predep_objects_CXX \
20379
postdep_objects_CXX \
20382
compiler_lib_search_path_CXX; do
20383
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20384
*[\\\\\\\`\\"\\\$]*)
20385
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20388
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20393
# Double-quote double-evaled strings.
20394
for var in reload_cmds \
20395
old_postinstall_cmds \
20396
old_postuninstall_cmds \
20398
extract_expsyms_cmds \
20399
old_archive_from_new_cmds \
20400
old_archive_from_expsyms_cmds \
20402
archive_expsym_cmds \
20404
module_expsym_cmds \
20405
export_symbols_cmds \
20409
postuninstall_cmds \
20411
sys_lib_search_path_spec \
20412
configure_time_dlsearch_path \
20413
configure_time_lt_sys_library_path \
20415
old_archive_cmds_CXX \
20416
old_archive_from_new_cmds_CXX \
20417
old_archive_from_expsyms_cmds_CXX \
20419
archive_expsym_cmds_CXX \
20421
module_expsym_cmds_CXX \
20422
export_symbols_cmds_CXX \
20424
postlink_cmds_CXX; do
20425
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20426
*[\\\\\\\`\\"\\\$]*)
20427
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20430
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20435
ac_aux_dir='$ac_aux_dir'
20437
# See if we are running on zsh, and set the options that allow our
20438
# commands through without removal of \ escapes INIT.
20439
if test -n "\${ZSH_VERSION+set}"; then
20440
setopt NO_GLOB_SUBST
20456
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20458
# Handling of arguments.
20459
for ac_config_target in $ac_config_targets
20461
case $ac_config_target in
20462
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20463
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20464
"../src/cubew-config-frontend.h") CONFIG_HEADERS="$CONFIG_HEADERS ../src/cubew-config-frontend.h" ;;
20465
"../src/tools/cubew_config/cubew_config_data_frontend.cpp") CONFIG_FILES="$CONFIG_FILES ../src/tools/cubew_config/cubew_config_data_frontend.cpp:../src/tools/cubew_config/cubew_config_data_build.cpp.in" ;;
20466
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20467
"../examples/Makefile.frontend") CONFIG_FILES="$CONFIG_FILES ../examples/Makefile.frontend" ;;
20468
"../test/test3/cube_self_test.c") CONFIG_FILES="$CONFIG_FILES ../test/test3/cube_self_test.c" ;;
20469
"../test/test3/cube_self_test3_4.c") CONFIG_FILES="$CONFIG_FILES ../test/test3/cube_self_test3_4.c" ;;
20470
"../test/test3/run_test_3.sh") CONFIG_FILES="$CONFIG_FILES ../test/test3/run_test_3.sh" ;;
20472
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20477
# If the user did not use the arguments to specify the items to instantiate,
20478
# then the envvar interface is used. Set only those that are not.
20479
# We use the long form for the default assignment because of an extremely
20480
# bizarre bug on SunOS 4.1.3.
20481
if $ac_need_defaults; then
20482
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20483
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20484
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20487
# Have a temporary directory for convenience. Make it in the build tree
20488
# simply because there is no reason against having it here, and in addition,
20489
# creating and moving files from /tmp can sometimes cause problems.
20490
# Hook for its removal unless debugging.
20491
# Note that there is a small window in which the directory will not be cleaned:
20492
# after its creation but before its name has been assigned to `$tmp'.
20496
trap 'exit_status=$?
20497
: "${ac_tmp:=$tmp}"
20498
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20500
trap 'as_fn_exit 1' 1 2 13 15
20502
# Create a (secure) tmp directory for tmp files.
20505
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20509
tmp=./conf$$-$RANDOM
20510
(umask 077 && mkdir "$tmp")
20511
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20514
# Set up the scripts for CONFIG_FILES section.
20515
# No need to generate them if there are no CONFIG_FILES.
20516
# This happens for instance with `./config.status config.h'.
20517
if test -n "$CONFIG_FILES"; then
20520
ac_cr=`echo X | tr X '\015'`
20521
# On cygwin, bash can eat \r inside `` if the user requested igncr.
20522
# But we know of no other shell where ac_cr would be empty at this
20523
# point, so we can use a bashism as a fallback.
20524
if test "x$ac_cr" = x; then
20525
eval ac_cr=\$\'\\r\'
20527
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20528
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20531
ac_cs_awk_cr=$ac_cr
20534
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20539
echo "cat >conf$$subs.awk <<_ACEOF" &&
20540
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20542
} >conf$$subs.sh ||
20543
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20544
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20546
for ac_last_try in false false false false false :; do
20547
. ./conf$$subs.sh ||
20548
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20550
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20551
if test $ac_delim_n = $ac_delim_num; then
20553
elif $ac_last_try; then
20554
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20556
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20559
rm -f conf$$subs.sh
20561
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20562
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20566
s/^/S["/; s/!.*/"]=/
20576
s/\(.\{148\}\)..*/\1/
20578
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20583
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20590
s/\(.\{148\}\)..*/\1/
20592
s/["\\]/\\&/g; s/^/"/; s/$/"/
20596
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20601
' <conf$$subs.awk | sed '
20606
' >>$CONFIG_STATUS || ac_write_fail=1
20607
rm -f conf$$subs.awk
20608
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20610
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20611
for (key in S) S_is_set[key] = 1
20617
nfields = split(line, field, "@")
20619
len = length(field[1])
20620
for (i = 2; i < nfields; i++) {
20622
keylen = length(key)
20623
if (S_is_set[key]) {
20625
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20626
len += length(value) + length(field[++i])
20637
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20638
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20639
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20642
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20643
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20646
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20647
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20648
# trailing colons and then remove the whole line if VPATH becomes empty
20649
# (actually we leave an empty line to preserve line numbers).
20650
if test "x$srcdir" = x.; then
20651
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20669
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20670
fi # test -n "$CONFIG_FILES"
20672
# Set up the scripts for CONFIG_HEADERS section.
20673
# No need to generate them if there are no CONFIG_HEADERS.
20674
# This happens for instance with `./config.status Makefile'.
20675
if test -n "$CONFIG_HEADERS"; then
20676
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20680
# Transform confdefs.h into an awk script `defines.awk', embedded as
20681
# here-document in config.status, that substitutes the proper values into
20682
# config.h.in to produce config.h.
20684
# Create a delimiter string that does not exist in confdefs.h, to ease
20685
# handling of long lines.
20687
for ac_last_try in false false :; do
20688
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20689
if test -z "$ac_tt"; then
20691
elif $ac_last_try; then
20692
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20694
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20698
# For the awk script, D is an array of macro values keyed by name,
20699
# likewise P contains macro parameters if any. Preserve backslash
20700
# newline sequences.
20702
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20704
s/.\{148\}/&'"$ac_delim"'/g
20707
s/^[ ]*#[ ]*define[ ][ ]*/ /
20714
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20716
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20720
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20721
D["\1"]=" \3\\\\\\n"\\/p
20723
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20728
s/.\{148\}/&'"$ac_delim"'/g
20733
s/["\\]/\\&/g; s/^/"/; s/$/"/p
20736
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20738
' <confdefs.h | sed '
20739
s/'"$ac_delim"'/"\\\
20740
"/g' >>$CONFIG_STATUS || ac_write_fail=1
20742
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20743
for (key in D) D_is_set[key] = 1
20746
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20748
split(line, arg, " ")
20749
if (arg[1] == "#") {
20753
defundef = substr(arg[1], 2)
20756
split(mac1, mac2, "(") #)
20758
prefix = substr(line, 1, index(line, defundef) - 1)
20759
if (D_is_set[macro]) {
20760
# Preserve the white space surrounding the "#".
20761
print prefix "define", macro P[macro] D[macro]
20764
# Replace #undef with comments. This is necessary, for example,
20765
# in the case of _POSIX_SOURCE, which is predefined and required
20766
# on some systems where configure will not decide to define it.
20767
if (defundef == "undef") {
20768
print "/*", prefix defundef, macro, "*/"
20776
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20777
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20778
fi # test -n "$CONFIG_HEADERS"
20781
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20786
:[FHLC]) ac_mode=$ac_tag; continue;;
20788
case $ac_mode$ac_tag in
20790
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20791
:[FH]-) ac_tag=-:-;;
20792
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20809
-) ac_f="$ac_tmp/stdin";;
20810
*) # Look for the file first in the build tree, then in the source tree
20811
# (if the path is not absolute). The absolute path cannot be DOS-style,
20812
# because $ac_f cannot contain `:'.
20816
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20818
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20820
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20821
as_fn_append ac_file_inputs " '$ac_f'"
20824
# Let's still pretend it is `configure' which instantiates (i.e., don't
20825
# use $as_me), people would be surprised to read:
20826
# /* config.h. Generated by config.status. */
20827
configure_input='Generated from '`
20828
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20830
if test x"$ac_file" != x-; then
20831
configure_input="$ac_file. $configure_input"
20832
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20833
$as_echo "$as_me: creating $ac_file" >&6;}
20835
# Neutralize special characters interpreted by sed in replacement strings.
20836
case $configure_input in #(
20837
*\&* | *\|* | *\\* )
20838
ac_sed_conf_input=`$as_echo "$configure_input" |
20839
sed 's/[\\\\&|]/\\\\&/g'`;; #(
20840
*) ac_sed_conf_input=$configure_input;;
20844
*:-:* | *:-) cat >"$ac_tmp/stdin" \
20845
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20850
ac_dir=`$as_dirname -- "$ac_file" ||
20851
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20852
X"$ac_file" : 'X\(//\)[^/]' \| \
20853
X"$ac_file" : 'X\(//\)$' \| \
20854
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20855
$as_echo X"$ac_file" |
20856
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20860
/^X\(\/\/\)[^/].*/{
20873
as_dir="$ac_dir"; as_fn_mkdir_p
20877
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20879
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20880
# A ".." for each directory in $ac_dir_suffix.
20881
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20882
case $ac_top_builddir_sub in
20883
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20884
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20887
ac_abs_top_builddir=$ac_pwd
20888
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20889
# for backward compatibility:
20890
ac_top_builddir=$ac_top_build_prefix
20893
.) # We are building in place.
20895
ac_top_srcdir=$ac_top_builddir_sub
20896
ac_abs_top_srcdir=$ac_pwd ;;
20897
[\\/]* | ?:[\\/]* ) # Absolute name.
20898
ac_srcdir=$srcdir$ac_dir_suffix;
20899
ac_top_srcdir=$srcdir
20900
ac_abs_top_srcdir=$srcdir ;;
20901
*) # Relative name.
20902
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20903
ac_top_srcdir=$ac_top_build_prefix$srcdir
20904
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20906
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20916
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20917
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20919
ac_MKDIR_P=$MKDIR_P
20921
[\\/$]* | ?:[\\/]* ) ;;
20922
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20926
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20927
# If the template does not know about datarootdir, expand it.
20928
# FIXME: This hack should be removed a few years after 2.60.
20929
ac_datarootdir_hack=; ac_datarootdir_seen=
20940
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20941
*datarootdir*) ac_datarootdir_seen=yes;;
20942
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20943
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20944
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20946
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20947
ac_datarootdir_hack='
20948
s&@datadir@&$datadir&g
20949
s&@docdir@&$docdir&g
20950
s&@infodir@&$infodir&g
20951
s&@localedir@&$localedir&g
20952
s&@mandir@&$mandir&g
20953
s&\\\${datarootdir}&$datarootdir&g' ;;
20957
# Neutralize VPATH when `$srcdir' = `.'.
20958
# Shell code in configure.ac might set extrasub.
20959
# FIXME: do we really want to maintain this feature?
20960
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20961
ac_sed_extra="$ac_vpsub
20964
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20966
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20967
s|@configure_input@|$ac_sed_conf_input|;t t
20968
s&@top_builddir@&$ac_top_builddir_sub&;t t
20969
s&@top_build_prefix@&$ac_top_build_prefix&;t t
20970
s&@srcdir@&$ac_srcdir&;t t
20971
s&@abs_srcdir@&$ac_abs_srcdir&;t t
20972
s&@top_srcdir@&$ac_top_srcdir&;t t
20973
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20974
s&@builddir@&$ac_builddir&;t t
20975
s&@abs_builddir@&$ac_abs_builddir&;t t
20976
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20977
s&@INSTALL@&$ac_INSTALL&;t t
20978
s&@MKDIR_P@&$ac_MKDIR_P&;t t
20979
$ac_datarootdir_hack
20981
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20982
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20984
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20985
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20986
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20987
"$ac_tmp/out"`; test -z "$ac_out"; } &&
20988
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20989
which seems to be undefined. Please make sure it is defined" >&5
20990
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20991
which seems to be undefined. Please make sure it is defined" >&2;}
20993
rm -f "$ac_tmp/stdin"
20995
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20996
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20998
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21004
if test x"$ac_file" != x-; then
21006
$as_echo "/* $configure_input */" \
21007
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21008
} >"$ac_tmp/config.h" \
21009
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21010
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21011
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21012
$as_echo "$as_me: $ac_file is unchanged" >&6;}
21015
mv "$ac_tmp/config.h" "$ac_file" \
21016
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21019
$as_echo "/* $configure_input */" \
21020
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21021
|| as_fn_error $? "could not create -" "$LINENO" 5
21023
# Compute "$ac_file"'s index in $config_headers.
21026
for _am_header in $config_headers :; do
21027
case $_am_header in
21028
$_am_arg | $_am_arg:* )
21031
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
21034
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21035
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21036
X"$_am_arg" : 'X\(//\)[^/]' \| \
21037
X"$_am_arg" : 'X\(//\)$' \| \
21038
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21039
$as_echo X"$_am_arg" |
21040
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21044
/^X\(\/\/\)[^/].*/{
21056
s/.*/./; q'`/stamp-h$_am_stamp_count
21059
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21060
$as_echo "$as_me: executing $ac_file commands" >&6;}
21065
case $ac_file$ac_mode in
21066
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21067
# Older Autoconf quotes --file arguments for eval, but not when files
21068
# are listed without --file. Let's play safe and only enable the eval
21069
# if we detect the quoting.
21070
case $CONFIG_FILES in
21071
*\'*) eval set x "$CONFIG_FILES" ;;
21072
*) set x $CONFIG_FILES ;;
21077
# Strip MF so we end up with the name of the file.
21078
mf=`echo "$mf" | sed -e 's/:.*$//'`
21079
# Check whether this is an Automake generated Makefile or not.
21080
# We used to match only the files named 'Makefile.in', but
21081
# some people rename them; so instead we look at the file content.
21082
# Grep'ing the first line is not enough: some people post-process
21083
# each Makefile.in and add a new line on top of each file to say so.
21084
# Grep'ing the whole file is not good either: AIX grep has a line
21085
# limit of 2048, but all sed's we know have understand at least 4000.
21086
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21087
dirpart=`$as_dirname -- "$mf" ||
21088
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21089
X"$mf" : 'X\(//\)[^/]' \| \
21090
X"$mf" : 'X\(//\)$' \| \
21091
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21093
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21097
/^X\(\/\/\)[^/].*/{
21113
# Extract the definition of DEPDIR, am__include, and am__quote
21114
# from the Makefile without running 'make'.
21115
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21116
test -z "$DEPDIR" && continue
21117
am__include=`sed -n 's/^am__include = //p' < "$mf"`
21118
test -z "$am__include" && continue
21119
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21120
# Find all dependency output files, they are included files with
21121
# $(DEPDIR) in their names. We invoke sed twice because it is the
21122
# simplest approach to changing $(DEPDIR) to its actual value in the
21124
for file in `sed -n "
21125
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21126
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21127
# Make sure the directory exists.
21128
test -f "$dirpart/$file" && continue
21129
fdir=`$as_dirname -- "$file" ||
21130
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21131
X"$file" : 'X\(//\)[^/]' \| \
21132
X"$file" : 'X\(//\)$' \| \
21133
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21134
$as_echo X"$file" |
21135
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21139
/^X\(\/\/\)[^/].*/{
21152
as_dir=$dirpart/$fdir; as_fn_mkdir_p
21153
# echo "creating $dirpart/$file"
21154
echo '# dummy' > "$dirpart/$file"
21161
# See if we are running on zsh, and set the options that allow our
21162
# commands through without removal of \ escapes.
21163
if test -n "${ZSH_VERSION+set}"; then
21164
setopt NO_GLOB_SUBST
21168
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21171
cat <<_LT_EOF >> "$cfgfile"
21173
# Generated automatically by $as_me ($PACKAGE) $VERSION
21174
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21175
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21177
# Provide generalized library-building support services.
21178
# Written by Gordon Matzigkeit, 1996
21180
# Copyright (C) 2014 Free Software Foundation, Inc.
21181
# This is free software; see the source for copying conditions. There is NO
21182
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21184
# GNU Libtool is free software; you can redistribute it and/or modify
21185
# it under the terms of the GNU General Public License as published by
21186
# the Free Software Foundation; either version 2 of of the License, or
21187
# (at your option) any later version.
21189
# As a special exception to the GNU General Public License, if you
21190
# distribute this file as part of a program or library that is built
21191
# using GNU Libtool, you may include this file under the same
21192
# distribution terms that you use for the rest of that program.
21194
# GNU Libtool is distributed in the hope that it will be useful, but
21195
# WITHOUT ANY WARRANTY; without even the implied warranty of
21196
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21197
# GNU General Public License for more details.
21199
# You should have received a copy of the GNU General Public License
21200
# along with this program. If not, see <http://www.gnu.org/licenses/>.
21203
# The names of the tagged configurations supported by this script.
21204
available_tags='CXX '
21206
# Configured defaults for sys_lib_dlsearch_path munging.
21207
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21209
# ### BEGIN LIBTOOL CONFIG
21211
# Which release of libtool.m4 was used?
21212
macro_version=$macro_version
21213
macro_revision=$macro_revision
21215
# Whether or not to build shared libraries.
21216
build_libtool_libs=$enable_shared
21218
# Whether or not to build static libraries.
21219
build_old_libs=$enable_static
21221
# What type of objects to build.
21224
# Whether or not to optimize for fast installation.
21225
fast_install=$enable_fast_install
21227
# Shared archive member basename,for filename based shared library versioning on AIX.
21228
shared_archive_member_spec=$shared_archive_member_spec
21230
# Shell to use when invoking shell scripts.
21233
# An echo program that protects backslashes.
21236
# The PATH separator for the build system.
21237
PATH_SEPARATOR=$lt_PATH_SEPARATOR
21240
host_alias=$host_alias
21244
# The build system.
21245
build_alias=$build_alias
21249
# A sed program that does not truncate output.
21252
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21253
Xsed="\$SED -e 1s/^X//"
21255
# A grep program that handles long lines.
21261
# A literal string matcher.
21264
# A BSD- or MS-compatible name lister.
21267
# Whether we need soft or hard links.
21270
# What is the maximum length of a command?
21271
max_cmd_len=$max_cmd_len
21273
# Object file suffix (normally "o").
21276
# Executable file suffix (normally "").
21279
# whether the shell understands "unset".
21282
# turn spaces into newlines.
21285
# turn newlines into spaces.
21288
# convert \$build file names to \$host format.
21289
to_host_file_cmd=$lt_cv_to_host_file_cmd
21291
# convert \$build files to toolchain format.
21292
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21294
# An object symbol dumper.
21295
OBJDUMP=$lt_OBJDUMP
21297
# Method to check whether dependent libraries are shared objects.
21298
deplibs_check_method=$lt_deplibs_check_method
21300
# Command to use when deplibs_check_method = "file_magic".
21301
file_magic_cmd=$lt_file_magic_cmd
21303
# How to find potential files when deplibs_check_method = "file_magic".
21304
file_magic_glob=$lt_file_magic_glob
21306
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21307
want_nocaseglob=$lt_want_nocaseglob
21309
# DLL creation program.
21310
DLLTOOL=$lt_DLLTOOL
21312
# Command to associate shared and link libraries.
21313
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21318
# Flags to create an archive (by configure).
21319
lt_ar_flags=$lt_ar_flags
21321
# Flags to create an archive.
21322
AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21324
# How to feed a file listing to the archiver.
21325
archiver_list_spec=$lt_archiver_list_spec
21327
# A symbol stripping program.
21330
# Commands used to install an old-style archive.
21332
old_postinstall_cmds=$lt_old_postinstall_cmds
21333
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21335
# Whether to use a lock for old archive extraction.
21336
lock_old_archive_extraction=$lock_old_archive_extraction
21341
# LTCC compiler flags.
21342
LTCFLAGS=$lt_CFLAGS
21344
# Take the output of nm and produce a listing of raw symbols and C names.
21345
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21347
# Transform the output of nm in a proper C declaration.
21348
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21350
# Transform the output of nm into a list of symbols to manually relocate.
21351
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21353
# Transform the output of nm in a C name address pair.
21354
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21356
# Transform the output of nm in a C name address pair when lib prefix is needed.
21357
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21359
# The name lister interface.
21360
nm_interface=$lt_lt_cv_nm_interface
21362
# Specify filename containing input files for \$NM.
21363
nm_file_list_spec=$lt_nm_file_list_spec
21365
# The root where to search for dependent libraries,and where our libraries should be installed.
21366
lt_sysroot=$lt_sysroot
21368
# Command to truncate a binary pipe.
21369
lt_truncate_bin=$lt_lt_cv_truncate_bin
21371
# The name of the directory that contains temporary libtool files.
21374
# Used to examine libraries when file_magic_cmd begins with "file".
21375
MAGIC_CMD=$MAGIC_CMD
21377
# Must we lock files when doing compilation?
21378
need_locks=$lt_need_locks
21381
MANIFEST_TOOL=$lt_MANIFEST_TOOL
21383
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21384
DSYMUTIL=$lt_DSYMUTIL
21386
# Tool to change global to local symbols on Mac OS X.
21389
# Tool to manipulate fat objects and archives on Mac OS X.
21392
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21395
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21396
OTOOL64=$lt_OTOOL64
21398
# Old archive suffix (normally "a").
21401
# Shared library suffix (normally ".so").
21402
shrext_cmds=$lt_shrext_cmds
21404
# The commands to extract the exported symbol list from a shared archive.
21405
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21407
# Variables whose values should be saved in libtool wrapper scripts and
21408
# restored at link time.
21409
variables_saved_for_relink=$lt_variables_saved_for_relink
21411
# Do we need the "lib" prefix for modules?
21412
need_lib_prefix=$need_lib_prefix
21414
# Do we need a version for libraries?
21415
need_version=$need_version
21417
# Library versioning type.
21418
version_type=$version_type
21420
# Shared library runtime path variable.
21421
runpath_var=$runpath_var
21423
# Shared library path variable.
21424
shlibpath_var=$shlibpath_var
21426
# Is shlibpath searched before the hard-coded library search path?
21427
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21429
# Format of library name prefix.
21430
libname_spec=$lt_libname_spec
21432
# List of archive names. First name is the real one, the rest are links.
21433
# The last name is the one that the linker finds with -lNAME
21434
library_names_spec=$lt_library_names_spec
21436
# The coded name of the library, if different from the real name.
21437
soname_spec=$lt_soname_spec
21439
# Permission mode override for installation of shared libraries.
21440
install_override_mode=$lt_install_override_mode
21442
# Command to use after installation of a shared archive.
21443
postinstall_cmds=$lt_postinstall_cmds
21445
# Command to use after uninstallation of a shared archive.
21446
postuninstall_cmds=$lt_postuninstall_cmds
21448
# Commands used to finish a libtool library installation in a directory.
21449
finish_cmds=$lt_finish_cmds
21451
# As "finish_cmds", except a single script fragment to be evaled but
21453
finish_eval=$lt_finish_eval
21455
# Whether we should hardcode library paths into libraries.
21456
hardcode_into_libs=$hardcode_into_libs
21458
# Compile-time system search path for libraries.
21459
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21461
# Detected run-time system search path for libraries.
21462
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21464
# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21465
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21467
# Whether dlopen is supported.
21468
dlopen_support=$enable_dlopen
21470
# Whether dlopen of programs is supported.
21471
dlopen_self=$enable_dlopen_self
21473
# Whether dlopen of statically linked programs is supported.
21474
dlopen_self_static=$enable_dlopen_self_static
21476
# Commands to strip libraries.
21477
old_striplib=$lt_old_striplib
21478
striplib=$lt_striplib
21481
# The linker used to build libraries.
21484
# How to create reloadable object files.
21485
reload_flag=$lt_reload_flag
21486
reload_cmds=$lt_reload_cmds
21488
# Commands used to build an old-style archive.
21489
old_archive_cmds=$lt_old_archive_cmds
21491
# A language specific compiler.
21494
# Is the compiler the GNU compiler?
21497
# Compiler flag to turn off builtin functions.
21498
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21500
# Additional compiler flags for building library objects.
21501
pic_flag=$lt_lt_prog_compiler_pic
21503
# How to pass a linker flag through the compiler.
21504
wl=$lt_lt_prog_compiler_wl
21506
# Compiler flag to prevent dynamic linking.
21507
link_static_flag=$lt_lt_prog_compiler_static
21509
# Does compiler simultaneously support -c and -o options?
21510
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21512
# Whether or not to add -lc for building shared libraries.
21513
build_libtool_need_lc=$archive_cmds_need_lc
21515
# Whether or not to disallow shared libs when runtime libs are static.
21516
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21518
# Compiler flag to allow reflexive dlopens.
21519
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21521
# Compiler flag to generate shared objects directly from archives.
21522
whole_archive_flag_spec=$lt_whole_archive_flag_spec
21524
# Whether the compiler copes with passing no objects directly.
21525
compiler_needs_object=$lt_compiler_needs_object
21527
# Create an old-style archive from a shared archive.
21528
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21530
# Create a temporary old-style archive to link instead of a shared archive.
21531
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21533
# Commands used to build a shared archive.
21534
archive_cmds=$lt_archive_cmds
21535
archive_expsym_cmds=$lt_archive_expsym_cmds
21537
# Commands used to build a loadable module if different from building
21538
# a shared archive.
21539
module_cmds=$lt_module_cmds
21540
module_expsym_cmds=$lt_module_expsym_cmds
21542
# Whether we are building with GNU ld or not.
21543
with_gnu_ld=$lt_with_gnu_ld
21545
# Flag that allows shared libraries with undefined symbols to be built.
21546
allow_undefined_flag=$lt_allow_undefined_flag
21548
# Flag that enforces no undefined symbols.
21549
no_undefined_flag=$lt_no_undefined_flag
21551
# Flag to hardcode \$libdir into a binary during linking.
21552
# This must work even if \$libdir does not exist
21553
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21555
# Whether we need a single "-rpath" flag with a separated argument.
21556
hardcode_libdir_separator=$lt_hardcode_libdir_separator
21558
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21559
# DIR into the resulting binary.
21560
hardcode_direct=$hardcode_direct
21562
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21563
# DIR into the resulting binary and the resulting library dependency is
21564
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21565
# library is relocated.
21566
hardcode_direct_absolute=$hardcode_direct_absolute
21568
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21569
# into the resulting binary.
21570
hardcode_minus_L=$hardcode_minus_L
21572
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21573
# into the resulting binary.
21574
hardcode_shlibpath_var=$hardcode_shlibpath_var
21576
# Set to "yes" if building a shared library automatically hardcodes DIR
21577
# into the library and all subsequent libraries and executables linked
21579
hardcode_automatic=$hardcode_automatic
21581
# Set to yes if linker adds runtime paths of dependent libraries
21582
# to runtime path list.
21583
inherit_rpath=$inherit_rpath
21585
# Whether libtool must link a program against all its dependency libraries.
21586
link_all_deplibs=$link_all_deplibs
21588
# Set to "yes" if exported symbols are required.
21589
always_export_symbols=$always_export_symbols
21591
# The commands to list exported symbols.
21592
export_symbols_cmds=$lt_export_symbols_cmds
21594
# Symbols that should not be listed in the preloaded symbols.
21595
exclude_expsyms=$lt_exclude_expsyms
21597
# Symbols that must always be exported.
21598
include_expsyms=$lt_include_expsyms
21600
# Commands necessary for linking programs (against libraries) with templates.
21601
prelink_cmds=$lt_prelink_cmds
21603
# Commands necessary for finishing linking programs.
21604
postlink_cmds=$lt_postlink_cmds
21606
# Specify filename containing input files.
21607
file_list_spec=$lt_file_list_spec
21609
# How to hardcode a shared library path into an executable.
21610
hardcode_action=$hardcode_action
21612
# The directories searched by this compiler when creating a shared library.
21613
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21615
# Dependencies to place before and after the objects being linked to
21616
# create a shared library.
21617
predep_objects=$lt_predep_objects
21618
postdep_objects=$lt_postdep_objects
21619
predeps=$lt_predeps
21620
postdeps=$lt_postdeps
21622
# The library search path used internally by the compiler when linking
21623
# a shared library.
21624
compiler_lib_search_path=$lt_compiler_lib_search_path
21626
# ### END LIBTOOL CONFIG
21630
cat <<'_LT_EOF' >> "$cfgfile"
21632
# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21634
# func_munge_path_list VARIABLE PATH
21635
# -----------------------------------
21636
# VARIABLE is name of variable containing _space_ separated list of
21637
# directories to be munged by the contents of PATH, which is string
21640
# string "DIR[ DIR]" will be prepended to VARIABLE
21642
# string "DIR[ DIR]" will be appended to VARIABLE
21643
# "DIRP[:DIRP]::[DIRA:]DIRA"
21644
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21645
# "DIRA[ DIRA]" will be appended to VARIABLE
21647
# VARIABLE will be replaced by "DIR[ DIR]"
21648
func_munge_path_list ()
21654
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21657
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21660
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21661
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21664
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21670
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21671
func_cc_basename ()
21673
for cc_temp in $*""; do
21675
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21676
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21681
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21685
# ### END FUNCTIONS SHARED WITH CONFIGURE
21691
cat <<\_LT_EOF >> "$cfgfile"
21692
# AIX sometimes has problems with the GCC collect2 program. For some
21693
# reason, if we set the COLLECT_NAMES environment variable, the problems
21694
# vanish in a puff of smoke.
21695
if test set != "${COLLECT_NAMES+set}"; then
21697
export COLLECT_NAMES
21704
ltmain=$ac_aux_dir/ltmain.sh
21707
# We use sed instead of cat because bash on DJGPP gets confused if
21708
# if finds mixed CR/LF and LF-only lines. Since sed operates in
21709
# text mode, it properly converts lines to CR/LF. This bash problem
21710
# is reportedly fixed, but why not run on old versions too?
21711
sed '$q' "$ltmain" >> "$cfgfile" \
21712
|| (rm -f "$cfgfile"; exit 1)
21714
mv -f "$cfgfile" "$ofile" ||
21715
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21719
cat <<_LT_EOF >> "$ofile"
21721
# ### BEGIN LIBTOOL TAG CONFIG: CXX
21723
# The linker used to build libraries.
21726
# How to create reloadable object files.
21727
reload_flag=$lt_reload_flag_CXX
21728
reload_cmds=$lt_reload_cmds_CXX
21730
# Commands used to build an old-style archive.
21731
old_archive_cmds=$lt_old_archive_cmds_CXX
21733
# A language specific compiler.
21734
CC=$lt_compiler_CXX
21736
# Is the compiler the GNU compiler?
21739
# Compiler flag to turn off builtin functions.
21740
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21742
# Additional compiler flags for building library objects.
21743
pic_flag=$lt_lt_prog_compiler_pic_CXX
21745
# How to pass a linker flag through the compiler.
21746
wl=$lt_lt_prog_compiler_wl_CXX
21748
# Compiler flag to prevent dynamic linking.
21749
link_static_flag=$lt_lt_prog_compiler_static_CXX
21751
# Does compiler simultaneously support -c and -o options?
21752
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21754
# Whether or not to add -lc for building shared libraries.
21755
build_libtool_need_lc=$archive_cmds_need_lc_CXX
21757
# Whether or not to disallow shared libs when runtime libs are static.
21758
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21760
# Compiler flag to allow reflexive dlopens.
21761
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21763
# Compiler flag to generate shared objects directly from archives.
21764
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21766
# Whether the compiler copes with passing no objects directly.
21767
compiler_needs_object=$lt_compiler_needs_object_CXX
21769
# Create an old-style archive from a shared archive.
21770
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21772
# Create a temporary old-style archive to link instead of a shared archive.
21773
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21775
# Commands used to build a shared archive.
21776
archive_cmds=$lt_archive_cmds_CXX
21777
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21779
# Commands used to build a loadable module if different from building
21780
# a shared archive.
21781
module_cmds=$lt_module_cmds_CXX
21782
module_expsym_cmds=$lt_module_expsym_cmds_CXX
21784
# Whether we are building with GNU ld or not.
21785
with_gnu_ld=$lt_with_gnu_ld_CXX
21787
# Flag that allows shared libraries with undefined symbols to be built.
21788
allow_undefined_flag=$lt_allow_undefined_flag_CXX
21790
# Flag that enforces no undefined symbols.
21791
no_undefined_flag=$lt_no_undefined_flag_CXX
21793
# Flag to hardcode \$libdir into a binary during linking.
21794
# This must work even if \$libdir does not exist
21795
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21797
# Whether we need a single "-rpath" flag with a separated argument.
21798
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21800
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21801
# DIR into the resulting binary.
21802
hardcode_direct=$hardcode_direct_CXX
21804
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21805
# DIR into the resulting binary and the resulting library dependency is
21806
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21807
# library is relocated.
21808
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21810
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21811
# into the resulting binary.
21812
hardcode_minus_L=$hardcode_minus_L_CXX
21814
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21815
# into the resulting binary.
21816
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21818
# Set to "yes" if building a shared library automatically hardcodes DIR
21819
# into the library and all subsequent libraries and executables linked
21821
hardcode_automatic=$hardcode_automatic_CXX
21823
# Set to yes if linker adds runtime paths of dependent libraries
21824
# to runtime path list.
21825
inherit_rpath=$inherit_rpath_CXX
21827
# Whether libtool must link a program against all its dependency libraries.
21828
link_all_deplibs=$link_all_deplibs_CXX
21830
# Set to "yes" if exported symbols are required.
21831
always_export_symbols=$always_export_symbols_CXX
21833
# The commands to list exported symbols.
21834
export_symbols_cmds=$lt_export_symbols_cmds_CXX
21836
# Symbols that should not be listed in the preloaded symbols.
21837
exclude_expsyms=$lt_exclude_expsyms_CXX
21839
# Symbols that must always be exported.
21840
include_expsyms=$lt_include_expsyms_CXX
21842
# Commands necessary for linking programs (against libraries) with templates.
21843
prelink_cmds=$lt_prelink_cmds_CXX
21845
# Commands necessary for finishing linking programs.
21846
postlink_cmds=$lt_postlink_cmds_CXX
21848
# Specify filename containing input files.
21849
file_list_spec=$lt_file_list_spec_CXX
21851
# How to hardcode a shared library path into an executable.
21852
hardcode_action=$hardcode_action_CXX
21854
# The directories searched by this compiler when creating a shared library.
21855
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21857
# Dependencies to place before and after the objects being linked to
21858
# create a shared library.
21859
predep_objects=$lt_predep_objects_CXX
21860
postdep_objects=$lt_postdep_objects_CXX
21861
predeps=$lt_predeps_CXX
21862
postdeps=$lt_postdeps_CXX
21864
# The library search path used internally by the compiler when linking
21865
# a shared library.
21866
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21868
# ### END LIBTOOL TAG CONFIG: CXX
21872
"../test/test3/cube_self_test.c":F) \
21874
chmod +x ../test/test3/cube_self_test.c
21876
"../test/test3/cube_self_test3_4.c":F) \
21878
chmod +x ../test/test3/cube_self_test3_4.c
21880
"../test/test3/run_test_3.sh":F) \
21882
chmod +x ../test/test3/run_test_3.sh
21891
ac_clean_files=$ac_clean_files_save
21893
test $ac_write_fail = 0 ||
21894
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21897
# configure is writing to config.log, and then calls config.status.
21898
# config.status does its own redirection, appending to config.log.
21899
# Unfortunately, on DOS this fails, as config.log is still kept open
21900
# by configure, so config.status won't be able to write to it; its
21901
# output is simply discarded. So we exec the FD to /dev/null,
21902
# effectively closing config.log, so it can be properly (re)opened and
21903
# appended to by config.status. When coming back to configure, we
21904
# need to make the FD available again.
21905
if test "$no_create" != yes; then
21907
ac_config_status_args=
21908
test "$silent" = yes &&
21909
ac_config_status_args="$ac_config_status_args --quiet"
21911
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21913
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
21914
# would make configure fail if this is the last instruction.
21915
$ac_cs_success || as_fn_exit 1
21917
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21918
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21919
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}