#!/bin/sh
# Run this to generate all the initial makefiles, etc.
# Additional options go to configure.

# For OpenBSD
export AUTOCONF_VERSION=2.71
export AUTOMAKE_VERSION=1.16.5

echo "Rebuilding ./configure with autoreconf..."
autoreconf -f -i
if [ $? -ne 0 ]; then
  echo "autoreconf failed"
  exit $?
fi

./configure --enable-maintainer-mode "$@"

(cd doc && make)
