Mercurial > hg > early-roguelike
annotate urogue/configure.ac @ 317:aab761616489 default tip
Rearrange some Autoconf files.
Autoconf was failing to detect install-sh at the top level and needed
some explicit directions. It also wants config.guess and config.sub to
be provided too.
A few other macros have also been updated.
author | John "Elwin" Edwards |
---|---|
date | Tue, 05 Sep 2023 20:05:24 -0400 |
parents | 029c1f5c5588 |
children |
rev | line source |
---|---|
273 | 1 # -*- Autoconf -*- |
2 # Process this file with autoconf to produce a configure script. | |
3 | |
312 | 4 AC_PREREQ([2.69]) |
5 AC_INIT([UltraRogue],[1.07],[elwin@sdf.org],[urogue]) | |
273 | 6 AC_CONFIG_HEADERS([config.h]) |
7 AC_CONFIG_FILES([Makefile]) | |
317 | 8 AC_CONFIG_AUX_DIR([../build-aux]) |
273 | 9 |
10 # Checks for programs. | |
11 AC_PROG_CC | |
12 # Checks for libraries. | |
13 MP_WITH_CURSES | |
14 # Checks for header files. | |
284 | 15 AC_CHECK_HEADERS([pwd.h errno.h fcntl.h limits.h nlist.h stdlib.h string.h sys/ioctl.h termios.h unistd.h utmp.h utmpx.h term.h ncurses/term.h process.h arpa/inet.h]) |
273 | 16 |
17 # Checks for typedefs, structures, and compiler characteristics. | |
18 AC_TYPE_UID_T | |
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_FUNC_STAT | |
27 AC_FUNC_VPRINTF | |
28 AC_CHECK_FUNCS([erasechar killchar alarm getpass memset setenv strchr nlist _spawnl spawnl getpwuid loadav getloadavg strerror setgid setuid getuid getgid]) | |
29 AC_PROG_INSTALL | |
30 | |
31 # Programs to process the documentation | |
275
aa0eefcd7df6
UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents:
273
diff
changeset
|
32 AC_CHECK_PROG([NROFF], [nroff], [nroff],) |
aa0eefcd7df6
UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents:
273
diff
changeset
|
33 AC_CHECK_PROG([GROFF], [groff], [groff],) |
aa0eefcd7df6
UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents:
273
diff
changeset
|
34 AC_CHECK_PROG([COLCRT], [colcrt], [colcrt],) |
273 | 35 |
294
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
36 if test "x$GROFF" != "x" ; then |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
37 DOCS_GROFF= |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
38 DOCS_NROFF=.no-nroff |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
39 DOCS_NONE=.none |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
40 elif test "x$(NROFF)" != "x" && test "x$(COLCRT)" != "x" ; then |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
41 DOCS_GROFF=.no-groff |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
42 DOCS_NROFF= |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
43 DOCS_NONE=.none |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
44 else |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
45 DOCS_GROFF=.no-groff |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
46 DOCS_NROFF=.no-nroff |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
47 DOCS_NONE= |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
48 fi |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
49 |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
50 AC_SUBST(DOCS_GROFF) |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
51 AC_SUBST(DOCS_NROFF) |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
52 AC_SUBST(DOCS_NONE) |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
288
diff
changeset
|
53 |
312 | 54 AC_ARG_WITH(program-name, AS_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="urogue"] ) |
273 | 55 PROGRAM=$progname |
56 AC_SUBST(PROGRAM) | |
57 | |
312 | 58 AC_ARG_ENABLE(setgid, AS_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@]),[],[]) |
273 | 59 AC_MSG_CHECKING([if using setgid execute bit]) |
60 if test "x$enable_setgid" = "xno" ; then | |
61 GROUPOWNER= | |
62 elif test "x$enable_setgid" = "xyes" ; then | |
63 GROUPOWNER=games | |
64 elif test "x$enable_setgid" = "x" ; then | |
65 GROUPOWNER= | |
66 else | |
67 GROUPOWNER=$enable_setgid | |
68 fi | |
69 | |
70 if test "x$GROUPOWNER" != "x" ; then | |
71 AC_DEFINE_UNQUOTED([GROUPOWNER],[$GROUPOWNER], [Define to group owner of setgid executable]) | |
72 AC_MSG_RESULT([$GROUPOWNER]) | |
73 else | |
74 AC_MSG_RESULT([no]) | |
75 fi | |
76 | |
77 AC_SUBST(GROUPOWNER) | |
78 | |
312 | 79 AC_ARG_ENABLE([scorefile],[AS_HELP_STRING([--enable-scorefile=SCOREFILE],[enable scoreboard with given filename])],[],[]) |
273 | 80 AC_MSG_CHECKING([for scoreboard file]) |
81 if test "x$enable_scorefile" = "xno" ; then | |
82 SCOREFILE= | |
83 elif test "x$enable_scorefile" = "xyes" ; then | |
84 SCOREFILE=$progname.scr | |
85 elif test "x$enable_scorefile" = "x" ; then | |
86 SCOREFILE=$progname.scr | |
87 else | |
88 SCOREFILE=$enable_scorefile | |
89 fi | |