1 |
# readutmp.m4 serial 5 |
# readutmp.m4 serial 9 |
2 |
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. |
dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
3 |
dnl This file is free software, distributed under the terms of the GNU |
dnl This file is free software; the Free Software Foundation |
4 |
dnl General Public License. As a special exception to the GNU General |
dnl gives unlimited permission to copy and/or distribute it, |
5 |
dnl Public License, this file may be distributed as part of a program |
dnl with or without modifications, as long as this notice is preserved. |
|
dnl that contains a configuration script generated by Autoconf, under |
|
|
dnl the same distribution terms as the rest of that program. |
|
6 |
|
|
7 |
AC_DEFUN([gl_READUTMP], |
AC_DEFUN([gl_READUTMP], |
8 |
[ |
[ |
9 |
dnl Prerequisites of lib/readutmp.h. |
AC_LIBSOURCES([readutmp.c, readutmp.h]) |
10 |
AC_CHECK_HEADERS(utmp.h utmpx.h) |
AC_LIBOBJ([readutmp]) |
11 |
AC_CHECK_FUNCS(utmpname utmpxname) |
|
12 |
|
dnl Prerequisites of lib/readutmp.h and lib/readutmp.c. |
13 |
|
AC_REQUIRE([AC_C_INLINE]) |
14 |
|
AC_REQUIRE([gl_FUNC_FREE]) |
15 |
|
AC_CHECK_HEADERS_ONCE(utmp.h utmpx.h) |
16 |
|
AC_CHECK_FUNCS_ONCE(utmpname utmpxname) |
17 |
AC_CHECK_DECLS(getutent,,,[ |
AC_CHECK_DECLS(getutent,,,[ |
18 |
#ifdef HAVE_UTMP_H |
#ifdef HAVE_UTMP_H |
19 |
# include <utmp.h> |
# include <utmp.h> |
51 |
AC_CHECK_MEMBERS([struct utmp.ut_exit.ut_termination],,,[$utmp_includes]) |
AC_CHECK_MEMBERS([struct utmp.ut_exit.ut_termination],,,[$utmp_includes]) |
52 |
AC_CHECK_MEMBERS([struct utmpx.ut_exit.e_termination],,,[$utmp_includes]) |
AC_CHECK_MEMBERS([struct utmpx.ut_exit.e_termination],,,[$utmp_includes]) |
53 |
AC_CHECK_MEMBERS([struct utmp.ut_exit.e_termination],,,[$utmp_includes]) |
AC_CHECK_MEMBERS([struct utmp.ut_exit.e_termination],,,[$utmp_includes]) |
|
|
|
|
AC_LIBOBJ(readutmp) |
|
|
gl_PREREQ_READUTMP |
|
54 |
fi |
fi |
55 |
]) |
]) |
|
|
|
|
# Prerequisites of lib/readutmp.c. |
|
|
AC_DEFUN([gl_PREREQ_READUTMP], |
|
|
[ |
|
|
AC_REQUIRE([gl_FUNC_FREE]) |
|
|
]) |
|