comparison configure.in @ 44985:2f87e3be106c

Delete configure check for access to the game user.
author Colin Walters <walters@gnu.org>
date Mon, 29 Apr 2002 22:47:27 +0000
parents 01b93e5e53a7
children 6ff64f2aa959
comparison
equal deleted inserted replaced
44984:e212772b6816 44985:2f87e3be106c
40 docdir='${datadir}/emacs/${version}/etc' 40 docdir='${datadir}/emacs/${version}/etc'
41 gamedir=yes 41 gamedir=yes
42 42
43 AC_ARG_WITH(game-dir, 43 AC_ARG_WITH(game-dir,
44 [ --with-game-dir use a shared game directory if possible], 44 [ --with-game-dir use a shared game directory if possible],
45 [if test "$withval" = yes; then 45 [
46 gamedir="${localstatedir}/games/emacs" 46 gamedir="$withval"
47 else
48 if test "$withval" = no; then
49 gamedir=no
50 else
51 gamedir="$withval"
52 fi
53 fi
54 ]) 47 ])
48 if test "$gamedir" = yes; then
49 gamedir="${localstatedir}/games/emacs"
50 fi
51 eval tgamedir=\"$gamedir\"
52 if test "$gamedir" != no; then
53 AC_DEFINE_UNQUOTED(HAVE_SHARED_GAME_DIR, "$tgamedir",
54 [Define to the name of the shared game directory.])
55 fi
55 56
56 gameuser=games 57 gameuser=games
57 AC_ARG_WITH(game-user, 58 AC_ARG_WITH(game-user,
58 [ --with-game-user use specified user for game directory], 59 [ --with-game-user use specified user for game directory],
59 [gameuser="$withval"]) 60 [gameuser="$withval"])
1493 AC_PROG_MAKE_SET 1494 AC_PROG_MAKE_SET
1494 1495
1495 dnl checks for operating system services 1496 dnl checks for operating system services
1496 AC_SYS_LONG_FILE_NAMES 1497 AC_SYS_LONG_FILE_NAMES
1497 1498
1498 if test "$gamedir" = no; then :
1499 else
1500 AC_MSG_CHECKING([for access to game group "$gameuser"])
1501 rm -f conf$$chown.file
1502 touch conf$$chown.file
1503 dnl If we can't chown a file to group games, then the users
1504 dnl can't share scores.
1505 if chown "$gameuser" conf$$chown.file 1>/dev/null 2>&1; then
1506 AC_MSG_RESULT([yes])
1507 if test "$gamedir" = "yes"; then
1508 gamedir="${localstatedir}/games/emacs"
1509 fi
1510 eval tgamedir=\"$gamedir\"
1511 AC_DEFINE_UNQUOTED(HAVE_SHARED_GAME_DIR, "$tgamedir",
1512 [Define to the name of the shared game directory.])
1513 else
1514 AC_MSG_RESULT([no])
1515 gamedir=no
1516 fi
1517 fi
1518 #### Choose a window system. 1499 #### Choose a window system.
1519 1500
1520 AC_PATH_X 1501 AC_PATH_X
1521 if test "$no_x" = yes; then 1502 if test "$no_x" = yes; then
1522 window_system=none 1503 window_system=none