… | |
… | |
212 | dnl# -------------------------------------------------------------------------- |
212 | dnl# -------------------------------------------------------------------------- |
213 | |
213 | |
214 | dnl# find utmp |
214 | dnl# find utmp |
215 | AC_CACHE_CHECK(where utmp is located, path_utmp, |
215 | AC_CACHE_CHECK(where utmp is located, path_utmp, |
216 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> |
216 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> |
|
|
217 | #include <stdlib.h> |
217 | #include <sys/types.h> |
218 | #include <sys/types.h> |
218 | #include <utmp.h> |
219 | #include <utmp.h> |
219 | #include <errno.h> |
220 | #include <errno.h> |
220 | main() |
221 | main() |
221 | { |
222 | { |
… | |
… | |
248 | |
249 | |
249 | dnl# find utmpx - if a utmp file exists at the same location and is more than |
250 | dnl# find utmpx - if a utmp file exists at the same location and is more than |
250 | dnl# a day newer, then dump the utmpx. People leave lots of junk around. |
251 | dnl# a day newer, then dump the utmpx. People leave lots of junk around. |
251 | AC_CACHE_CHECK(where utmpx is located, path_utmpx, |
252 | AC_CACHE_CHECK(where utmpx is located, path_utmpx, |
252 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> |
253 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> |
|
|
254 | #include <stdlib.h> |
253 | #include <sys/types.h> |
255 | #include <sys/types.h> |
254 | #include <utmpx.h> |
256 | #include <utmpx.h> |
255 | #include <errno.h> |
257 | #include <errno.h> |
256 | #include <sys/stat.h> |
258 | #include <sys/stat.h> |
257 | #ifdef HAVE_STRING_H |
259 | #ifdef HAVE_STRING_H |
… | |
… | |
293 | dnl# -------------------------------------------------------------------------- |
295 | dnl# -------------------------------------------------------------------------- |
294 | |
296 | |
295 | dnl# find wtmp |
297 | dnl# find wtmp |
296 | AC_CACHE_CHECK(where wtmp is located, path_wtmp, |
298 | AC_CACHE_CHECK(where wtmp is located, path_wtmp, |
297 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> |
299 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> |
|
|
300 | #include <stdlib.h> |
298 | #include <sys/types.h> |
301 | #include <sys/types.h> |
299 | #ifdef HAVE_UTMP_H |
302 | #ifdef HAVE_UTMP_H |
300 | #include <utmp.h> |
303 | #include <utmp.h> |
301 | #endif |
304 | #endif |
302 | #include <errno.h> |
305 | #include <errno.h> |
… | |
… | |
329 | dnl# -------------------------------------------------------------------------- |
332 | dnl# -------------------------------------------------------------------------- |
330 | |
333 | |
331 | dnl# find wtmpx |
334 | dnl# find wtmpx |
332 | AC_CACHE_CHECK(where wtmpx is located, path_wtmpx, |
335 | AC_CACHE_CHECK(where wtmpx is located, path_wtmpx, |
333 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> |
336 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> |
|
|
337 | #include <stdlib.h> |
334 | #ifdef HAVE_UTMPX_H |
338 | #ifdef HAVE_UTMPX_H |
335 | #include <utmpx.h> |
339 | #include <utmpx.h> |
336 | #endif |
340 | #endif |
337 | #include <errno.h> |
341 | #include <errno.h> |
338 | main() |
342 | main() |
… | |
… | |
364 | dnl# -------------------------------------------------------------------------- |
368 | dnl# -------------------------------------------------------------------------- |
365 | |
369 | |
366 | dnl# find lastlog |
370 | dnl# find lastlog |
367 | AC_CACHE_CHECK(where lastlog is located, path_lastlog, |
371 | AC_CACHE_CHECK(where lastlog is located, path_lastlog, |
368 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> |
372 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> |
|
|
373 | #include <stdlib.h> |
369 | #include <sys/types.h> |
374 | #include <sys/types.h> |
370 | #ifdef HAVE_UTMPX_H |
375 | #ifdef HAVE_UTMPX_H |
371 | #include <utmpx.h> |
376 | #include <utmpx.h> |
372 | #elif defined(HAVE_UTMP_H) |
377 | #elif defined(HAVE_UTMP_H) |
373 | #include <utmp.h> |
378 | #include <utmp.h> |
… | |
… | |
407 | dnl# -------------------------------------------------------------------------- |
412 | dnl# -------------------------------------------------------------------------- |
408 | |
413 | |
409 | dnl# find lastlogx |
414 | dnl# find lastlogx |
410 | AC_CACHE_CHECK(where lastlogx is located, path_lastlogx, |
415 | AC_CACHE_CHECK(where lastlogx is located, path_lastlogx, |
411 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> |
416 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> |
|
|
417 | #include <stdlib.h> |
412 | #ifdef HAVE_UTMPX_H |
418 | #ifdef HAVE_UTMPX_H |
413 | #include <utmpx.h> |
419 | #include <utmpx.h> |
414 | #endif |
420 | #endif |
415 | #include <errno.h> |
421 | #include <errno.h> |
416 | main() |
422 | main() |