Commit 906ccc39 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo

autogen.sh: Improve autoconf/automake detection on OpenBSD

OpenBSD needs the enviroment variables `AUTOCONF_VERSION` and
`AUTOMAKE_VERSION` to be set in order to find these tools.

The script now tests (individually) if they are already set and if they
aren't sets them to something that is known to work on OpenBSD 5.8
parent d6c774c1
......@@ -40,10 +40,20 @@ set -e
if test $(uname -s) = "OpenBSD" ; then
# OpenBSD needs these environment variables set.
AUTOCONF_VERSION=2.69
AUTOMAKE_VERSION=1.11
export AUTOCONF_VERSION
export AUTOMAKE_VERSION
if test -z "$AUTOCONF_VERSION" ; then
AUTOCONF_VERSION=2.69
export AUTOCONF_VERSION
echo "Defaulting to use AUTOCONF_VERSION version ${AUTOCONF_VERSION}."
else
echo "Using AUTOCONF_VERSION version ${AUTOCONF_VERSION}."
fi
if test -z "$AUTOMAKE_VERSION" ; then
AUTOMAKE_VERSION=1.15
export AUTOMAKE_VERSION
echo "Defaulting to use AUTOMAKE_VERSION version ${AUTOMAKE_VERSION}."
else
echo "Using AUTOMAKE_VERSION version ${AUTOMAKE_VERSION}."
fi
fi
srcdir=`dirname $0`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment