First commit
This commit was SVN r1.
Этот коммит содержится в:
Коммит
350564b9f3
15
Makefile.am
Обычный файл
15
Makefile.am
Обычный файл
@ -0,0 +1,15 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# Copyright (c) 2003 The Trustees of Indiana University.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the CMPI software package. For license
|
||||
# information, see the LICENSE file in the top level directory of the
|
||||
# CMPI source distribution.
|
||||
#
|
||||
# $Id: Makefile.am,v 1.1 2003/11/22 16:36:19 jsquyres Exp $
|
||||
#
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
SUBDIRS = config doc src test
|
6
VERSION
Обычный файл
6
VERSION
Обычный файл
@ -0,0 +1,6 @@
|
||||
major=0
|
||||
minor=0
|
||||
release=1
|
||||
alpha=1
|
||||
beta=0
|
||||
cvs=1
|
18
acinclude.m4
Обычный файл
18
acinclude.m4
Обычный файл
@ -0,0 +1,18 @@
|
||||
dnl -*- shell-script -*-
|
||||
dnl
|
||||
dnl Copyright (c) 2003 The Trustees of Indiana University.
|
||||
dnl All rights reserved.
|
||||
dnl
|
||||
dnl This file is part of the LAM/MPI software package. For license
|
||||
dnl information, see the LICENSE file in the top level directory of the
|
||||
dnl LAM/MPI source distribution.
|
||||
dnl
|
||||
dnl $Id: acinclude.m4,v 1.1 2003/11/22 16:36:20 jsquyres Exp $
|
||||
dnl
|
||||
|
||||
#
|
||||
# CMPI-specific tests
|
||||
#
|
||||
|
||||
sinclude(config/cmpi_functions.m4)
|
||||
sinclude(config/cmpi_get_version.m4)
|
161
autogen.sh
Исполняемый файл
161
autogen.sh
Исполняемый файл
@ -0,0 +1,161 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# Copyright (c) 2003 The Trustees of Indiana University.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the LAM/MPI software package. For license
|
||||
# information, see the LICENSE file in the top level directory of the
|
||||
# LAM/MPI source distribution.
|
||||
#
|
||||
# $Id: autogen.sh,v 1.1 2003/11/22 16:36:20 jsquyres Exp $
|
||||
#
|
||||
# This script is run on developer copies of LAM/MPI -- *not*
|
||||
# distribution tarballs.
|
||||
#
|
||||
# Some helper functions
|
||||
#
|
||||
|
||||
#
|
||||
# Subroutine to check for the existence of various standard GNU tools
|
||||
#
|
||||
test_for_existence() {
|
||||
tfe_prog="$1"
|
||||
tfe_foo="`$tfe_prog --version`"
|
||||
if test "$?" != 0; then
|
||||
cat <<EOF
|
||||
|
||||
You must have GNU autoconf, automake, and libtool installed to build
|
||||
the developer's version of LAM/MPI. You can obtain these packages
|
||||
from ftp://ftp.gnu.org/gnu/.
|
||||
|
||||
EOF
|
||||
# Stupid emacs: '
|
||||
exit 1
|
||||
fi
|
||||
unset tfe_prog tfe_foo
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Subroutine to execite the standard GNU tools, and if they fail,
|
||||
# print out a warning.
|
||||
#
|
||||
run_and_check() {
|
||||
rac_progs="$*"
|
||||
echo "$rac_progs"
|
||||
eval $rac_progs
|
||||
if test "$?" != 0; then
|
||||
cat <<EOF
|
||||
|
||||
It seems that the execution of "$progs" has failed.
|
||||
I am gonna abort. :-(
|
||||
|
||||
This may be caused by an older version of one of the required
|
||||
packages. Please make sure you are using at least the following
|
||||
versions:
|
||||
|
||||
GNU Autoconf 2.57
|
||||
GNU Automake 1.7.8
|
||||
GNU Libtool 1.5
|
||||
|
||||
EOF
|
||||
exit 1
|
||||
fi
|
||||
unset rac_progs
|
||||
}
|
||||
|
||||
#
|
||||
# Subroutine to look for standard files in a number of common places
|
||||
# (e.g., ./config.guess, config/config.guess, dist/config.guess), and
|
||||
# delete it. If it's not found there, look for AC_CONFIG_AUX_DIR in
|
||||
# the configure.in script and try there. If it's not there, oh well.
|
||||
#
|
||||
find_and_delete() {
|
||||
fad_file="$1"
|
||||
|
||||
# Look for the file in "standard" places
|
||||
|
||||
if test -f $fad_file; then
|
||||
rm -f $fad_file
|
||||
elif test -d config/$fad_file; then
|
||||
rm -f config/$fad_file
|
||||
elif test -d dist/$fad_file; then
|
||||
rm -f dist/$fad_file
|
||||
else
|
||||
|
||||
# Didn't find it -- look for an AC_CONFIG_AUX_DIR line in
|
||||
# configure.[in|ac]
|
||||
|
||||
if test -f configure.in; then
|
||||
fad_cfile=configure.in
|
||||
elif test -f configure.ac; then
|
||||
fad_cfile=configure.ac
|
||||
else
|
||||
echo "--> Errr... there's no configure.in or configure.ac file!"
|
||||
fi
|
||||
if test -n "$fad_cfile"; then
|
||||
auxdir="`grep AC_CONFIG_AUX_DIR $fad_cfile | cut -d\( -f 2 | cut -d\) -f 1`"
|
||||
fi
|
||||
if test -f "$auxdir/$fad_file"; then
|
||||
rm -f "$auxdir/$fad_file"
|
||||
fi
|
||||
unset fad_cfile
|
||||
fi
|
||||
unset fad_file
|
||||
}
|
||||
|
||||
|
||||
##########################################################################
|
||||
# Main
|
||||
##########################################################################
|
||||
|
||||
if test -f VERSION -a -f configure.ac -a -f src/mpi/datatype/get_name.c ; then
|
||||
bad=0
|
||||
else
|
||||
cat <<EOF
|
||||
|
||||
You must run this script from the top-level LAM directory.
|
||||
|
||||
EOF
|
||||
exit 1
|
||||
fi
|
||||
|
||||
test_for_existence autoconf
|
||||
test_for_existence automake
|
||||
test_for_existence libtool
|
||||
|
||||
# See if the package doesn't want us to set it up
|
||||
|
||||
cat <<EOF
|
||||
|
||||
*** Running GNU tools in directory:
|
||||
*** `pwd`
|
||||
|
||||
EOF
|
||||
|
||||
# Find and delete the GNU helper script files
|
||||
|
||||
find_and_delete config.guess
|
||||
find_and_delete config.sub
|
||||
find_and_delete depcomp
|
||||
find_and_delete install-sh
|
||||
find_and_delete ltconfig
|
||||
find_and_delete ltmain.sh
|
||||
find_and_delete missing
|
||||
find_and_delete mkinstalldirs
|
||||
find_and_delete libtool
|
||||
|
||||
# Run the GNU tools
|
||||
|
||||
run_and_check aclocal
|
||||
if test "`grep AC_CONFIG_HEADER configure.ac`" != "" -o \
|
||||
"`grep AM_CONFIG_HEADER configure.ac`" != ""; then
|
||||
run_and_check autoheader
|
||||
fi
|
||||
run_and_check autoconf
|
||||
run_and_check libtoolize --automake --copy
|
||||
run_and_check automake --foreign -a --copy --include-deps
|
||||
|
||||
# All done
|
||||
|
||||
exit 0
|
18
config/Makefile.am
Обычный файл
18
config/Makefile.am
Обычный файл
@ -0,0 +1,18 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# Copyright (c) 2003 The Trustees of Indiana University.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the CMPI software package. For license
|
||||
# information, see the LICENSE file in the top level directory of the
|
||||
# CMPI source distribution.
|
||||
#
|
||||
# $Id: Makefile.am,v 1.1 2003/11/22 16:36:20 jsquyres Exp $
|
||||
#
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
EXTRA_DIST = \
|
||||
cmpi_functions.m4 \
|
||||
cmpi_get_version.m4 \
|
||||
cmpi_get_version.sh
|
13
config/Makefile.options
Обычный файл
13
config/Makefile.options
Обычный файл
@ -0,0 +1,13 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# Copyright (c) 2003 The Trustees of Indiana University.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the CMPI software package. For license
|
||||
# information, see the LICENSE file in the top level directory of the
|
||||
# CMPI source distribution.
|
||||
#
|
||||
# $Id: Makefile.options,v 1.1 2003/11/22 16:36:20 jsquyres Exp $
|
||||
#
|
||||
|
||||
AUTOMAKE_OPTIONS = foreign dist-bzip2
|
49
config/cmpi_functions.m4
Обычный файл
49
config/cmpi_functions.m4
Обычный файл
@ -0,0 +1,49 @@
|
||||
dnl -*- shell-script -*-
|
||||
dnl
|
||||
dnl Copyright (c) 2003 The Trustees of Indiana University.
|
||||
dnl All rights reserved.
|
||||
dnl
|
||||
dnl This file is part of the CMPI software package. For license
|
||||
dnl information, see the LICENSE file in the top level directory of the
|
||||
dnl CMPI source distribution.
|
||||
dnl
|
||||
dnl $Id: cmpi_functions.m4,v 1.1 2003/11/22 16:36:20 jsquyres Exp $
|
||||
dnl
|
||||
|
||||
AC_DEFUN(CMPI_CONFIGURE_SETUP,[
|
||||
|
||||
# Some helper script functions. Unfortunately, we cannot use $1 kinds
|
||||
# of arugments here because of the m4 substitution. So we have to set
|
||||
# special variable names before invoking the function. :-\
|
||||
|
||||
cmpi_show_title() {
|
||||
cat <<EOF
|
||||
|
||||
============================================================================
|
||||
== ${1}
|
||||
============================================================================
|
||||
EOF
|
||||
}
|
||||
|
||||
|
||||
cmpi_show_subtitle() {
|
||||
cat <<EOF
|
||||
|
||||
*** ${1}
|
||||
EOF
|
||||
}
|
||||
|
||||
#
|
||||
# Save some stats about this build
|
||||
#
|
||||
|
||||
CMPI_CONFIGURE_USER="`whoami`"
|
||||
CMPI_CONFIGURE_HOST="`hostname | head -n 1`"
|
||||
CMPI_CONFIGURE_DATE="`date`"
|
||||
|
||||
#
|
||||
# Make automake clean emacs ~ files for "make clean"
|
||||
#
|
||||
|
||||
CLEANFILES="*~ .\#*"
|
||||
AC_SUBST(CLEANFILES)])dnl
|
39
config/cmpi_get_version.m4
Обычный файл
39
config/cmpi_get_version.m4
Обычный файл
@ -0,0 +1,39 @@
|
||||
dnl -*- shell-script -*-
|
||||
dnl
|
||||
dnl Copyright (c) 2003 The Trustees of Indiana University.
|
||||
dnl All rights reserved.
|
||||
dnl
|
||||
dnl This file is part of the CMPI software package. For license
|
||||
dnl information, see the LICENSE file in the top level directory of the
|
||||
dnl CMPI source distribution.
|
||||
dnl
|
||||
dnl $Id: cmpi_get_version.m4,v 1.1 2003/11/22 16:36:20 jsquyres Exp $
|
||||
dnl
|
||||
|
||||
define(CMPI_GET_VERSION,[
|
||||
gv_glv_dir="$1"
|
||||
gv_ver_file="$2"
|
||||
gv_prefix="$3"
|
||||
|
||||
# Find the get_lam_version program
|
||||
|
||||
gv_prog="sh $gv_glv_dir/cmpi_get_version.sh $gv_ver_file"
|
||||
|
||||
dnl quote eval to suppress macro expansion with non-GNU m4
|
||||
|
||||
gv_run() {
|
||||
[eval] ${gv_prefix}_${2}=`$gv_prog --${1}`
|
||||
}
|
||||
|
||||
gv_run full VERSION
|
||||
gv_run major MAJOR_VERSION
|
||||
gv_run minor MINOR_VERSION
|
||||
gv_run release RELEASE_VERSION
|
||||
gv_run alpha ALPHA_VERSION
|
||||
gv_run beta BETA_VERSION
|
||||
gv_run cvs CVS_VERSION
|
||||
|
||||
# Clean up
|
||||
|
||||
unset gv_glv_dir gv_ver_file gv_prefix gv_prog gv_run
|
||||
])
|
94
config/cmpi_get_version.sh
Исполняемый файл
94
config/cmpi_get_version.sh
Исполняемый файл
@ -0,0 +1,94 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2003 The Trustees of Indiana University.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the CMMPI software package. For license
|
||||
# information, see the LICENSE file in the top level directory of the
|
||||
# CMPI source distribution.
|
||||
#
|
||||
# $Id: cmpi_get_version.sh,v 1.1 2003/11/22 16:36:20 jsquyres Exp $
|
||||
#
|
||||
# Since we do this in multiple places, it's worth putting in a
|
||||
# separate shell script. Very primitive script to get the version
|
||||
# number of CMPI into a coherent variable. Can query for any of the
|
||||
# individual parts of the version number, too.
|
||||
#
|
||||
|
||||
srcfile="$1"
|
||||
option="$2"
|
||||
|
||||
if test "$srcfile" = ""; then
|
||||
option="--help"
|
||||
else
|
||||
CMPI_MAJOR_VERSION="`cat $srcfile | grep major | cut -d= -f2`"
|
||||
CMPI_MINOR_VERSION="`cat $srcfile | grep minor | cut -d= -f2`"
|
||||
CMPI_RELEASE_VERSION="`cat $srcfile | grep release | cut -d= -f2`"
|
||||
CMPI_ALPHA_VERSION="`cat $srcfile | grep alpha | cut -d= -f2`"
|
||||
CMPI_BETA_VERSION="`cat $srcfile | grep beta | cut -d= -f2`"
|
||||
CMPI_CVS_VERSION="`cat $srcfile | grep cvs | cut -d= -f2`"
|
||||
if test "$CMPI_RELEASE_VERSION" != "0" -a "$CMPI_RELEASE_VERSION" != ""; then
|
||||
CMPI_VERSION="$CMPI_MAJOR_VERSION.$CMPI_MINOR_VERSION.$CMPI_RELEASE_VERSION"
|
||||
else
|
||||
CMPI_VERSION="$CMPI_MAJOR_VERSION.$CMPI_MINOR_VERSION"
|
||||
fi
|
||||
|
||||
if test "`expr $CMPI_ALPHA_VERSION \> 0`" = "1"; then
|
||||
CMPI_VERSION="${CMPI_VERSION}a$CMPI_ALPHA_VERSION"
|
||||
elif test "`expr $CMPI_BETA_VERSION \> 0`" = "1"; then
|
||||
CMPI_VERSION="${CMPI_VERSION}b$CMPI_BETA_VERSION"
|
||||
fi
|
||||
|
||||
if test "$CMPI_CVS_VERSION" = "1"; then
|
||||
CMPI_VERSION="${CMPI_VERSION}cvs"
|
||||
elif test "`expr $CMPI_CVS_VERSION \> 0`" = "1"; then
|
||||
CMPI_VERSION="${CMPI_VERSION}cvs$CMPI_CVS_VERSION"
|
||||
fi
|
||||
|
||||
if test "$option" = ""; then
|
||||
option="--full"
|
||||
fi
|
||||
fi
|
||||
|
||||
case "$option" in
|
||||
--full|-v|--version)
|
||||
echo $CMPI_VERSION
|
||||
;;
|
||||
--major)
|
||||
echo $CMPI_MAJOR_VERSION
|
||||
;;
|
||||
--minor)
|
||||
echo $CMPI_MINOR_VERSION
|
||||
;;
|
||||
--release)
|
||||
echo $CMPI_RELEASE_VERSION
|
||||
;;
|
||||
--alpha)
|
||||
echo $CMPI_ALPHA_VERSION
|
||||
;;
|
||||
--beta)
|
||||
echo $CMPI_BETA_VERSION
|
||||
;;
|
||||
--cvs)
|
||||
echo $CMPI_CVS_VERSION
|
||||
;;
|
||||
-h|--help)
|
||||
cat <<EOF
|
||||
$0 <srcfile> [<option>]
|
||||
|
||||
<srcfile> - Text version file
|
||||
<option> - One of:
|
||||
--full - Full version number
|
||||
--major - Major version number
|
||||
--minor - Minor version number
|
||||
--release - Release version number
|
||||
--alpha - Alpha version number
|
||||
--beta - Beta version nmumber
|
||||
--cvs - CVS date stamp
|
||||
--help - This message
|
||||
EOF
|
||||
esac
|
||||
|
||||
# All done
|
||||
|
||||
exit 0
|
315
configure.ac
Обычный файл
315
configure.ac
Обычный файл
@ -0,0 +1,315 @@
|
||||
# -*- shell-script -*-
|
||||
#
|
||||
# Copyright (c) 2003 The Trustees of Indiana University.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the CMPI software package. For license
|
||||
# information, see the LICENSE file in the top level directory of the
|
||||
# CMPI source distribution.
|
||||
#
|
||||
# $Id: configure.ac,v 1.1 2003/11/22 16:36:20 jsquyres Exp $
|
||||
#
|
||||
|
||||
|
||||
############################################################################
|
||||
# Initialization, version number, and other random setup/init stuff
|
||||
############################################################################
|
||||
|
||||
# Init autoconf
|
||||
|
||||
AC_INIT(./src/mpi/datatype/get_name.c)
|
||||
AC_PREREQ(2.52)
|
||||
AC_CONFIG_AUX_DIR(./config)
|
||||
|
||||
# Get the version of CMPI that we are installing
|
||||
|
||||
CMPI_GET_VERSION($srcdir/config, $srcdir/VERSION, CMPI)
|
||||
|
||||
AC_DEFINE_UNQUOTED(CMPI_MAJOR_VERSION, $CMPI_MAJOR_VERSION,
|
||||
[Major CMPI version])
|
||||
AC_DEFINE_UNQUOTED(CMPI_MINOR_VERSION, $CMPI_MINOR_VERSION,
|
||||
[Minor CMPI version])
|
||||
AC_DEFINE_UNQUOTED(CMPI_RELEASE_VERSION, $CMPI_RELEASE_VERSION,
|
||||
[Release CMPI version])
|
||||
AC_DEFINE_UNQUOTED(CMPI_ALPHA_VERSION, $CMPI_ALPHA_VERSION,
|
||||
[Alpha CMPI version])
|
||||
AC_DEFINE_UNQUOTED(CMPI_BETA_VERSION, $CMPI_BETA_VERSION,
|
||||
[Beta CMPI version])
|
||||
AC_DEFINE_UNQUOTED(CMPI_CVS_VERSION, $CMPI_CVS_VERSION,
|
||||
[CVS CMPI version])
|
||||
AC_DEFINE_UNQUOTED(CMPI_VERSION, "$CMPI_VERSION",
|
||||
[Overall CMPI version number])
|
||||
|
||||
AC_SUBST(CMPI_MAJOR_VERSION)
|
||||
AC_SUBST(CMPI_MINOR_VERSION)
|
||||
AC_SUBST(CMPI_RELEASE_VERSION)
|
||||
AC_SUBST(CMPI_ALPHA_VERSION)
|
||||
AC_SUBST(CMPI_BETA_VERSION)
|
||||
AC_SUBST(CMPI_CVS_VERSION)
|
||||
AC_SUBST(CMPI_VERSION)
|
||||
|
||||
#
|
||||
# Start it up
|
||||
#
|
||||
|
||||
CMPI_CONFIGURE_SETUP
|
||||
cmpi_show_title "Configuring CMPI version $CMPI_VERSION"
|
||||
cmpi_show_subtitle "Initialization, setup"
|
||||
|
||||
#
|
||||
# Init automake
|
||||
# The third argument to AM_INIT_AUTOMAKE surpresses the PACKAGE and
|
||||
# VERSION macors
|
||||
#
|
||||
|
||||
AM_INIT_AUTOMAKE(cmpi, $CMPI_VERSION, 'no')
|
||||
|
||||
CMPI_TOP_BUILDDIR="`pwd`"
|
||||
AC_SUBST(CMPI_TOP_BUILDDIR)
|
||||
cd "$srcdir"
|
||||
CMPI_TOP_SRCDIR="`pwd`"
|
||||
AC_SUBST(CMPI_TOP_SRCDIR)
|
||||
cd "$CMPI_TOP_BUILDDIR"
|
||||
|
||||
AC_MSG_NOTICE([builddir: $CMPI_TOP_BUILDDIR])
|
||||
AC_MSG_NOTICE([srcdir: $CMPI_TOP_SRCDIR])
|
||||
if test "$CMPI_TOP_BUILDDIR" != "$CMPI_TOP_SRCDIR"; then
|
||||
AC_MSG_NOTICE([Detected VPATH build])
|
||||
fi
|
||||
|
||||
# Setup the top of the src/include/cmpi_config.h file
|
||||
|
||||
AH_TOP([/* -*- c -*-
|
||||
*
|
||||
* Copyright (c) 2003 The Trustees of Indiana University.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This file is part of the CMPI software package. For license
|
||||
* information, see the LICENSE file in the top level directory of the
|
||||
* CMPI source distribution.
|
||||
*
|
||||
* Function: - OS, CPU and compiler dependent configuration
|
||||
*/
|
||||
|
||||
#ifndef CMPI_CONFIG_H
|
||||
#define CMPI_CONFIG_H
|
||||
])
|
||||
|
||||
# What kind of machine are we on?
|
||||
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
|
||||
############################################################################
|
||||
# Configuration options
|
||||
############################################################################
|
||||
|
||||
# --enable-purify
|
||||
# --enable-dist
|
||||
# --disable-profile
|
||||
# --disable-f77
|
||||
# ...?
|
||||
|
||||
# amorphous, seem-to-be-good-idea options
|
||||
# --with-cmpi=maintainer_options
|
||||
# --with-ssi-*
|
||||
# ...?
|
||||
|
||||
############################################################################
|
||||
# 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.
|
||||
#
|
||||
|
||||
cmpi_enable_shared="$enable_shared"
|
||||
cmpi_enable_static="$enable_static"
|
||||
AM_DISABLE_SHARED
|
||||
AM_ENABLE_STATIC
|
||||
|
||||
|
||||
############################################################################
|
||||
# Check for compilers and preprocessors
|
||||
############################################################################
|
||||
|
||||
##################################
|
||||
# C compiler characteristics
|
||||
##################################
|
||||
|
||||
cflags_save="$CFLAGS"
|
||||
AC_PROG_CC
|
||||
CFLAGS="$cflags_save"
|
||||
|
||||
# force ANSI prototypes
|
||||
# check for STDC
|
||||
# check for some types
|
||||
# check for type sizes
|
||||
# check for type alignments
|
||||
|
||||
|
||||
##################################
|
||||
# C++ compiler characteristics
|
||||
##################################
|
||||
|
||||
cxx_flags_save="$CXXFLAGS"
|
||||
AC_PROG_CXX
|
||||
CXXFLAGS="$cxx_flags_save"
|
||||
|
||||
# check for STL
|
||||
# check for bool (and corresponding C type)
|
||||
# check for true/false
|
||||
# check for type sizes
|
||||
# check for type alignments
|
||||
# check for template repository
|
||||
|
||||
##################################
|
||||
# Fortran
|
||||
##################################
|
||||
|
||||
if test "$with_f77" != "yes"; then
|
||||
cmpi_show_subtitle "Fortran Compiler -- skipped"
|
||||
CMPI_WANT_FORTRAN=1
|
||||
else
|
||||
cmpi_show_subtitle "Fortran Compiler"
|
||||
CMPI_WANT_FORTRAN=0
|
||||
fi
|
||||
|
||||
if test "$CMPI_WANT_FORTRAN" = "1"; then
|
||||
# fortran linking style (necessary?)
|
||||
# check for types
|
||||
# check for type sizes
|
||||
# check for type alignments
|
||||
true
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(WANT_FORTRAN, test "$CMPI_WANT_FORTRAN" = "1")
|
||||
|
||||
|
||||
##################################
|
||||
# Header files
|
||||
##################################
|
||||
|
||||
# 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
|
||||
|
||||
|
||||
##################################
|
||||
# Libraries
|
||||
##################################
|
||||
|
||||
# -lsocket
|
||||
# -lnsl
|
||||
# -lutil (openpty)
|
||||
# openpty
|
||||
# atexit
|
||||
# getcwd
|
||||
# snprintf
|
||||
# atoll
|
||||
# strtoll
|
||||
# yield
|
||||
# sched_yield
|
||||
# vscanf
|
||||
# va_copy
|
||||
|
||||
##################################
|
||||
# System-specific tests
|
||||
##################################
|
||||
|
||||
# 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
|
||||
# all: file system case sensitivity
|
||||
|
||||
# AIX: FIONBIO in sys/ioctl.h
|
||||
# glibc: memcpy
|
||||
|
||||
|
||||
############################################################################
|
||||
# Libtool: part two
|
||||
# (after C compiler setup)
|
||||
############################################################################
|
||||
|
||||
cmpi_show_title "Libtool configuration"
|
||||
|
||||
AM_PROG_LIBTOOL
|
||||
|
||||
|
||||
############################################################################
|
||||
# final wrapper compiler config
|
||||
############################################################################
|
||||
|
||||
cmpi_show_title "Final top-level CMPI configuration"
|
||||
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
CPPFLAGS='-I$(top_srcdir)/share/include'" $CPPFLAGS"
|
||||
CXXCPPFLAGS='-I$(top_srcdir)/share/include'" $CXXCPPFLAGS"
|
||||
|
||||
#
|
||||
# Delayed the substitution of CFLAGS and CXXFLAGS until now because
|
||||
# they may have been modified throughout the course of this script.
|
||||
#
|
||||
|
||||
AC_SUBST(CFLAGS)
|
||||
AC_SUBST(CPPFLAGS)
|
||||
AC_SUBST(CXXFLAGS)
|
||||
AC_SUBST(CXXCPPFLAGS)
|
||||
AC_SUBST(FFLAGS)
|
||||
|
||||
|
||||
############################################################################
|
||||
# Party on
|
||||
############################################################################
|
||||
|
||||
cmpi_show_subtitle "Final output"
|
||||
|
||||
AM_CONFIG_HEADER([src/include/cmpi_config.h])
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
|
||||
config/Makefile
|
||||
|
||||
src/Makefile
|
||||
src/include/Makefile
|
||||
src/mpi/Makefile
|
||||
src/mpi/communicator/Makefile
|
||||
src/mpi/datatype/Makefile
|
||||
src/tools/Makefile
|
||||
src/tools/wrappers/Makefile
|
||||
|
||||
doc/Makefile
|
||||
|
||||
test/Makefile
|
||||
test/unit/Makefile
|
||||
test/unit/mpi/Makefile
|
||||
test/unit/mpi/communicator/Makefile
|
||||
test/unit/mpi/datatype/Makefile
|
||||
])
|
||||
AC_OUTPUT
|
15
src/Makefile.am
Обычный файл
15
src/Makefile.am
Обычный файл
@ -0,0 +1,15 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# Copyright (c) 2003 The Trustees of Indiana University.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the CMPI software package. For license
|
||||
# information, see the LICENSE file in the top level directory of the
|
||||
# CMPI source distribution.
|
||||
#
|
||||
# $Id: Makefile.am,v 1.1 2003/11/22 16:36:24 jsquyres Exp $
|
||||
#
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
SUBDIRS = include mpi tools
|
35
src/include/Makefile.am
Обычный файл
35
src/include/Makefile.am
Обычный файл
@ -0,0 +1,35 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# Copyright (c) 2003 The Trustees of Indiana University.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the CMPI software package. For license
|
||||
# information, see the LICENSE file in the top level directory of the
|
||||
# CMPI source distribution.
|
||||
#
|
||||
# $Id: Makefile.am,v 1.1 2003/11/22 16:36:25 jsquyres Exp $
|
||||
#
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
noinst_HEADERS = \
|
||||
communicator.h \
|
||||
datatype.h
|
||||
|
||||
include_HEADERS = \
|
||||
cmpi_config.h \
|
||||
mpi.h \
|
||||
mpif.h
|
||||
|
||||
# Add a hook to run *after* the file cmpi_config.h has been installed
|
||||
# out to the target location. It changes the pesky PACKAGE_* macros
|
||||
# that autoconf automatically generates (and there is no way of
|
||||
# turning off) into CMPI_PACKAGE_* in order to make <mpi.h> safe to
|
||||
# include with other files.
|
||||
|
||||
install-data-hook:
|
||||
sed -e 's/define PACKAGE/define CMPI_PACKAGE/' \
|
||||
$(DESTDIR)$(includedir)/cmpi_config.h \
|
||||
> $(DESTDIR)$(includedir)/cmpi_config.h.install
|
||||
mv $(DESTDIR)$(includedir)/cmpi_config.h.install \
|
||||
$(DESTDIR)$(includedir)/cmpi_config.h
|
31
src/include/mpi.h
Обычный файл
31
src/include/mpi.h
Обычный файл
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (c) 2003 The Trustees of Indiana University.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This file is part of the CMPI software package. For license
|
||||
* information, see the LICENSE file in the top level directory of the
|
||||
* CMPI source distribution.
|
||||
*
|
||||
* $Id: mpi.h,v 1.1 2003/11/22 16:36:25 jsquyres Exp $
|
||||
*/
|
||||
|
||||
#ifndef CMPI_COMMUNICATOR_H
|
||||
#define CMPI_COMMUNICATOR_H
|
||||
|
||||
#include <cmpi_config.h>
|
||||
|
||||
#define MPI_SUCCESS 0
|
||||
|
||||
#define MPI_MAX_OBJECT_NAME 64
|
||||
|
||||
typedef int MPI_Comm;
|
||||
typedef struct cmpi_datatype *MPI_Datatype;
|
||||
|
||||
extern MPI_Comm MPI_COMM_NULL;
|
||||
extern MPI_Comm MPI_COMM_WORLD;
|
||||
extern MPI_Comm MPI_COMM_SELF;
|
||||
|
||||
extern MPI_Datatype MPI_TYPE_NULL;
|
||||
|
||||
|
||||
#endif /* CMPI_COMMUNICATOR_H */
|
0
src/include/mpif.h
Обычный файл
0
src/include/mpif.h
Обычный файл
22
src/mpi/Makefile.am
Обычный файл
22
src/mpi/Makefile.am
Обычный файл
@ -0,0 +1,22 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# Copyright (c) 2003 The Trustees of Indiana University.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the CMPI software package. For license
|
||||
# information, see the LICENSE file in the top level directory of the
|
||||
# CMPI source distribution.
|
||||
#
|
||||
# $Id: Makefile.am,v 1.1 2003/11/22 16:36:25 jsquyres Exp $
|
||||
#
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
SUBDIRS = communicator datatype
|
||||
|
||||
lib_LTLIBRARIES = libmpi.la
|
||||
|
||||
libmpi_la_SOURCES =
|
||||
libmpi_la_LIBADD = \
|
||||
$(top_builddir)/src/mpi/communicator/libcommunicator.la \
|
||||
$(top_builddir)/src/mpi/datatype/libdatatype.la
|
22
src/mpi/interface/Makefile.am
Обычный файл
22
src/mpi/interface/Makefile.am
Обычный файл
@ -0,0 +1,22 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# Copyright (c) 2003 The Trustees of Indiana University.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the CMPI software package. For license
|
||||
# information, see the LICENSE file in the top level directory of the
|
||||
# CMPI source distribution.
|
||||
#
|
||||
# $Id: Makefile.am,v 1.1 2003/11/22 16:36:25 jsquyres Exp $
|
||||
#
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
SUBDIRS = communicator datatype
|
||||
|
||||
lib_LTLIBRARIES = libmpi.la
|
||||
|
||||
libmpi_la_SOURCES =
|
||||
libmpi_la_LIBADD = \
|
||||
$(top_builddir)/src/mpi/communicator/libcommunicator.la \
|
||||
$(top_builddir)/src/mpi/datatype/libdatatype.la
|
11
src/mpi/interface/c/comm_get_name.c
Обычный файл
11
src/mpi/interface/c/comm_get_name.c
Обычный файл
@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Copyright (c) 2003 The Trustees of Indiana University.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This file is part of the CMPI software package. For license
|
||||
* information, see the LICENSE file in the top level directory of the
|
||||
* CMPI source distribution.
|
||||
*
|
||||
* $Id: comm_get_name.c,v 1.1 2003/11/22 16:36:26 jsquyres Exp $
|
||||
*/
|
||||
|
44
src/mpi/interface/c/comm_set_name.c
Обычный файл
44
src/mpi/interface/c/comm_set_name.c
Обычный файл
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright (c) 2003 The Trustees of Indiana University.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This file is part of the CMPI software package. For license
|
||||
* information, see the LICENSE file in the top level directory of the
|
||||
* CMPI source distribution.
|
||||
*
|
||||
* $Id: comm_set_name.c,v 1.1 2003/11/22 16:36:26 jsquyres Exp $
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <mpi.h>
|
||||
|
||||
|
||||
int
|
||||
MPI_Comm_set_name(MPI_Comm comm, char *name)
|
||||
{
|
||||
if (comm == MPI_COMM_NULL) {
|
||||
/* -- Invoke error function -- */
|
||||
}
|
||||
|
||||
if (name == NULL) {
|
||||
/* -- Invoke error function -- */
|
||||
}
|
||||
|
||||
/* -- Thread safety entrance -- */
|
||||
|
||||
/* Copy in the name */
|
||||
|
||||
strncpy(comm->c_name, name, MPI_MAX_OBJECT_NAME);
|
||||
comm->c_name[MPI_MAX_OBJECT_NAME - 1] = 0;
|
||||
|
||||
/* -- Tracing information for new communicator name -- *
|
||||
|
||||
/* Force TotalView DLL to take note of this name setting */
|
||||
|
||||
++cmpi_tv_comm_sequence_number;
|
||||
|
||||
/* -- Thread safety exit -- */
|
||||
|
||||
return MPI_SUCCESS;
|
||||
}
|
0
src/mpi/interface/c/datatype_get_name.c
Обычный файл
0
src/mpi/interface/c/datatype_get_name.c
Обычный файл
0
src/mpi/interface/c/datatype_set_name.c
Обычный файл
0
src/mpi/interface/c/datatype_set_name.c
Обычный файл
15
src/tools/Makefile.am
Обычный файл
15
src/tools/Makefile.am
Обычный файл
@ -0,0 +1,15 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# Copyright (c) 2003 The Trustees of Indiana University.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the CMPI software package. For license
|
||||
# information, see the LICENSE file in the top level directory of the
|
||||
# CMPI source distribution.
|
||||
#
|
||||
# $Id: Makefile.am,v 1.1 2003/11/22 16:36:58 jsquyres Exp $
|
||||
#
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
SUBDIRS = wrappers
|
25
src/tools/wrappers/Makefile.am
Обычный файл
25
src/tools/wrappers/Makefile.am
Обычный файл
@ -0,0 +1,25 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# Copyright (c) 2003 The Trustees of Indiana University.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the CMPI software package. For license
|
||||
# information, see the LICENSE file in the top level directory of the
|
||||
# CMPI source distribution.
|
||||
#
|
||||
# $Id: Makefile.am,v 1.1 2003/11/22 16:36:58 jsquyres Exp $
|
||||
#
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
# This is ugly, but we need it so that people can change things at
|
||||
# "make" time (e.g., "make sysconfdir=/foo/bar all") as documented in
|
||||
# autoconf.
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
-DLAM_PREFIX="\"$(prefix)\"" \
|
||||
-DLAM_INCDIR="\"$(includedir)\"" \
|
||||
-DLAM_LIBDIR="\"$(libdir)\""
|
||||
|
||||
# Stay tuned...
|
||||
#bin_PROGRAMS = mpicc mpic++ mpif77 mpif90
|
15
test/Makefile.am
Обычный файл
15
test/Makefile.am
Обычный файл
@ -0,0 +1,15 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# Copyright (c) 2003 The Trustees of Indiana University.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the CMPI software package. For license
|
||||
# information, see the LICENSE file in the top level directory of the
|
||||
# CMPI source distribution.
|
||||
#
|
||||
# $Id: Makefile.am,v 1.1 2003/11/22 16:36:27 jsquyres Exp $
|
||||
#
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
SUBDIRS = unit
|
15
test/unit/Makefile.am
Обычный файл
15
test/unit/Makefile.am
Обычный файл
@ -0,0 +1,15 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# Copyright (c) 2003 The Trustees of Indiana University.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the CMPI software package. For license
|
||||
# information, see the LICENSE file in the top level directory of the
|
||||
# CMPI source distribution.
|
||||
#
|
||||
# $Id: Makefile.am,v 1.1 2003/11/22 16:36:27 jsquyres Exp $
|
||||
#
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
SUBDIRS = mpi
|
15
test/unit/mpi/Makefile.am
Обычный файл
15
test/unit/mpi/Makefile.am
Обычный файл
@ -0,0 +1,15 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# Copyright (c) 2003 The Trustees of Indiana University.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the CMPI software package. For license
|
||||
# information, see the LICENSE file in the top level directory of the
|
||||
# CMPI source distribution.
|
||||
#
|
||||
# $Id: Makefile.am,v 1.1 2003/11/22 16:36:28 jsquyres Exp $
|
||||
#
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
SUBDIRS = communicator datatype
|
15
test/unit/mpi/communicator/Makefile.am
Обычный файл
15
test/unit/mpi/communicator/Makefile.am
Обычный файл
@ -0,0 +1,15 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# Copyright (c) 2003 The Trustees of Indiana University.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the CMPI software package. For license
|
||||
# information, see the LICENSE file in the top level directory of the
|
||||
# CMPI source distribution.
|
||||
#
|
||||
# $Id: Makefile.am,v 1.1 2003/11/22 16:36:28 jsquyres Exp $
|
||||
#
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
# Stay tuned...
|
15
test/unit/mpi/datatype/Makefile.am
Обычный файл
15
test/unit/mpi/datatype/Makefile.am
Обычный файл
@ -0,0 +1,15 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# Copyright (c) 2003 The Trustees of Indiana University.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the CMPI software package. For license
|
||||
# information, see the LICENSE file in the top level directory of the
|
||||
# CMPI source distribution.
|
||||
#
|
||||
# $Id: Makefile.am,v 1.1 2003/11/22 16:36:29 jsquyres Exp $
|
||||
#
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
# Stay tuned...
|
Загрузка…
x
Ссылка в новой задаче
Block a user