aboutsummaryrefslogtreecommitdiffstats
path: root/m4/path_or_fail.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/path_or_fail.m4')
-rw-r--r--m4/path_or_fail.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/m4/path_or_fail.m4 b/m4/path_or_fail.m4
new file mode 100644
index 0000000000..ece8cd4b3d
--- /dev/null
+++ b/m4/path_or_fail.m4
@@ -0,0 +1,6 @@
+AC_DEFUN([AX_PATH_PROG_OR_FAIL],
+[AC_PATH_PROG([$1], [$2], [no])
+if test x"${$1}" == x"no"
+then
+ AC_MSG_ERROR([Unable to find $2, please install $2])
+fi])