… | |
… | |
200 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> |
200 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> |
201 | #include <stdlib.h> |
201 | #include <stdlib.h> |
202 | #include <sys/types.h> |
202 | #include <sys/types.h> |
203 | #include <utmp.h> |
203 | #include <utmp.h> |
204 | #include <errno.h> |
204 | #include <errno.h> |
205 | main() |
205 | int main() |
206 | { |
206 | { |
207 | char **u, *utmplist[] = { |
207 | char **u, *utmplist[] = { |
208 | "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
208 | "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
209 | FILE *a, *f=fopen("conftestval", "w"); |
209 | FILE *a, *f=fopen("conftestval", "w"); |
210 | if (!f) exit(1); |
210 | if (!f) exit(1); |
… | |
… | |
238 | #include <sys/types.h> |
238 | #include <sys/types.h> |
239 | #ifdef HAVE_UTMP_H |
239 | #ifdef HAVE_UTMP_H |
240 | #include <utmp.h> |
240 | #include <utmp.h> |
241 | #endif |
241 | #endif |
242 | #include <errno.h> |
242 | #include <errno.h> |
243 | main() |
243 | int main() |
244 | { |
244 | { |
245 | char **w, *wtmplist[] = { |
245 | char **w, *wtmplist[] = { |
246 | "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
246 | "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
247 | FILE *a, *f=fopen("conftestval", "w"); |
247 | FILE *a, *f=fopen("conftestval", "w"); |
248 | if (!f) exit(1); |
248 | if (!f) exit(1); |
… | |
… | |
274 | #include <stdlib.h> |
274 | #include <stdlib.h> |
275 | #ifdef HAVE_UTMPX_H |
275 | #ifdef HAVE_UTMPX_H |
276 | #include <utmpx.h> |
276 | #include <utmpx.h> |
277 | #endif |
277 | #endif |
278 | #include <errno.h> |
278 | #include <errno.h> |
279 | main() |
279 | int main() |
280 | { |
280 | { |
281 | char **w, *wtmplist[] = { |
281 | char **w, *wtmplist[] = { |
282 | "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
282 | "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
283 | FILE *a, *f=fopen("conftestval", "w"); |
283 | FILE *a, *f=fopen("conftestval", "w"); |
284 | if (!f) exit(1); |
284 | if (!f) exit(1); |
… | |
… | |
316 | #endif |
316 | #endif |
317 | #ifdef HAVE_LASTLOG_H |
317 | #ifdef HAVE_LASTLOG_H |
318 | #include <lastlog.h> |
318 | #include <lastlog.h> |
319 | #endif |
319 | #endif |
320 | #include <errno.h> |
320 | #include <errno.h> |
321 | main() |
321 | int main() |
322 | { |
322 | { |
323 | char **w, *lastloglist[] = { "/var/log/lastlog", NULL }; |
323 | char **w, *lastloglist[] = { "/var/log/lastlog", NULL }; |
324 | FILE *a, *f=fopen("conftestval", "w"); |
324 | FILE *a, *f=fopen("conftestval", "w"); |
325 | if (!f) exit(1); |
325 | if (!f) exit(1); |
326 | #ifdef LASTLOG_FILE |
326 | #ifdef LASTLOG_FILE |
… | |
… | |
351 | #include <stdlib.h> |
351 | #include <stdlib.h> |
352 | #ifdef HAVE_UTMPX_H |
352 | #ifdef HAVE_UTMPX_H |
353 | #include <utmpx.h> |
353 | #include <utmpx.h> |
354 | #endif |
354 | #endif |
355 | #include <errno.h> |
355 | #include <errno.h> |
356 | main() |
356 | int main() |
357 | { |
357 | { |
358 | char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
358 | char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
359 | FILE *a, *f=fopen("conftestval", "w"); |
359 | FILE *a, *f=fopen("conftestval", "w"); |
360 | if (!f) exit(1); |
360 | if (!f) exit(1); |
361 | #ifdef LASTLOGX_FILE |
361 | #ifdef LASTLOGX_FILE |
… | |
… | |
427 | #include <sys/types.h> |
427 | #include <sys/types.h> |
428 | #include <sys/stat.h> |
428 | #include <sys/stat.h> |
429 | #include <unistd.h> |
429 | #include <unistd.h> |
430 | #include <grp.h> |
430 | #include <grp.h> |
431 | |
431 | |
432 | main() |
432 | int main() |
433 | { |
433 | { |
434 | struct stat st; |
434 | struct stat st; |
435 | struct group *gr; |
435 | struct group *gr; |
436 | char *tty; |
436 | char *tty; |
437 | gr = getgrnam("tty"); |
437 | gr = getgrnam("tty"); |