]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
configure: fix bashim of --enable-samples option
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 6 Oct 2022 20:26:52 +0000 (14:26 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 6 Oct 2022 20:26:55 +0000 (14:26 -0600)
Make the --enable-samples option's bash code POSIX-complaint.  There
might be warnings issued while running configure on other shells like
/bin/sh, those default on Debian systems.

Fixes: 6197ca3d693f ("configure: introduce --enable-samples option")
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit d3ac1bb4cd0ab94fb168bbcaa917496a7d537c64)

configure.ac

index e58db4d3b65deff317b57a0f9010789b5ec1cb45..b9fb7dd7915cd1bb546e78b90a17657c6ed1c8ab 100644 (file)
@@ -149,7 +149,7 @@ AM_CONDITIONAL([WITH_TESTS], [test x$with_tests = xtrue])
 AC_ARG_ENABLE([samples],
       [AS_HELP_STRING([--enable-samples],[compile libcgroup samples C programs [default=no]])],
       [
-               if test "x$enableval" == xno; then
+               if test "x$enableval" = xno; then
                        with_samples=false
                else
                        with_samples=true