Re: Recommended method for checking libesmtp installation in configure scripts.

Brian Stafford <[email protected]> Wed, 12 Jun 2002 09:07:47 +0100
Newsgroups gmane.comp.lib.libesmtp
Message-ID <[email protected]>
On Tue 08:41, 11 June 2002 Pawel Salek wrote:
> Hi,
> 
> I wonder what is the best way to check in a configure script for libesmtp? 
> At the moment, something like this is used:
...snip...

libesmtp-configure has been there for a while now and during that time a few 
important bugs got fixed.  It seems reasonable that if libesmtp-configure 
isn't found to assume that there is no libesmtp or that it is too old and 
should be upgraded anyway.

> I guess that it might be better to use libesmtp-config script instead but if 
> there are a trap, I would appreciate a warning.

Currently the libesmtp-configure script is just based on the one supplied with 
most projects using gtk, i.e. not very smart.  Given that detecting an 
installation in configure tends to be something of a pain, I wonder if 
libesmtp-configure should detect a valid installation and fail if not found, 
perhaps using a --validate-installation flag or something.  Comments?

Brian