# -*- autoconf -*- ######################################### ## # Checks for types ## ######################################### ## # Standard checks: ## # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_OFF_T AC_TYPE_PID_T AC_HEADER_TIME AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([], [int x __attribute__((deprecated))])], [attr="__attribute__((deprecated))"], [attr="/**/"]) AC_DEFINE_UNQUOTED([NETSNMP_ATTRIBUTE_DEPRECATED], [${attr}], [Used to make the compiler issue a warning about deprecated functions and variables]) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([], [int x __attribute__((unused))])], [attr="__attribute__((unused))"], [attr="/**/"]) AC_DEFINE_UNQUOTED([NETSNMP_ATTRIBUTE_UNUSED], [${attr}], [Used to suppress compiler warnings about unused functions and variables]) ## # More complex checks: ## # Check for 'socklen_t' (HP-UX) # AC_CHECK_TYPES([socklen_t],,,[ #include #if STDC_HEADERS #include #include #endif #ifdef HAVE_SYS_SOCKET_H #include #endif]) # Check for 'in_addr_t' # May be in (AIX) # AC_CHECK_TYPES([in_addr_t],,,[ #include #if STDC_HEADERS #include #include #endif #ifdef HAVE_NETINET_IN_H #include #endif]) # Check for 'ssize_t' # Not necessarily in (older MinGW) # AC_CHECK_TYPES([ssize_t],,,[ #include #if STDC_HEADERS #include #include #endif])