Bläddra i källkod

Fix IFS handling for M4PATH in the bootstrap script.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/research@4788 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam 13 år sedan
förälder
incheckning
2d40e39fd4
1 ändrade filer med 12 tillägg och 1 borttagningar
  1. +12
    -1
      autotools/bootstrap

+ 12
- 1
autotools/bootstrap Visa fil

@@ -2,7 +2,7 @@

# bootstrap: generic bootstrap/autogen.sh script for autotools projects
#
# Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
# Copyright (c) 2002-2011 Sam Hocevar <sam@hocevar.net>
#
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
@@ -112,6 +112,17 @@ if test -n "$auxdir"; then
aclocalflags="${aclocalflags} -I $auxdir -I ."
fi

# Honour M4PATH because sometimes M4 doesn't
save_IFS=$IFS
IFS=:
tmp="$M4PATH"
for x in $tmp; do
if test -n "$x"; then
aclocalflags="${aclocalflags} -I $x"
fi
done
IFS=$save_IFS

# Explain what we are doing from now
set -x



Laddar…
Avbryt
Spara