* general.m4sh (func_relative_path): We sometimes want to use
the result of this function directly, rather than purely as a
prefix, so we need to return `.' when both directories end up at
the same location.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
fi
- # Normalisation. If bindir is libdir, return empty string,
- # else relative path.
+ # Normalisation. If bindir is libdir, return `.' else relative path.
if test ! -z "$func_relative_path_result"; then
func_stripname './' '' "$func_relative_path_result"
func_relative_path_result=$func_stripname_result
fi
+
+ test -n "$func_relative_path_result" || func_relative_path_result=.
}
# The name of this program: