#!/bin/sh

. config/options $1

$SCRIPTS/unpack libIDL

setup_toolchain host

cd $BUILD/libIDL*
mkdir -p .build-host && cd .build-host

libIDL_cv_long_long_format=ll \
../configure --prefix=$ROOT/$TOOLCHAIN

$SED "s:pkg-config :PKG_CONFIG_PATH=$HOST_PKG_CONFIG_PATH $PKG_CONFIG :" libIDL-config-2

make
make install
