  echo "  --enable-avis-input      enables avisynth input (win32 only)"
  echo "  --enable-mp4-output      enables mp4 output (using gpac)"
  echo "  --enable-vfw             compiles the VfW frontend"
-@@ -58,47 +59,138 @@
+@@ -58,47 +59,143 @@
  
  EXE=""
  

-    cc_check gpac/isomedia.h "$MP4_LDFLAGS" && mp4_output="yes"
-fi
-if [ "$mp4_output" = "yes" ] ; then
-    CFLAGS="$CFLAGS -DMP4_OUTPUT"
-    LDFLAGS="$LDFLAGS $MP4_LDFLAGS"
-fi
-

+            LDFLAGS="$LDFLAGS -pg"
+            gprof="yes"
+            ;;
+	 --enable-pic)
+            CFLAGS="$CFLAGS -fPIC"
+            ASFLAGS="$ASFLAGS -D__PIC__"
+            pic="yes"
+            ;;
+        --enable-vfw)
+            vfw="yes"
+            ;;
