2003-11-22 19:36:58 +03:00
|
|
|
# -*- shell-script -*-
|
|
|
|
#
|
2004-01-07 10:49:23 +03:00
|
|
|
# $HEADER$
|
2003-11-22 19:36:58 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# Initialization, version number, and other random setup/init stuff
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
# Init autoconf
|
|
|
|
|
2004-03-17 22:06:06 +03:00
|
|
|
AC_INIT(./src/mpi/c/init.c)
|
2004-02-14 09:02:04 +03:00
|
|
|
AC_PREREQ(2.58)
|
2003-11-22 19:36:58 +03:00
|
|
|
AC_CONFIG_AUX_DIR(./config)
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
# Get the version of OMPI that we are installing
|
|
|
|
|
|
|
|
OMPI_GET_VERSION($srcdir/config, $srcdir/VERSION, OMPI)
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(OMPI_MAJOR_VERSION, $OMPI_MAJOR_VERSION,
|
|
|
|
[Major OMPI version])
|
|
|
|
AC_DEFINE_UNQUOTED(OMPI_MINOR_VERSION, $OMPI_MINOR_VERSION,
|
|
|
|
[Minor OMPI version])
|
|
|
|
AC_DEFINE_UNQUOTED(OMPI_RELEASE_VERSION, $OMPI_RELEASE_VERSION,
|
|
|
|
[Release OMPI version])
|
|
|
|
AC_DEFINE_UNQUOTED(OMPI_ALPHA_VERSION, $OMPI_ALPHA_VERSION,
|
|
|
|
[Alpha OMPI version])
|
|
|
|
AC_DEFINE_UNQUOTED(OMPI_BETA_VERSION, $OMPI_BETA_VERSION,
|
|
|
|
[Beta OMPI version])
|
|
|
|
AC_DEFINE_UNQUOTED(OMPI_SVN_VERSION, $OMPI_SVN_VERSION,
|
|
|
|
[CVS OMPI version])
|
|
|
|
AC_DEFINE_UNQUOTED(OMPI_VERSION, "$OMPI_VERSION",
|
|
|
|
[Overall OMPI version number])
|
|
|
|
|
|
|
|
AC_SUBST(OMPI_MAJOR_VERSION)
|
|
|
|
AC_SUBST(OMPI_MINOR_VERSION)
|
|
|
|
AC_SUBST(OMPI_RELEASE_VERSION)
|
|
|
|
AC_SUBST(OMPI_ALPHA_VERSION)
|
|
|
|
AC_SUBST(OMPI_BETA_VERSION)
|
|
|
|
AC_SUBST(OMPI_CVS_VERSION)
|
|
|
|
AC_SUBST(OMPI_VERSION)
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Start it up
|
|
|
|
#
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_CONFIGURE_SETUP
|
|
|
|
ompi_show_title "Configuring OMPI version $OMPI_VERSION"
|
|
|
|
ompi_show_subtitle "Initialization, setup"
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Init automake
|
|
|
|
# The third argument to AM_INIT_AUTOMAKE surpresses the PACKAGE and
|
|
|
|
# VERSION macors
|
|
|
|
#
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
AM_INIT_AUTOMAKE(ompi, $OMPI_VERSION, 'no')
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_TOP_BUILDDIR="`pwd`"
|
|
|
|
AC_SUBST(OMPI_TOP_BUILDDIR)
|
2003-11-22 19:36:58 +03:00
|
|
|
cd "$srcdir"
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_TOP_SRCDIR="`pwd`"
|
|
|
|
AC_SUBST(OMPI_TOP_SRCDIR)
|
|
|
|
cd "$OMPI_TOP_BUILDDIR"
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
AC_MSG_NOTICE([builddir: $OMPI_TOP_BUILDDIR])
|
|
|
|
AC_MSG_NOTICE([srcdir: $OMPI_TOP_SRCDIR])
|
|
|
|
if test "$OMPI_TOP_BUILDDIR" != "$OMPI_TOP_SRCDIR"; then
|
2003-11-22 19:36:58 +03:00
|
|
|
AC_MSG_NOTICE([Detected VPATH build])
|
|
|
|
fi
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
# Setup the top of the include/ompi_config.h file
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
AH_TOP([/* -*- c -*-
|
|
|
|
*
|
2004-01-07 17:55:23 +03:00
|
|
|
* $HEADER$
|
2003-11-22 19:36:58 +03:00
|
|
|
*
|
|
|
|
* Function: - OS, CPU and compiler dependent configuration
|
|
|
|
*/
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#ifndef OMPI_CONFIG_H
|
|
|
|
#define OMPI_CONFIG_H
|
2003-12-22 19:29:21 +03:00
|
|
|
])
|
|
|
|
AH_BOTTOM([
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "ompi_config_bottom.h"
|
|
|
|
#endif /* OMPI_CONFIG_H */
|
2003-11-22 19:36:58 +03:00
|
|
|
])
|
|
|
|
|
2004-01-21 02:16:25 +03:00
|
|
|
# Other basic setup stuff (shared with modules)
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_BASIC_SETUP
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
top_ompi_srcdir="$OMPI_TOP_SRCDIR"
|
|
|
|
AC_SUBST(top_ompi_srcdir)
|
|
|
|
top_ompi_builddir="$OMPI_TOP_BUILDDIR"
|
|
|
|
AC_SUBST(top_ompi_builddir)
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# Configuration options
|
|
|
|
############################################################################
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_CONFIGURE_OPTIONS
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# Libtool: part one
|
|
|
|
# (before C compiler setup)
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
#
|
|
|
|
# Part one of libtool magic. Enable static so that we have the --with
|
|
|
|
# tests done up here and can check for OS. Save the values of
|
|
|
|
# $enable_static and $enable_shared before setting the defaults,
|
|
|
|
# because if the user specified --[en|dis]able-[static|shared] on the
|
|
|
|
# command line, they'll already be set. In this way, we can tell if
|
|
|
|
# the user requested something or if the default was set here.
|
|
|
|
#
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_enable_shared="$enable_shared"
|
|
|
|
ompi_enable_static="$enable_static"
|
2003-11-22 19:36:58 +03:00
|
|
|
AM_DISABLE_SHARED
|
|
|
|
AM_ENABLE_STATIC
|
|
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# Check for compilers and preprocessors
|
|
|
|
############################################################################
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_show_title "Compiler and preprocessor tests"
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
##################################
|
|
|
|
# C compiler characteristics
|
|
|
|
##################################
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_SETUP_CC
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-02-13 21:05:49 +03:00
|
|
|
#
|
|
|
|
# Check for some types
|
|
|
|
#
|
|
|
|
|
2004-01-09 04:17:00 +03:00
|
|
|
AC_CHECK_TYPES(long long)
|
2004-04-24 00:52:42 +04:00
|
|
|
AC_CHECK_TYPES(long double)
|
2004-01-09 04:17:00 +03:00
|
|
|
AC_CHECK_TYPES(int8_t)
|
|
|
|
AC_CHECK_TYPES(uint8_t)
|
|
|
|
AC_CHECK_TYPES(int16_t)
|
|
|
|
AC_CHECK_TYPES(uint16_t)
|
|
|
|
AC_CHECK_TYPES(int32_t)
|
|
|
|
AC_CHECK_TYPES(uint32_t)
|
|
|
|
AC_CHECK_TYPES(int64_t)
|
|
|
|
AC_CHECK_TYPES(uint64_t)
|
|
|
|
AC_CHECK_TYPES(intptr_t)
|
|
|
|
AC_CHECK_TYPES(uintptr_t)
|
2004-02-13 21:05:49 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Check for type sizes
|
|
|
|
#
|
|
|
|
|
2004-01-09 04:17:00 +03:00
|
|
|
AC_CHECK_SIZEOF(char)
|
|
|
|
AC_CHECK_SIZEOF(short)
|
|
|
|
AC_CHECK_SIZEOF(int)
|
|
|
|
AC_CHECK_SIZEOF(long)
|
2004-04-24 00:52:42 +04:00
|
|
|
if test $ac_cv_type_long_long = yes; then
|
|
|
|
AC_CHECK_SIZEOF(long long)
|
|
|
|
fi
|
|
|
|
if test $ac_cv_type_long_double = yes; then
|
|
|
|
AC_CHECK_SIZEOF(long double)
|
|
|
|
fi
|
2004-01-09 04:17:00 +03:00
|
|
|
AC_CHECK_SIZEOF(void *)
|
2004-02-13 21:05:49 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Check for type alignments
|
|
|
|
#
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_C_GET_ALIGNMENT(char, OMPI_ALIGNMENT_CHAR)
|
|
|
|
OMPI_C_GET_ALIGNMENT(short, OMPI_ALIGNMENT_SHORT)
|
|
|
|
OMPI_C_GET_ALIGNMENT(wchar_t, OMPI_ALIGNMENT_WCHAR)
|
|
|
|
OMPI_C_GET_ALIGNMENT(int, OMPI_ALIGNMENT_INT)
|
|
|
|
OMPI_C_GET_ALIGNMENT(long, OMPI_ALIGNMENT_LONG)
|
2004-04-24 00:52:42 +04:00
|
|
|
if test $ac_cv_type_long_long = yes; then
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_C_GET_ALIGNMENT(long long, OMPI_ALIGNMENT_LONG_LONG)
|
2004-04-24 00:52:42 +04:00
|
|
|
fi
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_C_GET_ALIGNMENT(float, OMPI_ALIGNMENT_FLOAT)
|
|
|
|
OMPI_C_GET_ALIGNMENT(double, OMPI_ALIGNMENT_DOUBLE)
|
2004-04-24 00:52:42 +04:00
|
|
|
if test $ac_cv_type_long_double = yes; then
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_C_GET_ALIGNMENT(long double, OMPI_ALIGNMENT_LONG_DOUBLE)
|
2004-04-24 00:52:42 +04:00
|
|
|
fi
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_C_GET_ALIGNMENT(void *, OMPI_ALIGNMENT_VOID_P)
|
2004-02-13 21:05:49 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Check for other compiler characteristics
|
|
|
|
#
|
2004-01-07 10:49:23 +03:00
|
|
|
|
2003-12-22 19:29:21 +03:00
|
|
|
AC_C_INLINE
|
2004-01-14 20:35:41 +03:00
|
|
|
AC_C_RESTRICT
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_C_WEAK_SYMBOLS
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-01-08 16:36:14 +03:00
|
|
|
# If we want the profiling layer:
|
|
|
|
# - If the C compiler has weak symbols, use those.
|
|
|
|
# - If not, then set to compile the code again with #define's in a
|
|
|
|
# separate directory.
|
|
|
|
|
|
|
|
if test "$WANT_WEAK_SYMBOLS" = "0"; then
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_C_HAVE_WEAK_SYMBOLS=0
|
2004-01-08 16:36:14 +03:00
|
|
|
fi
|
|
|
|
if test "$WANT_MPI_PROFILING" = "1"; then
|
2004-06-07 19:33:53 +04:00
|
|
|
if test "$OMPI_C_HAVE_WEAK_SYMBOLS" = "1"; then
|
|
|
|
OMPI_PROFILING_COMPILE_SEPARATELY=0
|
2004-01-08 16:36:14 +03:00
|
|
|
else
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_PROFILING_COMPILE_SEPARATELY=1
|
2004-01-08 16:36:14 +03:00
|
|
|
fi
|
|
|
|
else
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_PROFILING_COMPILE_SEPARATELY=0
|
2004-01-08 16:36:14 +03:00
|
|
|
fi
|
2004-01-15 04:11:59 +03:00
|
|
|
#
|
|
|
|
# There are 2 layers to the MPI Language binidings
|
|
|
|
# One layer generates MPI_* bindings. The other layer
|
|
|
|
# generates PMPI_* bindings. The following conditions
|
|
|
|
# determine whether each (or both) these layers are
|
|
|
|
# built.
|
|
|
|
# 1. MPI_* bindings are needed if:
|
|
|
|
# - Profiling is not required
|
|
|
|
# - Profiling is required but weak symbols are not
|
|
|
|
# supported
|
|
|
|
# 2. PMPI_* bindings are needed if profiling is required.
|
|
|
|
# Hence we define 2 AM_CONDITIONALs which tell us whether
|
|
|
|
# each of these layers need to be built or NOT
|
|
|
|
#
|
|
|
|
AM_CONDITIONAL(WANT_MPI_BINDINGS_LAYER,
|
2004-06-07 19:33:53 +04:00
|
|
|
test "$WANT_MPI_PROFILING" = 0 -o "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1)
|
2004-01-15 04:11:59 +03:00
|
|
|
|
|
|
|
AM_CONDITIONAL(WANT_PMPI_BINDINGS_LAYER,
|
|
|
|
test "$WANT_MPI_PROFILING" = 1)
|
2004-01-08 18:51:54 +03:00
|
|
|
AM_CONDITIONAL(COMPILE_PROFILING_SEPARATELY,
|
2004-06-07 19:33:53 +04:00
|
|
|
test "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1)
|
|
|
|
AC_DEFINE_UNQUOTED(OMPI_ENABLE_MPI_PROFILING, $WANT_MPI_PROFILING,
|
2004-01-08 18:51:54 +03:00
|
|
|
[Whether we want MPI profiling or not])
|
2004-06-07 19:33:53 +04:00
|
|
|
AC_DEFINE_UNQUOTED(OMPI_HAVE_WEAK_SYMBOLS, $OMPI_C_HAVE_WEAK_SYMBOLS,
|
2004-01-08 18:51:54 +03:00
|
|
|
[Wehther we have weak symbols or not])
|
2004-01-08 16:36:14 +03:00
|
|
|
|
2004-01-07 10:49:23 +03:00
|
|
|
|
2003-11-22 19:36:58 +03:00
|
|
|
##################################
|
|
|
|
# C++ compiler characteristics
|
|
|
|
##################################
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_SETUP_CXX
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
# check for type sizes
|
2004-02-13 21:05:49 +03:00
|
|
|
|
|
|
|
AC_LANG_SAVE
|
|
|
|
AC_LANG_CPLUSPLUS
|
|
|
|
AC_CHECK_SIZEOF(bool)
|
|
|
|
|
2003-11-22 19:36:58 +03:00
|
|
|
# check for type alignments
|
2004-02-13 21:05:49 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_C_GET_ALIGNMENT(bool, OMPI_ALIGNMENT_CXX_BOOL)
|
2004-02-13 21:05:49 +03:00
|
|
|
AC_LANG_RESTORE
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-01-07 10:49:23 +03:00
|
|
|
|
2003-11-22 19:36:58 +03:00
|
|
|
##################################
|
|
|
|
# Fortran
|
|
|
|
##################################
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_SIZEOF_FORTRAN_INT=0
|
|
|
|
OMPI_SIZEOF_FORTRAN_REAL=0
|
|
|
|
OMPI_SIZEOF_FORTRAN_DBLPREC=0
|
|
|
|
OMPI_SIZEOF_FORTRAN_COMPLEX=0
|
|
|
|
OMPI_SIZEOF_FORTRAN_DBLCOMPLEX=0
|
2004-03-17 02:54:51 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_ALIGNMENT_FORTRAN_INT=0
|
|
|
|
OMPI_ALIGNMENT_FORTRAN_REAL=0
|
|
|
|
OMPI_ALIGNMENT_FORTRAN_DBLPREC=0
|
|
|
|
OMPI_ALIGNMENT_FORTRAN_COMPLEX=0
|
|
|
|
OMPI_ALIGNMENT_FORTRAN_DBLCOMPLEX=0
|
2004-03-17 02:54:51 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_SETUP_F77
|
|
|
|
if test "$OMPI_F77" != "none" ; then
|
|
|
|
OMPI_F77_FIND_EXT_SYMBOL_CONVENTION($OMPI_F77)
|
2004-01-21 02:16:25 +03:00
|
|
|
|
|
|
|
# checking the sizeof fortran interger. This is needed to define
|
|
|
|
# MPI_Fint. This is needed for C bindings and hence there is no
|
|
|
|
# bearing of --enable-fortran flag on this test.
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_F77_GET_SIZEOF(INTEGER, OMPI_SIZEOF_FORTRAN_INT)
|
2004-02-13 21:05:49 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
# If we want fortran support, then get the sizes and alignments of all
|
|
|
|
# the rest of the fortran types
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
if test "$OMPI_WANT_F77_BINDINGS" = "1" ; then
|
2004-02-13 21:05:49 +03:00
|
|
|
# INTEGER is already done, per above
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_F77_GET_SIZEOF(REAL, OMPI_SIZEOF_FORTRAN_REAL)
|
|
|
|
OMPI_F77_GET_SIZEOF(DOUBLE PRECISION, OMPI_SIZEOF_FORTRAN_DBLPREC)
|
|
|
|
OMPI_F77_GET_SIZEOF(COMPLEX, OMPI_SIZEOF_FORTRAN_COMPLEX)
|
|
|
|
OMPI_F77_GET_SIZEOF(DOUBLE COMPLEX, OMPI_SIZEOF_FORTRAN_DBLCOMPLEX)
|
|
|
|
|
|
|
|
OMPI_F77_GET_ALIGNMENT(INTEGER, OMPI_ALIGNMENT_FORTRAN_INT)
|
|
|
|
OMPI_F77_GET_ALIGNMENT(REAL, OMPI_ALIGNMENT_FORTRAN_REAL)
|
|
|
|
OMPI_F77_GET_ALIGNMENT(DOUBLE PRECISION, OMPI_ALIGNMENT_FORTRAN_DBLPREC)
|
|
|
|
OMPI_F77_GET_ALIGNMENT(COMPLEX, OMPI_ALIGNMENT_FORTRAN_COMPLEX)
|
|
|
|
OMPI_F77_GET_ALIGNMENT(DOUBLE COMPLEX, OMPI_ALIGNMENT_FORTRAN_DBLCOMPLEX)
|
2004-01-09 11:25:18 +03:00
|
|
|
fi
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
AC_DEFINE_UNQUOTED(OMPI_SIZEOF_FORTRAN_INT, $OMPI_SIZEOF_FORTRAN_INT,
|
2004-03-17 02:54:51 +03:00
|
|
|
[Size of fortran integer])
|
2004-06-07 19:33:53 +04:00
|
|
|
AC_DEFINE_UNQUOTED(OMPI_SIZEOF_FORTRAN_REAL, $OMPI_SIZEOF_FORTRAN_REAL,
|
2004-03-17 02:54:51 +03:00
|
|
|
[Size of fortran real])
|
2004-06-07 19:33:53 +04:00
|
|
|
AC_DEFINE_UNQUOTED(OMPI_SIZEOF_FORTRAN_DBLPREC, $OMPI_SIZEOF_FORTRAN_DBLPREC,
|
2004-03-17 02:54:51 +03:00
|
|
|
[Size of fortran double precision])
|
2004-06-07 19:33:53 +04:00
|
|
|
AC_DEFINE_UNQUOTED(OMPI_SIZEOF_FORTRAN_COMPLEX, $OMPI_SIZEOF_FORTRAN_COMPLEX,
|
2004-03-17 02:54:51 +03:00
|
|
|
[Size of fortran complex])
|
2004-06-07 19:33:53 +04:00
|
|
|
AC_DEFINE_UNQUOTED(OMPI_SIZEOF_FORTRAN_DBLCOMPLEX,
|
|
|
|
$OMPI_SIZEOF_FORTRAN_DBLCOMPLEX,
|
2004-03-17 02:54:51 +03:00
|
|
|
[Size of fortran double complex])
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
AC_DEFINE_UNQUOTED(OMPI_ALIGNMENT_FORTRAN_INT, $OMPI_ALIGNMENT_FORTRAN_INT,
|
2004-06-08 02:09:25 +04:00
|
|
|
[Alignment of fortran integer])
|
2004-06-07 19:33:53 +04:00
|
|
|
AC_DEFINE_UNQUOTED(OMPI_ALIGNMENT_FORTRAN_REAL, $OMPI_ALIGNMENT_FORTRAN_REAL,
|
2004-06-08 02:09:25 +04:00
|
|
|
[alignment of fortran real])
|
2004-06-07 19:33:53 +04:00
|
|
|
AC_DEFINE_UNQUOTED(OMPI_ALIGNMENT_FORTRAN_DBLPREC,
|
|
|
|
$OMPI_ALIGNMENT_FORTRAN_DBLPREC,
|
2004-06-08 02:09:25 +04:00
|
|
|
[Alignment of fortran double precision])
|
2004-06-07 19:33:53 +04:00
|
|
|
AC_DEFINE_UNQUOTED(OMPI_ALIGNMENT_FORTRAN_COMPLEX,
|
|
|
|
$OMPI_ALIGNMENT_FORTRAN_COMPLEX,
|
2004-06-08 02:09:25 +04:00
|
|
|
[Alignment of fortran complex])
|
2004-06-07 19:33:53 +04:00
|
|
|
AC_DEFINE_UNQUOTED(OMPI_ALIGNMENT_FORTRAN_DBLCOMPLEX,
|
|
|
|
$OMPI_ALIGNMENT_FORTRAN_DBLCOMPLEX,
|
2004-06-08 02:09:25 +04:00
|
|
|
[Alignment of fortran double complex])
|
2004-03-17 02:54:51 +03:00
|
|
|
|
2004-04-14 03:05:31 +04:00
|
|
|
#
|
|
|
|
# There are 2 layers to the MPI f77 layer. The only extra thing
|
|
|
|
# that determine f77 bindings is that fortran can be disabled by
|
|
|
|
# user. In such cases, we need to not build the target at all.
|
|
|
|
# One layer generates MPI_f77* bindings. The other layer
|
|
|
|
# generates PMPI_f77* bindings. The following conditions
|
|
|
|
# determine whether each (or both) these layers are
|
|
|
|
# built.
|
|
|
|
# Superceeding clause:
|
|
|
|
# - fortran77 bindings should be enabled, else everything is
|
|
|
|
# disabled
|
|
|
|
# 1. MPI_f77* bindings are needed if:
|
|
|
|
# - Profiling is not required
|
|
|
|
# - Profiling is required but weak symbols are not
|
|
|
|
# supported
|
|
|
|
# 2. PMPI_* bindings are needed if profiling is required.
|
|
|
|
# Hence we define 2 AM_CONDITIONALs which tell us whether
|
|
|
|
# each of these layers need to be built or NOT
|
|
|
|
#
|
|
|
|
AM_CONDITIONAL(WANT_MPI_F77_BINDINGS_LAYER,
|
2004-06-07 19:33:53 +04:00
|
|
|
test "$WANT_MPI_PROFILING" = 0 -o "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1 -a "$OMPI_WANT_F77_BINDINGS" = 1)
|
2004-04-14 03:05:31 +04:00
|
|
|
|
|
|
|
AM_CONDITIONAL(WANT_PMPI_F77_BINDINGS_LAYER,
|
2004-06-07 19:33:53 +04:00
|
|
|
test "$OMPI_WANT_F77_BINDINGS" = 1 -a "$WANT_MPI_PROFILING" = 1)
|
2004-03-28 14:02:38 +04:00
|
|
|
|
2004-02-13 21:05:49 +03:00
|
|
|
#
|
|
|
|
# Fortran 90 setup
|
|
|
|
#
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_SETUP_F90
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
|
|
|
|
##################################
|
|
|
|
# Header files
|
|
|
|
##################################
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_show_title "Header file tests"
|
2004-03-28 14:52:58 +04:00
|
|
|
|
2003-11-22 19:36:58 +03:00
|
|
|
# snprintf declaration
|
|
|
|
# gethostname declaration
|
|
|
|
# headers:
|
|
|
|
# stropts.h grh.h netinet/tcp.h sys/select.h sys/resource.h pty.h util.h
|
|
|
|
# rpc/types.h rpc/xdr.h sched.h strings.h
|
|
|
|
|
|
|
|
# SA_RESTART in signal.h
|
|
|
|
# sa_len in struct sockaddr
|
|
|
|
# union semun in sys/sem.h
|
2004-03-28 14:52:58 +04:00
|
|
|
AC_CHECK_HEADERS([stdbool.h alloca.h])
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
|
|
|
|
##################################
|
|
|
|
# Libraries
|
|
|
|
##################################
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_show_title "Library and Function tests"
|
2004-03-28 14:02:38 +04:00
|
|
|
|
2003-11-22 19:36:58 +03:00
|
|
|
# -lsocket
|
|
|
|
# -lnsl
|
|
|
|
# -lutil (openpty)
|
|
|
|
# openpty
|
|
|
|
# atexit
|
|
|
|
# getcwd
|
|
|
|
# snprintf
|
|
|
|
# atoll
|
|
|
|
# strtoll
|
|
|
|
# yield
|
|
|
|
# sched_yield
|
|
|
|
# vscanf
|
2004-01-14 09:39:55 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Make sure we can copy va_lists (need check declared, not linkable)
|
|
|
|
#
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
AC_CHECK_DECL(va_copy, OMPI_HAVE_VA_COPY=1, OMPI_HAVE_VA_COPY=0,
|
2004-01-14 09:39:55 +03:00
|
|
|
[#include <stdarg.h>])
|
2004-06-07 19:33:53 +04:00
|
|
|
AC_DEFINE_UNQUOTED(OMPI_HAVE_VA_COPY, $OMPI_HAVE_VA_COPY,
|
2004-01-14 09:39:55 +03:00
|
|
|
[Whether we have va_copy or not])
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
AC_CHECK_DECL(__va_copy, OMPI_HAVE_UNDERSCORE_VA_COPY=1,
|
|
|
|
OMPI_HAVE_UNDERSCORE_VA_COPY=0, [#include <stdarg.h>])
|
|
|
|
AC_DEFINE_UNQUOTED(OMPI_HAVE_UNDERSCORE_VA_COPY, $OMPI_HAVE_UNDERSCORE_VA_COPY,
|
2004-01-14 09:39:55 +03:00
|
|
|
[Whether we have __va_copy or not])
|
|
|
|
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
##################################
|
|
|
|
# System-specific tests
|
|
|
|
##################################
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_show_title "System-specific tests"
|
2004-01-17 01:16:25 +03:00
|
|
|
#
|
|
|
|
# Determine what MPI_Fint shout be defined as. If the size of
|
|
|
|
# fortran integer is 4 then it is defined to either
|
|
|
|
# int32_t or int. Similarly if the size of fortran integer
|
|
|
|
# is 8 bytes then it is defined to either int64_t or int.
|
|
|
|
# ac_cv_type_int32_t=yes implies that unint_32 was present.
|
|
|
|
# similary ac_cv_type_int64_t=yes. Similarly the values
|
|
|
|
# of ac_cv_sizeof_int will contain the size of int and later
|
|
|
|
# this will be #defined to SIZEOF_INT.
|
2004-01-19 04:33:03 +03:00
|
|
|
# NOTE:
|
|
|
|
# This test should be carried out ONLY if there is a f77 compiler
|
|
|
|
# available. Else we should default to MPI_Fint being an int.
|
2004-01-17 01:16:25 +03:00
|
|
|
#
|
2004-06-07 19:33:53 +04:00
|
|
|
if test "$OMPI_F77" != "none"; then
|
2004-01-19 04:33:03 +03:00
|
|
|
MPI_FINT_TYPE="not found"
|
|
|
|
AC_MSG_CHECKING([checking for type of MPI_Fint])
|
2004-06-07 19:33:53 +04:00
|
|
|
if test "$OMPI_SIZEOF_FORTRAN_INT" = 4 ; then
|
2004-01-21 02:16:25 +03:00
|
|
|
if test "$ac_cv_type_int32_t" = "yes"; then
|
2004-01-19 04:33:03 +03:00
|
|
|
MPI_FINT_TYPE=int32_t
|
2004-01-21 02:16:25 +03:00
|
|
|
elif test "$ac_cv_sizeof_int" = 4 ; then
|
2004-01-19 04:33:03 +03:00
|
|
|
MPI_FINT_TYPE=int
|
2004-01-21 02:16:25 +03:00
|
|
|
fi
|
2004-06-07 19:33:53 +04:00
|
|
|
elif test "$OMPI_SIZEOF_FORTRAN_INT" = 8 ; then
|
2004-01-21 02:16:25 +03:00
|
|
|
if test "$ac_cv_type_int64_t" = "yes"; then
|
|
|
|
MPI_FINT_TYPE=int64_t
|
|
|
|
elif test "$ac_cv_type_long_long" = "yes" -a "$ac_cv_sizeof_long_long" = 8; then
|
2004-01-19 04:33:03 +03:00
|
|
|
MPI_FINT_TYPE="long long"
|
2004-01-21 02:16:25 +03:00
|
|
|
elif test "$ac_cv_sizeof_long" = 8; then
|
2004-01-19 04:33:03 +03:00
|
|
|
MPI_FINT_TYPE="long"
|
2004-01-21 02:16:25 +03:00
|
|
|
elif test "$ac_cv_sizeof_int" = 8 ; then
|
2004-01-19 04:33:03 +03:00
|
|
|
MPI_FINT_TYPE=int
|
2004-01-21 02:16:25 +03:00
|
|
|
fi
|
2004-01-19 04:33:03 +03:00
|
|
|
fi
|
|
|
|
AC_MSG_RESULT([$MPI_FINT_TYPE])
|
|
|
|
if test "$MPI_FINT_TYPE" = "not found"; then
|
2004-01-21 02:16:25 +03:00
|
|
|
AC_MSG_WARN([*** WARNING: Unable to find the right definition for MPI_Fint])
|
|
|
|
AC_MSG_ERROR([Cannot continue])
|
2004-01-19 04:33:03 +03:00
|
|
|
fi
|
|
|
|
AC_DEFINE_UNQUOTED(MPI_Fint, $MPI_FINT_TYPE, [Type of MPI_Fint])
|
|
|
|
else
|
2004-01-21 02:16:25 +03:00
|
|
|
AC_MSG_WARN([*** WARNING: Could not detect a f77 compiler. MPI_Fint will be defined as an int])
|
2004-01-19 04:33:03 +03:00
|
|
|
MPI_FINT_TYPE=int
|
|
|
|
AC_DEFINE_UNQUOTED(MPI_Fint, $MPI_FINT_TYPE, [Type of MPI_Fint])
|
|
|
|
fi
|
|
|
|
|
|
|
|
#
|
|
|
|
# Test to determine type of MPI_Offset. This is searched in the following order
|
|
|
|
# int64_t, long long, long, int. If none of these are 8 bytes, then we should
|
|
|
|
# search for int32_t, long long, long, int.
|
|
|
|
#
|
|
|
|
MPI_OFFSET_TYPE="not found"
|
|
|
|
AC_MSG_CHECKING([checking for type of MPI_Offset])
|
|
|
|
if test "$ac_cv_type_int64_t" == "yes"; then
|
|
|
|
MPI_OFFSET_TYPE=int64_t
|
|
|
|
elif test "$ac_cv_type_long_long_t" == "yes" -a "$ac_cv_sizeof_long_long" = 8; then
|
|
|
|
MPI_OFFSET_TYPE="long long"
|
|
|
|
elif test "$ac_cv_type_long_t" == "yes" -a "$ac_cv_sizeof_long" = 8; then
|
|
|
|
MPI_OFFSET_TYPE="long"
|
|
|
|
elif test "ac_cv_sizeof_int" = 8; then
|
|
|
|
MPI_OFFSET_TYPE=int
|
|
|
|
elif test "$ac_cv_type_int32_t" == "yes"; then
|
|
|
|
MPI_OFFSET_TYPE=int32_t
|
|
|
|
elif test "$ac_cv_type_long_long_t" == "yes" -a "$ac_cv_sizeof_long_long" = 4; then
|
|
|
|
MPI_OFFSET_TYPE="long long"
|
|
|
|
elif test "$ac_cv_type_long_t" == "yes" -a "$ac_cv_sizeof_long" = 4; then
|
|
|
|
MPI_OFFSET_TYPE="long"
|
|
|
|
elif test "ac_cv_sizeof_int" = 4; then
|
|
|
|
MPI_OFFSET_TYPE=int
|
2004-01-17 01:16:25 +03:00
|
|
|
fi
|
2004-01-19 04:33:03 +03:00
|
|
|
AC_MSG_RESULT([$MPI_OFFSET_TYPE])
|
2004-01-17 07:10:01 +03:00
|
|
|
if test "$MPI_FINT_TYPE" = "not found"; then
|
2004-01-19 04:33:03 +03:00
|
|
|
AC_MSG_WARN([*** WARNING: Unable to find the right definition for MPI_Offset])
|
|
|
|
AC_MSG_ERROR([Cannot continue])
|
2004-01-17 01:16:25 +03:00
|
|
|
fi
|
2004-01-19 04:33:03 +03:00
|
|
|
AC_DEFINE_UNQUOTED(MPI_Offset, $MPI_OFFSET_TYPE, [Type of MPI_Offset])
|
|
|
|
|
2004-01-17 01:16:25 +03:00
|
|
|
|
2004-01-09 08:32:21 +03:00
|
|
|
|
2003-11-22 19:36:58 +03:00
|
|
|
# all: endian
|
|
|
|
# all: SYSV semaphores
|
|
|
|
# all: SYSV shared memory
|
|
|
|
# all: thread flavor
|
|
|
|
# all: size of FD_SET
|
|
|
|
# all: FD passing (or not!!)
|
|
|
|
# all: BSD vs. SYSV ptys
|
|
|
|
# all: sizeof struct stat members
|
|
|
|
# all: type of getsockopt optlen
|
|
|
|
# all: type of recvfrom optlen
|
2004-01-09 08:08:31 +03:00
|
|
|
|
2004-01-14 10:06:57 +03:00
|
|
|
#
|
|
|
|
# Check out what thread support we have
|
|
|
|
#
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_CONFIG_THREADS
|
2004-03-17 06:04:44 +03:00
|
|
|
CFLAGS="$CFLAGS $THREAD_CFLAGS"
|
|
|
|
CXXFLAGS="$CXXFLAGS $THREAD_CXXFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS"
|
|
|
|
CXXCPPFLAGS="$CXXCPPFLAGS $THREAD_CXXCPPFLAGS"
|
|
|
|
LDFLAGS="$LDFLAGS $THREAD_LDFLAGS"
|
|
|
|
LIBS="$LIBS $THREAD_LIBS"
|
|
|
|
|
|
|
|
WRAPPER_EXTRA_CFLAGS="$WRAPPER_EXTRA_CFLAGS $THREAD_CFLAGS"
|
|
|
|
WRAPPER_EXTRA_CXXFLAGS="$WRAPPER_EXTRA_CXXFLAGS $THREAD_CXXFLAGS"
|
|
|
|
WRAPPER_EXTRA_FFLAGS="$WRAPPER_EXTRA_FFLAGS $THREAD_FFLAGS"
|
2004-03-28 14:02:38 +04:00
|
|
|
WRAPPER_EXTRA_FCFLAGS="$WRAPPER_EXTRA_FCFLAGS $THREAD_FFLAGS"
|
2004-03-17 06:04:44 +03:00
|
|
|
WRAPPER_EXTRA_LDFLAGS="$WRAPPER_EXTRA_LDFLAGS $THREAD_LDFLAGS"
|
|
|
|
WRAPPER_EXTRA_LIBS="$WRAPPER_EXTRA_LIBS $THREAD_LIBS"
|
2004-01-14 10:06:57 +03:00
|
|
|
|
2004-02-13 06:58:56 +03:00
|
|
|
#
|
|
|
|
# What is the local equivalent of "ln -s"
|
|
|
|
#
|
|
|
|
|
|
|
|
AC_PROG_LN_S
|
|
|
|
|
2004-01-09 11:25:18 +03:00
|
|
|
#
|
2004-01-09 08:08:31 +03:00
|
|
|
# File system case sensitivity
|
2004-01-09 11:25:18 +03:00
|
|
|
#
|
2004-01-09 08:08:31 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_CASE_SENSITIVE_FS_SETUP
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
# AIX: FIONBIO in sys/ioctl.h
|
|
|
|
# glibc: memcpy
|
|
|
|
|
|
|
|
|
2004-01-12 00:35:37 +03:00
|
|
|
##################################
|
|
|
|
# MCA
|
|
|
|
##################################
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_show_title "MPI Component Architecture (MCA) setup"
|
2004-01-12 00:35:37 +03:00
|
|
|
|
|
|
|
AC_MSG_CHECKING([for subdir args])
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_CONFIG_SUBDIR_ARGS([ompi_subdir_args])
|
|
|
|
AC_MSG_RESULT([$ompi_subdir_args])
|
2004-01-12 00:35:37 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_MCA
|
2004-01-12 00:35:37 +03:00
|
|
|
|
|
|
|
|
2004-01-16 04:31:50 +03:00
|
|
|
############################################################################
|
2004-06-07 19:33:53 +04:00
|
|
|
# Final top-level OMPI configuration
|
2004-01-16 04:31:50 +03:00
|
|
|
############################################################################
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_show_title "Final top-level OMPI configuration"
|
2004-01-16 04:31:50 +03:00
|
|
|
|
2004-02-12 21:54:06 +03:00
|
|
|
############################################################################
|
|
|
|
# Libevent setup
|
|
|
|
############################################################################
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_show_subtitle "Libevent 3rd party event handler"
|
2004-02-12 21:54:06 +03:00
|
|
|
CFLAGS_save="$CFLAGS"
|
2004-06-07 19:33:53 +04:00
|
|
|
CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY"
|
|
|
|
OMPI_SETUP_LIBEVENT
|
2004-02-12 21:54:06 +03:00
|
|
|
CFLAGS="$CFLAGS_save"
|
|
|
|
|
|
|
|
|
2003-11-22 19:36:58 +03:00
|
|
|
############################################################################
|
|
|
|
# Libtool: part two
|
|
|
|
# (after C compiler setup)
|
|
|
|
############################################################################
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_show_subtitle "Libtool configuration"
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-01-15 02:50:58 +03:00
|
|
|
# Use convenience libltdl for the moment, because we need to force the
|
|
|
|
# use of the newest libltdl (i.e., the one that ships with libtool
|
|
|
|
# 1.5) because it has support for a lot more things than older
|
|
|
|
# versions of libtool (which are generally installed by default).
|
|
|
|
|
2004-03-17 22:06:06 +03:00
|
|
|
AC_LIBLTDL_CONVENIENCE(src/libltdl)
|
2004-01-15 02:50:58 +03:00
|
|
|
AC_SUBST(LTDLINCL)
|
|
|
|
AC_SUBST(LIBLTDL)
|
|
|
|
AC_LIBTOOL_DLOPEN
|
2003-11-22 19:36:58 +03:00
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
2004-01-15 02:50:58 +03:00
|
|
|
# AC_CONFIG_SUBDIRS appears to be broken for non-gcc compilers (i.e.,
|
|
|
|
# passing precious variables down to the sub-configure).
|
|
|
|
#
|
|
|
|
# Note that we also did some magic scripty-foo in autogen.sh to rename
|
2004-06-07 19:33:53 +04:00
|
|
|
# the output libtool library "libompi_ltdl", so add -lompi_ltdl here.
|
2004-01-15 02:50:58 +03:00
|
|
|
# This is because so many systems have older versions of libltdl
|
|
|
|
# installed very early in ld.so's search path; if we installed our own
|
|
|
|
# libltdl in some non-standard path (e.g., $HOME/local or even
|
|
|
|
# /usr/local), the libltdl in /usr/lib might get found first. And if
|
|
|
|
# it's older -- or just not matching the version that we need, Bad
|
|
|
|
# Things happen. [sigh]
|
|
|
|
#
|
2004-06-07 19:33:53 +04:00
|
|
|
# Finally, make libompi_ltdl follow the same shared/static convention
|
|
|
|
# that was user for the main OMPI libraries. So manually examine
|
2004-01-15 02:50:58 +03:00
|
|
|
# $enable_shared and $enable_static and pass down the corresponding
|
|
|
|
# flags.
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_show_subtitle "GNU libltdl setup"
|
2004-01-15 02:50:58 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_subdir_args="$ompi_subdir_args --enable-ltdl-convenience --disable-ltdl-install"
|
2004-01-15 02:50:58 +03:00
|
|
|
if test "$enable_shared" = "yes"; then
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_subdir_args="$ompi_subdir_args --enable-shared"
|
2004-01-15 02:50:58 +03:00
|
|
|
else
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_subdir_args="$ompi_subdir_args --disable-shared"
|
2004-01-15 02:50:58 +03:00
|
|
|
fi
|
|
|
|
if test "$enable_static" = "yes"; then
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_subdir_args="$ompi_subdir_args --enable-static"
|
2004-01-15 02:50:58 +03:00
|
|
|
else
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_subdir_args="$ompi_subdir_args --disable-static"
|
2004-01-15 02:50:58 +03:00
|
|
|
fi
|
|
|
|
|
2004-01-16 04:31:50 +03:00
|
|
|
CFLAGS_save="$CFLAGS"
|
2004-06-07 19:33:53 +04:00
|
|
|
CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY"
|
|
|
|
OMPI_CONFIG_SUBDIR(src/libltdl, [$ompi_subdir_args], [HAPPY=1], [HAPPY=0])
|
2004-01-15 02:50:58 +03:00
|
|
|
if test "$HAPPY" = "1"; then
|
|
|
|
LIBLTDL_SUBDIR=libltdl
|
|
|
|
LIBLTDL_LTLIB=libltdl/libltdlc.la
|
|
|
|
WANT_LIBLTDL=1
|
|
|
|
|
|
|
|
# Arrgh. This is gross. But I can't think of any other way to do
|
|
|
|
# it. :-(
|
|
|
|
|
2004-03-17 22:06:06 +03:00
|
|
|
flags="`egrep ^LIBADD_DL src/libltdl/Makefile | cut -d= -f2-`"
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_CHECK_LINKER_FLAGS([src/libltdl/libtool], [-export-dynamic $flags])
|
2004-01-15 02:50:58 +03:00
|
|
|
WRAPPER_EXTRA_LIBS="$WRAPPER_EXTRA_LIBS $extra_ldflags"
|
|
|
|
LDFLAGS="-export-dynamic $LDFLAGS"
|
|
|
|
else
|
|
|
|
LIBLTDL_SUBDIR=
|
|
|
|
LIBLTDL_LTLIB=
|
|
|
|
WANT_LIBLTDL=0
|
|
|
|
fi
|
2004-01-16 04:31:50 +03:00
|
|
|
CFLAGS="$CFLAGS_save"
|
2004-01-15 02:50:58 +03:00
|
|
|
AC_SUBST(LIBLTDL_SUBDIR)
|
|
|
|
AC_SUBST(LIBLTDL_LTLIB)
|
|
|
|
AM_CONDITIONAL(WANT_LIBLTDL, test "$WANT_LIBLTDL" = "1")
|
2004-06-07 19:33:53 +04:00
|
|
|
AC_DEFINE_UNQUOTED(OMPI_WANT_LIBLTDL, $WANT_LIBLTDL,
|
2004-01-15 02:50:58 +03:00
|
|
|
[Whether to include support for libltdl or not])
|
|
|
|
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# final wrapper compiler config
|
|
|
|
############################################################################
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_show_subtitle "Wrapper compiler flags"
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# This is needed for VPATH builds, so that it will -I the appropriate
|
|
|
|
# include directory (don't know why automake doesn't do this
|
|
|
|
# automatically). We delayed doing it until now just so that
|
|
|
|
# '-I$(top_srcdir)' doesn't show up in any of the configure output --
|
|
|
|
# purely aesthetic.
|
|
|
|
#
|
|
|
|
|
2004-03-19 00:35:28 +03:00
|
|
|
CPPFLAGS='-I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_builddir)/src'" $CPPFLAGS"
|
|
|
|
CXXCPPFLAGS='-I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_builddir)/src'" $CXXCPPFLAGS"
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-01-12 10:08:37 +03:00
|
|
|
#
|
|
|
|
# Adding WRAPPER_* flags so that extra flags needed for wrappper compilers
|
|
|
|
#
|
|
|
|
# WRAPPER_EXTRA_CFLAGS
|
|
|
|
#
|
2004-01-16 05:03:41 +03:00
|
|
|
AC_MSG_CHECKING([for mpicc CFLAGS])
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_UNIQ(WRAPPER_EXTRA_CFLAGS)
|
2004-01-12 10:08:37 +03:00
|
|
|
AC_SUBST(WRAPPER_EXTRA_CFLAGS)
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_CFLAGS, "$WRAPPER_EXTRA_CFLAGS",
|
|
|
|
[Additional CFLAGS to pass through the wrapper compilers])
|
2004-01-16 05:03:41 +03:00
|
|
|
AC_MSG_RESULT([$WRAPPER_EXTRA_CFLAGS])
|
2004-01-12 10:08:37 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# WRAPPER_EXTRA_CXXFLAGS
|
|
|
|
#
|
2004-01-16 05:03:41 +03:00
|
|
|
AC_MSG_CHECKING([for mpiCC CXXFLAGS])
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_UNIQ(WRAPPER_EXTRA_CXXFLAGS)
|
2004-01-12 10:08:37 +03:00
|
|
|
AC_SUBST(WRAPPER_EXTRA_CXXFLAGS)
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_CXXFLAGS, "$WRAPPER_EXTRA_CXXFLAGS",
|
|
|
|
[Additional CXXFLAGS to pass through the wrapper compilers])
|
2004-01-16 05:03:41 +03:00
|
|
|
AC_MSG_RESULT([$WRAPPER_EXTRA_CXXFLAGS])
|
2004-01-12 10:08:37 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# WRAPPER_EXTRA_FFLAGS
|
|
|
|
#
|
2004-01-16 05:03:41 +03:00
|
|
|
AC_MSG_CHECKING([for mpif77/mpif90 FFLAGS])
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_UNIQ(WRAPPER_EXTRA_FFLAGS)
|
2004-01-12 10:08:37 +03:00
|
|
|
AC_SUBST(WRAPPER_EXTRA_FFLAGS)
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_FFLAGS, "$WRAPPER_EXTRA_FFLAGS",
|
|
|
|
[Additional FFLAGS to pass through the wrapper compilers])
|
2004-01-16 05:03:41 +03:00
|
|
|
AC_MSG_RESULT([$WRAPPER_EXTRA_FFLAGS])
|
2004-01-12 10:08:37 +03:00
|
|
|
|
2004-03-28 14:02:38 +04:00
|
|
|
#
|
|
|
|
# WRAPPER_EXTRA_FCFLAGS
|
|
|
|
#
|
|
|
|
AC_MSG_CHECKING([for mpif77/mpif90 FCFLAGS])
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_UNIQ(WRAPPER_EXTRA_FCFLAGS)
|
2004-03-28 14:02:38 +04:00
|
|
|
AC_SUBST(WRAPPER_EXTRA_FCFLAGS)
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_FCFLAGS, "$WRAPPER_EXTRA_FCFLAGS",
|
|
|
|
[Additional FCFLAGS to pass through the wrapper compilers])
|
|
|
|
AC_MSG_RESULT([$WRAPPER_EXTRA_FCFLAGS])
|
|
|
|
|
2004-01-12 10:08:37 +03:00
|
|
|
#
|
|
|
|
# WRAPPER_EXTRA_LDFLAGS
|
|
|
|
#
|
2004-01-16 05:03:41 +03:00
|
|
|
AC_MSG_CHECKING([for wrapper compiler LDFLAGS])
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_UNIQ(WRAPPER_EXTRA_LDFLAGS)
|
2004-01-12 10:08:37 +03:00
|
|
|
AC_SUBST(WRAPPER_EXTRA_LDFLAGS)
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_LDFLAGS, "$WRAPPER_EXTRA_LDFLAGS",
|
|
|
|
[Additional LDFLAGS to pass through the wrapper compilers])
|
2004-01-16 05:03:41 +03:00
|
|
|
AC_MSG_RESULT([$WRAPPER_EXTRA_LDFLAGS])
|
2004-01-12 10:08:37 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# WRAPPER_EXTRA_LIBS
|
|
|
|
#
|
2004-01-16 05:03:41 +03:00
|
|
|
AC_MSG_CHECKING([for wrapper compiler LIBS])
|
2004-01-12 10:08:37 +03:00
|
|
|
AC_SUBST(WRAPPER_EXTRA_LIBS)
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_LIBS, "$WRAPPER_EXTRA_LIBS",
|
|
|
|
[Additional LIBS to pass through the wrapper compilers])
|
2004-01-16 05:03:41 +03:00
|
|
|
AC_MSG_RESULT([$WRAPPER_EXTRA_LIBS])
|
2004-01-12 10:08:37 +03:00
|
|
|
|
2004-01-19 04:41:40 +03:00
|
|
|
#
|
|
|
|
# Delayed the substitution of CFLAGS and CXXFLAGS until now because
|
|
|
|
# they may have been modified throughout the course of this script.
|
|
|
|
#
|
|
|
|
|
2003-11-22 19:36:58 +03:00
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
AC_SUBST(CPPFLAGS)
|
|
|
|
AC_SUBST(CXXFLAGS)
|
|
|
|
AC_SUBST(CXXCPPFLAGS)
|
|
|
|
AC_SUBST(FFLAGS)
|
2004-03-28 14:02:38 +04:00
|
|
|
AC_SUBST(FCFLAGS)
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# Party on
|
|
|
|
############################################################################
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_show_subtitle "Final output"
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
AM_CONFIG_HEADER([include/ompi_config.h])
|
2003-11-22 19:36:58 +03:00
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
|
|
|
|
config/Makefile
|
|
|
|
|
2004-03-19 00:35:28 +03:00
|
|
|
include/Makefile
|
2004-03-19 20:27:35 +03:00
|
|
|
include/mpif.h
|
2004-03-19 00:35:28 +03:00
|
|
|
|
2003-11-22 19:36:58 +03:00
|
|
|
src/Makefile
|
|
|
|
src/include/Makefile
|
2003-11-22 19:57:54 +03:00
|
|
|
|
2004-03-17 22:06:06 +03:00
|
|
|
src/ctnetwork/Makefile
|
2004-06-07 19:33:53 +04:00
|
|
|
src/class/Makefile
|
2004-03-17 22:06:06 +03:00
|
|
|
src/mem/Makefile
|
|
|
|
src/os/Makefile
|
|
|
|
src/os/cygwin/Makefile
|
|
|
|
src/os/darwin/Makefile
|
|
|
|
src/os/darwin/ppc_32/Makefile
|
|
|
|
src/os/darwin/ppc_64/Makefile
|
|
|
|
src/os/irix/Makefile
|
|
|
|
src/os/irix/sn0/Makefile
|
|
|
|
src/os/linux/Makefile
|
|
|
|
src/os/linux/alpha/Makefile
|
|
|
|
src/os/linux/i686/Makefile
|
|
|
|
src/os/linux/ia64/Makefile
|
|
|
|
src/os/linux/x86_64/Makefile
|
|
|
|
src/os/tru64/Makefile
|
|
|
|
src/runtime/Makefile
|
|
|
|
src/threads/Makefile
|
|
|
|
src/util/Makefile
|
|
|
|
|
2004-03-18 00:11:52 +03:00
|
|
|
src/event/Makefile
|
2004-03-18 01:28:18 +03:00
|
|
|
src/event/compat/Makefile
|
|
|
|
src/event/compat/sys/Makefile
|
2004-03-18 00:11:52 +03:00
|
|
|
|
2004-03-17 22:06:06 +03:00
|
|
|
src/attribute/Makefile
|
|
|
|
src/communicator/Makefile
|
|
|
|
src/datatype/Makefile
|
|
|
|
src/errhandler/Makefile
|
2004-03-26 07:28:42 +03:00
|
|
|
src/file/Makefile
|
2004-03-17 22:06:06 +03:00
|
|
|
src/group/Makefile
|
|
|
|
src/info/Makefile
|
|
|
|
src/op/Makefile
|
|
|
|
src/proc/Makefile
|
|
|
|
src/request/Makefile
|
|
|
|
src/win/Makefile
|
2003-11-22 19:57:54 +03:00
|
|
|
|
2004-01-09 00:42:18 +03:00
|
|
|
src/mca/Makefile
|
2004-03-17 22:06:06 +03:00
|
|
|
src/mca/base/Makefile
|
|
|
|
src/mca/common/Makefile
|
|
|
|
src/mca/common/base/Makefile
|
|
|
|
|
|
|
|
src/mca/oob/Makefile
|
|
|
|
src/mca/oob/base/Makefile
|
|
|
|
src/mca/pcm/Makefile
|
|
|
|
src/mca/pcm/base/Makefile
|
|
|
|
src/mca/registry/Makefile
|
|
|
|
src/mca/registry/base/Makefile
|
|
|
|
|
2004-06-15 20:57:18 +04:00
|
|
|
src/mca/allocator/Makefile
|
|
|
|
src/mca/allocator/base/Makefile
|
2004-03-17 22:06:06 +03:00
|
|
|
src/mca/coll/Makefile
|
|
|
|
src/mca/coll/base/Makefile
|
2004-04-17 00:56:22 +04:00
|
|
|
src/mca/topo/Makefile
|
|
|
|
src/mca/topo/base/Makefile
|
2004-03-17 22:06:06 +03:00
|
|
|
src/mca/io/Makefile
|
|
|
|
src/mca/io/base/Makefile
|
|
|
|
src/mca/one/Makefile
|
|
|
|
src/mca/one/base/Makefile
|
|
|
|
src/mca/pml/Makefile
|
|
|
|
src/mca/pml/base/Makefile
|
|
|
|
src/mca/ptl/Makefile
|
|
|
|
src/mca/ptl/base/Makefile
|
2004-06-12 14:56:32 +04:00
|
|
|
src/mca/gpr/Makefile
|
2004-01-12 00:35:37 +03:00
|
|
|
|
2004-03-17 22:06:06 +03:00
|
|
|
src/mpi/Makefile
|
|
|
|
src/mpi/c/Makefile
|
|
|
|
src/mpi/c/profile/Makefile
|
|
|
|
src/mpi/cxx/Makefile
|
|
|
|
src/mpi/f77/Makefile
|
|
|
|
src/mpi/f77/profile/Makefile
|
|
|
|
src/mpi/f90/Makefile
|
2004-01-09 00:42:18 +03:00
|
|
|
|
2003-11-22 19:36:58 +03:00
|
|
|
src/tools/Makefile
|
2004-06-07 19:33:53 +04:00
|
|
|
src/tools/ompi_info/Makefile
|
2004-01-14 11:38:51 +03:00
|
|
|
src/tools/mpirun/Makefile
|
2003-11-22 19:36:58 +03:00
|
|
|
src/tools/wrappers/Makefile
|
2004-05-20 17:54:14 +04:00
|
|
|
|
2004-06-04 06:28:48 +04:00
|
|
|
src/rte/universe/Makefile
|
|
|
|
|
2004-05-25 17:08:24 +04:00
|
|
|
test/Makefile
|
|
|
|
test/support/Makefile
|
2004-06-07 19:33:53 +04:00
|
|
|
test/class/Makefile
|
2004-05-25 17:08:24 +04:00
|
|
|
test/threads/Makefile
|
|
|
|
test/util/Makefile
|
2004-06-04 06:28:48 +04:00
|
|
|
test/rte/Makefile
|
2004-06-15 01:05:53 +04:00
|
|
|
test/mem/Makefile
|
2003-11-22 19:36:58 +03:00
|
|
|
])
|
|
|
|
AC_OUTPUT
|