[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 07/21: mhd_check_func.m4: updated
From: |
gnunet |
Subject: |
[libmicrohttpd] 07/21: mhd_check_func.m4: updated |
Date: |
Tue, 14 Mar 2023 19:36:52 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 22686148621de5f3f680808a7364de6087c10608
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri Mar 3 18:15:49 2023 +0300
mhd_check_func.m4: updated
Fixed possible compiler warning with strictest compiler settings
---
m4/mhd_check_func.m4 | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/m4/mhd_check_func.m4 b/m4/mhd_check_func.m4
index 342c12f9..502a9b15 100644
--- a/m4/mhd_check_func.m4
+++ b/m4/mhd_check_func.m4
@@ -37,14 +37,14 @@
#
# LICENSE
#
-# Copyright (c) 2019-2022 Karlson2k (Evgeny Grin) <k2k@narod.ru>
+# Copyright (c) 2019-2023 Karlson2k (Evgeny Grin) <k2k@narod.ru>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved. This file is offered as-is, without any
# warranty.
-#serial 3
+#serial 4
AC_DEFUN([MHD_CHECK_FUNC],[dnl
AC_PREREQ([2.64])dnl for AS_VAR_IF, m4_ifblank, m4_ifnblank
@@ -63,7 +63,18 @@ AC_DEFUN([MHD_CHECK_FUNC],[dnl
LIBS="$LIBS _mhd_norm_expd([$6])"
])dnl
AC_LINK_IFELSE(
- [AC_LANG_PROGRAM([m4_default_nblank([$2],[AC_INCLUDES_DEFAULT])],
[$3]) ],
+ [AC_LANG_SOURCE([
+m4_default_nblank([$2],[AC_INCLUDES_DEFAULT])
+
+int main(void)
+{
+
+ $3
+
+ return 0;
+}
+ ])
+ ],
[AS_VAR_SET([cv_Var],["yes"])], [AS_VAR_SET([cv_Var],["no"])] )
m4_ifnblank([$6],[dnl
LIBS="${mhd_check_func_SAVE_LIBS}"
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (12f637aa -> dcd8ea98), gnunet, 2023/03/14
- [libmicrohttpd] 01/21: daemon.c: fixed heap manipulations with mutex held, gnunet, 2023/03/14
- [libmicrohttpd] 03/21: configure: reordered checks for compiler flags, gnunet, 2023/03/14
- [libmicrohttpd] 06/21: Makefile: fixed build with 'make' without nested vars support, gnunet, 2023/03/14
- [libmicrohttpd] 08/21: mhd_shutdown_socket_trigger.m4: fixed compiler warning, gnunet, 2023/03/14
- [libmicrohttpd] 05/21: configure: fixed checks for tsearch() and related, gnunet, 2023/03/14
- [libmicrohttpd] 07/21: mhd_check_func.m4: updated,
gnunet <=
- [libmicrohttpd] 09/21: configure: fixed some compiler warnings for checks, gnunet, 2023/03/14
- [libmicrohttpd] 10/21: mhd_check_func.m4: added check for function declaration, gnunet, 2023/03/14
- [libmicrohttpd] 11/21: libcurl.m4: updated to the latest version, gnunet, 2023/03/14
- [libmicrohttpd] 13/21: mhd_find_lib.m4: added new autoconf macro, gnunet, 2023/03/14
- [libmicrohttpd] 12/21: libcurl.m4: patched to fix compiler warning, gnunet, 2023/03/14
- [libmicrohttpd] 18/21: configure: cosmetics, gnunet, 2023/03/14
- [libmicrohttpd] 14/21: configure: fixed checking for system libs, fixed .pc file, gnunet, 2023/03/14
- [libmicrohttpd] 15/21: configure: removed check for unused lib and function, gnunet, 2023/03/14
- [libmicrohttpd] 02/21: tsearch.{h,c}: updated to the latest fixed version, gnunet, 2023/03/14
- [libmicrohttpd] 04/21: mhd_check_link_run.m4: fixed typo in comment, gnunet, 2023/03/14