From: Bart Van Assche Date: Tue, 11 Mar 2008 18:15:49 +0000 (+0000) Subject: Third attempt to get the OpenMP configure test right. X-Git-Tag: svn/VALGRIND_3_4_0~911 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=47cfa342e78802ee086921bee76540005bb33674;p=thirdparty%2Fvalgrind.git Third attempt to get the OpenMP configure test right. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7637 --- diff --git a/configure.in b/configure.in index 0629e297a5..dd6c953c9b 100644 --- a/configure.in +++ b/configure.in @@ -552,15 +552,11 @@ fi # does this compiler support -fopenmp, does it have the include file # and does it have libgomp ? -AC_MSG_CHECKING([if gcc supports OpenMP]) safe_CFLAGS=$CFLAGS CFLAGS="-fopenmp" -AC_TRY_COMPILE(, [ -#include -int main () { omp_set_dynamic(0); return 0; } -], +AC_COMPILE_CHECK([OpenMP], [#include ], [ omp_set_dynamic(0); ], [ ac_have_gcc_fopenmp=yes AC_MSG_RESULT([yes])