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

if ! checkPlatformFunction SYNO_FEA_ACPID; then
       SkipThisProject
       return
fi

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

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

ConfigOpt="$ConfigOpt --prefix=/usr"
env	CC=${CC} LD=${LD} AR=${AR} STRIP=${STRIP_ORI} RANLIB=${RANLIB} NM=${NM} \
	CFLAGS="${CFLAGS}" CPPFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
	ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes \
	./configure ${ConfigOpt} \

#	ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes \

make ${MAKE_FLAGS}
