comparison configure.ac @ 865:39d872718d4b

Try and fix utmp handling
author Matt Johnston <matt@ucc.asn.au>
date Mon, 25 Nov 2013 23:30:01 +0800
parents 30ab30e46452
children 12d5f40894ec
comparison
equal deleted inserted replaced
864:30ab30e46452 865:39d872718d4b
538 538
539 dnl wtmp detection 539 dnl wtmp detection
540 AC_MSG_CHECKING([if your system defines WTMP_FILE]) 540 AC_MSG_CHECKING([if your system defines WTMP_FILE])
541 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 541 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
542 #include <sys/types.h> 542 #include <sys/types.h>
543 #include <utmp.h> 543 #ifdef HAVE_UTMP_H
544 # include <utmp.h>
545 #endif
544 #ifdef HAVE_PATHS_H 546 #ifdef HAVE_PATHS_H
545 # include <paths.h> 547 # include <paths.h>
546 #endif 548 #endif
547 ]], 549 ]],
548 [[ char *wtmp = WTMP_FILE; ]])], 550 [[ char *wtmp = WTMP_FILE; ]])],
596 598
597 dnl wtmpx detection 599 dnl wtmpx detection
598 AC_MSG_CHECKING([if your system defines WTMPX_FILE]) 600 AC_MSG_CHECKING([if your system defines WTMPX_FILE])
599 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 601 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
600 #include <sys/types.h> 602 #include <sys/types.h>
601 #include <utmp.h> 603 #ifdef HAVE_UTMP_H
604 # include <utmp.h>
605 #endif
602 #ifdef HAVE_UTMPX_H 606 #ifdef HAVE_UTMPX_H
603 #include <utmpx.h> 607 # include <utmpx.h>
604 #endif 608 #endif
605 #ifdef HAVE_PATHS_H 609 #ifdef HAVE_PATHS_H
606 # include <paths.h> 610 # include <paths.h>
607 #endif 611 #endif
608 ]], 612 ]],