View | Details | Raw Unified
Collapse All | Expand All

(-) configure.orig (-7 / +7 lines)
 Lines 12-29    Link Here 
#
#
checkPython()
checkPython()
{
{
	if [ -z $PYTHON ]; then
	if [ -z "$PYTHON" ]; then
	  PYTHON=`which python 2>/dev/null`
	  PYTHON=`which python 2>/dev/null`
	fi
	fi
	echo -n "Checking for Python               :  "
	echo -n "Checking for Python               :  "
	if [ ! -x "$PYTHON" ]; then
	if [ ! -x "$PYTHON" ]; then
	  echo -e $GREEN"not found!"$NORMAL
	  printf $GREEN"not found!"$NORMAL"\n"
	  echo "Please make sure that the Python interpreter is available in your PATH"
	  echo "Please make sure that the Python interpreter is available in your PATH"
	  echo "or invoke configure using the PYTHON flag, e.g."
	  echo "or invoke configure using the PYTHON flag, e.g."
	  echo "$ PYTHON=/usr/local/bin/python configure"
	  echo "$ PYTHON=/usr/local/bin/python configure"
	  exit 1
	  exit 1
	fi
	fi
	echo -e $GREEN"$PYTHON"$NORMAL
	printf $GREEN"$PYTHON"$NORMAL"\n"
}
}
# Checks for SCons. Honours $SCONS if set. Stores path to 'scons' in $SCONS.
# Checks for SCons. Honours $SCONS if set. Stores path to 'scons' in $SCONS.
 Lines 32-48    Link Here 
checkSCons()
checkSCons()
{
{
	echo -n "Checking for SCons                :  "
	echo -n "Checking for SCons                :  "
	if [ -z $SCONS ]; then
	if [ -z "$SCONS" ]; then
	  SCONS=`which scons 2>/dev/null`
	  SCONS=`which scons 2>/dev/null`
	fi
	fi
	unset SCONS
	unset SCONS
	if [ ! -x "$SCONS" ]; then
	if [ ! -x "$SCONS" ]; then
	  echo -e $BOLD"Use Bundled scons."$NORMAL
	  printf $BOLD"Use Bundled scons."$NORMAL"\n"
	  #echo -e $BOLD"not found, will use mini distribution."$NORMAL
	  #echo -e $BOLD"not found, will use mini distribution."$NORMAL
	  tar xjf bksys/scons-mini.tar.bz2
	  tar xjf bksys/scons-mini.tar.bz2
	  SCONS="./scons"
	  SCONS="./scons"
	else
	else
	  echo -e $GREEN"$SCONS"$NORMAL
	  printf $GREEN"$SCONS"$NORMAL"\n"
	fi
	fi
	SCONS="$SCONS -Q"
	SCONS="$SCONS -Q"
}
}
 Lines 79-85    Link Here 
checkPython
checkPython
checkSCons
checkSCons
if [[ "$1" == "--help" ]]; then
if [ "$1" = "--help" ]; then
   $SCONS --help
   $SCONS --help
   exit
   exit
fi
fi