#971: @GEOS_VERSION@ not being replaced
----------------------+---------------------------
 Reporter:  robe      |       Owner:  geos-devel@…
     Type:  defect    |      Status:  new
 Priority:  major     |   Milestone:  3.8.0
Component:  Default   |     Version:  master
 Severity:  Critical  |  Resolution:
 Keywords:            |
----------------------+---------------------------

Comment (by robe):

 Correct strk, but it's because of GEOS that debbie's postgis builds are
 failing because PostGIS is expecting GEOS 3.6 or greater, and debbie is
 running against GEOS trunk (head) and the geos-config that got installed
 is all screwed up.  No variables got replaced.

 this is the output of geos-config that got installed:


 {{{
 #!/bin/sh

 prefix=@CMAKE_INSTALL_PREFIX@
 exec_prefix=@CMAKE_INSTALL_PREFIX@/bin
 libdir=@CMAKE_INSTALL_PREFIX@/lib

 usage()
 {
     cat <<EOF
 Usage: geos-config [OPTIONS]
 Options:
      [--prefix]
      [--version]
      [--libs]
      [--clibs]
      [--cclibs]
      [--static-clibs]
      [--static-cclibs]
      [--cflags]
      [--ldflags]
      [--includes]
      [--jtsport]
 EOF
     exit $1
 }

 if test $# -eq 0; then
   usage 1 1>&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 @CMAKE_INSTALL_PREFIX@
       ;;
     --version)
       echo @GEOS_VERSION@
       ;;
     --cflags)
       echo -I@CMAKE_INSTALL_PREFIX@/include
       ;;
     --libs)
       echo -L@CMAKE_INSTALL_PREFIX@/lib -lgeos-@GEOS_VERSION_MAJOR@
       ;;
     --clibs)
       echo -L@CMAKE_INSTALL_PREFIX@/lib -lgeos_c
       ;;
     --cclibs)
       echo -L@CMAKE_INSTALL_PREFIX@/lib -lgeos
       ;;
     --static-clibs)
       echo -L@CMAKE_INSTALL_PREFIX@/lib -lgeos_c -lgeos -lm
       ;;
     --static-cclibs)
       echo -L@CMAKE_INSTALL_PREFIX@/lib -lgeos -lm
       ;;
     --ldflags)
       echo -L@CMAKE_INSTALL_PREFIX@/lib -lgeos
       ;;
     --includes)
       echo @CMAKE_INSTALL_PREFIX@/include
       ;;
     --jtsport)
     echo 1.13.0
       ;;
     *)
       usage 1 1>&2
       ;;
   esac
   shift
 done

 }}}

-- 
Ticket URL: <https://trac.osgeo.org/geos/ticket/971#comment:2>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite 
(JTS).
_______________________________________________
geos-devel mailing list
geos-devel@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/geos-devel

Reply via email to