summaryrefslogtreecommitdiff
path: root/mcon/U/afs.U
diff options
context:
space:
mode:
Diffstat (limited to 'mcon/U/afs.U')
-rw-r--r--mcon/U/afs.U24
1 files changed, 18 insertions, 6 deletions
diff --git a/mcon/U/afs.U b/mcon/U/afs.U
index bcd787b..4cf024b 100644
--- a/mcon/U/afs.U
+++ b/mcon/U/afs.U
@@ -1,13 +1,13 @@
-?RCS: $Id: afs.U,v 3.0.1.2 1997/02/28 15:23:06 ram Exp $
+?RCS: $Id$
?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
+?RCS: of the source tree for dist 4.0.
+?RCS:
?RCS: $Log: afs.U,v $
?RCS: Revision 3.0.1.2 1997/02/28 15:23:06 ram
?RCS: patch61: can now explicitely tell Configure whether AFS is running
@@ -15,7 +15,7 @@
?RCS: Revision 3.0.1.1 1993/08/24 12:24:43 ram
?RCS: patch3: created
?RCS:
-?MAKE:afs: Nothing
+?MAKE:afs afsroot: test
?MAKE: -pick add $@ %<
?S:afs:
?S: This variable is set to 'true' if AFS (Andrew File System) is used
@@ -23,12 +23,24 @@
?S: with a hint value or command line option, but you'd better know
?S: what you are doing.
?S:.
+?S:afsroot:
+?S: This variable is by default set to '/afs'. In the unlikely case
+?S: this is not the correct root, it is possible to override this with
+?S: a hint value or command line option. This will be used in subsequent
+?S: tests for AFSness in the configure and test process.
+?S:.
+: allow them to override the AFS root
+case "$afsroot" in
+'') afsroot=/afs ;;
+*) afsroot=$afsroot ;;
+esac
+
: is AFS running?
echo " "
case "$afs" in
$define|true) afs=true ;;
$undef|false) afs=false ;;
-*) if test -d /afs; then
+*) if $test -d $afsroot; then
afs=true
else
afs=false