#!/bin/sh

#
# This is intended to be the equivalent of gtk-config
# to allow other packages/software that want to locate the
# header/include files and libraries for a ggobi source
#
# --libs
# --cflags
# --version

TOP=/build/buildd/ggobi-0.99.10
VERSION="0.99-10"

GTK_CFLAGS=`/usr/bin/gtk-config --cflags`
GTK_LIBS=`/usr/bin/gtk-config --libs`

XML_LIB_DIRS="-L/usr/lib -lxml2 -lz -lpthread -lm"
XML_LIB_DIRS_PATH=""


CFLAGS="-I/build/buildd/ggobi-0.99.10/include -I/build/buildd/ggobi-0.99.10/gtkext/include ${GTK_CFLAGS} -I/usr/include/libxml2 -DUSE_XML=2 -DSUPPORT_PLUGINS=1 -DSUPPORT_INIT_FILES=1 -DHAVE_CONFIG_H "

LIBS="-L/build/buildd/ggobi-0.99.10/lib -lggobi"


usage="
Usage: ggobi-config [option]

Options:
  --cflags
  --libs
  --xml-support
  --xml
  --xml-libs
  --xml-path
  --ld-library-path   
"


if test $# -lt 1 ; then
 echo "$usage"
 exit 0
fi


case $1 in
   "--v")
          echo "${VERSION}"
          shift ;;
   "--cflags") 
          echo "${CFLAGS}"
          shift ;;
   "--libs")
        echo "${LIBS}"
        shift ;;
   "--xml-support")
        echo "yes" ;;
   "--xml-libs")
         echo "${XML_LIB_DIRS}"
         shift ;;
   "--xml-path")
         echo "${XML_LIB_DIRS_PATH}"
         shift ;;
   --ld-library-path)
         echo "/build/buildd/ggobi-0.99.10/lib"
         shift ;;
   --help|-h)
       echo "$usage"
       exit 0;;
   "*") echo "Unrecognized argument $1"
          shift ;;
esac
