From e1d1a9f5b65691338e7a6d41dbbf05bc7073740a Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Fri, 4 Jun 2010 14:03:55 -0400 Subject: config: add check for yacc to insure it is installed #27973 Unlike other macros AC_PROG_YACC sets the YACC variable to "yacc" as a last resort, even if no programs have been found. Improve error checking by issuing an error message if yacc is not found. The module cannot build anyway. Signed-off-by: Gaetan Nadon --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 53e9c69..c8ccbde 100644 --- a/configure.ac +++ b/configure.ac @@ -35,6 +35,8 @@ XORG_DEFAULT_OPTIONS AC_PROG_LEX AC_PROG_YACC +AC_PATH_PROG([YACC_INST], $YACC) +test -z "$YACC_INST" && AC_MSG_ERROR([yacc not found - unable to compile gram.y]) AC_PROG_CC AC_PROG_INSTALL -- cgit v1.2.3