autoconf: check for setitimer()
authorJonas 'Sortie' Termansen <sortie@maxsi.org>
Fri, 29 Aug 2014 16:42:35 +0000 (09:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Aug 2014 17:45:32 +0000 (10:45 -0700)
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>
configure.ac
index 652bfdddb2a9e82d56eec902b7855079fd3822f8..6af964797f7b0ee64deb34bdff40b2a17db067b6 100644 (file)
@@ -911,6 +911,12 @@ AC_CHECK_LIB([iconv], [locale_charset],
                      [CHARSET_LIB=-lcharset])])
 GIT_CONF_SUBST([CHARSET_LIB])
 #
                      [CHARSET_LIB=-lcharset])])
 GIT_CONF_SUBST([CHARSET_LIB])
 #
+# Define NO_SETITIMER if you don't have setitimer.
+GIT_CHECK_FUNC(setitimer,
+[NO_SETITIMER=],
+[NO_SETITIMER=YesPlease])
+GIT_CONF_SUBST([NO_SETITIMER])
+#
 # Define NO_STRCASESTR if you don't have strcasestr.
 GIT_CHECK_FUNC(strcasestr,
 [NO_STRCASESTR=],
 # Define NO_STRCASESTR if you don't have strcasestr.
 GIT_CHECK_FUNC(strcasestr,
 [NO_STRCASESTR=],