# SOFTWARE.
dnl General initialization.
-AC_PREREQ([2.63])
-AC_INIT([iauthd-c], [1.0.4], [coder-com@undernet.org])
+AC_PREREQ([2.71])
+AC_INIT([iauthd-c],[1.0.4],[coder-com@undernet.org])
AC_CONFIG_AUX_DIR([autoconf])
AC_CONFIG_MACRO_DIR([autoconf])
AC_CONFIG_HEADERS([autoconf.h])
dnl Compiler/runtime feature checks.
AC_C_CONST
AC_C_INLINE
-AC_HEADER_STDC
-AC_HEADER_TIME
+AC_CHECK_INCLUDES_DEFAULT
AC_STRUCT_TM
dnl Check whether we might be running in a git working tree.
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#if defined(HAVE_INTTYPES_H)
#include <inttypes.h>
#include <stdint.h>
#endif
-#if defined(TIME_WITH_SYS_TIME)
-# include <sys/time.h>
-# include <time.h>
-#elif defined(HAVE_SYS_TIME_H)
-# include <sys/time.h>
-#else
-# include <time.h>
-#endif
-
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif