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

Re: [PATCH] autoconf: Add test for sys/select.h header file

From
Robert Schiele <rschiele@gmail.com>
Date
Jan 25, 2008, 12:53 UTC
Message-ID
<20080125125304.GO30676@schiele.dyndns.org>
In-Reply-To
<alpine.LSU.1.00.0801251229250.5731@racer.site>
On Fri, Jan 25, 2008 at 12:30:27PM +0000, Johannes Schindelin wrote:
Show 22 quoted lines
> Hi,
> 
> On Fri, 25 Jan 2008, Jakub Narebski wrote:
> 
> > diff --git a/configure.ac b/configure.ac
> > index af177fd..85d7ef5 100644
> > --- a/configure.ac
> > +++ b/configure.ac
> > @@ -235,6 +235,12 @@ test -n "$NEEDS_SOCKET" && LIBS="$LIBS -lsocket"
> >  ## Checks for header files.
> >  AC_MSG_NOTICE([CHECKS for header files])
> >  #
> > +# Define NO_SYS_SELECT_H if you don't have sys/select.h.
> > +AC_CHECK_HEADER([sys/select.h],
> > +[NO_SYS_SELECT_H=],
> > +[NO_SYS_SELECT_H=UnfortunatelyYes])
> > +AC_SUBST(NO_SYS_SELECT_H)
> > +#
> 
> Just because I am curious: would that not define "NO_SYS_SELECT_H" in both 
> cases?  IOW would the "ifdef NO_SYS_SELECT_H" not be triggered all the 
> time?
No, in make the empty string is equal to not being defined.
Robert
-- 
Robert Schiele
Dipl.-Wirtsch.informatiker	mailto:rschiele@gmail.com

"Quidquid latine dictum sit, altum sonatur."
Previous: Johannes SchindelinNext: Junio C Hamano
Message 7 of 9 in “some systems don't have (and need) sys/select.h”
  1. some systems don't have (and need) sys/select.hRobert Schiele, Jan 24, 2008
  2. Johannes SchindelinJan 24, 2008
  3. Junio C HamanoJan 24, 2008
  4. Robert SchieleJan 24, 2008
  5. autoconf: Add test for sys/select.h header fileJakub Narebski, Jan 25, 2008
  6. Johannes SchindelinJan 25, 2008
  7. Robert SchieleJan 25, 2008
  8. Junio C HamanoJan 26, 2008
  9. Robert SchieleJan 26, 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.