summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorJan Maria Matejka <mq@ucw.cz>2018-07-17 15:30:59 +0200
committerJan Maria Matejka <mq@ucw.cz>2018-08-14 14:01:39 +0200
commit86b9e8e39a0b42407c95921ca8262b0a75cad5f2 (patch)
tree3d874e8d8e225205ad364c7911485b3fdeb67b73 /aclocal.m4
parent1279a83103262950ab99e8a6fe3c6cc2da8d42a8 (diff)
M4: generate synchronization lines
This also includes Bison version check. Versions before 3.0 don't support them in a reliable way and we don't promise to work with versions older than 2.4.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m419
1 files changed, 19 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index dcf1bd8b..28a632c8 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -175,3 +175,22 @@ AC_DEFUN([BIRD_CHECK_PROG_FLAVOR_GNU],
)
esac
])
+
+AC_DEFUN([BIRD_CHECK_BISON_VERSION],
+[
+ $1=`bison --version | ( read line; echo ${line##* } )`
+ case "$$1" in
+ 1.* | 2.0* | 2.1* | 2.2* | 2.3*)
+ AC_MSG_ERROR([Provided Bison version $$1 is too old, need at least 2.4])
+ ;;
+ 2.*)
+ bird_bison_synclines=no
+ ;;
+ 3.* | 4.* | 5.* | 6.* | 7.* | 8.* | 9.*)
+ bird_bison_synclines=yes
+ ;;
+ *)
+ AC_MSG_ERROR([Couldn't parse Bison version $$1. Call the developers for help.])
+ ;;
+ esac
+])