... LD= @CC@ # around line 185 ... (change it to...) LD= g++
./configure --mandir=/sw/share/man --with-gd=/sw --with-tiff=/sw --with-pdf=/sw --with-proj=/sw --with-ogr=/sw/bin/gdal-config --with-gdal=/sw/bin/gdal-config --with-ming=/sw --without-geos --with-curl-config=/usr/bin/curl-config --with-wfs --with-wcs --with-wmsclient --with-wfsclient