From 756d23cfad9312b8cef09092640458c3f7a37417 Mon Sep 17 00:00:00 2001
From: Fons Rademakers <Fons.Rademakers@cern.ch>
Date: Mon, 6 Sep 2010 11:07:24 +0000
Subject: [PATCH] if on MacOS X /opt/local exists assume MacPorts is installed
 and use that instead of Fink.

git-svn-id: http://root.cern.ch/svn/root/trunk@35166 27541ba8-7e3a-0410-8455-c3a389f83636
---
 configure | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configure b/configure
index 9d6bf97950d..4dcc7e8ca69 100755
--- a/configure
+++ b/configure
@@ -1491,6 +1491,12 @@ if test "x$platform" = "xmacosx" ; then
    finkdir=`$cwhich fink 2>&1 | sed -ne "s/\/bin\/fink//p"`
    logmsg "$finkdir"
 
+   if test -d /opt/local; then
+      logmsg "Checking MacPorts directory"
+      finkdir=/opt/local
+      logmsg "$finkdir"
+   fi
+
    if [ `sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2` -ge 5 ]; then
       macosx105=yes
    fi
-- 
GitLab