Mercurial > hg > early-roguelike
comparison arogue7/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 | fe6b7a1a6dfc |
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],[7.7.1], [yendor@rogueforge.net], [arogue7]) | 5 AC_INIT([Advanced Rogue],[7.7.1],[elwin@sdf.org],[arogue7]) |
6 AC_CONFIG_HEADERS([config.h]) | 6 AC_CONFIG_HEADERS([config.h]) |
7 AC_CONFIG_FILES([Makefile]) | 7 AC_CONFIG_FILES([Makefile]) |
8 | 8 |
9 # Checks for programs. | 9 # Checks for programs. |
10 AC_PROG_CC | 10 AC_PROG_CC |
19 AC_STRUCT_TM | 19 AC_STRUCT_TM |
20 # Checks for library functions. | 20 # Checks for library functions. |
21 AC_FUNC_FORK | 21 AC_FUNC_FORK |
22 AC_PROG_GCC_TRADITIONAL | 22 AC_PROG_GCC_TRADITIONAL |
23 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK | 23 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK |
24 AC_TYPE_SIGNAL | |
25 AC_CHECK_FUNCS([erasechar killchar alarm getpass memset setenv strchr _spawnl spawnl getpwuid loadav strerror setgid setuid getuid getgid]) | 24 AC_CHECK_FUNCS([erasechar killchar alarm getpass memset setenv strchr _spawnl spawnl getpwuid loadav strerror setgid setuid getuid getgid]) |
26 AC_PROG_INSTALL | 25 AC_PROG_INSTALL |
27 | 26 |
28 AC_CHECK_PROG([NROFF], [nroff], [nroff],) | 27 AC_CHECK_PROG([NROFF], [nroff], [nroff],) |
29 AC_CHECK_PROG([GROFF], [groff], [groff],) | 28 AC_CHECK_PROG([GROFF], [groff], [groff],) |
46 | 45 |
47 AC_SUBST(DOCS_GROFF) | 46 AC_SUBST(DOCS_GROFF) |
48 AC_SUBST(DOCS_NROFF) | 47 AC_SUBST(DOCS_NROFF) |
49 AC_SUBST(DOCS_NONE) | 48 AC_SUBST(DOCS_NONE) |
50 | 49 |
51 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="arogue7"] ) | 50 AC_ARG_WITH(program-name, AS_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="arogue7"] ) |
52 PROGRAM=$progname | 51 PROGRAM=$progname |
53 AC_SUBST(PROGRAM) | 52 AC_SUBST(PROGRAM) |
54 | 53 |
55 AC_ARG_ENABLE(setgid, AC_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@]),[],[]) | 54 AC_ARG_ENABLE(setgid, AS_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@]),[],[]) |
56 AC_MSG_CHECKING([if using setgid execute bit]) | 55 AC_MSG_CHECKING([if using setgid execute bit]) |
57 if test "x$enable_setgid" = "xno" ; then | 56 if test "x$enable_setgid" = "xno" ; then |
58 GROUPOWNER= | 57 GROUPOWNER= |
59 elif test "x$enable_setgid" = "xyes" ; then | 58 elif test "x$enable_setgid" = "xyes" ; then |
60 GROUPOWNER=games | 59 GROUPOWNER=games |
71 AC_MSG_RESULT([no]) | 70 AC_MSG_RESULT([no]) |
72 fi | 71 fi |
73 | 72 |
74 AC_SUBST(GROUPOWNER) | 73 AC_SUBST(GROUPOWNER) |
75 | 74 |
76 AC_ARG_ENABLE([scorefile],[AC_HELP_STRING([--enable-scorefile=SCOREFILE], [enable scoreboard with given filename])],[],[]) | 75 AC_ARG_ENABLE([scorefile],[AS_HELP_STRING([--enable-scorefile=SCOREFILE],[enable scoreboard with given filename])],[],[]) |
77 AC_MSG_CHECKING([for scoreboard file]) | 76 AC_MSG_CHECKING([for scoreboard file]) |
78 if test "x$enable_scorefile" = "xno" ; then | 77 if test "x$enable_scorefile" = "xno" ; then |
79 SCOREFILE= | 78 SCOREFILE= |
80 elif test "x$enable_scorefile" = "xyes" ; then | 79 elif test "x$enable_scorefile" = "xyes" ; then |
81 SCOREFILE=$progname.scr | 80 SCOREFILE=$progname.scr |
92 AC_MSG_RESULT([disabled]) | 91 AC_MSG_RESULT([disabled]) |
93 fi | 92 fi |
94 | 93 |
95 AC_SUBST(SCOREFILE) | 94 AC_SUBST(SCOREFILE) |
96 | 95 |
97 AC_ARG_ENABLE([logfile],[AC_HELP_STRING([--enable-logfile=LOGFILE], [enable logfile with given filename])],[],[]) | 96 AC_ARG_ENABLE([logfile],[AS_HELP_STRING([--enable-logfile=LOGFILE],[enable logfile with given filename])],[],[]) |
98 AC_MSG_CHECKING([for log file]) | 97 AC_MSG_CHECKING([for log file]) |
99 if test "x$enable_logfile" = "xno" ; then | 98 if test "x$enable_logfile" = "xno" ; then |
100 LOGFILE= | 99 LOGFILE= |
101 elif test "x$enable_logfile" = "xyes" ; then | 100 elif test "x$enable_logfile" = "xyes" ; then |
102 LOGFILE=$progname.log | 101 LOGFILE=$progname.log |
113 AC_MSG_RESULT([disabled]) | 112 AC_MSG_RESULT([disabled]) |
114 fi | 113 fi |
115 | 114 |
116 AC_SUBST(LOGFILE) | 115 AC_SUBST(LOGFILE) |
117 | 116 |
118 AC_ARG_ENABLE([savedir],[AC_HELP_STRING([--enable-savedir=SAVEDIR], [enable systemwide location for saved games])],[],[enable_savedir="no"]) | 117 AC_ARG_ENABLE([savedir],[AS_HELP_STRING([--enable-savedir=SAVEDIR],[enable systemwide location for saved games])],[],[enable_savedir="no"]) |
119 AC_MSG_CHECKING([for save directory]) | 118 AC_MSG_CHECKING([for save directory]) |
120 if test "x$enable_savedir" = "xno" ; then | 119 if test "x$enable_savedir" = "xno" ; then |
121 SAVEDIR= | 120 SAVEDIR= |
122 elif test "x$enable_savedir" = "xyes" -o "x$enable_savedir" = "x"; then | 121 elif test "x$enable_savedir" = "xyes" -o "x$enable_savedir" = "x"; then |
123 if test "x$GROUPOWNER" != "x"; then | 122 if test "x$GROUPOWNER" != "x"; then |
136 AC_MSG_RESULT([disabled]) | 135 AC_MSG_RESULT([disabled]) |
137 fi | 136 fi |
138 | 137 |
139 AC_SUBST(SAVEDIR) | 138 AC_SUBST(SAVEDIR) |
140 | 139 |
141 AC_ARG_ENABLE([wizardmode],[AC_HELP_STRING([--enable-wizardmode], [enable availability of wizard mode @<:@default=no@:>@])],[],[]) | 140 AC_ARG_ENABLE([wizardmode],[AS_HELP_STRING([--enable-wizardmode],[enable availability of wizard mode @<:@default=no@:>@])],[],[]) |
142 AC_MSG_CHECKING([if wizard mode is enabled]) | 141 AC_MSG_CHECKING([if wizard mode is enabled]) |
143 if test "x$enable_wizardmode" = "xno" ; then | 142 if test "x$enable_wizardmode" = "xno" ; then |
144 AC_MSG_RESULT([no]) | 143 AC_MSG_RESULT([no]) |
145 elif test "x$enable_wizardmode" = "x" ; then | 144 elif test "x$enable_wizardmode" = "x" ; then |
146 AC_MSG_RESULT([no]) | 145 AC_MSG_RESULT([no]) |
147 else | 146 else |
148 AC_DEFINE([WIZARD], [], [Define to include wizard mode]) | 147 AC_DEFINE([WIZARD], [], [Define to include wizard mode]) |
149 AC_MSG_RESULT([yes]) | 148 AC_MSG_RESULT([yes]) |
150 fi | 149 fi |
151 | 150 |
152 AC_ARG_ENABLE([limitscore],[AC_HELP_STRING([--enable-limitscore], [limit scores to one per class per uid @<:@default=no@:>@])],[],[]) | 151 AC_ARG_ENABLE([limitscore],[AS_HELP_STRING([--enable-limitscore],[limit scores to one per class per uid @<:@default=no@:>@])],[],[]) |
153 AC_MSG_CHECKING([if limiting scores]) | 152 AC_MSG_CHECKING([if limiting scores]) |
154 if test "x$enable_limitscore" = "xno" ; then | 153 if test "x$enable_limitscore" = "xno" ; then |
155 AC_MSG_RESULT([no]) | 154 AC_MSG_RESULT([no]) |
156 elif test "x$enable_limitscore" = "x" ; then | 155 elif test "x$enable_limitscore" = "x" ; then |
157 AC_MSG_RESULT([no]) | 156 AC_MSG_RESULT([no]) |
158 else | 157 else |
159 AC_DEFINE([LIMITSCORE], [], [Define to limit scores to one per class per uid]) | 158 AC_DEFINE([LIMITSCORE], [], [Define to limit scores to one per class per uid]) |
160 AC_MSG_RESULT([yes]) | 159 AC_MSG_RESULT([yes]) |
161 fi | 160 fi |
162 | 161 |
163 AC_ARG_ENABLE([maxusers],[AC_HELP_STRING([--enable-maxusers], [enable maxuser @<:@default=no@:>@])],[],[]) | 162 AC_ARG_ENABLE([maxusers],[AS_HELP_STRING([--enable-maxusers],[enable maxuser @<:@default=no@:>@])],[],[]) |
164 AC_MSG_CHECKING([runtime execution limit (maximum online system users)]) | 163 AC_MSG_CHECKING([runtime execution limit (maximum online system users)]) |
165 if test "x$enable_maxusers" = "xyes" ; then | 164 if test "x$enable_maxusers" = "xyes" ; then |
166 AC_DEFINE([MAXUSERS], [100], [Define if maxusers feature should be enabled]) | 165 AC_DEFINE([MAXUSERS], [100], [Define if maxusers feature should be enabled]) |
167 AC_MSG_RESULT([100]) | 166 AC_MSG_RESULT([100]) |
168 elif test "x$enable_maxusers" = "x" ; then | 167 elif test "x$enable_maxusers" = "x" ; then |