build: add inital autotools setup

This commit is contained in:
Bruno BELANYI 2020-09-27 21:18:23 +02:00
commit b08dacf3c0
4 changed files with 77 additions and 0 deletions

19
bootstrap Executable file
View file

@ -0,0 +1,19 @@
#! /bin/sh
# Stop on errors
set -e
# Find where the sources are
src_dir="$(dirname "$0")"
test -z "$src_dir" && src_dir=.
# Bootstrap in a subshell
(
cd "$src_dir"
autoreconf -fvi
)
# Call configure, unless NOCONFIGURE is set
if test -z "$NOCONFIGURE"; then
"$src_dir"/configure "$@"
fi