Fix path check.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 14 Oct 2008 20:20:36 +0000 (22:20 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 14 Oct 2008 20:20:36 +0000 (22:20 +0200)
source4/build/m4/check_path.m4

index 666dd3b0ae7fdd5c975a1ffc359936e98cb660ad..f7266e6e446459fba6e743a4cfcad3905cd5764b 100644 (file)
@@ -43,7 +43,7 @@ if test x$fhs = xyes; then
     winbindd_privileged_socket_dir="${localstatedir}/lib/samba/winbindd_privileged"
 else
        # Check to prevent installing directly under /usr without the FHS
-       AS_IF([test $prefix == /usr || $prefix == /usr/local],[
+       AS_IF([test $prefix == /usr || test $prefix == /usr/local],[
                AC_MSG_ERROR([Don't install directly under "/usr" or "/usr/local" without using the FHS option (--enable-fhs). This could lead to file loss!])
        ])
 fi