[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[REBASED PATCH 5/9] Fix issue with GROW diversion in testsuite
From: |
Charles Wilson |
Subject: |
[REBASED PATCH 5/9] Fix issue with GROW diversion in testsuite |
Date: |
Sun, 25 Jul 2010 21:12:02 -0400 |
---
tests/sysroot.at | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
This patch is necessary to fixup 4/9 (which was Paolo's 5/8). Apparently newer
autoconf implements things in such a way that using AS_DIRNAME inside of
AT_CHECK causes a problem with m4: cannot expand diversion GROW...
diff --git a/tests/sysroot.at b/tests/sysroot.at
index 5fabc25..bf65999 100644
--- a/tests/sysroot.at
+++ b/tests/sysroot.at
@@ -46,10 +46,17 @@ done
AT_CHECK([test -n "$prefix" || exit 77])
sysroot=`pwd`/sys-root
+
+# difficult to use AS_DIRNAME inside the AT_CHECK macro, so
+# encapsulate as a shell function.
+local_dirname() {
+ AS_DIRNAME(["$[]1"])
+}
+
AT_CHECK([
(cd "$gcc_sysroot" && find ".$prefix/bin" ".$prefix/lib" \! -type d) | \
while read file; do
- dir=`AS_DIRNAME(["$sysroot/$file"])`
+ dir=`local_dirname "$sysroot/$file"`
test -d "$dir" || mkdir -p "$dir"
ln -sf "$gcc_sysroot/$file" "$sysroot/$file"
done])
--
1.7.1
- [REBASED PATCH 0/9] Paolo's sysroot patches, rebased plus some fixes, Charles Wilson, 2010/07/26
- [REBASED PATCH 1/9] handle sysroot flags, Charles Wilson, 2010/07/26
- [REBASED PATCH 2/9] fix buglet, Charles Wilson, 2010/07/26
- [REBASED PATCH 3/9] Add --with-sysroot, Charles Wilson, 2010/07/26
- [REBASED PATCH 4/9] add a basic sysroot test, Charles Wilson, 2010/07/26
- [REBASED PATCH 5/9] Fix issue with GROW diversion in testsuite,
Charles Wilson <=
- [REBASED PATCH 6/9] teach libtool -L= and -R=, Charles Wilson, 2010/07/26
- [REBASED PATCH 7/9] handle sysrooted paths when reading dependencies to la files, Charles Wilson, 2010/07/26
- [REBASED PATCH 8/9] emit sysrooted paths when installing .la files, Charles Wilson, 2010/07/26
- [REBASED PATCH 9/9] Configure script should not use libtool-only shell functions, Charles Wilson, 2010/07/26
- Re: [REBASED PATCH 0/9] Paolo's sysroot patches, rebased plus some fixes, Paolo Bonzini, 2010/07/26