From 6489995bdc9ed50117fd38f5f261334daad63870 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Mon, 2 May 2016 09:08:26 +0200 Subject: Warned in case of missing analyzer/parser generator. --- ChangeLog | 5 +++++ configure.ac | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7eee7ea..add1e17 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 16-05-02 Cyrille Bagard + * configure.ac: + Warn in case of missing analyzer/parser generator. + +16-05-02 Cyrille Bagard + * src/arch/dalvik/Makefile.am: * src/arch/dalvik/decomp/Makefile.am: * src/decomp/Makefile.am: diff --git a/configure.ac b/configure.ac index dc1118a..e8291b3 100644 --- a/configure.ac +++ b/configure.ac @@ -35,6 +35,9 @@ AC_PROG_INSTALL AC_PROG_MAKE_SET AC_PROG_LIBTOOL +AC_PATH_PROG(YACC_INST, $YACC) +AC_PATH_PROG(LEX_INST, $LEX) + #--- Checks for libraries @@ -421,8 +424,24 @@ echo Available Python programming language........ : $python3_version echo The Python GObject bindings.................. : $libpygobject_version echo +echo Found lexical analyzer generator............. : $LEX_INST +echo Found general-purpose parser generator....... : $YACC_INST + +echo echo Print debugging messages..................... : $enable_debug +if test -z "$LEX_INST" -o -z "$YACC_INST"; then + + echo + + m4_define([flex_bison_warning],[m4_joinall([m4_newline([])], + [Only code from a release archive can be compiled without analyzer and parser generators.], + [If the sources come from a repository snapshot, please install all the requiered dependencies for the software.])]) + + AC_MSG_WARN([flex_bison_warning]) + +fi + echo echo configure complete, now type \'make\' echo -- cgit v0.11.2-87-g4458