mirror of
git://git.gnupg.org/gnupg.git
synced 2024-10-29 19:48:43 +01:00
51dc05c308
* 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>
(cherry picked from commit 6b4441a7de
)
44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
dnl Check for a tar program that speaks ustar format
|
|
dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc.
|
|
dnl
|
|
dnl This file is free software, distributed under the terms of the GNU
|
|
dnl General Public License. As a special exception to the GNU General
|
|
dnl Public License, this file may be distributed as part of a program
|
|
dnl that contains a configuration script generated by Autoconf, under
|
|
dnl the same distribution terms as the rest of that program.
|
|
|
|
AC_DEFUN([GNUPG_CHECK_USTAR],
|
|
[
|
|
AC_ARG_WITH(tar,
|
|
AS_HELP_STRING([--with-tar=PATH],[look for a tar program in PATH]),
|
|
[_do_tar=$withval])
|
|
|
|
if test x$_do_tar != xno ; then
|
|
|
|
if test x$_do_tar = x ; then
|
|
AC_PATH_PROG(TAR,"tar")
|
|
_mytar=$ac_cv_path_TAR
|
|
fi
|
|
|
|
# Check if our tar is ustar format. If so, it's good. TODO: Add some
|
|
# code to check various options, etc, to try and create ustar
|
|
# format.
|
|
|
|
if test x$_mytar != x ; then
|
|
AC_MSG_CHECKING([whether $_mytar speaks USTAR])
|
|
echo hithere > conftest.txt
|
|
$_mytar -cf - conftest.txt | (dd skip=257 bs=1 count=5 2>/dev/null || cat) | grep ustar > /dev/null
|
|
_tar_bad=$?
|
|
rm conftest.txt
|
|
|
|
if test x$_tar_bad = x0 ; then
|
|
AC_MSG_RESULT([yes])
|
|
else
|
|
AC_MSG_RESULT([no])
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
AM_CONDITIONAL(HAVE_USTAR, test x$_tar_bad = x0)
|
|
])dnl
|