mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
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 <nak5124@live.jp> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
9b05974022
commit
7729edf722
1 changed files with 13 additions and 14 deletions
27
configure.in
27
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 <stdbool.h>
|
||||
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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue