summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac19
2 files changed, 24 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7eee7ea..add1e17 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
16-05-02 Cyrille Bagard <nocbos@gmail.com>
+ * configure.ac:
+ Warn in case of missing analyzer/parser generator.
+
+16-05-02 Cyrille Bagard <nocbos@gmail.com>
+
* 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