Mercurial > hg > early-roguelike
comparison arogue5/configure.ac @ 312:029c1f5c5588
Update the Autoconf files.
These are mostly automatic updates for obsolete macros.
| author | John "Elwin" Edwards |
|---|---|
| date | Tue, 11 May 2021 22:30:03 -0400 |
| parents | 0b3d1b38998f |
| children | aab761616489 |
comparison
equal
deleted
inserted
replaced
| 311:28e22fb35989 | 312:029c1f5c5588 |
|---|---|
| 1 # -*- Autoconf -*- | 1 # -*- Autoconf -*- |
| 2 # Process this file with autoconf to produce a configure script. | 2 # Process this file with autoconf to produce a configure script. |
| 3 | 3 |
| 4 AC_PREREQ(2.56) | 4 AC_PREREQ([2.69]) |
| 5 AC_INIT([ARogue],[5.8.2], [yendor@rogueforge.net], [arogue5]) | 5 AC_INIT([Advanced Rogue],[5.8.2],[elwin@sdf.org],[arogue5]) |
| 6 AC_CONFIG_HEADERS([config.h]) | 6 AC_CONFIG_HEADERS([config.h]) |
| 7 # May not be needed for the documentation | |
| 8 AC_CONFIG_FILES([Makefile]) | 7 AC_CONFIG_FILES([Makefile]) |
| 9 | 8 |
| 10 # Checks for programs. | 9 # Checks for programs. |
| 11 AC_PROG_CC | 10 AC_PROG_CC |
| 12 # Checks for libraries. | 11 # Checks for libraries. |
| 21 # Checks for library functions. | 20 # Checks for library functions. |
| 22 AC_FUNC_FORK | 21 AC_FUNC_FORK |
| 23 AC_PROG_GCC_TRADITIONAL | 22 AC_PROG_GCC_TRADITIONAL |
| 24 AC_FUNC_LSTAT | 23 AC_FUNC_LSTAT |
| 25 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK | 24 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK |
| 26 AC_TYPE_SIGNAL | |
| 27 AC_FUNC_STAT | 25 AC_FUNC_STAT |
| 28 AC_FUNC_VPRINTF | 26 AC_FUNC_VPRINTF |
| 29 AC_CHECK_FUNCS([erasechar killchar alarm getpass memset setenv strchr nlist _spawnl spawnl getpwuid loadav getloadavg strerror setgid setuid getuid getgid]) | 27 AC_CHECK_FUNCS([erasechar killchar alarm getpass memset setenv strchr nlist _spawnl spawnl getpwuid loadav getloadavg strerror setgid setuid getuid getgid]) |
| 30 AC_PROG_INSTALL | 28 AC_PROG_INSTALL |
| 31 | 29 |
| 32 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="arogue5"] ) | 30 AC_ARG_WITH(program-name, AS_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="arogue5"] ) |
| 33 PROGRAM=$progname | 31 PROGRAM=$progname |
| 34 AC_SUBST(PROGRAM) | 32 AC_SUBST(PROGRAM) |
| 35 | 33 |
| 36 AC_ARG_ENABLE(setgid, AC_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@]),[],[]) | 34 AC_ARG_ENABLE(setgid, AS_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@]),[],[]) |
| 37 AC_MSG_CHECKING([if using setgid execute bit]) | 35 AC_MSG_CHECKING([if using setgid execute bit]) |
| 38 if test "x$enable_setgid" = "xno" ; then | 36 if test "x$enable_setgid" = "xno" ; then |
| 39 GROUPOWNER= | 37 GROUPOWNER= |
| 40 elif test "x$enable_setgid" = "xyes" ; then | 38 elif test "x$enable_setgid" = "xyes" ; then |
| 41 GROUPOWNER=games | 39 GROUPOWNER=games |
| 52 AC_MSG_RESULT([no]) | 50 AC_MSG_RESULT([no]) |
| 53 fi | 51 fi |
| 54 | 52 |
| 55 AC_SUBST(GROUPOWNER) | 53 AC_SUBST(GROUPOWNER) |
| 56 | 54 |
| 57 AC_ARG_ENABLE([scorefile],[AC_HELP_STRING([--enable-scorefile=SCOREFILE], [enable scoreboard with given filename])],[],[]) | 55 AC_ARG_ENABLE([scorefile],[AS_HELP_STRING([--enable-scorefile=SCOREFILE],[enable scoreboard with given filename])],[],[]) |
| 58 AC_MSG_CHECKING([for scoreboard file]) | 56 AC_MSG_CHECKING([for scoreboard file]) |
| 59 if test "x$enable_scorefile" = "xno" ; then | 57 if test "x$enable_scorefile" = "xno" ; then |
| 60 SCOREFILE= | 58 SCOREFILE= |
| 61 elif test "x$enable_scorefile" = "xyes" ; then | 59 elif test "x$enable_scorefile" = "xyes" ; then |
| 62 SCOREFILE=$progname.scr | 60 SCOREFILE=$progname.scr |
| 73 AC_MSG_RESULT([disabled]) | 71 AC_MSG_RESULT([disabled]) |
| 74 fi | 72 fi |
| 75 | 73 |
| 76 AC_SUBST(SCOREFILE) | 74 AC_SUBST(SCOREFILE) |
| 77 | 75 |
| 78 AC_ARG_ENABLE([logfile],[AC_HELP_STRING([--enable-logfile=LOGFILE], [enable logfile with given filename])],[],[]) | 76 AC_ARG_ENABLE([logfile],[AS_HELP_STRING([--enable-logfile=LOGFILE],[enable logfile with given filename])],[],[]) |
| 79 AC_MSG_CHECKING([for log file]) | 77 AC_MSG_CHECKING([for log file]) |
| 80 if test "x$enable_logfile" = "xno" ; then | 78 if test "x$enable_logfile" = "xno" ; then |
| 81 LOGFILE= | 79 LOGFILE= |
| 82 elif test "x$enable_logfile" = "xyes" ; then | 80 elif test "x$enable_logfile" = "xyes" ; then |
| 83 LOGFILE=$progname.log | 81 LOGFILE=$progname.log |
| 94 AC_MSG_RESULT([disabled]) | 92 AC_MSG_RESULT([disabled]) |
| 95 fi | 93 fi |
| 96 | 94 |
| 97 AC_SUBST(LOGFILE) | 95 AC_SUBST(LOGFILE) |
| 98 | 96 |
| 99 AC_ARG_ENABLE([savedir],[AC_HELP_STRING([--enable-savedir=SAVEDIR], [enable systemwide location for saved games])],[],[enable_savedir="no"]) | 97 AC_ARG_ENABLE([savedir],[AS_HELP_STRING([--enable-savedir=SAVEDIR],[enable systemwide location for saved games])],[],[enable_savedir="no"]) |
| 100 AC_MSG_CHECKING([for save directory]) | 98 AC_MSG_CHECKING([for save directory]) |
| 101 if test "x$enable_savedir" = "xno" ; then | 99 if test "x$enable_savedir" = "xno" ; then |
| 102 SAVEDIR= | 100 SAVEDIR= |
| 103 elif test "x$enable_savedir" = "xyes" -o "x$enable_savedir" = "x"; then | 101 elif test "x$enable_savedir" = "xyes" -o "x$enable_savedir" = "x"; then |
| 104 if test "x$GROUPOWNER" != "x"; then | 102 if test "x$GROUPOWNER" != "x"; then |
| 117 AC_MSG_RESULT([disabled]) | 115 AC_MSG_RESULT([disabled]) |
| 118 fi | 116 fi |
| 119 | 117 |
| 120 AC_SUBST(SAVEDIR) | 118 AC_SUBST(SAVEDIR) |
| 121 | 119 |
| 122 AC_ARG_ENABLE([wizardmode],[AC_HELP_STRING([--enable-wizardmode], [enable availability of wizard mode @<:@default=no@:>@])],[],[]) | 120 AC_ARG_ENABLE([wizardmode],[AS_HELP_STRING([--enable-wizardmode],[enable availability of wizard mode @<:@default=no@:>@])],[],[]) |
| 123 AC_MSG_CHECKING([if wizard mode is enabled]) | 121 AC_MSG_CHECKING([if wizard mode is enabled]) |
| 124 if test "x$enable_wizardmode" = "xno" ; then | 122 if test "x$enable_wizardmode" = "xno" ; then |
| 125 AC_MSG_RESULT([no]) | 123 AC_MSG_RESULT([no]) |
| 126 elif test "x$enable_wizardmode" = "x" ; then | 124 elif test "x$enable_wizardmode" = "x" ; then |
| 127 AC_MSG_RESULT([no]) | 125 AC_MSG_RESULT([no]) |
| 128 else | 126 else |
| 129 AC_DEFINE([WIZARD], [], [Define to include wizard mode]) | 127 AC_DEFINE([WIZARD], [], [Define to include wizard mode]) |
| 130 AC_MSG_RESULT([yes]) | 128 AC_MSG_RESULT([yes]) |
| 131 fi | 129 fi |
| 132 | 130 |
| 133 AC_ARG_ENABLE([limitscore],[AC_HELP_STRING([--enable-limitscore], [limit scores to one per class per uid @<:@default=no@:>@])],[],[]) | 131 AC_ARG_ENABLE([limitscore],[AS_HELP_STRING([--enable-limitscore],[limit scores to one per class per uid @<:@default=no@:>@])],[],[]) |
| 134 AC_MSG_CHECKING([if limiting scores]) | 132 AC_MSG_CHECKING([if limiting scores]) |
| 135 if test "x$enable_limitscore" = "xno" ; then | 133 if test "x$enable_limitscore" = "xno" ; then |
| 136 AC_MSG_RESULT([no]) | 134 AC_MSG_RESULT([no]) |
| 137 elif test "x$enable_limitscore" = "x" ; then | 135 elif test "x$enable_limitscore" = "x" ; then |
| 138 AC_MSG_RESULT([no]) | 136 AC_MSG_RESULT([no]) |
| 139 else | 137 else |
| 140 AC_DEFINE([LIMITSCORE], [], [Define to limit scores to one per class per uid]) | 138 AC_DEFINE([LIMITSCORE], [], [Define to limit scores to one per class per uid]) |
| 141 AC_MSG_RESULT([yes]) | 139 AC_MSG_RESULT([yes]) |
| 142 fi | 140 fi |
| 143 | 141 |
| 144 AC_ARG_ENABLE([maxload],[AC_HELP_STRING([--enable-maxload], [enable maxload @<:@default=no@:>@])],[],[]) | 142 AC_ARG_ENABLE([maxload],[AS_HELP_STRING([--enable-maxload],[enable maxload @<:@default=no@:>@])],[],[]) |
| 145 AC_MSG_CHECKING([runtime execution limit (maximum system load average)]) | 143 AC_MSG_CHECKING([runtime execution limit (maximum system load average)]) |
| 146 if test "x$enable_maxload" = "xyes" ; then | 144 if test "x$enable_maxload" = "xyes" ; then |
| 147 AC_DEFINE([MAXLOAD], [100], [Define if maxload feature should be enabled]) | 145 AC_DEFINE([MAXLOAD], [100], [Define if maxload feature should be enabled]) |
| 148 AC_MSG_RESULT([100]) | 146 AC_MSG_RESULT([100]) |
| 149 elif test "x$enable_maxload" = "x" ; then | 147 elif test "x$enable_maxload" = "x" ; then |
| 153 else | 151 else |
| 154 AC_DEFINE_UNQUOTED([MAXLOAD], [$enable_maxload], [Define if maxload feature should be enabled]) | 152 AC_DEFINE_UNQUOTED([MAXLOAD], [$enable_maxload], [Define if maxload feature should be enabled]) |
| 155 AC_MSG_RESULT([$enable_maxload]) | 153 AC_MSG_RESULT([$enable_maxload]) |
| 156 fi | 154 fi |
| 157 | 155 |
| 158 AC_ARG_ENABLE([maxusers],[AC_HELP_STRING([--enable-maxusers], [enable maxuser @<:@default=no@:>@])],[],[]) | 156 AC_ARG_ENABLE([maxusers],[AS_HELP_STRING([--enable-maxusers],[enable maxuser @<:@default=no@:>@])],[],[]) |
| 159 AC_MSG_CHECKING([runtime execution limit (maximum online system users)]) | 157 AC_MSG_CHECKING([runtime execution limit (maximum online system users)]) |
| 160 if test "x$enable_maxusers" = "xyes" ; then | 158 if test "x$enable_maxusers" = "xyes" ; then |
| 161 AC_DEFINE([MAXUSERS], [100], [Define if maxusers feature should be enabled]) | 159 AC_DEFINE([MAXUSERS], [100], [Define if maxusers feature should be enabled]) |
| 162 AC_MSG_RESULT([100]) | 160 AC_MSG_RESULT([100]) |
| 163 elif test "x$enable_maxusers" = "x" ; then | 161 elif test "x$enable_maxusers" = "x" ; then |
