]> git.pond.sub.org Git - empserver/commitdiff
Autoconfigure NROFF. Traditional nroff now works in addition to
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 24 May 2006 19:56:13 +0000 (19:56 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 24 May 2006 19:56:13 +0000 (19:56 +0000)
groff.

GNUmakefile.in
README
configure.ac

index 6a8aaadd9a226a3eed9d2bfd378879c35bd2f7a7..fb41ce1436209cffbdd6ded9deb5f4be122c972f 100644 (file)
@@ -67,8 +67,7 @@ AWK := @AWK@
 INSTALL := @INSTALL@
 INSTALL_DATA := @INSTALL_DATA@
 INSTALL_PROGRAM := @INSTALL_PROGRAM@
-# TODO autoconf NROFF
-NROFF := groff -Tascii -P-c -U
+NROFF := @NROFF@
 RANLIB := @RANLIB@
 
 prefix := @prefix@
diff --git a/README b/README
index 44208080fb22d46d294a1de174eee9a8340bbba3..27e70b20a63b4d5064e466c1d6b635da1d2f2051 100644 (file)
--- a/README
+++ b/README
@@ -25,8 +25,8 @@ To build the server and set up a game, follow the steps below.
 
 (2) Building a server
 
-    Requirements: GNU make and GNU troff (`groff'), ANSI C, a curses
-    library, Perl, Bourne Shell and the common utilities.
+    Requirements: GNU make and, ANSI C, a curses library, Perl, nroff
+    or GNU troff (`groff'), Bourne Shell and the common utilities.
 
     See file `INSTALL' for detailed compilation and installation
     instructions.  Quick guide for the impatient: run configure; make;
@@ -71,8 +71,6 @@ To build the server and set up a game, follow the steps below.
 
       To change the deity password, use `change re <password>'.
 
-      FIXME auth
-
     * Create countries with `exec newcap_script'.
 
     Your game is now up!
index 19f29c095e0f78d411e2472f0b85ceefe8c21c7b..7c422ad9d175f4b44f7a3f711c98cf3f2aa28633 100644 (file)
@@ -54,6 +54,9 @@ AM_PROG_CC_C_O
 # Private automake macro, tsk, tsk, tsk...
 _AM_DEPENDENCIES(CC)
 
+AC_ARG_VAR(NROFF, [nroff command])
+AC_CHECK_PROG(NROFF, groff, [groff -Tascii -P-c -U], nroff)
+
 # not really a check for a program, but close enough
 if test -d $srcdir/CVS; then cvs_controlled=yes; else cvs_controlled=no; fi
 AC_SUBST(cvs_controlled,$cvs_controlled)