]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Rename ./configure option --with-libxml2 to --with-xml2 (#1138)
authorAmos Jeffries <yadij@users.noreply.github.com>
Fri, 9 Sep 2022 11:41:21 +0000 (11:41 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 11 Sep 2022 11:57:04 +0000 (11:57 +0000)
The 'lib' prefix is supposed to be omitted from
--with/--without names but libxml2 was not
correctly implemented from inception.

configure.ac
doc/release-notes/release-6.sgml

index 7a83b5f651441c83296a835996bb927390d6dd30..8064f426ef954961acb54f72fa4d2f0d46436597 100644 (file)
@@ -814,7 +814,7 @@ squid_opt_use_esi=auto
 AH_TEMPLATE([USE_SQUID_ESI],[Define to enable the ESI processor])
 AC_ARG_ENABLE(esi,
   AS_HELP_STRING([--disable-esi],
-                 [Disable ESI for accelerators. ESI requires expat or libxml2.
+                 [Disable ESI for accelerators. ESI requires expat or xml2 library.
                   Enabling ESI will cause squid reverse proxies to be capable
                   of the Edge Acceleration Specification (www.esi.org).]),
                  [squid_opt_use_esi=$enableval],[])
@@ -824,7 +824,7 @@ HAVE_LIBXML2=0
 XMLLIB=
 
 # ESI support libraries: expat
-SQUID_AUTO_LIB(expat,[ESI expat],[LIBEXPAT])
+SQUID_AUTO_LIB(expat,[ESI expat library],[LIBEXPAT])
 AS_IF([test "x$squid_opt_use_esi" != "xno" -a "x$with_expat" != "xno"],[
   AC_CHECK_LIB([expat], [main], [EXPATLIB="-lexpat"; HAVE_LIBEXPAT=1])
   AC_CHECK_HEADERS([expat.h])
@@ -840,9 +840,8 @@ AS_IF([test "x$squid_opt_use_esi" != "xno" -a "x$with_expat" != "xno"],[
   ])
 ])
 
-# TODO: remove this 'lib' prefix to match coding standard
-SQUID_AUTO_LIB(libxml2,[ESI libxml2],[LIBXML2])
-AS_IF([test "x$squid_opt_use_esi" != "xno" -a "x$with_libxml2" != "xno"],[
+SQUID_AUTO_LIB(xml2,[ESI xml2 library],[LIBXML2])
+AS_IF([test "x$squid_opt_use_esi" != "xno" -a "x$with_xml2" != "xno"],[
   SQUID_STATE_SAVE([squid_libxml2_save])
   PKG_CHECK_MODULES([LIBXML2],[libxml-2.0],[],[
     AC_CHECK_LIB([xml2], [main], [LIBXML2_LIBS="$LIBXML2_LIBS -lxml2"])
@@ -876,11 +875,11 @@ AS_IF([test "x$squid_opt_use_esi" != "xno" -a "x$with_libxml2" != "xno"],[
     SQUID_CXXFLAGS="$SQUID_CXXFLAGS $LIBXML2_CFLAGS"
     CPPFLAGS="$CPPFLAGS $LIBXML2_CFLAGS"
     XMLLIB="$LIBXML2_LIBS"
-    AC_DEFINE_UNQUOTED(HAVE_LIBXML2, $HAVE_LIBXML2, [Define to 1 if you have the libxml2 library])
-  ],[test "x$with_libxml2" = "xyes"],[
-    AC_MSG_ERROR([Required library libxml2 not found])
+    AC_DEFINE_UNQUOTED(HAVE_LIBXML2, $HAVE_LIBXML2, [Define to 1 if you have the xml2 library])
+  ],[test "x$with_xml2" = "xyes"],[
+    AC_MSG_ERROR([Required library xml2 not found])
   ],[
-    AC_MSG_NOTICE([Library libxml2 not found.])
+    AC_MSG_NOTICE([Library xml2 not found.])
   ])
 ])
 
index 251ad6974856be4a93c3b7bf2e93976453c662b4..8a6dfd45b88edc3e8015dc53a71ee42ad3538ae2 100644 (file)
@@ -103,7 +103,8 @@ This section gives an account of those changes in three categories:
 <sect1>New options<label id="newoptions">
 <p>
 <descrip>
-       <p>There have been no options added.
+       <tag>--with-xml2</tag>
+       <p>Replacement for <em>--with-libxml2</em>.
 
 </descrip>
 
@@ -125,6 +126,9 @@ This section gives an account of those changes in three categories:
        <tag>--disable-loadable-modules</tag>
        <p>This option was performing the same duties as <em>--disable-shared</em>.
 
+       <tag>--with-libxml2</tag>
+       <p>Replaced by <em>--with-xml2</em>.
+
 </descrip>