diff options
-rw-r--r-- | autoconf/configure.ac | 9 | ||||
-rwxr-xr-x | configure | 10 |
2 files changed, 15 insertions, 4 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 19e18b2c1b..6073f4fc78 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -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 @@ -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=. |