Author: bart
Date: 2008-03-11 18:15:49 +0000 (Tue, 11 Mar 2008)
New Revision: 7637

Log:
Third attempt to get the OpenMP configure test right.

Modified:
   trunk/configure.in


Modified: trunk/configure.in
===================================================================
--- trunk/configure.in  2008-03-11 11:44:53 UTC (rev 7636)
+++ trunk/configure.in  2008-03-11 18:15:49 UTC (rev 7637)
@@ -552,15 +552,11 @@
 
 # does this compiler support -fopenmp, does it have the include file
 # <omp.h> and does it have libgomp ?
-AC_MSG_CHECKING([if gcc supports OpenMP])
 
 safe_CFLAGS=$CFLAGS
 CFLAGS="-fopenmp"
 
-AC_TRY_COMPILE(, [
-#include <omp.h>
-int main () { omp_set_dynamic(0); return 0; }
-],
+AC_COMPILE_CHECK([OpenMP], [#include <omp.h>], [ omp_set_dynamic(0); ],
 [
 ac_have_gcc_fopenmp=yes
 AC_MSG_RESULT([yes])


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
Valgrind-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to