# HG changeset patch # User truelight # Date 1142364109 0 # Node ID faafc2eb520f12cde6358c5d04c24d5b89f280a3 # Parent c5ac6b7f6ef6ec3b6ce6400c15100d5f37a22c86 (svn r3867) -Add: added --debug, --profile and --revision to configure diff -r c5ac6b7f6ef6 -r faafc2eb520f configure --- a/configure Tue Mar 14 19:15:46 2006 +0000 +++ b/configure Tue Mar 14 19:21:49 2006 +0000 @@ -10,6 +10,9 @@ echo " $0 --your_options" echo "" echo "Params:" + echo " --debug Create debug-release [no]" + echo " --profile Create profile-release [no]" + echo " --revision Set the revision of the compilation [detected]" echo " --target-cc Sets the target-compiler [\$CC]" echo " --target-cxx Sets the C++ target-compiler []" echo " --host-cc Sets the host-compiler [\$CC]" @@ -53,6 +56,18 @@ exit 0 ;; + --debug) + PARAM="$PARAM DEBUG=1" + ;; + --profile) + PARAM="$PARAM PROFILE=1" + ;; + --revision=*) + RELEASE=`awk 'BEGIN { FS="="; $0="'$n'"; print $2;}'` + ;; + --revision) + SITEM="RELEASE" + ;; --target-cc=*) handle "CC_TARGET" $n ;; @@ -222,3 +237,10 @@ echo "CXX=$TARGET_CXX" >> Makefile.config fi +# Same for RELEASE (read: REVISION) + +if ! test -z "$RELEASE" +then + echo "RELEASE=$RELEASE" >> Makefile.config +fi +