#!/bin/sh

set -x

DIE=0

# Detect [g]libtoolize
if libtoolize --version > /dev/null 2>&1; then
  LIBTOOLIZE=libtoolize
elif glibtoolize --version > /dev/null 2>&1; then
  LIBTOOLIZE=glibtoolize
else
  echo "**Error**: Missing 'libtoolize'"
  DIE=1
fi

if [ $DIE -eq 1 ]; then
  exit 1
fi

${LIBTOOLIZE} --force
aclocal
automake --add-missing
autoconf


#!/bin/sh

set -x

DIE=0

# Detect [g]libtoolize
if libtoolize --version > /dev/null 2>&1; then
  LIBTOOLIZE=libtoolize
elif glibtoolize --version > /dev/null 2>&1; then
  LIBTOOLIZE=glibtoolize
else
  echo "**Error**: Missing 'libtoolize'"
  DIE=1
fi

if [ $DIE -eq 1 ]; then
  exit 1
fi

${LIBTOOLIZE} --force
aclocal
automake --add-missing
# Use -f so git-version-gen does refresh
autoconf -f


Apply -f to autoconf so git-version-gen does refresh the version.
Apply -f to autoconf so git-version-gen does refresh the version.
