diff options
author | Gerd Moellmann <gerd@gnu.org> | 2000-08-24 11:42:48 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2000-08-24 11:42:48 +0000 |
commit | 17494071e6e677db065dcc140e078c3a90809e98 (patch) | |
tree | 1165e352ddbaa54f9648f3cf946155bfdfe945f6 /configure | |
parent | dff13d039cf164c545d3ea95d3cddef3370eac89 (diff) | |
download | emacs-17494071e6e677db065dcc140e078c3a90809e98.tar.gz |
*** empty log message ***
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure index 133ef04b875..ef75538345d 100755 --- a/configure +++ b/configure @@ -684,17 +684,17 @@ fi #### Make srcdir absolute, if it isn't already. It's important to -#### avoid running the path through pwd unnecessary, since pwd can +#### avoid running the path through pwd unnecessarily, since pwd can #### give you automounter prefixes, which can go away. We do all this #### so Emacs can find its files when run uninstalled. +## Make sure CDPATH doesn't affect cd (in case PWD is relative). +unset CDPATH case "${srcdir}" in /* ) ;; . ) ## We may be able to use the $PWD environment variable to make this ## absolute. But sometimes PWD is inaccurate. - ## Make sure CDPATH doesn't affect cd (in case PWD is relative). - unset CDPATH - if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ; + if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ; then srcdir="$PWD" else |