test -z "$srcdir" && srcdir=.
FILE=libsecret/secret-value.c
if glibtoolize --version < /dev/null > /dev/null 2>&1 ; then
libtool_version=`glibtoolize --version |
sed -e 's/^\(.*\)([^)]*)\(.*\)$/\1\2/g' \
-e 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
if $have_libtool ; then : ; else
echo "You must have libtool >= 2.2 installed to compile $PROJECT."
echo "Install the appropriate package for your distribution,"
echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/"
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo "You must have autoconf installed to compile $PROJECT."
echo "Install the appropriate package for your distribution,"
echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
AUTOMAKE_VERSIONS="1.16 1.15 1.14 1.13 1.12 1.11 1.10"
for version in $AUTOMAKE_VERSIONS; do
if automake-$version --version < /dev/null > /dev/null 2>&1 ; then
AUTOMAKE=automake-$version
if test -z "$AUTOMAKE"; then
echo "You must have one of automake $AUTOMAKE_VERSIONS to compile $PROJECT."
echo "Install the appropriate package for your distribution,"
echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
if test "$DIE" -eq 1; then