
Do not require an archive when the OMPI_MPIEXT_<ext>_HAVE_OBJECT macro is defined to 0. See `ompi/mpiext/example/configure.m4`. Allow some extensions to be built on OS X since the creation of archives with no files is not permitted. Refs. open-mpi/ompi#6205 Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp> Signed-off-by: KAWASHIMA Takahiro <t-kawashima@jp.fujitsu.com> Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
58 строки
2.4 KiB
Bash
58 строки
2.4 KiB
Bash
# -*- shell-script -*-
|
|
#
|
|
# Copyright (c) 2004-2009 The Trustees of Indiana University.
|
|
# All rights reserved.
|
|
# Copyright (c) 2012-2015 Cisco Systems, Inc. All rights reserved.
|
|
# Copyright (c) 2019 FUJITSU LIMITED. All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
# OMPI_MPIEXT_example_CONFIG([action-if-found], [action-if-not-found])
|
|
# -----------------------------------------------------------
|
|
AC_DEFUN([OMPI_MPIEXT_example_CONFIG],[
|
|
AC_CONFIG_FILES([ompi/mpiext/example/Makefile])
|
|
|
|
AC_CONFIG_FILES([ompi/mpiext/example/c/Makefile])
|
|
AC_CONFIG_FILES([ompi/mpiext/example/mpif-h/Makefile])
|
|
AC_CONFIG_FILES([ompi/mpiext/example/use-mpi/Makefile])
|
|
AC_CONFIG_FILES([ompi/mpiext/example/use-mpi-f08/Makefile])
|
|
|
|
# If your extension can build, run $1. Otherwise, run $2. For
|
|
# the purposes of this example, we don't want it to build in most
|
|
# cases. So only build if someone specifies an --enable-mpi-ext
|
|
# value that contains the token "example".
|
|
AS_IF([test "$ENABLE_example" = "1" || \
|
|
test "$ENABLE_EXT_ALL" = "1"],
|
|
[$1],
|
|
[$2])
|
|
])
|
|
|
|
# only need to set this if the component needs init/finalize hooks
|
|
AC_DEFUN([OMPI_MPIEXT_example_NEED_INIT], [1])
|
|
|
|
# By default, mpiext_example_mpifh.h is included in the source file
|
|
# of the mpi_ext module. To disable it, define this macro as 0.
|
|
#AC_DEFUN([OMPI_MPIEXT_example_INCLUDE_MPIFH_IN_USEMPI], [0])
|
|
|
|
# By default, mpiext_example_mpifh.h is included in the source file
|
|
# of the mpi_f08_ext module. To disable it, define this macro as 0.
|
|
#AC_DEFUN([OMPI_MPIEXT_example_INCLUDE_MPIFH_IN_USEMPIF08], [0])
|
|
|
|
# By default, $build_dir/ompi/mpiext/example/c/libmpiext_example_c.la
|
|
# (Libtool archive) is added to the dependency list of libmpi.la.
|
|
# This rule is the same for mpif-h and use-mpi-f08 bindings.
|
|
# However, the ar command of macOS refuses to create an archive file
|
|
# which does not contain any object files. If your extension has no
|
|
# object files, i.e. only header files, define this macro as 0 so that
|
|
# the *.la files are not added to the dependency lists.
|
|
|
|
# NOTE: This is currently a single macro for the entire MPI extension.
|
|
# I.e., your extension either has a library for each binding, or it has *no*
|
|
# libraries for any of the bindings. If finer-grained control is needed
|
|
# someday, we may need to split this into multiple macros.
|
|
#AC_DEFUN([OMPI_MPIEXT_example_HAVE_OBJECT], [0])
|