#!/bin/sh # # This script is an automatic configuration file for configuring the makefiles # in this directory for a particular architecture # # Usage: configure # # where is one of the configuration files in directory arch_makes/. # ARCHITECTURE=$1 if [ ! -f arch_makes/make.defn.${ARCHITECTURE} ] ; then echo echo "Possible architecture types" echo "---------------------------" (cd arch_makes; echo * | xargs -n1) echo exit else rm -f make.defn ln -s arch_makes/make.defn.$ARCHITECTURE make.defn fi ## if configure is invoked without mpich and hdf locations, use defaults /bin/rm -f GraceSettings.txt touch GraceSettings.txt if test -z $2 ; then echo "USE_DEFAULTS=yes" > GraceSettings.txt else echo "USE_DEFAULTS=no" > GraceSettings.txt echo "MPI_HOME = " $2 >>GraceSettings.txt echo "INSTALL_DIR_HDF = " $3 >>GraceSettings.txt fi echo "GraceSettingsDefined = yes" >> GraceSettings.txt