[GRASS5] Re: [GRASSLIST:9066] Compiling Grass on Solaris 9

Glynn Clements glynn at gclements.plus.com
Sat Nov 19 03:17:02 EST 2005


Markus Neteler wrote:

> [compilation under Solaris]
> 
> I cc to the grass developers list for the INSTALL (install-sh)
> problem below (probably 'configure' related):

> These are subsequent error. We have to find the bug with the
> path to install-sh. I suspect 'configure' here which contains
> such a code snippet:
> 
>      ac_install_sh="$ac_aux_dir/install-sh -c"
> 
> Apparently $ac_aux_dir is set to '.' instead of '..'.
> 
> Does any list member have an idea?

The configure script sets INSTALL using the AC_PROG_INSTALL macro. If
it uses the install-sh script, the path will be based upon $srcdir,
which is set by the --srcdir switch, or the path by which the
configure script was referenced if --srcdir isn't set.

If $INSTALL is a relative path (e.g. when using "./configure"), when
substituted into output files (e.g. Platform.make), it will be
modified according to the relative location of the output file (e.g.
Platform.make is in include/Make, so ./install-sh gets changed to
../.././install-sh).

If the configure script generated each Makefile from a corresponding
Makefile.in, everything would work, as the path to install-sh would be
correct for each Makefile. However, substituting into Platform.make
and including that from each Makefile won't work.

To configure GRASS correctly on a system which doesn't have a suitable
install program (AC_PROG_INSTALL ignores versions which are known to
have problems), you need to ensure that $srcdir is an absolute path,
by using e.g.:

	`pwd`/configure ...
or:
	./configure --srcdir=`pwd` ...

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list