[GRASS-dev] [GRASS GIS] #682: Allow compilation in directory with
spaces
GRASS GIS
trac at osgeo.org
Mon Jul 13 10:16:26 EDT 2009
#682: Allow compilation in directory with spaces
-------------------------+--------------------------------------------------
Reporter: marisn | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: minor | Milestone: 6.5.0
Component: Compiling | Version: svn-develbranch6
Keywords: | Platform: Linux
Cpu: Unspecified |
-------------------------+--------------------------------------------------
As of GRASS 6.5 it's not possible to configure and make GRASS if it's
source is located in directory containing spaces in it's path.
Steps to reproduce:
{{{
make distclean
mv /path/to/my/grass/source "/path/with/spaces/to/grass source"
./configure && make
}}}
Configure part is easy but other Make system parts are more tricky.
{{{
--- configure (revision 38380)
+++ configure (working copy)
@@ -716,18 +716,18 @@
ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
- if test -f $ac_dir/install-sh; then
- ac_aux_dir=$ac_dir
+ if test -f "$ac_dir/install-sh"; then
+ ac_aux_dir="$ac_dir"
ac_install_sh="$ac_aux_dir/install-sh -c"
break
- elif test -f $ac_dir/install.sh; then
- ac_aux_dir=$ac_dir
+ elif test -f "$ac_dir/install.sh"; then
+ ac_aux_dir="$ac_dir"
ac_install_sh="$ac_aux_dir/install.sh -c"
break
fi
done
if test -z "$ac_aux_dir"; then
- { echo "configure: error: can not find install-sh or install.sh in
$srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
+ { echo "configure: error: can not find install-sh or install.sh in
\"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" 1>&2; exit 1; }
fi
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
@@ -1235,19 +1235,19 @@
# Use absolute path for aux directory so that install-sh works
ac_aux_dir=
-for ac_dir in $SRCDIR $srcdir/$SRCDIR; do
- if test -f $ac_dir/install-sh; then
+for ac_dir in "$SRCDIR" "$srcdir/$SRCDIR"; do
+ if test -f "$ac_dir/install-sh"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install-sh -c"
break
- elif test -f $ac_dir/install.sh; then
+ elif test -f "$ac_dir/install.sh"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install.sh -c"
break
fi
done
if test -z "$ac_aux_dir"; then
- { echo "configure: error: can not find install-sh or install.sh in
$SRCDIR $srcdir/$SRCDIR" 1>&2; exit 1; }
+ { echo "configure: error: can not find install-sh or install.sh in
\"$SRCDIR\" \"$srcdir/$SRCDIR\"" 1>&2; exit 1; }
fi
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/682>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list