#!/bin/sh

# Check for g++ to avoid using different versions of gcc and g++ on systems
# with both g++-4.X and gcc-4.Y but not g++-4.Y installed.

if which g++-4.6 >/dev/null 2>&1; then
	prog=gcc-4.6
elif which g++-4.5 >/dev/null 2>&1; then
	prog=gcc-4.5
else
	prog=gcc-4.4
fi

exec $prog "$@"
