X-Git-Url: https://ruderich.org/simon/gitweb/?p=wall-notify%2Fwall-notify.git;a=blobdiff_plain;f=configure.ac;h=9f1efc3a1e4ba30cbe52b7797054c5fddd787b48;hp=528f7146ba45d116615fb97d6b4601a8f409a490;hb=3553a29a54f7755debfa189db830c4b8de51826f;hpb=1eb18876bb0eb8f55567dd8a92ab10091d045df7 diff --git a/configure.ac b/configure.ac index 528f714..9f1efc3 100644 --- a/configure.ac +++ b/configure.ac @@ -37,12 +37,16 @@ fi AC_CHECK_HEADERS([utempter.h utmpx.h]) if test "x$ac_cv_header_utempter_h" = xyes; then + AC_CHECK_FUNCS([setresuid setresgid],[], + [AC_MSG_ERROR([setresuid() and setresgid() required for utmpx])]) + AC_MSG_NOTICE([using utempter]) AC_CHECK_LIB([utempter], [utempter_add_record], [], [AC_MSG_ERROR([utempter_add_record() required])]) AC_CHECK_LIB([utempter], [utempter_remove_record], [], [AC_MSG_ERROR([utempter_remove_record() required])]) AC_DEFINE([USE_UTEMPTER], 1, [Define to 1 to use utempter.]) + elif test "x$ac_cv_header_utmpx_h" = xyes; then AC_MSG_NOTICE([using utmp]) AC_DEFINE([USE_UTMPX], 1, [Define to 1 to use utmp.])