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

[PATCH 2/2] add configure checks for previously created feature flags

From
Mmduft@s01en22.salomon.at <mduft@s01en22.salomon.at>
Date
Oct 27, 2010, 08:39 UTC
Message-ID
<1288168793-11159-3-git-send-email-markus.duft@salomon.at>
In-Reply-To
<1288168793-11159-1-git-send-email-markus.duft@salomon.at>
From: Markus Duft <mduft@gentoo.org>
 *) add check for sys/poll.h. define NO_SYS_POLL_H otherwise.
 *) add check for inttypes.h, define NO_INTTYPES_H otherwise.
 *) add check for initgroups(), define NO_INITGROUPS otherwise.
Signed-off-by: Markus Duft <mduft@gentoo.org>
---
 configure.ac |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index cc55b6d..c5bc9a0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -617,6 +617,18 @@ AC_CHECK_HEADER([sys/select.h],
 [NO_SYS_SELECT_H=UnfortunatelyYes])
 AC_SUBST(NO_SYS_SELECT_H)
 #
+# Define NO_SYS_POLL_H if you don't have sys/poll.h
+AC_CHECK_HEADER([sys/poll.h],
+[NO_SYS_POLL_H=],
+[NO_SYS_POLL_H=UnfortunatelyYes])
+AC_SUBST(NO_SYS_POLL_H)
+#
+# Define NO_INTTYPES_H if you don't have inttypes.h
+AC_CHECK_HEADER([inttypes.h],
+[NO_INTTYPES_H=],
+[NO_INTTYPES_H=UnfortunatelyYes])
+AC_SUBST(NO_INTTYPES_H)
+#
 # Define OLD_ICONV if your library has an old iconv(), where the second
 # (input buffer pointer) parameter is declared with type (const char **).
 AC_DEFUN([OLDICONVTEST_SRC], [[
@@ -868,6 +880,12 @@ GIT_CHECK_FUNC(mkstemps,
 [NO_MKSTEMPS=YesPlease])
 AC_SUBST(NO_MKSTEMPS)
 #
+# Define NO_INITGROUPS if you don't have initgroups in the C library.
+GIT_CHECK_FUNC(initgroups,
+[NO_INITGROUPS=],
+[NO_INITGROUPS=YesPlease])
+AC_SUBST(NO_INITGROUPS)
+#
 #
 # Define NO_MMAP if you want to avoid mmap.
 #
-- 
1.7.2.2
Previous: Junio C Hamano
Message 6 of 6 in “add support for SUA (interix)”
  1. mduft@s01en22.salomon.atOct 27, 2010
  2. 1/2 add support for the SUA layer (interix; windows)mduft@s01en22.salomon.at, Oct 27, 2010
  3. Junio C HamanoOct 29, 2010
  4. Markus DuftOct 29, 2010
  5. Junio C HamanoOct 29, 2010
  6. 2/2 add configure checks for previously created feature flagsmduft@s01en22.salomon.at, Oct 27, 2010

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.