Bug 793953 - Support autoconf2.13 installed through fink; r=khuey
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 25 Sep 2012 00:17:32 -0400
changeset 11222 852d3e76c665f5a249a590ec4b5d07cc582818ac
parent 11221 aab3a6beb9625390fbcd9324378ed2d62d3a6231
child 11223 892a9063f5aad9d47005127ed1a31a597c65dca1
push id804
push userbugzilla@standard8.plus.com
push dateMon, 07 Jan 2013 21:31:35 +0000
treeherdercomm-esr52@dbf91f35f60a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs793953
Bug 793953 - Support autoconf2.13 installed through fink; r=khuey DONTBUILD
client.mk
--- a/client.mk
+++ b/client.mk
@@ -55,16 +55,21 @@ else
 TOPSRCDIR := $(CWD)
 endif
 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)
 
+# See if the autoconf package was installed through fink
+ifeq (,$(strip $(AUTOCONF)))
+AUTOCONF = $(shell which fink >/dev/null 2>&1 && echo `which fink`/../../lib/autoconf2.13/bin/autoconf)
+endif
+
 ifeq (,$(strip $(AUTOCONF)))
 AUTOCONF=$(error Couldn't find autoconf 2.13)
 endif
 
 MKDIR := mkdir
 SH := /bin/sh
 ifndef MAKE
 MAKE := gmake