@matheusbsbs / matheus-bagliano / commits / 25fe66f84c
Fork 0

Interix: add configure checks

* check for sys/poll.h. define NO_SYS_POLL_H otherwise. * check for inttypes.h, define NO_INTTYPES_H otherwise. * check for initgroups(), define NO_INITGROUPS otherwise. Signed-off-by: Markus Duft <mduft@gentoo.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Markus Duft committed Oct 27, 2010 at 10:39 UTC 25fe66f84cea9c2e0a7f6b53180542784b94485a
1 file changed +18
configure.ac
+18
@@ -617,6 +617,18 @@ AC_CHECK_HEADER([sys/select.h],
617 [NO_SYS_SELECT_H=UnfortunatelyYes])
618 AC_SUBST(NO_SYS_SELECT_H)
619 #
620 +# Define NO_SYS_POLL_H if you don't have sys/poll.h
621 +AC_CHECK_HEADER([sys/poll.h],
622 +[NO_SYS_POLL_H=],
623 +[NO_SYS_POLL_H=UnfortunatelyYes])
624 +AC_SUBST(NO_SYS_POLL_H)
625 +#
626 +# Define NO_INTTYPES_H if you don't have inttypes.h
627 +AC_CHECK_HEADER([inttypes.h],
628 +[NO_INTTYPES_H=],
629 +[NO_INTTYPES_H=UnfortunatelyYes])
630 +AC_SUBST(NO_INTTYPES_H)
631 +#
632 # Define OLD_ICONV if your library has an old iconv(), where the second
633 # (input buffer pointer) parameter is declared with type (const char **).
634 AC_DEFUN([OLDICONVTEST_SRC], [[
@@ -868,6 +880,12 @@ GIT_CHECK_FUNC(mkstemps,
880 [NO_MKSTEMPS=YesPlease])
881 AC_SUBST(NO_MKSTEMPS)
882 #
883 +# Define NO_INITGROUPS if you don't have initgroups in the C library.
884 +GIT_CHECK_FUNC(initgroups,
885 +[NO_INITGROUPS=],
886 +[NO_INITGROUPS=YesPlease])
887 +AC_SUBST(NO_INITGROUPS)
888 +#
889 #
890 # Define NO_MMAP if you want to avoid mmap.
891 #