Skip to content

Commit

Permalink
Adding the new checks for OpenMP
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdavidsmith committed Oct 6, 2022
1 parent 355e8f6 commit 4982253
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,16 @@ AC_LANG(C++)
AC_PROG_CXX
AX_CXX_COMPILE_STDCXX_11([noext], [mandatory])
AC_PROG_RANLIB
AC_OPENMP([C++]) dnl make sure we have openmp for multi-core in abismal

dnl OpenMP happens here
AC_OPENMP([C++])
AS_VAR_IF(OPENMP_CXXFLAGS, [], [
dnl check for the OpenMP library; can't be later
AC_SEARCH_LIBS([omp_get_num_threads], [gomp omp], [],
[AC_MSG_FAILURE([OpenMP library not found])])
dnl now we get setup for the right OpenMP flags
ADS_OPENMP([], [AC_MSG_FAILURE([OpenMP must be installed to build dnmtools])])
])dnl end of OpenMP stuff

dnl recursively configure abismal and smithlab_cpp
AC_CONFIG_SUBDIRS([src/abismal])
Expand Down

0 comments on commit 4982253

Please sign in to comment.