CONFIGURE: Do more getconf checks before using its output

Based on its POSIX specification.
This commit is contained in:
Donovan Watteau 2022-11-27 19:00:20 +01:00 committed by Eugene Sandulenko
parent 0eb9ca84de
commit b79e5a3b2d

2
configure vendored
View File

@ -4090,7 +4090,7 @@ EOF
# Otherwise, when not cross-compiling, try with LFS_CFLAGS
if test -z "$_host"; then
TMPFLAGS=`getconf LFS_CFLAGS 2>/dev/null`
if ! test -z "$TMPFLAGS" ; then
if test $? -eq 0 && test ! -z "$TMPFLAGS" && test "$TMPFLAGS" != undefined ; then
cc_check_no_clean $TMPFLAGS && _has_fseeko_offt_64=yes
if test "$_has_fseeko_offt_64" = yes ; then
echo "yes (adding $TMPFLAGS)"