build: fix setuid check
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 10 Apr 2015 16:55:27 +0000 (11:55 -0500)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 13 Apr 2015 06:52:16 +0000 (09:52 +0300)
At least in some shells test needs 3 arguments for string comparison

if test $foo=yes ...

will always be true.

if test $foo = yes ...

will perform a string comparison.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-By: Giulio Camuffo <giuliocamuffo@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Makefile.am

index c1347b8..2f16fac 100644 (file)
@@ -165,7 +165,7 @@ install-exec-hook:
        chown root $(DESTDIR)$(bindir)/weston-launch \
                && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
                && can_suid_files=yes;\
-       if test $$can_suid_files=no; then \
+       if test $$can_suid_files = no; then \
                echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
                echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
                false; \