Skip to contentSkip to conversation

configure.ac: Fix failure caused by x32 ABI test

PATCH In review Aníbal Limón 2 participants 2 messages Apr 8, 2015 – Apr 9, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure.ac: Fix failure caused by x32 ABI test

When try to compile with zlib fails due to configure.ac bad expansion caused by x32 ABI test that needs AC_PROG_CC for use AC_EGREP_CPP.

---
 configure.ac | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
configure.ac +1 -3
index 1ecadd5..e0b5f78 100644
@@ -8,6 +8,7 @@ AC_INIT(kexec-tools, 2.0.10.git)
 AC_CONFIG_AUX_DIR(./config)
 AC_CONFIG_HEADERS([include/config.h])
 AC_LANG(C)
+AC_PROG_CC
 
 AC_DEFINE_UNQUOTED(PACKAGE_DATE, "`date '+%d %B %Y'`",
 		[Define to the release date of this package])
@@ -106,9 +107,6 @@ AC_ARG_WITH([booke],
 
 dnl ---Programs
 dnl To specify a different compiler, just 'export CC=/path/to/compiler'
-
-AC_PROG_CC
-
 if test "${build}" != "${host}" ; then
 	AC_CHECK_PROGS(BUILD_CC, [${build_alias}-gcc ${build}-gcc gcc])
 else
Signature · 7 lines
1.9.1


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
#1 lore raw
Quoted 5 lines · Aníbal Limón

When try to compile with zlib fails due to configure.ac bad expansion caused by x32 ABI test that needs AC_PROG_CC for use AC_EGREP_CPP.

Thanks for following up on this, applied.

Quoted 29 lines
---
 configure.ac | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
configure.ac +1 -3
index 1ecadd5..e0b5f78 100644
@@ -8,6 +8,7 @@ AC_INIT(kexec-tools, 2.0.10.git)
 AC_CONFIG_AUX_DIR(./config)
 AC_CONFIG_HEADERS([include/config.h])
 AC_LANG(C)
+AC_PROG_CC
 
 AC_DEFINE_UNQUOTED(PACKAGE_DATE, "`date '+%d %B %Y'`",
 		[Define to the release date of this package])
@@ -106,9 +107,6 @@ AC_ARG_WITH([booke],
 
 dnl ---Programs
 dnl To specify a different compiler, just 'export CC=/path/to/compiler'
-
-AC_PROG_CC
-
 if test "${build}" != "${host}" ; then
 	AC_CHECK_PROGS(BUILD_CC, [${build_alias}-gcc ${build}-gcc gcc])
 else
Signature · 1 line
1.9.1

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec