pam: fix test usage in configure script

The standard test command does not support the == operator. Certain
shells, including bash, do support it, but in those shells it does
exactly the same thing as the standard = operator. Use that instead.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Signed-off-by: Harald van Dijk <harald@gigawatt.nl>
Closes #10509
This commit is contained in:
Harald van Dijk 2020-06-29 17:28:22 +01:00 committed by GitHub
parent 3c42c9ed84
commit 2ac6aa1176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_PAM], [
AC_CHECK_HEADERS([security/pam_modules.h], [
enable_pam=yes
], [
AS_IF([test "x$enable_pam" == "xyes"], [
AS_IF([test "x$enable_pam" = "xyes"], [
AC_MSG_FAILURE([
*** security/pam_modules.h missing, libpam0g-dev package required
])
@ -28,7 +28,7 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_PAM], [
])
])
])
AS_IF([test "x$enable_pam" == "xyes"], [
AS_IF([test "x$enable_pam" = "xyes"], [
DEFINE_PAM='--with "pam" --define "_pamconfigsdir $(pamconfigsdir)"'
])
AC_SUBST(DEFINE_PAM)