gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] branch master updated (bf199323 -> cc1d7c61)


From: gnunet
Subject: [libmicrohttpd] branch master updated (bf199323 -> cc1d7c61)
Date: Fri, 17 Sep 2021 10:59:11 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a change to branch master
in repository libmicrohttpd.

    from bf199323 Use type specifiers for printf() from inttypes.h
     new acc4cc29 Cosmetics: fixed formatting for 'examples'
     new cc1d7c61 configure: added detection of used run-time lib (type of C 
lib)

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 configure.ac                            | 58 +++++++++++++++++++++++++++++----
 src/examples/benchmark.c                |  2 +-
 src/examples/benchmark_https.c          |  2 +-
 src/microhttpd/microhttpd_dll_res.rc.in |  2 +-
 4 files changed, 54 insertions(+), 10 deletions(-)

diff --git a/configure.ac b/configure.ac
index 0ac7b6b7..23d5a900 100644
--- a/configure.ac
+++ b/configure.ac
@@ -384,13 +384,14 @@ AS_CASE(["$host_os"],
      AC_MSG_RESULT([[$mhd_host_os]])],
   [*cygwin*],
   [AC_DEFINE_UNQUOTED(CYGWIN,1,[This is a Cygwin system])
-     mhd_host_os='Windows (Cygwin)'
+     mhd_host_os='Windows/Cygwin'
      AC_MSG_RESULT([[$mhd_host_os]])
      os_is_windows=yes],
   [*mingw*],
-  [AC_DEFINE_UNQUOTED(MINGW,1,[This is a MinGW system])
-     AC_DEFINE_UNQUOTED(WINDOWS,1,[This is a Windows system])
-     mhd_host_os='Windows (MinGW)'
+  [
+    AC_DEFINE([MINGW],[1],[This is a MinGW system])
+     AC_DEFINE([WINDOWS],[1],[This is a Windows system])
+     mhd_host_os='Windows/MinGW'
      AC_MSG_RESULT([[$mhd_host_os]])
      LIBS="$LIBS -lws2_32"
      AC_CHECK_HEADERS([winsock2.h ws2tcpip.h], [], [AC_MSG_ERROR([[Winsock2 
headers are required for W32]])], [AC_INCLUDES_DEFAULT])
@@ -416,8 +417,8 @@ AS_CASE(["$host_os"],
      AC_MSG_RESULT([[$mhd_host_os]])
     ],
     [
-     mhd_host_os='unrecognised OS'
-     AC_MSG_RESULT([[$mhd_host_os]])
+     AC_MSG_RESULT([unrecognised OS])
+     mhd_host_os="${host_os}"
      AC_MSG_WARN([Unrecognised OS $host_os])
      AC_DEFINE_UNQUOTED(OTHEROS,1,[Some strange OS])
  ])
@@ -591,6 +592,49 @@ choke me now;
   ]
 )
 
+AS_IF([test "x${os_is_windows}" = "xyes" && test "x${os_is_native_w32}" = 
"xyes"],
+  [
+    AC_CACHE_CHECK([W32 run-time library type], [mhd_cv_wctr_type],
+      [
+        AC_EGREP_CPP([MHDMARKER: UCRT run-time library in use!], [
+#include <stdio.h>
+#if defined(_UCRT)
+#define CRT_STR "MHDMARKER: UCRT run-time library in use!"
+#endif
+#if defined(__MSVCRT_VERSION__)
+#if (__MSVCRT_VERSION__ >= 0xE00) && (__MSVCRT_VERSION__ < 0x1000)
+#define CRT_STR "MHDMARKER: UCRT run-time library in use!"
+#endif
+#if (__MSVCRT_VERSION__ > 0x1400)
+#define CRT_STR "MHDMARKER: UCRT run-time library in use!"
+#endif
+#endif
+
+#ifndef CRT_STR
+#define CRT_STR "MHDMARKER: MSVCRT run-time library in use!"
+#endif
+
+int main(void)
+{
+  printf ("%\n", CRT_STR);
+  return 0;
+}
+          ],
+          [mhd_cv_wctr_type="ucrt"], [mhd_cv_wctr_type="msvcrt"])
+      ]
+    )
+    mhd_host_os="${mhd_host_os}-${mhd_cv_wctr_type}"
+    AS_VAR_IF([mhd_cv_wctr_type], ["msvcrt"],
+      [
+        AX_APPEND_COMPILE_FLAGS([-D__USE_MINGW_ANSI_STDIO=0], [CPPFLAGS])
+        AC_SUBST([W32CRT], [MSVCRT])
+      ], [AC_SUBST([W32CRT], [UCRT])]
+    )
+  ]
+)
+
+
+
 AC_ARG_WITH([threads],
    [AS_HELP_STRING([--with-threads=LIB],[choose threading library (posix, w32, 
auto, none) [auto]])],
    [], [with_threads='auto'])
@@ -2811,7 +2855,7 @@ AS_VAR_IF([os_is_windows], ["yes"],
 AC_MSG_NOTICE([GNU libmicrohttpd ${PACKAGE_VERSION} Configuration Summary:
   Target directory:  ${prefix}
   Cross-compiling:   ${cross_compiling}
-  Operating System:  ${host_os}${os_ver_msg}
+  Operating System:  ${mhd_host_os}${os_ver_msg}
   Shutdown of listening socket triggers select: 
${mhd_cv_host_shtdwn_trgr_select}
   Inter-thread comm: ${use_itc}
   poll support:      ${enable_poll=no}
diff --git a/src/examples/benchmark.c b/src/examples/benchmark.c
index ae3100bb..a579d42b 100644
--- a/src/examples/benchmark.c
+++ b/src/examples/benchmark.c
@@ -173,7 +173,7 @@ main (int argc, char *const *argv)
   (void) getc (stdin);
   MHD_stop_daemon (d);
   MHD_destroy_response (response);
-  for (i = 0; i<SMALL; i++)
+  for (i = 0; i < SMALL; i++)
     if (0 != small_deltas[i])
       fprintf (stdout, "D: %d %u\n", i, small_deltas[i]);
   return 0;
diff --git a/src/examples/benchmark_https.c b/src/examples/benchmark_https.c
index d5051088..ddc3be19 100644
--- a/src/examples/benchmark_https.c
+++ b/src/examples/benchmark_https.c
@@ -237,7 +237,7 @@ main (int argc, char *const *argv)
   (void) getc (stdin);
   MHD_stop_daemon (d);
   MHD_destroy_response (response);
-  for (i = 0; i<SMALL; i++)
+  for (i = 0; i < SMALL; i++)
     if (0 != small_deltas[i])
       fprintf (stdout, "D: %d %u\n", i, small_deltas[i]);
   return 0;
diff --git a/src/microhttpd/microhttpd_dll_res.rc.in 
b/src/microhttpd/microhttpd_dll_res.rc.in
index 72300591..c6db3f8e 100644
--- a/src/microhttpd/microhttpd_dll_res.rc.in
+++ b/src/microhttpd/microhttpd_dll_res.rc.in
@@ -19,7 +19,7 @@ BEGIN
             VALUE "ProductName", "GNU libmicrohttpd\0"
             VALUE "ProductVersion", "@PACKAGE_VERSION@\0"
             VALUE "FileVersion", "@PACKAGE_VERSION@\0"
-            VALUE "FileDescription", "GNU libmicrohttpd DLL for Windows (MinGW 
build)\0"
+            VALUE "FileDescription", "GNU libmicrohttpd DLL for Windows (MinGW 
build, @W32CRT@ run-time lib)\0"
             VALUE "InternalName", "libmicrohttpd\0"
             VALUE "OriginalFilename", "libmicrohttpd-@MHD_W32_DLL_SUFF@.dll\0"
             VALUE "CompanyName", "Free Software Foundation\0"

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]