/usr/lib/mpich/bin/mpireconfig is in libmpich1.0-dev 1.2.7-10ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | #! /bin/sh
#
# For "inplace" usage of config.status, we need srcdir to be "."
# Hmmmm
top_srcdir=/build/buildd/mpich-1.2.7
PREFIX=/usr/lib/mpich
bindir=/usr/lib/mpich/bin
binbuild_dir=/usr/lib/mpich/bin
MPIR_HOME=/usr/lib/mpich
#
CONFIG_FILES=""
destpair=""
for arg
do
if [ -s $arg.in ] ; then
CONFIG_FILES="$CONFIG_FILES $arg"
elif [ -s ${top_srcdir}/$arg.in ] ; then
CONFIG_FILES="$CONFIG_FILES ${top_srcdir}/$arg"
destpair="$destpair ${top_srcdir}/$arg::$arg"
else
echo "Cannot find file $arg"
exit 1
fi
done
export CONFIG_FILES
#
# I once made a suggestion to do
#if [ -n "$PREFIX" ] ; then
# rm -f .t1
# cat $file | sed -e "s%@INSTALL_DIR@%$PREFIX%g" > .t1
# mv .t1 $file
#fi
#
# but I've lost the example that made me suggest this.
#
# First, try the device/architecture specific config.status
# Our first try is for the mpireconfig.dat in the same directory as this script
# came from if it is specifically set.
mydir=`echo $0 | sed 's%/[^/][^/]*$%%'`
if [ -x $mydir/mpireconfig.dat ] ; then
CONFIG_HEADERS=""
export CONFIG_HEADERS
$mydir/mpireconfig.dat
elif [ -x ${bindir}/mpireconfig.dat ] ; then
CONFIG_HEADERS=""
export CONFIG_HEADERS
${bindir}/mpireconfig.dat
elif [ -x ${binbuild_dir}/mpireconfig.dat ] ; then
CONFIG_HEADERS=""
export CONFIG_HEADERS
${binbuild_dir}/mpireconfig.dat
elif [ -x ${MPIR_HOME}/config.status ] ; then
# Export the location of mpichconf.h.in
#CONFIG_HEADERS="${MPIR_HOME}/mpichconf.h"
CONFIG_HEADERS=""
export CONFIG_HEADERS
${MPIR_HOME}/config.status
else
echo "An mpireconfig.dat file is needed to perform a reconfig of a file"
exit 1
fi
if [ -n "$destpair" ] ; then
# Move created files to their final places
for pair in $destpair ; do
stmt=`echo "$pair" | sed 's/::/ /'`
eval mv $stmt
done
fi
|