sys/stat.h.
* acspecific.m4 (AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_BLOCKS)
(AC_STRUCT_ST_RDEV): Simplify.
* acfunctions.m4 (AC_FUNC_MMAP): Include sys/stat.h unconditionally.
* doc/autoconf.texi (Default Includes): Adjust.
(Particular Structures) <AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV>:
Adjust.
+2000-11-17 Akim Demaille <akim@epita.fr>
+
+ * acgeneral.m4 (_AC_INIT_DEFAULTS) <ac_includes_default>: Include
+ sys/stat.h.
+ * acspecific.m4 (AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_BLOCKS)
+ (AC_STRUCT_ST_RDEV): Simplify.
+ * acfunctions.m4 (AC_FUNC_MMAP): Include sys/stat.h unconditionally.
+ * doc/autoconf.texi (Default Includes): Adjust.
+ (Particular Structures) <AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV>:
+ Adjust.
+
2000-11-16 Akim Demaille <akim@epita.fr>
* doc/autoconf.texi (Limitations of Usual Tools) <expr>:
# AC_FUNC_MMAP
# ------------
AC_DEFUN([AC_FUNC_MMAP],
-[AC_CHECK_HEADERS(stdlib.h unistd.h sys/stat.h)
+[AC_CHECK_HEADERS(stdlib.h unistd.h)
AC_CHECK_FUNCS(getpagesize)
AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped,
[AC_TRY_RUN(
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
-#if HAVE_SYS_STAT_H
-# include <sys/stat.h>
-#endif
+#include <sys/stat.h>
/* This mess was copied from the GNU getpagesize.h. */
#if !HAVE_GETPAGESIZE
ac_includes_default="\
#include <stdio.h>
#include <sys/types.h>
+#include <sys/stat.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
`HAVE_STRUCT_STAT_ST_BLKSIZE'. Remove this warning and
the `AC_DEFINE' when you adjust the code.])
AC_CHECK_MEMBERS([struct stat.st_blksize],
- [AC_DEFINE(HAVE_ST_BLKSIZE, 1,
- [Define if your `struct stat' has
- `st_blksize'. Deprecated, use
- `HAVE_STRUCT_STAT_ST_BLKSIZE' instead.])],,
- [#include <sys/types.h>
-#include <sys/stat.h>
-])dnl
+ [AC_DEFINE(HAVE_ST_BLKSIZE, 1,
+ [Define if your `struct stat' has
+ `st_blksize'. Deprecated, use
+ `HAVE_STRUCT_STAT_ST_BLKSIZE' instead.])])
])# AC_STRUCT_ST_BLKSIZE
[Define if your `struct stat' has
`st_blocks'. Deprecated, use
`HAVE_STRUCT_STAT_ST_BLOCKS' instead.])],
- [AC_LIBOBJ([fileblocks])],
- [#include <sys/types.h>
-#include <sys/stat.h>
-])dnl
+ [AC_LIBOBJ([fileblocks])])
])# AC_STRUCT_ST_BLOCKS
[AC_DEFINE(HAVE_ST_RDEV, 1,
[Define if your `struct stat' has `st_rdev'.
Deprecated, use `HAVE_STRUCT_STAT_ST_RDEV'
- instead.])],,
- [#include <sys/types.h>
-#include <sys/stat.h>
-])dnl
+ instead.])])
])# AC_STRUCT_ST_RDEV
configure source code packages using templates and an @code{m4} macro
package.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000 Free Software
+Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000 Free Software
Foundation, Inc.
Permission is granted to make and distribute verbatim copies of this
@group
#include <stdio.h>
#include <sys/types.h>
+#include <sys/stat.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
the future. This macro is obsoleted, and should be replaced by
@example
-@group
-AC_CHECK_MEMBERS([struct stat.st_blksize],,,
-[#include <sys/types.h>
-#include <sys/stat.h>])
-@end group
+AC_CHECK_MEMBERS([struct stat.st_blksize])
@end example
@end defmac
This macro is obsoleted, and should be replaced by
@example
-@group
-AC_CHECK_MEMBERS([struct stat.st_rdev],,,
-[#include <sys/types.h>
-#include <sys/stat.h>])
-@end group
+AC_CHECK_MEMBERS([struct stat.st_rdev])
@end example
-
@end defmac
@defmac AC_STRUCT_TM
# AC_FUNC_MMAP
# ------------
AC_DEFUN([AC_FUNC_MMAP],
-[AC_CHECK_HEADERS(stdlib.h unistd.h sys/stat.h)
+[AC_CHECK_HEADERS(stdlib.h unistd.h)
AC_CHECK_FUNCS(getpagesize)
AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped,
[AC_TRY_RUN(
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
-#if HAVE_SYS_STAT_H
-# include <sys/stat.h>
-#endif
+#include <sys/stat.h>
/* This mess was copied from the GNU getpagesize.h. */
#if !HAVE_GETPAGESIZE
ac_includes_default="\
#include <stdio.h>
#include <sys/types.h>
+#include <sys/stat.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
`HAVE_STRUCT_STAT_ST_BLKSIZE'. Remove this warning and
the `AC_DEFINE' when you adjust the code.])
AC_CHECK_MEMBERS([struct stat.st_blksize],
- [AC_DEFINE(HAVE_ST_BLKSIZE, 1,
- [Define if your `struct stat' has
- `st_blksize'. Deprecated, use
- `HAVE_STRUCT_STAT_ST_BLKSIZE' instead.])],,
- [#include <sys/types.h>
-#include <sys/stat.h>
-])dnl
+ [AC_DEFINE(HAVE_ST_BLKSIZE, 1,
+ [Define if your `struct stat' has
+ `st_blksize'. Deprecated, use
+ `HAVE_STRUCT_STAT_ST_BLKSIZE' instead.])])
])# AC_STRUCT_ST_BLKSIZE
[Define if your `struct stat' has
`st_blocks'. Deprecated, use
`HAVE_STRUCT_STAT_ST_BLOCKS' instead.])],
- [AC_LIBOBJ([fileblocks])],
- [#include <sys/types.h>
-#include <sys/stat.h>
-])dnl
+ [AC_LIBOBJ([fileblocks])])
])# AC_STRUCT_ST_BLOCKS
[AC_DEFINE(HAVE_ST_RDEV, 1,
[Define if your `struct stat' has `st_rdev'.
Deprecated, use `HAVE_STRUCT_STAT_ST_RDEV'
- instead.])],,
- [#include <sys/types.h>
-#include <sys/stat.h>
-])dnl
+ instead.])])
])# AC_STRUCT_ST_RDEV