rogue5: improve defaults for SAVEDIR.
This commit is contained in:
parent
cec13006cf
commit
955892f163
1 changed files with 8 additions and 6 deletions
|
|
@ -128,16 +128,18 @@ fi
|
||||||
|
|
||||||
AC_SUBST(LOCKFILE)
|
AC_SUBST(LOCKFILE)
|
||||||
|
|
||||||
AC_ARG_ENABLE([savedir],[AC_HELP_STRING([--enable-savedir=SAVEDIR], [enable systemwide location for saved games])],[],[])
|
AC_ARG_ENABLE([savedir],[AC_HELP_STRING([--enable-savedir=SAVEDIR], [enable systemwide location for saved games])],[],[enable_savedir="no"])
|
||||||
AC_MSG_CHECKING([for save directory])
|
AC_MSG_CHECKING([for save directory])
|
||||||
if test "x$enable_savedir" = "xno" ; then
|
if test "x$enable_savedir" = "xno" ; then
|
||||||
SAVEDIR=
|
SAVEDIR=
|
||||||
elif test "x$enable_savedir" = "xyes" ; then
|
elif test "x$enable_savedir" = "xyes" -o "x$enable_savedir" = "x"; then
|
||||||
SAVEDIR=$progname/
|
if text "x$GROUPOWNER" != "x"; then
|
||||||
elif test "x$enable_savedir" = "x" ; then
|
SAVEDIR="/var/local/games/roguelike/${progname}save/"
|
||||||
SAVEDIR=
|
|
||||||
else
|
else
|
||||||
SAVEDIR=$enable_savedir
|
SAVEDIR="$progname/"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
SAVEDIR="$enable_savedir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$SAVEDIR" != "x" ; then
|
if test "x$SAVEDIR" != "x" ; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue