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

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Sun Jan 24 11:05:17 EST 2010


Author: matju
Date: Sun Jan 24 11:05:17 2010
New Revision: 4910

Log:
remove use of PD_VERSION_INT except as just info

Modified:
    trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Sun Jan 24 11:05:17 2010
@@ -509,24 +509,19 @@
 	tag :puredata
 	name "PureData (or DesireData)"
 	options ["HAVE_PUREDATA"]
-	defines {
-		path = $C_INCLUDE_PATH.find {|x| File.exist?(x+"/m_pd.h")}
-		m = /PD_VERSION_INT\s+(.*)/.match(File.popen("tmp/#{$$}","r"){|f| f.read })
-		{:PD_VERSION_INT => m[1].to_i}
-	}
 	uses_h ["m_pd.h"]
 	test proc {
 		c_test %`
 			#include#
 			#include <stdio.h>
 			int main () {
-			printf("#define PD_VERSION_INT %d\\n",
+			printf("#define PD_VERSION_INT %d\\n", (int)(
 			#ifdef PD_MAJOR_VERSION
-				(int)(PD_MAJOR_VERSION*100+PD_MINOR_VERSION));
+				PD_MAJOR_VERSION*100+PD_MINOR_VERSION
 			#else
-				(int)(PD_VERSION*100));
+				PD_VERSION*100
 			#endif
-			return 0;}`}}
+			)); return 0;}`}}
 Feature.add {
 	tag :desiredata
 	name "DesireData"



More information about the Gridflow-cvs mailing list