#!/bin/sh

usage()
{
	echo "usage: $0 [--cflags] [--libs] [--version]"
	exit 0
}

cflags=no
libs=no
version=no

test "$1" || usage

while test "$1"; do
	case "$1" in
	--cflags )
		cflags=yes
		;;
	--libs )
		libs=yes
		;;
	--version )
		version=yes
		;;
	* )
		usage
		;;
	esac
	shift
done

test "$cflags" = yes && cat << FOO
-I/usr/pkg/include/kannel -O2 -I/usr/pkg/include/libxml2/libxml -I/usr/pkg/include/libxml2 -I/usr/include -I/usr/pkg/include/libxml2
FOO

test "$libs" = yes && cat << FOO
-L/usr/pkg/lib/kannel -lgwlib -lrt -lresolv -lm   -pthread  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lxml2 -lpthread -L/usr/lib -lz -lm
FOO

test "$version" = yes && cat << FOO
1.4.0
FOO

