dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_FILEMODE],
[
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_FILEMODE],
[
- dnl Prerequisites of lib/filemode.c.
- AC_REQUIRE([AC_HEADER_STAT])
+ AC_LIBSOURCES([filemode.c, filemode.h])
+ AC_LIBOBJ([filemode])
+ AC_CHECK_DECLS_ONCE([strmode])