diff mbox

autoconf: don't try to build Emacs files

Message ID 1362647902-13742-1-git-send-email-thomas.petazzoni@free-electrons.com
State Accepted
Commit d2be9be63d2b1120c4ec0c3c445075a7311ef523
Headers show

Commit Message

Thomas Petazzoni March 7, 2013, 9:18 a.m. UTC
When building autoconf for the target, we already passed EMACS="no" to
prevent autoconf from building Emacs mode files. But we weren't doing
that when building autoconf for the host. This causes problems when
'emacs' is not really emacs, but a sort of clone like Jove. So we also
pass EMACS="no" when building host-autoconf to avoid autoconf
./configure script from detecting emacs and then use it to build .elc
files from .el source code.

Reported-by: Spielmann Werner <Werner.Spielmann@swarovski.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/autoconf/autoconf.mk |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Peter Korsgaard March 9, 2013, 11:09 a.m. UTC | #1
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> When building autoconf for the target, we already passed EMACS="no" to
 Thomas> prevent autoconf from building Emacs mode files. But we weren't doing
 Thomas> that when building autoconf for the host. This causes problems when
 Thomas> 'emacs' is not really emacs, but a sort of clone like Jove. So we also
 Thomas> pass EMACS="no" when building host-autoconf to avoid autoconf
 Thomas> ./configure script from detecting emacs and then use it to build .elc
 Thomas> files from .el source code.

Committed, thanks.
diff mbox

Patch

diff --git a/package/autoconf/autoconf.mk b/package/autoconf/autoconf.mk
index 0c36b66..daac1f2 100644
--- a/package/autoconf/autoconf.mk
+++ b/package/autoconf/autoconf.mk
@@ -15,7 +15,7 @@  AUTOCONF_CONF_ENV = EMACS="no" ac_cv_path_M4=$(HOST_DIR)/usr/bin/m4 \
 
 AUTOCONF_DEPENDENCIES = host-m4 perl
 
-HOST_AUTOCONF_CONF_ENV = ac_cv_path_M4=$(HOST_DIR)/usr/bin/m4 \
+HOST_AUTOCONF_CONF_ENV = EMACS="no" ac_cv_path_M4=$(HOST_DIR)/usr/bin/m4 \
 			ac_cv_prog_gnu_m4_gnu=no
 
 HOST_AUTOCONF_DEPENDENCIES = host-m4 host-libtool