Skip to content
Snippets Groups Projects
Commit 4de31737 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

update condition for the dependency on librt

parent abe79540
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -290,12 +290,12 @@ AM_CONDITIONAL([HAVE_PARALLEL_NC4],[test $HAVE_PARALLEL_NC4 -gt 0])
AC_SUBST([USE_MPI])
AC_SUBST([ENABLE_MPI],[`test x"$enable_mpi" = xyes && echo true || echo false`])
AC_SUBST([LIBRT], [''])
AM_COND_IF([USE_MPI],
[AC_CHECK_DECL([_SX], [],
[LIBS_save=$LIBS
AS_VAR_IF([USE_MPI], [yes],
[AC_CHECK_DECL([_POSIX_ASYNCHRONOUS_IO],
[saved_LIBS=$LIBS
AC_SEARCH_LIBS([aio_suspend], [rt],
[test "$ac_res" = "none required" || LIBRT=$ac_res])
LIBS=$LIBS_save])])
LIBS=$saved_LIBS])])
# ----------------------------------------------------------------------
# Create the Fortran Interface via iso_c_binding module (Fortran 2003 Standard)
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment