From fe788ee4a68d2a8ba3bc3f938172294589c36fc4 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 6 Sep 2010 11:20:51 -0500 Subject: Fix libfetch configure checking I don't know what I tested in commit 3e7b90ff6950, but it definitely wasn't working as advertised. Fix the checks in the source code itself to match the right define (HAVE_LIBFETCH), as well as make sure the configure check defaults to looking for the library but not bailing if it could not be found. Signed-off-by: Dan McGee --- lib/libalpm/dload.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libalpm/dload.c') diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 32096e24..9b59f520 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -38,7 +38,7 @@ #include /* MAXHOSTNAMELEN */ #endif -#ifdef HAVE_FETCH +#ifdef HAVE_LIBFETCH #include #endif @@ -58,7 +58,7 @@ static char *get_filename(const char *url) { return(filename); } -#ifdef HAVE_FETCH +#ifdef HAVE_LIBFETCH static char *get_destfile(const char *path, const char *filename) { char *destfile; /* len = localpath len + filename len + null */ @@ -338,7 +338,7 @@ cleanup: static int download(const char *url, const char *localpath, int force) { if(handle->fetchcb == NULL) { -#ifdef HAVE_FETCH +#ifdef HAVE_LIBFETCH return(download_internal(url, localpath, force)); #else RET_ERR(PM_ERR_EXTERNAL_DOWNLOAD, -1); -- cgit v1.2.3-54-g00ecf