--- configure.ac.orig	2005-05-08 07:36:03.000000000 +0500
+++ configure.ac	2006-12-20 19:32:23.000000000 +0500
@@ -56,11 +56,13 @@
 
 AC_CHECK_TOOL(CC, gcc)
 AC_PROG_CC
+AM_PROG_CC_C_O
 # We need this for older versions of Autoconf.
 _AM_DEPENDENCIES(CC)
 
 dnl Because recent automake complains about AS, set it here.
 CCAS="$CC"
+AM_PROG_AS
 AC_SUBST(CCAS)
 
 AC_ARG_WITH(binutils,
