Add missing LIBS
[geos.git] / tools / geos-config.in
blob9b45b5f8607487411f23311e84d6a1b28e573b17
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 [--clibs]
15 [--cclibs]
16 [--static-clibs]
17 [--static-cclibs]
18 [--cflags]
19 [--ldflags]
20 [--includes]
21 [--jtsport]
22 EOF
23 exit $1
25 if test $# -eq 0; then
26 usage 1 1>&2
28 while test $# -gt 0; do
29 case "$1" in
30 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
31 *) optarg= ;;
32 esac
33 case $1 in
34 --prefix)
35 echo ${prefix}
37 --version)
38 echo @VERSION@
40 --cflags)
41 echo -I${prefix}/include
43 --libs)
44 # TODO: make an alias for --clibs
45 # see http://trac.osgeo.org/geos/ticket/497
46 echo -L${libdir} -lgeos
48 --clibs)
49 echo -L${libdir} -lgeos_c
51 --cclibs)
52 echo -L${libdir} -lgeos
54 --static-clibs)
55 echo -L${libdir} -lgeos_c -lgeos -m
57 --static-cclibs)
58 echo -L${libdir} -lgeos -m
60 --ldflags)
61 echo -L${libdir}
63 --includes)
64 echo ${prefix}/include
66 --jtsport)
67 echo @JTS_PORT@
70 usage 1 1>&2
72 esac
73 shift
74 done