]> granicus.if.org Git - libx264/commitdiff
Added --enable-gprof (patch by Johannes Reinhardt)
authorEric Petit <titer@videolan.org>
Sun, 16 Oct 2005 09:53:05 +0000 (09:53 +0000)
committerEric Petit <titer@videolan.org>
Sun, 16 Oct 2005 09:53:05 +0000 (09:53 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@333 df754926-b1dd-0310-bc7b-ec298dee348c

configure

index f74e95574e0a57e669c5a388fd56893335ba0350..28ab3863cae97237308b4b5e315d8df7ed67ac61 100755 (executable)
--- a/configure
+++ b/configure
@@ -12,6 +12,7 @@ echo "  --enable-mp4-output      enables mp4 output (using gpac)"
 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 @@ avis_input="no"
 mp4_output="no"
 pthread="no"
 debug="no"
+gprof="no"
 vfw="no"
 vis="no"
 
@@ -153,21 +155,21 @@ CFLAGS="$CFLAGS -DARCH_$ARCH -DSYS_$SYS"
 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"
@@ -209,6 +211,11 @@ for opt do
             CFLAGS="$CFLAGS -g"
             debug="yes"
             ;;
+        --enable-gprof)
+            CFLAGS="$CFLAGS -pg"
+            LDFLAGS="$LDFLAGS -pg"
+            gprof="yes"
+            ;;
         --enable-vfw)
             vfw="yes"
             ;;
@@ -224,7 +231,7 @@ for opt do
 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 "mp4 output: $mp4_output"
 echo "pthread:    $pthread"
 echo "vfw:        $vfw"
 echo "debug:      $debug"
+echo "gprof:      $gprof"
 echo "visualize:  $vis"
 echo
 echo "You can run 'make' now."