 diff --git a/Makefile.in b/Makefile.in
-index 5349180..8e354ee 100644
+index 5349180..4ea8a5d 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -225,20 +225,20 @@ bochs_plugins:
+@@ -83,6 +83,7 @@ SHELL = /bin/sh
+ 
+ @SET_MAKE@
+ 
++AR = @AR@
+ CC = @CC@
+ CXX = @CXX@
+ CFLAGS = @CFLAGS@ @GUI_CFLAGS@ $(MCH_CFLAGS) $(FLA_FLAGS) @DEFINE_PLUGIN_PATH@ -DBX_SHARE_PATH='"$(sharedir)"'
+@@ -225,20 +226,20 @@ bochs_plugins:
  	@CD_UP_ONE@
  
  bximage@EXE@: misc/bximage.o

 
 misc/niclist.o: $(srcdir)/misc/niclist.c
 	$(CC) @DASH@c $(BX_INCDIRS) $(CFLAGS_CONSOLE) $(srcdir)/misc/niclist.c @OFP@$@
diff --git a/config.cc b/config.cc
index 5b752d7..fd35bdc 100755
--- a/config.cc

   *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
     if test "$bx_plugins" = 1; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opendir in -lmingwex" >&5
diff --git a/configure.in b/configure.in
index e8a576b..578103d 100644
--- a/configure.in
+++ b/configure.in
@@ -1867,7 +1867,7 @@ SLASH="/"
 CXXFP=""
 CFP=""
 OFP="-o "
-MAKELIB="ar rv \$@"
+MAKELIB="\$(AR) rv \$@"
 RMCOMMAND="rm -f "
 # first define link variables without libtool
 LINK="\$(CXX) -o \$@ \$(CXXFLAGS) \$(LDFLAGS)"
diff --git a/cpu/Makefile.in b/cpu/Makefile.in
index a6541fd..4d657e9 100644
--- a/cpu/Makefile.in
