#!/bin/sh

echo -n 'What directory is the driver source located in? '
read sourcedir
ln -sf $sourcedir Driversrc

if [ -e erq-config.h ]; then
    rm -f erq-config.h;
fi
echo '/* Automatically generated by configure */' > erq-config.h

echo -n 'Fix alignment of integers [try this if the erq crashes alot] (y/N)? '
read ans
if [ "$ans" = "y" -o "$ans" = "yes" ]; then
    echo '#define FIX_ALIGNMENT' >> erq-config.h
fi

echo -n 'Debug mode (y/N)?'
read ans
if [ "$ans" = "y" -o "$ans" = "yes" ]; then
    echo '#define DEBUG' >> erq-config.h
fi
