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

Re: BUG (v1.5.6.1): ./configure missing check for zlib.h

From
tom fogal <tfogal@alumni.unh.edu>
Date
Jun 27, 2008, 15:07 UTC
Message-ID
<20080627150732.D88F64B4002@artemis.sr.unh.edu>
In-Reply-To
<m3prq3hr6n.fsf@localhost.localdomain>
Jakub Narebski <jnareb@gmail.com> writes:
Show 13 quoted lines
> Mircea Bardac <dev@mircea.bardac.net> writes:
> 
> > $ ./configure
> [...]
> > configure: CHECKS for header files
> > In file included from daemon.c:1:
> > cache.h:9:18: error: zlib.h: No such file or directory
> > make: *** [daemon.o] Error 1
> > 
> > (installing zlib1g-dev on Ubuntu 7.10 fixed the problem)
> 
> What should ./configure do (what ./configure for other programs
> or packages do)?

If one can determine during configure time that a required library is not found, it (IMHO) is nice to give an error message and bomb out (via AC_MSG_ERROR).

The AC macro archive has a zlib macro which does this, as an example:
   http://autoconf-archive.cryp.to/check_zlib.html

I should note, however, that I disagree with that macro's logic in that it `searches' for zlib if the user does not specify it. IMO, if the user does not give a --with option, and it doesn't work `out of the box' (without hacking FLAGS), macros should die with an error rather than retry with changed FLAGS.

-tom
Previous: Jakub NarebskiNext: Jakub Narebski
Message 3 of 6 in “BUG (v1.5.6.1): ./configure missing check for zlib.h”
  1. Mircea BardacJun 27, 2008
  2. Jakub NarebskiJun 27, 2008
  3. tom fogalJun 27, 2008
  4. Jakub NarebskiJun 27, 2008
  5. Ian HiltJun 29, 2008
  6. Mircea BardacJun 27, 2008

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.