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