--- configure.in.orig	2003-06-04 18:00:12.000000000 +1000
+++ configure.in	2013-09-27 21:24:54.000000000 +1000
@@ -44,6 +44,7 @@
 dnl Checks for programs.
 
 AC_PROG_CPP
+AM_PROG_AS
 AC_PROG_MAKE_SET
 AC_PROG_LIBTOOL
 
@@ -146,7 +147,6 @@
 CCAS=$CC
 CCASFLAGS=$CFLAGS
 AR_COMPILER=$CC
-AR_FLAGS=$CFLAGS
 
 dnl let's keep autoconf 2.5 happy
 AS=$CC
@@ -157,7 +157,6 @@
 
 
 
-AC_SUBST(AR_FLAGS)
 AC_SUBST(AR_ASM_OBJECTS)
 AC_SUBST(AR_COMPILER)
 AC_SUBST(AR_ASM_FLAGS)