autoconf: check for setitimer()

The Makefile has provisions for this case, so let's detect it in the configure script as well. Signed-off-by: Jonas 'Sortie' Termansen <sortie@maxsi.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jonas 'Sortie' Termansen committed Aug 29, 2014 at 09:42 UTC a6fd4fb55d255ae14dc3ced5eae6247b4a9d86ea
1 file changed +6
configure.ac
+6
@@ -911,6 +911,12 @@ AC_CHECK_LIB([iconv], [locale_charset],
911 [CHARSET_LIB=-lcharset])])
912 GIT_CONF_SUBST([CHARSET_LIB])
913 #
914 +# Define NO_SETITIMER if you don't have setitimer.
915 +GIT_CHECK_FUNC(setitimer,
916 +[NO_SETITIMER=],
917 +[NO_SETITIMER=YesPlease])
918 +GIT_CONF_SUBST([NO_SETITIMER])
919 +#
920 # Define NO_STRCASESTR if you don't have strcasestr.
921 GIT_CHECK_FUNC(strcasestr,
922 [NO_STRCASESTR=],