#! /bin/sh
dir="/usr"
# $Id: gwenhywfar-config.in.in,v 1.11 2005/02/14 13:49:53 cstim Exp $
# Author of this file: Martin Preuss<martin@libchipcard.de>

prefix=/usr
exec_prefix=/usr

libdir=/usr/lib

result=""

for d in $*; do
    case $d in
	--includes)
	    result="$result  "
	    ;;
	--libraries)
	    result="$result -L${libdir} -lgwenhywfar"
	    ;;
	--libraries++)
	    result="$result -L${libdir} -lgwenpp"
	    ;;
	--libraries-ui)
	    result="$result -L${libdir} -lgwenui"
	    ;;
	--headers)
	    result="$result /usr/include/gwenhywfar"
	    ;;
	--plugins)
	    result="$result ${libdir}/gwenhywfar/plugins/17"
	    ;;
	--sections)
	    result="$result "
	    ;;
	--vmajor)
	    result="$result 1"
	    ;;
	--vminor)
	    result="$result 19"
	    ;;
	--vpatchlevel)
	    result="$result 0"
	    ;;
	--vbuild)
	    result="$result 0"
	    ;;
	--vtag)
	    result="$result stable"
	    ;;
        --vstring)
	    result="$result 1.19.0"
            ;;
        --has-ui)
            result="$result yes"
            ;;
        --has-crypt)
            result="$result yes"
            ;;
	*)
	    echo "Usage:"
	    echo "$0 --includes gives you the include flags"
	    echo "$0 --libraries gives you the library flags"
	    echo "$0 --libraries++ gives you the library flags for GwenPP"
	    echo "$0 --libraries-ui returns the library flags for GwenUI"
	    echo "$0 --headers gives you the location of the header files"
	    echo "$0 --sections returns a string containing all sections of gwen"
	    echo "$0 --vmajor gives the major version of LibGwenhywfar"
	    echo "$0 --vminor gives the minor version of LibGwenhywfar"
	    echo "$0 --vpatchlevel gives the patchlevel of LibGwenhywfar"
	    echo "$0 --vbuild gives the build number of LibGwenhywfar"
	    echo "$0 --vtag gives the tag of LibGwenhywfar (cvs, beta or stable)"
	    echo "$0 --vstring returns a version string"
            echo "$0 --has-ui returns \"yes\" or \"no\" depending on whether"
            echo "     there is UI support compiled into Gwen"
            echo "$0 --has-crypt returns \"yes\" or \"no\" depending on whether"
            echo "     there is cryto support compiled into Gwen"
	    exit 1
	    ;;
    esac
done
echo $result
