Bug 454449. Teach client.mk to fail more gracefully if it can't locate autoconf. r=ted.mielczarek
authorPhilippe M. Chiasson <gozer@mozillamessaging.com>
Mon, 20 Oct 2008 12:02:56 -0400
changeset 645 6b9c0a5e0777ca73293e5b60c6b8f1113fda6f36
parent 644 0e391b0e516043f02b256fa36b168e1127efecd8
child 646 c46cb5eed927df4d97f035f6654bc19cdfcd7780
child 655 06adaf85e2082dc99010159b477a3b093aed9943
push idunknown
push userunknown
push dateunknown
reviewersted
bugs454449
Bug 454449. Teach client.mk to fail more gracefully if it can't locate autoconf. r=ted.mielczarek
client.mk
--- a/client.mk
+++ b/client.mk
@@ -90,16 +90,20 @@ ifeq (,$(wildcard client.mk))
 endif
 TOPSRCDIR = $(CWD)
 endif
 
 # try to find autoconf 2.13 - discard errors from 'which'
 # MacOS X 10.4 sends "no autoconf*" errors to stdout, discard those via grep
 AUTOCONF ?= $(shell which autoconf-2.13 autoconf2.13 autoconf213 2>/dev/null | grep -v '^no autoconf' | head -1)
 
+ifeq (,$(strip $(AUTOCONF)))
+$(error Couldn't find autoconf 2.13)
+endif
+
 MKDIR := mkdir
 SH := /bin/sh
 ifndef MAKE
 MAKE := gmake
 endif
 PERL ?= perl
 PYTHON ?= python