Fix typo in last commit.
[pspp] / m4 / afs.m4
index 13f3bc96d51224bf2eb06c7e01e985c36468df93..b5fcd365348442fb7dc0cf75a75bf931c98ad0f4 100644 (file)
--- a/m4/afs.m4
+++ b/m4/afs.m4
@@ -1,12 +1,17 @@
-#serial 3
+#serial 9
 
-AC_DEFUN(jm_AFS,
-  AC_MSG_CHECKING(for AFS)
-  if test -d /afs; 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)
-)
+# Copyright (C) 1999, 2000, 2001, 2004, 2008 Free Software Foundation, Inc.
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+AC_DEFUN([gl_AFS],
+  [
+    AC_ARG_WITH(afs,
+               AS_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.])
+    fi
+  ])