Merge pull request #954 from jiladahe1997/master

This commit is contained in:
Denis Ovsienko 2021-11-04 11:40:56 +00:00 committed by GitHub
commit 30df635e5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

10
configure vendored
View File

@ -5189,10 +5189,11 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf(3) supports the z length modifier" >&5
$as_echo_n "checking whether printf(3) supports the z length modifier... " >&6; }
if test "$cross_compiling" = yes; then :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not while cross-compiling" >&5
$as_echo "not while cross-compiling" >&6; }
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@ -5223,7 +5224,6 @@ $as_echo "no" >&6; }
$as_echo "#define HAVE_NO_PRINTF_Z 1" >>confdefs.h
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext

View File

@ -423,6 +423,9 @@ int main()
AC_MSG_RESULT(no)
AC_DEFINE(HAVE_NO_PRINTF_Z, 1,
[Define to 1 if printf(3) does not support the z length modifier.])
],
[
AC_MSG_RESULT(not while cross-compiling)
]
)