2942
2938
ac_config_headers="$ac_config_headers config.h"
2946
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2947
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2952
macro_version='2.2.6'
2953
macro_revision='1.3012'
2967
ltmain="$ac_aux_dir/ltmain.sh"
2969
# Make sure we can run config.sub.
2970
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2971
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2974
$as_echo_n "checking build system type... " >&6; }
2975
if test "${ac_cv_build+set}" = set; then :
2976
$as_echo_n "(cached) " >&6
2978
ac_build_alias=$build_alias
2979
test "x$ac_build_alias" = x &&
2980
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2981
test "x$ac_build_alias" = x &&
2982
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2983
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2984
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2988
$as_echo "$ac_cv_build" >&6; }
2989
case $ac_cv_build in
2991
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2994
ac_save_IFS=$IFS; IFS='-'
3000
# Remember, the first character of IFS is used to create $*,
3001
# except with old shells:
3004
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3008
$as_echo_n "checking host system type... " >&6; }
3009
if test "${ac_cv_host+set}" = set; then :
3010
$as_echo_n "(cached) " >&6
3012
if test "x$host_alias" = x; then
3013
ac_cv_host=$ac_cv_build
3015
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3016
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3021
$as_echo "$ac_cv_host" >&6; }
3024
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3027
ac_save_IFS=$IFS; IFS='-'
3033
# Remember, the first character of IFS is used to create $*,
3034
# except with old shells:
3037
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3040
DEPDIR="${am__leading_dot}deps"
3042
ac_config_commands="$ac_config_commands depfiles"
3045
am_make=${MAKE-make}
3046
cat > confinc << 'END'
3048
@echo this is the am__doit target
3051
# If we don't find an include directive, just comment out the code.
3052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3053
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3057
# First try GNU make style include.
3058
echo "include confinc" > confmf
3059
# Ignore all kinds of additional output from `make'.
3060
case `$am_make -s -f confmf 2> /dev/null` in #(
3061
*the\ am__doit\ target*)
3067
# Now try BSD make style include.
3068
if test "$am__include" = "#"; then
3069
echo '.include "confinc"' > confmf
3070
case `$am_make -s -f confmf 2> /dev/null` in #(
3071
*the\ am__doit\ target*)
3072
am__include=.include
3080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3081
$as_echo "$_am_result" >&6; }
3082
rm -f confinc confmf
3084
# Check whether --enable-dependency-tracking was given.
3085
if test "${enable_dependency_tracking+set}" = set; then :
3086
enableval=$enable_dependency_tracking;
3089
if test "x$enable_dependency_tracking" != xno; then
3090
am_depcomp="$ac_aux_dir/depcomp"
3093
if test "x$enable_dependency_tracking" != xno; then
3103
ac_cpp='$CPP $CPPFLAGS'
3104
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107
if test -n "$ac_tool_prefix"; then
3108
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3109
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3110
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111
$as_echo_n "checking for $ac_word... " >&6; }
3112
if test "${ac_cv_prog_CC+set}" = set; then :
3113
$as_echo_n "(cached) " >&6
3115
if test -n "$CC"; then
3116
ac_cv_prog_CC="$CC" # Let the user override the test.
3118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122
test -z "$as_dir" && as_dir=.
3123
for ac_exec_ext in '' $ac_executable_extensions; do
3124
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3126
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136
if test -n "$CC"; then
3137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138
$as_echo "$CC" >&6; }
3140
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141
$as_echo "no" >&6; }
3146
if test -z "$ac_cv_prog_CC"; then
3148
# Extract the first word of "gcc", so it can be a program name with args.
3149
set dummy gcc; ac_word=$2
3150
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151
$as_echo_n "checking for $ac_word... " >&6; }
3152
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3153
$as_echo_n "(cached) " >&6
3155
if test -n "$ac_ct_CC"; then
3156
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162
test -z "$as_dir" && as_dir=.
3163
for ac_exec_ext in '' $ac_executable_extensions; do
3164
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165
ac_cv_prog_ac_ct_CC="gcc"
3166
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3176
if test -n "$ac_ct_CC"; then
3177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3178
$as_echo "$ac_ct_CC" >&6; }
3180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181
$as_echo "no" >&6; }
3184
if test "x$ac_ct_CC" = x; then
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
3187
case $cross_compiling:$ac_tool_warned in
3189
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191
ac_tool_warned=yes ;;
3199
if test -z "$CC"; then
3200
if test -n "$ac_tool_prefix"; then
3201
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3202
set dummy ${ac_tool_prefix}cc; ac_word=$2
3203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204
$as_echo_n "checking for $ac_word... " >&6; }
3205
if test "${ac_cv_prog_CC+set}" = set; then :
3206
$as_echo_n "(cached) " >&6
3208
if test -n "$CC"; then
3209
ac_cv_prog_CC="$CC" # Let the user override the test.
3211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215
test -z "$as_dir" && as_dir=.
3216
for ac_exec_ext in '' $ac_executable_extensions; do
3217
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218
ac_cv_prog_CC="${ac_tool_prefix}cc"
3219
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229
if test -n "$CC"; then
3230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231
$as_echo "$CC" >&6; }
3233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234
$as_echo "no" >&6; }
3240
if test -z "$CC"; then
3241
# Extract the first word of "cc", so it can be a program name with args.
3242
set dummy cc; ac_word=$2
3243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244
$as_echo_n "checking for $ac_word... " >&6; }
3245
if test "${ac_cv_prog_CC+set}" = set; then :
3246
$as_echo_n "(cached) " >&6
3248
if test -n "$CC"; then
3249
ac_cv_prog_CC="$CC" # Let the user override the test.
3252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256
test -z "$as_dir" && as_dir=.
3257
for ac_exec_ext in '' $ac_executable_extensions; do
3258
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3260
ac_prog_rejected=yes
3264
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271
if test $ac_prog_rejected = yes; then
3272
# We found a bogon in the path, so make sure we never use it.
3273
set dummy $ac_cv_prog_CC
3275
if test $# != 0; then
3276
# We chose a different compiler from the bogus one.
3277
# However, it has the same basename, so the bogon will be chosen
3278
# first if we set CC to just the basename; use the full file name.
3280
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3286
if test -n "$CC"; then
3287
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288
$as_echo "$CC" >&6; }
3290
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291
$as_echo "no" >&6; }
3296
if test -z "$CC"; then
3297
if test -n "$ac_tool_prefix"; then
3298
for ac_prog in cl.exe
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
3300
2954
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3301
2955
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3302
2956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303
2957
$as_echo_n "checking for $ac_word... " >&6; }
3304
if test "${ac_cv_prog_CC+set}" = set; then :
2958
if test "${ac_cv_prog_CXX+set}" = set; then :
3305
2959
$as_echo_n "(cached) " >&6
3307
if test -n "$CC"; then
3308
ac_cv_prog_CC="$CC" # Let the user override the test.
2961
if test -n "$CXX"; then
2962
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3310
2964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311
2965
for as_dir in $PATH
3654
3302
$as_echo "$ac_cv_objext" >&6; }
3655
3303
OBJEXT=$ac_cv_objext
3656
3304
ac_objext=$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
3425
DEPDIR="${am__leading_dot}deps"
3427
ac_config_commands="$ac_config_commands depfiles"
3430
am_make=${MAKE-make}
3431
cat > confinc << 'END'
3433
@echo this is the am__doit target
3436
# If we don't find an include directive, just comment out the code.
3437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3438
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3442
# First try GNU make style include.
3443
echo "include confinc" > confmf
3444
# Ignore all kinds of additional output from `make'.
3445
case `$am_make -s -f confmf 2> /dev/null` in #(
3446
*the\ am__doit\ target*)
3452
# Now try BSD make style include.
3453
if test "$am__include" = "#"; then
3454
echo '.include "confinc"' > confmf
3455
case `$am_make -s -f confmf 2> /dev/null` in #(
3456
*the\ am__doit\ target*)
3457
am__include=.include
3465
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3466
$as_echo "$_am_result" >&6; }
3467
rm -f confinc confmf
3469
# Check whether --enable-dependency-tracking was given.
3470
if test "${enable_dependency_tracking+set}" = set; then :
3471
enableval=$enable_dependency_tracking;
3474
if test "x$enable_dependency_tracking" != xno; then
3475
am_depcomp="$ac_aux_dir/depcomp"
3478
if test "x$enable_dependency_tracking" != xno; then
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
ac_cpp='$CPP $CPPFLAGS'
3713
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716
if test -n "$ac_tool_prefix"; then
3717
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3718
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720
$as_echo_n "checking for $ac_word... " >&6; }
3721
if test "${ac_cv_prog_CC+set}" = set; then :
3722
$as_echo_n "(cached) " >&6
3724
if test -n "$CC"; then
3725
ac_cv_prog_CC="$CC" # Let the user override the test.
3727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731
test -z "$as_dir" && as_dir=.
3732
for ac_exec_ext in '' $ac_executable_extensions; do
3733
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3735
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745
if test -n "$CC"; then
3746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3747
$as_echo "$CC" >&6; }
3749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750
$as_echo "no" >&6; }
3755
if test -z "$ac_cv_prog_CC"; then
3757
# Extract the first word of "gcc", so it can be a program name with args.
3758
set dummy gcc; ac_word=$2
3759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760
$as_echo_n "checking for $ac_word... " >&6; }
3761
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3762
$as_echo_n "(cached) " >&6
3764
if test -n "$ac_ct_CC"; then
3765
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771
test -z "$as_dir" && as_dir=.
3772
for ac_exec_ext in '' $ac_executable_extensions; do
3773
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3774
ac_cv_prog_ac_ct_CC="gcc"
3775
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3784
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3785
if test -n "$ac_ct_CC"; then
3786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3787
$as_echo "$ac_ct_CC" >&6; }
3789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790
$as_echo "no" >&6; }
3793
if test "x$ac_ct_CC" = x; then
3796
case $cross_compiling:$ac_tool_warned in
3798
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3799
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3800
ac_tool_warned=yes ;;
3808
if test -z "$CC"; then
3809
if test -n "$ac_tool_prefix"; then
3810
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3811
set dummy ${ac_tool_prefix}cc; ac_word=$2
3812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813
$as_echo_n "checking for $ac_word... " >&6; }
3814
if test "${ac_cv_prog_CC+set}" = set; then :
3815
$as_echo_n "(cached) " >&6
3817
if test -n "$CC"; then
3818
ac_cv_prog_CC="$CC" # Let the user override the test.
3820
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824
test -z "$as_dir" && as_dir=.
3825
for ac_exec_ext in '' $ac_executable_extensions; do
3826
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827
ac_cv_prog_CC="${ac_tool_prefix}cc"
3828
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838
if test -n "$CC"; then
3839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840
$as_echo "$CC" >&6; }
3842
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843
$as_echo "no" >&6; }
3849
if test -z "$CC"; then
3850
# Extract the first word of "cc", so it can be a program name with args.
3851
set dummy cc; ac_word=$2
3852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853
$as_echo_n "checking for $ac_word... " >&6; }
3854
if test "${ac_cv_prog_CC+set}" = set; then :
3855
$as_echo_n "(cached) " >&6
3857
if test -n "$CC"; then
3858
ac_cv_prog_CC="$CC" # Let the user override the test.
3861
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865
test -z "$as_dir" && as_dir=.
3866
for ac_exec_ext in '' $ac_executable_extensions; do
3867
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3868
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3869
ac_prog_rejected=yes
3873
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880
if test $ac_prog_rejected = yes; then
3881
# We found a bogon in the path, so make sure we never use it.
3882
set dummy $ac_cv_prog_CC
3884
if test $# != 0; then
3885
# We chose a different compiler from the bogus one.
3886
# However, it has the same basename, so the bogon will be chosen
3887
# first if we set CC to just the basename; use the full file name.
3889
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3895
if test -n "$CC"; then
3896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897
$as_echo "$CC" >&6; }
3899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900
$as_echo "no" >&6; }
3905
if test -z "$CC"; then
3906
if test -n "$ac_tool_prefix"; then
3907
for ac_prog in cl.exe
3909
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3910
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3911
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912
$as_echo_n "checking for $ac_word... " >&6; }
3913
if test "${ac_cv_prog_CC+set}" = set; then :
3914
$as_echo_n "(cached) " >&6
3916
if test -n "$CC"; then
3917
ac_cv_prog_CC="$CC" # Let the user override the test.
3919
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923
test -z "$as_dir" && as_dir=.
3924
for ac_exec_ext in '' $ac_executable_extensions; do
3925
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3926
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3927
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937
if test -n "$CC"; then
3938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939
$as_echo "$CC" >&6; }
3941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942
$as_echo "no" >&6; }
3946
test -n "$CC" && break
3949
if test -z "$CC"; then
3951
for ac_prog in cl.exe
3953
# Extract the first word of "$ac_prog", so it can be a program name with args.
3954
set dummy $ac_prog; ac_word=$2
3955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956
$as_echo_n "checking for $ac_word... " >&6; }
3957
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3958
$as_echo_n "(cached) " >&6
3960
if test -n "$ac_ct_CC"; then
3961
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967
test -z "$as_dir" && as_dir=.
3968
for ac_exec_ext in '' $ac_executable_extensions; do
3969
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3970
ac_cv_prog_ac_ct_CC="$ac_prog"
3971
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3981
if test -n "$ac_ct_CC"; then
3982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3983
$as_echo "$ac_ct_CC" >&6; }
3985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986
$as_echo "no" >&6; }
3990
test -n "$ac_ct_CC" && break
3993
if test "x$ac_ct_CC" = x; then
3996
case $cross_compiling:$ac_tool_warned in
3998
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3999
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4000
ac_tool_warned=yes ;;
4009
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011
as_fn_error "no acceptable C compiler found in \$PATH
4012
See \`config.log' for more details." "$LINENO" 5; }
4014
# Provide some information about the compiler.
4015
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4018
for ac_option in --version -v -V -qversion; do
4019
{ { ac_try="$ac_compiler $ac_option >&5"
4021
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022
*) ac_try_echo=$ac_try;;
4024
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025
$as_echo "$ac_try_echo"; } >&5
4026
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4028
if test -s conftest.err; then
4030
... rest of stderr output deleted ...
4031
10q' conftest.err >conftest.er1
4032
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; }
3657
4039
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3658
4040
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3659
4041
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
10505
11414
CC="$lt_save_CC"
10519
ac_config_commands="$ac_config_commands libtool"
10524
# Only expand once:
10528
# checks for programs.
10530
ac_cpp='$CXXCPP $CPPFLAGS'
10531
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10532
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10533
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10534
if test -z "$CXX"; then
10535
if test -n "$CCC"; then
10538
if test -n "$ac_tool_prefix"; then
10539
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10541
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10542
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544
$as_echo_n "checking for $ac_word... " >&6; }
10545
if test "${ac_cv_prog_CXX+set}" = set; then :
10546
$as_echo_n "(cached) " >&6
10548
if test -n "$CXX"; then
10549
ac_cv_prog_CXX="$CXX" # Let the user override the test.
10551
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552
for as_dir in $PATH
10555
test -z "$as_dir" && as_dir=.
10556
for ac_exec_ext in '' $ac_executable_extensions; do
10557
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10558
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10559
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10568
CXX=$ac_cv_prog_CXX
10569
if test -n "$CXX"; then
10570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10571
$as_echo "$CXX" >&6; }
10573
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574
$as_echo "no" >&6; }
10578
test -n "$CXX" && break
10581
if test -z "$CXX"; then
10583
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10585
# Extract the first word of "$ac_prog", so it can be a program name with args.
10586
set dummy $ac_prog; ac_word=$2
10587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10588
$as_echo_n "checking for $ac_word... " >&6; }
10589
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10590
$as_echo_n "(cached) " >&6
10592
if test -n "$ac_ct_CXX"; then
10593
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10595
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10596
for as_dir in $PATH
10599
test -z "$as_dir" && as_dir=.
10600
for ac_exec_ext in '' $ac_executable_extensions; do
10601
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10602
ac_cv_prog_ac_ct_CXX="$ac_prog"
10603
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10612
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10613
if test -n "$ac_ct_CXX"; then
10614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10615
$as_echo "$ac_ct_CXX" >&6; }
10617
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618
$as_echo "no" >&6; }
10622
test -n "$ac_ct_CXX" && break
10625
if test "x$ac_ct_CXX" = x; then
10628
case $cross_compiling:$ac_tool_warned in
10630
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10631
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10632
ac_tool_warned=yes ;;
10640
# Provide some information about the compiler.
10641
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10644
for ac_option in --version -v -V -qversion; do
10645
{ { ac_try="$ac_compiler $ac_option >&5"
10646
case "(($ac_try" in
10647
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648
*) ac_try_echo=$ac_try;;
10650
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10651
$as_echo "$ac_try_echo"; } >&5
10652
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
10654
if test -s conftest.err; then
10656
... rest of stderr output deleted ...
10657
10q' conftest.err >conftest.er1
10658
cat conftest.er1 >&5
10659
rm -f conftest.er1 conftest.err
10661
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10662
test $ac_status = 0; }
10665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10666
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10667
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10668
$as_echo_n "(cached) " >&6
10670
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671
/* end confdefs.h. */
10684
if ac_fn_cxx_try_compile "$LINENO"; then :
10685
ac_compiler_gnu=yes
10689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10690
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10694
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10695
if test $ac_compiler_gnu = yes; then
10700
ac_test_CXXFLAGS=${CXXFLAGS+set}
10701
ac_save_CXXFLAGS=$CXXFLAGS
10702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10703
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10704
if test "${ac_cv_prog_cxx_g+set}" = set; then :
10705
$as_echo_n "(cached) " >&6
10707
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10708
ac_cxx_werror_flag=yes
10709
ac_cv_prog_cxx_g=no
10711
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712
/* end confdefs.h. */
10722
if ac_fn_cxx_try_compile "$LINENO"; then :
10723
ac_cv_prog_cxx_g=yes
10726
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727
/* end confdefs.h. */
10737
if ac_fn_cxx_try_compile "$LINENO"; then :
10740
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10742
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743
/* end confdefs.h. */
10753
if ac_fn_cxx_try_compile "$LINENO"; then :
10754
ac_cv_prog_cxx_g=yes
10756
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10758
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10764
$as_echo "$ac_cv_prog_cxx_g" >&6; }
10765
if test "$ac_test_CXXFLAGS" = set; then
10766
CXXFLAGS=$ac_save_CXXFLAGS
10767
elif test $ac_cv_prog_cxx_g = yes; then
10768
if test "$GXX" = yes; then
10774
if test "$GXX" = yes; then
10781
ac_cpp='$CPP $CPPFLAGS'
10782
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10783
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10784
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10786
depcc="$CXX" am_compiler_list=
10788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10789
$as_echo_n "checking dependency style of $depcc... " >&6; }
10790
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10791
$as_echo_n "(cached) " >&6
10793
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10794
# We make a subdir and do the tests there. Otherwise we can end up
10795
# making bogus files that we don't know about and never remove. For
10796
# instance it was reported that on HP-UX the gcc test will end up
10797
# making a dummy file named `D' -- because `-MD' means `put the output
10800
# Copy depcomp to subdir because otherwise we won't find it if we're
10801
# using a relative directory.
10802
cp "$am_depcomp" conftest.dir
10804
# We will build objects and dependencies in a subdirectory because
10805
# it helps to detect inapplicable dependency modes. For instance
10806
# both Tru64's cc and ICC support -MD to output dependencies as a
10807
# side effect of compilation, but ICC will put the dependencies in
10808
# the current directory while Tru64 will put them in the object
10812
am_cv_CXX_dependencies_compiler_type=none
10813
if test "$am_compiler_list" = ""; then
10814
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10816
am__universal=false
10817
case " $depcc " in #(
10818
*\ -arch\ *\ -arch\ *) am__universal=true ;;
10821
for depmode in $am_compiler_list; do
10822
# Setup a source with many dependencies, because some compilers
10823
# like to wrap large dependency lists on column 80 (with \), and
10824
# we should not choose a depcomp mode which is confused by this.
10826
# We need to recreate these files for each test, as the compiler may
10827
# overwrite some of them when testing with obscure command lines.
10828
# This happens at least with the AIX C compiler.
10830
for i in 1 2 3 4 5 6; do
10831
echo '#include "conftst'$i'.h"' >> sub/conftest.c
10832
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10833
# Solaris 8's {/usr,}/bin/sh.
10834
touch sub/conftst$i.h
10836
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10838
# We check with `-c' and `-o' for the sake of the "dashmstdout"
10839
# mode. It turns out that the SunPro C++ compiler does not properly
10840
# handle `-M -o', and we need to detect this. Also, some Intel
10841
# versions had trouble with output in subdirs
10842
am__obj=sub/conftest.${OBJEXT-o}
10843
am__minus_obj="-o $am__obj"
10846
# This depmode causes a compiler race in universal mode.
10847
test "$am__universal" = false || continue
10850
# after this tag, mechanisms are not by side-effect, so they'll
10851
# only be used when explicitly requested
10852
if test "x$enable_dependency_tracking" = xyes; then
10858
msvisualcpp | msvcmsys)
10859
# This compiler won't grok `-c -o', but also, the minuso test has
10860
# not run yet. These depmodes are late enough in the game, and
10861
# so weak that their functioning should not be impacted.
10862
am__obj=conftest.${OBJEXT-o}
10867
if depmode=$depmode \
10868
source=sub/conftest.c object=$am__obj \
10869
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10870
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10871
>/dev/null 2>conftest.err &&
10872
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10873
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10874
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10875
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10876
# icc doesn't choke on unknown options, it will just issue warnings
10877
# or remarks (even with -Werror). So we grep stderr for any message
10878
# that says an option was ignored or not supported.
10879
# When given -MP, icc 7.0 and 7.1 complain thusly:
10880
# icc: Command line warning: ignoring option '-M'; no argument required
10881
# The diagnosis changed in icc 8.0:
10882
# icc: Command line remark: option '-MP' not supported
10883
if (grep 'ignoring option' conftest.err ||
10884
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10885
am_cv_CXX_dependencies_compiler_type=$depmode
10892
rm -rf conftest.dir
10894
am_cv_CXX_dependencies_compiler_type=none
10898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10899
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10900
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10903
test "x$enable_dependency_tracking" != xno \
10904
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10905
am__fastdepCXX_TRUE=
10906
am__fastdepCXX_FALSE='#'
10908
am__fastdepCXX_TRUE='#'
10909
am__fastdepCXX_FALSE=
10915
ac_cpp='$CXXCPP $CPPFLAGS'
10916
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10917
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10918
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10919
if test -z "$CXX"; then
10920
if test -n "$CCC"; then
10923
if test -n "$ac_tool_prefix"; then
10924
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10926
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10927
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10929
$as_echo_n "checking for $ac_word... " >&6; }
10930
if test "${ac_cv_prog_CXX+set}" = set; then :
10931
$as_echo_n "(cached) " >&6
10933
if test -n "$CXX"; then
10934
ac_cv_prog_CXX="$CXX" # Let the user override the test.
10936
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937
for as_dir in $PATH
10940
test -z "$as_dir" && as_dir=.
10941
for ac_exec_ext in '' $ac_executable_extensions; do
10942
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10943
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10944
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953
CXX=$ac_cv_prog_CXX
10954
if test -n "$CXX"; then
10955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10956
$as_echo "$CXX" >&6; }
10958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959
$as_echo "no" >&6; }
10963
test -n "$CXX" && break
10966
if test -z "$CXX"; then
10968
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10970
# Extract the first word of "$ac_prog", so it can be a program name with args.
10971
set dummy $ac_prog; ac_word=$2
10972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973
$as_echo_n "checking for $ac_word... " >&6; }
10974
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10975
$as_echo_n "(cached) " >&6
10977
if test -n "$ac_ct_CXX"; then
10978
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981
for as_dir in $PATH
10984
test -z "$as_dir" && as_dir=.
10985
for ac_exec_ext in '' $ac_executable_extensions; do
10986
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10987
ac_cv_prog_ac_ct_CXX="$ac_prog"
10988
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10997
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10998
if test -n "$ac_ct_CXX"; then
10999
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11000
$as_echo "$ac_ct_CXX" >&6; }
11002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003
$as_echo "no" >&6; }
11007
test -n "$ac_ct_CXX" && break
11010
if test "x$ac_ct_CXX" = x; then
11013
case $cross_compiling:$ac_tool_warned in
11015
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11016
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11017
ac_tool_warned=yes ;;
11025
# Provide some information about the compiler.
11026
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11029
for ac_option in --version -v -V -qversion; do
11030
{ { ac_try="$ac_compiler $ac_option >&5"
11031
case "(($ac_try" in
11032
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033
*) ac_try_echo=$ac_try;;
11035
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11036
$as_echo "$ac_try_echo"; } >&5
11037
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
11039
if test -s conftest.err; then
11041
... rest of stderr output deleted ...
11042
10q' conftest.err >conftest.er1
11043
cat conftest.er1 >&5
11044
rm -f conftest.er1 conftest.err
11046
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11047
test $ac_status = 0; }
11050
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11051
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11052
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11053
$as_echo_n "(cached) " >&6
11055
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056
/* end confdefs.h. */
11069
if ac_fn_cxx_try_compile "$LINENO"; then :
11070
ac_compiler_gnu=yes
11074
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11075
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11079
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11080
if test $ac_compiler_gnu = yes; then
11085
ac_test_CXXFLAGS=${CXXFLAGS+set}
11086
ac_save_CXXFLAGS=$CXXFLAGS
11087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11088
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11089
if test "${ac_cv_prog_cxx_g+set}" = set; then :
11090
$as_echo_n "(cached) " >&6
11092
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11093
ac_cxx_werror_flag=yes
11094
ac_cv_prog_cxx_g=no
11096
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097
/* end confdefs.h. */
11107
if ac_fn_cxx_try_compile "$LINENO"; then :
11108
ac_cv_prog_cxx_g=yes
11111
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112
/* end confdefs.h. */
11122
if ac_fn_cxx_try_compile "$LINENO"; then :
11125
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11127
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128
/* end confdefs.h. */
11138
if ac_fn_cxx_try_compile "$LINENO"; then :
11139
ac_cv_prog_cxx_g=yes
11141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11143
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11145
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11146
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11149
$as_echo "$ac_cv_prog_cxx_g" >&6; }
11150
if test "$ac_test_CXXFLAGS" = set; then
11151
CXXFLAGS=$ac_save_CXXFLAGS
11152
elif test $ac_cv_prog_cxx_g = yes; then
11153
if test "$GXX" = yes; then
11159
if test "$GXX" = yes; then
11166
ac_cpp='$CPP $CPPFLAGS'
11167
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11171
depcc="$CXX" am_compiler_list=
11173
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11174
$as_echo_n "checking dependency style of $depcc... " >&6; }
11175
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11176
$as_echo_n "(cached) " >&6
11178
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11179
# We make a subdir and do the tests there. Otherwise we can end up
11180
# making bogus files that we don't know about and never remove. For
11181
# instance it was reported that on HP-UX the gcc test will end up
11182
# making a dummy file named `D' -- because `-MD' means `put the output
11185
# Copy depcomp to subdir because otherwise we won't find it if we're
11186
# using a relative directory.
11187
cp "$am_depcomp" conftest.dir
11189
# We will build objects and dependencies in a subdirectory because
11190
# it helps to detect inapplicable dependency modes. For instance
11191
# both Tru64's cc and ICC support -MD to output dependencies as a
11192
# side effect of compilation, but ICC will put the dependencies in
11193
# the current directory while Tru64 will put them in the object
11197
am_cv_CXX_dependencies_compiler_type=none
11198
if test "$am_compiler_list" = ""; then
11199
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11201
am__universal=false
11202
case " $depcc " in #(
11203
*\ -arch\ *\ -arch\ *) am__universal=true ;;
11206
for depmode in $am_compiler_list; do
11207
# Setup a source with many dependencies, because some compilers
11208
# like to wrap large dependency lists on column 80 (with \), and
11209
# we should not choose a depcomp mode which is confused by this.
11211
# We need to recreate these files for each test, as the compiler may
11212
# overwrite some of them when testing with obscure command lines.
11213
# This happens at least with the AIX C compiler.
11215
for i in 1 2 3 4 5 6; do
11216
echo '#include "conftst'$i'.h"' >> sub/conftest.c
11217
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11218
# Solaris 8's {/usr,}/bin/sh.
11219
touch sub/conftst$i.h
11221
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11223
# We check with `-c' and `-o' for the sake of the "dashmstdout"
11224
# mode. It turns out that the SunPro C++ compiler does not properly
11225
# handle `-M -o', and we need to detect this. Also, some Intel
11226
# versions had trouble with output in subdirs
11227
am__obj=sub/conftest.${OBJEXT-o}
11228
am__minus_obj="-o $am__obj"
11231
# This depmode causes a compiler race in universal mode.
11232
test "$am__universal" = false || continue
11235
# after this tag, mechanisms are not by side-effect, so they'll
11236
# only be used when explicitly requested
11237
if test "x$enable_dependency_tracking" = xyes; then
11243
msvisualcpp | msvcmsys)
11244
# This compiler won't grok `-c -o', but also, the minuso test has
11245
# not run yet. These depmodes are late enough in the game, and
11246
# so weak that their functioning should not be impacted.
11247
am__obj=conftest.${OBJEXT-o}
11252
if depmode=$depmode \
11253
source=sub/conftest.c object=$am__obj \
11254
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11255
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11256
>/dev/null 2>conftest.err &&
11257
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11258
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11259
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11260
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11261
# icc doesn't choke on unknown options, it will just issue warnings
11262
# or remarks (even with -Werror). So we grep stderr for any message
11263
# that says an option was ignored or not supported.
11264
# When given -MP, icc 7.0 and 7.1 complain thusly:
11265
# icc: Command line warning: ignoring option '-M'; no argument required
11266
# The diagnosis changed in icc 8.0:
11267
# icc: Command line remark: option '-MP' not supported
11268
if (grep 'ignoring option' conftest.err ||
11269
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11270
am_cv_CXX_dependencies_compiler_type=$depmode
11277
rm -rf conftest.dir
11279
am_cv_CXX_dependencies_compiler_type=none
11283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11284
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11285
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11288
test "x$enable_dependency_tracking" != xno \
11289
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11290
am__fastdepCXX_TRUE=
11291
am__fastdepCXX_FALSE='#'
11293
am__fastdepCXX_TRUE='#'
11294
am__fastdepCXX_FALSE=
11298
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11299
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11300
(test "X$CXX" != "Xg++"))) ; then
11302
ac_cpp='$CXXCPP $CPPFLAGS'
11303
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11304
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11305
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11307
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11308
if test -z "$CXXCPP"; then
11309
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11310
$as_echo_n "(cached) " >&6
11312
# Double quotes because CXXCPP needs to be expanded
11313
for CXXCPP in "$CXX -E" "/lib/cpp"
11315
ac_preproc_ok=false
11316
for ac_cxx_preproc_warn_flag in '' yes
11318
# Use a header file that comes with gcc, so configuring glibc
11319
# with a fresh cross-compiler works.
11320
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321
# <limits.h> exists even on freestanding compilers.
11322
# On the NeXT, cc -E runs the code through the compiler's parser,
11323
# not just through cpp. "Syntax error" is here to catch this case.
11324
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325
/* end confdefs.h. */
11327
# include <limits.h>
11329
# include <assert.h>
11333
if ac_fn_cxx_try_cpp "$LINENO"; then :
11336
# Broken: fails on valid input.
11339
rm -f conftest.err conftest.$ac_ext
11341
# OK, works on sane cases. Now check whether nonexistent headers
11342
# can be detected and how.
11343
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344
/* end confdefs.h. */
11345
#include <ac_nonexistent.h>
11347
if ac_fn_cxx_try_cpp "$LINENO"; then :
11348
# Broken: success on invalid input.
11351
# Passes both tests.
11355
rm -f conftest.err conftest.$ac_ext
11358
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11359
rm -f conftest.err conftest.$ac_ext
11360
if $ac_preproc_ok; then :
11365
ac_cv_prog_CXXCPP=$CXXCPP
11368
CXXCPP=$ac_cv_prog_CXXCPP
11370
ac_cv_prog_CXXCPP=$CXXCPP
11372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11373
$as_echo "$CXXCPP" >&6; }
11374
ac_preproc_ok=false
11375
for ac_cxx_preproc_warn_flag in '' yes
11377
# Use a header file that comes with gcc, so configuring glibc
11378
# with a fresh cross-compiler works.
11379
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11380
# <limits.h> exists even on freestanding compilers.
11381
# On the NeXT, cc -E runs the code through the compiler's parser,
11382
# not just through cpp. "Syntax error" is here to catch this case.
11383
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384
/* end confdefs.h. */
11386
# include <limits.h>
11388
# include <assert.h>
11392
if ac_fn_cxx_try_cpp "$LINENO"; then :
11395
# Broken: fails on valid input.
11398
rm -f conftest.err conftest.$ac_ext
11400
# OK, works on sane cases. Now check whether nonexistent headers
11401
# can be detected and how.
11402
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403
/* end confdefs.h. */
11404
#include <ac_nonexistent.h>
11406
if ac_fn_cxx_try_cpp "$LINENO"; then :
11407
# Broken: success on invalid input.
11410
# Passes both tests.
11414
rm -f conftest.err conftest.$ac_ext
11417
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11418
rm -f conftest.err conftest.$ac_ext
11419
if $ac_preproc_ok; then :
11422
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11423
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11424
_lt_caught_CXX_error=yes; }
11428
ac_cpp='$CPP $CPPFLAGS'
11429
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11430
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11431
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11434
_lt_caught_CXX_error=yes
11441
11418
ac_cpp='$CXXCPP $CPPFLAGS'
11442
11419
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'