b29b852281
config/ directory. We split them apart a while ago in the hopes that it would simplify things, but it didn't really (e.g., because there were still some ompi/opal .m4 files in the top-level config/ directory, resulting in developer confusion where any given m4 macro was defined). So this commit consolidates them back into the top-level directory for simplicity. There's still (at least) two changes that would be nice to make: 1. Split any generated .m4 file (e.g., autogen-generated .m4 files) into a separate directory somewhere so that a top-level -Iconfig/ will only get our explicitly defined macros, not the autogen stuff (e.g., with libevent2019 needing to get the visibility macro, but NOT all the autogen-generated inclusion of component configure.m4 files). 1. Change configure to be of the form: {{{ # ...a small amount of preamble/setup... OPAL_SETUP m4_ifdef([project_orte], [ORTE_SETUP]) m4_ifdef([project_ompi], [OMPI_SETUP]) # ...a small amount of finishing stuff... }}} I doubt we'll ever get anything as clean as that, but that would be the goal to shoot for. This commit was SVN r27704.
62 строки
2.5 KiB
Bash
62 строки
2.5 KiB
Bash
dnl -*- shell-script -*-
|
|
dnl
|
|
dnl Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana
|
|
dnl University Research and Technology
|
|
dnl Corporation. All rights reserved.
|
|
dnl Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
dnl of Tennessee Research Foundation. All rights
|
|
dnl reserved.
|
|
dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
dnl University of Stuttgart. All rights reserved.
|
|
dnl Copyright (c) 2004-2005 The Regents of the University of California.
|
|
dnl All rights reserved.
|
|
dnl Copyright (c) 2007 Los Alamos National Security, LLC. All rights
|
|
dnl reserved.
|
|
dnl Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
|
|
dnl Copyright (c) 2009-2012 Cisco Systems, Inc. All rights reserved.
|
|
dnl $COPYRIGHT$
|
|
dnl
|
|
dnl Additional copyrights may follow
|
|
dnl
|
|
dnl $HEADER$
|
|
|
|
# Does this compiler support the Fortran 2008 assumed rank syntax?
|
|
|
|
# OMPI_FORTRAN_CHECK_F08_ASSUMED_RANK([action if found],
|
|
# [action if not found])
|
|
# ----------------------------------------------------------------
|
|
AC_DEFUN([OMPI_FORTRAN_CHECK_F08_ASSUMED_RANK], [
|
|
AS_VAR_PUSHDEF([fortran_f08_assumed_rank],
|
|
[ompi_cv_fortran_f08_assumed_rank])
|
|
|
|
AC_CACHE_CHECK([Fortran compiler F08 assumed rank syntax],
|
|
fortran_f08_assumed_rank,
|
|
[_OMPI_FORTRAN_CHECK_F08_ASSUMED_RANK])
|
|
|
|
AS_VAR_IF(fortran_f08_assumed_rank, [yes], [$1], [$2])
|
|
])
|
|
|
|
###################################
|
|
|
|
AC_DEFUN([_OMPI_FORTRAN_CHECK_F08_ASSUMED_RANK], [
|
|
OPAL_VAR_SCOPE_PUSH([happy])
|
|
|
|
# If we were called here, it means that the value was not cached,
|
|
# so we need to check several different things. Since CACHE_CHECK
|
|
# puts up a MSG_CHECKING, we need to terminate it with a bogus
|
|
# answer before doing the individual checks.
|
|
AC_MSG_RESULT([not cached; checking])
|
|
|
|
# Check for the F08 type(*),dimension(..) syntax
|
|
OMPI_FORTRAN_CHECK_IGNORE_TKR_SUB([!], [TYPE(*), DIMENSION(..)],
|
|
[TYPE(*), DIMENSION(..)],
|
|
[happy=yes], [happy=no])
|
|
|
|
AS_VAR_SET(fortran_f08_assumed_rank, [$happy]);
|
|
|
|
# Now put the orignal CACHE_CHECK MSG_CHECKING back so that it can
|
|
# output the MSG_RESULT.
|
|
AC_MSG_CHECKING([Fortran compiler F08 assumed rank syntax])
|
|
OPAL_VAR_SCOPE_POP
|
|
])
|