#!/bin/sh

. config/options

$SCRIPTS/build toolchain
$SCRIPTS/build expat
$SCRIPTS/build libX11

export ac_cv_have_abstract_sockets=yes

cd $PKG_BUILD

$AUTORECONF

mkdir -p .build-target
cd .build-target

../configure --host=$TARGET_NAME \
             --build=$HOST_NAME \
             --prefix=/usr \
             --sysconfdir=/etc \
             --libexecdir=/usr/lib/dbus \
             --localstatedir=/var \
             --disable-static \
             --enable-shared \
             --disable-tests \
             --disable-ansi \
             --disable-verbose-mode \
             --disable-asserts \
             --disable-checks \
             --disable-xml-docs \
             --disable-doxygen-docs \
             --disable-gcov  \
             --enable-abstract-sockets \
             --disable-selinux \
             --disable-libaudit \
             --enable-dnotify \
             --enable-inotify \
             --with-xml=expat \
             --with-x \
             --with-dbus-user=dbus \

make

$MAKEINSTALL
