#!/bin/sh
prefix=/usr/local
exec_prefix=/usr/local/bin
libdir=/usr/local/lib

usage()
{
	cat <<EOF
Usage: pdal-config [OPTIONS]
Options:
	[--cflags]
	[--cxxflags]
	[--defines]
	[--includes]
	[--libs]
	[--plugin-dir]
	[--version]
EOF
	exit $1
}

if test $# -eq 0; then
	usage 1 1>&2
fi

case $1 in
  --libs)
    echo -L/usr/local/lib -lpdalcpp
    ;;

  --plugin-dir)
    echo lib
    ;;

  --prefix)
    echo ${prefix}
     ;;

  --ldflags)
    echo -L${libdir}
    ;;

  --defines)
    echo 
    ;;

  --includes)
    echo -I/usr/local/include -I/usr/local/include/libxml2
    ;;

  --cflags)
    echo -O2 -pipe
    ;;

  --cxxflags)
    echo -O2 -pipe
    ;;

  --version)
    echo 2.10.2
    ;;

  *)
    usage 1 1>&2
    ;;

esac
