Commit dc5822c0 authored by Philip Carns's avatar Philip Carns
Browse files

first cut at splitting darshan tree into separate runtime and util packages


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@472 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 44a18acb
all: lib/libdarshan-posix.a lib/libdarshan-mpi-io.a darshan-parser darshan-convert darshan-diff darshan-analyzer darshan-log-params
DESTDIR =
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = $(DESTDIR)@datarootdir@
includedir = $(DESTDIR)@includedir@
mandir = $(DESTDIR)@mandir@
sbindir = $(DESTDIR)@sbindir@
bindir = $(DESTDIR)@bindir@
libdir = $(DESTDIR)@libdir@
DISABLE_LDPRELOAD = @DISABLE_LDPRELOAD@
ifndef DISABLE_LDPRELOAD
all: lib/libdarshan.so
endif
VPATH = $(srcdir)
cp_zlib_link_flags = @__CP_ZLIB_LINK_FLAGS@
cp_zlib_include_flags = @__CP_ZLIB_INCLUDE_FLAGS@
# deliberately avoid large file support for host side utilities to avoid
# potentially buggy libz 64 bit offset support
CFLAGS = -I . -I $(srcdir) @CFLAGS@ @CPPFLAGS@
CFLAGS_MPI = -I . -I $(srcdir) @CFLAGS@ @CPPFLAGS@ -D_LARGEFILE64_SOURCE
CFLAGS_MPI_SHARED = -I . -I $(srcdir) @CFLAGS@ @CPPFLAGS@ -D_LARGEFILE64_SOURCE -shared -fpic -DPIC -DDARSHAN_PRELOAD
CC=@MPICC@
LD=@MPICC@
LIBS = -lz @LIBBZ2@
lib::
@mkdir -p $@
mktestdir::
mkdir -p test
uthash-1.9.2:
tar xjvf $(srcdir)/extern/uthash-1.9.2.tar.bz2
darshan-parser: darshan-parser.c darshan.h darshan-log-format.h darshan-logutils.h darshan-logutils.o | uthash-1.9.2
gcc $(CFLAGS) $(LIBS) $< darshan-logutils.o -o $@
darshan-convert: darshan-convert.c darshan.h darshan-log-format.h darshan-logutils.h darshan-logutils.o lib/lookup3.o
gcc $(CFLAGS) $(LIBS) $< darshan-logutils.o lib/lookup3.o -o $@
darshan-analyzer: darshan-analyzer.c darshan.h darshan-log-format.h darshan-logutils.h darshan-logutils.o
gcc $(CFLAGS) $(LIBS) $< darshan-logutils.o -o $@
darshan-log-params: darshan-log-params.c darshan-log-format.h
gcc $(CFLAGS) $(LIBS) $< -o $@
jenkins: util/bin/jenkins.o lib/lookup3.o
gcc $(CFLAGS) $(LIBS) $< -o $@ lib/lookup3.o
darshan-diff: darshan-diff.o darshan.h darshan-log-format.h darshan-logutils.o darshan-logutils.h
gcc $(CFLAGS) $(LIBS) $< darshan-logutils.o -o $@
darshan-diff.o: darshan-diff.c
gcc $(CFLAGS) -c $< -o $@
darshan-logutils.o: darshan-logutils.c
gcc $(CFLAGS) -c $< -o $@
test/gztest: test/gztest.c mktestdir
gcc $(CFLAGS) -lz $< -o $@
test/gz-bench: test/gz-bench.c mktestdir
gcc $(CFLAGS) -lz $< -o $@
lib/darshan-mpi-io.o: lib/darshan-mpi-io.c darshan.h darshan-log-format.h | lib
$(CC) $(cp_zlib_include_flags) $(CFLAGS_MPI) -c $< -o $@
lib/darshan-mpi-io.po: lib/darshan-mpi-io.c darshan.h darshan-log-format.h | lib
$(CC) $(cp_zlib_include_flags) $(CFLAGS_MPI_SHARED) -c $< -o $@
lib/darshan-pnetcdf.o: lib/darshan-pnetcdf.c darshan.h darshan-log-format.h | lib
$(CC) $(cp_zlib_include_flags) $(CFLAGS_MPI) -c $< -o $@
lib/darshan-pnetcdf.po: lib/darshan-pnetcdf.c darshan.h darshan-log-format.h | lib
$(CC) $(cp_zlib_include_flags) $(CFLAGS_MPI_SHARED) -c $< -o $@
lib/darshan-hdf5.o: lib/darshan-hdf5.c darshan.h darshan-log-format.h | lib
$(CC) $(cp_zlib_include_flags) $(CFLAGS_MPI) -c $< -o $@
lib/darshan-hdf5.po: lib/darshan-hdf5.c darshan.h darshan-log-format.h | lib
$(CC) $(cp_zlib_include_flags) $(CFLAGS_MPI_SHARED) -c $< -o $@
lib/darshan-posix.o: lib/darshan-posix.c darshan.h darshan-log-format.h | lib
$(CC) $(cp_zlib_include_flags) $(CFLAGS_MPI) -c $< -o $@
lib/darshan-posix.po: lib/darshan-posix.c darshan.h darshan-log-format.h | lib
$(CC) $(cp_zlib_include_flags) $(CFLAGS_MPI_SHARED) -c $< -o $@
lib/lookup3.o: lib/lookup3.c
$(CC) $(CFLAGS_MPI) -c $< -o $@
lib/lookup3.po: lib/lookup3.c
$(CC) $(CFLAGS_MPI_SHARED) -c $< -o $@
lib/lookup8.o: lib/lookup8.c
$(CC) $(CFLAGS_MPI) -c $< -o $@
lib/lookup8.po: lib/lookup8.c
$(CC) $(CFLAGS_MPI_SHARED) -c $< -o $@
%.i: %.c
$(CC) -E $(CFLAGS_MPI) -c $< -o $@
lib/libdarshan-mpi-io.a: lib/darshan-mpi-io.o lib/darshan-pnetcdf.o lib/darshan-hdf5.o
ar rcs $@ $^
lib/libdarshan-posix.a: lib/darshan-posix.o lib/lookup3.o lib/lookup8.o
ar rcs $@ $^
lib/libdarshan.so: lib/darshan-mpi-io.po lib/darshan-pnetcdf.po lib/darshan-hdf5.po lib/darshan-posix.po lib/lookup3.po lib/lookup8.po
$(CC) $(CFLAGS_MPI_SHARED) -ldl -o $@ $^ -lpthread -lrt -lz
install:: all
install -d $(libdir)
install -m 755 lib/libdarshan-posix.a $(libdir)
install -m 755 lib/libdarshan-mpi-io.a $(libdir)
ifndef DISABLE_LDPRELOAD
install -m 755 lib/libdarshan.so $(libdir)
endif
install -d $(bindir)
install -m 755 darshan-parser $(bindir)
install -m 755 darshan-convert $(bindir)
install -m 755 darshan-diff $(bindir)
install -m 755 darshan-analyzer $(bindir)
install -m 755 darshan-mk-log-dirs.pl $(bindir)
install -m 755 darshan-gen-cc.pl $(bindir)
install -m 755 darshan-gen-cxx.pl $(bindir)
install -m 755 darshan-gen-fortran.pl $(bindir)
install -m 755 util/bin/darshan-job-summary.pl $(bindir)
install -d $(libdir)/TeX
install -m 644 $(srcdir)/util/lib/TeX/Encode.pm $(libdir)/TeX/
install -d $(libdir)/Number
install -d $(libdir)/Number/Bytes
install -m 644 $(srcdir)/util/lib/Number/Bytes/Human.pm $(libdir)/Number/Bytes
install -d $(datarootdir)
install -m 644 $(srcdir)/util/share/* $(datarootdir)
clean::
rm -f *.o *.a lib/*.o lib/*.po lib/*.a lib/*.so darshan-parser darshan-convert darshan-diff darshan-analyzer darshan-log-params
distclean:: clean
rm -f darshan-config.h darshan-gen-cxx.pl darshan-gen-fortran.pl darshan-gen-cc.pl darshan-mk-log-dirs.pl aclocal.m4 autom4te.cache/* config.status config.log Makefile util/bin/darshan-job-summary.pl
rm -f compilers/*-V1R4 compilers/fast/*-V1R4 compilers/*-pcarns
rm -rf uthash-1.9.2
rm -rf autom4te.cache
#! /bin/bash
#
# (C) 2006 by Argonne National Laboratory.
# See COPYRIGHT in top-level directory.
#
# mpicc
# Simple script to compile and/or link MPI programs.
# This script knows the default flags and libraries, and can handle
# alternative C compilers and the associated flags and libraries.
# The important terms are:
# includedir, libdir, opalibdir - Directories containing an *installed* mpich2
# prefix, execprefix - Often used to define includedir and libdir
# CC - C compiler
# WRAPPER_CFLAGS - Any special flags needed to compile
# WRAPPER_LDFLAGS - Any special flags needed to link
# MPILIBNAME - Name of the MPI library
# MPI_OTHERLIBS - Other libraries needed in order to link
#
# We assume that (a) the C compiler can both compile and link programs
#
# Handling of command-line options:
# This is a little tricky because some options may contain blanks.
#
# Special issues with shared libraries - todo
#
# --------------------------------------------------------------------------
# Set the default values of all variables.
#
# Directory locations: Fixed for any MPI implementation.
# Set from the directory arguments to configure (e.g., --prefix=/usr/local)
prefix=/bgsys/drivers/ppcfloor/comm/fast
exec_prefix=${prefix}
sysconfdir=${prefix}/etc
includedir=${prefix}/include
libdir=${exec_prefix}/lib
opalibdir=${exec_prefix}/lib
CP_WRAPPERS=@CP_WRAPPERS@
DARSHAN_LIB_PATH=@darshan_lib_path@
CP_ZLIB_LINK_FLAGS=@__CP_ZLIB_LINK_FLAGS@
#
# Default settings for compiler, flags, and libraries.
# Determined by a combination of environment variables and tests within
# configure (e.g., determining whehter -lsocket is needee)
CC=`which bgxlc_r`
C_LINKPATH_SHL=""
WRAPPER_CFLAGS="-I/bgsys/drivers/ppcfloor/comm/sys/include"
WRAPPER_LDFLAGS=" "
MPILIBNAME="mpich.cnk"
PMPILIBNAME="pmpich.cnk"
MPI_OTHERLIBS=" -L/bgsys/drivers/ppcfloor/comm/sys/lib -Wl,-rpath,/bgsys/drivers/ppcfloor/comm/sys/lib -ldcmf-fast.cnk -ldcmfcoll-fast.cnk -lpthread -L/bgsys/drivers/ppcfloor/runtime/SPI -Wl,-rpath,/bgsys/drivers/ppcfloor/runtime/SPI -lSPI-fast.cna -lrt "
NEEDSPLIB="yes"
# MPIVERSION is the version of the MPICH2 library that mpicc is intended for
MPIVERSION="1.1"
#
# Internal variables
# Show is set to echo to cause the compilation command to be echoed instead
# of executed.
Show=
#
# End of initialization of variables
#---------------------------------------------------------------------
# Environment Variables.
# The environment variables MPICH_CC may be used to override the
# default choices.
# In addition, if there is a file $sysconfdir/mpicc-$CCname.conf,
# where CCname is the name of the compiler with all spaces replaced by hyphens
# (e.g., "cc -64" becomes "cc--64", that file is sources, allowing other
# changes to the compilation environment. See the variables used by the
# script (defined above)
if [ -n "$MPICH_CC" ] ; then
CC="$MPICH_CC"
CCname=`echo $CC | sed 's/ /-/g'`
if [ -s $sysconfdir/mpicc-$CCname.conf ] ; then
. $sysconfdir/mpicc-$CCname.conf
fi
fi
# Allow a profiling option to be selected through an environment variable
if [ -n "$MPICC_PROFILE" ] ; then
profConf=$MPICC_PROFILE
fi
#
# ------------------------------------------------------------------------
# Argument processing.
# This is somewhat awkward because of the handling of arguments within
# the shell. We want to handle arguments that include spaces without
# loosing the spacing (an alternative would be to use a more powerful
# scripting language that would allow us to retain the array of values,
# which the basic (rather than enhanced) Bourne shell does not.
#
# Look through the arguments for arguments that indicate compile only.
# If these are *not* found, add the library options
linking=yes
allargs=("$@")
argno=0
for arg in "$@" ; do
# Set addarg to no if this arg should be ignored by the C compiler
addarg=yes
case "$arg" in
# ----------------------------------------------------------------
# Compiler options that affect whether we are linking or no
-c|-S|-E|-M|-MM)
# The compiler links by default
linking=no
;;
# ----------------------------------------------------------------
# Options that control how we use mpicc (e.g., -show,
# -cc=* -config=*
-echo)
addarg=no
set -x
;;
-cc=*)
CC=`echo A$arg | sed -e 's/A-cc=//g'`
addarg=no
;;
-show)
addarg=no
Show=echo
;;
-config=*)
addarg=no
CCname=`echo A$arg | sed -e 's/A-config=//g'`
if [ -s "$sysconfdir/mpicc-$CCname.conf" ] ; then
. "$sysconfdir/mpicc-$CCname.conf"
else
echo "Configuration file mpicc-$CCname.conf not found"
fi
;;
-compile-info|-compile_info)
# -compile_info included for backward compatibility
Show=echo
addarg=no
;;
-link-info|-link_info)
# -link_info included for backward compatibility
Show=echo
addarg=no
;;
-v)
# Pass this argument to the compiler as well.
echo "mpicc for $MPIVERSION"
# if there is only 1 argument, it must be -v.
if [ "$#" -eq "1" ] ; then
linking=no
fi
;;
-profile=*)
# Pass the name of a profiling configuration. As
# a special case, lib<name>.so or lib<name>.la may be used
# if the library is in $libdir
profConf=`echo A$arg | sed -e 's/A-profile=//g'`
addarg=no
# Loading the profConf file is handled below
;;
-mpe=*)
# Pass the name of a profiling configuration; this is a special
# case for the MPE libs. See -profile
profConf=`echo A$arg | sed -e 's/A-mpe=//g'`
profConf="mpe_$profConf"
addarg=no
# Loading the profConf file is handled below
;;
-help)
NC=`echo "$CC" | sed 's%\/% %g' | awk '{print $NF}' -`
if [ -f "$sysconfdir/mpixxx_opts.conf" ] ; then
. $sysconfdir/mpixxx_opts.conf
echo " -cc=xxx - Reset the native compiler to xxx."
else
if [ -f "./mpixxx_opts.conf" ] ; then
. ./mpixxx_opts.conf
echo " -cc=xxx - Reset the native compiler to xxx."
fi
fi
exit 0
;;
*)
;;
esac
if [ $addarg = no ] ; then
unset allargs[$argno]
fi
# Some versions of bash do not accept ((argno++))
argno=`expr $argno + 1`
done
if [ $# -eq 0 ] ; then
echo "Error: Command line argument is needed!"
"$0" -help
exit 1
fi
# -----------------------------------------------------------------------
# Derived variables. These are assembled from variables set from the
# default, environment, configuration file (if any) and command-line
# options (if any)
if [ "$NEEDSPLIB" = yes ] ; then
mpilibs="-l$PMPILIBNAME -l$MPILIBNAME -lopa"
else
mpilibs="-l$MPILIBNAME -lopa"
fi
#
# Init with the ones needed by MPI
CFLAGS="$WRAPPER_CFLAGS"
LDFLAGS="$WRAPPER_LDFLAGS"
#
# Handle the case of a profile switch
if [ -n "$profConf" ] ; then
profConffile=
if [ -s "$libdir/lib$profConf.a" -o -s "$libdir/lib$profConf.so" ] ; then
mpilibs="-l$profConf $mpilibs"
elif [ -s "$sysconfdir/$profConf.conf" ] ; then
profConffile="$sysconfdir/$profConf.conf"
elif [ -s "$profConf.conf" ] ; then
profConffile="$profConf.conf"
else
echo "Profiling configuration file $profConf.conf not found in $sysconfdir"
fi
if [ -n "$profConffile" -a -s "$profConffile" ] ; then
. $profConffile
if [ -n "$PROFILE_INCPATHS" ] ; then
CFLAGS="$PROFILE_INCPATHS $CFLAGS"
fi
if [ -n "$PROFILE_PRELIB" ] ; then
mpilibs="$PROFILE_PRELIB $mpilibs"
fi
if [ -n "$PROFILE_POSTLIB" ] ; then
mpilibs="$mpilibs $PROFILE_POSTLIB"
fi
fi
fi
# -----------------------------------------------------------------------
#
# A temporary statement to invoke the compiler
# Place the -L before any args incase there are any mpi libraries in there.
# Eventually, we'll want to move this after any non-MPI implementation
# libraries.
# We use a single invocation of the compiler. This will be adequate until
# we run into a system that uses a separate linking command. With any luck,
# such archaic systems are no longer with us. This also lets us
# accept any argument; we don't need to know if we've seen a source
# file or an object file. Instead, we just check for an option that
# suppressing linking, such as -c or -M.
if [ "$linking" = yes ] ; then
if [ -n "$C_LINKPATH_SHL" ] ; then
# prepend the path for the shared libraries to the library list
mpilibs="$C_LINKPATH_SHL$libdir $mpilibs"
fi
# Trial run to generate a symbol listing. We only enable Darshan if:
# a) MPI is used
# b) PMPI is _not_ used
#
# We want Darshan to get out of the way if the user is doing a runtime
# test in configure (in which case MPI objects break the executable) or
# if the user is using another PMPI based tool
stock_link_cmd="$CC ${allargs[@]} -I$includedir $CFLAGS $LDFLAGS -L$libdir -L$opalibdir $mpilibs $MPI_OTHERLIBS"
# if allargs includes any libraries, then we need to get
# -ldarshan-mpi-io in there first
newallargs=`echo ${allargs[@]} | sed 's/ -l/ -ldarshan-mpi-io -l/'`
darshan_link_cmd="$CC $newallargs -L${DARSHAN_LIB_PATH} ${CP_ZLIB_LINK_FLAGS} -ldarshan-mpi-io -lz -I$includedir $CFLAGS ${CP_WRAPPERS} $LDFLAGS -L$libdir -L$opalibdir $mpilibs $MPI_OTHERLIBS -L${DARSHAN_LIB_PATH} -ldarshan-posix"
used_darshan=0
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
# is PMPI being used for any init, finalize, or MPI-IO calls?
grep -E \(PMPI_File_\)\|\(PMPI_Init\)\|\(PMPI_Finalize\) $tmpfile |grep -v mpich.cnk.a |grep \(PMPI >& /dev/null
rc_pmpi=$?
rm $tmpfile >& /dev/null
# disable darshan if the executable is not an MPI program (this feature
# mainly allows runtime configure tests to work
if [ $rc_mpi -eq 0 ] ; then
# disable darshan if something else is already using PMPI; we don't
# want to cause any symbol conflicts
if [ $rc_pmpi -ne 0 ] ; then
$Show $darshan_link_cmd
used_darshan=1
fi
fi
# otherwise use the normal command line
if [ "$used_darshan" = "0" ] ; then
$Show $stock_link_cmd
fi
rc=$?
else
$Show $CC "${allargs[@]}" -I$includedir $CFLAGS
rc=$?
fi
exit $rc
#! /bin/bash
#
# (C) 2006 by Argonne National Laboratory.
# See COPYRIGHT in top-level directory.
#
# mpicxx
# Simple script to compile and/or link MPI programs.
# This script knows the default flags and libraries, and can handle
# alternative C++ compilers and the associated flags and libraries.
# The important terms are:
# includedir, libdir - Directories containing an *installed* mpich2
# prefix, execprefix - Often used to define includedir and libdir
# CXX - C compiler
# WRAPPER_CXXFLAGS - Any special flags needed to compile
# WRAPPER_LDFLAGS - Any special flags needed to link
# MPILIBNAME - Name of the MPI library
# MPICXXLIBNAME - Name of the C++ binding part of the MPI library
# MPI_OTHERLIBS - Other libraries needed in order to link
#
# We assume that (a) the C++ compiler can both compile and link programs
#
# Handling of command-line options:
# This is a little tricky because some options may contain blanks.
#
# Special issues with shared libraries - todo
#
# --------------------------------------------------------------------------
# Set the default values of all variables.
#
# Directory locations: Fixed for any MPI implementation
prefix=/bgsys/drivers/ppcfloor/comm/fast
exec_prefix=${prefix}
sysconfdir=${prefix}/etc
includedir=${prefix}/include
libdir=${exec_prefix}/lib
opalibdir=${exec_prefix}/lib
CP_WRAPPERS=@CP_WRAPPERS@
DARSHAN_LIB_PATH=@darshan_lib_path@
CP_ZLIB_LINK_FLAGS=@__CP_ZLIB_LINK_FLAGS@
#
# Default settings for compiler, flags, and libraries
CXX=`which bgxlC_r`
CXX_LINKPATH_SHL=""
WRAPPER_CXXFLAGS="-I/bgsys/drivers/ppcfloor/comm/sys/include"
WRAPPER_LDFLAGS=" "
MPILIBNAME="mpich.cnk"
PMPILIBNAME="pmpich.cnk"
MPICXXLIBNAME="cxxmpich.cnk"
MPI_OTHERLIBS=" -L/bgsys/drivers/ppcfloor/comm/sys/lib -Wl,-rpath,/bgsys/drivers/ppcfloor/comm/sys/lib -ldcmf-fast.cnk -ldcmfcoll-fast.cnk -lpthread -L/bgsys/drivers/ppcfloor/runtime/SPI -Wl,-rpath,/bgsys/drivers/ppcfloor/runtime/SPI -lSPI-fast.cna -lrt "
NEEDSPLIB="yes"
# MPIVERSION is the version of the MPICH2 library that mpicxx is intended for
MPIVERSION="1.1"
#
# Internal variables
# Show is set to echo to cause the compilation command to be echoed instead
# of executed.
Show=
#
# End of initialization of variables
#---------------------------------------------------------------------
# Environment Variables.
# The environment variables MPICH_CXX may be used to override the
# default choices.
# In addition, if there is a file $sysconfdir/mpicxx-$CXXname.conf,
# where CXXname is the name of the compiler with all spaces replaced by hyphens
# (e.g., "CC -64" becomes "CC--64", that file is sources, allowing other
# changes to the compilation environment. See the variables used by the
# script (defined above)
if [ -n "$MPICH_CXX" ] ; then
CXX="$MPICH_CXX"
CXXname=`echo $CXX | sed 's/ /-/g'`
if [ -s $sysconfdir/mpicxx-$CXXname.conf ] ; then
. $sysconfdir/mpicxx-$CXXname.conf
fi
fi
# Allow a profiling option to be selected through an environment variable
if [ -n "$MPICXX_PROFILE" ] ; then
profConf=$MPICXX_PROFILE
fi
#
# ------------------------------------------------------------------------
# Argument processing.
# This is somewhat awkward because of the handling of arguments within
# the shell. We want to handle arguments that include spaces without
# loosing the spacing (an alternative would be to use a more powerful
# scripting language that would allow us to retain the array of values,
# which the basic (rather than enhanced) Bourne shell does not.
#
# Look through the arguments for arguments that indicate compile only.
# If these are *not* found, add the library options
linking=yes
allargs=("$@")
argno=0
for arg in "$@" ; do
# Set addarg to no if this arg should be ignored by the C compiler
addarg=yes
case "$arg" in
# ----------------------------------------------------------------
# Compiler options that affect whether we are linking or no
-c|-S|-E|-M|-MM)
# The compiler links by default
linking=no
;;
# ----------------------------------------------------------------
# Options that control how we use mpicxx (e.g., -show,
# -cxx=* -config=*
-echo)
addarg=no
set -x
;;
-cxx=*)
CXX=`echo A$arg | sed -e 's/A-cxx=//g'`
addarg=no
;;
# Backwards compatibility for MPICH1 - scripts
-CC=*)
CXX=`echo A$arg | sed -e 's/A-CC=//g'`
addarg=no
;;
-show)
addarg=no
Show=echo
;;
-config=*)
addarg=no
CXXname=`echo A$arg | sed -e 's/A-config=//g'`
if [ -s "$sysconfdir/mpicxx-$CXXname.conf" ] ; then
. "$sysconfdir/mpicxx-$CXXname.conf"
else
echo "Configuration file mpicxx-$CXXname.conf not found"
fi
;;
-compile-info|-compile_info)
# -compile_info included for backward compatibility
Show=echo
addarg=no
;;
-link-info|-link_info)
# -link_info included for backward compatibility
Show=echo
addarg=no
;;
-v)
# Pass this argument to the compiler as well.
echo "mpicxx for $MPIVERSION"
# if there is only 1 argument, it must be -v.
if [ "$#" -eq "1" ] ; then
linking=no
fi
;;