From b0f6e1624bf246a943cdde6dc53cdb82c5a7f746 Mon Sep 17 00:00:00 2001
From: pbui <pbui@a4d8336d-3463-0410-8bba-c098c45d37a8>
Date: Mon, 24 Oct 2011 16:23:25 +0000
Subject: [PATCH] configure: allow users to set PYTHON environment variable

This allows users to set a specific version Python if there are multiple ones
in ${python_path}/bin.


git-svn-id: svn://ccl.cse.nd.edu/trunk@1597 a4d8336d-3463-0410-8bba-c098c45d37a8
---
 configure |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index 5ede1a0..688f191 100755
--- a/configure
+++ b/configure
@@ -672,7 +672,10 @@ fi
 
 if [ $config_python_path != no ]
 then
-	if check_file ${python_path}/bin/python2
+	if [ -n "$PYTHON" ] && check_file ${PYTHON}
+	then	
+		python=${PYTHON}
+	elif check_file ${python_path}/bin/python2
 	then	
 		python=${python_path}/bin/python2
 	elif check_file ${python_path}/bin/python
-- 
1.7.7

