2115
2115
as_fn_set_status $ac_retval
2117
2117
} # ac_fn_cxx_try_run
2119
# ac_fn_cxx_try_link LINENO
2120
# -------------------------
2121
# Try to link conftest.$ac_ext, and return whether this succeeded.
2122
ac_fn_cxx_try_link ()
2124
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125
rm -f conftest.$ac_objext conftest$ac_exeext
2126
if { { ac_try="$ac_link"
2128
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129
*) ac_try_echo=$ac_try;;
2131
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2132
$as_echo "$ac_try_echo"; } >&5
2133
(eval "$ac_link") 2>conftest.err
2135
if test -s conftest.err; then
2136
grep -v '^ *+' conftest.err >conftest.er1
2137
cat conftest.er1 >&5
2138
mv -f conftest.er1 conftest.err
2140
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2141
test $ac_status = 0; } && {
2142
test -z "$ac_cxx_werror_flag" ||
2143
test ! -s conftest.err
2144
} && test -s conftest$ac_exeext && {
2145
test "$cross_compiling" = yes ||
2146
$as_test_x conftest$ac_exeext
2150
$as_echo "$as_me: failed program was:" >&5
2151
sed 's/^/| /' conftest.$ac_ext >&5
2155
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2156
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2157
# interfere with the next link command; also delete a directory that is
2158
# left behind by Apple's compiler. We do this before executing the actions.
2159
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2160
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2161
as_fn_set_status $ac_retval
2163
} # ac_fn_cxx_try_link
2118
2164
cat >config.log <<_ACEOF
2119
2165
This file contains any messages produced by compilers while
2120
2166
running configure, to aid debugging if configure makes a mistake.
12410
if ac_fn_c_try_link "$LINENO"; then :
12412
ac_cpp='$CPP $CPPFLAGS'
12413
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12414
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12415
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12456
if ac_fn_cxx_try_link "$LINENO"; then :
12417
12457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12418
12458
$as_echo "yes" >&6; }
12431
12471
rm -f core conftest.err conftest.$ac_objext \
12432
12472
conftest$ac_exeext conftest.$ac_ext
12474
ac_cpp='$CPP $CPPFLAGS'
12475
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12476
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12477
ac_compiler_gnu=$ac_cv_c_compiler_gnu