Imported Upstream version 3.1.0
[debian/amanda] / config / amanda / userid.m4
index c659395a51e9fb88516d918dee89fa93290e00c4..7fa2f1d9cdbf17f6242d3f52a9eba9cd137c580c 100644 (file)
@@ -29,7 +29,7 @@ AC_DEFUN([AMANDA_DISABLE_INSTALLPERMS],
 #
 #   Handle the --without-force-id option, which disables userid checks for
 #   all Amanda applications.  Defines and substitutes CHECK_USERID *unless* 
-#   this option is given.
+#   this option is given, and also sets AM_CONDITIONAL CHECK_USERID
 #
 AC_DEFUN([AMANDA_WITH_FORCE_UID],
 [
@@ -52,6 +52,7 @@ AC_DEFUN([AMANDA_WITH_FORCE_UID],
             AC_MSG_ERROR([*** You must not supply an argument to --with-force-uid option.])
     esac
     AC_SUBST(CHECK_USERID)
+    AM_CONDITIONAL(CHECK_USERID, test x"$CHECK_USERID" = x"1")
 ])
 
 # SYNOPSIS
@@ -170,7 +171,7 @@ AC_DEFUN([AMANDA_WITH_SINGLE_USERID],
             [force amanda to run as a single userid (for testing)]),
         [   SINGLE_USERID=$withval ])
 
-    case "$target" in
+    case "$host" in
         *-pc-cygwin)
             WANT_SETUID_CLIENT=false
            SINGLE_USERID=yes