#!/bin/sh

. config/options

if [ "$DEBUG" = yes ]; then
  DEBUG_CONFIG="--enable-debug"
else
  DEBUG_CONFIG="--disable-debug --disable-valgrind --disable-profiling --disable-gcov"
fi

export LIBS="-L$SYSROOT_PREFIX/usr/lib"

cd $BUILD/$1*
do_configure \
  --enable-shave \
  $DEBUG_CONFIG \

make ERROR_CFLAGS="-Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith"
make_install
