Skip to content

Commit

Permalink
configure.ac: checking that OpenMP is not supported directly by the c…
Browse files Browse the repository at this point in the history
…ompiler before searching for separate preprocessor and library to enable it.
  • Loading branch information
andrewdavidsmith committed Oct 3, 2022
1 parent 7f5712b commit 6001c52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ AC_CONFIG_SUBDIRS([src/smithlab_cpp])

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 abismal])])
dnl end of OpenMP stuff
])dnl end of OpenMP stuff

dnl check for the Zlib library
AC_CHECK_LIB([z], [zlibVersion], [],
Expand Down

0 comments on commit 6001c52

Please sign in to comment.