patch 8.2.2852: configure can add --as-needed a second time

Problem:    Configure can add --as-needed a second time.
Solution:   Only add --as-needed if not already there.  (Natanael Copa,
            closes #8189, closes #8181)
diff --git a/src/version.c b/src/version.c
index 0d3c2ad..f7406ee 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2852,
+/**/
     2851,
 /**/
     2850,