#!/bin/sh

if [ "$help" != "1" ]
then
	if ! $(pkg-config vidstab)
	then
		echo "- vid.stab not found: disabling"
		touch ../disable-vid.stab
		exit 0
	fi
	
	minver="0.98"
	modver=$(pkg-config --modversion vidstab)
	pkg-config --exists "vidstab >= $minver"
	if [ $? -ne 0 ]
	then
		echo "- vid.stab $modver found, but $minver or newer is required: disabling"
		touch ../disable-vid.stab
		exit 0
	fi

	echo > config.mak
	case $targetos in
	Darwin)
		;;
	MinGW)
		;;
	*)
		;;
	esac
	exit 0
fi

