summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJonas 'Sortie' Termansen <sortie@maxsi.org>2014-08-29 16:42:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-08-29 17:39:39 (GMT)
commit6441090cf234b88c2fdbb9cd754714108fd57755 (patch)
tree3271a3ff56556961486eaff060f4f4b23da5e332 /configure.ac
parent981ff520b7487886c773910d6309ec327efba3ea (diff)
downloadgit-6441090cf234b88c2fdbb9cd754714108fd57755.zip
git-6441090cf234b88c2fdbb9cd754714108fd57755.tar.gz
git-6441090cf234b88c2fdbb9cd754714108fd57755.tar.bz2
autoconf: check for struct itimerval
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>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4b1ae7c..652bfdd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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=],