# HG changeset patch
# User Andrey Skvortsov <andrej.skvortzov@gmail.com>
# Date 1485175807 0
# Node ID 675ee2eeb3ff879fbeb69317ca84b91f88ee6abb
# Parent  fe580c0c19115f81de95da8fcc45223491d94951
Check that flex is installed during ./configure

diff -r fe580c0c1911 -r 675ee2eeb3ff configure.ac
--- a/configure.ac	Tue Jan 17 15:50:55 2017 +0000
+++ b/configure.ac	Mon Jan 23 12:50:07 2017 +0000
@@ -42,6 +42,10 @@
   (exit 1); exit 1;
 fi
 
+if test "x$LEX" == "x:"; then
+   AC_MSG_ERROR("flex/lex is missing")
+fi
+
 # Checks for header files.
 AC_CHECK_HEADERS([float.h limits.h stdint.h stdlib.h string.h strings.h sys/timeb.h unistd.h])