#! /bin/sh
#  author       : Achim Gaedke
#  filename     : ghmm/tools/ghmm-config
#  created      : DATE: April 2001
#  $Id: ghmm-config.in 291 2003-11-09 14:47:43Z wasinee $

copyright()
{
cat <<EOF
Copyright (C) 1998-2005 Alexander Schliep
Copyright (C) 1998-2001 ZAIK/ZPR, Universitaet zu Koeln
Copyright (C) 2002-2005 Max-Planck-Institut fuer Molekulare Genetik, Berlin

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA



EOF
exit 0
}


usage()
{
        cat <<EOF
Usage: ghmm-config [OPTIONS]
Options:
        [--prefix]
        [--exec-prefix]
        [--lib-prefix]
        [--version]
        [--libs]
        [--cflags]
        [--copyright]
        [--help]
EOF
        exit $1
}

if test $# -eq 0; then
        usage 1 1>&2
fi

prefix=/usr/local
exec_prefix=${prefix}

while test $# -gt 0; do
  case "$1" in
  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) optarg= ;;
  esac

  case $1 in
    --prefix)
      echo ${prefix}
      ;;
    --exec-prefix)
      echo ${exec_prefix}
      ;;
    --version)
      echo 0.7.0
      ;;
    --cflags)
      echo -O2 -pipe -fno-strict-aliasing -I${prefix}/include
      ;;
    --libs)
      echo -L${prefix}/lib -lghmm -lm -lpthread 
      ;;
    --lib-prefix)
      echo ${prefix}/lib
      ;;
    --copyright)
      copyright
      ;;
    --help)
      usage 0
      ;;
    *)
      usage 1 1>&2
      ;;
  esac
  shift
done

