[perf/cairo-perf-diff] Pass CAIRO_AUTOGEN_OPTIONS to autogen.

Makes it was possible to run cairo-perf-diff with different
configurations, eg with quartz enabled.
This commit is contained in:
Brian Ewins 2007-01-04 15:06:48 +00:00
parent d30b1bf157
commit 22e271d687

View file

@ -31,6 +31,9 @@ usage() {
echo " $argv0 HEAD -- stroke" >&2
echo "" >&2
echo "The performance results are cached in .perf next to the .git directory." >&2
echo "" >&2
echo "Set CAIRO_AUTOGEN_OPTIONS to pass options to autogen for both" >&2
echo "builds." >&2
exit 1
}
@ -131,7 +134,7 @@ run_cairo_perf_if_not_cached() {
git checkout tmp-cairo-perf-diff
git reset --hard $sha
if [ ! -e Makefile ]; then
CFLAGS="-O2" ./autogen.sh
CFLAGS="-O2" ./autogen.sh $CAIRO_AUTOGEN_OPTIONS
fi
make CFLAGS="-O2" || (rm config.cache && make CFLAGS="-O2")
for file in $boilerplate_files; do