Added check for illegal state in offsetPoint method
[geos.git] / tools / geos-config.in
blobcf2d73bd76517a2b07b97cc743026a2b3e50cc79
1 #!/bin/sh
2 prefix=@prefix@
3 exec_prefix=@exec_prefix@
4 libdir=@libdir@
6 usage()
8 cat <<EOF
9 Usage: geos-config [OPTIONS]
10 Options:
11 [--prefix]
12 [--version]
13 [--libs]
14 [--cflags]
15 [--ldflags]
16 [--includes]
17 [--jtsport]
18 EOF
19 exit $1
21 if test $# -eq 0; then
22 usage 1 1>&2
24 while test $# -gt 0; do
25 case "$1" in
26 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
27 *) optarg= ;;
28 esac
29 case $1 in
30 --prefix)
31 echo ${prefix}
33 --version)
34 echo @VERSION@
36 --cflags)
37 echo -I${prefix}/include
39 --libs)
40 echo -L${libdir} -lgeos
42 --ldflags)
43 echo -L${libdir}
45 --includes)
46 echo ${prefix}/include
48 --jtsport)
49 echo @JTS_PORT@
52 usage 1 1>&2
54 esac
55 shift
56 done