#!/bin/bash

cd $BLDDIR
rm -rf findutils-$FINDUTILS_VER
tar -xf $SRCDIR/findutils-$FINDUTILS_VER.tar.gz
cd findutils-$FINDUTILS_VER

echo "gl_cv_func_wcwidth_works=yes" > config.cache
echo "ac_cv_func_fnmatch_gnu=yes" >> config.cache
./configure --prefix=/tools \
    --build=${CHFS_HOST} --host=${CHFS_TARGET} \
    --cache-file=config.cache
make
make install

cd $ROOT
