[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 119/156: configure: fixed detection of __FUNCTION__ magi
From: |
gnunet |
Subject: |
[libmicrohttpd] 119/156: configure: fixed detection of __FUNCTION__ magic macro |
Date: |
Sun, 28 May 2023 17:52:52 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.
commit a491e892e183b37c03bb742b28f41daf3022c0c7
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri May 19 14:24:36 2023 +0300
configure: fixed detection of __FUNCTION__ magic macro
---
configure.ac | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 344a6ee9..d7bb6da1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1279,7 +1279,19 @@ AS_VAR_IF([mhd_cv_macro___func___avail], ["yes"],
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stddef.h>]],[[const char
*funcname = __FUNCTION__ ; if (NULL == funcname) return 1;]])],
[[mhd_cv_macro___function___avail="yes"]],[[mhd_cv_macro___function___avail="no"]])
])
- AC_DEFINE([HAVE___FUNCTION__], [1], [Define to 1 if your compiler supports
__FUNCTION__ magic-macro.])
+ AS_VAR_IF([mhd_cv_macro___function___avail], ["yes"],
+ [AC_DEFINE([HAVE___FUNCTION__], [1], [Define to 1 if your compiler
supports __FUNCTION__ magic-macro.])],
+ [
+ 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;]])],
+
[[mhd_cv_macro___pretty_function___avail="yes"]],[[mhd_cv_macro___pretty_function___avail="no"]])
+ ])
+ AS_VAR_IF([mhd_cv_macro___pretty_function___avail], ["yes"],
+ [AC_DEFINE([HAVE___PRETTY_FUNCTION__], [1], [Define to 1 if your
compiler supports __PRETTY_FUNCTION__ magic-macro.])],
+ )
+ ]
+ )
]
)
AC_CACHE_CHECK([[whether __builtin_bswap32() is available]],
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 100/156: test_toolarge: fixed reported error description, (continued)
- [libmicrohttpd] 100/156: test_toolarge: fixed reported error description, gnunet, 2023/05/28
- [libmicrohttpd] 108/156: test_client_put_stop: fixed typo in comment, gnunet, 2023/05/28
- [libmicrohttpd] 105/156: Removed redundant autopoint file, gnunet, 2023/05/28
- [libmicrohttpd] 118/156: examples/http_chunked_compression.c: fixed void pointer arithmetic, gnunet, 2023/05/28
- [libmicrohttpd] 126/156: testcurl/https: moved certs variable declaration to the header, gnunet, 2023/05/28
- [libmicrohttpd] 116/156: examples/sessions.c: removed non-portable function, gnunet, 2023/05/28
- [libmicrohttpd] 132/156: W32 VS projects: unified output and intermediate directories, gnunet, 2023/05/28
- [libmicrohttpd] 133/156: W32 VS projects: disabled specific compiler warning on ARM, gnunet, 2023/05/28
- [libmicrohttpd] 111/156: test_timeout: moved to heavy tests, gnunet, 2023/05/28
- [libmicrohttpd] 97/156: test_put_header_fold: adopted to new libcurl API, gnunet, 2023/05/28
- [libmicrohttpd] 119/156: configure: fixed detection of __FUNCTION__ magic macro,
gnunet <=
- [libmicrohttpd] 123/156: test_client_put_stop: muted compiler warnings, gnunet, 2023/05/28
- [libmicrohttpd] 124/156: testcurl/https: removed enforcement of TLS version and cipher, gnunet, 2023/05/28
- [libmicrohttpd] 128/156: websocket_threaded_example: fixed wrong commented-out code, gnunet, 2023/05/28
- [libmicrohttpd] 130/156: test_client_put_stop: fixed typo in diag message, gnunet, 2023/05/28
- [libmicrohttpd] 134/156: W32 VS projects: fixed: define 'WIN32' only on x32 platforms, gnunet, 2023/05/28
- [libmicrohttpd] 137/156: ChangeLog: updated, gnunet, 2023/05/28
- [libmicrohttpd] 91/156: autoinit_funcs.h: added more macros checks for platform identification, gnunet, 2023/05/28
- [libmicrohttpd] 122/156: tests: fixed code style, gnunet, 2023/05/28
- [libmicrohttpd] 121/156: tests: unified use of function name macros, gnunet, 2023/05/28
- [libmicrohttpd] 127/156: Updated test keys to use SHA-256 hash instead of SHA-1, gnunet, 2023/05/28