[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/5] build: examples/calc++/calc++ requires flex
From: |
Paul Eggert |
Subject: |
[PATCH 3/5] build: examples/calc++/calc++ requires flex |
Date: |
Mon, 21 Oct 2013 15:27:05 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 |
* configure.ac (FLEX_CXX_WORKS): New AM_CONDITIONAL.
* examples/calc++/local.mk (examples/calc++/calc++):
Build if FLEX_CXX_WORKS, not BISON_CXX_WORKS.
---
configure.ac | 2 ++
examples/calc++/local.mk | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 992e203..2843b67 100644
--- a/configure.ac
+++ b/configure.ac
@@ -179,6 +179,8 @@ $LEX_IS_FLEX || test "X$LEX" = X: || {
AC_MSG_WARN([bypassing lex because flex is required])
LEX=:
}
+AM_CONDITIONAL([FLEX_CXX_WORKS],
+ [$LEX_IS_FLEX && test $bison_cv_cxx_works = yes])
AC_PROG_YACC
AC_PROG_RANLIB
AC_PROG_GNU_M4
diff --git a/examples/calc++/local.mk b/examples/calc++/local.mk
index d1d43a0..493b8c7 100644
--- a/examples/calc++/local.mk
+++ b/examples/calc++/local.mk
@@ -63,7 +63,7 @@ calc_sources = \
$(calc_sources_extracted) \
$(calc_sources_generated)
-if BISON_CXX_WORKS
+if FLEX_CXX_WORKS
check_PROGRAMS += examples/calc++/calc++
nodist_examples_calc___calc___SOURCES = \
$(calc_sources)
--
1.8.3.1
- some minor patches for Solaris 10 etc., Paul Eggert, 2013/10/21
- [PATCH 1/5] maint: git now ignores .log and .trs files, Paul Eggert, 2013/10/21
- [PATCH 2/5] maint: mention help2man, texinfo, apt-get, Paul Eggert, 2013/10/21
- [PATCH 3/5] build: examples/calc++/calc++ requires flex,
Paul Eggert <=
- [PATCH 4/5] maint: git now ignores rpcalc, Paul Eggert, 2013/10/21
- [PATCH 5/5] bison: pacify Sun C 5.12, Paul Eggert, 2013/10/21
- Re: [PATCH 5/5] bison: pacify Sun C 5.12, Akim Demaille, 2013/10/22
- Re: [PATCH 5/5] bison: pacify Sun C 5.12, Akim Demaille, 2013/10/22
- Re: [PATCH 5/5] bison: pacify Sun C 5.12, Paul Eggert, 2013/10/22
- Re: [PATCH 5/5] bison: pacify Sun C 5.12, Akim Demaille, 2013/10/23
- Re: [PATCH 5/5] bison: pacify Sun C 5.12, Akim Demaille, 2013/10/23
- Re: [PATCH 5/5] bison: pacify Sun C 5.12, Akim Demaille, 2013/10/25
- Re: [PATCH 5/5] bison: pacify Sun C 5.12, Akim Demaille, 2013/10/29