Index: configure =================================================================== --- configure (Revision 330) +++ configure (Arbeitskopie) @@ -12,6 +12,7 @@ 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" @@ -30,6 +31,7 @@ mp4_output="no" pthread="no" debug="no" +gprof="no" vfw="no" vis="no" @@ -209,6 +211,11 @@ CFLAGS="$CFLAGS -g" debug="yes" ;; + --enable-gprof) + CFLAGS="$CFLAGS -pg" + LDFLAGS="$LDFLAGS -pg" + gprof="yes" + ;; --enable-vfw) vfw="yes" ;; @@ -224,7 +231,7 @@ 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" @@ -266,6 +273,7 @@ echo "pthread: $pthread" echo "vfw: $vfw" echo "debug: $debug" +echo "gprof: $gprof" echo "visualize: $vis" echo echo "You can run 'make' now."