2018-11-22 21:22:25 +09:00
|
|
|
# -*- shell-script -*-
|
|
|
|
#
|
2019-02-25 16:43:19 +09:00
|
|
|
# Copyright (c) 2018-2019 FUJITSU LIMITED. All rights reserved.
|
|
|
|
# Copyright (c) 2019 Research Organization for Information Science
|
|
|
|
# and Technology (RIST). All rights reserved.
|
2018-11-22 21:22:25 +09:00
|
|
|
# $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
|
2018-12-26 14:43:01 +09:00
|
|
|
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
|
2018-11-22 21:22:25 +09:00
|
|
|
])
|
|
|
|
|
|
|
|
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])
|
2018-12-26 14:43:01 +09:00
|
|
|
|
|
|
|
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], [!])])
|
2018-11-22 21:22:25 +09:00
|
|
|
])
|
|
|
|
|
|
|
|
# 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])
|
2019-02-25 16:43:19 +09:00
|
|
|
|
|
|
|
# This extension provides only header files for datatype handles.
|
|
|
|
AC_DEFUN([OMPI_MPIEXT_shortfloat_HAVE_OBJECT], [0])
|