Skip to content

Commit

Permalink
Include version in liblwgeom.h [RT-SIGTA]
Browse files Browse the repository at this point in the history
Closes ticket #1164

git-svn-id: http://svn.osgeo.org/postgis/trunk@7762 b70326c6-7e19-0410-871a-916f4a2858ee
  • Loading branch information
Sandro Santilli committed Aug 19, 2011
1 parent b131652 commit 1e09b5c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ GNUmakefile
liblwgeom/cunit/cu_tester
liblwgeom/cunit/Makefile
liblwgeom/liblwgeom.a
liblwgeom/liblwgeom.h
liblwgeom/Makefile
libtool
loader/cunit/cu_tester
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -928,8 +928,8 @@ fi dnl # }

dnl Output the relevant files
AC_OUTPUT([GNUmakefile
liblwgeom/Makefile liblwgeom/cunit/Makefile postgis/Makefile
libpgcommon/Makefile libpgcommon/cunit/Makefile
liblwgeom/Makefile liblwgeom/cunit/Makefile liblwgeom/liblwgeom.h
libpgcommon/Makefile libpgcommon/cunit/Makefile postgis/Makefile
postgis/sqldefines.h loader/Makefile loader/cunit/Makefile
topology/Makefile regress/Makefile doc/Makefile doc/Makefile.comments
doc/html/image_src/Makefile $RT_MAKEFILE_LIST])
Expand Down
4 changes: 2 additions & 2 deletions liblwgeom/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ clean:
rm -f liblwgeom.la
rm -rf .libs

# Nothing specific in distclean (will be done by clean)
distclean:
distclean: clean
rm -f liblwgeom.h

check: liblwgeom.la
make -C cunit check
Expand Down
8 changes: 8 additions & 0 deletions liblwgeom/liblwgeom.h → liblwgeom/liblwgeom.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@
* no special handling for memory management and error reporting.
*/

/**
* liblwgeom versions
*/
#define LIBLWGEOM_VERSION "@POSTGIS_LIB_VERSION@"
#define LIBLWGEOM_VERSION_MAJOR "@POSTGIS_MAJOR_VERSION@"
#define LIBLWGEOM_VERSION_MINOR "@POSTGIS_MINOR_VERSION@"
#define LIBLWGEOM_GEOS_VERSION "@POSTGIS_GEOS_VERSION@"

/**
* Return types for functions with status returns.
*/
Expand Down

0 comments on commit 1e09b5c

Please sign in to comment.