summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: da120f9426cc0d1d3a4d0be21047950f6095165e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

if [ -f dev_mode_disabled ]; then
    cat <<EOF >&2
Error: It looks like you are building ccache from a release archive. If so,
there is no need to run autogen.sh. See INSTALL.md for further instructions.

If you do want to the enable the development mode, delete the file
dev_mode_disabled first, but it's probably a better idea to work with the
proper ccache Git repository directly as described on
<https://ccache.dev/repo.html>.
EOF
    exit 1
fi

autoheader -f
autoconf -f
echo "Now run ./configure and make"