mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
build: Update for newer autoconf.
* configure.ac (AC_PREREQ): Use >= 2.69. (AC_CONFIG_HEADERS): Use it, instead of AC_CONFIG_HEADER. (AC_HEADER_STDC, AC_HEADER_TIME): Remove obsolete macros. (sys/time.h): Add the check of the header. (time_t): Don't use TIME_WITH_SYS_TIME. * acinclude.m4 (AC_HEADER_TIME): Don't require. Don't use TIME_WITH_SYS_TIME. * dirmngr/dns.c: Don't use TIME_WITH_SYS_TIME. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
82b289328d
commit
6b4441a7de
3 changed files with 9 additions and 22 deletions
12
acinclude.m4
12
acinclude.m4
|
@ -164,18 +164,12 @@ AC_DEFUN([GNUPG_GPG_DISABLE_ALGO],
|
|||
#
|
||||
AC_DEFUN([GNUPG_TIME_T_UNSIGNED],
|
||||
[ AC_CACHE_CHECK(whether time_t is unsigned, gnupg_cv_time_t_unsigned,
|
||||
[AC_REQUIRE([AC_HEADER_TIME])dnl
|
||||
AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY(
|
||||
[AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY(
|
||||
[AC_INCLUDES_DEFAULT([])
|
||||
#if TIME_WITH_SYS_TIME
|
||||
#if HAVE_SYS_TIME_H
|
||||
# include <sys/time.h>
|
||||
# include <time.h>
|
||||
#else
|
||||
# if HAVE_SYS_TIME_H
|
||||
# include <sys/time.h>
|
||||
# else
|
||||
# include <time.h>
|
||||
# endif
|
||||
# include <time.h>
|
||||
#endif
|
||||
],
|
||||
[((time_t)-1) < 0])],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue