diff --git a/libltdl/config/general.m4sh b/libltdl/config/general.m4sh index f1ee6e5c..b6e3d419 100644 --- a/libltdl/config/general.m4sh +++ b/libltdl/config/general.m4sh @@ -271,12 +271,13 @@ func_relative_path () 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: