aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2009-09-16 22:54:59 +0000
committerGreg Hudson <ghudson@mit.edu>2009-09-16 22:54:59 +0000
commitac45b351222b3a9ac2c7a00a0aef576823ea831a (patch)
tree5b9778b0987735bf18bf92e06e193c9b0c6ff5d5 /src/config
parentd5dd4f6c72c32d66bf87842bcb7264d482d77a95 (diff)
downloadkrb5-ac45b351222b3a9ac2c7a00a0aef576823ea831a.zip
krb5-ac45b351222b3a9ac2c7a00a0aef576823ea831a.tar.gz
krb5-ac45b351222b3a9ac2c7a00a0aef576823ea831a.tar.bz2
Remove autoconf.h on "make distclean".
Check for the presence of a build in the src tree for "make depend". Suggest "make distclean" when "make depend" detects a build in the src tree or an attempt to make depend in the src tree. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22776 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/config')
-rw-r--r--src/config/post.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config/post.in b/src/config/post.in
index 6ac10b0..023fd47 100644
--- a/src/config/post.in
+++ b/src/config/post.in
@@ -28,6 +28,11 @@ $(BUILDTOP)/.depend-verify-srcdir:
@if test "$(srcdir)" = "." ; then \
echo 1>&2 error: cannot build dependencies with srcdir=. ; \
echo 1>&2 "(can't distinguish generated files from source files)" ; \
+ echo 1>&2 "Run 'make distclean' and create a separate build dir" ; \
+ exit 1 ; \
+ elif test -f "$(top_srcdir)/include/autoconf.h"; then \
+ echo 1>&2 "error: generated headers found in source tree" ; \
+ echo 1>&2 "Run 'make distclean' in source tree first" ; \
exit 1 ; \
else \
if test -r $(BUILDTOP)/.depend-verify-srcdir; then :; \