nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] what to do when makeinfo is missing?


From: Mike Frysinger
Subject: Re: [Nano-devel] what to do when makeinfo is missing?
Date: Wed, 02 Apr 2014 05:22 -0400
User-agent: KMail/4.12.3 (Linux/3.13.0; KDE/4.12.3; x86_64; ; )

On Wed 02 Apr 2014 11:17:18 Benno Schulenberg wrote:
> Building on a recent install of Linux Mint, where apparently the
> package texinfo is missing, the build fails during the make phase
> due to a missing makeinfo.  I think the configure phase should
> check for the availability of makeinfo, and then either error out,
> or skip the generation of the nano.info file during the make phase.
> Preferably the latter, as the documentation is not life-essential.
> 
> I can add this to configure.ac:
> 
> # Check for availability of makeinfo.
> AC_CHECK_PROG(haveit, makeinfo, yes, sorry)
> AM_CONDITIONAL(CANMAKEINFO, test x$haveit = xyes)
> 
> But then?  How do I use this to stop it from trying to generate
> the nano.info file?

i think gating the subdir and leaving the doc/texinfo/Makefile intact is 
simpler.  it's also slightly faster because then you don't have to recurse.

--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,7 +1,9 @@
+SUBDIRS = man
+if HAVE_TEXINFO
+SUBDIRS += texinfo
+endif
 if USE_COLOR
-SUBDIRS = man syntax texinfo
-else
-SUBDIRS = man texinfo
+SUBDIRS += syntax
 endif
 
 dist_html_DATA = faq.html
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]