Mercurial > hg > early-roguelike
comparison rogue5/configure.ac @ 294:fe6b7a1a6dfc
Improve the documentation build process.
The choice between troff implementations is now made at configure time,
rather than using shell logic in the Makefile to choose while building.
author | John "Elwin" Edwards |
---|---|
date | Sat, 30 Dec 2017 14:15:52 -0500 |
parents | 0b3d1b38998f |
children | 029c1f5c5588 |
comparison
equal
deleted
inserted
replaced
293:9dcf3344d3fd | 294:fe6b7a1a6dfc |
---|---|
37 AC_CHECK_PROG([NROFF], [nroff], [nroff],) | 37 AC_CHECK_PROG([NROFF], [nroff], [nroff],) |
38 AC_CHECK_PROG([GROFF], [groff], [groff],) | 38 AC_CHECK_PROG([GROFF], [groff], [groff],) |
39 AC_CHECK_PROG([COLCRT], [colcrt], [colcrt],) | 39 AC_CHECK_PROG([COLCRT], [colcrt], [colcrt],) |
40 AC_CHECK_PROG([TBL], [tbl], [tbl],) | 40 AC_CHECK_PROG([TBL], [tbl], [tbl],) |
41 | 41 |
42 if test "x$GROFF" != "x" ; then | |
43 DOCS_GROFF= | |
44 DOCS_NROFF=.no-nroff | |
45 DOCS_NONE=.none | |
46 elif test "x$(NROFF)" != "x" && test "x$(TBL)" != "x" && test "x$(COLCRT)" != "x" ; then | |
47 DOCS_GROFF=.no-groff | |
48 DOCS_NROFF= | |
49 DOCS_NONE=.none | |
50 else | |
51 DOCS_GROFF=.no-groff | |
52 DOCS_NROFF=.no-nroff | |
53 DOCS_NONE= | |
54 fi | |
55 | |
56 AC_SUBST(DOCS_GROFF) | |
57 AC_SUBST(DOCS_NROFF) | |
58 AC_SUBST(DOCS_NONE) | |
59 | |
42 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="rogue5"] ) | 60 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="rogue5"] ) |
43 PROGRAM=$progname | 61 PROGRAM=$progname |
44 AC_SUBST(PROGRAM) | 62 AC_SUBST(PROGRAM) |
45 | 63 |
46 AC_ARG_ENABLE(setgid, AC_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@]),[],[]) | 64 AC_ARG_ENABLE(setgid, AC_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@]),[],[]) |