summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2019-05-11 17:24:11 +0200
committerJoel Rosdahl <joel@rosdahl.net>2019-05-11 17:24:38 +0200
commit6821579c2c2567415ed4d8a442e14860ab102f83 (patch)
treee03d284668a38ad49170d8d1ef6ded12494ecb73
parent4e4588a8fc17c6c62a66e39f8492d80c1e7a684a (diff)
downloadccache-6821579c2c2567415ed4d8a442e14860ab102f83.tar.gz
Hint about not running autogen.sh when building from release archive
Related to #418.
-rwxr-xr-xautogen.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index eb3d9ba1..00c9f52c 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -2,7 +2,19 @@
set -e
-rm -f dev_mode_disabled
+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 autoconf.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
autoconf
echo "Now run ./configure and make"