Mercurial > hg > early-roguelike
annotate arogue5/configure.ac @ 159:44a0fce4b168
arogue7, xrogue: fix configure's wizardmode and limitscore options.
WIZARD and LIMITSCORE, when set by options to './configure', are no
longer overridden in mach_dep.h.
| author | John "Elwin" Edwards |
|---|---|
| date | Fri, 05 Jun 2015 13:57:38 -0400 |
| parents | 5238b835d661 |
| children | c222f9d56776 |
| rev | line source |
|---|---|
| 99 | 1 # -*- Autoconf -*- |
| 2 # Process this file with autoconf to produce a configure script. | |
| 3 | |
| 4 AC_PREREQ(2.56) | |
| 5 AC_INIT([ARogue],[5.8.2], [yendor@rogueforge.net]) | |
| 6 AC_CONFIG_HEADERS([config.h]) | |
| 7 # May not be needed for the documentation | |
| 8 AC_CONFIG_FILES([Makefile]) | |
| 9 | |
| 10 # Checks for programs. | |
| 11 AC_PROG_CC | |
| 12 # Checks for libraries. | |
| 13 MP_WITH_CURSES | |
| 14 # Checks for header files. | |
| 15 AC_HEADER_STDC | |
| 122 | 16 AC_CHECK_HEADERS([pwd.h errno.h fcntl.h limits.h nlist.h stdlib.h string.h sys/ioctl.h sys/utsname.h termios.h unistd.h utmp.h term.h ncurses/term.h process.h]) |
| 99 | 17 |
| 18 # Checks for typedefs, structures, and compiler characteristics. | |
| 19 AC_TYPE_SIZE_T | |
| 20 AC_STRUCT_TM | |
| 21 # Checks for library functions. | |
| 22 AC_FUNC_FORK | |
| 23 AC_PROG_GCC_TRADITIONAL | |
| 24 AC_FUNC_LSTAT | |
| 25 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK | |
| 26 AC_TYPE_SIGNAL | |
| 27 AC_FUNC_STAT | |
| 28 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]) | |
| 30 AC_PROG_INSTALL | |
| 31 | |
| 32 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="arogue5"] ) | |
| 33 PROGRAM=$progname | |
| 34 AC_SUBST(PROGRAM) | |
| 35 | |
| 36 AC_ARG_ENABLE(setgid, AC_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]) | |
| 38 if test "x$enable_setgid" = "xno" ; then | |
| 39 GROUPOWNER= | |
| 40 elif test "x$enable_setgid" = "xyes" ; then | |
| 41 GROUPOWNER=games | |
| 42 elif test "x$enable_setgid" = "x" ; then | |
| 43 GROUPOWNER= | |
|
dfeed24bb616
arogue5: port to autoconf.
John "Elwin" Edwards |
