>From 457d32f91333697edc5853e531be696e70f403cb Mon Sep 17 00:00:00 2001
From: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Date: Mon, 1 Mar 2010 21:30:12 +0100
Subject: [PATCH] Define PreLibPath and PreIncludePath in ARGUMENTS.

This allows to specify to look for libraries different from the one
included in the the standard locations, for example if the user has
some library installed in particular paths and she wants to override
the system paths.
---
 SConstruct |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/SConstruct b/SConstruct
index ea7db35..225ef29 100644
--- a/SConstruct
+++ b/SConstruct
@@ -23,6 +23,9 @@ DESTDIR = ARGUMENTS.get('DESTDIR', '')
 if len(DESTDIR)>0 and DESTDIR[0] != "/":
                 DESTDIR = "#" + DESTDIR
 
+PreLibPath     = ARGUMENTS.get('PreLibPath'    , '')
+PreIncludePath = ARGUMENTS.get('PreIncludePath', '')
+
 if sys.platform == 'darwin':
 	AddOption('--app', action='store_true', help='Build OSX application')
 	file = os.popen('dirname "`which mzscheme`"')
@@ -61,12 +64,14 @@ if sys.platform == 'darwin' and GetOption('app'):
         DataLocation = '/Applications/Fluxus.app/Contents/Resources'
 
 LibPaths     = [
+        PreLibPath,
         PLTLib,
         PLTLib+"/..",
         "/usr/lib",
         "../../libfluxus"]
 
 IncludePaths = [
+        PreIncludePath,
         "/usr/local/include",
         "/usr/include",
         "/usr/local/include/freetype2",  # arg - freetype needs to be
-- 
1.6.6.1

