#!/bin/sh
# $Id: libsee-config.in 740 2004-11-01 13:08:08Z d $

prefix="/usr/pkg"
exec_prefix="${prefix}"
libdir="${exec_prefix}/lib"
includedir="${prefix}/include"

case "$1" in
    --version) 
	echo "see-3.0.0" ;;
    --libs)
	echo "-L$libdir -lsee -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -lm -lreadline -ltermcap " ;;
    --cppflags)
	echo "-I$includedir" ;;
    --prefix)
	echo "$prefix" ;;
    --exec-prefix)
	echo "$exec_prefix" ;;
    *)
	exec >&2
	test -z "$1" || echo "unknown flag: $1"
	echo "usage: $0 --<request>" 
	echo "  where --<request> is one of:"
	echo "     --version      - prints <package>-<version>"
	echo "     --libs         - prints linker flags"
	echo "     --cppflags     - prints preprocessor flags to use"
	echo "     --prefix       - prints installation prefix"
	echo "     --exec-prefix  - prints execution installation prefix"
	exit 1
	;;
esac
