#!/bin/sh
prefix=/mingw32
exec_prefix=/mingw32/bin
libdir=/mingw32/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/mingw32/lib -lpdalcpp
    ;;

  --plugin-dir)
    echo /mingw32/bin
    ;;

  --prefix)
    echo ${prefix}
     ;;

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

  --defines)
    echo 
    ;;

  --includes)
    echo -I/mingw32/include -ID:/a/msys64/mingw32/include -ID:/a/msys64/mingw32/include/libxml2
    ;;

  --cflags)
    echo -march=pentium4 -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong
    ;;

  --cxxflags)
    echo -march=pentium4 -mtune=generic -O2 -pipe
    ;;

  --version)
    echo 2.5.6
    ;;

  *)
    usage 1 1>&2
    ;;

esac
