Ethereal-dev: Re: [Ethereal-dev] Check for heimdal fails due to sed call

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sun, 26 Sep 2004 04:01:52 -0700
Guy Harris wrote:
Jean-Baptiste Marchand wrote:

These days, to compile Kerberos decryption support with Heimdal on a
FreeBSD 5.x system, I have to edit configure to :
 - remove the two occurences of the 'i' flag in sed commands

Those were removed a little while ago.

 - remove the addition of -lresolv (resolv library), apparently not
   needed, at least with the version of heimdal shipped with FreeBSD.


The checkin that added that had the comment

    Workaround for (at least) some RedHat platforms:
    Add -lresolv in case it's missing but required by the heimdal libs.

so there apparently *are* platforms where it's needed.

The problem is that the test just checks whether -lresolv is missing, not whether it's missing *and* required.

The test we'd probably have to do would be to link some program with the Heimdal library without -lresolv and, if that fails, add -lresolv.

I've checked in a change that should do that.