Opened 15 years ago

Last modified 9 years ago

#152 closed defect (invalid)

GDAL Makefile problems - disabling GRASS support fails

Reported by: Markus Neteler Owned by: warmerdam
Priority: high Milestone:
Component: default Version: unspecified
Severity: normal Keywords: grass
Cc:

Description (last modified by Mateusz Łoskot)

Hi Frank,

due to another bug (see other report) I wanted to disable GRASS support
for GDAL. Unfortunately that's not possible, it always compiles with
GRASS support.

My tries to find the reason:

make clean does not delete: 
./GDALmake.opt
./config.status

-> due to that it is quasi impossible to eliminate GRASS support from
GDAL, it will be always remembered and not disabled.
Unfortunalty I still do not get grass support disabled, will continue to
search for the reason.

After a make clean I can find "grass" mentioned in these files:
find . -type f -name * -exec grep -l grass {} \;
./ChangeLog
./configure
./configure.in
./data/s57expectedinput.csv  
./frmts/CVS/Entries
./frmts/gdalallregister.cpp
./frmts/grass/CVS/Repository
./frmts/grass/CVS/Entries
./frmts/grass/GNUmakefile
./frmts/grass/grassdataset.cpp
./frmts/grass/frmt_grass.html
./html/CVS/Entries
./html/frmt_grass.html
./html/formats_list.html
./html/gdalallregister.cpp.html
./html/gdalallregister_cpp-source.html
./ogr/CVS/Entries
./ogr/GNUmakefile <- problem
./ogr/Makefile    <- problem
./ogr/ograssemblepolygon.cpp
./config.status   <- problem
./GDALmake.opt    <- problem

rm ./ogr/GNUmakefile ./ogr/Makefile ./config.status ./GDALmake.opt
grep grass ./GDALmake.opt
LIBS    =       -lpng -lgrass5 -lz -lm -ldl  -L/usr/local/lib -lm
                gif jpeg png grass 

 ->  still there... mhhh. I don't understand where it picks it up
again.

AHH: just got the idea:
configure --without-python --without-grass

So GRASS is required by default?

Best regards
 Markus

Change History (2)

comment:1 Changed 15 years ago by warmerdam

Markus, 

GRASS is automatically configured if libgrass is found.  The --without-grass
seems to work fine,so I don't see any need for a change, is that right? 

Note that "make distclean" will scrub extra stuff like config.status, and 
GDALmake.opt.


comment:2 Changed 9 years ago by Mateusz Łoskot

Description: modified (diff)
Keywords: grass added
Note: See TracTickets for help on using tickets.