summaryrefslogtreecommitdiff
path: root/lib/autoconf/status.m4
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2010-01-06 20:14:53 +0100
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2010-01-06 20:14:53 +0100
commit13e3570bc9cd43f2a036adb45497c96da65331e0 (patch)
tree500146ba6f734971f3481222c47677ee870efbc2 /lib/autoconf/status.m4
parentacf0439102e956cf2ec30005a560bd1192663119 (diff)
downloadautoconf-13e3570bc9cd43f2a036adb45497c96da65331e0.tar.gz
Fix AC_CONFIG_LINKS to generated files when srcdir is absolute.
* lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Check $ac_source, not $srcdir, for being relative or absolute. * tests/torture.at (AC_CONFIG_LINKS): New test. (AC_CONFIG_LINKS and identical files): Extend test, avoid some forks. Report, patch and testcase example by Peter Breitenlohner. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'lib/autoconf/status.m4')
-rw-r--r--lib/autoconf/status.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/autoconf/status.m4 b/lib/autoconf/status.m4
index 4f4e843f..f74bd347 100644
--- a/lib/autoconf/status.m4
+++ b/lib/autoconf/status.m4
@@ -974,7 +974,7 @@ m4_define([_AC_OUTPUT_LINK],
rm -f "$ac_file"
# Try a relative symlink, then a hard link, then a copy.
- case $srcdir in
+ case $ac_source in
[[\\/$]]* | ?:[[\\/]]* ) ac_rel_source=$ac_source ;;
*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
esac