summaryrefslogtreecommitdiffstats
path: root/third_party/heimdal/cf/krb-prog-yacc.m4
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:47:29 +0000
commit4f5791ebd03eaec1c7da0865a383175b05102712 (patch)
tree8ce7b00f7a76baa386372422adebbe64510812d4 /third_party/heimdal/cf/krb-prog-yacc.m4
parentInitial commit. (diff)
downloadsamba-4f5791ebd03eaec1c7da0865a383175b05102712.tar.xz
samba-4f5791ebd03eaec1c7da0865a383175b05102712.zip
Adding upstream version 2:4.17.12+dfsg.upstream/2%4.17.12+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/heimdal/cf/krb-prog-yacc.m4')
-rw-r--r--third_party/heimdal/cf/krb-prog-yacc.m418
1 files changed, 18 insertions, 0 deletions
diff --git a/third_party/heimdal/cf/krb-prog-yacc.m4 b/third_party/heimdal/cf/krb-prog-yacc.m4
new file mode 100644
index 0000000..4c0afd9
--- /dev/null
+++ b/third_party/heimdal/cf/krb-prog-yacc.m4
@@ -0,0 +1,18 @@
+dnl $Id$
+dnl
+dnl
+dnl OLD: We prefer byacc or yacc because they do not use `alloca'
+dnl
+dnl CURRENT: We don't mind `alloca', but we do mind `bison -y' because
+dnl newer versions of `bison', with `-y' complain about %expect and
+dnl anything that yacc didn't document. Because `bison' typically
+dnl also installs a `yacc' link that acts like `bison y', we put
+dnl `yacc' last in this list.
+dnl
+
+AC_DEFUN([AC_KRB_PROG_YACC],
+[AC_CHECK_PROGS(YACC, 'bison -d' 'byacc -d' yacc)
+if test "$YACC" = ""; then
+ AC_MSG_WARN([byacc and bison not found - some stuff will not build])
+fi
+])