Check flex and bison are found in configure.ac

This commit is contained in:
Dave Davenport 2017-02-23 21:55:37 +01:00
parent b943bb0615
commit 836a40f0a5
1 changed files with 3 additions and 1 deletions

View File

@ -3,10 +3,12 @@ AC_INIT([rofi], [1.3.1], [https://github.com/DaveDavenport/rofi/],[],[https://fo
AC_CONFIG_SRCDIR([source/rofi.c])
AC_CONFIG_HEADER([config.h])
AC_PROG_LEX
AC_PROG_YACC
AS_IF([test "x${LEX}" != "xflex" ], [AC_MSG_ERROR( "Failed to find flex")])
AS_IF([test "x${YACC}" != "xbison -y" ], [AC_MSG_ERROR( "Failed to find bison")])
dnl ---------------------------------------------------------------------
dnl Setup automake to be silent and in foreign mode.
dnl We want xz distribution