From a73d337a55d4800b67b0ce3c60cb1d5f5fbc7519 Mon Sep 17 00:00:00 2001 From: Cheyenne Wills Date: Tue, 1 Jun 2021 12:17:01 -0600 Subject: [PATCH] cf: Fix typo in test for enable-shared/with-swig The commit cf: Disable swig if shared libraries are disabled (0e84b7405) contains a typo in a test: "x$enable_shared" != "yes". This causes configure to exit due to incorrectly testing --enable-shared. Update swig.m4 to correct the typo. Change-Id: I0d769ec41e2e7896f2232965b5eaa19734033c83 Reviewed-on: https://gerrit.openafs.org/14628 Reviewed-by: Benjamin Kaduk Tested-by: Benjamin Kaduk --- src/cf/swig.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cf/swig.m4 b/src/cf/swig.m4 index 1d1eae2f84..e88cf7fb75 100644 --- a/src/cf/swig.m4 +++ b/src/cf/swig.m4 @@ -18,7 +18,7 @@ LIBUAFS_BUILD_PERL= dnl Building with swig requires shared library support. If --disable-shared dnl was specified, turn off auto detection (with a notice). If --with-swig=yes dnl generate an error message -AS_IF([test "x$enable_shared" != "yes" && test "x$with_swig" != "xno"], +AS_IF([test "x$enable_shared" != "xyes" && test "x$with_swig" != "xno"], [AS_IF([test "x$with_swig" = "xyes"], [AC_MSG_ERROR([--with-swig is incompatible with --disable-shared])], [with_swig=no