Opened 22 years ago

Last modified 15 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

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: 

-> 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 {} \;
./ogr/GNUmakefile <- problem
./ogr/Makefile    <- problem
./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

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

So GRASS is required by default?

Best regards

Change History (2)

comment:1 by warmerdam, 22 years ago


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 

comment:2 by Mateusz Łoskot, 15 years ago

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