2938
2945
ac_config_headers="$ac_config_headers config.h"
2941
# checks for programs.
2943
ac_cpp='$CXXCPP $CPPFLAGS'
2944
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2947
if test -z "$CXX"; then
2948
if test -n "$CCC"; then
2951
if test -n "$ac_tool_prefix"; then
2952
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2954
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2955
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957
$as_echo_n "checking for $ac_word... " >&6; }
2958
if test "${ac_cv_prog_CXX+set}" = set; then :
2959
$as_echo_n "(cached) " >&6
2961
if test -n "$CXX"; then
2962
ac_cv_prog_CXX="$CXX" # Let the user override the test.
2964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968
test -z "$as_dir" && as_dir=.
2969
for ac_exec_ext in '' $ac_executable_extensions; do
2970
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2972
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982
if test -n "$CXX"; then
2983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2984
$as_echo "$CXX" >&6; }
2986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987
$as_echo "no" >&6; }
2991
test -n "$CXX" && break
2994
if test -z "$CXX"; then
2996
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2998
# Extract the first word of "$ac_prog", so it can be a program name with args.
2999
set dummy $ac_prog; ac_word=$2
3000
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001
$as_echo_n "checking for $ac_word... " >&6; }
3002
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3003
$as_echo_n "(cached) " >&6
3005
if test -n "$ac_ct_CXX"; then
3006
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012
test -z "$as_dir" && as_dir=.
3013
for ac_exec_ext in '' $ac_executable_extensions; do
3014
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015
ac_cv_prog_ac_ct_CXX="$ac_prog"
3016
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3026
if test -n "$ac_ct_CXX"; then
3027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3028
$as_echo "$ac_ct_CXX" >&6; }
3030
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031
$as_echo "no" >&6; }
3035
test -n "$ac_ct_CXX" && break
3038
if test "x$ac_ct_CXX" = x; then
3041
case $cross_compiling:$ac_tool_warned in
3043
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045
ac_tool_warned=yes ;;
3053
# Provide some information about the compiler.
3054
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3057
for ac_option in --version -v -V -qversion; do
3058
{ { ac_try="$ac_compiler $ac_option >&5"
3060
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061
*) ac_try_echo=$ac_try;;
3063
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064
$as_echo "$ac_try_echo"; } >&5
3065
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3067
if test -s conftest.err; then
3069
... rest of stderr output deleted ...
3070
10q' conftest.err >conftest.er1
3071
cat conftest.er1 >&5
3072
rm -f conftest.er1 conftest.err
3074
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075
test $ac_status = 0; }
3078
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079
/* end confdefs.h. */
3084
FILE *f = fopen ("conftest.out", "w");
3085
return ferror (f) || fclose (f) != 0;
3091
ac_clean_files_save=$ac_clean_files
3092
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3093
# Try to create an executable without -o first, disregard a.out.
3094
# It will help us diagnose broken compilers, and finding out an intuition
3096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3097
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3098
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3100
# The possible output files:
3101
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3104
for ac_file in $ac_files
3107
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3108
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3113
if { { ac_try="$ac_link_default"
3115
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116
*) ac_try_echo=$ac_try;;
3118
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119
$as_echo "$ac_try_echo"; } >&5
3120
(eval "$ac_link_default") 2>&5
3122
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123
test $ac_status = 0; }; then :
3124
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3125
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3126
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3127
# so that the user can short-circuit this test for compilers unknown to
3129
for ac_file in $ac_files ''
3131
test -f "$ac_file" || continue
3133
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3136
# We found the default executable, but exeext='' is most
3140
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3142
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144
# We set ac_cv_exeext here because the later test for it is not
3145
# safe: cross compilers may not add the suffix if given an `-o'
3146
# argument, so we may need to know it at that point already.
3147
# Even if this section looks crufty: it has the advantage of
3154
test "$ac_cv_exeext" = no && ac_cv_exeext=
3159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3160
$as_echo "$ac_file" >&6; }
3161
if test -z "$ac_file"; then :
3162
$as_echo "$as_me: failed program was:" >&5
3163
sed 's/^/| /' conftest.$ac_ext >&5
3165
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167
{ as_fn_set_status 77
3168
as_fn_error "C++ compiler cannot create executables
3169
See \`config.log' for more details." "$LINENO" 5; }; }
3171
ac_exeext=$ac_cv_exeext
3173
# Check that the compiler produces executables we can run. If not, either
3174
# the compiler is broken, or we cross compile.
3175
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3176
$as_echo_n "checking whether the C++ compiler works... " >&6; }
3177
# If not cross compiling, check that we can run a simple program.
3178
if test "$cross_compiling" != yes; then
3179
if { ac_try='./$ac_file'
3180
{ { case "(($ac_try" in
3181
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182
*) ac_try_echo=$ac_try;;
3184
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185
$as_echo "$ac_try_echo"; } >&5
3186
(eval "$ac_try") 2>&5
3188
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189
test $ac_status = 0; }; }; then
3192
if test "$cross_compiling" = maybe; then
3195
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197
as_fn_error "cannot run C++ compiled programs.
3198
If you meant to cross compile, use \`--host'.
3199
See \`config.log' for more details." "$LINENO" 5; }
3203
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3204
$as_echo "yes" >&6; }
3206
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3207
ac_clean_files=$ac_clean_files_save
3208
# Check that the compiler produces executables we can run. If not, either
3209
# the compiler is broken, or we cross compile.
3210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3211
$as_echo_n "checking whether we are cross compiling... " >&6; }
3212
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3213
$as_echo "$cross_compiling" >&6; }
3215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3216
$as_echo_n "checking for suffix of executables... " >&6; }
3217
if { { ac_try="$ac_link"
3219
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220
*) ac_try_echo=$ac_try;;
3222
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223
$as_echo "$ac_try_echo"; } >&5
3224
(eval "$ac_link") 2>&5
3226
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227
test $ac_status = 0; }; then :
3228
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3229
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3230
# work properly (i.e., refer to `conftest.exe'), while it won't with
3232
for ac_file in conftest.exe conftest conftest.*; do
3233
test -f "$ac_file" || continue
3235
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3236
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3242
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244
as_fn_error "cannot compute suffix of executables: cannot compile and link
3245
See \`config.log' for more details." "$LINENO" 5; }
3247
rm -f conftest$ac_cv_exeext
3248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3249
$as_echo "$ac_cv_exeext" >&6; }
3251
rm -f conftest.$ac_ext
3252
EXEEXT=$ac_cv_exeext
3254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3255
$as_echo_n "checking for suffix of object files... " >&6; }
3256
if test "${ac_cv_objext+set}" = set; then :
3257
$as_echo_n "(cached) " >&6
3259
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260
/* end confdefs.h. */
3270
rm -f conftest.o conftest.obj
3271
if { { ac_try="$ac_compile"
3273
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274
*) ac_try_echo=$ac_try;;
3276
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277
$as_echo "$ac_try_echo"; } >&5
3278
(eval "$ac_compile") 2>&5
3280
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281
test $ac_status = 0; }; then :
3282
for ac_file in conftest.o conftest.obj conftest.*; do
3283
test -f "$ac_file" || continue;
3285
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3286
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3291
$as_echo "$as_me: failed program was:" >&5
3292
sed 's/^/| /' conftest.$ac_ext >&5
3294
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296
as_fn_error "cannot compute suffix of object files: cannot compile
3297
See \`config.log' for more details." "$LINENO" 5; }
3299
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3301
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3302
$as_echo "$ac_cv_objext" >&6; }
3303
OBJEXT=$ac_cv_objext
3305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3306
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3307
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3308
$as_echo_n "(cached) " >&6
3310
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311
/* end confdefs.h. */
3324
if ac_fn_cxx_try_compile "$LINENO"; then :
3329
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3334
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3335
if test $ac_compiler_gnu = yes; then
3340
ac_test_CXXFLAGS=${CXXFLAGS+set}
3341
ac_save_CXXFLAGS=$CXXFLAGS
3342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3343
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3344
if test "${ac_cv_prog_cxx_g+set}" = set; then :
3345
$as_echo_n "(cached) " >&6
3347
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3348
ac_cxx_werror_flag=yes
3351
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352
/* end confdefs.h. */
3362
if ac_fn_cxx_try_compile "$LINENO"; then :
3363
ac_cv_prog_cxx_g=yes
3366
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367
/* end confdefs.h. */
3377
if ac_fn_cxx_try_compile "$LINENO"; then :
3380
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3382
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383
/* end confdefs.h. */
3393
if ac_fn_cxx_try_compile "$LINENO"; then :
3394
ac_cv_prog_cxx_g=yes
3396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3403
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3404
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3405
if test "$ac_test_CXXFLAGS" = set; then
3406
CXXFLAGS=$ac_save_CXXFLAGS
3407
elif test $ac_cv_prog_cxx_g = yes; then
3408
if test "$GXX" = yes; then
3414
if test "$GXX" = yes; then
3421
ac_cpp='$CPP $CPPFLAGS'
3422
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2950
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2955
macro_version='2.2.6b'
2956
macro_revision='1.3017'
2970
ltmain="$ac_aux_dir/ltmain.sh"
2972
# Make sure we can run config.sub.
2973
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2974
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2976
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2977
$as_echo_n "checking build system type... " >&6; }
2978
if test "${ac_cv_build+set}" = set; then :
2979
$as_echo_n "(cached) " >&6
2981
ac_build_alias=$build_alias
2982
test "x$ac_build_alias" = x &&
2983
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2984
test "x$ac_build_alias" = x &&
2985
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2986
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2987
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2991
$as_echo "$ac_cv_build" >&6; }
2992
case $ac_cv_build in
2994
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2997
ac_save_IFS=$IFS; IFS='-'
3003
# Remember, the first character of IFS is used to create $*,
3004
# except with old shells:
3007
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3010
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3011
$as_echo_n "checking host system type... " >&6; }
3012
if test "${ac_cv_host+set}" = set; then :
3013
$as_echo_n "(cached) " >&6
3015
if test "x$host_alias" = x; then
3016
ac_cv_host=$ac_cv_build
3018
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3019
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3024
$as_echo "$ac_cv_host" >&6; }
3027
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3030
ac_save_IFS=$IFS; IFS='-'
3036
# Remember, the first character of IFS is used to create $*,
3037
# except with old shells:
3040
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3425
3043
DEPDIR="${am__leading_dot}deps"
3427
3045
ac_config_commands="$ac_config_commands depfiles"
3488
depcc="$CXX" am_compiler_list=
3490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3491
$as_echo_n "checking dependency style of $depcc... " >&6; }
3492
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3493
$as_echo_n "(cached) " >&6
3495
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3496
# We make a subdir and do the tests there. Otherwise we can end up
3497
# making bogus files that we don't know about and never remove. For
3498
# instance it was reported that on HP-UX the gcc test will end up
3499
# making a dummy file named `D' -- because `-MD' means `put the output
3502
# Copy depcomp to subdir because otherwise we won't find it if we're
3503
# using a relative directory.
3504
cp "$am_depcomp" conftest.dir
3506
# We will build objects and dependencies in a subdirectory because
3507
# it helps to detect inapplicable dependency modes. For instance
3508
# both Tru64's cc and ICC support -MD to output dependencies as a
3509
# side effect of compilation, but ICC will put the dependencies in
3510
# the current directory while Tru64 will put them in the object
3514
am_cv_CXX_dependencies_compiler_type=none
3515
if test "$am_compiler_list" = ""; then
3516
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3519
case " $depcc " in #(
3520
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3523
for depmode in $am_compiler_list; do
3524
# Setup a source with many dependencies, because some compilers
3525
# like to wrap large dependency lists on column 80 (with \), and
3526
# we should not choose a depcomp mode which is confused by this.
3528
# We need to recreate these files for each test, as the compiler may
3529
# overwrite some of them when testing with obscure command lines.
3530
# This happens at least with the AIX C compiler.
3532
for i in 1 2 3 4 5 6; do
3533
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3534
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3535
# Solaris 8's {/usr,}/bin/sh.
3536
touch sub/conftst$i.h
3538
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3540
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3541
# mode. It turns out that the SunPro C++ compiler does not properly
3542
# handle `-M -o', and we need to detect this. Also, some Intel
3543
# versions had trouble with output in subdirs
3544
am__obj=sub/conftest.${OBJEXT-o}
3545
am__minus_obj="-o $am__obj"
3548
# This depmode causes a compiler race in universal mode.
3549
test "$am__universal" = false || continue
3552
# after this tag, mechanisms are not by side-effect, so they'll
3553
# only be used when explicitly requested
3554
if test "x$enable_dependency_tracking" = xyes; then
3560
msvisualcpp | msvcmsys)
3561
# This compiler won't grok `-c -o', but also, the minuso test has
3562
# not run yet. These depmodes are late enough in the game, and
3563
# so weak that their functioning should not be impacted.
3564
am__obj=conftest.${OBJEXT-o}
3569
if depmode=$depmode \
3570
source=sub/conftest.c object=$am__obj \
3571
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3572
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3573
>/dev/null 2>conftest.err &&
3574
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3575
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3576
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3577
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3578
# icc doesn't choke on unknown options, it will just issue warnings
3579
# or remarks (even with -Werror). So we grep stderr for any message
3580
# that says an option was ignored or not supported.
3581
# When given -MP, icc 7.0 and 7.1 complain thusly:
3582
# icc: Command line warning: ignoring option '-M'; no argument required
3583
# The diagnosis changed in icc 8.0:
3584
# icc: Command line remark: option '-MP' not supported
3585
if (grep 'ignoring option' conftest.err ||
3586
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3587
am_cv_CXX_dependencies_compiler_type=$depmode
3596
am_cv_CXX_dependencies_compiler_type=none
3600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3601
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3602
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3605
test "x$enable_dependency_tracking" != xno \
3606
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3607
am__fastdepCXX_TRUE=
3608
am__fastdepCXX_FALSE='#'
3610
am__fastdepCXX_TRUE='#'
3611
am__fastdepCXX_FALSE=
3617
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3618
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3623
macro_version='2.2.6'
3624
macro_revision='1.3012'
3638
ltmain="$ac_aux_dir/ltmain.sh"
3640
# Make sure we can run config.sub.
3641
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3642
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3644
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3645
$as_echo_n "checking build system type... " >&6; }
3646
if test "${ac_cv_build+set}" = set; then :
3647
$as_echo_n "(cached) " >&6
3649
ac_build_alias=$build_alias
3650
test "x$ac_build_alias" = x &&
3651
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3652
test "x$ac_build_alias" = x &&
3653
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3654
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3655
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3659
$as_echo "$ac_cv_build" >&6; }
3660
case $ac_cv_build in
3662
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3665
ac_save_IFS=$IFS; IFS='-'
3671
# Remember, the first character of IFS is used to create $*,
3672
# except with old shells:
3675
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3678
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3679
$as_echo_n "checking host system type... " >&6; }
3680
if test "${ac_cv_host+set}" = set; then :
3681
$as_echo_n "(cached) " >&6
3683
if test "x$host_alias" = x; then
3684
ac_cv_host=$ac_cv_build
3686
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3687
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3692
$as_echo "$ac_cv_host" >&6; }
3695
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3698
ac_save_IFS=$IFS; IFS='-'
3704
# Remember, the first character of IFS is used to create $*,
3705
# except with old shells:
3708
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3712
3106
ac_cpp='$CPP $CPPFLAGS'
3713
3107
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4030
3424
... rest of stderr output deleted ...
4031
3425
10q' conftest.err >conftest.er1
4032
3426
cat conftest.er1 >&5
4033
rm -f conftest.er1 conftest.err
4035
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036
test $ac_status = 0; }
3428
rm -f conftest.er1 conftest.err
3429
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430
test $ac_status = 0; }
3433
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434
/* end confdefs.h. */
3444
ac_clean_files_save=$ac_clean_files
3445
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3446
# Try to create an executable without -o first, disregard a.out.
3447
# It will help us diagnose broken compilers, and finding out an intuition
3449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3450
$as_echo_n "checking whether the C compiler works... " >&6; }
3451
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3453
# The possible output files:
3454
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3457
for ac_file in $ac_files
3460
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3461
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3466
if { { ac_try="$ac_link_default"
3468
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469
*) ac_try_echo=$ac_try;;
3471
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472
$as_echo "$ac_try_echo"; } >&5
3473
(eval "$ac_link_default") 2>&5
3475
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476
test $ac_status = 0; }; then :
3477
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3478
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3479
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3480
# so that the user can short-circuit this test for compilers unknown to
3482
for ac_file in $ac_files ''
3484
test -f "$ac_file" || continue
3486
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3489
# We found the default executable, but exeext='' is most
3493
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3495
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3497
# We set ac_cv_exeext here because the later test for it is not
3498
# safe: cross compilers may not add the suffix if given an `-o'
3499
# argument, so we may need to know it at that point already.
3500
# Even if this section looks crufty: it has the advantage of
3507
test "$ac_cv_exeext" = no && ac_cv_exeext=
3512
if test -z "$ac_file"; then :
3513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514
$as_echo "no" >&6; }
3515
$as_echo "$as_me: failed program was:" >&5
3516
sed 's/^/| /' conftest.$ac_ext >&5
3518
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520
{ as_fn_set_status 77
3521
as_fn_error "C compiler cannot create executables
3522
See \`config.log' for more details." "$LINENO" 5; }; }
3524
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3525
$as_echo "yes" >&6; }
3527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3528
$as_echo_n "checking for C compiler default output file name... " >&6; }
3529
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3530
$as_echo "$ac_file" >&6; }
3531
ac_exeext=$ac_cv_exeext
3533
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3534
ac_clean_files=$ac_clean_files_save
3535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3536
$as_echo_n "checking for suffix of executables... " >&6; }
3537
if { { ac_try="$ac_link"
3539
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540
*) ac_try_echo=$ac_try;;
3542
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543
$as_echo "$ac_try_echo"; } >&5
3544
(eval "$ac_link") 2>&5
3546
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547
test $ac_status = 0; }; then :
3548
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3549
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3550
# work properly (i.e., refer to `conftest.exe'), while it won't with
3552
for ac_file in conftest.exe conftest conftest.*; do
3553
test -f "$ac_file" || continue
3555
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3556
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3562
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564
as_fn_error "cannot compute suffix of executables: cannot compile and link
3565
See \`config.log' for more details." "$LINENO" 5; }
3567
rm -f conftest conftest$ac_cv_exeext
3568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3569
$as_echo "$ac_cv_exeext" >&6; }
3571
rm -f conftest.$ac_ext
3572
EXEEXT=$ac_cv_exeext
3574
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575
/* end confdefs.h. */
3580
FILE *f = fopen ("conftest.out", "w");
3581
return ferror (f) || fclose (f) != 0;
3587
ac_clean_files="$ac_clean_files conftest.out"
3588
# Check that the compiler produces executables we can run. If not, either
3589
# the compiler is broken, or we cross compile.
3590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3591
$as_echo_n "checking whether we are cross compiling... " >&6; }
3592
if test "$cross_compiling" != yes; then
3593
{ { ac_try="$ac_link"
3595
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596
*) ac_try_echo=$ac_try;;
3598
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599
$as_echo "$ac_try_echo"; } >&5
3600
(eval "$ac_link") 2>&5
3602
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603
test $ac_status = 0; }
3604
if { ac_try='./conftest$ac_cv_exeext'
3605
{ { case "(($ac_try" in
3606
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607
*) ac_try_echo=$ac_try;;
3609
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610
$as_echo "$ac_try_echo"; } >&5
3611
(eval "$ac_try") 2>&5
3613
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614
test $ac_status = 0; }; }; then
3617
if test "$cross_compiling" = maybe; then
3620
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622
as_fn_error "cannot run C compiled programs.
3623
If you meant to cross compile, use \`--host'.
3624
See \`config.log' for more details." "$LINENO" 5; }
3628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3629
$as_echo "$cross_compiling" >&6; }
3631
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3632
ac_clean_files=$ac_clean_files_save
3633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3634
$as_echo_n "checking for suffix of object files... " >&6; }
3635
if test "${ac_cv_objext+set}" = set; then :
3636
$as_echo_n "(cached) " >&6
3638
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639
/* end confdefs.h. */
3649
rm -f conftest.o conftest.obj
3650
if { { ac_try="$ac_compile"
3652
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653
*) ac_try_echo=$ac_try;;
3655
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656
$as_echo "$ac_try_echo"; } >&5
3657
(eval "$ac_compile") 2>&5
3659
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660
test $ac_status = 0; }; then :
3661
for ac_file in conftest.o conftest.obj conftest.*; do
3662
test -f "$ac_file" || continue;
3664
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3665
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3670
$as_echo "$as_me: failed program was:" >&5
3671
sed 's/^/| /' conftest.$ac_ext >&5
3673
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675
as_fn_error "cannot compute suffix of object files: cannot compile
3676
See \`config.log' for more details." "$LINENO" 5; }
3678
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3681
$as_echo "$ac_cv_objext" >&6; }
3682
OBJEXT=$ac_cv_objext
4039
3684
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4040
3685
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4041
3686
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7205
ac_cpp='$CXXCPP $CPPFLAGS'
7206
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7209
if test -z "$CXX"; then
7210
if test -n "$CCC"; then
7213
if test -n "$ac_tool_prefix"; then
7214
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7216
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7217
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219
$as_echo_n "checking for $ac_word... " >&6; }
7220
if test "${ac_cv_prog_CXX+set}" = set; then :
7221
$as_echo_n "(cached) " >&6
7223
if test -n "$CXX"; then
7224
ac_cv_prog_CXX="$CXX" # Let the user override the test.
7226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230
test -z "$as_dir" && as_dir=.
7231
for ac_exec_ext in '' $ac_executable_extensions; do
7232
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7233
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7234
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244
if test -n "$CXX"; then
7245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7246
$as_echo "$CXX" >&6; }
7248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7249
$as_echo "no" >&6; }
7253
test -n "$CXX" && break
7256
if test -z "$CXX"; then
7258
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7260
# Extract the first word of "$ac_prog", so it can be a program name with args.
7261
set dummy $ac_prog; ac_word=$2
7262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263
$as_echo_n "checking for $ac_word... " >&6; }
7264
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7265
$as_echo_n "(cached) " >&6
7267
if test -n "$ac_ct_CXX"; then
7268
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274
test -z "$as_dir" && as_dir=.
7275
for ac_exec_ext in '' $ac_executable_extensions; do
7276
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7277
ac_cv_prog_ac_ct_CXX="$ac_prog"
7278
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7288
if test -n "$ac_ct_CXX"; then
7289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7290
$as_echo "$ac_ct_CXX" >&6; }
7292
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293
$as_echo "no" >&6; }
7297
test -n "$ac_ct_CXX" && break
7300
if test "x$ac_ct_CXX" = x; then
7303
case $cross_compiling:$ac_tool_warned in
7305
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7306
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7307
ac_tool_warned=yes ;;
7315
# Provide some information about the compiler.
7316
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7319
for ac_option in --version -v -V -qversion; do
7320
{ { ac_try="$ac_compiler $ac_option >&5"
7322
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7323
*) ac_try_echo=$ac_try;;
7325
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7326
$as_echo "$ac_try_echo"; } >&5
7327
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
7329
if test -s conftest.err; then
7331
... rest of stderr output deleted ...
7332
10q' conftest.err >conftest.er1
7333
cat conftest.er1 >&5
7334
rm -f conftest.er1 conftest.err
7336
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7337
test $ac_status = 0; }
7340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7341
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7342
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7343
$as_echo_n "(cached) " >&6
7345
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346
/* end confdefs.h. */
7359
if ac_fn_cxx_try_compile "$LINENO"; then :
7364
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7369
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7370
if test $ac_compiler_gnu = yes; then
7375
ac_test_CXXFLAGS=${CXXFLAGS+set}
7376
ac_save_CXXFLAGS=$CXXFLAGS
7377
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7378
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7379
if test "${ac_cv_prog_cxx_g+set}" = set; then :
7380
$as_echo_n "(cached) " >&6
7382
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7383
ac_cxx_werror_flag=yes
7386
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387
/* end confdefs.h. */
7397
if ac_fn_cxx_try_compile "$LINENO"; then :
7398
ac_cv_prog_cxx_g=yes
7401
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402
/* end confdefs.h. */
7412
if ac_fn_cxx_try_compile "$LINENO"; then :
7415
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7417
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418
/* end confdefs.h. */
7428
if ac_fn_cxx_try_compile "$LINENO"; then :
7429
ac_cv_prog_cxx_g=yes
7431
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7436
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7439
$as_echo "$ac_cv_prog_cxx_g" >&6; }
7440
if test "$ac_test_CXXFLAGS" = set; then
7441
CXXFLAGS=$ac_save_CXXFLAGS
7442
elif test $ac_cv_prog_cxx_g = yes; then
7443
if test "$GXX" = yes; then
7449
if test "$GXX" = yes; then
7456
ac_cpp='$CPP $CPPFLAGS'
7457
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7461
depcc="$CXX" am_compiler_list=
7463
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7464
$as_echo_n "checking dependency style of $depcc... " >&6; }
7465
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7466
$as_echo_n "(cached) " >&6
7468
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7469
# We make a subdir and do the tests there. Otherwise we can end up
7470
# making bogus files that we don't know about and never remove. For
7471
# instance it was reported that on HP-UX the gcc test will end up
7472
# making a dummy file named `D' -- because `-MD' means `put the output
7475
# Copy depcomp to subdir because otherwise we won't find it if we're
7476
# using a relative directory.
7477
cp "$am_depcomp" conftest.dir
7479
# We will build objects and dependencies in a subdirectory because
7480
# it helps to detect inapplicable dependency modes. For instance
7481
# both Tru64's cc and ICC support -MD to output dependencies as a
7482
# side effect of compilation, but ICC will put the dependencies in
7483
# the current directory while Tru64 will put them in the object
7487
am_cv_CXX_dependencies_compiler_type=none
7488
if test "$am_compiler_list" = ""; then
7489
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7492
case " $depcc " in #(
7493
*\ -arch\ *\ -arch\ *) am__universal=true ;;
7496
for depmode in $am_compiler_list; do
7497
# Setup a source with many dependencies, because some compilers
7498
# like to wrap large dependency lists on column 80 (with \), and
7499
# we should not choose a depcomp mode which is confused by this.
7501
# We need to recreate these files for each test, as the compiler may
7502
# overwrite some of them when testing with obscure command lines.
7503
# This happens at least with the AIX C compiler.
7505
for i in 1 2 3 4 5 6; do
7506
echo '#include "conftst'$i'.h"' >> sub/conftest.c
7507
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7508
# Solaris 8's {/usr,}/bin/sh.
7509
touch sub/conftst$i.h
7511
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7513
# We check with `-c' and `-o' for the sake of the "dashmstdout"
7514
# mode. It turns out that the SunPro C++ compiler does not properly
7515
# handle `-M -o', and we need to detect this. Also, some Intel
7516
# versions had trouble with output in subdirs
7517
am__obj=sub/conftest.${OBJEXT-o}
7518
am__minus_obj="-o $am__obj"
7521
# This depmode causes a compiler race in universal mode.
7522
test "$am__universal" = false || continue
7525
# after this tag, mechanisms are not by side-effect, so they'll
7526
# only be used when explicitly requested
7527
if test "x$enable_dependency_tracking" = xyes; then
7533
msvisualcpp | msvcmsys)
7534
# This compiler won't grok `-c -o', but also, the minuso test has
7535
# not run yet. These depmodes are late enough in the game, and
7536
# so weak that their functioning should not be impacted.
7537
am__obj=conftest.${OBJEXT-o}
7542
if depmode=$depmode \
7543
source=sub/conftest.c object=$am__obj \
7544
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7545
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7546
>/dev/null 2>conftest.err &&
7547
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7548
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7549
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7550
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7551
# icc doesn't choke on unknown options, it will just issue warnings
7552
# or remarks (even with -Werror). So we grep stderr for any message
7553
# that says an option was ignored or not supported.
7554
# When given -MP, icc 7.0 and 7.1 complain thusly:
7555
# icc: Command line warning: ignoring option '-M'; no argument required
7556
# The diagnosis changed in icc 8.0:
7557
# icc: Command line remark: option '-MP' not supported
7558
if (grep 'ignoring option' conftest.err ||
7559
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7560
am_cv_CXX_dependencies_compiler_type=$depmode
7569
am_cv_CXX_dependencies_compiler_type=none
7573
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7574
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7575
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7578
test "x$enable_dependency_tracking" != xno \
7579
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7580
am__fastdepCXX_TRUE=
7581
am__fastdepCXX_FALSE='#'
7583
am__fastdepCXX_TRUE='#'
7584
am__fastdepCXX_FALSE=
7588
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7589
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7590
(test "X$CXX" != "Xg++"))) ; then
7592
ac_cpp='$CXXCPP $CPPFLAGS'
7593
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7594
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7595
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7597
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7598
if test -z "$CXXCPP"; then
7599
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7600
$as_echo_n "(cached) " >&6
7602
# Double quotes because CXXCPP needs to be expanded
7603
for CXXCPP in "$CXX -E" "/lib/cpp"
7606
for ac_cxx_preproc_warn_flag in '' yes
7608
# Use a header file that comes with gcc, so configuring glibc
7609
# with a fresh cross-compiler works.
7610
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7611
# <limits.h> exists even on freestanding compilers.
7612
# On the NeXT, cc -E runs the code through the compiler's parser,
7613
# not just through cpp. "Syntax error" is here to catch this case.
7614
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615
/* end confdefs.h. */
7617
# include <limits.h>
7619
# include <assert.h>
7623
if ac_fn_cxx_try_cpp "$LINENO"; then :
7626
# Broken: fails on valid input.
7629
rm -f conftest.err conftest.$ac_ext
7631
# OK, works on sane cases. Now check whether nonexistent headers
7632
# can be detected and how.
7633
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634
/* end confdefs.h. */
7635
#include <ac_nonexistent.h>
7637
if ac_fn_cxx_try_cpp "$LINENO"; then :
7638
# Broken: success on invalid input.
7641
# Passes both tests.
7645
rm -f conftest.err conftest.$ac_ext
7648
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7649
rm -f conftest.err conftest.$ac_ext
7650
if $ac_preproc_ok; then :
7655
ac_cv_prog_CXXCPP=$CXXCPP
7658
CXXCPP=$ac_cv_prog_CXXCPP
7660
ac_cv_prog_CXXCPP=$CXXCPP
7662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7663
$as_echo "$CXXCPP" >&6; }
7665
for ac_cxx_preproc_warn_flag in '' yes
7667
# Use a header file that comes with gcc, so configuring glibc
7668
# with a fresh cross-compiler works.
7669
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7670
# <limits.h> exists even on freestanding compilers.
7671
# On the NeXT, cc -E runs the code through the compiler's parser,
7672
# not just through cpp. "Syntax error" is here to catch this case.
7673
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674
/* end confdefs.h. */
7676
# include <limits.h>
7678
# include <assert.h>
7682
if ac_fn_cxx_try_cpp "$LINENO"; then :
7685
# Broken: fails on valid input.
7688
rm -f conftest.err conftest.$ac_ext
7690
# OK, works on sane cases. Now check whether nonexistent headers
7691
# can be detected and how.
7692
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693
/* end confdefs.h. */
7694
#include <ac_nonexistent.h>
7696
if ac_fn_cxx_try_cpp "$LINENO"; then :
7697
# Broken: success on invalid input.
7700
# Passes both tests.
7704
rm -f conftest.err conftest.$ac_ext
7707
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7708
rm -f conftest.err conftest.$ac_ext
7709
if $ac_preproc_ok; then :
7712
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7713
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7714
_lt_caught_CXX_error=yes; }
7718
ac_cpp='$CPP $CPPFLAGS'
7719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7724
_lt_caught_CXX_error=yes
11414
10532
CC="$lt_save_CC"
10546
ac_config_commands="$ac_config_commands libtool"
10551
# Only expand once:
10555
# checks for programs.
10557
ac_cpp='$CXXCPP $CPPFLAGS'
10558
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10559
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10560
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10561
if test -z "$CXX"; then
10562
if test -n "$CCC"; then
10565
if test -n "$ac_tool_prefix"; then
10566
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10568
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10569
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10570
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10571
$as_echo_n "checking for $ac_word... " >&6; }
10572
if test "${ac_cv_prog_CXX+set}" = set; then :
10573
$as_echo_n "(cached) " >&6
10575
if test -n "$CXX"; then
10576
ac_cv_prog_CXX="$CXX" # Let the user override the test.
10578
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579
for as_dir in $PATH
10582
test -z "$as_dir" && as_dir=.
10583
for ac_exec_ext in '' $ac_executable_extensions; do
10584
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10585
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10586
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10595
CXX=$ac_cv_prog_CXX
10596
if test -n "$CXX"; then
10597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10598
$as_echo "$CXX" >&6; }
10600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601
$as_echo "no" >&6; }
10605
test -n "$CXX" && break
10608
if test -z "$CXX"; then
10610
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10612
# Extract the first word of "$ac_prog", so it can be a program name with args.
10613
set dummy $ac_prog; ac_word=$2
10614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10615
$as_echo_n "checking for $ac_word... " >&6; }
10616
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10617
$as_echo_n "(cached) " >&6
10619
if test -n "$ac_ct_CXX"; then
10620
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623
for as_dir in $PATH
10626
test -z "$as_dir" && as_dir=.
10627
for ac_exec_ext in '' $ac_executable_extensions; do
10628
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10629
ac_cv_prog_ac_ct_CXX="$ac_prog"
10630
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10639
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10640
if test -n "$ac_ct_CXX"; then
10641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10642
$as_echo "$ac_ct_CXX" >&6; }
10644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645
$as_echo "no" >&6; }
10649
test -n "$ac_ct_CXX" && break
10652
if test "x$ac_ct_CXX" = x; then
10655
case $cross_compiling:$ac_tool_warned in
10657
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10658
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10659
ac_tool_warned=yes ;;
10667
# Provide some information about the compiler.
10668
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10671
for ac_option in --version -v -V -qversion; do
10672
{ { ac_try="$ac_compiler $ac_option >&5"
10673
case "(($ac_try" in
10674
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675
*) ac_try_echo=$ac_try;;
10677
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10678
$as_echo "$ac_try_echo"; } >&5
10679
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
10681
if test -s conftest.err; then
10683
... rest of stderr output deleted ...
10684
10q' conftest.err >conftest.er1
10685
cat conftest.er1 >&5
10687
rm -f conftest.er1 conftest.err
10688
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10689
test $ac_status = 0; }
10692
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10693
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10694
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10695
$as_echo_n "(cached) " >&6
10697
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698
/* end confdefs.h. */
10711
if ac_fn_cxx_try_compile "$LINENO"; then :
10712
ac_compiler_gnu=yes
10716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10717
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10721
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10722
if test $ac_compiler_gnu = yes; then
10727
ac_test_CXXFLAGS=${CXXFLAGS+set}
10728
ac_save_CXXFLAGS=$CXXFLAGS
10729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10730
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10731
if test "${ac_cv_prog_cxx_g+set}" = set; then :
10732
$as_echo_n "(cached) " >&6
10734
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10735
ac_cxx_werror_flag=yes
10736
ac_cv_prog_cxx_g=no
10738
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739
/* end confdefs.h. */
10749
if ac_fn_cxx_try_compile "$LINENO"; then :
10750
ac_cv_prog_cxx_g=yes
10753
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754
/* end confdefs.h. */
10764
if ac_fn_cxx_try_compile "$LINENO"; then :
10767
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10769
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770
/* end confdefs.h. */
10780
if ac_fn_cxx_try_compile "$LINENO"; then :
10781
ac_cv_prog_cxx_g=yes
10783
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10785
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10787
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10791
$as_echo "$ac_cv_prog_cxx_g" >&6; }
10792
if test "$ac_test_CXXFLAGS" = set; then
10793
CXXFLAGS=$ac_save_CXXFLAGS
10794
elif test $ac_cv_prog_cxx_g = yes; then
10795
if test "$GXX" = yes; then
10801
if test "$GXX" = yes; then
10808
ac_cpp='$CPP $CPPFLAGS'
10809
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10810
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10811
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10813
depcc="$CXX" am_compiler_list=
10815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10816
$as_echo_n "checking dependency style of $depcc... " >&6; }
10817
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10818
$as_echo_n "(cached) " >&6
10820
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10821
# We make a subdir and do the tests there. Otherwise we can end up
10822
# making bogus files that we don't know about and never remove. For
10823
# instance it was reported that on HP-UX the gcc test will end up
10824
# making a dummy file named `D' -- because `-MD' means `put the output
10827
# Copy depcomp to subdir because otherwise we won't find it if we're
10828
# using a relative directory.
10829
cp "$am_depcomp" conftest.dir
10831
# We will build objects and dependencies in a subdirectory because
10832
# it helps to detect inapplicable dependency modes. For instance
10833
# both Tru64's cc and ICC support -MD to output dependencies as a
10834
# side effect of compilation, but ICC will put the dependencies in
10835
# the current directory while Tru64 will put them in the object
10839
am_cv_CXX_dependencies_compiler_type=none
10840
if test "$am_compiler_list" = ""; then
10841
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10843
am__universal=false
10844
case " $depcc " in #(
10845
*\ -arch\ *\ -arch\ *) am__universal=true ;;
10848
for depmode in $am_compiler_list; do
10849
# Setup a source with many dependencies, because some compilers
10850
# like to wrap large dependency lists on column 80 (with \), and
10851
# we should not choose a depcomp mode which is confused by this.
10853
# We need to recreate these files for each test, as the compiler may
10854
# overwrite some of them when testing with obscure command lines.
10855
# This happens at least with the AIX C compiler.
10857
for i in 1 2 3 4 5 6; do
10858
echo '#include "conftst'$i'.h"' >> sub/conftest.c
10859
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10860
# Solaris 8's {/usr,}/bin/sh.
10861
touch sub/conftst$i.h
10863
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10865
# We check with `-c' and `-o' for the sake of the "dashmstdout"
10866
# mode. It turns out that the SunPro C++ compiler does not properly
10867
# handle `-M -o', and we need to detect this. Also, some Intel
10868
# versions had trouble with output in subdirs
10869
am__obj=sub/conftest.${OBJEXT-o}
10870
am__minus_obj="-o $am__obj"
10873
# This depmode causes a compiler race in universal mode.
10874
test "$am__universal" = false || continue
10877
# after this tag, mechanisms are not by side-effect, so they'll
10878
# only be used when explicitly requested
10879
if test "x$enable_dependency_tracking" = xyes; then
10885
msvisualcpp | msvcmsys)
10886
# This compiler won't grok `-c -o', but also, the minuso test has
10887
# not run yet. These depmodes are late enough in the game, and
10888
# so weak that their functioning should not be impacted.
10889
am__obj=conftest.${OBJEXT-o}
10894
if depmode=$depmode \
10895
source=sub/conftest.c object=$am__obj \
10896
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10897
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10898
>/dev/null 2>conftest.err &&
10899
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10900
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10901
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10902
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10903
# icc doesn't choke on unknown options, it will just issue warnings
10904
# or remarks (even with -Werror). So we grep stderr for any message
10905
# that says an option was ignored or not supported.
10906
# When given -MP, icc 7.0 and 7.1 complain thusly:
10907
# icc: Command line warning: ignoring option '-M'; no argument required
10908
# The diagnosis changed in icc 8.0:
10909
# icc: Command line remark: option '-MP' not supported
10910
if (grep 'ignoring option' conftest.err ||
10911
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10912
am_cv_CXX_dependencies_compiler_type=$depmode
10919
rm -rf conftest.dir
10921
am_cv_CXX_dependencies_compiler_type=none
10925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10926
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10927
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10930
test "x$enable_dependency_tracking" != xno \
10931
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10932
am__fastdepCXX_TRUE=
10933
am__fastdepCXX_FALSE='#'
10935
am__fastdepCXX_TRUE='#'
10936
am__fastdepCXX_FALSE=
10942
ac_cpp='$CXXCPP $CPPFLAGS'
10943
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10944
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10945
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10946
if test -z "$CXX"; then
10947
if test -n "$CCC"; then
10950
if test -n "$ac_tool_prefix"; then
10951
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10953
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10954
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10956
$as_echo_n "checking for $ac_word... " >&6; }
10957
if test "${ac_cv_prog_CXX+set}" = set; then :
10958
$as_echo_n "(cached) " >&6
10960
if test -n "$CXX"; then
10961
ac_cv_prog_CXX="$CXX" # Let the user override the test.
10963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10964
for as_dir in $PATH
10967
test -z "$as_dir" && as_dir=.
10968
for ac_exec_ext in '' $ac_executable_extensions; do
10969
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10970
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10971
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10980
CXX=$ac_cv_prog_CXX
10981
if test -n "$CXX"; then
10982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10983
$as_echo "$CXX" >&6; }
10985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986
$as_echo "no" >&6; }
10990
test -n "$CXX" && break
10993
if test -z "$CXX"; then
10995
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10997
# Extract the first word of "$ac_prog", so it can be a program name with args.
10998
set dummy $ac_prog; ac_word=$2
10999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11000
$as_echo_n "checking for $ac_word... " >&6; }
11001
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11002
$as_echo_n "(cached) " >&6
11004
if test -n "$ac_ct_CXX"; then
11005
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11007
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008
for as_dir in $PATH
11011
test -z "$as_dir" && as_dir=.
11012
for ac_exec_ext in '' $ac_executable_extensions; do
11013
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11014
ac_cv_prog_ac_ct_CXX="$ac_prog"
11015
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11024
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11025
if test -n "$ac_ct_CXX"; then
11026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11027
$as_echo "$ac_ct_CXX" >&6; }
11029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030
$as_echo "no" >&6; }
11034
test -n "$ac_ct_CXX" && break
11037
if test "x$ac_ct_CXX" = x; then
11040
case $cross_compiling:$ac_tool_warned in
11042
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11043
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11044
ac_tool_warned=yes ;;
11052
# Provide some information about the compiler.
11053
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11056
for ac_option in --version -v -V -qversion; do
11057
{ { ac_try="$ac_compiler $ac_option >&5"
11058
case "(($ac_try" in
11059
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060
*) ac_try_echo=$ac_try;;
11062
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11063
$as_echo "$ac_try_echo"; } >&5
11064
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
11066
if test -s conftest.err; then
11068
... rest of stderr output deleted ...
11069
10q' conftest.err >conftest.er1
11070
cat conftest.er1 >&5
11072
rm -f conftest.er1 conftest.err
11073
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11074
test $ac_status = 0; }
11077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11078
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11079
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11080
$as_echo_n "(cached) " >&6
11082
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083
/* end confdefs.h. */
11096
if ac_fn_cxx_try_compile "$LINENO"; then :
11097
ac_compiler_gnu=yes
11101
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11106
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11107
if test $ac_compiler_gnu = yes; then
11112
ac_test_CXXFLAGS=${CXXFLAGS+set}
11113
ac_save_CXXFLAGS=$CXXFLAGS
11114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11115
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11116
if test "${ac_cv_prog_cxx_g+set}" = set; then :
11117
$as_echo_n "(cached) " >&6
11119
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11120
ac_cxx_werror_flag=yes
11121
ac_cv_prog_cxx_g=no
11123
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124
/* end confdefs.h. */
11134
if ac_fn_cxx_try_compile "$LINENO"; then :
11135
ac_cv_prog_cxx_g=yes
11138
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11139
/* end confdefs.h. */
11149
if ac_fn_cxx_try_compile "$LINENO"; then :
11152
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11154
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155
/* end confdefs.h. */
11165
if ac_fn_cxx_try_compile "$LINENO"; then :
11166
ac_cv_prog_cxx_g=yes
11168
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11170
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11172
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11176
$as_echo "$ac_cv_prog_cxx_g" >&6; }
11177
if test "$ac_test_CXXFLAGS" = set; then
11178
CXXFLAGS=$ac_save_CXXFLAGS
11179
elif test $ac_cv_prog_cxx_g = yes; then
11180
if test "$GXX" = yes; then
11186
if test "$GXX" = yes; then
11193
ac_cpp='$CPP $CPPFLAGS'
11194
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11195
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11196
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11198
depcc="$CXX" am_compiler_list=
11200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11201
$as_echo_n "checking dependency style of $depcc... " >&6; }
11202
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11203
$as_echo_n "(cached) " >&6
11205
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11206
# We make a subdir and do the tests there. Otherwise we can end up
11207
# making bogus files that we don't know about and never remove. For
11208
# instance it was reported that on HP-UX the gcc test will end up
11209
# making a dummy file named `D' -- because `-MD' means `put the output
11212
# Copy depcomp to subdir because otherwise we won't find it if we're
11213
# using a relative directory.
11214
cp "$am_depcomp" conftest.dir
11216
# We will build objects and dependencies in a subdirectory because
11217
# it helps to detect inapplicable dependency modes. For instance
11218
# both Tru64's cc and ICC support -MD to output dependencies as a
11219
# side effect of compilation, but ICC will put the dependencies in
11220
# the current directory while Tru64 will put them in the object
11224
am_cv_CXX_dependencies_compiler_type=none
11225
if test "$am_compiler_list" = ""; then
11226
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11228
am__universal=false
11229
case " $depcc " in #(
11230
*\ -arch\ *\ -arch\ *) am__universal=true ;;
11233
for depmode in $am_compiler_list; do
11234
# Setup a source with many dependencies, because some compilers
11235
# like to wrap large dependency lists on column 80 (with \), and
11236
# we should not choose a depcomp mode which is confused by this.
11238
# We need to recreate these files for each test, as the compiler may
11239
# overwrite some of them when testing with obscure command lines.
11240
# This happens at least with the AIX C compiler.
11242
for i in 1 2 3 4 5 6; do
11243
echo '#include "conftst'$i'.h"' >> sub/conftest.c
11244
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11245
# Solaris 8's {/usr,}/bin/sh.
11246
touch sub/conftst$i.h
11248
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11250
# We check with `-c' and `-o' for the sake of the "dashmstdout"
11251
# mode. It turns out that the SunPro C++ compiler does not properly
11252
# handle `-M -o', and we need to detect this. Also, some Intel
11253
# versions had trouble with output in subdirs
11254
am__obj=sub/conftest.${OBJEXT-o}
11255
am__minus_obj="-o $am__obj"
11258
# This depmode causes a compiler race in universal mode.
11259
test "$am__universal" = false || continue
11262
# after this tag, mechanisms are not by side-effect, so they'll
11263
# only be used when explicitly requested
11264
if test "x$enable_dependency_tracking" = xyes; then
11270
msvisualcpp | msvcmsys)
11271
# This compiler won't grok `-c -o', but also, the minuso test has
11272
# not run yet. These depmodes are late enough in the game, and
11273
# so weak that their functioning should not be impacted.
11274
am__obj=conftest.${OBJEXT-o}
11279
if depmode=$depmode \
11280
source=sub/conftest.c object=$am__obj \
11281
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11282
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11283
>/dev/null 2>conftest.err &&
11284
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11285
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11286
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11287
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11288
# icc doesn't choke on unknown options, it will just issue warnings
11289
# or remarks (even with -Werror). So we grep stderr for any message
11290
# that says an option was ignored or not supported.
11291
# When given -MP, icc 7.0 and 7.1 complain thusly:
11292
# icc: Command line warning: ignoring option '-M'; no argument required
11293
# The diagnosis changed in icc 8.0:
11294
# icc: Command line remark: option '-MP' not supported
11295
if (grep 'ignoring option' conftest.err ||
11296
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11297
am_cv_CXX_dependencies_compiler_type=$depmode
11304
rm -rf conftest.dir
11306
am_cv_CXX_dependencies_compiler_type=none
11310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11311
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11312
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11315
test "x$enable_dependency_tracking" != xno \
11316
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11317
am__fastdepCXX_TRUE=
11318
am__fastdepCXX_FALSE='#'
11320
am__fastdepCXX_TRUE='#'
11321
am__fastdepCXX_FALSE=
11325
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11326
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11327
(test "X$CXX" != "Xg++"))) ; then
11329
ac_cpp='$CXXCPP $CPPFLAGS'
11330
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11331
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11332
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11333
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11334
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11335
if test -z "$CXXCPP"; then
11336
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11337
$as_echo_n "(cached) " >&6
11339
# Double quotes because CXXCPP needs to be expanded
11340
for CXXCPP in "$CXX -E" "/lib/cpp"
11342
ac_preproc_ok=false
11343
for ac_cxx_preproc_warn_flag in '' yes
11345
# Use a header file that comes with gcc, so configuring glibc
11346
# with a fresh cross-compiler works.
11347
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11348
# <limits.h> exists even on freestanding compilers.
11349
# On the NeXT, cc -E runs the code through the compiler's parser,
11350
# not just through cpp. "Syntax error" is here to catch this case.
11351
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352
/* end confdefs.h. */
11354
# include <limits.h>
11356
# include <assert.h>
11360
if ac_fn_cxx_try_cpp "$LINENO"; then :
11363
# Broken: fails on valid input.
11366
rm -f conftest.err conftest.$ac_ext
11368
# OK, works on sane cases. Now check whether nonexistent headers
11369
# can be detected and how.
11370
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371
/* end confdefs.h. */
11372
#include <ac_nonexistent.h>
11374
if ac_fn_cxx_try_cpp "$LINENO"; then :
11375
# Broken: success on invalid input.
11378
# Passes both tests.
11382
rm -f conftest.err conftest.$ac_ext
11385
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11386
rm -f conftest.err conftest.$ac_ext
11387
if $ac_preproc_ok; then :
11392
ac_cv_prog_CXXCPP=$CXXCPP
11395
CXXCPP=$ac_cv_prog_CXXCPP
11397
ac_cv_prog_CXXCPP=$CXXCPP
11399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11400
$as_echo "$CXXCPP" >&6; }
11401
ac_preproc_ok=false
11402
for ac_cxx_preproc_warn_flag in '' yes
11404
# Use a header file that comes with gcc, so configuring glibc
11405
# with a fresh cross-compiler works.
11406
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11407
# <limits.h> exists even on freestanding compilers.
11408
# On the NeXT, cc -E runs the code through the compiler's parser,
11409
# not just through cpp. "Syntax error" is here to catch this case.
11410
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411
/* end confdefs.h. */
11413
# include <limits.h>
11415
# include <assert.h>
11419
if ac_fn_cxx_try_cpp "$LINENO"; then :
11422
# Broken: fails on valid input.
11425
rm -f conftest.err conftest.$ac_ext
11427
# OK, works on sane cases. Now check whether nonexistent headers
11428
# can be detected and how.
11429
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430
/* end confdefs.h. */
11431
#include <ac_nonexistent.h>
11433
if ac_fn_cxx_try_cpp "$LINENO"; then :
11434
# Broken: success on invalid input.
11437
# Passes both tests.
11441
rm -f conftest.err conftest.$ac_ext
11444
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11445
rm -f conftest.err conftest.$ac_ext
11446
if $ac_preproc_ok; then :
11449
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11450
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11451
_lt_caught_CXX_error=yes; }
11455
ac_cpp='$CPP $CPPFLAGS'
11456
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11461
_lt_caught_CXX_error=yes
11418
11468
ac_cpp='$CXXCPP $CPPFLAGS'
11419
11469
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'