Merge pull request #569 from ejohnstown/autogen-tweak

Autogen Tweak
pull/556/head^2
JacobBarthelmeh 2023-08-31 16:22:39 -06:00 committed by GitHub
commit 2e823c12cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 31 deletions

View File

@ -1,44 +1,20 @@
#!/bin/sh #!/bin/sh
# #
# Create configure and makefile stuff... # Create configure and makefile stuff...
#
set -e
# if get an error about libtool not setup
# " error: Libtool library used but 'LIBTOOL' is undefined
# The usual way to define 'LIBTOOL' is to add 'LT_INIT' "
# manually call libtoolize or glibtoolize before running this again
# (g)libtoolize
# if you get an error about config.rpath missing, some buggy automake versions
# then touch the missing file (may need to make config/ first).
# touch config/config.rpath
# touch config.rpath
if test ! -d build-aux; then
echo "Making missing build-aux directory."
mkdir -p build-aux
fi
if test ! -f build-aux/config.rpath; then
echo "Touching missing build-aux/config.rpath file."
touch build-aux/config.rpath
fi
# Git hooks should come before autoreconf. # Git hooks should come before autoreconf.
if test -d .git; then if test -d .git
if ! test -d .git/hooks; then then
mkdir .git/hooks mkdir -p .git/hooks && ln -sf ../../scripts/pre-commit.sh .git/hooks/pre-commit
fi
ln -s -f ../../scripts/pre-commit.sh .git/hooks/pre-commit
fi fi
# If this is a source checkout then call autoreconf with error as well # If this is a source checkout then call autoreconf with error as well
if test -e .git; then if test -e .git
then
WARNINGS="all,error" WARNINGS="all,error"
else else
WARNINGS="all" WARNINGS="all"
fi fi
export WARNINGS
autoreconf --install --force --verbose autoreconf -ivf