[PD-cvs] pd/src SConscript,1.1.4.16,1.1.4.17

Tim Blechmann timblech at users.sourceforge.net
Fri Aug 5 16:16:12 CEST 2005


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32044

Modified Files:
      Tag: devel_0_39
	SConscript 
Log Message:
check for alloca
compile with DAZ if possible


Index: SConscript
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/SConscript,v
retrieving revision 1.1.4.16
retrieving revision 1.1.4.17
diff -C2 -d -r1.1.4.16 -r1.1.4.17
*** SConscript	4 Aug 2005 11:00:01 -0000	1.1.4.16
--- SConscript	5 Aug 2005 14:16:10 -0000	1.1.4.17
***************
*** 198,205 ****
  	defs.append('HAVE_LIBFFTW3F')
  
- if conf.CheckFunc('alloca'):
- 	defs.append('HAVE_ALLOCA')
- 
- 
  ######################################################################
  #
--- 198,201 ----
***************
*** 414,417 ****
--- 410,431 ----
  pdenv.Append(LINKFLAGS=flags)
  
+ ######################################################################
+ #
+ # tests with up to date environment
+ #
+ conf = pdenv.Configure()
+ 
+ if conf.TryCompile("""#include \"xmmintrin.h\" """, '.c'):
+ 	pdenv.Append(CPPDEFINES='DAZ')
+ 
+ if conf.TryCompile("""#include \"stdlib.h\"
+                       int main()
+                       {
+                           int* test = alloca(10*sizeof(int));
+ 					  }""", ".c"):
+ 	pdenv.Append(CPPDEFINES='HAVE_ALLOCA')
+ 
+ pdenv=conf.Finish()
+ 
  
  ######################################################################





More information about the Pd-cvs mailing list