📄 mpeinstallcheck.in
字号:
#! /bin/sh## This script has to be built by configure.## This is a script to install MPE Profiling Environment. It can be invoked with## make installcheck ( if you used -prefix at configure time )## or,## make installcheck PREFIX=Path_to_the_installation_of_MPE## in the top-level MPE __build__ directory which could be the same# or different from the source directory#MAKE="@MAKE@"# Location of sources# top_srcdir=@top_srcdir@top_srcdir=@top_srcdir_abs@ # in absolute path# Build locationsincludebuild_dir=@includebuild_dir@libbuild_dir=@libbuild_dir@binbuild_dir=@binbuild_dir@sbinbuild_dir=@sbinbuild_dir@# Installation directories: Default paths (set at configure time)prefix=@prefix@exec_prefix=@exec_prefix@includedir=@includedir@libdir=@libdir@bindir=@bindir@sbindir=@sbindir@datadir=@datadir@sysconfdir=@sysconfdir@# Assume PROF_LIBNAME=MPE_LIBNAME.PROF_LIBNAME=@MPE_LIBNAME@CPRP="@CPRP@"RM="@RM@"LN_S="@LN_S@"MPI_IMPL=@MPI_IMPL@MPE_BUILD_FORTRAN2C=@MPE_BUILD_FORTRAN2C@Show=evalprefix_override=0for arg in "$@" ; do case "$arg" in -prefix=*) prefix=`echo $arg | sed -e 's/-prefix=//g'` if [ "$prefix" != "@prefix@" ] ; then prefix_override=1 fi ;; -t) Show=echo ;; -echo) set -x ;; -help|-u|-usage|-h)cat <<EOFCheck MPE installed at $prefix.-prefix=path - Destination directory.-t - Try only; do no actual checking.EOF exit 1 ;; *) # Silently skip empty arguments (these can occur on # some systems and within some scripts; they are # harmless) if [ -n "$arg" ] ; then echo "mpeinstallcheck: Unrecognized argument $arg ." exit 1 fi ;; esacdoneif [ "$SHELL_ECHO" = "on" ] ; then set -xfi# Check if installation location is setif [ ! -n "$prefix" ] ; then echo "Set an installation location with -prefix=<location> ." exit 1fi# If the prefix was set, we want to override these choicesif [ "$prefix_override" = 1 ] ; then includedir=$prefix/include libdir=$prefix/lib bindir=$prefix/bin sbindir=$prefix/sbin datadir=$prefix/sharefiif [ ! -s $libdir/lib${PROF_LIBNAME}.a ] ; then echo "Could not find $libdir/lib${PROF_LIBNAME}.a !" echo "You must install MPE before checking the installation!" echo "Try to do make install or mpeinstall first." exit 1fi# Set up Examples directory for the MPE Logging programslogging_dirname="src/wrappers/test"graphics_dirname="src/graphics/contrib/test"collchk_dirname="src/collchk/test"for pkg in logging graphics collchk ; do dirname=${pkg}_dirname eval dirvalue=\$"$dirname" examplesdir=$datadir/examples_${pkg} if [ -f $examplesdir/Makefile ] ; then echo "Running installation test for C $pkg program..." $Show "( cd $examplesdir && $MAKE linktest_C )" if test "$MPE_BUILD_FORTRAN2C" = "yes" ; then echo "Running installation test for Fortran $pkg program..." $Show "( cd $examplesdir && $MAKE linktest_F77 )" fi fidone
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -