 Index: configure
 ===================================================================
---- configure	(rvision 547)
-+++ configure	(copie de travail)
-@@ -66,48 +66,147 @@
+--- configure	(revision 560)
++++ configure	(working copy)
+@@ -66,8 +66,109 @@
  
  EXE=""
  
--UNAMES="`uname -s`"
 +AR="ar"
 +AROPTS="rc"
 +RANLIB="ranlib"
 +
-+UNAMES="`uname -s |tr A-Z a-z`"
-+UNAMEM="`uname -m |tr A-Z a-z`"
-+
+ MACHINE="$(./config.guess)"
+ 
 +# parse options
 +
 +for opt do
 +    optarg="${opt#*=}"
 +    case "$opt" in
-+       --crosscompile=*)
-+           CROSS="$optarg"
-+           CC="$CROSS-gcc"
-+           AR="$CROSS-ar"
-+           RANLIB="$CROSS-ranlib"
-+           UNAMES="`echo $CROSS | cut -d- -f2`"
-+           UNAMEM="`echo $CROSS | cut -d- -f1`"
-+           ;;
-+       --prefix=*)
-+           prefix="$optarg"
-+           ;;
-+       --exec-prefix=*)
-+           eprefix="$optarg"
-+           ;;
-+       --bindir=*)
-+           bindir="$optarg"
-+           ;;
-+       --libdir=*)
-+           libdir="$optarg"
-+           ;;
-+       --includedir=*)
-+           includedir="$optarg"
-+           ;;
++	--crosscompile=*)
++            CROSS="$optarg"
++            CC="$CROSS-gcc"
++            AR="$CROSS-ar"
++            RANLIB="$CROSS-ranlib"
++            MACHINE="`echo $CROSS | sed -e 's/-/-x-/g'`"
++	    ;;
++        --prefix=*)
++            prefix="$optarg"
++            ;;
++        --exec-prefix=*)
++            exec_prefix="$optarg"
++            ;;
++        --bindir=*)
++            bindir="$optarg"
++            ;;
++        --libdir=*)
++            libdir="$optarg"
++            ;;
++        --includedir=*)
++            includedir="$optarg"
++            ;;
 +        --enable-avis-input)
-+            if [ $SYS = CYGWIN -o $SYS = MINGW ]; then
-+                CFLAGS="$CFLAGS -DAVIS_INPUT"
-+                LDFLAGS="$LDFLAGS -lvfw32"
-+                avis_input="yes"
-+            fi
++            avis_input="yes"
++            ;;
++        --disable-avis-input)
++            avis_input="no"
 +            ;;
 +        --enable-mp4-output)
-+            CFLAGS="$CFLAGS -DMP4_OUTPUT"
-+            LDFLAGS="$LDFLAGS -lgpac_static"
-+            if [ $SYS = CYGWIN -o $SYS = MINGW ]; then
-+                LDFLAGS="$LDFLAGS -lwinmm"
-+            fi
 +            mp4_output="yes"
++            ;;
++        --disable-mp4-output)
++            mp4_output="no"
 +            ;;
 +        --extra-asflags=*)
 +            ASFLAGS="$ASFLAGS ${opt#--extra-asflags=}"

+    esac
+done
+
 case "$UNAMES" in
-  BeOS)
+  beos)
     SYS="BEOS"
     CFLAGS="$CFLAGS -DHAVE_MALLOC_H"
     ;;
-  Darwin)
+  darwin)
     SYS="MACOSX"
     CFLAGS="$CFLAGS -falign-loops=16"
     LDFLAGS="$LDFLAGS -lm -lmx"
     ;;
-  FreeBSD)
+  freebsd)
     SYS="FREEBSD"
     LDFLAGS="$LDFLAGS -lm"
     ;;
-  NetBSD)
+  netbsd)
     SYS="NETBSD"
     LDFLAGS="$LDFLAGS -lm"
     ;;
-  OpenBSD)
+  openbsd)
     SYS="OPENBSD"
     CFLAGS="$CFLAGS -I/usr/X11R6/include"
     LDFLAGS="$LDFLAGS -lm"
     ;;
-  Linux)
+  linux)
     SYS="LINUX"
     CFLAGS="$CFLAGS -DHAVE_MALLOC_H"
     LDFLAGS="$LDFLAGS -lm"
     ;;
-  CYGWIN*)
+  cygwin*)
     SYS="CYGWIN"
     CFLAGS="$CFLAGS -mno-cygwin"
     LDFLAGS="$LDFLAGS -mno-cygwin"
     EXE=".exe"
     DEVNULL="NUL"
     ;;
-  MINGW*)
+  mingw*)
     SYS="MINGW"
     EXE=".exe"
     DEVNULL="NUL"
     ;;
-  SunOS)
+  sunos)
     SYS="SunOS"
     CFLAGS="$CFLAGS -DHAVE_MALLOC_H"
     LDFLAGS="$LDFLAGS -lm"
@@ -119,9 +218,8 @@
     ;;
 esac
 
-UNAMEM="`uname -m`"
 case "$UNAMEM" in
-  i386|i486|i586|i686|BePC)
+  i386|i486|i586|i686|bepc)
     ARCH="X86"
     CFLAGS="$CFLAGS -DHAVE_MMXEXT -DHAVE_SSE2"
     AS="nasm"
@@ -142,7 +240,7 @@
     AS="yasm"
     ASFLAGS="-f elf -m amd64"
     ;;
-  "Power Macintosh"|ppc|ppc64)
+  "power macintosh"|ppc|ppc64)
     ARCH="PPC"
     if [ $SYS = MACOSX ]
     then
@@ -191,95 +289,6 @@
 CFLAGS="$CFLAGS -DARCH_$ARCH -DSYS_$SYS"
 
 # parse options
-
-for opt do
-    optarg="${opt#*=}"

-            pthread="no"
-            ;;
-        --enable-debug)
-            debug="yes"
-            ;;
-        --enable-gprof)
