Changed the default location of OBJ_ROOT to follow these rules:
authorJohn Criswell <criswell@uiuc.edu>
Thu, 31 Jul 2003 16:45:37 +0000 (16:45 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Thu, 31 Jul 2003 16:45:37 +0000 (16:45 +0000)
1. If USER is defined and localhome/$USER is a directory, set OBJ_ROOT
   to /localhome/$USER
2. Otherwise, set OBJ_ROOT to .
This should hopefully fix the nightly tester.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7451 91177308-0d34-0410-b5e6-96231b3b80d8

autoconf/configure.ac
configure

index 19e18b2c1bf2d748ceee17f36a2be829644a3199..6073f4fc78b6001d2fa2cfd30526e4333197413f 100644 (file)
@@ -311,9 +311,14 @@ dnl Location of the purify program
 AC_ARG_WITH(purify,AC_HELP_STRING([--with-purify],[Location of purify program]),AC_SUBST(PURIFY,[$withval]))
 
 dnl Location for placing object files and built programs, libraries, etc
-if test -d /localhome
+if test ${USER}
 then
-       AC_SUBST(OBJROOT,[/localhome/$USER])
+       if test -d /localhome/${USER}
+       then
+               AC_SUBST(OBJROOT,[/localhome/${USER}])
+       else
+               AC_SUBST(OBJROOT,[.])
+       fi
 else
        AC_SUBST(OBJROOT,[.])
 fi
index ec697bec0ee96923315a313c1c456dc2d41f87f0..af7852c9a0cd92e92f984c2a612367d0db453470 100755 (executable)
--- a/configure
+++ b/configure
@@ -22079,10 +22079,16 @@ if test "${with_purify+set}" = set; then
 
 fi;
 
-if test -d /localhome
+if test ${USER}
 then
-       OBJROOT=/localhome/$USER
+       if test -d /localhome/${USER}
+       then
+               OBJROOT=/localhome/${USER}
+
+       else
+               OBJROOT=.
 
+       fi
 else
        OBJROOT=.