From 4b64b13eee603a6c0c6d27f7d16633bbff2d113a Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Mon, 21 Dec 2009 11:07:50 +0100 Subject: [PATCH] Prevent AC_CONFIG_LINKS from creating bad symlinks Signed-off-by: Peter Breitenlohner --- lib/autoconf/status.m4 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/autoconf/status.m4 b/lib/autoconf/status.m4 index e921d97..20bcb51 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 -- 1.6.4