X-Git-Url: https://ruderich.org/simon/gitweb/?p=wall-notify%2Fwall-notify.git;a=blobdiff_plain;f=configure.ac;h=7b4ab5a39de5b51a651400cc88067c4861eded41;hp=84c3e324ea395864d4147e43a6f1b19be1b4f80e;hb=HEAD;hpb=702d46155ea3f168dea38e513748b15f256d8b2e diff --git a/configure.ac b/configure.ac index 84c3e32..7b4ab5a 100644 --- a/configure.ac +++ b/configure.ac @@ -37,9 +37,6 @@ 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])]) @@ -49,7 +46,10 @@ if test "x$ac_cv_header_utempter_h" = xyes; then elif test "x$ac_cv_header_utmpx_h" = xyes; then AC_MSG_NOTICE([using utmp]) + AC_CHECK_FUNCS([setresuid setresgid],[], + [AC_MSG_ERROR([setresuid() and setresgid() required for utmpx])]) AC_DEFINE([USE_UTMPX], 1, [Define to 1 to use utmp.]) + else AC_MSG_ERROR([neither utmpx.h nor utempter.h found, aborting]) fi @@ -67,7 +67,8 @@ AC_ARG_ENABLE([x11], fi]) if test -z "$disable_x11_support"; then - AX_PTHREAD([],[AC_MSG_ERROR([pthread is required, use --disable-x11])]) + AX_PTHREAD([], + [AC_MSG_ERROR([pthread is required for X, use --disable-x11])]) LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$PTHREAD_CFLAGS $CFLAGS" CC="$PTHREAD_CC"