diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 38 |
1 files changed, 30 insertions, 8 deletions
diff --git a/configure.in b/configure.in index fd6aea36b..9fe1a92ff 100644 --- a/configure.in +++ b/configure.in | |||
@@ -55,14 +55,7 @@ AC_CHECK_LIB(dl, dlopen, , ) | |||
55 | AC_CHECK_LIB(pam, pam_authenticate, , ) | 55 | AC_CHECK_LIB(pam, pam_authenticate, , ) |
56 | 56 | ||
57 | dnl Checks for header files. | 57 | dnl Checks for header files. |
58 | AC_CHECK_HEADERS(pty.h endian.h paths.h lastlog.h shadow.h netgroup.h) | 58 | AC_CHECK_HEADERS(pty.h endian.h paths.h lastlog.h shadow.h netgroup.h maillock.h) |
59 | |||
60 | dnl Check for ut_host field in utmp | ||
61 | AC_MSG_CHECKING([whether utmp.h has ut_host field]) | ||
62 | AC_EGREP_HEADER(ut_host, utmp.h, | ||
63 | [AC_DEFINE(HAVE_HOST_IN_UTMP) AC_MSG_RESULT(yes); ], | ||
64 | [AC_MSG_RESULT(no)] | ||
65 | ) | ||
66 | 59 | ||
67 | dnl Checks for library functions. | 60 | dnl Checks for library functions. |
68 | AC_CHECK_FUNCS(openpty strlcpy mkdtemp arc4random setproctitle setlogin) | 61 | AC_CHECK_FUNCS(openpty strlcpy mkdtemp arc4random setproctitle setlogin) |
@@ -144,4 +137,33 @@ if test -z "$RANDOM_POOL" -a -z "$EGD_POOL"; then | |||
144 | AC_MSG_ERROR([No random device found, and no EGD random pool specified]) | 137 | AC_MSG_ERROR([No random device found, and no EGD random pool specified]) |
145 | fi | 138 | fi |
146 | 139 | ||
140 | dnl Check for ut_host field in utmp | ||
141 | AC_MSG_CHECKING([whether utmp.h has ut_host field]) | ||
142 | AC_EGREP_HEADER(ut_host, utmp.h, | ||
143 | [AC_DEFINE(HAVE_HOST_IN_UTMP) AC_MSG_RESULT(yes); ], | ||
144 | [AC_MSG_RESULT(no)] | ||
145 | ) | ||
146 | |||
147 | dnl Look for lastlog location | ||
148 | AC_MSG_CHECKING([location of lastlog file]) | ||
149 | for lastlog in /var/log/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
150 | if test -f $lastlog ; then | ||
151 | AC_MSG_RESULT($lastlog) | ||
152 | AC_DEFINE_UNQUOTED(LASTLOG_LOCATION, "$lastlog") | ||
153 | break | ||
154 | fi | ||
155 | done | ||
156 | |||
157 | AC_MSG_CHECKING([whether libc defines __progname]) | ||
158 | AC_TRY_LINK([], | ||
159 | [extern char *__progname;], | ||
160 | [ | ||
161 | AC_DEFINE(HAVE___PROGNAME) | ||
162 | AC_MSG_RESULT(yes) | ||
163 | ], | ||
164 | [ | ||
165 | AC_MSG_RESULT(no) | ||
166 | ] | ||
167 | ) | ||
168 | |||
147 | AC_OUTPUT(Makefile) | 169 | AC_OUTPUT(Makefile) |