瀏覽代碼

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 年之前
父節點
當前提交
2d40e39fd4
共有 1 個文件被更改,包括 12 次插入1 次删除
  1. +12
    -1
      autotools/bootstrap

+ 12
- 1
autotools/bootstrap 查看文件

@@ -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



Loading…
取消
儲存