From: Ramakrishnan Muthukrishnan <vu3rdd@gmail.com>
To: guile-devel <guile-devel@gnu.org>
Subject: patch to check for GNU flex
Date: Fri, 19 Nov 2010 23:05:06 +0530 [thread overview]
Message-ID: <AANLkTi=gSnNj8+H7xhMqA67ZzXdZjA68++9reFRgo3Ab@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 181 bytes --]
Hi,
configure currently is not checking for the presence of flex, but it
is being used inside libguile/Makefile. The attached patch fixes this.
thanks
--
Ramakrishnan
[-- Attachment #2: 0001-check-for-flex-in-configure.ac.patch --]
[-- Type: text/x-patch, Size: 1435 bytes --]
From 3c4b6f8165e785f602e576a51f645f463f01c836 Mon Sep 17 00:00:00 2001
From: Ramakrishnan Muthukrishnan <vu3rdd@gmail.com>
Date: Fri, 19 Nov 2010 22:48:13 +0530
Subject: [PATCH] check for `flex' in configure.ac
* configure.ac: check for the presence of `GNU flex' and flag an error
if it is not found.
* libguile/Makefile.am: use the LEX variable set by configure to invoke
`GNU flex'.
---
configure.ac | 6 ++++++
libguile/Makefile.am | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 3446992..a684fb8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,6 +82,12 @@ if test "x$HAVE_LIBLTDL" != "xyes"; then
AC_MSG_ERROR([GNU libltdl (Libtool) not found, see README.])
fi
+AC_PROG_LEX
+if test "x$LEX" != xflex; then
+ AC_MSG_ERROR([GNU flex not found.])
+fi
+
+
AC_CHECK_PROG(have_makeinfo, makeinfo, yes, no)
AM_CONDITIONAL(HAVE_MAKEINFO, test "$have_makeinfo" = yes)
diff --git a/libguile/Makefile.am b/libguile/Makefile.am
index 55a9764..41bc090 100644
--- a/libguile/Makefile.am
+++ b/libguile/Makefile.am
@@ -695,7 +695,7 @@ guile-procedures.txt: guile-procedures.texi
endif
c-tokenize.c: c-tokenize.lex
- flex -t $(srcdir)/c-tokenize.lex > $@ || { rm $@; false; }
+ $(LEX) -t $(srcdir)/c-tokenize.lex > $@ || { rm $@; false; }
schemelibdir = $(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION)
schemelib_DATA = guile-procedures.txt
--
1.7.2.3
next reply other threads:[~2010-11-19 17:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-19 17:35 Ramakrishnan Muthukrishnan [this message]
2010-11-19 22:39 ` patch to check for GNU flex Ludovic Courtès
2010-11-19 22:48 ` Ramakrishnan Muthukrishnan
2010-11-20 22:23 ` Andy Wingo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTi=gSnNj8+H7xhMqA67ZzXdZjA68++9reFRgo3Ab@mail.gmail.com' \
--to=vu3rdd@gmail.com \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).