summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2021-03-03 15:54:05 +0100
committerAlexander Larsson <alexander.larsson@gmail.com>2021-03-10 10:33:51 +0100
commit4ea46eb397499a7ba2d1d34ab6ed24de17c180ed (patch)
tree3ba24323c3c66ef934e3091e1ef8274492f090be
parentedf1e40bbbd31ec45f05a5a0f82e8b00e522f437 (diff)
downloadflatpak-4ea46eb397499a7ba2d1d34ab6ed24de17c180ed.tar.gz
build: Add bison detection macro
-rw-r--r--acinclude.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 61db8a82..5ae0ed9a 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -412,3 +412,18 @@ x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/true/;s/x${B}/false/;1q"`
m4_ifvaln([$5],[else $5])dnl
fi
]) dnl AX_COMPARE_VERSION
+
+dnl #########################################################################
+
+# AC_PROG_BISON
+# ------------
+AN_MAKEVAR([BISON], [AC_PROG_YACC])
+AN_PROGRAM([bison], [AC_PROG_YACC])
+AC_DEFUN([AC_PROG_BISON],
+[AC_CHECK_PROGS(BISON, 'bison')dnl
+AC_ARG_VAR(BISON,
+[The Bison implementation to use. Defaults to `bison'.])dnl
+AC_ARG_VAR(BFLAGS,
+[The list of arguments that will be passed by default to $BISON. This script
+will default BFLAGS to the empty string to avoid a default value of `-d' given
+by some make applications.])])