diff options
author | fanquake <fanquake@gmail.com> | 2021-11-24 14:41:33 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-11-24 14:41:33 +0800 |
commit | 082941edf204a0f154f0cf33ce36ab9cf7356f2a (patch) | |
tree | 066d136a253b59f283875fab34f64ff087b5c659 /m4 | |
parent | 0c217f4fe1af6efdb99321401da6f4048398065f (diff) | |
download | libevent-082941edf204a0f154f0cf33ce36ab9cf7356f2a.tar.gz |
build: remove inconsistently used x-prefix comparisons
Given that these are already used inconsistently with `test` checks, it
makes sense to consolidate to not use the x-prefix comparisons at all.
In any case, it would be nice to think we no longer have to work around
a problem that existed in shells many, many years ago.
More info:
https://github.com/koalaman/shellcheck/wiki/SC2268
https://www.vidarholen.net/contents/blog/?p=1035
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ax_check_funcs_ex.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_check_funcs_ex.m4 b/m4/ax_check_funcs_ex.m4 index 7aaa58b0..3efcf263 100644 --- a/m4/ax_check_funcs_ex.m4 +++ b/m4/ax_check_funcs_ex.m4 @@ -4,7 +4,7 @@ # $1: the name of function # $2: the headers in where the function declared AC_DEFUN([AX_CHECK_DECL_EX], [dnl - AS_IF([test "x$2" = "x"], [AC_MSG_ERROR([header not privided])]) + AS_IF([test "$2" = ""], [AC_MSG_ERROR([header not privided])]) AS_VAR_PUSHDEF([have_func_var], [HAVE_[]m4_toupper($1)]) AC_CHECK_DECL([$1],dnl [AC_DEFINE([have_func_var], [1], [Define to 1 if you have the `$1' function.])],,dnl @@ -14,7 +14,7 @@ AC_DEFUN([AX_CHECK_DECL_EX], [dnl ]) AC_DEFUN([AX_CHECK_DECLS_EX], [dnl - AS_IF([test "x$2" = "x"], [AC_MSG_ERROR([header not privided])]) + AS_IF([test "$2" = ""], [AC_MSG_ERROR([header not privided])]) m4_foreach([decl],dnl m4_split(m4_normalize($1)),dnl [AX_CHECK_DECL_EX([decl], [$2])]dnl |