diff options
author | Sam James <sam@gentoo.org> | 2022-03-22 17:33:09 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-03-22 21:53:43 -0400 |
commit | cb7b1c9014945cb79cdd0b375e65724d6c574a8c (patch) | |
tree | 746e7102985b8312f3bb9873db7c1665ff5d49b7 /configure.ac | |
parent | getaddrinfo: Refactor code for readability (diff) | |
download | glibc-cb7b1c9014945cb79cdd0b375e65724d6c574a8c.tar.gz glibc-cb7b1c9014945cb79cdd0b375e65724d6c574a8c.tar.bz2 glibc-cb7b1c9014945cb79cdd0b375e65724d6c574a8c.zip |
configure.ac: fix bashisms in configure.ac
configure scripts need to be runnable with a POSIX-compliant /bin/sh.
On many (but not all!) systems, /bin/sh is provided by Bash, so errors
like this aren't spotted. Notably Debian defaults to /bin/sh provided
by dash which doesn't tolerate such bashisms as '=='.
This retains compatibility with bash.
Fixes configure warnings/errors like:
```
checking if compiler warns about alias for function with incompatible types... yes
/var/tmp/portage/sys-libs/glibc-2.34-r10/work/glibc-2.34/configure: 4209: test: xyes: unexpected operator
```
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 87f67d25ec..fa7d3c025b 100644 --- a/configure.ac +++ b/configure.ac @@ -767,7 +767,7 @@ if test x"$libc_cv_gcc_indirect_function" != xyes; then # GCC 8+ emits a warning for alias with incompatible types and it might # fail to build ifunc resolvers aliases to either weak or internal # symbols. Disables multiarch build in this case. - if test x"$libc_cv_gcc_incompatible_alias" == xyes; then + if test x"$libc_cv_gcc_incompatible_alias" = xyes; then AC_MSG_WARN([gcc emits a warning for alias between functions of incompatible types]) if test x"$multi_arch" = xyes; then AC_MSG_ERROR([--enable-multi-arch support requires a gcc with gnu-indirect-function support]) |