bpo-41721: Add xlc options (GH-22097)

(cherry picked from commit 84a7917b4c9afec07575065cffa143b91fe98c14)

Authored-by: Stefan Krah <skrah@bytereef.org>
diff --git a/configure b/configure
index 4d9c54f..9e6fd46 100755
--- a/configure
+++ b/configure
@@ -7588,11 +7588,14 @@
     ;;
 esac
 
-# ICC needs -fp-model strict or floats behave badly
 case "$CC" in
 *icc*)
+    # ICC needs -fp-model strict or floats behave badly
     CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
     ;;
+*xlc*)
+    CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1"
+    ;;
 esac
 
 if test "$assertions" = 'true'; then