#!/bin/sh # autogen.sh - Bootstrap the build system set -e echo "Bootstrapping the build system..." # Create necessary directories mkdir -p m4 build-aux # Run autotools echo "Running aclocal..." aclocal --force -I m4 echo "Running autoheader..." autoheader --force echo "Running automake..." automake --add-missing --copy --force-missing echo "Running autoconf..." autoconf --force echo "" echo "Bootstrap complete! To build:" echo " ./configure" echo " make" echo " make check # Run tests" echo " sudo make install"