bpo-41721: Add xlc options (GH-22096)
diff --git a/configure b/configure
index 4c18ae7..ad74754 100755
--- a/configure
+++ b/configure
@@ -7592,11 +7592,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
diff --git a/configure.ac b/configure.ac
index 3b40f39..f0bc8c6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1993,11 +1993,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