-BASE=$(readlink -f $0)
-BASE=$(dirname $BASE) # up one
-BASE=$(dirname $BASE) # up one more
-BASE=$(dirname $BASE) # up one more
+if [ -z "$ARCH" ]; then
+ echo "ARCH not set defaulting to win32"
+ ARCH=win32
+elif [ "$ARCH" == "win32" ]; then
+ echo "ARCH set to win32"
+elif [ "$ARCH" == "win64" ]; then
+ echo "ARCH set to win64"
+else
+ echo "ARCH set invalid value aborting..."
+ exit 1
+fi
+
+if [ "$ARCH" == "win32" ]; then
+ HOST=i686-w64-mingw32
+else
+ HOST=x86_64-w64-mingw32
+fi