- Added a setenv replacement for systems which lack it
diff --git a/configure.in b/configure.in
index 0678fa4..a831b92 100644
--- a/configure.in
+++ b/configure.in
@@ -58,7 +58,7 @@
AC_CHECK_HEADERS(pty.h endian.h paths.h lastlog.h shadow.h netgroup.h maillock.h sys/select.h sys/time.h)
dnl Checks for library functions.
-AC_CHECK_FUNCS(openpty strlcpy strlcat mkdtemp arc4random setproctitle setlogin)
+AC_CHECK_FUNCS(openpty strlcpy strlcat mkdtemp arc4random setproctitle setlogin setenv)
AC_CHECK_FUNC(login,
[AC_DEFINE(HAVE_LOGIN)],