From c3449b7d721f1a9214082761affd2f03f23a40e6 Mon Sep 17 00:00:00 2001
From: ellson <devnull@localhost>
Date: Thu, 19 Jan 2006 05:10:57 +0000
Subject: [PATCH] -Wno-unused-parameter is only required to work around a bug
 in gcc-3.x.x, but it wasn't available in gcc-2.9x

---
 configure.ac | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index a5da21381..4960296f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -187,7 +187,12 @@ else
 	            CFLAGS="${CFLAGS} -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math"
 		    ;;
 	        * )
-	            CFLAGS="${CFLAGS} -Wno-unused-parameter -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math"
+		    # -Wno-unused-parameter only needed for bug in gcc3
+		    # this test from: http://cvs.auriga.wearlab.de/cgi-bin/cvsweb.cgi/dillo/configure.in?rev=1.90;content-type=text%2Fplain;cvsroot=dillo
+		    if test "`$CC -v 2>&1 | grep 'version 3'`" != ""; then
+		        CFLAGS="${CFLAGS} -Wno-unused-parameter"
+		    fi
+	            CFLAGS="${CFLAGS} -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math"
 	            ;;
             esac
 	    ;;
-- 
2.40.0