#!/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/local/include/kannel -O2 -pipe  -fcommon -fpermissive -DLIBICONV_PLUG -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing  -pthread -D_LARGE_FILES= -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/include/openssl
FOO

test "$libs" = yes && cat << FOO
-L/usr/local/lib/kannel -lgw -lwap -lgwlib -lpcreposix -lrt -lm  -lpthread -L/usr/local/lib -lxml2 -lpthread -L/lib -lz -llzma -lm -L/usr/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -lpcreposix -lpcre -L/usr/lib -L/usr/local/lib -lsqlite3 
FOO

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

