changeset 19838:8aa2fc37650a

explicitly define HAVE_OPENMP * configure.ac: Explicitly define HAVE_OPENMP since that is skipped if a first argument is passed to the AX_OPENMP macro.
author John W. Eaton <jwe@octave.org>
date Mon, 23 Feb 2015 12:48:23 -0500
parents 9b90c6003362
children d3dcc62512d7
files configure.ac
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Mon Feb 23 17:02:29 2015 -0800
+++ b/configure.ac	Mon Feb 23 12:48:23 2015 -0500
@@ -452,6 +452,11 @@
   AX_OPENMP([XTRA_CXXFLAGS="$XTRA_CXXFLAGS $OPENMP_CXXFLAGS"; USE_OPENMP=yes], [])
   AC_LANG_POP(C++)
 fi
+dnl Define here since it is skipped if the first argument to
+dnl AX_OPENMP is not empty.
+if test $USE_OPENMP = yes; then
+  AC_DEFINE(HAVE_OPENMP, 1, [Define if OpenMP is enabled])
+fi
 ## Set these for any other tests that may require them.  They will be
 ## reset before output files are generated.
 CFLAGS="$CFLAGS $OPENMP_CFLAGS"