annotate m4/mountlist.m4 @ 4666:bb2816d0923f

Remove K&R cruft.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 09 Sep 2003 22:41:13 +0000
parents 7c1a6b73f48e
children 7141ea4946af
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4666
bb2816d0923f Remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4107
diff changeset
1 # mountlist.m4 serial 2
bb2816d0923f Remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4107
diff changeset
2 dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 dnl This file is free software, distributed under the terms of the GNU
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 dnl General Public License. As a special exception to the GNU General
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 dnl Public License, this file may be distributed as part of a program
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 dnl that contains a configuration script generated by Autoconf, under
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 dnl the same distribution terms as the rest of that program.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 AC_DEFUN([gl_MOUNTLIST],
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 [
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 jm_LIST_MOUNTED_FILESYSTEMS([gl_cv_list_mounted_fs=yes],
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 [gl_cv_list_mounted_fs=no])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 if test $gl_cv_list_mounted_fs = yes; then
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 AC_LIBOBJ(mountlist)
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 gl_PREREQ_MOUNTLIST_EXTRA
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 fi
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 ])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 # Prerequisites of lib/mountlist.c not done by jm_LIST_MOUNTED_FILESYSTEMS.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 AC_DEFUN([gl_PREREQ_MOUNTLIST_EXTRA],
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 [
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 dnl Note jm_LIST_MOUNTED_FILESYSTEMS checks for mntent.h, not sys/mntent.h.
4666
bb2816d0923f Remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4107
diff changeset
23 AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h)
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 AC_CHECK_HEADERS(sys/mntent.h)
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 jm_FSTYPENAME
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 ])