git.annexia.org
/
goals.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fa5f2d2
)
configure: Fix checking of missing programs
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 5 Oct 2021 11:35:54 +0000
(12:35 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 5 Oct 2021 11:35:54 +0000
(12:35 +0100)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
ef0c7a1
..
bf57ebb
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-51,17
+51,20
@@
if test "x$OCAMLLEX" = "xno"; then
AC_MSG_ERROR([OCaml ocamllex lexical generator tool is required])
fi
AC_MSG_ERROR([OCaml ocamllex lexical generator tool is required])
fi
-AC_CHECK_PROG(MENHIR, [menhir], [menhir], [
+AC_CHECK_PROG([MENHIR], [menhir], [menhir], [no])
+if test "x$MENHIR" = "xno"; then
AC_MSG_ERROR([OCaml menhir parser generator is required])
AC_MSG_ERROR([OCaml menhir parser generator is required])
-])
+fi
-AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man], [
+AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man], [no])
+if test "x$POD2MAN" = "xno"; then
AC_MSG_ERROR([pod2man tool from Perl is required])
AC_MSG_ERROR([pod2man tool from Perl is required])
-])
+fi
-AC_CHECK_PROG([POD2TEXT], [pod2text], [pod2text], [
+AC_CHECK_PROG([POD2TEXT], [pod2text], [pod2text], [no])
+if test "x$POD2TEXT" = "xno"; then
AC_MSG_ERROR([pod2text tool from Perl is required])
AC_MSG_ERROR([pod2text tool from Perl is required])
-])
+fi
dnl Substitute OCaml flags and packages.
AC_SUBST([OCAMLFLAGS], ["-g -safe-string -warn-error +C+D+E+F+L+M+P+S+U+V+Y+Z+X+52-3"])
dnl Substitute OCaml flags and packages.
AC_SUBST([OCAMLFLAGS], ["-g -safe-string -warn-error +C+D+E+F+L+M+P+S+U+V+Y+Z+X+52-3"])