#!/bin/bash
# Copyright (c) 2000-2015 Synology Inc. All rights reserved.

if ! checkPlatformFunction SYNO_FEA_IPMITOOL; then
	SkipThisProject
	return
fi

case ${MakeClean} in
	[Yy][Ee][Ss])
		make clean
		;;
esac

case ${CleanOnly} in
	[Yy][Ee][Ss])
		return
		;;
esac

Configure="./configure"

ConfigOpt="$ConfigOpt $ConfigInstallOpt"
env \
	CC=${CC} \
	LD=${LD} \
	AR=${AR} \
	STRIP=${STRIP} \
	RANLIB=${RANLIB} \
	NM=${NM} \
	CFLAGS="${CFLAGS} " \
	LDFLAGS="${LDFLAGS}" \
	ac_cv_func_malloc_0_nonnull=yes \
	$Configure ${ConfigOpt} \
	--prefix=${Prefix} \
	--enable-intf-bmc=no \
	--enable-ipmishell=yes \
	--enable-intf-open=yes \
	--enable-intf-imb=yes \
	--enable-intf-lanplus=yes \
	--program-transform-name=""

make ${MAKE_FLAGS}

