Un-break compilation on systems with a compiler that does not support -fopenmp.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7615 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/configure.in b/configure.in
index dff6a7b..21c42f0 100644
--- a/configure.in
+++ b/configure.in
@@ -550,6 +550,27 @@
 fi
 
 
+# does this compiler support -fopenmp ?
+AC_MSG_CHECKING([if gcc accepts -fopenmp])
+
+safe_CFLAGS=$CFLAGS
+CFLAGS="-fopenmp"
+
+AC_TRY_COMPILE(, [
+int main () { return 0 ; }
+],
+[
+ac_have_gcc_fopenmp=yes
+AC_MSG_RESULT([yes])
+], [
+ac_have_gcc_fopenmp=no
+AC_MSG_RESULT([no])
+])
+CFLAGS=$safe_CFLAGS
+
+AM_CONDITIONAL([HAVE_GCC_FOPENMP], [test x$ac_have_gcc_fopenmp = xyes])
+
+
 # does this compiler support -m32 ?
 AC_MSG_CHECKING([if gcc accepts -m32])