  	install -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig
 -	install x264 $(DESTDIR)$(bindir)
 -	ranlib $(DESTDIR)$(libdir)/libx264.a
-+	install x264$(EXE)  $(DESTDIR)$(bindir)
++	install x264$(EXE) $(DESTDIR)$(bindir)
 +	$(RANLIB) $(DESTDIR)$(libdir)/libx264.a
  	$(if $(SONAME), ln -sf $(SONAME) $(DESTDIR)$(libdir)/libx264.so)
  	$(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(libdir))

 # autodetect options that weren't forced nor disabled
 
 if test "$pthread" = "auto" ; then
@@ -365,6 +374,9 @@
 VFW=$vfw
 GTK=$gtk
 EXE=$EXE
+AR=$AR
+AROPTS=$AROPTS
+RANLIB=$RANLIB
 VIS=$vis
 HAVE_GETOPT_LONG=$HAVE_GETOPT_LONG
 DEVNULL=$DEVNULL
Index: Makefile
===================================================================
--- Makefile	(rvision 547)
+++ Makefile	(copie de travail)
@@ -64,8 +64,8 @@
 default: $(DEP) x264$(EXE)
 

+    esac
+done
+
+
 case "${MACHINE#*-*-}" in
   beos*)
     SYS="BEOS"
@@ -180,96 +281,6 @@
 esac
 
 CFLAGS="$CFLAGS -DARCH_$ARCH -DSYS_$SYS"
-
-# parse options
-
-for opt do
-    optarg="${opt#*=}"
