0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-07-24 10:25:42 -04:00

added checks for vsnprintf and snprintf (ISO C99) and changed gcc

compile flag from -ansi to -std=c99
This commit is contained in:
Ed Beroset 2004-12-15 23:02:20 +00:00
parent 258fcafe88
commit a5d2945b7b

View File

@ -60,7 +60,7 @@ fi
AC_PROG_INSTALL AC_PROG_INSTALL
if test "$GCC" = "yes"; then if test "$GCC" = "yes"; then
GCCFLAGS="-Wall -ansi -pedantic" GCCFLAGS="-Wall -std=c99 -pedantic"
else else
GCCFLAGS= GCCFLAGS=
fi fi
@ -108,6 +108,16 @@ if test $ac_cv_func_strspn = no; then
AC_MSG_ERROR([NASM requires ANSI C (specifically, "strspn")]) AC_MSG_ERROR([NASM requires ANSI C (specifically, "strspn")])
fi fi
AC_CHECK_FUNCS(snprintf)
if test $ac_cv_func_snprintf = no; then
AC_MSG_ERROR([NASM requires ISO C99 (specifically, "snprintf")])
fi
AC_CHECK_FUNCS(vsnprintf)
if test $ac_cv_func_snprintf = no; then
AC_MSG_ERROR([NASM requires ISO C99 (specifically, "vsnprintf")])
fi
if test $ac_cv_prog_make_vpathok = no; then if test $ac_cv_prog_make_vpathok = no; then
echo Copying generated srcs into build directory to compensate for VPATH breakage echo Copying generated srcs into build directory to compensate for VPATH breakage
for file in macros.c insnsa.c insnsd.c insnsn.c insnsi.h version.h version.mac; do for file in macros.c insnsa.c insnsd.c insnsn.c insnsi.h version.h version.mac; do