mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
First set of changes to backport the new card code from 2.0.
For compatibility reasons a few new files had to be added. Also added estream-printf as this is now used in app-openpgp.c and provides a better and generic asprintf implementation than the hack we used for the W32 code in ttyio.c. Card code is not yet finished.
This commit is contained in:
parent
b478389753
commit
3459c6b015
37 changed files with 7385 additions and 1694 deletions
|
@ -1,3 +1,7 @@
|
|||
2009-07-21 Werner Koch <wk@g10code.com>
|
||||
|
||||
* estream.m4: New. Taken from libestream.
|
||||
|
||||
2007-12-17 Werner Koch <wk@g10code.com>
|
||||
|
||||
* ldap.m4: Test for ldap_start_tls_sA.
|
||||
|
|
|
@ -6,6 +6,7 @@ EXTRA_DIST = glibc2.m4 intl.m4 intldir.m4 lock.m4 visibility.m4 intmax.m4 longdo
|
|||
po.m4 progtest.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 \
|
||||
readline.m4 libcurl.m4 libusb.m4 tar-ustar.m4 \
|
||||
ldap.m4 \
|
||||
noexecstack.m4 autobuild.m4
|
||||
noexecstack.m4 autobuild.m4 estream.m4
|
||||
|
||||
|
||||
|
||||
|
|
48
m4/estream.m4
Normal file
48
m4/estream.m4
Normal file
|
@ -0,0 +1,48 @@
|
|||
dnl Autoconf macros for libestream
|
||||
dnl Copyright (C) 2007 g10 Code GmbH
|
||||
dnl
|
||||
dnl This file is free software; as a special exception the author gives
|
||||
dnl unlimited permission to copy and/or distribute it, with or without
|
||||
dnl modifications, as long as this notice is preserved.
|
||||
dnl
|
||||
dnl This file is distributed in the hope that it will be useful, but
|
||||
dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
||||
dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
dnl estream_PRINTF_INIT
|
||||
dnl Prepare build of source included estream-printf.c
|
||||
dnl
|
||||
AC_DEFUN([estream_PRINTF_INIT],
|
||||
[
|
||||
AC_MSG_NOTICE([checking system features for estream-printf])
|
||||
AC_TYPE_LONG_LONG_INT
|
||||
AC_TYPE_LONG_DOUBLE
|
||||
AC_TYPE_INTMAX_T
|
||||
AC_TYPE_UINTMAX_T
|
||||
AC_CHECK_TYPES([ptrdiff_t])
|
||||
AC_CHECK_SIZEOF([unsigned long])
|
||||
AC_CHECK_SIZEOF([void *])
|
||||
AC_CACHE_CHECK([for nl_langinfo and THOUSANDS_SEP],
|
||||
estream_cv_langinfo_thousands_sep,
|
||||
[AC_TRY_LINK([#include <langinfo.h>],
|
||||
[char* cs = nl_langinfo(THOUSANDS_SEP); return !cs;],
|
||||
estream_cv_langinfo_thousands_sep=yes,
|
||||
estream_cv_langinfo_thousands_sep=no)
|
||||
])
|
||||
if test $estream_cv_langinfo_thousands_sep = yes; then
|
||||
AC_DEFINE(HAVE_LANGINFO_THOUSANDS_SEP, 1,
|
||||
[Define if you have <langinfo.h> and nl_langinfo(THOUSANDS_SEP).])
|
||||
fi
|
||||
])
|
||||
|
||||
|
||||
dnl estream_INIT
|
||||
dnl Prepare build of source included estream.c
|
||||
dnl
|
||||
AC_DEFUN([estream_INIT],
|
||||
[
|
||||
AC_REQUIRE([estream_PRINTF_INIT])
|
||||
AC_MSG_NOTICE([checking system features for estream])
|
||||
|
||||
])
|
Loading…
Add table
Add a link
Reference in a new issue