[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 05/12: mhd_check_func.m4: fixed macro
From: |
gnunet |
Subject: |
[libmicrohttpd] 05/12: mhd_check_func.m4: fixed macro |
Date: |
Sun, 03 Apr 2022 19:19:58 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 203f6b604e99aaf35c4cc5a7b77aeb00530855fe
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Mar 31 15:43:39 2022 +0300
mhd_check_func.m4: fixed macro
Previously macro failed with comma-delimited and quoted parameters
---
m4/mhd_check_func.m4 | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/m4/mhd_check_func.m4 b/m4/mhd_check_func.m4
index 42aefd86..342c12f9 100644
--- a/m4/mhd_check_func.m4
+++ b/m4/mhd_check_func.m4
@@ -48,19 +48,19 @@
AC_DEFUN([MHD_CHECK_FUNC],[dnl
AC_PREREQ([2.64])dnl for AS_VAR_IF, m4_ifblank, m4_ifnblank
- m4_ifblank(m4_translit($1,[()],[ ]), [m4_fatal([First macro argument must
not be empty])])dnl
- m4_ifblank($3, [m4_fatal([Third macro argument must not be empty])])dnl
- m4_bmatch(m4_normalize($1), [\s],dnl
+ m4_ifblank(m4_translit([$1],[()],[ ]), [m4_fatal([First macro argument must
not be empty])])dnl
+ m4_ifblank([$3], [m4_fatal([Third macro argument must not be empty])])dnl
+ m4_bmatch(m4_normalize([$1]), [\s],dnl
[m4_fatal([First macro argument must not contain whitespaces])])dnl
- m4_if(m4_index($3, m4_normalize(m4_translit($1,[()],[ ]))), [-1], dnl
- [m4_fatal([CHECK_CODE parameter (third macro argument) does not
contain ']m4_normalize($1)[' token])])dnl
- AS_VAR_PUSHDEF([cv_Var],
[mhd_cv_func_]m4_bpatsubst(m4_normalize(m4_translit($1,[()],[
])),[[^a-zA-Z0-9]],[_]))dnl
+ m4_if(m4_index([$3], m4_normalize(m4_translit([$1],[()],[ ]))), [-1], dnl
+ [m4_fatal([CHECK_CODE parameter (third macro argument) does not
contain ']m4_normalize([$1])[' token])])dnl
+ AS_VAR_PUSHDEF([cv_Var],
[mhd_cv_func_]m4_bpatsubst(_mhd_norm_expd(m4_translit([$1],[()],[
])),[[^a-zA-Z0-9]],[_]))dnl
dnl
- AC_CACHE_CHECK([for function $1], [cv_Var],
+ AC_CACHE_CHECK([for function $1], cv_Var,
[dnl
m4_ifnblank([$6],[dnl
mhd_check_func_SAVE_LIBS="$LIBS"
- LIBS="$LIBS m4_normalize([$6])"
+ LIBS="$LIBS _mhd_norm_expd([$6])"
])dnl
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([m4_default_nblank([$2],[AC_INCLUDES_DEFAULT])],
[$3]) ],
@@ -71,8 +71,8 @@ AC_DEFUN([MHD_CHECK_FUNC],[dnl
])dnl
])
AS_VAR_IF([cv_Var], ["yes"],
-
[AC_DEFINE([[HAVE_]]m4_bpatsubst(m4_toupper(m4_normalize(m4_translit($1,[()],[
]))),[[^A-Z0-9]],[_]),
- [1], [Define to 1 if you have the
`]m4_normalize(m4_translit($1,[()],[ ]))[' function.])
+
[AC_DEFINE([[HAVE_]]m4_bpatsubst(m4_toupper(_mhd_norm_expd(m4_translit([$1],[()],[
]))),[[^A-Z0-9]],[_]),
+ [1], [Define to 1 if you have the
']_mhd_norm_expd(m4_translit([$1],[()],[ ]))[' function.])
m4_n([$4])dnl
], [$5])
AS_VAR_POPDEF([cv_Var])dnl
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (c310c029 -> 15e2a3a2), gnunet, 2022/04/03
- [libmicrohttpd] 03/12: configure: modified z/OS settings, gnunet, 2022/04/03
- [libmicrohttpd] 01/12: configure: added "auto-optional" value for sanitizers parameter, gnunet, 2022/04/03
- [libmicrohttpd] 04/12: mhd_norm_expd.m4: added autoconf helper macro, gnunet, 2022/04/03
- [libmicrohttpd] 02/12: configure: moved initialisation block, gnunet, 2022/04/03
- [libmicrohttpd] 05/12: mhd_check_func.m4: fixed macro,
gnunet <=
- [libmicrohttpd] 07/12: Added autoconf macro for checking compiler parameters/flags, gnunet, 2022/04/03
- [libmicrohttpd] 10/12: configure: added final reporting for *FLAGS, gnunet, 2022/04/03
- [libmicrohttpd] 08/12: configure: used more reliable test for -fvisibility, gnunet, 2022/04/03
- [libmicrohttpd] 09/12: Moved libtool-specific flags to Makefile, gnunet, 2022/04/03
- [libmicrohttpd] 11/12: Added two helper macros to manipulate *FLAGS vars, gnunet, 2022/04/03
- [libmicrohttpd] 12/12: configure: netter format reporting for *FLAGS, gnunet, 2022/04/03
- [libmicrohttpd] 06/12: configure: added workaround for problematic formating tools, gnunet, 2022/04/03