#!/bin/sh
# $Id: cfg-mingw64,v 1.8 2018/01/05 00:47:27 tom Exp $
# configure to cross-compile using mingw32 using 64-bits

unset CC
unset CXX

TARGET=`choose-mingw64 gcc pkg-config`

if test -n "$TARGET"
then
	PREFIX=
	test -d /usr/$TARGET && PREFIX="--prefix=/usr/$TARGET"
	cfg-normal \
		--host=$TARGET \
		--target=$TARGET \
		$PREFIX "$@" || exit 1
else
	echo "? cannot find MinGW-64 compiler in path"
	exit 1
fi
