Skip to content

Commit 4b1f6d2

Browse files
author
jan.nijtmans
committed
"make dist" now refuses to re-generate */configure with older autoconf
1 parent d2f3a0b commit 4b1f6d2

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

unix/Makefile.in

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,17 +1667,17 @@ DIST_INSTALL_SCRIPT = $(INSTALL) -p -m 755
16671667

16681668
$(UNIX_DIR)/configure: $(UNIX_DIR)/configure.ac $(UNIX_DIR)/tcl.m4 \
16691669
$(UNIX_DIR)/aclocal.m4
1670-
cd $(UNIX_DIR); autoconf
1671-
$(MAC_OSX_DIR)/configure: $(MAC_OSX_DIR)/configure.ac $(UNIX_DIR)/configure
1672-
cd $(MAC_OSX_DIR); autoconf
1673-
$(UNIX_DIR)/tkConfig.h.in: $(MAC_OSX_DIR)/configure
1674-
cd $(MAC_OSX_DIR); autoheader; touch $@
1670+
@cd $(UNIX_DIR); autoconf || \
1671+
echo "WARNING: Unable to rebuild $(UNIX_DIR)/configure. Please upgrade autoconf."
1672+
$(UNIX_DIR)/tkConfig.h.in: $(MAC_OSX_DIR)/configure.ac
1673+
@cd $(MAC_OSX_DIR); autoheader || touch $@
16751674

16761675
$(TOP_DIR)/manifest.uuid:
16771676
printf "git-" >$(TOP_DIR)/manifest.uuid
16781677
(cd $(TOP_DIR); git rev-parse HEAD >>$(TOP_DIR)/manifest.uuid || printf "unknown" >$(TOP_DIR)/manifest.uuid)
16791678

1680-
dist: $(UNIX_DIR)/configure $(UNIX_DIR)/tkConfig.h.in $(UNIX_DIR)/tk.pc.in $(MAC_OSX_DIR)/configure $(TOP_DIR)/doc/man.macros $(TOP_DIR)/manifest.uuid
1679+
dist: $(UNIX_DIR)/configure $(UNIX_DIR)/tkConfig.h.in $(UNIX_DIR)/tk.pc.in \
1680+
$(TOP_DIR)/doc/man.macros $(TOP_DIR)/manifest.uuid
16811681
rm -rf $(DISTDIR)
16821682
$(INSTALL_DATA_DIR) $(DISTDIR)/unix
16831683
$(DIST_INSTALL_DATA) $(TOP_DIR)/manifest.uuid $(DISTDIR)
@@ -1727,7 +1727,6 @@ dist: $(UNIX_DIR)/configure $(UNIX_DIR)/tkConfig.h.in $(UNIX_DIR)/tk.pc.in $(MAC
17271727
$(MAC_OSX_DIR)/*.[ch] $(MAC_OSX_DIR)/*.in \
17281728
$(MAC_OSX_DIR)/*.ac $(MAC_OSX_DIR)/*.sdef \
17291729
$(DISTDIR)/macosx
1730-
$(DIST_INSTALL_SCRIPT) $(MAC_OSX_DIR)/configure $(DISTDIR)/macosx
17311730
$(DIST_INSTALL_DATA) $(TOP_DIR)/license.terms $(DISTDIR)/macosx
17321731
$(INSTALL_DATA_DIR) $(DISTDIR)/compat
17331732
$(DIST_INSTALL_DATA) $(TOP_DIR)/license.terms \

unix/configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dnl generate the file "configure", which is run during Tk installation
44
dnl to configure the system for the local environment.
55

66
AC_INIT([tk],[9.1])
7-
AC_PREREQ([2.71])
7+
AC_PREREQ([2.72])
88

99
dnl This is only used when included from macosx/configure.ac
1010
m4_ifdef([SC_USE_CONFIG_HEADERS], [

win/configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
AC_INIT([tk],[9.1])
77
AC_CONFIG_SRCDIR([../generic/tk.h])
8-
AC_PREREQ([2.71])
8+
AC_PREREQ([2.72])
99

1010
# The following define is needed when building with Cygwin since newer
1111
# versions of autoconf incorrectly set SHELL to /bin/bash instead of

0 commit comments

Comments
 (0)