#!/bin/sh

. config/options $1

# xerces_c fails to build with LTO support
  strip_lto

cd $PKG_BUILD
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --disable-static \
            --enable-shared \
            --enable-netaccessor-curl \
            --enable-netaccessor-socket \
            --enable-netaccessor-cfurl \
            --enable-netaccessor-winsock \
            --enable-transcoder-gnuiconv \
            --enable-transcoder-iconv \
            --disable-transcoder-icu \
            --enable-transcoder-macosunicodeconverter \
            --enable-transcoder-windows \
            --enable-msgloader-inmemory \
            --disable-msgloader-icu \
            --enable-msgloader-iconv \

make

$MAKEINSTALL
