On Mon, 7 Aug 2006, Dave Blaschke wrote:

> Alan asked me to run a CVS of the potential 2.0.7 release on my ppc64
> cluster, but the subject change causes my build to break.  I don't have
> lynx installed, so somehow AC_CHECK_PROG didn't set HTML2TXT to anything
> (as expected) while the new AC_PATH_PROGS sets HTML2TXT to lynx (not
> expected as it's not installed) - any ideas?

(Taking the liberty of copying out to "linux-ha-dev"...)

The whole area of:
 (1) AC_CHECK_PROG v. AC_PATH_PROGS
 (2) What to do when not found

was already inconsistent.  I had tripped over such an instance (documented
in the comment to rev 1.539) and the fix was to attempt to improve
consistency, whilst recognising that it may not yet be perfect.

What is our ("linux-ha-dev") policy?

We seem to be preferring AC_PATH_PROGS (deprecating AC_CHECK_PROG).  This
certainly has my vote.  (And my 1.539 rev is in line with this.)

But when a particular instance is absent (in your case "HTML2TXT"/"lynx")
then what to do?  I suspect this is instance-specific.

IIRC, I also used to have problems with absent lynx a couple of years
back.  That woulkd result in "make" in "doc/" failing in peculiar ways
as it still tried to execute a command (blank) so the actual command
attempt was not:
   lynx -dump ...
but became
   -dump ...
Horrible!

Let's check... yes, see "doc/Makefile.am" revs 1.18 and 1.19.

Perhaps my recent 1.539 rev should itself be adjusted to leave HTMLTEXT
blank if not found (i.e. perhaps I accidentally introduced worse behaviour
for the "not found" case).

BUT WAIT...

I see that events are overtaking us as we e-speak, and that Alan is
updating CVS here, to look for both "lynx" and a thing called "w3m".
I see that he has made this:
   AC_PATH_PROGS(HTML2TXT, lynx, w3m)

Perhaps that ought to be:
   AC_PATH_PROGS(HTML2TXT, lynx w3m)

(i.e. 2nd arg a two word string, 3rd arg blank).

Alan?


-- 

:  David Lee                                I.T. Service          :
:  Senior Systems Programmer                Computer Centre       :
:                                           Durham University     :
:  http://www.dur.ac.uk/t.d.lee/            South Road            :
:                                           Durham DH1 3LE        :
:  Phone: +44 191 334 2752                  U.K.                  :
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to