summaryrefslogtreecommitdiff
path: root/m4/afs.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-06-25 21:10:55 +0000
committerJim Meyering <jim@meyering.net>2004-06-25 21:10:55 +0000
commit2dc7903c37c0573bcec1d7f82e03c569092707e4 (patch)
tree0fc5094024478935beb8054e72b28bb830716ba2 /m4/afs.m4
parent02b3d314214670753450aea8c06abc029c20a621 (diff)
downloadcoreutils-2dc7903c37c0573bcec1d7f82e03c569092707e4.tar.xz
(gl_AFS): Use AC_ARG_WITH instead of ancient, hard-coded
AC_MSG_CHECKING/AC_MSG_RESULT etc. From Tim Waugh.
Diffstat (limited to 'm4/afs.m4')
-rw-r--r--m4/afs.m413
1 files changed, 6 insertions, 7 deletions
diff --git a/m4/afs.m4 b/m4/afs.m4
index fa568ba93..05e4a5b29 100644
--- a/m4/afs.m4
+++ b/m4/afs.m4
@@ -1,13 +1,12 @@
-#serial 6
+#serial 7
AC_DEFUN([gl_AFS],
[
- AC_MSG_CHECKING(for AFS)
- if test -d /afs; then
+ AC_ARG_WITH(afs,
+ AC_HELP_STRING([--with-afs],
+ [support for the Andrew File System [[default=no]]]),
+ test "$withval" = no || with_afs=yes, with_afs=no)
+ if test "$with_afs" = yes; then
AC_DEFINE(AFS, 1, [Define if you have the Andrew File System.])
- ac_result=yes
- else
- ac_result=no
fi
- AC_MSG_RESULT($ac_result)
])