diff options
author | Colin Hogben <curl@pythontech.co.uk> | 2012-02-05 17:44:22 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-02-13 22:36:10 +0100 |
commit | 2b26eb98573a1402a8f39603b9fdaa9d04142c07 (patch) | |
tree | 2c1bec67d87918d5d05d25744b2408bed3b04e4a /src/tool_getparam.c | |
parent | e71ac0c6fad6643ad99b5cf6f1d566dfb79990d2 (diff) |
configure: add option disable --libcurl output
Diffstat (limited to 'src/tool_getparam.c')
-rw-r--r-- | src/tool_getparam.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c index c8519c201..50450c25f 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -739,8 +739,14 @@ ParameterError getparameter(char *flag, /* f or -long-flag */ config->ftp_ssl_ccc_mode = ftpcccmethod(config, nextarg); break; case 'z': /* --libcurl */ +#ifdef CURL_DISABLE_LIBCURL_OPTION + warnf(config, + "--libcurl option was disabled at build-time!\n"); + return PARAM_OPTION_UNKNOWN; +#else GetStr(&config->libcurl, nextarg); break; +#endif case '#': /* --raw */ config->raw = toggle; break; |