diff options
| -rwxr-xr-x | configure | 24 | 
1 files changed, 24 insertions, 0 deletions
@@ -2203,6 +2203,30 @@ case $_host_os in  				echo "Set staticlib-prefix to ${_staticlibpath}"  			fi  		fi + +		# Fink +		# There is no way to get the prefix, so implementing a hack here +		fink_version=`fink -V 2>/dev/null` +		if test "$?" -eq 0; then +			fink_version="`echo "${fink_version}" | sed -ne 's/Package manager version: \([0-9.]*\)/\1/gp'`" +			echo_n "You seem to be running Fink version ${fink_version}..." + +			fink_prefix=`which fink` +			# strip off /bin/fink from /sw/bin/port +			fink_prefix=`dirname ${fink_prefix}` +			fink_prefix=`dirname ${fink_prefix}` + +			echo "adding ${fink_prefix} to paths" + +			LDFLAGS="-L${fink_prefix}/lib $LDFLAGS" +			CXXFLAGS="-I${fink_prefix}/include $CXXFLAGS" + +			if test -z "$_staticlibpath"; then +				_staticlibpath=${fink_prefix} +				echo "Set staticlib-prefix to ${_staticlibpath}" +			fi +		fi +  		# If _staticlibpath is not set yet try first /sw (fink) then /usr/local  		# (the macports case is handled above).  		if test -z "$_staticlibpath"; then  | 
