configure --with-openjp2 to switch library path (#1871)
https://github.com/ImageMagick/ImageMagick/issues/1869
diff --git a/configure.ac b/configure.ac
index 2b76906..6449c21 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2413,7 +2413,7 @@
LIBOPENJP2_CFLAGS=""
LIBOPENJP2_LIBS=""
LIBOPENJP2_PKG=""
-if test "x$with_openjp2" = "xyes"; then
+if test "$with_openjp2" != 'no'; then
AC_MSG_RESULT([-------------------------------------------------------------])
PKG_CHECK_MODULES(LIBOPENJP2,[libopenjp2 >= 2.1.0], have_openjp2=yes, have_openjp2=no)
AC_MSG_RESULT([])