avformat/configure, avformat/Makefile, avformat/factory.c: add configure option