Double-commit 9968e22ce2b7a1a2c0dde04f2413914416da260a to master.
diff --git a/Makefile.in b/Makefile.in
index d9675f4..3eeebde 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -49,6 +49,7 @@
 COMPILE = $(CC) $(DEFS) $(INCDIR) $(CPPFLAGS) $(CFLAGS)
 SRTPLIB	= -lsrtp2
 
+AR      = @AR@
 RANLIB	= @RANLIB@
 INSTALL	= @INSTALL@
 
@@ -127,7 +128,7 @@
 srtpobj = srtp/srtp.o srtp/ekt.o
 
 libsrtp2.a: $(srtpobj) $(cryptobj) $(gdoi)
-	ar cr libsrtp2.a $^
+	$(AR) cr libsrtp2.a $^
 	$(RANLIB) libsrtp2.a
 
 libsrtp2.$(SHAREDLIBSUFFIX): $(srtpobj) $(cryptobj) $(gdoi)