From: Han-Wen Nienhuys Date: Sat, 14 May 2005 23:58:43 +0000 (+0000) Subject: * Documentation/topdocs/INSTALL.texi (Top): remove Flex X-Git-Tag: release/2.5.25~34 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d4dfa0ea52d0107c6a810b28e67a742f6f331949;p=lilypond.git * Documentation/topdocs/INSTALL.texi (Top): remove Flex requirement. * stepmake/aclocal.m4: STEPMAKE_FLEXLEXER_LOCATION: new function. Figure out where FlexLexer.h lives * lily/GNUmakefile (OUT_DIST_FILES): dist lexer.cc and FlexLexer.h --- diff --git a/ChangeLog b/ChangeLog index 3fee7dbd95..24bca3cda1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2005-05-15 Han-Wen Nienhuys + + * Documentation/topdocs/INSTALL.texi (Top): remove Flex + requirement. + + * stepmake/aclocal.m4: STEPMAKE_FLEXLEXER_LOCATION: new + function. Figure out where FlexLexer.h lives + + * lily/GNUmakefile (OUT_DIST_FILES): dist lexer.cc and FlexLexer.h + 2005-05-14 Jan Nieuwenhuizen * scripts/lilypond-invoke-editor.scm (dissect-uri): Handle URIs diff --git a/Documentation/topdocs/INSTALL.texi b/Documentation/topdocs/INSTALL.texi index ab6195654f..6055252f16 100644 --- a/Documentation/topdocs/INSTALL.texi +++ b/Documentation/topdocs/INSTALL.texi @@ -82,13 +82,6 @@ work. (version 1.6.5 or newer). If you are installing binary packages, you may need to install guile-devel or guile-dev or libguile-dev too. -@item @uref{http://www.gnu.org/software/flex/,Flex} (version 2.5.4a or newer). - -WARNING: plain Flex 2.5.4(a) generates invalid C++ code. GCC 3.x -chokes on this. If you wish to use GCC 3.x, make sure that your -distribution supports g++ 3.x and flex. For workarounds, see -lexer-gcc-3.1.sh in the source directory. - @item @TeX{}. @TeX{} is used as an optional output backend. diff --git a/config.make.in b/config.make.in index 7a56d7bdc3..a5631d21f4 100644 --- a/config.make.in +++ b/config.make.in @@ -111,3 +111,4 @@ TTFTOOL_ENDIAN = @TTFTOOL_ENDIAN@ WINDRES = @WINDRES@ YACC = @YACC@ ZIP = @ZIP@ +FLEXLEXER_PATH = @FLEXLEXER_PATH@ diff --git a/configure.in b/configure.in index 2f68128636..8507283289 100644 --- a/configure.in +++ b/configure.in @@ -44,6 +44,7 @@ STEPMAKE_DLOPEN STEPMAKE_BISON(OPTIONAL, 1.29) STEPMAKE_FLEX(REQUIRED) STEPMAKE_FLEXLEXER(REQUIRED) +STEPMAKE_FLEXLEXER_LOCATION AC_LANG_C STEPMAKE_LOCALE STEPMAKE_GETTEXT @@ -91,6 +92,7 @@ STEPMAKE_WINDOWS # guile executable for some scripts STEPMAKE_GUILE(OPTIONAL) + # perl for help2man. STEPMAKE_PERL(OPTIONAL) @@ -100,7 +102,6 @@ STEPMAKE_PERL(OPTIONAL) # makeinfo -- but hopefully won't report makeinfo problems. STEPMAKE_PROGS(MAKEINFO, makeinfo, REQUIRED, 4.7) - if test "$optimise_b" = yes; then DEFINES="$DEFINES -DSTRING_UTILS_INLINED" AC_DEFINE(STRINGS_UTILS_INLINED) @@ -111,7 +112,6 @@ AC_DEFINE_UNQUOTED(FLOWER_VERSION, "${FULL_FLOWER_VERSION}") # Gather requirements and generate output. STEPMAKE_END - test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc="" cat <' | $CXX -E - | \ + sed 's!# 1 "\(.*\)FlexLexer.h"!@FLEXLEXER@\1@@!g' | grep '@@' | \ + sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` >& /dev/null + AC_SUBST(FLEXLEXER_PATH) + AC_MSG_RESULT($FLEXLEXER_PATH) +]) + AC_DEFUN(STEPMAKE_GCC, [ if test "$GCC" = "yes"; then STEPMAKE_CHECK_VERSION(CC, $1, $2)