summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2006-04-25 02:36:31 +0000
committerKen Raeburn <raeburn@mit.edu>2006-04-25 02:36:31 +0000
commit6739f1082f7cd81bcb913f2a33c75ae4fe6517c3 (patch)
treeb58a644dae26a875cb07d69e581275a0510c041f /src/config
parenta6a142604bb42e3cbd3504de17c581d39ef35f9a (diff)
downloadkrb5-6739f1082f7cd81bcb913f2a33c75ae4fe6517c3.tar.gz
krb5-6739f1082f7cd81bcb913f2a33c75ae4fe6517c3.tar.xz
krb5-6739f1082f7cd81bcb913f2a33c75ae4fe6517c3.zip
Tweak configure script generation to check that all symbols produced
via AC_DEFINE are also present in the applicable configure-generated header file, and error out otherwise. Currently doesn't apply in appl and test trees. * util/check-ac-syms: New script. * config/post.in (.acsyms_okay): New target; runs check-ac-syms, unless we're in the appl or tests trees. (configure): Depend on .acsyms_okay. * config/pre.in (AUTOCONF_HEADER): New variable. * plugins/kdb/db2/libdb2/Makefile.in (AUTOCONF_HEADER): New variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17955 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/config')
-rw-r--r--src/config/post.in12
-rw-r--r--src/config/pre.in3
2 files changed, 15 insertions, 0 deletions
diff --git a/src/config/post.in b/src/config/post.in
index 237ceb318..300f0fcf3 100644
--- a/src/config/post.in
+++ b/src/config/post.in
@@ -135,6 +135,7 @@ $(thisconfigdir)/config.status: $(srcdir)/$(thisconfigdir)/configure
# mixing. So nuke it.
$(srcdir)/$(thisconfigdir)/configure: @MAINT@ \
$(srcdir)/$(thisconfigdir)/configure.in \
+ $(thisconfigdir)/.acsyms_okay \
$(SRCTOP)/patchlevel.h \
$(SRCTOP)/aclocal.m4
-$(RM) -r $(srcdir)/$(thisconfigdir)/autom4te.cache
@@ -142,6 +143,17 @@ $(srcdir)/$(thisconfigdir)/configure: @MAINT@ \
$(AUTOCONF) --include=$(CONFIG_RELTOPDIR) $(AUTOCONFFLAGS)
-$(RM) -r $(srcdir)/$(thisconfigdir)/autom4te.cache
+$(thisconfigdir)/.acsyms_okay: @MAINT@ \
+ $(srcdir)/$(thisconfigdir)/configure.in \
+ $(SRCTOP)/patchlevel.h \
+ $(SRCTOP)/aclocal.m4
+ case "$(myfulldir)" in \
+ "" ) echo myfulldir not set in makefile ; exit 1 ;; \
+ appl* | tests* ) echo skipping ac syms check here ;; \
+ *) $(SRCTOP)/util/check-ac-syms $(srcdir) $(BUILDTOP) $(AUTOCONF_HEADER) ;; \
+ esac
+ touch .acsyms_okay
+
RECURSE_TARGETS=all-recurse clean-recurse distclean-recurse install-recurse \
generate-files-mac-recurse \
check-recurse depend-recurse Makefiles-recurse install-headers-recurse
diff --git a/src/config/pre.in b/src/config/pre.in
index bea1c7a86..9391f6498 100644
--- a/src/config/pre.in
+++ b/src/config/pre.in
@@ -551,6 +551,9 @@ EXTRA_FILES=@EXTRA_FILES@
# variable settings with "@RUN_ENV@ KRB5_CONFIG=foo ..."
MAYBE_VALGRIND= # valgrind --tool=memcheck --log-file=$(BUILDTOP)/valgrind.out --trace-children=yes -v --leak-check=yes env
+#
+AUTOCONF_HEADER=$(SRCTOP)/include/autoconf.h.in
+
##
## end of pre.in
############################################################