#!/bin/sh
dir="/usr"
# $Id: libchipcard-config.in.in,v 1.8 2003/04/19 18:38:23 aquamaniac Exp $
# Author of this file: Martin Preuss<martin@libchipcard.de>

result=""

for d in $*; do
    case $d in
	--includes)
	    result="$result  -I${top_srcdir}/src/libchipcard/engine  -I/usr/include/PCSC -I/usr/include/chipcard"
	    ;;
	--libraries)
	    result="$result -L$dir/lib -lchipcard"
	    ;;
	--vmajor)
	    result="$result 0"
	    ;;
	--vminor)
	    result="$result 9"
	    ;;
	--vpatchlevel)
	    result="$result 1"
	    ;;
	--vbuild)
	    result="$result 0"
	    ;;
	--vtag)
	    result="$result STABLE"
	    ;;
        --vstring)
	    result="$result 0.9.1"
            ;;
	*)
	    echo "Usage:"
	    echo "$0 --includes gives you the include flags"
	    echo "$0 --libraries gives you the library flags"
	    echo "$0 --vmajor gives the major version of LibChipCard"
	    echo "$0 --vminor gives the minor version of LibChipCard"
	    echo "$0 --vpatchlevel gives the patchlevel of LibChipCard"
	    echo "$0 --vbuild gives the build number of LibChipCard"
	    echo "$0 --vtag gives the tag of LibChipCard (cvs, beta or stable)"
	    echo "$0 --vstring returns a version string"
	    exit 1
	    ;;
    esac
done
echo $result
