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

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

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

env	CC="$CC" LD="$LD" AR="$AR" STRIP="$STRIP" RANLIB="$RANLIB" NM="$NM" \
	CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
	./configure ${ConfigOpt} \
		--prefix=/usr \
		--disable-docs \
		--disable-nls \
		--disable-rpath \
		--without-libiconv-prefix

make ${MAKE_FLAGS}
