[GRASS5] d.info: flag added for approximate screen scale

Wolf Bergenheim wolf+grass at bergenheim.net
Thu Jan 5 16:58:48 EST 2006


On 05/01/06 14:06, Markus Neteler wrote:
> 
> It still needs to be make optional in the Makefile
> in case of X absences. Hints for a test are welcome.

use configure --enable switch. something like this:

AC_ARG_ENABLE(scale,
    AC_HELP_STRING([--enable-scale],
	[Enable d.info to display an approximate scale]),
 	[
		ENABLE_SCALE="${enableval}"
		AC_MSG_RESULT([yes])
 	],
 	[	
		ENABLE_SCALE="no"
 	])
if test x$ENABLE_SCALE==xyes; then $CFLAGS +=" -DENABLE_SCALE=1"

--W

-- 

<:3 )---- Wolf Bergenheim ----( 8:>




More information about the grass-dev mailing list