On Mon, Aug 24, 2009 at 07:24:49PM +0200, Xavier wrote: > On Mon, Aug 24, 2009 at 6:58 PM, Nagy Gabor<[email protected]> wrote: > > Hi! > > > > Since bugs.archlinux.org is off-line, I send my problem here. When I > > want to compile pacman, I get the following error: > > > > dload.c: In function ‘download_internal’: > > dload.c:107: error: ‘struct url’ has no member named ‘last_modified’ > > dload.c:145: error: ‘FETCH_UNCHANGED’ undeclared (first use in this > > function) > > dload.c:145: error: (Each undeclared identifier is reported only once > > dload.c:145: error: for each function it appears in.) > > > > Probably my libfetch is too old, but our autoconf system should catch > > this. > > > > patch welcome :) > > I have no idea if it's possible to do that in autoconf. > And this compilation error makes it very easy to detect your libfetch > is too old. >
You can't detect versions directly, but you can check for features, like the url struct having a member call last_modified. I have sent a patch.
