[gegl/openmp: 2/5] configure: add check for openmp
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/openmp: 2/5] configure: add check for openmp
- Date: Wed, 4 Jun 2014 07:58:00 +0000 (UTC)
commit 0e9ace93536452237b99e174e72f527070adf2a0
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Jun 3 22:44:49 2014 +0200
configure: add check for openmp
configure.ac | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 82fa9b8..9421d51 100644
--- a/configure.ac
+++ b/configure.ac
@@ -237,6 +237,12 @@ else
AC_MSG_RESULT([no])
fi
+$as_echo "#define HAVE_OPENMP 1" >> confdefs.h
+
+AC_OPENMP(AC_DEFINE(HAVE_OPENMP, 1, [Define to 1 if there is a valid OpenMP flag and the compiler supports
it.]))
+
+CFLAGS="$CFLAGS $OPENMP_CFLAGS"
+
AC_C_RESTRICT
dnl disable docs generation.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]