#!/bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@

INCLUDES="-I${prefix}/include "
LIBS="-L$libdir -llaszip"



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

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

case $1 in
  --libs)
    echo $LIBS
    ;;

  --prefix)
    echo ${prefix}
     ;;

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

  --defines)
    echo @LASZIP_CONFIG_DEFINITIONS@ @DEFS@
    ;;

  --includes)
    echo ${INCLUDES}
    ;;

  --cflags)
    echo @CMAKE_C_FLAGS@ @CFLAGS@
    ;;

  --cxxflags)
    echo @CMAKE_CXX_FLAGS@ @CXXFLAGS@
    ;;

  --version)
    echo @VERSION@
    ;;

  *)
    usage 1 1>&2
    ;;

esac
