From: Jakub Narebski Date: Sat, 8 Jul 2006 21:07:10 +0000 (+0200) Subject: autoconf: Checks for typedefs, structures, and compiler characteristics. X-Git-Tag: v1.4.2-rc3~36^2~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eb0f255d6144af26361b12cb38aae9c23581a955;p=git.git autoconf: Checks for typedefs, structures, and compiler characteristics. ./configure script checks now for existence of the following types, structures, and structure members: * dirent.d_ino in (NO_D_INO_IN_DIRENT) * dirent.d_type in (NO_D_TYPE_IN_DIRENT) * 'struct sockaddr_storage' in (NO_SOCKADDR_STORAGE) Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/configure.ac b/configure.ac index e68d4163c..cb812584c 100644 --- a/configure.ac +++ b/configure.ac @@ -48,13 +48,24 @@ AC_DEFUN([GIT_CONF_APPEND_LINE], ## Checks for typedefs, structures, and compiler characteristics. +AC_MSG_NOTICE([CHECKS for typedefs, structures, and compiler characteristics]) + # Define NO_D_INO_IN_DIRENT if you don't have d_ino in your struct dirent. -# +AC_CHECK_MEMBER(struct dirent.d_ino,[], +GIT_CONF_APPEND_LINE(NO_D_INO_IN_DIRENT=YesPlease), +[#include ]) + # Define NO_D_TYPE_IN_DIRENT if your platform defines DT_UNKNOWN but lacks # d_type in struct dirent (latest Cygwin -- will be fixed soonish). -# +AC_CHECK_MEMBER(struct dirent.d_type,[], +GIT_CONF_APPEND_LINE(NO_D_TYPE_IN_DIRENT=YesPlease), +[#include ]) + # Define NO_SOCKADDR_STORAGE if your platform does not have struct # sockaddr_storage. +AC_CHECK_TYPE(struct sockaddr_storage,[], +GIT_CONF_APPEND_LINE(NO_SOCKADDR_STORAGE=YesPlease), +[#include ]) ## Checks for library functions.