mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 18:53:04 +00:00
tests: don't require a D compiler
Reported by Kiyoshi Kanazawa. http://lists.gnu.org/archive/html/bug-bison/2019-04/msg00018.html * tests/atlocal.in (BISON_DC_WORKS): New. * tests/local.at (AT_COMPILE_D): Use it.
This commit is contained in:
@@ -118,8 +118,14 @@ fi
|
|||||||
## Other. ##
|
## Other. ##
|
||||||
## ------- ##
|
## ------- ##
|
||||||
|
|
||||||
|
# Empty if no D compiler was found.
|
||||||
: ${DC='@DC@'}
|
: ${DC='@DC@'}
|
||||||
: ${DCFLAGS='@DCFLAGS@'}
|
: ${DCFLAGS='@DCFLAGS@'}
|
||||||
|
if test x"$DC" = x; then
|
||||||
|
BISON_DC_WORKS=false
|
||||||
|
else
|
||||||
|
BISON_DC_WORKS=true
|
||||||
|
fi
|
||||||
|
|
||||||
# Empty if no javac was found
|
# Empty if no javac was found
|
||||||
: ${CONF_JAVAC='@CONF_JAVAC@'}
|
: ${CONF_JAVAC='@CONF_JAVAC@'}
|
||||||
|
|||||||
@@ -977,6 +977,7 @@ AT_CHECK(m4_join([ ],
|
|||||||
# with trailing ".o" removed, and ".cc" appended.
|
# with trailing ".o" removed, and ".cc" appended.
|
||||||
m4_define([AT_COMPILE_D],
|
m4_define([AT_COMPILE_D],
|
||||||
[AT_KEYWORDS(d)
|
[AT_KEYWORDS(d)
|
||||||
|
AT_SKIP_IF([[! $BISON_DC_WORKS]])
|
||||||
AT_CHECK(m4_join([ ],
|
AT_CHECK(m4_join([ ],
|
||||||
[$DC $DCFLAGS $3],
|
[$DC $DCFLAGS $3],
|
||||||
[m4_bmatch([$1], [[.]], [-c])],
|
[m4_bmatch([$1], [[.]], [-c])],
|
||||||
|
|||||||
Reference in New Issue
Block a user