#!/bin/sh

. config/options $1

cd $PKG_BUILD
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --disable-static \
            --enable-shared \
            --disable-werror \
            --disable-extra-warnings \
            --disable-optimizations \
            --disable-examples \
            --disable-debug \
            --disable-bdjava \
            --disable-doxygen-doc \
            --disable-doxygen-dot \
            --disable-doxygen-man \
            --disable-doxygen-rtf \
            --disable-doxygen-xml \
            --disable-doxygen-chm \
            --disable-doxygen-chi \
            --disable-doxygen-html \
            --disable-doxygen-ps \
            --disable-doxygen-pdf \
            --with-dlopen-crypto-libs \
            --with-gnu-ld

make

$MAKEINSTALL
