git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/3] configure: respect --without-curl flags

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Mar 18, 2020, 15:51 UTC
Message-ID
<CAPig+cSqu7-2eTj9S4nMn+MUmXye92idH=XYiDEewpyf4zhpJA@mail.gmail.com>
In-Reply-To
<c1c007190683d7ab49e854a66a4832b5ace72b51.1584516715.git.congdanhqx@gmail.com>

On Wed, Mar 18, 2020 at 3:38 AM Đoàn Trần Công Danh <congdanhqx@gmail.com> wrote:

Show 10 quoted lines
> diff --git a/configure.ac b/configure.ac
> @@ -592,6 +592,9 @@ fi
>  # Define NO_CURL if you do not have libcurl installed.  git-http-pull and
>  # git-http-push are not built, and you cannot use http:// and https://
>  # transports.
>
> +# Respect --without-curl
> +if test "x$NO_CURL" != "xYesPlease"; then
> ...
>  if test -z "$NO_CURL"; then

I realize that GIT_PARSE_WITH() will either clear NO_CURL or set it to literal "YesPlease", but the comment(s) in this file describing NO_CURL say only to _define_ it to build without curl support. So, I'm wondering if it would make more sense to take a looser view about the value of NO_CURL. The existing check of NO_CURL doesn't bother looking for a specific value, but instead just tests whether it has a value or not. Perhaps the new check can be modeled after that one.

Also, I think you can reduce the scope of this change quite a bit by merely wrapping the AC_CHECK_LIB() invocation. So, either:

    ...
    if test -z "$NO_CURL"; then
    GIT_STASH_FLAGS($CURLDIR)
    AC_CHECK_LIB([curl], [curl_global_init],
    [NO_CURL=],
    [NO_CURL=YesPlease])
    GIT_UNSTASH_FLAGS($CURLDIR)
    fi
    GIT_CONF_SUBST([NO_CURL])
    ...
or even:
    ...
    if test -z "$NO_CURL"; then
    AC_CHECK_LIB([curl], [curl_global_init],
    [NO_CURL=],
    [NO_CURL=YesPlease])
    fi
    ...
Same comments applies to the other patches, as well.
Previous: Đoàn Trần Công DanhNext: Danh Doan
Message 3 of 14 in “configure: respect --without-<package> flags”
  1. 0/3 configure: respect --without-<package> flagsĐoàn Trần Công Danh, Mar 18, 2020
  2. 1/3 configure: respect --without-curl flagsĐoàn Trần Công Danh, Mar 18, 2020
  3. Eric SunshineMar 18, 2020
  4. Danh DoanMar 19, 2020
  5. 2/3 configure: respect --without-expatĐoàn Trần Công Danh, Mar 18, 2020
  6. 3/3 configure: respect --without-opensslĐoàn Trần Công Danh, Mar 18, 2020
  7. brian m. carlsonMar 18, 2020
  8. Danh DoanMar 18, 2020
  9. 0/3 configure: respect --without-<package> flagsĐoàn Trần Công Danh, Mar 19, 2020
  10. 1/3 configure: respect --without-curl flagĐoàn Trần Công Danh, Mar 19, 2020
  11. 2/3 configure: respect --without-expat flagĐoàn Trần Công Danh, Mar 19, 2020
  12. 3/3 configure: respect --without-openssl flagĐoàn Trần Công Danh, Mar 19, 2020
  13. Danh DoanMar 26, 2020
  14. Junio C HamanoMar 27, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.