gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 204/335: configure: improved checks for function name ma


From: gnunet
Subject: [libmicrohttpd] 204/335: configure: improved checks for function name magic-macros
Date: Sat, 27 Jul 2024 22:01:40 +0200

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

grothoff pushed a commit to tag stf-m2
in repository libmicrohttpd.

commit 281ce63f421568b114038cf34f467a55d00749ed
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun May 26 17:53:42 2024 +0200

    configure: improved checks for function name magic-macros
---
 configure.ac | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index ff0e57ec..c7acffaf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2373,7 +2373,7 @@ AC_C_VARARRAYS
 
 AC_CACHE_CHECK([[whether __func__ magic-macro is available]],
   [[mhd_cv_macro___func___avail]], [dnl
-  AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stddef.h>]],[[const char 
*funcname = __func__ ; if (NULL == funcname) return 1;]])],
+  AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[const char *funcname = __func__ ; if 
(!funcname) return 1;]])],
     [[mhd_cv_macro___func___avail="yes"]],[[mhd_cv_macro___func___avail="no"]])
 ])
 AS_VAR_IF([mhd_cv_macro___func___avail], ["yes"],
@@ -2381,7 +2381,7 @@ AS_VAR_IF([mhd_cv_macro___func___avail], ["yes"],
   [
     AC_CACHE_CHECK([[whether __FUNCTION__ magic-macro is available]],
       [[mhd_cv_macro___function___avail]], [dnl
-      AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stddef.h>]],[[const char 
*funcname = __FUNCTION__ ; if (NULL == funcname) return 1;]])],
+      AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[const char *funcname = 
__FUNCTION__ ; if (!funcname) return 1;]])],
         
[[mhd_cv_macro___function___avail="yes"]],[[mhd_cv_macro___function___avail="no"]])
     ])
     AS_VAR_IF([mhd_cv_macro___function___avail], ["yes"],
@@ -2389,7 +2389,7 @@ AS_VAR_IF([mhd_cv_macro___func___avail], ["yes"],
       [
         AC_CACHE_CHECK([[whether __PRETTY_FUNCTION__ magic-macro is 
available]],
           [[mhd_cv_macro___pretty_function___avail]], [dnl
-          AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stddef.h>]],[[const char 
*funcname = __PRETTY_FUNCTION__ ; if (NULL == funcname) return 1;]])],
+          AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[const char *funcname = 
__PRETTY_FUNCTION__ ; if (!funcname) return 1;]])],
             
[[mhd_cv_macro___pretty_function___avail="yes"]],[[mhd_cv_macro___pretty_function___avail="no"]])
         ])
         AS_VAR_IF([mhd_cv_macro___pretty_function___avail], ["yes"],

-- 
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]