Skip to content

Commit 9851fbe

Browse files
authored
Merge pull request #6 from cniethammer/fix-mpi2-tests
Fix building optional MPI2 tests
2 parents a6c3152 + c26f869 commit 9851fbe

File tree

1 file changed

+33
-10
lines changed

1 file changed

+33
-10
lines changed

configure.ac

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
2-
dnl Copyright (c) 2020 High-Performance Computing Center Stuttgart,
2+
dnl Copyright (c) 2020-2022 High-Performance Computing Center Stuttgart,
33
dnl University of Stuttgart. All rights reserved.
44

55
dnl Process this file with autoconf to produce a configure script.
@@ -17,17 +17,40 @@ AX_PROG_CC_MPI(,,[
1717
AC_MSG_FAILURE([MPI compiler required.])
1818
])
1919

20-
AC_ARG_ENABLE(mpi2,
21-
AS_HELP_STRING([--enable-mpi2], [Check for MPI2 features [[default=yes]]]),
22-
[test "$enableval" = "no" && ENABLE_MPI2=no], ENABLE_MPI2=yes)
20+
AC_ARG_ENABLE([mpi2],
21+
AS_HELP_STRING([--enable-mpi2], [Build MPI2 tests [[default=yes]]]),,
22+
[enable_mpi2=yes])
23+
AS_IF([test "$enable_mpi2" = "yes"],[
24+
AC_DEFINE([HAVE_MPI2], [1], [Define to enable MPI2 tests])
25+
])
26+
27+
AC_ARG_ENABLE([mpi2-one-side],
28+
AS_HELP_STRING([--enable-mpi2-one-side], [Build tests for MPI2 one-sided communication [[default=yes]]]),,
29+
[enable_mpi2_one_sided=yes])
30+
AS_IF([test "$enable_mpi2_one_sided" = "yes"],[
31+
AC_DEFINE([HAVE_MPI2_ONE_SIDED], [1], [Define to enable MPI2 one-sided tests])
32+
])
2333

24-
AC_ARG_ENABLE(mpi2-oneside,
25-
AS_HELP_STRING([--enable-mpi2-oneside], [build checks for MPI2 onesided Communication [[default=yes]]]),
26-
[test "$enableval" = "no" && ENABLE_MPI2_ONESIDED=no], ENABLE_MPI2_ONESIDED=yes)
34+
AC_ARG_ENABLE([mpi2-io],
35+
AS_HELP_STRING([--enable-mpi2-io], [Build tests for MPI2 I/O [[default=yes]]]),,
36+
[enable_mpi2_io=yes])
37+
AS_IF([test "$enable_mpi2_io" = "yes"],[
38+
AC_DEFINE([HAVE_MPI2_IO], [1], [Define to enable MPI2 I/O tests])
39+
])
2740

28-
AC_ARG_ENABLE(mpi2-io,
29-
AS_HELP_STRING([--enable-mpi2-io], [build checks for MPI2 dynamic process management [[default=yes]]]),
30-
[test "$enableval" = "no" && ENABLE_MPI2_IO=no], ENABLE_MPI2_IO=yes)
41+
AC_ARG_ENABLE([mpi2-threads],
42+
AS_HELP_STRING([--enable-mpi2-threads], [Build tests for MPI2 thread support [[default=no]]]),,
43+
[enable_mpi2_threads=no])
44+
AS_IF([test "$enable_mpi2_threads" = "yes"],[
45+
AC_DEFINE([HAVE_MPI2_THREADS], [1], [Define to enable MPI2 thread support tests])
46+
])
47+
48+
AC_ARG_ENABLE([mpi2-dynamic],
49+
AS_HELP_STRING([--enable-mpi2-dynamic], [Build tests for MPI2 dynamic process management [[default=no]]]),
50+
[enable_mpi2_dynamic=no])
51+
AS_IF([test "$enable_mpi2_dynamic" = "yes"],[
52+
AC_DEFINE([HAVE_MPI2_DYNAMIC], [1], [Define to enable MPI2 dynamic process management tests])
53+
])
3154

3255

3356
dnl Checks for header files and compiler characteristics.

0 commit comments

Comments
 (0)