autoconf: check for struct itimerval
authorJonas 'Sortie' Termansen <sortie@maxsi.org>
Fri, 29 Aug 2014 16:42:34 +0000 (09:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Aug 2014 17:39:39 +0000 (10:39 -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: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
configure.ac
index 4b1ae7c3c9f5ff5080dc026a6eb835d579d29949..652bfdddb2a9e82d56eec902b7855079fd3822f8 100644 (file)
@@ -746,6 +746,14 @@ case $ac_cv_type_socklen_t in
 esac
 GIT_CONF_SUBST([SOCKLEN_T])
 
+#
+# Define NO_STRUCT_ITIMERVAL if you don't have struct itimerval.
+AC_CHECK_TYPES([struct itimerval],
+[NO_STRUCT_ITIMERVAL=],
+[NO_STRUCT_ITIMERVAL=UnfortunatelyYes],
+[#include <sys/time.h>])
+GIT_CONF_SUBST([NO_STRUCT_ITIMERVAL])
+#
 # Define NO_D_INO_IN_DIRENT if you don't have d_ino in your struct dirent.
 AC_CHECK_MEMBER(struct dirent.d_ino,
 [NO_D_INO_IN_DIRENT=],