diff --git a/configure.in b/configure.in
index 2f5d0a7e25b2de3d48b98875fb7a2180cd0a7ed5..cf27a2bfbb1cfa5423db401ba99eec0cfe421f33 100644
--- a/configure.in
+++ b/configure.in
@@ -121,6 +121,11 @@ if test "$enable_build_dist" = "yes"; then
   VERSION="${VERSION}-r$SVN_VERSION"
 fi
 
+AC_ARG_ENABLE(old-ffmpeg, [  --enable-old-ffmpeg     use ancient ffmpeg header locations (default=no)])
+if test "$enable_ancient_ffmpeg" = "yes"; then
+  AC_DEFINE([WITH_ANCIENT_FFMPEG], [], [buttes])
+fi
+
 
 ###################################################
 # Check for pthreads and setup variables / compiler