From 1fd2bc8c37a053b5de531ba1380c18b014a94d9b Mon Sep 17 00:00:00 2001
From: J Raynor <jxraynor@gmail.com>
Date: Sat, 5 Mar 2016 16:38:35 +0100
Subject: [PATCH] Make FreeType compile on AIX out of the box.

* builds/unix/configure.raw (XX_ANSIFLAGS): Don't use `-ansi' on
AIX.
---
 ChangeLog                 | 7 +++++++
 builds/unix/configure.raw | 3 +++
 2 files changed, 10 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index b82799255..4c3cab8e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-03-05  J Raynor <jxraynor@gmail.com>
+
+	Make FreeType compile on AIX out of the box.
+
+	* builds/unix/configure.raw (XX_ANSIFLAGS): Don't use `-ansi' on
+	AIX.
+
 2016-03-01  Werner Lemberg  <wl@gnu.org>
 	    Kostya Serebryany  <kcc@google.com>
 
diff --git a/builds/unix/configure.raw b/builds/unix/configure.raw
index 1be10a3ca..ee814749a 100644
--- a/builds/unix/configure.raw
+++ b/builds/unix/configure.raw
@@ -235,6 +235,9 @@ if test "x$GCC" = xyes; then
   *-*-mingw*)
     XX_ANSIFLAGS="-pedantic"
     ;;
+  *-*-aix*)
+    XX_ANSIFLAGS="-pedantic"
+    ;;
   *)
     GCC_VERSION=`$CC -dumpversion`
     GCC_MAJOR=`echo "$GCC_VERSION" | sed 's/\([[^.]][[^.]]*\).*/\1/'`