aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 4 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index a679bd0a240..3874cf1ee96 100644
--- a/configure.ac
+++ b/configure.ac
@@ -399,17 +399,12 @@ AC_ARG_WITH(gameuser,dnl
399 An argument prefixed by ':' specifies a group instead.])]) 399 An argument prefixed by ':' specifies a group instead.])])
400gameuser= 400gameuser=
401gamegroup= 401gamegroup=
402# We don't test if we can actually chown/chgrp here, because configure
403# may run without root privileges. lib-src/Makefile.in will handle
404# any errors due to missing user/group gracefully.
402case ${with_gameuser} in 405case ${with_gameuser} in
403 no) ;; 406 no) ;;
404 "" | yes) 407 "" | yes) gamegroup=games ;;
405 AC_MSG_CHECKING([whether a 'games' user exists])
406 if id -u games >/dev/null 2>&1; then
407 AC_MSG_RESULT([yes])
408 gameuser=games
409 else
410 AC_MSG_RESULT([no])
411 fi
412 ;;
413 :*) gamegroup=`echo "${with_gameuser}" | sed -e "s/://"` ;; 408 :*) gamegroup=`echo "${with_gameuser}" | sed -e "s/://"` ;;
414 *) gameuser=${with_gameuser} ;; 409 *) gameuser=${with_gameuser} ;;
415esac 410esac