]> code.delx.au - gnu-emacs/commitdiff
<making srcdir absolute>: Verify that PWD is correct,
authorRichard M. Stallman <rms@gnu.org>
Wed, 27 Feb 2002 03:53:03 +0000 (03:53 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 27 Feb 2002 03:53:03 +0000 (03:53 +0000)
not just well-formed and valid.

configure.in

index aa5a88d39f679eec4db401c01c28e1a860d71cd4..74b953c9e378be8a4c67285187a0fad07877f36f 100644 (file)
@@ -114,7 +114,10 @@ case "${srcdir}" in
   . )
     ## We may be able to use the $PWD environment variable to make this
     ## absolute.  But sometimes PWD is inaccurate.
-    if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}"  ;
+    ## Note: we used to use ${PWD} at the end instead of `pwd`,
+    ## but that tested only for a well-formed and valid PWD,
+    ## it did not object when PWD was well-formed and valid but just wrong.
+    if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`"  ;
     then
       srcdir="$PWD"
     else
@@ -355,6 +358,11 @@ case "${canonical}" in
     ## operating system.
   ;;
 
+  ## Compaq Nonstop
+  mips-compaq-nonstopux* )
+    machine=nonstopux opsys=nonstopux
+    ;;
+
   ## Convex
   *-convex-bsd* | *-convex-convexos* )
     machine=convex opsys=bsd4-3