summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGary V. Vaughan <gary@gnu.org>2013-10-30 12:01:27 +1300
committerGary V. Vaughan <gary@gnu.org>2014-01-02 12:06:29 +1300
commit9cb8bb6d065f0453abea50b35e7bbd4c4598a52b (patch)
tree7687fd44be8b308c02de6c5f21e822d823eadefb /tests
parent4e373ebe1308473a47ae1ba9da291a505184a9cb (diff)
downloadlibtool-9cb8bb6d065f0453abea50b35e7bbd4c4598a52b.tar.gz
tests: skip fcdemo checks when $FC cannot compile fortran90.
Avoid spurious fcdemo failures when Autoconf picks f77 or similar for a fortran90 compiler. * tests/testsuite.at (LT_AT_TAG): Using FC and FCFLAGS from make TESTS_ENVIRONMENT, check that we really can compile fortran90 or else skip. Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite.at9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 99122be6..31344772 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -352,6 +352,15 @@ AT_CHECK([{ test -n "[$]$1" && test "X[$]$1" != Xno; } || (exit 77)])
m4_case([$1],
[CXX],
[AT_CHECK([test g++ != "$CXX" || (g++ -v >/dev/null 2>&1) || (exit 77)])],
+ [FC],
+ [# Autoconf will accept f77 or similar as a valid FC, but often f77
+ # will not compile fortran90 code; in that case skip the FC checks.
+ AT_DATA([fc_test.f90],
+[[ program main
+
+ end
+]])
+ AT_CHECK([$FC $FCFLAGS fc_test.f90 || exit 77], [], [ignore], [ignore])],
[GCJ],
[# There are just too many broken gcj installations out there, either missing
# libgcj.spec or unable to find it. Skip the test for them.