#!/bin/bash

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

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

env	CC=${CC} CXX=${CXX} AR=${AR} LD=${LD} NM=${NM} RANLIB=${RANLIB} STRIP=${STRIP_ORI} \
	CFLAGS="${CFLAGS}" CPPFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
	./configure ${ConfigOpt} \
		--prefix=/usr \
		--exec_prefix=/usr \
		--sbindir=/usr/bin \
		--with-state-file-path=/var/log/logrotate.status \
		--with-compress-command=/usr/bin/xz \
		--with-compress-extension=.xz \
		--with-uncompress-command= \
		--with-default-mail-command= \
		--without-acl \
		--without-selinux

make ${MAKE_FLAGS}

