comparison configure.in @ 44479:5eb5e6c99de4

Add --game-dir, --game-user. Test to see if we can use them.
author Colin Walters <walters@gnu.org>
date Wed, 10 Apr 2002 19:04:08 +0000
parents e40ab7c8d219
children 1b75a98a4de4
comparison
equal deleted inserted replaced
44478:2539a7fea37f 44479:5eb5e6c99de4
36 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' 36 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
37 lisppath='${locallisppath}:${lispdir}' 37 lisppath='${locallisppath}:${lispdir}'
38 etcdir='${datadir}/emacs/${version}/etc' 38 etcdir='${datadir}/emacs/${version}/etc'
39 archlibdir='${libexecdir}/emacs/${version}/${configuration}' 39 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
40 docdir='${datadir}/emacs/${version}/etc' 40 docdir='${datadir}/emacs/${version}/etc'
41 gamedir=yes
42
43 AC_ARG_WITH(game-dir,
44 [ --with-game-dir use a shared game directory if possible],
45 [if test "$withval" = yes; then
46 gamedir="${localstatedir}/games/emacs"
47 else
48 if test "$withval" = no; then
49 gamedir=no
50 else
51 gamedir="$withval"
52 fi
53 fi
54 ])
55
56 gameuser=games
57 AC_ARG_WITH(game-user,
58 [ --with-game-user use specified user for game directory],
59 [gameuser="$withval"])
41 60
42 AC_ARG_WITH(gcc, 61 AC_ARG_WITH(gcc,
43 [ --without-gcc don't use GCC to compile Emacs if GCC is found]) 62 [ --without-gcc don't use GCC to compile Emacs if GCC is found])
44 AC_ARG_WITH(pop, 63 AC_ARG_WITH(pop,
45 [ --without-pop don't support POP mail retrieval with movemail], 64 [ --without-pop don't support POP mail retrieval with movemail],
1462 AC_PROG_MAKE_SET 1481 AC_PROG_MAKE_SET
1463 1482
1464 dnl checks for operating system services 1483 dnl checks for operating system services
1465 AC_SYS_LONG_FILE_NAMES 1484 AC_SYS_LONG_FILE_NAMES
1466 1485
1486 if test "$gamedir" = no; then :
1487 else
1488 AC_MSG_CHECKING([for access to game group "$gameuser"])
1489 rm -f conf$$chown.file
1490 touch conf$$chown.file
1491 dnl If we can't chown a file to group games, then the users
1492 dnl can't share scores.
1493 if chown "$gameuser" conf$$chown.file 1>/dev/null 2>&1; then
1494 AC_MSG_RESULT([yes])
1495 if test "$gamedir" = "yes"; then
1496 gamedir="${localstatedir}/games/emacs"
1497 fi
1498 tgamedir=`eval "echo $gamedir"`
1499 AC_DEFINE_UNQUOTED(HAVE_SHARED_GAME_DIR, "$tgamedir")
1500 else
1501 AC_MSG_RESULT([no])
1502 gamedir=no
1503 fi
1504 fi
1467 #### Choose a window system. 1505 #### Choose a window system.
1468 1506
1469 AC_PATH_X 1507 AC_PATH_X
1470 if test "$no_x" = yes; then 1508 if test "$no_x" = yes; then
1471 window_system=none 1509 window_system=none
2004 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ 2042 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
2005 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 2043 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
2006 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ 2044 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
2007 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ 2045 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
2008 sendto recvfrom getsockopt setsockopt getsockname getpeername \ 2046 sendto recvfrom getsockopt setsockopt getsockname getpeername \
2009 gai_strerror mkstemp) 2047 gai_strerror mkstemp getline getdelim)
2010 2048
2011 AC_CHECK_HEADERS(sys/un.h) 2049 AC_CHECK_HEADERS(sys/un.h)
2012 2050
2013 AC_FUNC_MKTIME 2051 AC_FUNC_MKTIME
2014 if test "$ac_cv_func_working_mktime" = no; then 2052 if test "$ac_cv_func_working_mktime" = no; then
2237 AC_SUBST(x_default_search_path) 2275 AC_SUBST(x_default_search_path)
2238 AC_SUBST(etcdir) 2276 AC_SUBST(etcdir)
2239 AC_SUBST(archlibdir) 2277 AC_SUBST(archlibdir)
2240 AC_SUBST(docdir) 2278 AC_SUBST(docdir)
2241 AC_SUBST(bitmapdir) 2279 AC_SUBST(bitmapdir)
2280 AC_SUBST(gamedir)
2281 AC_SUBST(gameuser)
2242 AC_SUBST(c_switch_system) 2282 AC_SUBST(c_switch_system)
2243 AC_SUBST(c_switch_machine) 2283 AC_SUBST(c_switch_machine)
2244 AC_SUBST(LD_SWITCH_X_SITE) 2284 AC_SUBST(LD_SWITCH_X_SITE)
2245 AC_SUBST(LD_SWITCH_X_SITE_AUX) 2285 AC_SUBST(LD_SWITCH_X_SITE_AUX)
2246 AC_SUBST(C_SWITCH_X_SITE) 2286 AC_SUBST(C_SWITCH_X_SITE)
2294 What compiler should emacs be built with? ${CC} ${CFLAGS} 2334 What compiler should emacs be built with? ${CC} ${CFLAGS}
2295 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} 2335 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
2296 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} 2336 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
2297 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers 2337 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
2298 What window system should Emacs use? ${window_system} 2338 What window system should Emacs use? ${window_system}
2299 What toolkit should Emacs use? ${USE_X_TOOLKIT}" 2339 What toolkit should Emacs use? ${USE_X_TOOLKIT}
2340 Should Emacs use a shared game state directory? ${gamedir}"
2300 2341
2301 if test -n "${x_includes}"; then 2342 if test -n "${x_includes}"; then
2302 echo " Where do we find X Windows header files? ${x_includes}" 2343 echo " Where do we find X Windows header files? ${x_includes}"
2303 else 2344 else
2304 echo " Where do we find X Windows header files? Standard dirs" 2345 echo " Where do we find X Windows header files? Standard dirs"