Mercurial > hg > early-roguelike
comparison arogue7/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 |
---|---|
27 | 27 |
28 AC_CHECK_PROG([NROFF], [nroff], [nroff],) | 28 AC_CHECK_PROG([NROFF], [nroff], [nroff],) |
29 AC_CHECK_PROG([GROFF], [groff], [groff],) | 29 AC_CHECK_PROG([GROFF], [groff], [groff],) |
30 AC_CHECK_PROG([COLCRT], [colcrt], [colcrt],) | 30 AC_CHECK_PROG([COLCRT], [colcrt], [colcrt],) |
31 AC_CHECK_PROG([TBL], [tbl], [tbl],) | 31 AC_CHECK_PROG([TBL], [tbl], [tbl],) |
32 | |
33 if test "x$GROFF" != "x" ; then | |
34 DOCS_GROFF= | |
35 DOCS_NROFF=.no-nroff | |
36 DOCS_NONE=.none | |
37 elif test "x$(NROFF)" != "x" && test "x$(TBL)" != "x" && test "x$(COLCRT)" != "x" ; then | |
38 DOCS_GROFF=.no-groff | |
39 DOCS_NROFF= | |
40 DOCS_NONE=.none | |
41 else | |
42 DOCS_GROFF=.no-groff | |
43 DOCS_NROFF=.no-nroff | |
44 DOCS_NONE= | |
45 fi | |
46 | |
47 AC_SUBST(DOCS_GROFF) | |
48 AC_SUBST(DOCS_NROFF) | |
49 AC_SUBST(DOCS_NONE) | |
32 | 50 |
33 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="arogue7"] ) | 51 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="arogue7"] ) |
34 PROGRAM=$progname | 52 PROGRAM=$progname |
35 AC_SUBST(PROGRAM) | 53 AC_SUBST(PROGRAM) |
36 | 54 |