]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
configure.ac: fix bashism
authorSam James <sam@gentoo.org>
Wed, 14 Sep 2022 14:11:58 +0000 (08:11 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 14 Sep 2022 14:12:47 +0000 (08:12 -0600)
commit4fc7dc1036676901d555fe296cca661a783e405b
tree7276a6d4f3effc8e02487d1097daabcf1608fe8a
parent4362c8d32d5d8813a9a40bebe744aeaec5fbf953
configure.ac: fix bashism

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 whether to build static libraries... no
./configure: 14089: test: xno: unexpected operator
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
```

Signed-off-by: Sam James <sam@gentoo.org>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
configure.ac