From 7729edf7224e39628bd342c3a3bb44c1753bdfb0 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sat, 20 Dec 2014 11:35:51 +0300 Subject: configure.in: Move AC_C_INLINE and friends to be checked before PA_ADD_CFLAGS Looks like -Werror=missing-declarations revealed problem in configure: the "inline" support has not been detected properly leading to problem in building procedure. Lets move AC_C_INLINE and etc to be tested before gcc flags. Reported-by: NAKAI Yuta Signed-off-by: Cyrill Gorcunov --- configure.in | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/configure.in b/configure.in index 572dee1c..b40c62b4 100644 --- a/configure.in +++ b/configure.in @@ -60,6 +60,19 @@ else fi AC_PROG_INSTALL +dnl Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_C_RESTRICT +AC_TYPE_SIZE_T +PA_WORKING_BOOL +AC_C_BIGENDIAN(AC_DEFINE(WORDS_BIGENDIAN),AC_DEFINE(WORDS_LITTLEENDIAN)) +AH_TEMPLATE(WORDS_BIGENDIAN, +[Define to 1 if your processor stores words with the most significant +byte first (like Motorola and SPARC, unlike Intel and VAX).]) +AH_TEMPLATE(WORDS_LITTLEENDIAN, +[Define to 1 if your processor stores words with the least significant +byte first (like Intel and VAX, unlike Motorola and SPARC).]) + dnl If we have gcc, add appropriate options PA_ADD_CFLAGS([-W]) PA_ADD_CFLAGS([-Wall]) @@ -112,20 +125,6 @@ AC_CHECK_HEADERS(strings.h) dnl Look for AC_CHECK_HEADERS(stdbool.h) -dnl Checks for typedefs, structures, and compiler characteristics. -AC_C_CONST -AC_C_INLINE -AC_C_RESTRICT -AC_TYPE_SIZE_T -PA_WORKING_BOOL -AC_C_BIGENDIAN(AC_DEFINE(WORDS_BIGENDIAN),AC_DEFINE(WORDS_LITTLEENDIAN)) -AH_TEMPLATE(WORDS_BIGENDIAN, -[Define to 1 if your processor stores words with the most significant -byte first (like Motorola and SPARC, unlike Intel and VAX).]) -AH_TEMPLATE(WORDS_LITTLEENDIAN, -[Define to 1 if your processor stores words with the least significant -byte first (like Intel and VAX, unlike Motorola and SPARC).]) - dnl Checks for library functions. AC_SUBST(XOBJS) -- cgit v1.2.1