Fix build errors, again. draft
authorBlake Winton <bwinton@latte.ca>
Mon, 14 Mar 2016 11:06:53 -0400
changeset 339976 dcf0bfd31740ee1796df5bd26c7f9fb6e9433623
parent 339874 f0c0480732d36153e8839c7f17394d45f679f87d
child 339977 1c002986b268fbffa59c0864d0809f9d1012d98f
push id12858
push userbwinton@latte.ca
push dateMon, 14 Mar 2016 16:16:59 +0000
milestone48.0a1
Fix build errors, again. MozReview-Commit-ID: yt9fKDzZ9g
build/moz.configure/old.configure
--- a/build/moz.configure/old.configure
+++ b/build/moz.configure/old.configure
@@ -50,19 +50,25 @@ def autoconf(mozconfig, autoconf):
     for ac in (mozconfig_autoconf, autoconf, 'autoconf-2.13', 'autoconf2.13',
                'autoconf213'):
         if ac:
             autoconf = find_program(ac)
             if autoconf:
                 break
     else:
         fink = find_program('fink')
-        if find:
+        if fink:
             autoconf = os.path.normpath(os.path.join(
                 fink, '..', '..', 'lib', 'autoconf2.13', 'bin', 'autoconf'))
+        else:
+            brew = find_program('brew')
+            if brew:
+                autoconf = os.path.normpath(os.path.join(
+                    brew, '..', '..', 'Cellar', 'autoconf213', '2.13', 'bin',
+                    'autoconf213'))
 
     if not autoconf:
         error('Could not find autoconf 2.13')
 
     set_config('AUTOCONF', autoconf)
     return autoconf