aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2012-09-17 15:35:28 -0700
committerPaul Eggert2012-09-17 15:35:28 -0700
commitdee26dfa11ac3936c84f42b83a0e1ec7ae2b15f9 (patch)
tree3422e706b3df5a1d1590ec125a57377bf72035d1
parent50bfc8243c7385f7e795bca26b539f57c167170c (diff)
downloademacs-dee26dfa11ac3936c84f42b83a0e1ec7ae2b15f9.tar.gz
emacs-dee26dfa11ac3936c84f42b83a0e1ec7ae2b15f9.zip
* Makefile.in: Run autogen/copy_autogen if autogen.sh fails,
to create 'configure'; problem reported by Andreas Schwab in <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00438.html>. * autogen.sh: Exit with status 1 when failing due to missing tools, reverting the 2012-09-10 change to this file. * autogen/copy_autogen: Fail if one of the subsidiary actions fail. Use 'cp -f' for the build-aux files, since the destinations are typically read-only.
-rw-r--r--ChangeLog8
-rw-r--r--Makefile.in4
-rwxr-xr-xautogen.sh2
-rwxr-xr-xautogen/copy_autogen15
4 files changed, 19 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 48d1e52e2cd..3b5b6862a15 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,14 @@
8 This undoes part of the 2012-09-10 patch. 8 This undoes part of the 2012-09-10 patch.
9 (bootstrap): Run ./configure, rather than trying to run config.status 9 (bootstrap): Run ./configure, rather than trying to run config.status
10 if it exists. That builds src/epaths.h more reliably. 10 if it exists. That builds src/epaths.h more reliably.
11 Run autogen/copy_autogen if autogen.sh fails,
12 to create 'configure'; problem reported by Andreas Schwab in
13 <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00438.html>.
14 * autogen.sh: Exit with status 1 when failing due to missing tools,
15 reverting the 2012-09-10 change to this file.
16 * autogen/copy_autogen: Fail if one of the subsidiary actions fail.
17 Use 'cp -f' for the build-aux files, since the destinations are
18 typically read-only.
11 19
12 Remove no-longer-needed Solaris 2.4 vfork bug workaround. 20 Remove no-longer-needed Solaris 2.4 vfork bug workaround.
13 * configure.ac (ac_cv_func_vfork_works): Default to 'no' on 21 * configure.ac (ac_cv_func_vfork_works): Default to 'no' on
diff --git a/Makefile.in b/Makefile.in
index 386c4c135be..56a54403ef3 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -890,11 +890,11 @@ dvi:
890 890
891# Bootstrapping does the following: 891# Bootstrapping does the following:
892# * Remove files to start from a clean slate. 892# * Remove files to start from a clean slate.
893# * Run autogen.sh, but don't worry about exit status 101 (missing tools). 893# * Run autogen.sh, falling back on copy_autogen if autogen.sh fails.
894# * Build Makefile, to build the build procedure itself. 894# * Build Makefile, to build the build procedure itself.
895# * Do the actual build. 895# * Do the actual build.
896bootstrap: bootstrap-clean FRC 896bootstrap: bootstrap-clean FRC
897 cd $(srcdir) && { ./autogen.sh || test $$? -eq 101; } 897 cd $(srcdir) && { ./autogen.sh || autogen/copy_autogen; }
898 ./configure $(CONFIGURE_FLAGS) 898 ./configure $(CONFIGURE_FLAGS)
899 $(MAKE) $(MFLAGS) info all 899 $(MAKE) $(MFLAGS) info all
900 900
diff --git a/autogen.sh b/autogen.sh
index dc8d53eec97..9cfaa40eee5 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -201,7 +201,7 @@ This is not recommended - see the comments in \`copy_autogen'.
201Please report any problems with this script to bug-gnu-emacs@gnu.org . 201Please report any problems with this script to bug-gnu-emacs@gnu.org .
202EOF 202EOF
203 203
204 exit 101 # Exit status 101 means tools were missing. 204 exit 1
205fi 205fi
206 206
207echo "Your system has the required tools, running autoreconf..." 207echo "Your system has the required tools, running autoreconf..."
diff --git a/autogen/copy_autogen b/autogen/copy_autogen
index b6af9b6eb35..8aacd4d399a 100755
--- a/autogen/copy_autogen
+++ b/autogen/copy_autogen
@@ -8,7 +8,7 @@
8## regenerate configure and will fail if you do not have the required 8## regenerate configure and will fail if you do not have the required
9## tools. You will have to run this script again. 9## tools. You will have to run this script again.
10 10
11test -d autogen && cd autogen 11test ! -d autogen || cd autogen || exit
12 12
13if test ! -e config.in; then 13if test ! -e config.in; then
14 echo "Cannot find autogen/ directory." 14 echo "Cannot find autogen/ directory."
@@ -16,11 +16,12 @@ if test ! -e config.in; then
16fi 16fi
17 17
18## Order implied by top-level Makefile's rules, for time-stamps. 18## Order implied by top-level Makefile's rules, for time-stamps.
19cp compile config.guess config.sub depcomp install-sh missing ../build-aux 19cp -f compile config.guess config.sub depcomp install-sh missing \
20cp aclocal.m4 ../ 20 ../build-aux &&
21cp configure ../ 21cp aclocal.m4 ../ &&
22touch ../src/stamp-h.in 22cp configure ../ &&
23cp config.in ../src/ 23touch ../src/stamp-h.in &&
24cp Makefile.in ../lib/ 24cp config.in ../src/ &&
25cp Makefile.in ../lib/ &&
25 26
26echo "You can now run configure" 27echo "You can now run configure"