summaryrefslogtreecommitdiff
path: root/.travis_before_script.sh
blob: abe48e534edd40baad36f1723f6200dc6217cda0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh
set -e

# Log the identities and versions of the build tools.
for tool in \
    "${CC-cc}" \
    "${AUTOCONF-autoconf}" \
    "${AUTOMAKE-automake}" \
    "${LIBTOOLIZE-libtoolize}" \
    "${PKG_CONFIG-pkg-config}" \
    "${PERL-perl}" \
    "${PYTHON-python3}"
do
    # $tool might include mandatory command-line arguments.
    # Interpret it the same way Make would.
    set fnord $tool
    shift
    if command -V $1; then
        echo + "$@" --version
        "$@" --version
    fi
    echo
done
set fnord; shift  # clear $@

# Prepare the configure scripts.
set -x
. ./autogen.sh