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/atlocal.in | |
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/atlocal.in')
-rw-r--r-- | tests/atlocal.in | 6 |
1 files changed, 6 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@'} |