Permalink
Browse files

more robust test for OpenMP support

git-svn-id: https://ilk.uvt.nl/svn/sources/libticcutils/trunk@18676 12f355fe-0486-481a-ad91-c297ab22b4e3
  • Loading branch information...
kosloot committed Oct 1, 2015
1 parent 88a75b9 commit 55c67b7a827fd63d86ec0ef7d707d436e9fd0ea8
Showing with 9 additions and 104 deletions.
  1. +8 −6 configure.ac
  2. +0 −97 m4/openmp.m4
  3. +1 −1 ticcutils.pc.in
@@ -21,7 +21,7 @@ if $cxx_flags_were_set; then
fi

# Checks for programs.
AC_PROG_CXX([g++ c++] )
AC_PROG_CXX([g++] )
AC_PROG_LIBTOOL
LT_INIT

@@ -76,11 +76,13 @@ PKG_CHECK_MODULES([XML2], [libxml-2.0 >= 2.6.16] )
CXXFLAGS="$CXXFLAGS $XML2_CFLAGS"
LIBS="$LIBS $XML2_LIBS"

OPENMP_CHECK( [CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
AC_DEFINE(HAVE_OPENMP, 1 , Define to 1 if you have OpenMP )],
[AC_MSG_NOTICE(We don't have OpenMP. Multithreaded testing is disabled)] )

AC_SUBST([OPENMPFLAGS],[$OPENMP_CXXFLAGS])
AC_OPENMP
if test "x$ac_cv_prog_cxx_openmp" != "xunsupported"; then
CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
AC_DEFINE(HAVE_OPENMP, 1 , Define to 1 if you have OpenMP )
else
AC_MSG_NOTICE(We don't have OpenMP. Multithreaded operation is disabled)
fi

AC_CONFIG_FILES([
Makefile

This file was deleted.

Oops, something went wrong.
@@ -2,7 +2,7 @@ prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
openmp=@OPENMPFLAGS@
openmp=@OPENMP_CXXFLAGS@

Name: ticcutils
Version: @VERSION@

0 comments on commit 55c67b7

Please sign in to comment.