1
1
openmpi/ompi/mpiext/shortfloat/configure.m4

49 строки
1.9 KiB
Plaintext
Исходник Обычный вид История

# -*- 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])