1
1
openmpi/ompi/mpiext/shortfloat/configure.m4
Gilles Gouaillardet e1098dae4b mpiext/shortfloat: do not build an empty library
the shortfloat extension is only made of header files,
and hence do not require a library to be built.

Refs. open-mpi/ompi#6205

Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Signed-off-by: KAWASHIMA Takahiro <t-kawashima@jp.fujitsu.com>
2019-04-18 13:42:18 -04:00

49 строки
1.9 KiB
Bash

# -*- shell-script -*-
#
# Copyright (c) 2018-2019 FUJITSU LIMITED. All rights reserved.
# Copyright (c) 2019 Research Organization for Information Science
# and Technology (RIST). All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#
# OMPI_MPIEXT_shortfloat_CONFIG([action-if-found], [action-if-not-found])
# -----------------------------------------------------------
AC_DEFUN([OMPI_MPIEXT_shortfloat_CONFIG],[
AC_CONFIG_FILES([
ompi/mpiext/shortfloat/Makefile
ompi/mpiext/shortfloat/c/Makefile
ompi/mpiext/shortfloat/mpif-h/Makefile
ompi/mpiext/shortfloat/use-mpi/Makefile
ompi/mpiext/shortfloat/use-mpi-f08/Makefile
ompi/mpiext/shortfloat/c/mpiext_shortfloat_c.h
ompi/mpiext/shortfloat/mpif-h/mpiext_shortfloat_mpifh.h
ompi/mpiext/shortfloat/use-mpi-f08/mpiext_shortfloat_usempif08.h
])
AS_IF([{ test "$ENABLE_shortfloat" = "1" || \
test "$ENABLE_EXT_ALL" = "1"; } && \
{ test "$ac_cv_type_short_float" = "yes" || \
test "$ac_cv_type_opal_short_float_t" = "yes"; }],
[$1],
[$2])
AS_IF([test "$opal_short_float_type" = "_Float16"],
[AC_SUBST([OMPI_MPIX_SHORT_FLOAT_IS_C_FLOAT16], 1)
AC_SUBST([OMPI_MPIX_C_FLOAT16_FORTRAN_COMMENT_OUT], [])],
[AC_SUBST([OMPI_MPIX_SHORT_FLOAT_IS_C_FLOAT16], 0),
AC_SUBST([OMPI_MPIX_C_FLOAT16_FORTRAN_COMMENT_OUT], [!])])
])
# The mpi_f08_ext module should not include mpiext_shortfloat_mpifh.h
# because types of a datatype are different between the mpi_ext module
# and the mpi_f08_ext module. The former is integer and the latter is
# type(mpi_datatype).
AC_DEFUN([OMPI_MPIEXT_shortfloat_INCLUDE_MPIFH_IN_USEMPIF08], [0])
# This extension provides only header files for datatype handles.
AC_DEFUN([OMPI_MPIEXT_shortfloat_HAVE_OBJECT], [0])