This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add the files from dist/meta to perl's repo
[metaconfig.git] / dist / U / afs.U
1 ?RCS: $Id: afs.U 1 2006-08-24 12:32:52Z rmanfredi $
2 ?RCS:
3 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
4 ?RCS:
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 4.0.
10 ?RCS:
11 ?RCS: $Log: afs.U,v $
12 ?RCS: Revision 3.0.1.2  1997/02/28  15:23:06  ram
13 ?RCS: patch61: can now explicitly tell Configure whether AFS is running
14 ?RCS:
15 ?RCS: Revision 3.0.1.1  1993/08/24  12:24:43  ram
16 ?RCS: patch3: created
17 ?RCS:
18 ?MAKE:afs afsroot: test
19 ?MAKE:  -pick add $@ %<
20 ?S:afs:
21 ?S:     This variable is set to 'true' if AFS (Andrew File System) is used
22 ?S:     on the system, 'false' otherwise.  It is possible to override this
23 ?S:     with a hint value or command line option, but you'd better know
24 ?S:     what you are doing.
25 ?S:.
26 ?S:afsroot:
27 ?S:     This variable is by default set to '/afs'. In the unlikely case
28 ?S:     this is not the correct root, it is possible to override this with
29 ?S:     a hint value or command line option.  This will be used in subsequent
30 ?S:     tests for AFSness in the configure and test process.
31 ?S:.
32 : allow them to override the AFS root
33 case "$afsroot" in
34 '')     afsroot=/afs ;;
35 *)      afsroot=$afsroot ;;
36 esac
37
38 : is AFS running?
39 echo " "
40 case "$afs" in
41 $define|true)   afs=true ;;
42 $undef|false)   afs=false ;;
43 *)      if $test -d $afsroot; then
44                 afs=true
45         else
46                 afs=false
47         fi
48         ;;
49 esac
50 if $afs; then
51         echo "AFS may be running... I'll be extra cautious then..." >&4
52 else
53         echo "AFS does not seem to be running..." >&4
54 fi
55