Skip to content

Commit 2c4425e

Browse files
committed
build apmpi-mod only when enabled
1 parent 918ec3a commit 2c4425e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Makefile.am

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55

66
ACLOCAL_AMFLAGS = -I maint/config
77

8-
SUBDIRS = modules .
8+
if BUILD_APMPI_MODULE
9+
SUBDIRS = modules .
10+
else
11+
SUBDIRS = .
12+
endif
913

1014
if BUILD_DARSHAN_RUNTIME
1115
SUBDIRS += darshan-runtime

configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ AC_ARG_ENABLE([darshan-runtime],
3030
)
3131
AM_CONDITIONAL(BUILD_DARSHAN_RUNTIME, [test "x$enable_darshan_runtime" != xno])
3232

33+
# AUTOPERF MPI module
34+
AC_ARG_ENABLE([apmpi-mod],
35+
[AS_HELP_STRING([--enable-apmpi-mod],
36+
[Enables compilation and use of AUTOPERF MPI module (requ ires MPI)])],
37+
[], [enable_apmpi_mod=no]
38+
)
39+
AM_CONDITIONAL(BUILD_APMPI_MODULE, [test "x$enable_apmpi_mod" = xyes])
40+
3341
AC_ARG_ENABLE([darshan-util],
3442
[AS_HELP_STRING([--disable-darshan-util],
3543
[Build without Darshan utility tools])],

0 commit comments

Comments
 (0)