# HG changeset patch # User John W. Eaton # Date 1424713703 18000 # Node ID 8aa2fc37650aba1179075b8b276db542b3cc033a # Parent 9b90c60033629439efc53cbb28f197191a589468 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. diff -r 9b90c6003362 -r 8aa2fc37650a configure.ac --- 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"