#! /bin/sh
# Will run scrypt's autoconf generation script and save the output in the appropriate place

SCRIPTPATH="$(pwd)/scrypt/configuration"
mkdir "$SCRIPTPATH/config_output"
cd "$SCRIPTPATH/config_output" && "../posix_configuration/configure" -q
echo '@LIBS@' | "$SCRIPTPATH/config_output/config.status" --file=-
cp "$SCRIPTPATH/config_output/config.h" "$SCRIPTPATH/../config.h"
rm -rf "$SCRIPTPATH/config_output"
