Skip to content

Commit 6001c52

Browse files
configure.ac: checking that OpenMP is not supported directly by the compiler before searching for separate preprocessor and library to enable it.
1 parent 7f5712b commit 6001c52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ AC_CONFIG_SUBDIRS([src/smithlab_cpp])
3535

3636
dnl OpenMP happens here
3737
AC_OPENMP([C++])
38+
AS_VAR_IF(OPENMP_CXXFLAGS, [], [
3839
dnl check for the OpenMP library; can't be later
3940
AC_SEARCH_LIBS([omp_get_num_threads], [gomp omp], [],
4041
[AC_MSG_FAILURE([OpenMP library not found])])
4142
dnl now we get setup for the right OpenMP flags
4243
ADS_OPENMP([], [AC_MSG_FAILURE([OpenMP must be installed to build abismal])])
43-
dnl end of OpenMP stuff
44+
])dnl end of OpenMP stuff
4445

4546
dnl check for the Zlib library
4647
AC_CHECK_LIB([z], [zlibVersion], [],

0 commit comments

Comments
 (0)