Skip to content

Commit a52da09

Browse files
committed
configury: add the --disable-io-ompio option
Fixes #1934
1 parent 9894f9b commit a52da09

File tree

6 files changed

+28
-29
lines changed

6 files changed

+28
-29
lines changed

config/ompi_configure_options.m4

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,17 @@ AC_ARG_ENABLE([mpi-io],
262262
Default is to use the internal component system and
263263
its specially modified version of ROMIO])])
264264

265+
AC_ARG_ENABLE([io-ompio],
266+
[AC_HELP_STRING([--disable-io-ompio],
267+
[Disable the ompio ROM-IO component])])
268+
265269
AS_IF([test "$enable_mpi_io" != "no"],
266-
[define_mpi_io=1],
267-
[define_mpi_io=0])
270+
[want_mpi_io=1
271+
AS_IF([test "$enable_io_ompio" != "no"],
272+
[want_io_ompio=1],
273+
[want_io_ompio=0])],
274+
[want_mpi_io=0
275+
want_ompi_io=0])
268276

269277
])dnl
270278

ompi/mca/common/configure.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
# -------------------------------------------
1717
AC_DEFUN([MCA_ompi_common_CONFIG],
1818
[
19-
MCA_CONFIGURE_FRAMEWORK([$1], [$2], [$define_mpi_io])
19+
MCA_CONFIGURE_FRAMEWORK([$1], [$2], [$want_io_ompio])
2020
])

ompi/mca/fbtl/configure.m4

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# -*- shell-script -*-
22
#
3-
# Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
3+
# Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
4+
# Copyright (c) 2016 Research Organization for Information Science
5+
# and Technology (RIST). All rights reserved.
46
#
57
# $COPYRIGHT$
68
#
@@ -13,10 +15,5 @@
1315
# -------------------------------------------
1416
AC_DEFUN([MCA_ompi_fbtl_CONFIG],
1517
[
16-
# An AC-ARG-ENABLE for mpi-io was set in ompi/mca/io/configure.m4.
17-
# If it's no, we shouldn't bother building anything in fcoll.
18-
AS_IF([test "$enable_mpi_io" != "no"],
19-
[want_mpi_io=1],
20-
[want_mpi_io=0])
21-
MCA_CONFIGURE_FRAMEWORK([$1], [$2], [$want_mpi_io])
18+
MCA_CONFIGURE_FRAMEWORK([$1], [$2], [$want_io_ompio])
2219
])

ompi/mca/fcoll/configure.m4

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# -*- shell-script -*-
22
#
3-
# Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
3+
# Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
4+
# Copyright (c) 2016 Research Organization for Information Science
5+
# and Technology (RIST). All rights reserved.
46
#
57
# $COPYRIGHT$
68
#
@@ -13,10 +15,5 @@
1315
# -------------------------------------------
1416
AC_DEFUN([MCA_ompi_fcoll_CONFIG],
1517
[
16-
# An AC-ARG-ENABLE for mpi-io was set in ompi/mca/io/configure.m4.
17-
# If it's no, we shouldn't bother building anything in fcoll.
18-
AS_IF([test "$enable_mpi_io" != "no"],
19-
[want_mpi_io=1],
20-
[want_mpi_io=0])
21-
MCA_CONFIGURE_FRAMEWORK([$1], [$2], [$want_mpi_io])
18+
MCA_CONFIGURE_FRAMEWORK([$1], [$2], [$want_io_ompio])
2219
])

ompi/mca/io/configure.m4

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ AC_DEFUN([MCA_ompi_io_CONFIG],
1818
[
1919
OMPI_MPIF_IO_CONSTANTS_INCLUDE=
2020
OMPI_MPIF_IO_HANDLES_INCLUDE=
21-
AS_IF([test "$enable_mpi_io" != "no"],
21+
AS_IF([test "$enable_io_ompio" != "no"],
2222
[OMPI_MPIF_IO_CONSTANTS_INCLUDE="include \"mpif-io-constants.h\""
2323
OMPI_MPIF_IO_HANDLES_INCLUDE="include \"mpif-io-handles.h\""])
2424
AC_SUBST(OMPI_MPIF_IO_CONSTANTS_INCLUDE)
2525
AC_SUBST(OMPI_MPIF_IO_HANDLES_INCLUDE)
2626

27-
MCA_CONFIGURE_FRAMEWORK([$1], [$2], [$define_mpi_io])
27+
MCA_CONFIGURE_FRAMEWORK([$1], [$2], [$want_io_ompio])
2828

29-
OMPI_PROVIDE_MPI_FILE_INTERFACE=$define_mpi_io
29+
OMPI_PROVIDE_MPI_FILE_INTERFACE=$want_mpi_io
3030
AC_SUBST(OMPI_PROVIDE_MPI_FILE_INTERFACE)
31-
AC_DEFINE_UNQUOTED([OMPI_PROVIDE_MPI_FILE_INTERFACE], [$define_mpi_io],
31+
AC_DEFINE_UNQUOTED([OMPI_PROVIDE_MPI_FILE_INTERFACE], [$want_mpi_io],
3232
[Whether OMPI should provide MPI File interface])
33-
AM_CONDITIONAL([OMPI_PROVIDE_MPI_FILE_INTERFACE], [test "$define_mpi_io" = "1"])
33+
AM_CONDITIONAL([OMPI_PROVIDE_MPI_FILE_INTERFACE], [$want_mpi_io])
3434

3535
])

ompi/mca/sharedfp/configure.m4

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# -*- shell-script -*-
22
#
3-
# Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
3+
# Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
4+
# Copyright (c) 2016 Research Organization for Information Science
5+
# and Technology (RIST). All rights reserved.
46
#
57
# $COPYRIGHT$
68
#
@@ -13,10 +15,5 @@
1315
# -------------------------------------------
1416
AC_DEFUN([MCA_ompi_sharedfp_CONFIG],
1517
[
16-
# An AC-ARG-ENABLE for mpi-io was set in ompi/mca/io/configure.m4.
17-
# If it's no, we shouldn't bother building anything in fcoll.
18-
AS_IF([test "$enable_mpi_io" != "no"],
19-
[want_mpi_io=1],
20-
[want_mpi_io=0])
21-
MCA_CONFIGURE_FRAMEWORK([$1], [$2], [$want_mpi_io])
18+
MCA_CONFIGURE_FRAMEWORK([$1], [$2], [$want_io_ompio])
2219
])

0 commit comments

Comments
 (0)