#! /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 library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.

This library 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
Library General Public License for more details.

You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA




*******************************************************************************
Parts of the library are Copyright of Sun Microsystems, Inc.
and re distributed under following license

 * ====================================================
 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
 *
 * Developed at SunPro, a Sun Microsystems, Inc. business.
 * Permission to use, copy, modify, and distribute this
 * software is freely granted, provided that this notice
 * is preserved.
 * ====================================================

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
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.9-rc3
      ;;
    --cflags)
      echo -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -I/usr/include/aarch64-linux-gnu -I/usr/include/libxml2 -I${prefix}/include
      ;;
    --libs)
      echo -L${prefix}/lib -lghmm -lm -lm -lm -lm -lpthread  -llapacke -lxml2
      ;;
    --lib-prefix)
      echo ${prefix}/lib
      ;;
    --copyright)
      copyright
      ;;
    --help)
      usage 0
      ;;
    *)
      usage 1 1>&2
      ;;
  esac
  shift
done

