aboutsummaryrefslogtreecommitdiffstats
path: root/m4/macros/prog_yacc.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/macros/prog_yacc.m4')
-rw-r--r--m4/macros/prog_yacc.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/m4/macros/prog_yacc.m4 b/m4/macros/prog_yacc.m4
new file mode 100644
index 000000000000..666cdef3f96a
--- /dev/null
+++ b/m4/macros/prog_yacc.m4
@@ -0,0 +1,6 @@
+dnl find bison/yacc, but error if none found
+AC_DEFUN([AMU_PROG_YACC],
+[AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc, :)
+if test "x$YACC" = "x:"; then
+ AC_MSG_ERROR([cannot find bison/yacc/byacc -- needed for am-utils])
+fi])