]> git.sesse.net Git - vlc/commitdiff
Fix non posix test construction in configure.
authorAlexis Ballier <aballier@gentoo.org>
Tue, 3 Feb 2009 20:10:04 +0000 (21:10 +0100)
committerChristophe Mutricy <xtophe@videolan.org>
Tue, 3 Feb 2009 23:06:52 +0000 (23:06 +0000)
POSIX does not document the == construction for test; Even if GNU test and bash builtin allow it, configure is run by sh and FreeBSD test does not allow it so that this test is always false there.

Signed-off-by: Christophe Mutricy <xtophe@videolan.org>
configure.ac

index 26bc6fde02d95548a6ab392f2f4dddc3b6e8b8f4..b33b2ac7d9c0450fd86d28ea014452d39163fd8b 100644 (file)
@@ -1572,7 +1572,7 @@ dnl Allow runing as root (usefull for people runing on embedded platforms)
 dnl
 AC_ARG_ENABLE(run-as-root,
 [  --enable-run-as-root    allow runing VLC as root (default disabled)])
-AS_IF([test "${enable_run_as_root}" == "yes"],[
+AS_IF([test "${enable_run_as_root}" = "yes"],[
     AC_DEFINE(ALLOW_RUN_AS_ROOT, 1,
               [Define to 1 to allow runing VLC as root (uid 0).])
 ])