From 214e26b5395ecede5cf3c865776639b0c8283132 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Tue, 20 Oct 2009 23:44:20 +0000 Subject: [PATCH] Per Jeff (this work was done on a branch of mine, so I will do the commit): Re-enable "./autogen.sh -no-ompi" again. If you -no-ompi, the entire OMPI configury is skipped and the entire ompi/ subtree is not built. There's some simple m4-isms that prune out the relevant parts. I added ompi/config/, orte/config/, and opal/config/ directories. I moved a bunch of m4 files from the top-level config/ dir into ompi/config/, and a few into orte/config/. Note that all 3 /config directories have a config_files.m4 file. This file contains the AC_CONFIG_FILES list for that project. The AC_CONFIG_FILES call cannot be in an AC_DEFUN macro and conditionally called -- if it is included at all, Autoconf will process it. Hence, these config_files.m4 files don't AC_DEFUN -- they just have AC_CONFIG_FILES. m4_ifdef() is used to conditionally include the files or not. I moved a bunch of obvious OMPI-only m4 files from config/ to ompi/config/, but I'm sure that there's more that could go. A ticket will be filed with thoughts on future work in this area. This commit was SVN r22113. --- autogen.sh | 32 +- config/ompi_setup_wrappers.m4 | 284 +++++------ config/opal_check_attributes.m4 | 1 + config/opal_config_asm.m4 | 14 +- config/project_list.m4 | 10 + configure.ac | 451 ++++-------------- contrib/Makefile.am | 1 + contrib/hg/build-hgignore.pl | 2 + contrib/platform/cisco/hlfr/ebuild | 29 ++ ompi/config/config_files.m4 | 49 ++ .../config}/cxx_find_exception_flags.m4 | 0 .../config}/cxx_find_template_parameters.m4 | 0 .../config}/cxx_find_template_repository.m4 | 0 .../config}/cxx_have_exceptions.m4 | 0 {config => ompi/config}/f77_check.m4 | 0 .../config}/f77_check_logical_array.m4 | 0 .../config}/f77_check_real16_c_equiv.m4 | 0 {config => ompi/config}/f77_check_type.m4 | 0 .../config}/f77_find_ext_symbol_convention.m4 | 0 {config => ompi/config}/f77_get_alignment.m4 | 0 .../config}/f77_get_fortran_handle_max.m4 | 0 {config => ompi/config}/f77_get_sizeof.m4 | 0 {config => ompi/config}/f77_get_value_true.m4 | 0 .../config}/f77_purge_unsupported_kind.m4 | 0 {config => ompi/config}/f90_check.m4 | 0 {config => ompi/config}/f90_check_type.m4 | 0 .../config}/f90_find_module_include_flag.m4 | 0 {config => ompi/config}/f90_get_int_kind.m4 | 0 {config => ompi/config}/f90_get_precision.m4 | 0 {config => ompi/config}/f90_get_range.m4 | 0 {config => ompi/config}/f90_get_sizeof.m4 | 0 .../config}/ompi_case_sensitive_fs_setup.m4 | 0 .../config}/ompi_configure_options.m4 | 0 ompi/config/ompi_setup_contrib.m4 | 29 ++ {config => ompi/config}/ompi_setup_cxx.m4 | 4 + ompi/config/ompi_setup_debugger_flags.m4 | 52 ++ {config => ompi/config}/ompi_setup_f77.m4 | 0 {config => ompi/config}/ompi_setup_f90.m4 | 0 ompi/config/ompi_setup_mpi_ext.m4 | 32 ++ ompi/config/ompi_setup_mpi_fortran.m4 | 226 +++++++++ ompi/config/ompi_setup_mpi_profiling.m4 | 52 ++ ompi/tools/wrappers/ompi_wrapper_script.in | 10 +- opal/config/config_files.m4 | 30 ++ .../config}/opal_configure_options.m4 | 3 +- orte/config/config_files.m4 | 34 ++ .../config}/orte_configure_options.m4 | 0 test/Makefile.am | 6 +- 47 files changed, 839 insertions(+), 512 deletions(-) create mode 100644 config/project_list.m4 create mode 100644 contrib/platform/cisco/hlfr/ebuild create mode 100644 ompi/config/config_files.m4 rename {config => ompi/config}/cxx_find_exception_flags.m4 (100%) rename {config => ompi/config}/cxx_find_template_parameters.m4 (100%) rename {config => ompi/config}/cxx_find_template_repository.m4 (100%) rename {config => ompi/config}/cxx_have_exceptions.m4 (100%) rename {config => ompi/config}/f77_check.m4 (100%) rename {config => ompi/config}/f77_check_logical_array.m4 (100%) rename {config => ompi/config}/f77_check_real16_c_equiv.m4 (100%) rename {config => ompi/config}/f77_check_type.m4 (100%) rename {config => ompi/config}/f77_find_ext_symbol_convention.m4 (100%) rename {config => ompi/config}/f77_get_alignment.m4 (100%) rename {config => ompi/config}/f77_get_fortran_handle_max.m4 (100%) rename {config => ompi/config}/f77_get_sizeof.m4 (100%) rename {config => ompi/config}/f77_get_value_true.m4 (100%) rename {config => ompi/config}/f77_purge_unsupported_kind.m4 (100%) rename {config => ompi/config}/f90_check.m4 (100%) rename {config => ompi/config}/f90_check_type.m4 (100%) rename {config => ompi/config}/f90_find_module_include_flag.m4 (100%) rename {config => ompi/config}/f90_get_int_kind.m4 (100%) rename {config => ompi/config}/f90_get_precision.m4 (100%) rename {config => ompi/config}/f90_get_range.m4 (100%) rename {config => ompi/config}/f90_get_sizeof.m4 (100%) rename {config => ompi/config}/ompi_case_sensitive_fs_setup.m4 (100%) rename {config => ompi/config}/ompi_configure_options.m4 (100%) create mode 100644 ompi/config/ompi_setup_contrib.m4 rename {config => ompi/config}/ompi_setup_cxx.m4 (98%) create mode 100644 ompi/config/ompi_setup_debugger_flags.m4 rename {config => ompi/config}/ompi_setup_f77.m4 (100%) rename {config => ompi/config}/ompi_setup_f90.m4 (100%) create mode 100644 ompi/config/ompi_setup_mpi_ext.m4 create mode 100644 ompi/config/ompi_setup_mpi_fortran.m4 create mode 100644 ompi/config/ompi_setup_mpi_profiling.m4 create mode 100644 opal/config/config_files.m4 rename {config => opal/config}/opal_configure_options.m4 (99%) create mode 100644 orte/config/config_files.m4 rename {config => orte/config}/orte_configure_options.m4 (100%) diff --git a/autogen.sh b/autogen.sh index 3ad167a3bb..a9409de153 100755 --- a/autogen.sh +++ b/autogen.sh @@ -517,7 +517,14 @@ EOF fi if test -f $topdir_file; then - run_and_check $ompi_aclocal -I config + flags= + if test "$want_orte" = "1"; then + flags="$flags -I orte/config" + fi + if test "$want_ompi" = "1"; then + flags="$flags -I ompi/config" + fi + run_and_check $ompi_aclocal -I config -I opal/config $flags else run_and_check $ompi_aclocal fi @@ -1623,12 +1630,35 @@ fi if test -f VERSION -a -f configure.ac -a -f $topdir_file ; then # locations to look for mca modules config_project_list="opal" + project_file=config/project_list.m4 + rm -f $project_file + cat > $project_file <> $project_file + project_name_long="Open MPI Run Time Environment" + project_name_short="openmpi-rte" fi if test "$want_ompi" = "1" ; then config_project_list="$config_project_list ompi" + echo "m4_define([project_ompi], [1])" >> $project_file + project_name_long="Open MPI" + project_name_short="openmpi" fi + cat >> $project_file < 0)) { diff --git a/opal/config/config_files.m4 b/opal/config/config_files.m4 new file mode 100644 index 0000000000..46c881a446 --- /dev/null +++ b/opal/config/config_files.m4 @@ -0,0 +1,30 @@ +# -*- shell-script -*- +# +# Copyright (c) 2009 Cisco Systems, Inc. All rights reserved. +# $COPYRIGHT$ +# +# Additional copyrights may follow +# +# $HEADER$ +# + +# This file is m4_included in the top-level configure.ac + +AC_CONFIG_FILES([ + opal/Makefile + opal/etc/Makefile + opal/include/Makefile + opal/asm/Makefile + opal/datatype/Makefile + opal/event/Makefile + opal/event/compat/Makefile + opal/event/compat/sys/Makefile + opal/util/Makefile + opal/util/keyval/Makefile + opal/mca/base/Makefile + opal/tools/wrappers/Makefile + opal/tools/wrappers/opalcc-wrapper-data.txt + opal/tools/wrappers/opalc++-wrapper-data.txt + opal/tools/opal-checkpoint/Makefile + opal/tools/opal-restart/Makefile +]) diff --git a/config/opal_configure_options.m4 b/opal/config/opal_configure_options.m4 similarity index 99% rename from config/opal_configure_options.m4 rename to opal/config/opal_configure_options.m4 index 31a2c650ac..b575ff2441 100644 --- a/config/opal_configure_options.m4 +++ b/opal/config/opal_configure_options.m4 @@ -10,7 +10,7 @@ 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) 2006-2008 Cisco Systems, Inc. All rights reserved. +dnl Copyright (c) 2006-2009 Cisco Systems, Inc. All rights reserved. dnl Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved. dnl Copyright (c) 2009 IBM Corporation. All rights reserved. dnl Copyright (c) 2009 Los Alamos National Security, LLC. All rights @@ -415,6 +415,7 @@ AC_ARG_ENABLE([script-wrapper-compilers], AM_CONDITIONAL([OMPI_WANT_SCRIPT_WRAPPER_COMPILERS], [test "$enable_script_wrapper_compilers" = "yes"]) AC_CONFIG_FILES([ompi/tools/wrappers/ompi_wrapper_script], [chmod +x ompi/tools/wrappers/ompi_wrapper_script]) +AC_CONFIG_FILES([orte/tools/wrappers/orte_wrapper_script], [chmod +x orte/tools/wrappers/orte_wrapper_script]) # # Support per-user config files? diff --git a/orte/config/config_files.m4 b/orte/config/config_files.m4 new file mode 100644 index 0000000000..a9c9dec8cd --- /dev/null +++ b/orte/config/config_files.m4 @@ -0,0 +1,34 @@ +# -*- shell-script -*- +# +# Copyright (c) 2009 Cisco Systems, Inc. All rights reserved. +# $COPYRIGHT$ +# +# Additional copyrights may follow +# +# $HEADER$ +# + +# This file is m4_included in the top-level configure.ac only if we +# are building the orte project. You cannot put an AC_CONFIG_FILES in +# an AC_DEFUN that is conditionally called (because Autoconf will +# still process the AC_CONFIG_FILES unconditionally); you can only m4 +# include the file or not. + +AC_CONFIG_FILES([ + orte/Makefile + orte/include/Makefile + orte/etc/Makefile + + orte/tools/orted/Makefile + orte/tools/orterun/Makefile + orte/tools/wrappers/Makefile + orte/tools/wrappers/ortecc-wrapper-data.txt + orte/tools/wrappers/ortec++-wrapper-data.txt + orte/tools/orte-checkpoint/Makefile + orte/tools/orte-iof/Makefile + orte/tools/orte-restart/Makefile + orte/tools/orte-ps/Makefile + orte/tools/orte-clean/Makefile + orte/tools/orte-top/Makefile + orte/tools/orte-bootproxy/Makefile +]) diff --git a/config/orte_configure_options.m4 b/orte/config/orte_configure_options.m4 similarity index 100% rename from config/orte_configure_options.m4 rename to orte/config/orte_configure_options.m4 diff --git a/test/Makefile.am b/test/Makefile.am index 46cf168f82..2906f36604 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -19,8 +19,12 @@ EXTRA_DIST = CMakeLists.txt +if PROJECT_OMPI + REQUIRES_OMPI = peruse +endif + # support needs to be first for dependencies -SUBDIRS = support asm class threads peruse +SUBDIRS = support asm class threads $(REQUIRES_OMPI) DIST_SUBDIRS = event $(SUBDIRS) TESTS =