2 # Check declarations for this package.
4 dnl Copyright (C) 1997-2022 Free Software Foundation, Inc.
6 dnl This file is free software; the Free Software Foundation
7 dnl gives unlimited permission to copy and/or distribute it,
8 dnl with or without modifications, as long as this notice is preserved.
11 dnl This is just a wrapper function to encapsulate this kludge.
12 dnl Putting it in a separate file like this helps share it between
13 dnl different packages.
14 AC_DEFUN([gl_CHECK_DECLS],
16 AC_CHECK_HEADERS_ONCE([grp.h pwd.h])
18 #include <sys/types.h>
33 ttyname], , , $headers)
35 AC_CHECK_DECLS_ONCE([geteuid])
36 AC_CHECK_DECLS_ONCE([getlogin])
37 AC_CHECK_DECLS_ONCE([getuid])