File: mpireconfig.in

package info (click to toggle)
mpich 1.1.0-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 22,116 kB
  • ctags: 27,349
  • sloc: ansic: 193,435; sh: 11,172; fortran: 6,545; makefile: 5,801; cpp: 5,020; tcl: 3,548; asm: 3,536; csh: 1,079; java: 614; perl: 183; awk: 168; sed: 70; f90: 62
file content (34 lines) | stat: -rwxr-xr-x 1,044 bytes parent folder | download | duplicates (2)
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
#! /bin/sh
CONFIG_FILES="$*"
export CONFIG_FILES
PREFIX="#PREFIX#"
#
# I once made a suggestion to do
#if [ -n "$PREFIX" ] ; then 
#    /bin/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
if [ -s #MPIR_HOME#/lib/#ARCH#/#COMM#/config.status ] ; then 
    # Export the location of mpichconf.h.in
    #CONFIG_HEADERS="#MPIR_HOME#/lib/#ARCH#/#COMM#/mpichconf.h"
    # In fact, we DO NOT want to recreate mpichconf.h  We must
    # suppress it by defineing CONFIG_HEADERS as empty
    CONFIG_HEADERS=""
    export CONFIG_HEADERS
    #MPIR_HOME#/lib/#ARCH#/#COMM#/config.status
elif [ -s #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 "A config.status file is needed to perform a reconfig of a file"
    exit 1
fi