]> granicus.if.org Git - postgis/commitdiff
Added GEOS_FIRST_INTERFACE, GEOS_LAST_INTERFACE, GEOS_JTS_PORT detection
authorSandro Santilli <strk@keybit.net>
Sat, 17 Jul 2004 09:52:05 +0000 (09:52 +0000)
committerSandro Santilli <strk@keybit.net>
Sat, 17 Jul 2004 09:52:05 +0000 (09:52 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@643 b70326c6-7e19-0410-871a-916f4a2858ee

geos_version.sh

index 6fa95383dbe631d41a41122477a18c3945832d68..c75c675febd2c3721996b6bbfbb81c0aaa25bfa0 100755 (executable)
@@ -14,14 +14,29 @@ fi
 if [ "$version" = "@GEOS_VERSION@" ]; then
        geos_version=100
        version="1.0.0"
+       jtsport="1.3"
+       first=1
+       last=1
 else
        major=`echo $version | sed 's/\..*//'`
        minor=`echo $version | sed 's/[^\.]*\.\([^.]*\)\.*/\1/'`
+       first=$major
+       last=$(($major+$minor))
        geos_version=`printf %d%2.2d $major $minor`
+       jtsport=`${geos_dir}/bin/geos-config --jtsport`
 fi
 cat <<EOF
-#define POSTGIS_GEOS_VERSION $geos_version
+#ifndef GEOS_FIRST_INTERFACE
+#define GEOS_FIRST_INTERFACE $first
+#endif
+#ifndef GEOS_LAST_INTERFACE
+#define GEOS_LAST_INTERFACE $last
+#endif
 #ifndef GEOS_VERSION
 #define GEOS_VERSION "$version"
 #endif
+#ifndef GEOS_JTS_PORT
+#define GEOS_JTS_PORT $jtsport
+#endif
+#define POSTGIS_GEOS_VERSION $geos_version
 EOF