Mercurial > hg > octave-nkf
diff configure.ac @ 20043: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 | d0c7b5346d55 |
children | d3dcc62512d7 |
line wrap: on
line diff
--- a/configure.ac +++ b/configure.ac @@ -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"