* tests/convenience.at (Java convenience archives): Skip test if

gcj cannot compile a working executable from .java files.
Report by Nelson H. F. Beebe.
This commit is contained in:
Peter O'Gorman 2008-03-07 08:07:50 +00:00
parent b04c7061f4
commit 8314993c63
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2008-03-07 Peter O'Gorman <peter@pogma.com>
* tests/convenience.at (Java convenience archives): Skip test if
gcj cannot compile a working executable from .java files.
Report by Nelson H. F. Beebe.
* libltdl/m4/libtool.m4 (_LT_LANG_GCJ_CONFIG): Need to set LD.
Reported by Nelson H. F. Beebe.

View File

@ -262,8 +262,10 @@ EOF
# There are just too many broken gcj installations out there, either missing
# libgcj.spec or unable to find it. Skip this test for them.
if test $i -eq 1; then
AT_CHECK[($GCJ $GCJFLAGS -c foo1.java || exit 77], [], [ignore], [ignore])
rm -f foo1.o foo1.obj
AT_CHECK([$GCJ $GCJFLAGS -c foo1.java || exit 77], [], [ignore], [ignore])
AT_CHECK([$GCJ $GCJFLAGS --main=foo1 -o foo1 foo1.java A1.java || exit 77],[],[ignore],[ignore])
AT_CHECK([./foo1$EXEEXT || exit 77],[],[ignore],[ignore])
rm -f foo1.o foo1.obj foo1$EXEEXT
fi
$LIBTOOL --tag=GCJ --mode=compile $GCJ $GCJFLAGS -c foo$i.java