diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-04-29 18:14:53 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-04-29 22:27:01 +0200 |
commit | 15f9f8c85310577874a000bcb0b1773e4f23b8b3 (patch) | |
tree | 9d6bf6c02916675977457119943e6b2d2e39d4af /tests | |
parent | 04676a50853902806c33a413f50cb8704f668fbd (diff) | |
download | bison-15f9f8c85310577874a000bcb0b1773e4f23b8b3.tar.gz |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/atlocal.in | 6 | ||||
-rw-r--r-- | tests/local.at | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/atlocal.in b/tests/atlocal.in index f7db41e9..d8141cb9 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -118,8 +118,14 @@ fi ## Other. ## ## ------- ## +# Empty if no D compiler was found. : ${DC='@DC@'} : ${DCFLAGS='@DCFLAGS@'} +if test x"$DC" = x; then + BISON_DC_WORKS=false +else + BISON_DC_WORKS=true +fi # Empty if no javac was found : ${CONF_JAVAC='@CONF_JAVAC@'} diff --git a/tests/local.at b/tests/local.at index 1f55bedc..9c0e85e3 100644 --- a/tests/local.at +++ b/tests/local.at @@ -977,6 +977,7 @@ AT_CHECK(m4_join([ ], # with trailing ".o" removed, and ".cc" appended. m4_define([AT_COMPILE_D], [AT_KEYWORDS(d) +AT_SKIP_IF([[! $BISON_DC_WORKS]]) AT_CHECK(m4_join([ ], [$DC $DCFLAGS $3], [m4_bmatch([$1], [[.]], [-c])], |