diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-02-16 18:35:26 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-02-16 18:35:26 +0100 |
commit | 85c63fc98b44a25330032dd55add65341966412c (patch) | |
tree | b2c92b19e39ed4cbb2cf63a6f7ec0d45774b6a60 /src | |
parent | 77a5334fd9db92453885b2d2f227f769424d7012 (diff) |
Make -lcurl optional (enabled by default), rework feature en-/disabling
Diffstat (limited to 'src')
-rw-r--r-- | src/imlib.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); } |