diff m4/acinclude.m4 @ 19816:81078b0e39e8

build: Enable OpenMP by default, remove experimental warning (bug #42176) * configure.ac: Enable OpenMP by default. Use AX_OPENMP macro to detect compiler flags instead of OCTAVE_CHECK_OPENMP and case statements. Delete warning message about OpenMP being experimental. * ax_openmp.m4: New macro. * acinclude.m4 (OCTAVE_CHECK_OPENMP): Delete macro definition. * m4/module.mk (EXTRA_DIST): Include m4/ax_openmp.m4 in the list. * NEWS: Mention that OpenMP is enabled by default.
author Mike Miller <mtmiller@ieee.org>
date Sat, 21 Feb 2015 18:24:10 -0500
parents bc2a8db22831
children 0afc06948ba7 3b3579ad7e46
line wrap: on
line diff
--- a/m4/acinclude.m4	Sat Feb 21 16:37:01 2015 -0500
+++ b/m4/acinclude.m4	Sat Feb 21 18:24:10 2015 -0500
@@ -1091,37 +1091,6 @@
   AC_SUBST(TERM_LIBS)
 ])
 dnl
-dnl Check for support of OpenMP with a given compiler flag.
-dnl If found define HAVE_OPENMP and add the compile flag
-dnl to CFLAGS and CXXFLAGS.
-dnl
-AC_DEFUN([OCTAVE_CHECK_OPENMP], [
-  AC_MSG_CHECKING([for support of OpenMP])
-  ac_octave_save_CFLAGS="$CFLAGS"
-  CFLAGS="$CFLAGS $1"
-  AC_CACHE_VAL([octave_cv_check_openmp],
-    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
-        #include <omp.h>
-        #include <stdio.h>
-        ]], [[
-        int main(int argc, char* argv[])
-        {
-          _Pragma("omp parallel")
-          printf("Hello, world.\n");
-          return 0;
-        }
-      ]])],
-      octave_cv_openmp=yes, octave_cv_openmmp=no, octave_cv_openmp=no)
-  ])
-  AC_MSG_RESULT([$octave_cv_openmp])
-  if test $octave_cv_openmp = yes; then
-    AC_DEFINE(HAVE_OPENMP, 1, [Define to 1 if compiler supports OpenMP.])
-    CXXFLAGS="$CXXFLAGS $1"
-  else
-    CFLAGS="$ac_octave_save_CFLAGS"
-  fi
-])
-dnl
 dnl Check for the Qhull version.
 dnl
 AC_DEFUN([OCTAVE_CHECK_QHULL_VERSION], [