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

Re: How to force configure script to use curl ?

From
Jeff King <peff@peff.net>
Date
Feb 14, 2020, 06:17 UTC
Message-ID
<20200214061714.GA605125@coredump.intra.peff.net>
In-Reply-To
<A0910AA2-D24B-4DF5-8D39-8E2D8B56955B@gmail.com>
On Wed, Feb 12, 2020 at 05:08:06PM -0500, Philippe Blain wrote:
> Is there a way to force the configure script to error out if it does
> not find curl (or any one of the optional dependencies that I happen
> to need for my build?)

I don't think so. It would probably be possible for configure.ac to behave this way. Looking at the code, I think GIT_PARSE_WITH would have to record the affirmative for "--with" instead of just canceling a previous "--without", and then the part that does curl auto-detection would need to complain if it doesn't find curl at that point.

But our use of autoconf is not very extensive, and in fact most developers do not use it at all. If you know you want curl, you're better off just overriding it explicitly with the Makefile knob:

  make NO_CURL=
or:
  echo NO_CURL= >>config.mak
  make

Either of those will override the NO_CURL setting done by the configure script (you can see the full list of knobs set by configure in config.mak.autogen).

-Peff
Previous: Christian CouderNext: Junio C Hamano
Message 3 of 6 in “How to force configure script to use curl ?”
  1. Philippe BlainFeb 12, 2020
  2. Christian CouderFeb 13, 2020
  3. Jeff KingFeb 14, 2020
  4. Junio C HamanoFeb 14, 2020
  5. Jeff KingFeb 14, 2020
  6. Philippe BlainFeb 14, 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.