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 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.
# rather than vanilla POSIX glob. This means your code should
# always include <glob.h> for the glob prototypes.
# rather than vanilla POSIX glob. This means your code should
# always include <glob.h> for the glob prototypes.
if test -z "$GLOB_H"; then
AC_CACHE_CHECK([for GNU glob interface version 1],
[gl_cv_gnu_glob_interface_version_1],
if test -z "$GLOB_H"; then
AC_CACHE_CHECK([for GNU glob interface version 1],
[gl_cv_gnu_glob_interface_version_1],
-char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];]],
- [gl_cv_gnu_glob_interface_version_1=yes],
- [gl_cv_gnu_glob_interface_version_1=no])])
+char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];]])],
+ [gl_cv_gnu_glob_interface_version_1=yes],
+ [gl_cv_gnu_glob_interface_version_1=no])])
-if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;]]),
+if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;]])],
[gl_cv_glob_lists_symlinks=yes],
[gl_cv_glob_lists_symlinks=no], [gl_cv_glob_lists_symlinks=no])
fi])
[gl_cv_glob_lists_symlinks=yes],
[gl_cv_glob_lists_symlinks=no], [gl_cv_glob_lists_symlinks=no])
fi])
])
# Prerequisites of lib/glob.*.
AC_DEFUN([gl_PREREQ_GLOB],
])
# Prerequisites of lib/glob.*.
AC_DEFUN([gl_PREREQ_GLOB],
-[ AC_REQUIRE([gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE])dnl
- AC_REQUIRE([AC_GNU_SOURCE])dnl
- AC_CHECK_HEADERS_ONCE([dirent.h])dnl
+[
+ AC_REQUIRE([gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE])dnl
+ AC_REQUIRE([AC_C_RESTRICT])dnl
+ AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])dnl