--- configure.orig	2018-08-26 21:44:54
+++ configure	2024-11-09 13:24:53
@@ -17170,7 +17170,7 @@
   esac
   case "X${ag_cv_with_libxml2_libs}" in
   Xyes|Xno|X )
-    f=`xml2-config --libs 2>/dev/null` || f=''
+    f=`xml2-config --libs --dynamic 2>/dev/null` || f=''
     test -n "${f}" && ag_cv_with_libxml2_libs="${f}" && \
       { $as_echo "$as_me:${as_lineno-$LINENO}: xml2-config used for LIBS: $f" >&5
 $as_echo "$as_me: xml2-config used for LIBS: $f" >&6;} ;;
