From 18e9b66eddb23d05748a78213a6c44907dbfe03d Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Mon, 28 Feb 2011 07:42:00 -0800 Subject: [PATCH] do_autogen: add -P (--with-profiler) Signed-off-by: Colin McCabe --- do_autogen.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/do_autogen.sh b/do_autogen.sh index ba57bfd3eaacb..4a9355c1fac57 100755 --- a/do_autogen.sh +++ b/do_autogen.sh @@ -26,7 +26,7 @@ debug_level=0 verbose=0 CFLAGS="" CXXFLAGS="" -while getopts "36d:hv" flag +while getopts "36d:hPv" flag do case $flag in 3) CFLAGS="$CFLAGS -m32";; @@ -35,6 +35,8 @@ do d) debug_level=$OPTARG;; + P) with_profiler="--with-profiler ";; + h) usage exit 0;; @@ -93,5 +95,5 @@ export CXXFLAGS ./configure \ --prefix=/usr --sbindir=/sbin --localstatedir=/var --sysconfdir=/etc \ ---with-gtk2=yes --with-debug \ +--with-gtk2=yes --with-debug $with_profiler \ || die "configure failed"