summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2008-11-07 11:02:08 +0100
committerJulien Danjou <julien@danjou.info>2008-11-07 11:02:08 +0100
commit357f86fee2d100b70d6db07c72904a4f992e87e4 (patch)
tree5c5f4af15cfc2912a0bd8bd42346eaa02686bb92
parent8761095662067ce4a529ddf00e70c1658d50d873 (diff)
configure: stop if m4 is not found
Signed-off-by: Julien Danjou <julien@danjou.info>
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 6e6968a..0d85f37 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,7 +3,10 @@ AC_INIT([xcb-util],0.3.0,[xcb@lists.freedesktop.org])
AC_CONFIG_SRCDIR([Makefile.am])
AM_INIT_AUTOMAKE([foreign dist-bzip2])
-AC_CHECK_PROGS(M4, m4)
+AC_CHECK_PROGS(M4, m4, [no])
+if test $M4 = "no"; then
+ AC_MSG_ERROR([Can't find m4, please install it and try again])
+fi
AC_CHECK_PROGS(GPERF, gperf, [no])
if test $GPERF = "no"; then
AC_MSG_ERROR([Can't find gperf, please install it and try again])