echo " --enable-vfw compiles the VfW frontend"
echo " --enable-pthread enables multithreaded encoding"
echo " --enable-debug adds -g, doesn't strip"
+echo " --enable-gprof adds -pg, doesn't strip"
echo " --enable-visualize enables visualization (X11 only)"
echo " --extra-asflags=EASFLAGS add EASFLAGS to ASFLAGS"
echo " --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS"
mp4_output="no"
pthread="no"
debug="no"
+gprof="no"
vfw="no"
vis="no"
for opt do
optarg="${opt#*=}"
case "$opt" in
- --prefix=*)
- prefix="$optarg"
- ;;
- --exec-prefix=*)
- eprefix="$optarg"
- ;;
- --bindir=*)
- bindir="$optarg"
- ;;
- --libdir=*)
- libdir="$optarg"
- ;;
- --includedir=*)
- includedir="$optarg"
- ;;
+ --prefix=*)
+ prefix="$optarg"
+ ;;
+ --exec-prefix=*)
+ eprefix="$optarg"
+ ;;
+ --bindir=*)
+ bindir="$optarg"
+ ;;
+ --libdir=*)
+ libdir="$optarg"
+ ;;
+ --includedir=*)
+ includedir="$optarg"
+ ;;
--enable-avis-input)
if [ $SYS = CYGWIN -o $SYS = MINGW ]; then
CFLAGS="$CFLAGS -DAVIS_INPUT"
CFLAGS="$CFLAGS -g"
debug="yes"
;;
+ --enable-gprof)
+ CFLAGS="$CFLAGS -pg"
+ LDFLAGS="$LDFLAGS -pg"
+ gprof="yes"
+ ;;
--enable-vfw)
vfw="yes"
;;
done
VFWFLAGS=
-if [ "$debug" != "yes" ]; then
+if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then
CFLAGS="$CFLAGS -s -fomit-frame-pointer"
LDFLAGS="$LDFLAGS -s"
VFW_LDFLAGS="$VFW_LDFLAGS -s"
echo "pthread: $pthread"
echo "vfw: $vfw"
echo "debug: $debug"
+echo "gprof: $gprof"
echo "visualize: $vis"
echo
echo "You can run 'make' now."