#!/bin/sh

if (test "flex -i" = "lex") ; then
  echo " "
  echo "Warning: lex does not support -i.  I/O file generator requires all"
  echo "lower-case input."
  echo " "
fi

if (test "false" = "false") ; then
  echo " " 
  echo "Shared libraries are not being used on your system.  Please email" 
  echo "the output of 'uname -a' and 'man ld' to cfog@mech.ubc.ca." 
  echo "This information will help us add shared library support for your" 
  echo "machine." 
  echo " " 
else
  echo " " 
  echo "Shared libraries are being used on your system.  Please add the" 
  echo "following to your .cshrc file (csh-type shells):" 
  echo " " 
  echo "if (\$?LD_LIBRARY_PATH) then" 
  echo "  setenv LD_LIBRARY_PATH \${LD_LIBRARY_PATH}:`pwd`/lib/libO/mingw32" 
  echo "else" 
  echo "  setenv LD_LIBRARY_PATH `pwd`/lib/libO/mingw32" 
  echo "endif" 
  echo " " 
  echo "or the following to your .profile file (sh-type shells):" 
  echo " " 
  echo "if (test \"XXX\${LD_LIBRARY_PATH}\" = \"XXX\"); then" 
  echo "  LD_LIBRARY_PATH=`pwd`/lib/libO/mingw32 ;" 
  echo "else" 
  echo "  LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:`pwd`/lib/libO/mingw32 ;" 
  echo "fi" 
  echo "export LD_LIBRARY_PATH" 
  echo " " 
fi

if (test "MINGW32" = "IRIX6"); then
  echo "You may also need to set the environment variable _RLD_ARGS"
  echo "to -ignore_unresolved to prevent irrelevant run-time errors."
fi
