#!/bin/sh
#
# CAS Configurator
#
PREFIX=/usr
CXXFLAGS="  -Wall -pedantic -Wno-long-long -Winline -finline-functions -Wno-inline   --param large-function-growth=7000 --param inline-unit-growth=200 --param max-inline-insns-single=15000  -O3 -funroll-loops  -D_LARGEFILE64_SOURCE"
MAKE=/usr/bin/gmake
CC=/usr/bin/gcc
CXX=/usr/bin/c++
INCLUDE="/usr/include/cas"
LIBS="/usr/lib"
VERSION=""
SHAREDIR="/usr/share/cas"

if test "x$1" = "x"; then
  echo "Usage:"
  echo "  cas-config [--flags] [--cc] [--cxx] [--make] [--libs] [--includes] [--version]"
  echo "                  ... [see below for complete flag list]"
  echo ""
  echo "    --version         displays the CAS version number"
  echo "    --flags           displays C++ compiler flags"
  echo "    --cc              displays executable name of C compiler"
  echo "    --cxx             displays executable name of C++ compiler"
  echo "    --make            displays executable name of make"
  echo "    --libs            displays list of libraries"
  echo "    --includes        displays list of include dirs"
  echo "    --sharedir        displays directory with shared files, examples, etc"
  echo ""
else
   while test "x$done" = "x" -a "x$1" != "x"; do
       case $1 in
           --version*)
           echo ${VERSION}
           ;;

           --flags*)
           echo ${CXXFLAGS}
           ;;

           --cc*)
           echo ${CC}
           ;;

           --cxx*)
           echo ${CXX}
           ;;

           --make*)
           echo ${MAKE}
           ;;

           --libs*)
           echo ${LIBS}
           ;;

           --includes*)
           echo ${INCLUDE}
           ;;

           --sharedir*)
           echo ${SHAREDIR}
           ;;
       esac
       shift
   done
fi
