--- m4/ax_ext_have_lib.m4	2010-12-03 12:10:34.776318456 -0300
+++ /home/Sergio/Descargas/autoconf-archive-8650e23/m4/ax_ext_have_lib.m4	2010-11-25 12:13:59.000000000 -0300
@@ -38,7 +38,7 @@
 #   and this notice are preserved. This file is offered as-is, without any
 #   warranty.
 
-#serial 8
+#serial 7
 
 AC_DEFUN([AX_EXT_HAVE_LIB],
 [
@@ -61,12 +61,12 @@
 LDFLAGS=$ext_func_save_ldflags
 ])
 if eval `echo 'test x${'ext_cv${ext_haslib_cvdir}_haslib_$2'}' = "xyes"`; then
-new_libs="-l$2 $4"
+new_libs="-l$2 ${new_libs}"
 new_ldflags="-L${dir} ${new_ldflags}"
 ext_lib_found="yes"
 fi
 fi
 done
-LIBS="$new_libs ${LIBS}"
+LIBS=$new_libs
 LDFLAGS=$new_ldflags
 ])
