[Gridflow-cvs] [svn] commit: r6861 - /trunk/configure

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Thu Nov 24 15:13:19 EST 2011


Author: matju
Date: Thu Nov 24 15:13:19 2011
New Revision: 6861

Log:
hide paths that don't exist

Modified:
    trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Thu Nov 24 15:13:19 2011
@@ -194,9 +194,9 @@
 def prepend_path base # so that people don't have to mess with env vars (why is CPLUS_INCLUDE_PATH not here ?)
 	bl = base+"/lib"
 	bi = base+"/include"
-	if not LD_LIBRARY_PATH.include? bl then LD_LIBRARY_PATH.unshift bl end
-	if not    LIBRARY_PATH.include? bl then    LIBRARY_PATH.unshift bl; LDSOFLAGS.unshift "-L"+bl end
-	if not  C_INCLUDE_PATH.include? bi then	 C_INCLUDE_PATH.unshift bi;    CFLAGS << " -I"+bi end # why does this append instead of prepend ?
+	if not LD_LIBRARY_PATH.include? bl and File.exist? bl then LD_LIBRARY_PATH.unshift bl end
+	if not    LIBRARY_PATH.include? bl and File.exist? bl then    LIBRARY_PATH.unshift bl; LDSOFLAGS.unshift "-L"+bl end
+	if not  C_INCLUDE_PATH.include? bi and File.exist? bi then  C_INCLUDE_PATH.unshift bi;    CFLAGS << " -I"+bi end # why does this append instead of prepend ?
 end
 prepend_path "/sw" if OSX
 prepend_path "/usr/local"



More information about the Gridflow-cvs mailing list