Bug 454449 - client.mk doesn't gracefully fail if it can't locate autoconf; v3; r=ted.mielczarek
authorPhilippe M. Chiasson <gozer@mozillamessaging.com>
Thu, 23 Oct 2008 18:24:52 +0200
changeset 20789 bd6062445dfa669acc2ad64aacea7ef896ba96d6
parent 20788 3917edfc15066e9cdb531f6a595125299732abf4
child 20790 9f05f41462eef02086ccf1b9c12417cce32c7741
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs454449
milestone1.9.1b2pre
Bug 454449 - client.mk doesn't gracefully fail if it can't locate autoconf; v3; r=ted.mielczarek
client.mk
--- a/client.mk
+++ b/client.mk
@@ -88,16 +88,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)))
+AUTOCONF=$(error Couldn't find autoconf 2.13)
+endif
+
 MKDIR := mkdir
 SH := /bin/sh
 ifndef MAKE
 MAKE := gmake
 endif
 PERL ?= perl
 PYTHON ?= python