summaryrefslogtreecommitdiffstats
path: root/comm/third_party/libgpg-error/m4/estream.m4
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
commit6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /comm/third_party/libgpg-error/m4/estream.m4
parentInitial commit. (diff)
downloadthunderbird-upstream.tar.xz
thunderbird-upstream.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'comm/third_party/libgpg-error/m4/estream.m4')
-rw-r--r--comm/third_party/libgpg-error/m4/estream.m450
1 files changed, 50 insertions, 0 deletions
diff --git a/comm/third_party/libgpg-error/m4/estream.m4 b/comm/third_party/libgpg-error/m4/estream.m4
new file mode 100644
index 0000000000..deb972dc75
--- /dev/null
+++ b/comm/third_party/libgpg-error/m4/estream.m4
@@ -0,0 +1,50 @@
+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_CHECK_HEADERS(stdint.h)
+ 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 THOUSEP],
+ estream_cv_langinfo_thousep,
+ [AC_LINK_IFELSE(
+ [AC_LANG_PROGRAM([[#include <langinfo.h>]],
+ [[char* cs = nl_langinfo(THOUSEP); return !cs;]])],
+ estream_cv_langinfo_thousep=yes,
+ estream_cv_langinfo_thousep=no)
+ ])
+ if test $estream_cv_langinfo_thousep = yes; then
+ AC_DEFINE(HAVE_LANGINFO_THOUSEP, 1,
+ [Define if you have <langinfo.h> and nl_langinfo(THOUSEP).])
+ 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])
+ AC_CHECK_FUNCS([memrchr])
+])