#!/bin/sh -

SDLCONFIG=`which sdl-config || which sdl11-config || which sdl12-config || echo `
if [ -n "$SDLCONFIG" ] ; then
	echo "SDL config is located at: $SDLCONFIG"
	sed -e"s@XX_SDL_CONFIG_PLACEHOLDER_XX@$SDLCONFIG@g" < Jamfile.next > tmp && mv tmp Jamfile
else
	echo "********************************"
	echo "ERROR! SDL CONFIG WAS NOT FOUND!"
	echo "********************************"
	exit 1
fi

echo "Configure complete. Now use 'jam' to build"

