configure: add option disable --libcurl output

This commit is contained in:
Colin Hogben
2012-02-05 17:44:22 +00:00
committed by Daniel Stenberg
parent e71ac0c6fa
commit 2b26eb9857
8 changed files with 106 additions and 41 deletions

View File

@@ -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;