[PATCH v2] configure.ac: fix bashisms in configure.ac
Sam James
sam@gentoo.org
Tue Mar 22 17:32:43 GMT 2022
> On 22 Mar 2022, at 17:30, Adhemerval Zanella <adhemerval.zanella@linaro.org> wrote:
>
>
>
> On 22/03/2022 14:11, Sam James via Libc-alpha wrote:
>> 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
>> ```
>>
>> Signed-off-by: Sam James <sam@gentoo.org>
>
> I think you need to regenerate the powerpc64le configure as well.
>
Pff:
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: sysdeps/powerpc/powerpc64/le/configure
modified: sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure
Let's fix that...
Best,
sam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 618 bytes
Desc: Message signed with OpenPGP
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20220322/208f1047/attachment.sig>
More information about the Libc-alpha
mailing list