#!/bin/sh -e

export CFLAGS="-static $CFLAGS"

./configure \
    --prefix=/usr \
    --with-included-popt

make
make DESTDIR="$1" install