#!/bin/sh prefix=@prefix@ exec_prefix=@exec_prefix@ includedir=@includedir@ libdir=@libdir@ usage() { cat <&2 fi while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix) echo ${prefix} ;; --version) echo @VERSION@ ;; --libs) # TODO: make an alias for --clibs # see http://trac.osgeo.org/geos/ticket/497 echo -L${libdir} -lgeos ;; --clibs) echo -L${libdir} -lgeos_c ;; --cclibs) echo -L${libdir} -lgeos ;; --static-clibs) echo -L${libdir} -lgeos_c -lgeos -lstdc++ -lm ;; --static-cclibs) echo -L${libdir} -lgeos -lstdc++ -lm ;; --cflags) echo -I${includedir} ;; --ldflags) echo -L${libdir} ;; --includes) echo ${includedir} ;; --jtsport) echo @JTS_PORT@ ;; *) usage 1 1>&2 ;; esac shift done