#!/bin/sh

usage()
{
	echo "usage: $0 [OPTIONS]"
cat << EOH

options:
	[--libs]
	[--cflags]
	[--version]
	[--arts-version]
	[--arts-prefix]
EOH
	exit 1;
}

prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
libdl=

flags=""

while test $# -gt 0
do
  case $1 in
    --libs)
	  flags="$flags -L$libdir $libdl -lartsc -pthread "
	  ;;
    --cflags)
	  flags="$flags -I$includedir/artsc"
	  ;;
    --version)
	  echo 0.9.5
	  ;;
    --arts-version)
	  echo 1.0.4
	  ;;
    --arts-prefix)
	  echo $prefix
	  ;;
	*)
	  echo "$0: unknown option $1"
	  echo 
	  usage
	  ;;
  esac
  shift
done

if test -n "$flags"
then
  echo $flags
fi
