#!/bin/sh
# This is a very simple conf script....


OS_TYPE=`uname -s`
OS_RELEASE=`uname -r`
echo "Your System is $OS_TYPE release $OS_RELEASE."
case "$OS_TYPE" in
   Linux)
      echo "Great! Copying Makefile."
      cp Makefile.$OS_TYPE Makefile
      make clean
      echo "Now run 'make' or 'make install'!"
      ;;
   IRIX)
      echo "Great! Copying Makefile."
      cp Makefile.$OS_TYPE Makefile
      echo "Now run 'make' or 'make install'!"
      make clean
      ;;
   AIX)
      echo "Great! Copying Makefile."
      cp Makefile.$OS_TYPE Makefile
      echo "Now run 'make' or 'make install'!"
      make clean
      ;;
   *)
      echo "Sorry, your System has not been tested."
      echo "Will use Makefile.AIX."
      echo "If it doesn't compile, check the other Makefiles."
      cp Makefile.AIX Makefile
      make clean
      echo "Now run 'make' or 'make install'!"
      exit 1;
      ;;
esac
exit 0
