#
# usage:        syscheck.sh
#
# abstract:     This Bourne Shell checks for critical system
#		requirements.
#
# note(s):      1. This routine must be called using a . (period)
#
# Copyright (c) 1997-1998 The Mathworks, Inc. All Rights Reserved.
# $Revision: 1.2 $  $Date: 1998/12/30 22:56:06 $
#----------------------------------------------------------------------------
#
# We assume that ARCH and MATLAB have already been determined.
#
# 1. If running HP-UX mipc then user must have the C++ loader installed.
#    If not then get a copy from $MATLAB/sys/os/hp700/mipc
#
    if [ "$ARCH" = "hp700" ]; then
	if [ -f $MATLAB/bin/hp700/libmipc.sl -a ! -f /usr/lib/aCC/dld.sl ]; then
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    echo '-------------------------------------------------------------------'
    echo '    Sorry! This command will not run correctly on this HP system!'
    echo '           You need to install a system file in the right location.'
    echo ' '
    echo '           As superuser (root) install the file:'
    echo ' '
    echo '                   $MATLAB/sys/os/hp700/mipc/dld.sl'
    echo ' '
    echo '           as:'
    echo ' '
    echo '                   /usr/lib/aCC/dld.sl'
    echo ' '
    echo '           and try again.'
    echo ' '
    echo '           See the README file for details in:'
    echo ' '
    echo '                   $MATLAB/sys/os/hp700/mipc/README'
    echo ' '
    echo '-------------------------------------------------------------------'
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	    exit 1
	fi
    fi
