From 85c63fc98b44a25330032dd55add65341966412c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 16 Feb 2011 18:35:26 +0100 Subject: Make -lcurl optional (enabled by default), rework feature en-/disabling --- src/imlib.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/imlib.c') diff --git a/src/imlib.c b/src/imlib.c index cc538dd..b125585 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -440,6 +440,7 @@ char *feh_http_load_image(char *url) } /* while read */ close(sockno); fclose(fp); +#ifdef HAVE_LIBCURL } else { CURL *curl; CURLcode res; @@ -492,6 +493,12 @@ char *feh_http_load_image(char *url) curl_easy_cleanup(curl); return NULL; } +#else + } else { + weprintf("Please compile feh with curl=1 to enable http support"); + return NULL; + } +#endif return(tmpname); } -- cgit v1.2.3