cf: Fix typo in test for enable-shared/with-swig 28/14628/3
authorCheyenne Wills <cwills@sinenomine.net>
Tue, 1 Jun 2021 18:17:01 +0000 (12:17 -0600)
committerBenjamin Kaduk <kaduk@mit.edu>
Tue, 1 Jun 2021 21:19:19 +0000 (17:19 -0400)
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 <kaduk@mit.edu>
Tested-by: Benjamin Kaduk <kaduk@mit.edu>

src/cf/swig.m4

index 1d1eae2..e88cf7f 100644 (file)
@@ -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