1
1

configury: fix autogen.pl --no-ompi

The Makefile.ompi-rules trim options previously used AM_CONDITIONALs
that were defined only when the OMPI project was configured.  Hence,
if you ran "autogen.pl --no-ompi", autogen would fail with lots of
messages about undefined AM_CONDITIONALs.

This commit makes new AM_CONDITIONALs outside of the project
configuration that can be safely used elsewhere.
Этот коммит содержится в:
Jeff Squyres 2015-10-24 13:25:12 -07:00
родитель 2622b9d3a1
Коммит d44eb8a024
2 изменённых файлов: 16 добавлений и 4 удалений

Просмотреть файл

@ -1,5 +1,5 @@
# -*- makefile -*- # -*- makefile -*-
# Copyright (c) 2008-2014 Cisco Systems, Inc. All rights reserved. # Copyright (c) 2008-2015 Cisco Systems, Inc. All rights reserved.
# Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved. # Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
# $COPYRIGHT$ # $COPYRIGHT$
# #
@ -9,13 +9,13 @@
# #
TRIM_OPTIONS= TRIM_OPTIONS=
if ! OMPI_BUILD_MPI_CXX_BINDINGS if ! MAN_PAGE_BUILD_MPI_CXX_BINDINGS
TRIM_OPTIONS += --nocxx TRIM_OPTIONS += --nocxx
endif endif
if ! OMPI_BUILD_FORTRAN_MPIFH_BINDINGS if ! MAN_PAGE_BUILD_MPIFH_BINDINGS
TRIM_OPTIONS += --nofortran TRIM_OPTIONS += --nofortran
endif endif
if ! OMPI_BUILD_FORTRAN_USEMPIF08_BINDINGS if ! MAN_PAGE_BUILD_USEMPIF08_BINDINGS
TRIM_OPTIONS += --nof08 TRIM_OPTIONS += --nof08
endif endif

Просмотреть файл

@ -502,8 +502,12 @@ OPAL_CHECK_OFFSETOF
# sets up the C++ MPI bindings, etc.). Perhaps it was moved to OPAL # sets up the C++ MPI bindings, etc.). Perhaps it was moved to OPAL
# just on the rationale that all compiler setup should be done in # just on the rationale that all compiler setup should be done in
# OPAL...? Shrug. # OPAL...? Shrug.
WANT_MPI_CXX_SUPPORT=0
m4_ifdef([project_ompi], [OPAL_SETUP_CXX m4_ifdef([project_ompi], [OPAL_SETUP_CXX
OMPI_SETUP_CXX]) OMPI_SETUP_CXX])
# Used in Makefile.ompi-rules
AM_CONDITIONAL(MAN_PAGE_BUILD_MPI_CXX_BINDINGS,
[test "$WANT_MPI_CXX_SUPPORT" = 1])
################################## ##################################
# Only after setting up both # Only after setting up both
@ -547,8 +551,16 @@ OPAL_CONFIG_ASM
# Fortran # Fortran
################################## ##################################
OMPI_BUILD_FORTRAN_BINDINGS=0
m4_ifdef([project_ompi], [OMPI_SETUP_MPI_FORTRAN], [ompi_fortran_happy=0]) m4_ifdef([project_ompi], [OMPI_SETUP_MPI_FORTRAN], [ompi_fortran_happy=0])
# Used in Makefile.ompi-rules
AM_CONDITIONAL(MAN_PAGE_BUILD_MPIFH_BINDINGS,
[test $OMPI_BUILD_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS])
AM_CONDITIONAL(MAN_PAGE_BUILD_USEMPIF08_BINDINGS,
[test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS])
AM_CONDITIONAL(OSHMEM_BUILD_FORTRAN_BINDINGS, AM_CONDITIONAL(OSHMEM_BUILD_FORTRAN_BINDINGS,
[test "$enable_oshmem" = "yes" && \ [test "$enable_oshmem" = "yes" && \
test "$ompi_fortran_happy" = "1" && \ test "$ompi_fortran_happy" = "1" && \