1
0
Fork 0
wget/m4/readdir.m4
Daniel Baumann 9591974d25
Adding upstream version 1.25.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 09:40:11 +02:00

24 lines
699 B
Text

# readdir.m4
# serial 3
dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl This file is offered as-is, without any warranty.
AC_DEFUN([gl_FUNC_READDIR],
[
AC_REQUIRE([gl_DIRENT_H_DEFAULTS])
AC_CHECK_FUNCS([readdir])
if test $ac_cv_func_readdir = no; then
HAVE_READDIR=0
else
dnl Replace readdir() on native Windows and OS/2 kLIBC,
dnl to support fdopendir().
AC_REQUIRE([gl_DIRENT_DIR])
if test $DIR_HAS_FD_MEMBER = 0; then
REPLACE_READDIR=1
fi
fi
])