aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2014-05-03 09:27:17 -0700
committerPaul Eggert2014-05-03 09:27:17 -0700
commit541df9f424b82b90ec4bd798ab6b8f1c655e3acd (patch)
tree272c9a0e88b48be4097dd2b508c39ec07a124289
parenta7e1ffdc7e4de34662a0d55c8e5f3247ec40effd (diff)
downloademacs-541df9f424b82b90ec4bd798ab6b8f1c655e3acd.tar.gz
emacs-541df9f424b82b90ec4bd798ab6b8f1c655e3acd.zip
Get --enable-gcc-warnings to work after touching configure.ac.
Preserve ACLOCAL_PATH in later builds, so that by default it has the same value as it did in the first build after initial checkout. * Makefile.in (ACLOCAL_PATH): New macro. ($(srcdir)/aclocal.m4): Use it. * configure.ac (ACLOCAL_PATH): AC_SUBST it. * autogen.sh (env_space): New var. Tell user what variables, if any, to pass to 'configure'.
-rw-r--r--ChangeLog9
-rw-r--r--Makefile.in3
-rwxr-xr-xautogen.sh8
-rw-r--r--configure.ac3
4 files changed, 19 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 61df7093527..a93a93c8f29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
12014-05-03 Paul Eggert <eggert@cs.ucla.edu> 12014-05-03 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Get --enable-gcc-warnings to work after touching configure.ac.
4 Preserve ACLOCAL_PATH in later builds, so that by default it has
5 the same value as it did in the first build after initial checkout.
6 * Makefile.in (ACLOCAL_PATH): New macro.
7 ($(srcdir)/aclocal.m4): Use it.
8 * configure.ac (ACLOCAL_PATH): AC_SUBST it.
9 * autogen.sh (env_space): New var.
10 Tell user what variables, if any, to pass to 'configure'.
11
3 Get --enable-gcc-warnings working again. 12 Get --enable-gcc-warnings working again.
4 The recent changes to configure.ac removed the transliteration of 13 The recent changes to configure.ac removed the transliteration of
5 -I to -isystem in CFLAGS, which is needed for --enable-gcc-warnings. 14 -I to -isystem in CFLAGS, which is needed for --enable-gcc-warnings.
diff --git a/Makefile.in b/Makefile.in
index 2eda8c365da..ffee1ec131d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -425,9 +425,10 @@ AUTOCONF_INPUTS = $(srcdir)/configure.ac $(srcdir)/aclocal.m4
425$(srcdir)/configure: $(AUTOCONF_INPUTS) 425$(srcdir)/configure: $(AUTOCONF_INPUTS)
426 cd ${srcdir} && autoconf 426 cd ${srcdir} && autoconf
427 427
428ACLOCAL_PATH = @ACLOCAL_PATH@
428ACLOCAL_INPUTS = $(srcdir)/configure.ac $(srcdir)/m4/gnulib-comp.m4 429ACLOCAL_INPUTS = $(srcdir)/configure.ac $(srcdir)/m4/gnulib-comp.m4
429$(srcdir)/aclocal.m4: $(ACLOCAL_INPUTS) 430$(srcdir)/aclocal.m4: $(ACLOCAL_INPUTS)
430 cd $(srcdir) && aclocal -I m4 431 cd $(srcdir) && ACLOCAL_PATH='$(ACLOCAL_PATH)' aclocal -I m4
431 432
432AUTOMAKE_INPUTS = $(srcdir)/aclocal.m4 $(srcdir)/lib/Makefile.am \ 433AUTOMAKE_INPUTS = $(srcdir)/aclocal.m4 $(srcdir)/lib/Makefile.am \
433 $(srcdir)/lib/gnulib.mk 434 $(srcdir)/lib/gnulib.mk
diff --git a/autogen.sh b/autogen.sh
index c2a2c7af04f..b7804548cec 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -210,6 +210,7 @@ fi
210# find the pkg.m4 that is installed in the standard location. 210# find the pkg.m4 that is installed in the standard location.
211echo "Checking for pkg.m4..." 211echo "Checking for pkg.m4..."
212AUTORECONF_ENV= 212AUTORECONF_ENV=
213env_space=
213ac_dir=`aclocal --print-ac-dir` && test -r "$ac_dir/pkg.m4" || { 214ac_dir=`aclocal --print-ac-dir` && test -r "$ac_dir/pkg.m4" || {
214 oIFS=$IFS 215 oIFS=$IFS
215 IFS=: 216 IFS=:
@@ -225,7 +226,8 @@ ac_dir=`aclocal --print-ac-dir` && test -r "$ac_dir/pkg.m4" || {
225 ?*) ACLOCAL_PATH=$ACLOCAL_PATH:$ac_dir;; 226 ?*) ACLOCAL_PATH=$ACLOCAL_PATH:$ac_dir;;
226 esac 227 esac
227 export ACLOCAL_PATH 228 export ACLOCAL_PATH
228 AUTORECONF_ENV="ACLOCAL_PATH='$ACLOCAL_PATH' " 229 AUTORECONF_ENV="ACLOCAL_PATH='$ACLOCAL_PATH'"
230 env_space=' '
229 break 231 break
230 fi 232 fi
231 fi 233 fi
@@ -244,7 +246,7 @@ EOF
244echo ok 246echo ok
245 247
246echo 'Your system has the required tools.' 248echo 'Your system has the required tools.'
247echo "Running \"${AUTORECONF_ENV}autoreconf -fi -I m4\" ..." 249echo "Running \"$AUTORECONF_ENV${env_space}autoreconf -fi -I m4\" ..."
248 250
249 251
250## Let autoreconf figure out what, if anything, needs doing. 252## Let autoreconf figure out what, if anything, needs doing.
@@ -255,7 +257,7 @@ autoreconf -fi -I m4 || exit $?
255## cause 'make' to needlessly run 'autoheader'. 257## cause 'make' to needlessly run 'autoheader'.
256echo timestamp > src/stamp-h.in || exit 258echo timestamp > src/stamp-h.in || exit
257 259
258echo "You can now run \`./configure'." 260echo "You can now run \`./configure$env_space$AUTORECONF_ENV'."
259 261
260exit 0 262exit 0
261 263
diff --git a/configure.ac b/configure.ac
index 74ea10dd5cd..7545e14e15d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -295,6 +295,9 @@ otherwise for the first of `gfile' or `inotify' that is usable.])
295dnl http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01844.html 295dnl http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01844.html
296OPTION_DEFAULT_ON([makeinfo],[don't require makeinfo for building manuals]) 296OPTION_DEFAULT_ON([makeinfo],[don't require makeinfo for building manuals])
297 297
298## This might be a 'configure' arg, e.g., autogen.sh might set it.
299AC_SUBST([ACLOCAL_PATH])
300
298## Makefile.in needs the cache file name. 301## Makefile.in needs the cache file name.
299AC_SUBST(cache_file) 302AC_SUBST(cache_file)
300 303