summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-05-03 23:36:43 +0200
committerBruno Haible <bruno@clisp.org>2011-05-03 23:38:19 +0200
commit7cbbd8a31a3be111f26d87fb8e55f4438f9c885f (patch)
treee6e410ca98893c672e44a2de3b1a936e3f1bbb9f
parent99659bac7ac6b63b4f2d422df157aa4f582428d7 (diff)
downloadgnulib-7cbbd8a31a3be111f26d87fb8e55f4438f9c885f.tar.gz
Avoid unnecessary compilation units, through conditional dependencies.
* modules/accept (Depends-on): Add conditions to the dependencies. * modules/acosl (Depends-on): Likewise. * modules/argz (Depends-on): Likewise. * modules/asinl (Depends-on): Likewise. * modules/atanl (Depends-on): Likewise. * modules/atoll (Depends-on): Likewise. * modules/bind (Depends-on): Likewise. * modules/btowc (Depends-on): Likewise. * modules/canonicalize-lgpl (Depends-on): Likewise. * modules/ceil (Depends-on): Likewise. * modules/ceilf (Depends-on): Likewise. * modules/ceill (Depends-on): Likewise. * modules/chdir-long (Depends-on): Likewise. * modules/chown (Depends-on): Likewise. * modules/close (Depends-on): Likewise. * modules/connect (Depends-on): Likewise. * modules/cosl (Depends-on): Likewise. * modules/dirfd (Depends-on): Likewise. * modules/dprintf (Depends-on): Likewise. * modules/dprintf-posix (Depends-on): Likewise. * modules/error (Depends-on): Likewise. * modules/euidaccess (Depends-on): Likewise. * modules/expl (Depends-on): Likewise. * modules/faccessat (Depends-on): Likewise. * modules/fchdir (Depends-on): Likewise. * modules/fclose (Depends-on): Likewise. * modules/fcntl (Depends-on): Likewise. * modules/fdopendir (Depends-on): Likewise. * modules/fflush (Depends-on): Likewise. * modules/floor (Depends-on): Likewise. * modules/floorf (Depends-on): Likewise. * modules/floorl (Depends-on): Likewise. * modules/fnmatch (Depends-on): Likewise. * modules/fopen (Depends-on): Likewise. * modules/fprintf-posix (Depends-on): Likewise. * modules/frexp (Depends-on): Likewise. * modules/frexp-nolibm (Depends-on): Likewise. * modules/frexpl (Depends-on): Likewise. * modules/frexpl-nolibm (Depends-on): Likewise. * modules/fseek (Depends-on): Likewise. * modules/fsusage (Depends-on): Likewise. * modules/ftell (Depends-on): Likewise. * modules/ftello (Depends-on): Likewise. * modules/futimens (Depends-on): Likewise. * modules/getcwd (Depends-on): Likewise. * modules/getcwd-lgpl (Depends-on): Likewise. * modules/getdelim (Depends-on): Likewise. * modules/getdomainname (Depends-on): Likewise. * modules/getgroups (Depends-on): Likewise. * modules/gethostname (Depends-on): Likewise. * modules/getline (Depends-on): Likewise. * modules/getlogin_r (Depends-on): Likewise. * modules/getopt-posix (Depends-on): Likewise. * modules/getpeername (Depends-on): Likewise. * modules/getsockname (Depends-on): Likewise. * modules/getsockopt (Depends-on): Likewise. * modules/getsubopt (Depends-on): Likewise. * modules/getusershell (Depends-on): Likewise. * modules/glob (Depends-on): Likewise. * modules/grantpt (Depends-on): Likewise. * modules/iconv_open (Depends-on): Likewise. * modules/iconv_open-utf (Depends-on): Likewise. * modules/inet_ntop (Depends-on): Likewise. * modules/inet_pton (Depends-on): Likewise. * modules/ioctl (Depends-on): Likewise. * modules/isapipe (Depends-on): Likewise. * modules/isfinite (Depends-on): Likewise. * modules/isinf (Depends-on): Likewise. * modules/lchown (Depends-on): Likewise. * modules/ldexpl (Depends-on): Likewise. * modules/link (Depends-on): Likewise. * modules/linkat (Depends-on): Likewise. * modules/listen (Depends-on): Likewise. * modules/logl (Depends-on): Likewise. * modules/lstat (Depends-on): Likewise. * modules/mbrlen (Depends-on): Likewise. * modules/mbrtowc (Depends-on): Likewise. * modules/mbsinit (Depends-on): Likewise. * modules/mbsnrtowcs (Depends-on): Likewise. * modules/mbsrtowcs (Depends-on): Likewise. * modules/mbtowc (Depends-on): Likewise. * modules/memcmp (Depends-on): Likewise. * modules/mkdir (Depends-on): Likewise. * modules/mkdtemp (Depends-on): Likewise. * modules/mkfifo (Depends-on): Likewise. * modules/mkfifoat (Depends-on): Likewise. * modules/mknod (Depends-on): Likewise. * modules/mkostemp (Depends-on): Likewise. * modules/mkostemps (Depends-on): Likewise. * modules/mkstemp (Depends-on): Likewise. * modules/mkstemps (Depends-on): Likewise. * modules/mktime (Depends-on): Likewise. * modules/nanosleep (Depends-on): Likewise. * modules/open (Depends-on): Likewise. * modules/openat (Depends-on): Likewise. * modules/perror (Depends-on): Likewise. * modules/poll (Depends-on): Likewise. * modules/popen (Depends-on): Likewise. * modules/posix_spawn (Depends-on): Likewise. * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise. * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise. * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise. * modules/posix_spawnp (Depends-on): Likewise. * modules/pread (Depends-on): Likewise. * modules/printf-posix (Depends-on): Likewise. * modules/ptsname (Depends-on): Likewise. * modules/putenv (Depends-on): Likewise. * modules/pwrite (Depends-on): Likewise. * modules/readline (Depends-on): Likewise. * modules/readlink (Depends-on): Likewise. * modules/readlinkat (Depends-on): Likewise. * modules/recv (Depends-on): Likewise. * modules/recvfrom (Depends-on): Likewise. * modules/regex (Depends-on): Likewise. * modules/remove (Depends-on): Likewise. * modules/rename (Depends-on): Likewise. * modules/renameat (Depends-on): Likewise. * modules/rmdir (Depends-on): Likewise. * modules/round (Depends-on): Likewise. * modules/roundf (Depends-on): Likewise. * modules/roundl (Depends-on): Likewise. * modules/rpmatch (Depends-on): Likewise. * modules/select (Depends-on): Likewise. * modules/send (Depends-on): Likewise. * modules/sendto (Depends-on): Likewise. * modules/setenv (Depends-on): Likewise. * modules/setlocale (Depends-on): Likewise. * modules/setsockopt (Depends-on): Likewise. * modules/shutdown (Depends-on): Likewise. * modules/sigaction (Depends-on): Likewise. * modules/signbit (Depends-on): Likewise. * modules/sigprocmask (Depends-on): Likewise. * modules/sinl (Depends-on): Likewise. * modules/sleep (Depends-on): Likewise. * modules/snprintf (Depends-on): Likewise. * modules/snprintf-posix (Depends-on): Likewise. * modules/socket (Depends-on): Likewise. * modules/sprintf-posix (Depends-on): Likewise. * modules/sqrtl (Depends-on): Likewise. * modules/stat (Depends-on): Likewise. * modules/strchrnul (Depends-on): Likewise. * modules/strdup-posix (Depends-on): Likewise. * modules/strerror (Depends-on): Likewise. * modules/strerror_r-posix (Depends-on): Likewise. * modules/strndup (Depends-on): Likewise. * modules/strnlen (Depends-on): Likewise. * modules/strptime (Depends-on): Likewise. * modules/strsep (Depends-on): Likewise. * modules/strsignal (Depends-on): Likewise. * modules/strstr-simple (Depends-on): Likewise. * modules/strtod (Depends-on): Likewise. * modules/strtoimax (Depends-on): Likewise. * modules/strtok_r (Depends-on): Likewise. * modules/strtoumax (Depends-on): Likewise. * modules/symlink (Depends-on): Likewise. * modules/symlinkat (Depends-on): Likewise. * modules/tanl (Depends-on): Likewise. * modules/tcgetsid (Depends-on): Likewise. * modules/tmpfile (Depends-on): Likewise. * modules/trunc (Depends-on): Likewise. * modules/truncf (Depends-on): Likewise. * modules/truncl (Depends-on): Likewise. * modules/uname (Depends-on): Likewise. * modules/unlink (Depends-on): Likewise. * modules/unlockpt (Depends-on): Likewise. * modules/unsetenv (Depends-on): Likewise. * modules/usleep (Depends-on): Likewise. * modules/utimensat (Depends-on): Likewise. * modules/vasprintf (Depends-on): Likewise. * modules/vdprintf (Depends-on): Likewise. * modules/vdprintf-posix (Depends-on): Likewise. * modules/vfprintf-posix (Depends-on): Likewise. * modules/vprintf-posix (Depends-on): Likewise. * modules/vsnprintf (Depends-on): Likewise. * modules/vsnprintf-posix (Depends-on): Likewise. * modules/vsprintf-posix (Depends-on): Likewise. * modules/wcrtomb (Depends-on): Likewise. * modules/wcscasecmp (Depends-on): Likewise. * modules/wcscspn (Depends-on): Likewise. * modules/wcsdup (Depends-on): Likewise. * modules/wcsncasecmp (Depends-on): Likewise. * modules/wcsnrtombs (Depends-on): Likewise. * modules/wcspbrk (Depends-on): Likewise. * modules/wcsrtombs (Depends-on): Likewise. * modules/wcsspn (Depends-on): Likewise. * modules/wcsstr (Depends-on): Likewise. * modules/wcstok (Depends-on): Likewise. * modules/wcswidth (Depends-on): Likewise. * modules/wctob (Depends-on): Likewise. * modules/wctomb (Depends-on): Likewise. * modules/wctype (Depends-on): Likewise. * modules/wcwidth (Depends-on): Likewise. * modules/write (Depends-on): Likewise.
-rw-r--r--ChangeLog197
-rw-r--r--modules/accept2
-rw-r--r--modules/acosl4
-rw-r--r--modules/argz12
-rw-r--r--modules/asinl2
-rw-r--r--modules/atanl2
-rw-r--r--modules/atoll2
-rw-r--r--modules/bind2
-rw-r--r--modules/btowc2
-rw-r--r--modules/canonicalize-lgpl16
-rw-r--r--modules/ceil2
-rw-r--r--modules/ceilf2
-rw-r--r--modules/ceill2
-rw-r--r--modules/chdir-long19
-rw-r--r--modules/chown8
-rw-r--r--modules/close2
-rw-r--r--modules/connect2
-rw-r--r--modules/cosl8
-rw-r--r--modules/dirfd2
-rw-r--r--modules/dprintf6
-rw-r--r--modules/dprintf-posix18
-rw-r--r--modules/error4
-rw-r--r--modules/euidaccess6
-rw-r--r--modules/expl4
-rw-r--r--modules/faccessat6
-rw-r--r--modules/fchdir32
-rw-r--r--modules/fclose6
-rw-r--r--modules/fcntl4
-rw-r--r--modules/fdopendir8
-rw-r--r--modules/fflush14
-rw-r--r--modules/floor2
-rw-r--r--modules/floorf2
-rw-r--r--modules/floorl2
-rw-r--r--modules/fnmatch16
-rw-r--r--modules/fopen2
-rw-r--r--modules/fprintf-posix20
-rw-r--r--modules/frexp2
-rw-r--r--modules/frexp-nolibm2
-rw-r--r--modules/frexpl4
-rw-r--r--modules/frexpl-nolibm4
-rw-r--r--modules/fseek2
-rw-r--r--modules/fsusage2
-rw-r--r--modules/ftell2
-rw-r--r--modules/ftello4
-rw-r--r--modules/futimens2
-rw-r--r--modules/getcwd16
-rw-r--r--modules/getcwd-lgpl2
-rw-r--r--modules/getdelim8
-rw-r--r--modules/getdomainname4
-rw-r--r--modules/getgroups4
-rw-r--r--modules/gethostname6
-rw-r--r--modules/getline4
-rw-r--r--modules/getlogin_r4
-rw-r--r--modules/getopt-posix2
-rw-r--r--modules/getpeername2
-rw-r--r--modules/getsockname2
-rw-r--r--modules/getsockopt4
-rw-r--r--modules/getsubopt6
-rw-r--r--modules/getusershell4
-rw-r--r--modules/glob24
-rw-r--r--modules/grantpt6
-rw-r--r--modules/iconv_open4
-rw-r--r--modules/iconv_open-utf6
-rw-r--r--modules/inet_ntop6
-rw-r--r--modules/inet_pton8
-rw-r--r--modules/ioctl6
-rw-r--r--modules/isapipe6
-rw-r--r--modules/isfinite6
-rw-r--r--modules/isinf2
-rw-r--r--modules/lchown10
-rw-r--r--modules/ldexpl4
-rw-r--r--modules/link6
-rw-r--r--modules/linkat34
-rw-r--r--modules/listen2
-rw-r--r--modules/logl6
-rw-r--r--modules/lstat4
-rw-r--r--modules/mbrlen2
-rw-r--r--modules/mbrtowc8
-rw-r--r--modules/mbsinit4
-rw-r--r--modules/mbsnrtowcs8
-rw-r--r--modules/mbsrtowcs4
-rw-r--r--modules/mbtowc4
-rw-r--r--modules/memcmp2
-rw-r--r--modules/mkdir2
-rw-r--r--modules/mkdtemp4
-rw-r--r--modules/mkfifo2
-rw-r--r--modules/mkfifoat8
-rw-r--r--modules/mknod4
-rw-r--r--modules/mkostemp4
-rw-r--r--modules/mkostemps4
-rw-r--r--modules/mkstemp4
-rw-r--r--modules/mkstemps4
-rw-r--r--modules/mktime2
-rw-r--r--modules/nanosleep16
-rw-r--r--modules/open2
-rw-r--r--modules/openat8
-rw-r--r--modules/perror4
-rw-r--r--modules/poll10
-rw-r--r--modules/popen2
-rw-r--r--modules/posix_spawn2
-rw-r--r--modules/posix_spawn_file_actions_addclose2
-rw-r--r--modules/posix_spawn_file_actions_adddup22
-rw-r--r--modules/posix_spawn_file_actions_addopen2
-rw-r--r--modules/posix_spawnp2
-rw-r--r--modules/pread6
-rw-r--r--modules/printf-posix2
-rw-r--r--modules/ptsname2
-rw-r--r--modules/putenv2
-rw-r--r--modules/pwrite6
-rw-r--r--modules/readline2
-rw-r--r--modules/readlink2
-rw-r--r--modules/readlinkat6
-rw-r--r--modules/recv2
-rw-r--r--modules/recvfrom4
-rw-r--r--modules/regex30
-rw-r--r--modules/remove4
-rw-r--r--modules/rename14
-rw-r--r--modules/renameat14
-rw-r--r--modules/rmdir4
-rw-r--r--modules/round4
-rw-r--r--modules/roundf2
-rw-r--r--modules/roundl2
-rw-r--r--modules/rpmatch8
-rw-r--r--modules/select4
-rw-r--r--modules/send2
-rw-r--r--modules/sendto2
-rw-r--r--modules/setenv8
-rw-r--r--modules/setlocale2
-rw-r--r--modules/setsockopt4
-rw-r--r--modules/shutdown2
-rw-r--r--modules/sigaction2
-rw-r--r--modules/signbit12
-rw-r--r--modules/sigprocmask4
-rw-r--r--modules/sinl8
-rw-r--r--modules/sleep4
-rw-r--r--modules/snprintf4
-rw-r--r--modules/snprintf-posix18
-rw-r--r--modules/socket4
-rw-r--r--modules/sprintf-posix22
-rw-r--r--modules/sqrtl10
-rw-r--r--modules/stat4
-rw-r--r--modules/strchrnul4
-rw-r--r--modules/strdup-posix2
-rw-r--r--modules/strerror4
-rw-r--r--modules/strerror_r-posix6
-rw-r--r--modules/strndup4
-rw-r--r--modules/strnlen4
-rw-r--r--modules/strptime12
-rw-r--r--modules/strsep4
-rw-r--r--modules/strsignal10
-rw-r--r--modules/strstr-simple6
-rw-r--r--modules/strtod4
-rw-r--r--modules/strtoimax6
-rw-r--r--modules/strtok_r2
-rw-r--r--modules/strtoumax6
-rw-r--r--modules/symlink2
-rw-r--r--modules/symlinkat6
-rw-r--r--modules/tanl8
-rw-r--r--modules/tcgetsid2
-rw-r--r--modules/tmpfile6
-rw-r--r--modules/trunc2
-rw-r--r--modules/truncf2
-rw-r--r--modules/truncl2
-rw-r--r--modules/uname2
-rw-r--r--modules/unlink4
-rw-r--r--modules/unlockpt2
-rw-r--r--modules/unsetenv4
-rw-r--r--modules/usleep4
-rw-r--r--modules/utimensat4
-rw-r--r--modules/vasprintf6
-rw-r--r--modules/vdprintf6
-rw-r--r--modules/vdprintf-posix18
-rw-r--r--modules/vfprintf-posix22
-rw-r--r--modules/vprintf-posix2
-rw-r--r--modules/vsnprintf4
-rw-r--r--modules/vsnprintf-posix18
-rw-r--r--modules/vsprintf-posix22
-rw-r--r--modules/wcrtomb4
-rw-r--r--modules/wcscasecmp2
-rw-r--r--modules/wcscspn4
-rw-r--r--modules/wcsdup4
-rw-r--r--modules/wcsncasecmp2
-rw-r--r--modules/wcsnrtombs4
-rw-r--r--modules/wcspbrk2
-rw-r--r--modules/wcsrtombs4
-rw-r--r--modules/wcsspn2
-rw-r--r--modules/wcsstr2
-rw-r--r--modules/wcstok4
-rw-r--r--modules/wcswidth2
-rw-r--r--modules/wctob2
-rw-r--r--modules/wctomb4
-rw-r--r--modules/wctype2
-rw-r--r--modules/wcwidth10
-rw-r--r--modules/write2
194 files changed, 751 insertions, 553 deletions
diff --git a/ChangeLog b/ChangeLog
index a9e21cfbde..88875b8ed7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,202 @@
2011-05-03 Bruno Haible <bruno@clisp.org>
+ Avoid unnecessary compilation units, through conditional dependencies.
+ * modules/accept (Depends-on): Add conditions to the dependencies.
+ * modules/acosl (Depends-on): Likewise.
+ * modules/argz (Depends-on): Likewise.
+ * modules/asinl (Depends-on): Likewise.
+ * modules/atanl (Depends-on): Likewise.
+ * modules/atoll (Depends-on): Likewise.
+ * modules/bind (Depends-on): Likewise.
+ * modules/btowc (Depends-on): Likewise.
+ * modules/canonicalize-lgpl (Depends-on): Likewise.
+ * modules/ceil (Depends-on): Likewise.
+ * modules/ceilf (Depends-on): Likewise.
+ * modules/ceill (Depends-on): Likewise.
+ * modules/chdir-long (Depends-on): Likewise.
+ * modules/chown (Depends-on): Likewise.
+ * modules/close (Depends-on): Likewise.
+ * modules/connect (Depends-on): Likewise.
+ * modules/cosl (Depends-on): Likewise.
+ * modules/dirfd (Depends-on): Likewise.
+ * modules/dprintf (Depends-on): Likewise.
+ * modules/dprintf-posix (Depends-on): Likewise.
+ * modules/error (Depends-on): Likewise.
+ * modules/euidaccess (Depends-on): Likewise.
+ * modules/expl (Depends-on): Likewise.
+ * modules/faccessat (Depends-on): Likewise.
+ * modules/fchdir (Depends-on): Likewise.
+ * modules/fclose (Depends-on): Likewise.
+ * modules/fcntl (Depends-on): Likewise.
+ * modules/fdopendir (Depends-on): Likewise.
+ * modules/fflush (Depends-on): Likewise.
+ * modules/floor (Depends-on): Likewise.
+ * modules/floorf (Depends-on): Likewise.
+ * modules/floorl (Depends-on): Likewise.
+ * modules/fnmatch (Depends-on): Likewise.
+ * modules/fopen (Depends-on): Likewise.
+ * modules/fprintf-posix (Depends-on): Likewise.
+ * modules/frexp (Depends-on): Likewise.
+ * modules/frexp-nolibm (Depends-on): Likewise.
+ * modules/frexpl (Depends-on): Likewise.
+ * modules/frexpl-nolibm (Depends-on): Likewise.
+ * modules/fseek (Depends-on): Likewise.
+ * modules/fsusage (Depends-on): Likewise.
+ * modules/ftell (Depends-on): Likewise.
+ * modules/ftello (Depends-on): Likewise.
+ * modules/futimens (Depends-on): Likewise.
+ * modules/getcwd (Depends-on): Likewise.
+ * modules/getcwd-lgpl (Depends-on): Likewise.
+ * modules/getdelim (Depends-on): Likewise.
+ * modules/getdomainname (Depends-on): Likewise.
+ * modules/getgroups (Depends-on): Likewise.
+ * modules/gethostname (Depends-on): Likewise.
+ * modules/getline (Depends-on): Likewise.
+ * modules/getlogin_r (Depends-on): Likewise.
+ * modules/getopt-posix (Depends-on): Likewise.
+ * modules/getpeername (Depends-on): Likewise.
+ * modules/getsockname (Depends-on): Likewise.
+ * modules/getsockopt (Depends-on): Likewise.
+ * modules/getsubopt (Depends-on): Likewise.
+ * modules/getusershell (Depends-on): Likewise.
+ * modules/glob (Depends-on): Likewise.
+ * modules/grantpt (Depends-on): Likewise.
+ * modules/iconv_open (Depends-on): Likewise.
+ * modules/iconv_open-utf (Depends-on): Likewise.
+ * modules/inet_ntop (Depends-on): Likewise.
+ * modules/inet_pton (Depends-on): Likewise.
+ * modules/ioctl (Depends-on): Likewise.
+ * modules/isapipe (Depends-on): Likewise.
+ * modules/isfinite (Depends-on): Likewise.
+ * modules/isinf (Depends-on): Likewise.
+ * modules/lchown (Depends-on): Likewise.
+ * modules/ldexpl (Depends-on): Likewise.
+ * modules/link (Depends-on): Likewise.
+ * modules/linkat (Depends-on): Likewise.
+ * modules/listen (Depends-on): Likewise.
+ * modules/logl (Depends-on): Likewise.
+ * modules/lstat (Depends-on): Likewise.
+ * modules/mbrlen (Depends-on): Likewise.
+ * modules/mbrtowc (Depends-on): Likewise.
+ * modules/mbsinit (Depends-on): Likewise.
+ * modules/mbsnrtowcs (Depends-on): Likewise.
+ * modules/mbsrtowcs (Depends-on): Likewise.
+ * modules/mbtowc (Depends-on): Likewise.
+ * modules/memcmp (Depends-on): Likewise.
+ * modules/mkdir (Depends-on): Likewise.
+ * modules/mkdtemp (Depends-on): Likewise.
+ * modules/mkfifo (Depends-on): Likewise.
+ * modules/mkfifoat (Depends-on): Likewise.
+ * modules/mknod (Depends-on): Likewise.
+ * modules/mkostemp (Depends-on): Likewise.
+ * modules/mkostemps (Depends-on): Likewise.
+ * modules/mkstemp (Depends-on): Likewise.
+ * modules/mkstemps (Depends-on): Likewise.
+ * modules/mktime (Depends-on): Likewise.
+ * modules/nanosleep (Depends-on): Likewise.
+ * modules/open (Depends-on): Likewise.
+ * modules/openat (Depends-on): Likewise.
+ * modules/perror (Depends-on): Likewise.
+ * modules/poll (Depends-on): Likewise.
+ * modules/popen (Depends-on): Likewise.
+ * modules/posix_spawn (Depends-on): Likewise.
+ * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
+ * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
+ * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
+ * modules/posix_spawnp (Depends-on): Likewise.
+ * modules/pread (Depends-on): Likewise.
+ * modules/printf-posix (Depends-on): Likewise.
+ * modules/ptsname (Depends-on): Likewise.
+ * modules/putenv (Depends-on): Likewise.
+ * modules/pwrite (Depends-on): Likewise.
+ * modules/readline (Depends-on): Likewise.
+ * modules/readlink (Depends-on): Likewise.
+ * modules/readlinkat (Depends-on): Likewise.
+ * modules/recv (Depends-on): Likewise.
+ * modules/recvfrom (Depends-on): Likewise.
+ * modules/regex (Depends-on): Likewise.
+ * modules/remove (Depends-on): Likewise.
+ * modules/rename (Depends-on): Likewise.
+ * modules/renameat (Depends-on): Likewise.
+ * modules/rmdir (Depends-on): Likewise.
+ * modules/round (Depends-on): Likewise.
+ * modules/roundf (Depends-on): Likewise.
+ * modules/roundl (Depends-on): Likewise.
+ * modules/rpmatch (Depends-on): Likewise.
+ * modules/select (Depends-on): Likewise.
+ * modules/send (Depends-on): Likewise.
+ * modules/sendto (Depends-on): Likewise.
+ * modules/setenv (Depends-on): Likewise.
+ * modules/setlocale (Depends-on): Likewise.
+ * modules/setsockopt (Depends-on): Likewise.
+ * modules/shutdown (Depends-on): Likewise.
+ * modules/sigaction (Depends-on): Likewise.
+ * modules/signbit (Depends-on): Likewise.
+ * modules/sigprocmask (Depends-on): Likewise.
+ * modules/sinl (Depends-on): Likewise.
+ * modules/sleep (Depends-on): Likewise.
+ * modules/snprintf (Depends-on): Likewise.
+ * modules/snprintf-posix (Depends-on): Likewise.
+ * modules/socket (Depends-on): Likewise.
+ * modules/sprintf-posix (Depends-on): Likewise.
+ * modules/sqrtl (Depends-on): Likewise.
+ * modules/stat (Depends-on): Likewise.
+ * modules/strchrnul (Depends-on): Likewise.
+ * modules/strdup-posix (Depends-on): Likewise.
+ * modules/strerror (Depends-on): Likewise.
+ * modules/strerror_r-posix (Depends-on): Likewise.
+ * modules/strndup (Depends-on): Likewise.
+ * modules/strnlen (Depends-on): Likewise.
+ * modules/strptime (Depends-on): Likewise.
+ * modules/strsep (Depends-on): Likewise.
+ * modules/strsignal (Depends-on): Likewise.
+ * modules/strstr-simple (Depends-on): Likewise.
+ * modules/strtod (Depends-on): Likewise.
+ * modules/strtoimax (Depends-on): Likewise.
+ * modules/strtok_r (Depends-on): Likewise.
+ * modules/strtoumax (Depends-on): Likewise.
+ * modules/symlink (Depends-on): Likewise.
+ * modules/symlinkat (Depends-on): Likewise.
+ * modules/tanl (Depends-on): Likewise.
+ * modules/tcgetsid (Depends-on): Likewise.
+ * modules/tmpfile (Depends-on): Likewise.
+ * modules/trunc (Depends-on): Likewise.
+ * modules/truncf (Depends-on): Likewise.
+ * modules/truncl (Depends-on): Likewise.
+ * modules/uname (Depends-on): Likewise.
+ * modules/unlink (Depends-on): Likewise.
+ * modules/unlockpt (Depends-on): Likewise.
+ * modules/unsetenv (Depends-on): Likewise.
+ * modules/usleep (Depends-on): Likewise.
+ * modules/utimensat (Depends-on): Likewise.
+ * modules/vasprintf (Depends-on): Likewise.
+ * modules/vdprintf (Depends-on): Likewise.
+ * modules/vdprintf-posix (Depends-on): Likewise.
+ * modules/vfprintf-posix (Depends-on): Likewise.
+ * modules/vprintf-posix (Depends-on): Likewise.
+ * modules/vsnprintf (Depends-on): Likewise.
+ * modules/vsnprintf-posix (Depends-on): Likewise.
+ * modules/vsprintf-posix (Depends-on): Likewise.
+ * modules/wcrtomb (Depends-on): Likewise.
+ * modules/wcscasecmp (Depends-on): Likewise.
+ * modules/wcscspn (Depends-on): Likewise.
+ * modules/wcsdup (Depends-on): Likewise.
+ * modules/wcsncasecmp (Depends-on): Likewise.
+ * modules/wcsnrtombs (Depends-on): Likewise.
+ * modules/wcspbrk (Depends-on): Likewise.
+ * modules/wcsrtombs (Depends-on): Likewise.
+ * modules/wcsspn (Depends-on): Likewise.
+ * modules/wcsstr (Depends-on): Likewise.
+ * modules/wcstok (Depends-on): Likewise.
+ * modules/wcswidth (Depends-on): Likewise.
+ * modules/wctob (Depends-on): Likewise.
+ * modules/wctomb (Depends-on): Likewise.
+ * modules/wctype (Depends-on): Likewise.
+ * modules/wcwidth (Depends-on): Likewise.
+ * modules/write (Depends-on): Likewise.
+
+2011-05-03 Bruno Haible <bruno@clisp.org>
+
Support for conditional dependencies.
* doc/gnulib.texi (Module description): Document the syntax of
conditional dependencies.
diff --git a/modules/accept b/modules/accept
index d1c954edbf..fb46f98a89 100644
--- a/modules/accept
+++ b/modules/accept
@@ -7,7 +7,7 @@ lib/w32sock.h
Depends-on:
sys_socket
-errno
+errno [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
diff --git a/modules/acosl b/modules/acosl
index 3c49196f35..ed3a26d74f 100644
--- a/modules/acosl
+++ b/modules/acosl
@@ -8,8 +8,8 @@ m4/acosl.m4
Depends-on:
math
extensions
-asinl
-sqrtl
+asinl [test $HAVE_ACOSL = 0]
+sqrtl [test $HAVE_ACOSL = 0]
configure.ac:
gl_FUNC_ACOSL
diff --git a/modules/argz b/modules/argz
index 0c56ac7685..2cbb2123e3 100644
--- a/modules/argz
+++ b/modules/argz
@@ -7,12 +7,12 @@ lib/argz.c
m4/argz.m4
Depends-on:
-memmove
-mempcpy
-stpcpy
-strndup
-strnlen
-strstr
+memmove [test -n "$ARGZ_H"]
+mempcpy [test -n "$ARGZ_H"]
+stpcpy [test -n "$ARGZ_H"]
+strndup [test -n "$ARGZ_H"]
+strnlen [test -n "$ARGZ_H"]
+strstr [test -n "$ARGZ_H"]
configure.ac:
gl_FUNC_ARGZ
diff --git a/modules/asinl b/modules/asinl
index 7f254ab461..df6ab281e5 100644
--- a/modules/asinl
+++ b/modules/asinl
@@ -8,7 +8,7 @@ m4/asinl.m4
Depends-on:
math
extensions
-sqrtl
+sqrtl [test $HAVE_ASINL = 0]
configure.ac:
gl_FUNC_ASINL
diff --git a/modules/atanl b/modules/atanl
index f6ba1b85a9..7c512e5c59 100644
--- a/modules/atanl
+++ b/modules/atanl
@@ -8,7 +8,7 @@ m4/atanl.m4
Depends-on:
math
extensions
-isnanl
+isnanl [test $HAVE_ATANL = 0]
configure.ac:
gl_FUNC_ATANL
diff --git a/modules/atoll b/modules/atoll
index 5f0571293e..d979a008f2 100644
--- a/modules/atoll
+++ b/modules/atoll
@@ -7,7 +7,7 @@ m4/atoll.m4
m4/longlong.m4
Depends-on:
-strtoll
+strtoll [test $HAVE_ATOLL = 0]
configure.ac:
gl_FUNC_ATOLL
diff --git a/modules/bind b/modules/bind
index 050f0e65c7..5c4595ffda 100644
--- a/modules/bind
+++ b/modules/bind
@@ -7,7 +7,7 @@ lib/w32sock.h
Depends-on:
sys_socket
-errno
+errno [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
diff --git a/modules/btowc b/modules/btowc
index 10c5f3f9a5..1566a2fa71 100644
--- a/modules/btowc
+++ b/modules/btowc
@@ -8,7 +8,7 @@ m4/locale-fr.m4
Depends-on:
wchar
-mbtowc
+mbtowc [test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1]
configure.ac:
gl_FUNC_BTOWC
diff --git a/modules/canonicalize-lgpl b/modules/canonicalize-lgpl
index 6a748f3000..1fb23c29f3 100644
--- a/modules/canonicalize-lgpl
+++ b/modules/canonicalize-lgpl
@@ -7,16 +7,16 @@ m4/canonicalize.m4
m4/double-slash-root.m4
Depends-on:
-alloca-opt
-errno
extensions
-lstat
-malloca
-memmove
-pathmax
-readlink
stdlib
-sys_stat
+alloca-opt [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
+errno [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
+lstat [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
+malloca [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
+memmove [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
+pathmax [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
+readlink [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
+sys_stat [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
configure.ac:
gl_CANONICALIZE_LGPL
diff --git a/modules/ceil b/modules/ceil
index 90e03fce2c..1a3a5de496 100644
--- a/modules/ceil
+++ b/modules/ceil
@@ -7,7 +7,7 @@ m4/ceil.m4
Depends-on:
math
-float
+float [test $REPLACE_CEIL = 1]
configure.ac:
gl_FUNC_CEIL
diff --git a/modules/ceilf b/modules/ceilf
index 3c0082c783..beba067aea 100644
--- a/modules/ceilf
+++ b/modules/ceilf
@@ -9,7 +9,7 @@ m4/ceilf.m4
Depends-on:
math
extensions
-float
+float [test $HAVE_DECL_CEILF = 0 || test $REPLACE_CEILF = 1]
configure.ac:
gl_FUNC_CEILF
diff --git a/modules/ceill b/modules/ceill
index a2365c272b..51d5b92bc5 100644
--- a/modules/ceill
+++ b/modules/ceill
@@ -9,7 +9,7 @@ m4/ceill.m4
Depends-on:
math
extensions
-float
+float [test $HAVE_DECL_CEILL = 0 || test $REPLACE_CEILL = 1]
configure.ac:
gl_FUNC_CEILL
diff --git a/modules/chdir-long b/modules/chdir-long
index eb08151d63..0c8e7926ef 100644
--- a/modules/chdir-long
+++ b/modules/chdir-long
@@ -7,15 +7,16 @@ lib/chdir-long.c
m4/chdir-long.m4
Depends-on:
-atexit
-fchdir
-fcntl-h
-openat
-memchr
-mempcpy
-memrchr
-stdbool
-stdlib
+unistd
+atexit [test $gl_cv_have_arbitrary_file_name_length_limit = yes]
+fchdir [test $gl_cv_have_arbitrary_file_name_length_limit = yes]
+fcntl-h [test $gl_cv_have_arbitrary_file_name_length_limit = yes]
+openat [test $gl_cv_have_arbitrary_file_name_length_limit = yes]
+memchr [test $gl_cv_have_arbitrary_file_name_length_limit = yes]
+mempcpy [test $gl_cv_have_arbitrary_file_name_length_limit = yes]
+memrchr [test $gl_cv_have_arbitrary_file_name_length_limit = yes]
+stdbool [test $gl_cv_have_arbitrary_file_name_length_limit = yes]
+stdlib [test $gl_cv_have_arbitrary_file_name_length_limit = yes]
configure.ac:
gl_FUNC_CHDIR_LONG
diff --git a/modules/chown b/modules/chown
index 94bff841c7..ccfeb3bcdd 100644
--- a/modules/chown
+++ b/modules/chown
@@ -7,11 +7,11 @@ lib/fchown-stub.c
m4/chown.m4
Depends-on:
-open
-stat
-stdbool
-sys_stat
unistd
+open [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1]
+stat [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1]
+stdbool [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1]
+sys_stat [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1]
configure.ac:
gl_FUNC_CHOWN
diff --git a/modules/close b/modules/close
index 88e1608726..cbfa08059f 100644
--- a/modules/close
+++ b/modules/close
@@ -7,7 +7,7 @@ m4/close.m4
Depends-on:
unistd
-fd-hook
+fd-hook [test $REPLACE_CLOSE = 1]
fclose
configure.ac:
diff --git a/modules/connect b/modules/connect
index 1381ffaf91..c90f094382 100644
--- a/modules/connect
+++ b/modules/connect
@@ -7,7 +7,7 @@ lib/w32sock.h
Depends-on:
sys_socket
-errno
+errno [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
diff --git a/modules/cosl b/modules/cosl
index 88ebf9c40e..33f2e68a8f 100644
--- a/modules/cosl
+++ b/modules/cosl
@@ -11,10 +11,10 @@ m4/cosl.m4
Depends-on:
math
extensions
-float
-isnanl
-floor
-floorl
+float [test $HAVE_COSL = 0]
+isnanl [test $HAVE_COSL = 0]
+floor [test $HAVE_COSL = 0]
+floorl [test $HAVE_COSL = 0]
configure.ac:
gl_FUNC_COSL
diff --git a/modules/dirfd b/modules/dirfd
index 42ff4d7a0f..8410f38d72 100644
--- a/modules/dirfd
+++ b/modules/dirfd
@@ -7,8 +7,8 @@ m4/dirfd.m4
Depends-on:
dirent
-errno
extensions
+errno [test $ac_cv_have_decl_dirfd = no || test $REPLACE_DIRFD = 1]
configure.ac:
gl_FUNC_DIRFD
diff --git a/modules/dprintf b/modules/dprintf
index 6ebbde4c0a..8c08def360 100644
--- a/modules/dprintf
+++ b/modules/dprintf
@@ -7,9 +7,9 @@ m4/dprintf.m4
Depends-on:
stdio
-vasnprintf
-full-write
-errno
+vasnprintf [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
+full-write [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
+errno [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
configure.ac:
gl_FUNC_DPRINTF
diff --git a/modules/dprintf-posix b/modules/dprintf-posix
index 19a471807e..2423d61628 100644
--- a/modules/dprintf-posix
+++ b/modules/dprintf-posix
@@ -14,18 +14,18 @@ m4/printf.m4
Depends-on:
dprintf
-vasnprintf
-isnand-nolibm
-isnanl-nolibm
-frexp-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
nocrash
printf-safe
multiarch
+vasnprintf [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
+isnand-nolibm [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
+isnanl-nolibm [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
+frexp-nolibm [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
+frexpl-nolibm [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
+printf-frexp [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
+printf-frexpl [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
+signbit [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
+fpucw [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
configure.ac:
gl_FUNC_DPRINTF_POSIX
diff --git a/modules/error b/modules/error
index 7d43aba1cc..a1ec1e953f 100644
--- a/modules/error
+++ b/modules/error
@@ -12,8 +12,8 @@ lib/error.c
m4/error.m4
Depends-on:
-strerror
-unistd
+strerror [test $ac_cv_lib_error_at_line = no]
+unistd [test $ac_cv_lib_error_at_line = no]
configure.ac:
gl_ERROR
diff --git a/modules/euidaccess b/modules/euidaccess
index 93333f5e8e..56bcf28f1b 100644
--- a/modules/euidaccess
+++ b/modules/euidaccess
@@ -8,9 +8,9 @@ m4/euidaccess.m4
Depends-on:
unistd
extensions
-group-member
-stat
-sys_stat
+group-member [test $HAVE_EUIDACCESS = 0]
+stat [test $HAVE_EUIDACCESS = 0]
+sys_stat [test $HAVE_EUIDACCESS = 0]
configure.ac:
gl_FUNC_EUIDACCESS
diff --git a/modules/expl b/modules/expl
index 3870440e75..7681b3522a 100644
--- a/modules/expl
+++ b/modules/expl
@@ -8,8 +8,8 @@ m4/expl.m4
Depends-on:
math
extensions
-float
-floorl
+float [test $HAVE_EXPL = 0]
+floorl [test $HAVE_EXPL = 0]
configure.ac:
gl_FUNC_EXPL
diff --git a/modules/faccessat b/modules/faccessat
index 92d818556b..ce8fa0d892 100644
--- a/modules/faccessat
+++ b/modules/faccessat
@@ -6,11 +6,11 @@ lib/faccessat.c
m4/faccessat.m4
Depends-on:
-euidaccess
+unistd
extensions
fcntl-h
-openat
-unistd
+euidaccess [test $HAVE_FACCESSAT = 0]
+openat [test $HAVE_FACCESSAT = 0]
configure.ac:
gl_FUNC_FACCESSAT
diff --git a/modules/fchdir b/modules/fchdir
index 8589193ec0..7b7cb043b5 100644
--- a/modules/fchdir
+++ b/modules/fchdir
@@ -6,23 +6,23 @@ lib/fchdir.c
m4/fchdir.m4
Depends-on:
-close
-dirent
-dirfd
-dosname
-dup2
-fcntl
-fcntl-h
-filenamecat-lgpl
-getcwd-lgpl
-malloc-posix
-open
-realloc-posix
-stat
-stdbool
-strdup-posix
-sys_stat
unistd
+close [test $HAVE_FCHDIR = 0]
+dirent [test $HAVE_FCHDIR = 0]
+dirfd [test $HAVE_FCHDIR = 0]
+dosname [test $HAVE_FCHDIR = 0]
+dup2 [test $HAVE_FCHDIR = 0]
+fcntl [test $HAVE_FCHDIR = 0]
+fcntl-h [test $HAVE_FCHDIR = 0]
+filenamecat-lgpl [test $HAVE_FCHDIR = 0]
+getcwd-lgpl [test $HAVE_FCHDIR = 0]
+malloc-posix [test $HAVE_FCHDIR = 0]
+open [test $HAVE_FCHDIR = 0]
+realloc-posix [test $HAVE_FCHDIR = 0]
+stat [test $HAVE_FCHDIR = 0]
+stdbool [test $HAVE_FCHDIR = 0]
+strdup-posix [test $HAVE_FCHDIR = 0]
+sys_stat [test $HAVE_FCHDIR = 0]
configure.ac:
gl_FUNC_FCHDIR
diff --git a/modules/fclose b/modules/fclose
index 434dd737dc..ac383aa24b 100644
--- a/modules/fclose
+++ b/modules/fclose
@@ -7,9 +7,9 @@ m4/fclose.m4
Depends-on:
stdio
-close
-freading
-lseek
+close [test $REPLACE_FCLOSE = 1]
+freading [test $REPLACE_FCLOSE = 1]
+lseek [test $REPLACE_FCLOSE = 1]
configure.ac:
gl_FUNC_FCLOSE
diff --git a/modules/fcntl b/modules/fcntl
index 67630f9f01..855ee9f974 100644
--- a/modules/fcntl
+++ b/modules/fcntl
@@ -6,10 +6,10 @@ m4/fcntl.m4
lib/fcntl.c
Depends-on:
-dup2
fcntl-h
-getdtablesize
extensions
+dup2 [test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1]
+getdtablesize [test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1]
configure.ac:
gl_FUNC_FCNTL
diff --git a/modules/fdopendir b/modules/fdopendir
index 203f6c72d1..0612b74d68 100644
--- a/modules/fdopendir
+++ b/modules/fdopendir
@@ -9,11 +9,11 @@ m4/fdopendir.m4
Depends-on:
dirent
-errno
extensions
-fchdir
-openat-die
-save-cwd
+errno [test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1]
+fchdir [test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1]
+openat-die [test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1]
+save-cwd [test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1]
configure.ac:
gl_FUNC_FDOPENDIR
diff --git a/modules/fflush b/modules/fflush
index 2d5839db4c..e9649e09c8 100644
--- a/modules/fflush
+++ b/modules/fflush
@@ -7,14 +7,14 @@ lib/stdio-impl.h
m4/fflush.m4
Depends-on:
-fclose
-fpurge
-ftello
-freading
-lseek
stdio
-unistd
-fseeko
+fclose
+fpurge [test $REPLACE_FFLUSH = 1]
+ftello [test $REPLACE_FFLUSH = 1]
+freading [test $REPLACE_FFLUSH = 1]
+lseek [test $REPLACE_FFLUSH = 1]
+unistd [test $REPLACE_FFLUSH = 1]
+fseeko [test $REPLACE_FFLUSH = 1]
configure.ac-early:
AC_REQUIRE([AC_FUNC_FSEEKO])
diff --git a/modules/floor b/modules/floor
index ee898d3cd6..1393dadad4 100644
--- a/modules/floor
+++ b/modules/floor
@@ -7,7 +7,7 @@ m4/floor.m4
Depends-on:
math
-float
+float [test $REPLACE_FLOOR = 1]
configure.ac:
gl_FUNC_FLOOR
diff --git a/modules/floorf b/modules/floorf
index 47b9d5ca24..1f9d9da595 100644
--- a/modules/floorf
+++ b/modules/floorf
@@ -9,7 +9,7 @@ m4/floorf.m4
Depends-on:
math
extensions
-float
+float [test $HAVE_DECL_FLOORF = 0 || test $REPLACE_FLOORF = 1]
configure.ac:
gl_FUNC_FLOORF
diff --git a/modules/floorl b/modules/floorl
index 66c13621ad..e21199335e 100644
--- a/modules/floorl
+++ b/modules/floorl
@@ -9,7 +9,7 @@ m4/floorl.m4
Depends-on:
math
extensions
-float
+float [test $HAVE_DECL_FLOORL = 0 || test $REPLACE_FLOORL = 1]
configure.ac:
gl_FUNC_FLOORL
diff --git a/modules/fnmatch b/modules/fnmatch
index fde25a1733..12e5906afd 100644
--- a/modules/fnmatch
+++ b/modules/fnmatch
@@ -11,14 +11,14 @@ m4/fnmatch.m4
Depends-on:
arg-nonnull
extensions
-alloca
-stdbool
-wchar
-wctype-h
-memchr
-memcmp
-mbsrtowcs
-mbsinit
+alloca [test -n "$FNMATCH_H"]
+stdbool [test -n "$FNMATCH_H"]
+wchar [test -n "$FNMATCH_H"]
+wctype-h [test -n "$FNMATCH_H"]
+memchr [test -n "$FNMATCH_H"]
+memcmp [test -n "$FNMATCH_H"]
+mbsrtowcs [test -n "$FNMATCH_H"]
+mbsinit [test -n "$FNMATCH_H"]
configure.ac:
gl_FUNC_FNMATCH_POSIX
diff --git a/modules/fopen b/modules/fopen
index eddd7f650c..2177a3bf95 100644
--- a/modules/fopen
+++ b/modules/fopen
@@ -7,7 +7,7 @@ m4/fopen.m4
Depends-on:
stdio
-unistd
+unistd [test $REPLACE_FOPEN = 1]
configure.ac:
gl_FUNC_FOPEN
diff --git a/modules/fprintf-posix b/modules/fprintf-posix
index be2b010dd8..47e76c5c50 100644
--- a/modules/fprintf-posix
+++ b/modules/fprintf-posix
@@ -14,20 +14,20 @@ m4/printf.m4
Depends-on:
stdio
-fseterr
-vasnprintf
-isnand-nolibm
-isnanl-nolibm
-frexp-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
nocrash
printf-safe
errno
multiarch
+fseterr [test $REPLACE_FPRINTF = 1]
+vasnprintf [test $REPLACE_FPRINTF = 1]
+isnand-nolibm [test $REPLACE_FPRINTF = 1]
+isnanl-nolibm [test $REPLACE_FPRINTF = 1]
+frexp-nolibm [test $REPLACE_FPRINTF = 1]
+frexpl-nolibm [test $REPLACE_FPRINTF = 1]
+printf-frexp [test $REPLACE_FPRINTF = 1]
+printf-frexpl [test $REPLACE_FPRINTF = 1]
+signbit [test $REPLACE_FPRINTF = 1]
+fpucw [test $REPLACE_FPRINTF = 1]
configure.ac:
gl_FUNC_FPRINTF_POSIX
diff --git a/modules/frexp b/modules/frexp
index 7fae366dbe..3ada9b2f29 100644
--- a/modules/frexp
+++ b/modules/frexp
@@ -7,7 +7,7 @@ m4/frexp.m4
Depends-on:
math
-isnand-nolibm
+isnand-nolibm [test $gl_func_frexp != yes]
configure.ac:
gl_FUNC_FREXP
diff --git a/modules/frexp-nolibm b/modules/frexp-nolibm
index 6a909e972f..34eb958a99 100644
--- a/modules/frexp-nolibm
+++ b/modules/frexp-nolibm
@@ -7,7 +7,7 @@ m4/frexp.m4
Depends-on:
math
-isnand-nolibm
+isnand-nolibm [test $gl_func_frexp_no_libm != yes]
configure.ac:
gl_FUNC_FREXP_NO_LIBM
diff --git a/modules/frexpl b/modules/frexpl
index 185d54dde2..d1f0159b63 100644
--- a/modules/frexpl
+++ b/modules/frexpl
@@ -8,8 +8,8 @@ m4/frexpl.m4
Depends-on:
math
-isnanl-nolibm
-fpucw
+isnanl-nolibm [test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no]
+fpucw [test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no]
configure.ac:
gl_FUNC_FREXPL
diff --git a/modules/frexpl-nolibm b/modules/frexpl-nolibm
index 80ce8fb701..dbe1a82820 100644
--- a/modules/frexpl-nolibm
+++ b/modules/frexpl-nolibm
@@ -9,8 +9,8 @@ m4/frexpl.m4
Depends-on:
math
-isnanl-nolibm
-fpucw
+isnanl-nolibm [test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no]
+fpucw [test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no]
configure.ac:
gl_FUNC_FREXPL_NO_LIBM
diff --git a/modules/fseek b/modules/fseek
index 07f948e8e1..98c6d3f57f 100644
--- a/modules/fseek
+++ b/modules/fseek
@@ -6,8 +6,8 @@ lib/fseek.c
m4/fseek.m4
Depends-on:
-fseeko
stdio
+fseeko [test $REPLACE_FSEEK = 1]
configure.ac:
gl_FUNC_FSEEK
diff --git a/modules/fsusage b/modules/fsusage
index c8496880bd..cdefb60cf2 100644
--- a/modules/fsusage
+++ b/modules/fsusage
@@ -7,9 +7,9 @@ lib/fsusage.c
m4/fsusage.m4
Depends-on:
-full-read
stdbool
stdint
+full-read [test $gl_cv_fs_space = yes]
configure.ac:
gl_FSUSAGE
diff --git a/modules/ftell b/modules/ftell
index 6e9dc25965..cc95d169f0 100644
--- a/modules/ftell
+++ b/modules/ftell
@@ -6,9 +6,9 @@ lib/ftell.c
m4/ftell.m4
Depends-on:
-ftello
stdio
errno
+ftello [test $REPLACE_FTELL = 1]
configure.ac:
gl_FUNC_FTELL
diff --git a/modules/ftello b/modules/ftello
index 0cf160c981..b042e84808 100644
--- a/modules/ftello
+++ b/modules/ftello
@@ -8,9 +8,9 @@ m4/fseeko.m4
m4/ftello.m4
Depends-on:
-extensions
-lseek
stdio
+extensions
+lseek [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1]
configure.ac-early:
AC_REQUIRE([AC_FUNC_FSEEKO])
diff --git a/modules/futimens b/modules/futimens
index 17bff44a0a..2e6ecf8749 100644
--- a/modules/futimens
+++ b/modules/futimens
@@ -7,8 +7,8 @@ m4/futimens.m4
Depends-on:
sys_stat
-utimens
extensions
+utimens [test $HAVE_FUTIMENS = 0 || test $REPLACE_FUTIMENS = 1]
configure.ac:
gl_FUNC_FUTIMENS
diff --git a/modules/getcwd b/modules/getcwd
index 27ec25a458..cc80bfe882 100644
--- a/modules/getcwd
+++ b/modules/getcwd
@@ -8,15 +8,15 @@ m4/getcwd-path-max.m4
m4/getcwd.m4
Depends-on:
-mempcpy
-d-ino
-extensions
-memmove
-openat
-stdbool
unistd
-malloc-posix
-strdup-posix
+extensions
+mempcpy [test $REPLACE_GETCWD = 1]
+d-ino [test $REPLACE_GETCWD = 1]
+memmove [test $REPLACE_GETCWD = 1]
+openat [test $REPLACE_GETCWD = 1]
+stdbool [test $REPLACE_GETCWD = 1]
+malloc-posix [test $REPLACE_GETCWD = 1]
+strdup-posix [test $REPLACE_GETCWD = 1]
configure.ac:
gl_FUNC_GETCWD
diff --git a/modules/getcwd-lgpl b/modules/getcwd-lgpl
index 1b9c87bf50..72e6a7fc08 100644
--- a/modules/getcwd-lgpl
+++ b/modules/getcwd-lgpl
@@ -6,8 +6,8 @@ lib/getcwd-lgpl.c
m4/getcwd.m4
Depends-on:
-strdup
unistd
+strdup [test $REPLACE_GETCWD = 1]
configure.ac:
gl_FUNC_GETCWD_LGPL
diff --git a/modules/getdelim b/modules/getdelim
index 0f17b608fa..c3ef317a11 100644
--- a/modules/getdelim
+++ b/modules/getdelim
@@ -6,11 +6,11 @@ lib/getdelim.c
m4/getdelim.m4
Depends-on:
-extensions
stdio
-stdint
-realloc-posix
-errno
+extensions
+stdint [test $HAVE_DECL_GETDELIM = 0 || test $REPLACE_GETDELIM = 1]
+realloc-posix [test $HAVE_DECL_GETDELIM = 0 || test $REPLACE_GETDELIM = 1]
+errno [test $HAVE_DECL_GETDELIM = 0 || test $REPLACE_GETDELIM = 1]
configure.ac:
gl_FUNC_GETDELIM
diff --git a/modules/getdomainname b/modules/getdomainname
index 5a9d23f585..c7f77b0ec0 100644
--- a/modules/getdomainname
+++ b/modules/getdomainname
@@ -8,8 +8,8 @@ m4/getdomainname.m4
Depends-on:
unistd
extensions
-netdb
-sys_socket
+netdb [test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1]
+sys_socket [test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1]
configure.ac:
gl_FUNC_GETDOMAINNAME
diff --git a/modules/getgroups b/modules/getgroups
index aabcefc5cc..438236befa 100644
--- a/modules/getgroups
+++ b/modules/getgroups
@@ -6,9 +6,9 @@ lib/getgroups.c
m4/getgroups.m4
Depends-on:
-malloc-posix
-stdint
unistd
+malloc-posix [test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1]
+stdint [test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1]
configure.ac:
gl_FUNC_GETGROUPS
diff --git a/modules/gethostname b/modules/gethostname
index 8c24571276..359434ab37 100644
--- a/modules/gethostname
+++ b/modules/gethostname
@@ -8,9 +8,9 @@ lib/w32sock.h
Depends-on:
unistd
-sys_socket
-errno
-sockets
+sys_socket [test $HAVE_GETHOSTNAME = 0]
+errno [test $HAVE_GETHOSTNAME = 0]
+sockets [test $HAVE_GETHOSTNAME = 0]
configure.ac:
gl_FUNC_GETHOSTNAME
diff --git a/modules/getline b/modules/getline
index 1fb9b9c22e..b565f6620b 100644
--- a/modules/getline
+++ b/modules/getline
@@ -6,9 +6,9 @@ lib/getline.c
m4/getline.m4
Depends-on:
-extensions
-getdelim
stdio
+extensions
+getdelim [test $REPLACE_GETLINE = 1]
configure.ac:
gl_FUNC_GETLINE
diff --git a/modules/getlogin_r b/modules/getlogin_r
index 1d5c20b836..c0fb4a691f 100644
--- a/modules/getlogin_r
+++ b/modules/getlogin_r
@@ -6,9 +6,9 @@ lib/getlogin_r.c
m4/getlogin_r.m4
Depends-on:
-extensions
unistd
-memchr
+extensions
+memchr [test $HAVE_GETLOGIN_R = 0 || test $REPLACE_GETLOGIN_R = 1]
configure.ac:
gl_FUNC_GETLOGIN_R
diff --git a/modules/getopt-posix b/modules/getopt-posix
index 18bad69dac..6be0cbce89 100644
--- a/modules/getopt-posix
+++ b/modules/getopt-posix
@@ -9,11 +9,11 @@ lib/getopt_int.h
m4/getopt.m4
Depends-on:
-gettext-h
unistd
extensions
include_next
arg-nonnull
+gettext-h [test $GNULIB_UNISTD_H_GETOPT = 1]
configure.ac:
gl_FUNC_GETOPT_POSIX
diff --git a/modules/getpeername b/modules/getpeername
index a8a4fcaff2..4cdae38e2e 100644
--- a/modules/getpeername
+++ b/modules/getpeername
@@ -8,7 +8,7 @@ lib/w32sock.h
Depends-on:
sys_socket
-errno
+errno [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
diff --git a/modules/getsockname b/modules/getsockname
index a7f8881c74..223479e406 100644
--- a/modules/getsockname
+++ b/modules/getsockname
@@ -8,7 +8,7 @@ lib/w32sock.h
Depends-on:
sys_socket
-errno
+errno [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
diff --git a/modules/getsockopt b/modules/getsockopt
index 40ff649817..5b8c18d854 100644
--- a/modules/getsockopt
+++ b/modules/getsockopt
@@ -7,8 +7,8 @@ lib/w32sock.h
Depends-on:
sys_socket
-sys_time
-errno
+sys_time [test "$ac_cv_header_winsock2_h" = yes]
+errno [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
diff --git a/modules/getsubopt b/modules/getsubopt
index a28e2a0a2c..eaf8e87b38 100644
--- a/modules/getsubopt
+++ b/modules/getsubopt
@@ -6,10 +6,10 @@ lib/getsubopt.c
m4/getsubopt.m4
Depends-on:
-extensions
-strchrnul
stdlib
-memchr
+extensions
+strchrnul [test $HAVE_GETSUBOPT = 0]
+memchr [test $HAVE_GETSUBOPT = 0]
configure.ac:
gl_FUNC_GETSUBOPT
diff --git a/modules/getusershell b/modules/getusershell
index 9ae7dcae1e..56e8b5f0e0 100644
--- a/modules/getusershell
+++ b/modules/getusershell
@@ -8,8 +8,8 @@ m4/getusershell.m4
Depends-on:
unistd
extensions
-fopen-safer
-xalloc
+fopen-safer [test $ac_cv_func_getusershell = no]
+xalloc [test $ac_cv_func_getusershell = no]
configure.ac:
gl_FUNC_GETUSERSHELL
diff --git a/modules/glob b/modules/glob
index 114cb6d121..db5410b51b 100644
--- a/modules/glob
+++ b/modules/glob
@@ -9,22 +9,22 @@ lib/glob.c
m4/glob.m4
Depends-on:
-alloca
arg-nonnull
c++defs
-d-type
-dirfd
extensions
-fnmatch
-getlogin_r
-memchr
-mempcpy
-stdbool
-strdup
-sys_stat
-unistd
warn-on-use
-malloc-posix
+alloca [test -n "$GLOB_H"]
+d-type [test -n "$GLOB_H"]
+dirfd [test -n "$GLOB_H"]
+fnmatch [test -n "$GLOB_H"]
+getlogin_r [test -n "$GLOB_H"]
+memchr [test -n "$GLOB_H"]
+mempcpy [test -n "$GLOB_H"]
+stdbool [test -n "$GLOB_H"]
+strdup [test -n "$GLOB_H"]
+sys_stat [test -n "$GLOB_H"]
+unistd [test -n "$GLOB_H"]
+malloc-posix [test -n "$GLOB_H"]
configure.ac:
gl_GLOB
diff --git a/modules/grantpt b/modules/grantpt
index a5d9eb4034..589360d175 100644
--- a/modules/grantpt
+++ b/modules/grantpt
@@ -8,9 +8,9 @@ m4/grantpt.m4
Depends-on:
stdlib
extensions
-pt_chown
-waitpid
-configmake
+pt_chown [test $HAVE_GRANTPT = 0]
+waitpid [test $HAVE_GRANTPT = 0]
+configmake [test $HAVE_GRANTPT = 0]
configure.ac:
gl_FUNC_GRANTPT
diff --git a/modules/iconv_open b/modules/iconv_open
index 7b8190fe74..ee7de0eaf4 100644
--- a/modules/iconv_open
+++ b/modules/iconv_open
@@ -14,8 +14,8 @@ Depends-on:
gperf
iconv-h
iconv
-c-ctype
-c-strcase
+c-ctype [test $REPLACE_ICONV_OPEN = 1]
+c-strcase [test $REPLACE_ICONV_OPEN = 1]
configure.ac:
gl_FUNC_ICONV_OPEN
diff --git a/modules/iconv_open-utf b/modules/iconv_open-utf
index be6ff9f4ee..b29b3092d9 100644
--- a/modules/iconv_open-utf
+++ b/modules/iconv_open-utf
@@ -8,9 +8,9 @@ m4/iconv_open.m4
Depends-on:
iconv_open
-stdint
-unistr/u8-mbtoucr
-unistr/u8-uctomb
+stdint [test $REPLACE_ICONV_UTF = 1]
+unistr/u8-mbtoucr [test $REPLACE_ICONV_UTF = 1]
+unistr/u8-uctomb [test $REPLACE_ICONV_UTF = 1]
configure.ac:
gl_FUNC_ICONV_OPEN_UTF
diff --git a/modules/inet_ntop b/modules/inet_ntop
index 3b00b62a08..7e9c7f4198 100644
--- a/modules/inet_ntop
+++ b/modules/inet_ntop
@@ -6,11 +6,11 @@ lib/inet_ntop.c
m4/inet_ntop.m4
Depends-on:
-sys_socket
arpa_inet
-errno
-netinet_in
extensions
+sys_socket [test "$ac_cv_search_inet_ntop" = no && test $ac_cv_func_inet_ntop = no]
+errno [test "$ac_cv_search_inet_ntop" = no && test $ac_cv_func_inet_ntop = no]
+netinet_in [test "$ac_cv_search_inet_ntop" = no && test $ac_cv_func_inet_ntop = no]
configure.ac:
gl_FUNC_INET_NTOP
diff --git a/modules/inet_pton b/modules/inet_pton
index 44c50b892e..18fe07ec5f 100644
--- a/modules/inet_pton
+++ b/modules/inet_pton
@@ -6,12 +6,12 @@ lib/inet_pton.c
m4/inet_pton.m4
Depends-on:
-c-ctype
-sys_socket
arpa_inet
-errno
-netinet_in
extensions
+c-ctype [test "$ac_cv_search_inet_pton" = no && test $ac_cv_func_inet_pton = no]
+sys_socket [test "$ac_cv_search_inet_pton" = no && test $ac_cv_func_inet_pton = no]
+errno [test "$ac_cv_search_inet_pton" = no && test $ac_cv_func_inet_pton = no]
+netinet_in [test "$ac_cv_search_inet_pton" = no && test $ac_cv_func_inet_pton = no]
configure.ac:
gl_FUNC_INET_PTON
diff --git a/modules/ioctl b/modules/ioctl
index 6a54f0318b..57328f3efb 100644
--- a/modules/ioctl
+++ b/modules/ioctl
@@ -8,9 +8,9 @@ m4/ioctl.m4
Depends-on:
sys_ioctl
-sys_socket
-errno
-fd-hook
+sys_socket [test "$ac_cv_header_winsock2_h" = yes || test $REPLACE_IOCTL = 1]
+errno [test "$ac_cv_header_winsock2_h" = yes || test $REPLACE_IOCTL = 1]
+fd-hook [test "$ac_cv_header_winsock2_h" = yes || test $REPLACE_IOCTL = 1]
configure.ac:
gl_FUNC_IOCTL
diff --git a/modules/isapipe b/modules/isapipe
index 6352af4519..ee1c2202d6 100644
--- a/modules/isapipe
+++ b/modules/isapipe
@@ -7,9 +7,9 @@ lib/isapipe.h
m4/isapipe.m4
Depends-on:
-stdbool
-sys_stat
-unistd
+stdbool [test $ac_cv_func_isapipe = no]
+sys_stat [test $ac_cv_func_isapipe = no]
+unistd [test $ac_cv_func_isapipe = no]
configure.ac:
gl_ISAPIPE
diff --git a/modules/isfinite b/modules/isfinite
index f122c5ad70..00f3e87224 100644
--- a/modules/isfinite
+++ b/modules/isfinite
@@ -7,11 +7,11 @@ m4/isfinite.m4
m4/check-math-lib.m4
Depends-on:
-isnanf-nolibm
-isnand-nolibm
-isnanl-nolibm
math
extensions
+isnanf-nolibm [test $REPLACE_ISFINITE = 1]
+isnand-nolibm [test $REPLACE_ISFINITE = 1]
+isnanl-nolibm [test $REPLACE_ISFINITE = 1]
configure.ac:
gl_ISFINITE
diff --git a/modules/isinf b/modules/isinf
index 2c6851c060..1a8399fe7b 100644
--- a/modules/isinf
+++ b/modules/isinf
@@ -7,9 +7,9 @@ m4/isinf.m4
m4/check-math-lib.m4
Depends-on:
-float
math
extensions
+float [test $REPLACE_ISINF = 1]
configure.ac:
gl_ISINF
diff --git a/modules/lchown b/modules/lchown
index 9fea1b3375..d9d140e3c4 100644
--- a/modules/lchown
+++ b/modules/lchown
@@ -6,12 +6,12 @@ lib/lchown.c
m4/lchown.m4
Depends-on:
-chown
-errno
-lstat
-stdbool
-sys_stat
unistd
+chown [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
+errno [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
+lstat [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
+stdbool [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
+sys_stat [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
configure.ac:
gl_FUNC_LCHOWN
diff --git a/modules/ldexpl b/modules/ldexpl
index 7dd82ccb38..517a40a8dd 100644
--- a/modules/ldexpl
+++ b/modules/ldexpl
@@ -7,8 +7,8 @@ m4/ldexpl.m4
Depends-on:
math
-isnanl
-fpucw
+isnanl [test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no]
+fpucw [test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no]
configure.ac:
gl_FUNC_LDEXPL
diff --git a/modules/link b/modules/link
index 6a006c31e0..38cf5ec9f0 100644
--- a/modules/link
+++ b/modules/link
@@ -6,10 +6,10 @@ lib/link.c
m4/link.m4
Depends-on:
-stat
-strdup-posix
-sys_stat
unistd
+stat [test $HAVE_LINK = 0 || test $REPLACE_LINK = 1]
+strdup-posix [test $HAVE_LINK = 0 || test $REPLACE_LINK = 1]
+sys_stat [test $HAVE_LINK = 0 || test $REPLACE_LINK = 1]
configure.ac:
gl_FUNC_LINK
diff --git a/modules/linkat b/modules/linkat
index 2d7a2dfed5..2cb717776f 100644
--- a/modules/linkat
+++ b/modules/linkat
@@ -7,24 +7,24 @@ lib/linkat.c
m4/linkat.m4
Depends-on:
-areadlink
-areadlinkat
-dirname-lgpl
-errno
-extensions
-fcntl-h
-filenamecat-lgpl
-getcwd-lgpl
-openat
-link
-link-follow
-lstat
-readlink
-same-inode
-stpcpy
-symlink
-symlinkat
unistd
+extensions
+areadlink [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
+areadlinkat [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
+dirname-lgpl [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
+errno [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
+fcntl-h [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
+filenamecat-lgpl [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
+getcwd-lgpl [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
+openat [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
+link [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
+link-follow [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
+lstat [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
+readlink [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
+same-inode [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
+stpcpy [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
+symlink [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
+symlinkat [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
configure.ac:
gl_FUNC_LINKAT
diff --git a/modules/listen b/modules/listen
index 6912f5d695..7c77557d5c 100644
--- a/modules/listen
+++ b/modules/listen
@@ -7,7 +7,7 @@ lib/w32sock.h
Depends-on:
sys_socket
-errno
+errno [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
diff --git a/modules/logl b/modules/logl
index c9b7237dc2..7883f444e0 100644
--- a/modules/logl
+++ b/modules/logl
@@ -8,9 +8,9 @@ m4/logl.m4
Depends-on:
math
extensions
-frexpl
-isnanl
-floorl
+frexpl [test $HAVE_LOGL = 0]
+isnanl [test $HAVE_LOGL = 0]
+floorl [test $HAVE_LOGL = 0]
configure.ac:
gl_FUNC_LOGL
diff --git a/modules/lstat b/modules/lstat
index e53ac7ed70..a945a11636 100644
--- a/modules/lstat
+++ b/modules/lstat
@@ -6,9 +6,9 @@ lib/lstat.c
m4/lstat.m4
Depends-on:
-dosname
-stat
sys_stat
+dosname [test $REPLACE_LSTAT = 1]
+stat [test $REPLACE_LSTAT = 1]
configure.ac:
gl_FUNC_LSTAT
diff --git a/modules/mbrlen b/modules/mbrlen
index e7f36734eb..5bc9f297ca 100644
--- a/modules/mbrlen
+++ b/modules/mbrlen
@@ -8,8 +8,8 @@ m4/mbstate_t.m4
Depends-on:
wchar
-mbrtowc
extensions
+mbrtowc [test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1]
configure.ac:
gl_FUNC_MBRLEN
diff --git a/modules/mbrtowc b/modules/mbrtowc
index 5981633e60..85cde1e394 100644
--- a/modules/mbrtowc
+++ b/modules/mbrtowc
@@ -12,11 +12,11 @@ m4/codeset.m4
Depends-on:
wchar
-mbsinit
-localcharset
-streq
-verify
extensions
+mbsinit [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1]
+localcharset [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1]
+streq [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1]
+verify [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1]
configure.ac:
gl_FUNC_MBRTOWC
diff --git a/modules/mbsinit b/modules/mbsinit
index 4e673c7742..a8ee058a0e 100644
--- a/modules/mbsinit
+++ b/modules/mbsinit
@@ -8,9 +8,9 @@ m4/mbstate_t.m4
Depends-on:
wchar
-mbrtowc
-verify
extensions
+mbrtowc [test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1]
+verify [test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1]
configure.ac:
gl_FUNC_MBSINIT
diff --git a/modules/mbsnrtowcs b/modules/mbsnrtowcs
index e8975b8545..a179296810 100644
--- a/modules/mbsnrtowcs
+++ b/modules/mbsnrtowcs
@@ -9,11 +9,11 @@ m4/mbsnrtowcs.m4
m4/mbstate_t.m4
Depends-on:
-extensions
wchar
-mbrtowc
-minmax
-strnlen1
+extensions
+mbrtowc [test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1]
+minmax [test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1]
+strnlen1 [test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1]
configure.ac:
gl_FUNC_MBSNRTOWCS
diff --git a/modules/mbsrtowcs b/modules/mbsrtowcs
index 973b69538d..66dd78f67b 100644
--- a/modules/mbsrtowcs
+++ b/modules/mbsrtowcs
@@ -14,9 +14,9 @@ m4/codeset.m4
Depends-on:
wchar
-mbrtowc
-strnlen1
extensions
+mbrtowc [test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1]
+strnlen1 [test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1]
configure.ac:
gl_FUNC_MBSRTOWCS
diff --git a/modules/mbtowc b/modules/mbtowc
index f41d508385..02b0c88dcf 100644
--- a/modules/mbtowc
+++ b/modules/mbtowc
@@ -8,8 +8,8 @@ m4/mbtowc.m4
Depends-on:
stdlib
-mbrtowc
-wchar
+mbrtowc [test $REPLACE_MBTOWC = 1]
+wchar [test $REPLACE_MBTOWC = 1]
configure.ac:
gl_FUNC_MBTOWC
diff --git a/modules/memcmp b/modules/memcmp
index c6bc26200a..dda4324882 100644
--- a/modules/memcmp
+++ b/modules/memcmp
@@ -12,7 +12,7 @@ lib/memcmp.c
m4/memcmp.m4
Depends-on:
-stdint
+stdint [test $ac_cv_func_memcmp_working = no]
configure.ac:
gl_FUNC_MEMCMP
diff --git a/modules/mkdir b/modules/mkdir
index 08089d008f..44b9057fc8 100644
--- a/modules/mkdir
+++ b/modules/mkdir
@@ -6,8 +6,8 @@ lib/mkdir.c
m4/mkdir.m4
Depends-on:
-dirname-lgpl
sys_stat
+dirname-lgpl [test $REPLACE_MKDIR = 1]
configure.ac:
gl_FUNC_MKDIR
diff --git a/modules/mkdtemp b/modules/mkdtemp
index 3c5aeee29b..4ca30c49ac 100644
--- a/modules/mkdtemp
+++ b/modules/mkdtemp
@@ -6,9 +6,9 @@ lib/mkdtemp.c
m4/mkdtemp.m4
Depends-on:
-stdint
stdlib
-tempname
+stdint [test $HAVE_MKDTEMP = 0]
+tempname [test $HAVE_MKDTEMP = 0]
configure.ac:
gt_FUNC_MKDTEMP
diff --git a/modules/mkfifo b/modules/mkfifo
index 3eaaad6c69..dae3755f73 100644
--- a/modules/mkfifo
+++ b/modules/mkfifo
@@ -6,8 +6,8 @@ lib/mkfifo.c
m4/mkfifo.m4
Depends-on:
-stat
sys_stat
+stat [test $HAVE_MKFIFO = 0 || test $REPLACE_MKFIFO = 1]
configure.ac:
gl_FUNC_MKFIFO
diff --git a/modules/mkfifoat b/modules/mkfifoat
index 2bc7e65573..705fb4f9cf 100644
--- a/modules/mkfifoat
+++ b/modules/mkfifoat
@@ -7,12 +7,12 @@ lib/mknodat.c
m4/mkfifoat.m4
Depends-on:
+sys_stat
extensions
fcntl-h
-mkfifo
-mknod
-openat
-sys_stat
+mkfifo [test $HAVE_MKFIFOAT = 0]
+mknod [test $HAVE_MKNODAT = 0]
+openat [test $HAVE_MKFIFOAT = 0 || test $HAVE_MKNODAT = 0]
configure.ac:
gl_FUNC_MKFIFOAT
diff --git a/modules/mknod b/modules/mknod
index c965606e7f..6db2d5e08c 100644
--- a/modules/mknod
+++ b/modules/mknod
@@ -6,10 +6,10 @@ lib/mknod.c
m4/mknod.m4
Depends-on:
-mkfifo
-stat
sys_stat
extensions
+mkfifo [test $HAVE_MKNOD = 0 || test $REPLACE_MKNOD = 1]
+stat [test $HAVE_MKNOD = 0 || test $REPLACE_MKNOD = 1]
configure.ac:
gl_FUNC_MKNOD
diff --git a/modules/mkostemp b/modules/mkostemp
index 8a61dbeb07..85b01b7e26 100644
--- a/modules/mkostemp
+++ b/modules/mkostemp
@@ -7,9 +7,9 @@ lib/mkostemp.c
m4/mkostemp.m4
Depends-on:
-extensions
stdlib
-tempname
+extensions
+tempname [test $HAVE_MKOSTEMP = 0]
configure.ac:
gl_FUNC_MKOSTEMP
diff --git a/modules/mkostemps b/modules/mkostemps
index a4175bdb50..ff3c97acee 100644
--- a/modules/mkostemps
+++ b/modules/mkostemps
@@ -7,9 +7,9 @@ lib/mkostemps.c
m4/mkostemps.m4
Depends-on:
-extensions
stdlib
-tempname
+extensions
+tempname [test $HAVE_MKOSTEMPS = 0]
configure.ac:
gl_FUNC_MKOSTEMPS
diff --git a/modules/mkstemp b/modules/mkstemp
index 265144b942..0f4fef6665 100644
--- a/modules/mkstemp
+++ b/modules/mkstemp
@@ -6,9 +6,9 @@ lib/mkstemp.c
m4/mkstemp.m4
Depends-on:
-extensions
stdlib
-tempname
+extensions
+tempname [test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1]
configure.ac:
gl_FUNC_MKSTEMP
diff --git a/modules/mkstemps b/modules/mkstemps
index 2a49777674..56718a9b42 100644
--- a/modules/mkstemps
+++ b/modules/mkstemps
@@ -6,9 +6,9 @@ lib/mkstemps.c
m4/mkstemps.m4
Depends-on:
-extensions
stdlib
-tempname
+extensions
+tempname [test $HAVE_MKSTEMPS = 0]
configure.ac:
gl_FUNC_MKSTEMPS
diff --git a/modules/mktime b/modules/mktime
index d5b0ee7954..81aa7148d0 100644
--- a/modules/mktime
+++ b/modules/mktime
@@ -8,7 +8,7 @@ m4/mktime.m4
Depends-on:
multiarch
-time_r
+time_r [test $REPLACE_MKTIME = 1]
configure.ac:
gl_FUNC_MKTIME
diff --git a/modules/nanosleep b/modules/nanosleep
index dfe1c7acbe..36d92be6cb 100644
--- a/modules/nanosleep
+++ b/modules/nanosleep
@@ -6,16 +6,16 @@ lib/nanosleep.c
m4/nanosleep.m4
Depends-on:
+time
extensions
-intprops
multiarch
-select
-sigaction
-stdbool
-sys_select
-sys_time
-time
-verify
+intprops [test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1]
+select [test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1]
+sigaction [test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1]
+stdbool [test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1]
+sys_select [test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1]
+sys_time [test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1]
+verify [test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1]
configure.ac:
gl_FUNC_NANOSLEEP
diff --git a/modules/open b/modules/open
index 29829084eb..ea0f5ae57c 100644
--- a/modules/open
+++ b/modules/open
@@ -8,7 +8,7 @@ m4/mode_t.m4
Depends-on:
fcntl-h
-stat
+stat [test $REPLACE_OPEN = 1]
configure.ac:
gl_FUNC_OPEN
diff --git a/modules/openat b/modules/openat
index 35917c59d7..abd3b63b95 100644
--- a/modules/openat
+++ b/modules/openat
@@ -24,18 +24,18 @@ fcntl-h
fdopendir
gettext-h
intprops
-lchown
+lchown [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
lstat
-mkdir
+mkdir [test $HAVE_MKDIRAT = 0]
open
openat-die
-rmdir
+rmdir [test $REPLACE_UNLINKAT = 1]
same-inode
save-cwd
stdbool
sys_stat
unistd
-unlink
+unlink [test $REPLACE_UNLINKAT = 1]
configure.ac:
gl_FUNC_OPENAT
diff --git a/modules/perror b/modules/perror
index c01902959b..d2147b6b66 100644
--- a/modules/perror
+++ b/modules/perror
@@ -7,8 +7,8 @@ m4/perror.m4
Depends-on:
stdio
-errno
-strerror
+errno [test $REPLACE_PERROR = 1]
+strerror [test $REPLACE_PERROR = 1]
configure.ac:
gl_FUNC_PERROR
diff --git a/modules/poll b/modules/poll
index 8690271e0d..478e99ba74 100644
--- a/modules/poll
+++ b/modules/poll
@@ -7,11 +7,11 @@ m4/poll.m4
Depends-on:
poll-h
-alloca
-select
-sys_select
-sys_time
-errno
+alloca [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
+select [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
+sys_select [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
+sys_time [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
+errno [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
configure.ac:
gl_FUNC_POLL
diff --git a/modules/popen b/modules/popen
index 75e278d8ec..d4ba0ab062 100644
--- a/modules/popen
+++ b/modules/popen
@@ -6,8 +6,8 @@ lib/popen.c
m4/popen.m4
Depends-on:
-open
stdio
+open [test $REPLACE_POPEN = 1]
configure.ac:
gl_FUNC_POPEN
diff --git a/modules/posix_spawn b/modules/posix_spawn
index a4967b9c28..2d4ddf3865 100644
--- a/modules/posix_spawn
+++ b/modules/posix_spawn
@@ -7,7 +7,7 @@ m4/posix_spawn.m4
Depends-on:
spawn
-posix_spawn-internal
+posix_spawn-internal [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1]
configure.ac:
gl_POSIX_SPAWN
diff --git a/modules/posix_spawn_file_actions_addclose b/modules/posix_spawn_file_actions_addclose
index 80b1c91536..d24a0c9cc6 100644
--- a/modules/posix_spawn_file_actions_addclose
+++ b/modules/posix_spawn_file_actions_addclose
@@ -9,7 +9,7 @@ m4/posix_spawn.m4
Depends-on:
spawn
-getdtablesize
+getdtablesize [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1]
configure.ac:
gl_POSIX_SPAWN
diff --git a/modules/posix_spawn_file_actions_adddup2 b/modules/posix_spawn_file_actions_adddup2
index 173dc64344..59c828e9b2 100644
--- a/modules/posix_spawn_file_actions_adddup2
+++ b/modules/posix_spawn_file_actions_adddup2
@@ -9,7 +9,7 @@ m4/posix_spawn.m4
Depends-on:
spawn
-getdtablesize
+getdtablesize [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1]
configure.ac:
gl_POSIX_SPAWN
diff --git a/modules/posix_spawn_file_actions_addopen b/modules/posix_spawn_file_actions_addopen
index d621d2df8c..f828976ea6 100644
--- a/modules/posix_spawn_file_actions_addopen
+++ b/modules/posix_spawn_file_actions_addopen
@@ -9,7 +9,7 @@ m4/posix_spawn.m4
Depends-on:
spawn
-getdtablesize
+getdtablesize [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1]
configure.ac:
gl_POSIX_SPAWN
diff --git a/modules/posix_spawnp b/modules/posix_spawnp
index 1cac784a42..7e2464780d 100644
--- a/modules/posix_spawnp
+++ b/modules/posix_spawnp
@@ -7,7 +7,7 @@ m4/posix_spawn.m4
Depends-on:
spawn
-posix_spawn-internal
+posix_spawn-internal [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1]
configure.ac:
gl_POSIX_SPAWN
diff --git a/modules/pread b/modules/pread
index 0ae6e741f5..5fcb47ca24 100644
--- a/modules/pread
+++ b/modules/pread
@@ -6,10 +6,10 @@ lib/pread.c
m4/pread.m4
Depends-on:
-extensions
-lseek
-read
unistd
+extensions
+lseek [test $HAVE_PREAD = 0 || test $REPLACE_PREAD = 1]
+read [test $HAVE_PREAD = 0 || test $REPLACE_PREAD = 1]
configure.ac:
gl_FUNC_PREAD
diff --git a/modules/printf-posix b/modules/printf-posix
index 0597ef9c6f..1c763a0c12 100644
--- a/modules/printf-posix
+++ b/modules/printf-posix
@@ -15,8 +15,8 @@ m4/asm-underscore.m4
Depends-on:
stdio
-vfprintf-posix
printf-safe
+vfprintf-posix [test $REPLACE_PRINTF = 1]
configure.ac:
gl_FUNC_PRINTF_POSIX
diff --git a/modules/ptsname b/modules/ptsname
index d6ae046830..ab14894d3b 100644
--- a/modules/ptsname
+++ b/modules/ptsname
@@ -8,7 +8,7 @@ m4/ptsname.m4
Depends-on:
stdlib
extensions
-ttyname_r
+ttyname_r [test $HAVE_PTSNAME = 0]
configure.ac:
gl_FUNC_PTSNAME
diff --git a/modules/putenv b/modules/putenv
index 3874b541b8..ce28e4c6e9 100644
--- a/modules/putenv
+++ b/modules/putenv
@@ -7,7 +7,7 @@ m4/putenv.m4
Depends-on:
stdlib
-malloc-posix
+malloc-posix [test $REPLACE_PUTENV = 1]
configure.ac:
gl_FUNC_PUTENV
diff --git a/modules/pwrite b/modules/pwrite
index 077036474d..f2dd02fb23 100644
--- a/modules/pwrite
+++ b/modules/pwrite
@@ -6,10 +6,10 @@ lib/pwrite.c
m4/pwrite.m4
Depends-on:
-extensions
-lseek
unistd
-write
+extensions
+lseek [test $HAVE_PWRITE = 0 || test $REPLACE_PWRITE = 1]
+write [test $HAVE_PWRITE = 0 || test $REPLACE_PWRITE = 1]
configure.ac:
gl_FUNC_PWRITE
diff --git a/modules/readline b/modules/readline
index 933ae5b629..7f2af8f061 100644
--- a/modules/readline
+++ b/modules/readline
@@ -7,8 +7,8 @@ lib/readline.c
m4/readline.m4
Depends-on:
-getline
havelib
+getline [test "$gl_cv_lib_readline" = no]
configure.ac:
gl_FUNC_READLINE
diff --git a/modules/readlink b/modules/readlink
index eb32ef53ee..37c03a78af 100644
--- a/modules/readlink
+++ b/modules/readlink
@@ -6,8 +6,8 @@ lib/readlink.c
m4/readlink.m4
Depends-on:
-stat
unistd
+stat [test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1]
configure.ac:
gl_FUNC_READLINK
diff --git a/modules/readlinkat b/modules/readlinkat
index 593f2c2573..18f2f959a4 100644
--- a/modules/readlinkat
+++ b/modules/readlinkat
@@ -6,11 +6,11 @@ lib/readlinkat.c
m4/readlinkat.m4
Depends-on:
+unistd
extensions
fcntl-h
-openat
-readlink
-unistd
+openat [test $HAVE_READLINKAT = 0]
+readlink [test $HAVE_READLINKAT = 0]
configure.ac:
gl_FUNC_READLINKAT
diff --git a/modules/recv b/modules/recv
index 04602f9801..c225917b17 100644
--- a/modules/recv
+++ b/modules/recv
@@ -7,7 +7,7 @@ lib/w32sock.h
Depends-on:
sys_socket
-errno
+errno [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
diff --git a/modules/recvfrom b/modules/recvfrom
index 8237565b9d..9a6d833ccb 100644
--- a/modules/recvfrom
+++ b/modules/recvfrom
@@ -7,8 +7,8 @@ lib/w32sock.h
Depends-on:
sys_socket
-errno
-getpeername
+errno [test "$ac_cv_header_winsock2_h" = yes]
+getpeername [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
diff --git a/modules/regex b/modules/regex
index 6a8f4c25fd..730076c2b3 100644
--- a/modules/regex
+++ b/modules/regex
@@ -12,23 +12,23 @@ m4/regex.m4
m4/mbstate_t.m4
Depends-on:
-alloca-opt
-btowc
extensions
-gettext-h
-localcharset
-malloc-gnu
-memcmp
-memmove
-mbrtowc
-mbsinit
-nl_langinfo
-stdbool
-stdint
ssize_t
-wchar
-wcrtomb
-wctype-h
+alloca-opt [test $ac_use_included_regex = yes]
+btowc [test $ac_use_included_regex = yes]
+gettext-h [test $ac_use_included_regex = yes]
+localcharset [test $ac_use_included_regex = yes]
+malloc-gnu [test $ac_use_included_regex = yes]
+memcmp [test $ac_use_included_regex = yes]
+memmove [test $ac_use_included_regex = yes]
+mbrtowc [test $ac_use_included_regex = yes]
+mbsinit [test $ac_use_included_regex = yes]
+nl_langinfo [test $ac_use_included_regex = yes]
+stdbool [test $ac_use_included_regex = yes]
+stdint [test $ac_use_included_regex = yes]
+wchar [test $ac_use_included_regex = yes]
+wcrtomb [test $ac_use_included_regex = yes]
+wctype-h [test $ac_use_included_regex = yes]
configure.ac:
gl_REGEX
diff --git a/modules/remove b/modules/remove
index 886a03937f..4723801893 100644
--- a/modules/remove
+++ b/modules/remove
@@ -6,9 +6,9 @@ lib/remove.c
m4/remove.m4
Depends-on:
-rmdir
stdio
-unlink
+rmdir [test $REPLACE_REMOVE = 1]
+unlink [test $REPLACE_REMOVE = 1]
configure.ac:
gl_FUNC_REMOVE
diff --git a/modules/rename b/modules/rename
index ae8390a3ec..449d9beeab 100644
--- a/modules/rename
+++ b/modules/rename
@@ -6,14 +6,14 @@ lib/rename.c
m4/rename.m4
Depends-on:
-canonicalize-lgpl
-dirname-lgpl
-lstat
-rmdir
-same-inode
-stdbool
stdio
-strdup
+canonicalize-lgpl [test $REPLACE_RENAME = 1]
+dirname-lgpl [test $REPLACE_RENAME = 1]
+lstat [test $REPLACE_RENAME = 1]
+rmdir [test $REPLACE_RENAME = 1]
+same-inode [test $REPLACE_RENAME = 1]
+stdbool [test $REPLACE_RENAME = 1]
+strdup [test $REPLACE_RENAME = 1]
configure.ac:
gl_FUNC_RENAME
diff --git a/modules/renameat b/modules/renameat
index 22bb6505b8..15bc1ecd97 100644
--- a/modules/renameat
+++ b/modules/renameat
@@ -7,15 +7,15 @@ lib/renameat.c
m4/renameat.m4
Depends-on:
+stdio
extensions
fcntl-h
-filenamecat-lgpl
-getcwd-lgpl
-openat
-rename
-same-inode
-stdio
-stpcpy
+filenamecat-lgpl [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1]
+getcwd-lgpl [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1]
+openat [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1]
+rename [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1]
+same-inode [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1]
+stpcpy [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1]
configure.ac:
gl_FUNC_RENAMEAT
diff --git a/modules/rmdir b/modules/rmdir
index eaa5a68542..95e7b1df6a 100644
--- a/modules/rmdir
+++ b/modules/rmdir
@@ -6,9 +6,9 @@ lib/rmdir.c
m4/rmdir.m4
Depends-on:
-dosname
-sys_stat
unistd
+dosname [test $REPLACE_RMDIR = 1]
+sys_stat [test $REPLACE_RMDIR = 1]
configure.ac:
gl_FUNC_RMDIR
diff --git a/modules/round b/modules/round
index c4acba133f..07dcd880b7 100644
--- a/modules/round
+++ b/modules/round
@@ -9,10 +9,10 @@ m4/floor.m4
m4/ceil.m4
Depends-on:
-float
-floor
math
extensions
+float [test $HAVE_DECL_ROUND = 0 || test $REPLACE_ROUND = 1]
+floor [test $HAVE_DECL_ROUND = 0 || test $REPLACE_ROUND = 1]
configure.ac:
gl_FUNC_ROUND
diff --git a/modules/roundf b/modules/roundf
index d77b2a198d..d9c283eb33 100644
--- a/modules/roundf
+++ b/modules/roundf
@@ -10,9 +10,9 @@ m4/floorf.m4
m4/ceilf.m4
Depends-on:
-float
math
extensions
+float [test $HAVE_DECL_ROUNDF = 0 || test $REPLACE_ROUNDF = 1]
configure.ac:
gl_FUNC_ROUNDF
diff --git a/modules/roundl b/modules/roundl
index 9eb9f1de54..516ee0b5df 100644
--- a/modules/roundl
+++ b/modules/roundl
@@ -10,9 +10,9 @@ m4/floorl.m4
m4/ceill.m4
Depends-on:
-float
math
extensions
+float [test $HAVE_DECL_ROUNDL = 0 || test $REPLACE_ROUNDL = 1]
configure.ac:
gl_FUNC_ROUNDL
diff --git a/modules/rpmatch b/modules/rpmatch
index 17a6c2083a..bfa5380da1 100644
--- a/modules/rpmatch
+++ b/modules/rpmatch
@@ -8,10 +8,10 @@ m4/rpmatch.m4
Depends-on:
stdlib
extensions
-stdbool
-gettext-h
-regex
-strdup
+stdbool [test $HAVE_RPMATCH = 0]
+gettext-h [test $HAVE_RPMATCH = 0]
+regex [test $HAVE_RPMATCH = 0]
+strdup [test $HAVE_RPMATCH = 0]
configure.ac:
gl_FUNC_RPMATCH
diff --git a/modules/select b/modules/select
index 18865f1423..ab4af6e7cb 100644
--- a/modules/select
+++ b/modules/select
@@ -6,9 +6,9 @@ lib/select.c
m4/select.m4
Depends-on:
-alloca
-sockets
sys_select
+alloca [test "$ac_cv_header_winsock2_h" = yes || test $REPLACE_SELECT = 1]
+sockets [test "$ac_cv_header_winsock2_h" = yes || test $REPLACE_SELECT = 1]
configure.ac:
gl_FUNC_SELECT
diff --git a/modules/send b/modules/send
index 4317d6fb91..8a07da9d46 100644
--- a/modules/send
+++ b/modules/send
@@ -7,7 +7,7 @@ lib/w32sock.h
Depends-on:
sys_socket
-errno
+errno [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
diff --git a/modules/sendto b/modules/sendto
index d9a292c857..b28a7ea354 100644
--- a/modules/sendto
+++ b/modules/sendto
@@ -7,7 +7,7 @@ lib/w32sock.h
Depends-on:
sys_socket
-errno
+errno [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
diff --git a/modules/setenv b/modules/setenv
index 8112616221..95ff0a0e3d 100644
--- a/modules/setenv
+++ b/modules/setenv
@@ -7,10 +7,10 @@ m4/setenv.m4
Depends-on:
stdlib
-malloca
-alloca-opt
-unistd
-environ
+malloca [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1]
+alloca-opt [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1]
+unistd [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1]
+environ [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1]
configure.ac:
gl_FUNC_SETENV
diff --git a/modules/setlocale b/modules/setlocale
index 5d3e58b208..918a037da3 100644
--- a/modules/setlocale
+++ b/modules/setlocale
@@ -7,7 +7,7 @@ m4/setlocale.m4
Depends-on:
locale
-localename
+localename [test $REPLACE_SETLOCALE = 1]
configure.ac:
gl_FUNC_SETLOCALE
diff --git a/modules/setsockopt b/modules/setsockopt
index b429510a01..33726b11b9 100644
--- a/modules/setsockopt
+++ b/modules/setsockopt
@@ -7,8 +7,8 @@ lib/w32sock.h
Depends-on:
sys_socket
-sys_time
-errno
+sys_time [test "$ac_cv_header_winsock2_h" = yes]
+errno [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
diff --git a/modules/shutdown b/modules/shutdown
index c1e062104d..322ff8d891 100644
--- a/modules/shutdown
+++ b/modules/shutdown
@@ -7,7 +7,7 @@ lib/w32sock.h
Depends-on:
sys_socket
-errno
+errno [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
diff --git a/modules/sigaction b/modules/sigaction
index 0e42e94487..93b848aca7 100644
--- a/modules/sigaction
+++ b/modules/sigaction
@@ -8,7 +8,7 @@ m4/sigaction.m4
Depends-on:
signal
-sigprocmask
+sigprocmask [test $HAVE_SIGACTION = 0]
configure.ac:
gl_SIGACTION
diff --git a/modules/signbit b/modules/signbit
index 14a5754539..b3ad38836b 100644
--- a/modules/signbit
+++ b/modules/signbit
@@ -9,13 +9,13 @@ lib/float+.h
m4/signbit.m4
Depends-on:
-float
math
-isnanf-nolibm
-isnand-nolibm
-isnanl-nolibm
-fpieee
-memcmp
+float [test $REPLACE_SIGNBIT = 1]
+isnanf-nolibm [test $REPLACE_SIGNBIT = 1]
+isnand-nolibm [test $REPLACE_SIGNBIT = 1]
+isnanl-nolibm [test $REPLACE_SIGNBIT = 1]
+fpieee [test $REPLACE_SIGNBIT = 1]
+memcmp [test $REPLACE_SIGNBIT = 1]
configure.ac:
gl_SIGNBIT
diff --git a/modules/sigprocmask b/modules/sigprocmask
index e46abc97ac..fee745fa68 100644
--- a/modules/sigprocmask
+++ b/modules/sigprocmask
@@ -7,8 +7,8 @@ m4/signalblocking.m4
Depends-on:
signal
-stdint
-raise
+stdint [test $HAVE_POSIX_SIGNALBLOCKING = 0]
+raise [test $HAVE_POSIX_SIGNALBLOCKING = 0]
configure.ac:
gl_SIGNALBLOCKING
diff --git a/modules/sinl b/modules/sinl
index 67621ed316..4bb4222002 100644
--- a/modules/sinl
+++ b/modules/sinl
@@ -11,10 +11,10 @@ m4/sinl.m4
Depends-on:
math
extensions
-float
-isnanl
-floor
-floorl
+float [test $HAVE_SINL = 0]
+isnanl [test $HAVE_SINL = 0]
+floor [test $HAVE_SINL = 0]
+floorl [test $HAVE_SINL = 0]
configure.ac:
gl_FUNC_SINL
diff --git a/modules/sleep b/modules/sleep
index e859e59e52..c9b6c40809 100644
--- a/modules/sleep
+++ b/modules/sleep
@@ -6,9 +6,9 @@ lib/sleep.c
m4/sleep.m4
Depends-on:
-stdint
unistd
-verify
+stdint [test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1]
+verify [test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1]
configure.ac:
gl_FUNC_SLEEP
diff --git a/modules/snprintf b/modules/snprintf
index e8b5dfb47b..cd048aa646 100644
--- a/modules/snprintf
+++ b/modules/snprintf
@@ -8,8 +8,8 @@ m4/printf.m4
Depends-on:
stdio
-vasnprintf
-errno
+vasnprintf [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
+errno [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
configure.ac:
gl_FUNC_SNPRINTF
diff --git a/modules/snprintf-posix b/modules/snprintf-posix
index 16b38b7dde..874ba5a46f 100644
--- a/modules/snprintf-posix
+++ b/modules/snprintf-posix
@@ -14,18 +14,18 @@ m4/printf.m4
Depends-on:
snprintf
-vasnprintf
-isnand-nolibm
-isnanl-nolibm
-frexp-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
nocrash
printf-safe
multiarch
+vasnprintf [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
+isnand-nolibm [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
+isnanl-nolibm [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
+frexp-nolibm [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
+frexpl-nolibm [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
+printf-frexp [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
+printf-frexpl [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
+signbit [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
+fpucw [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
configure.ac:
gl_FUNC_SNPRINTF_POSIX
diff --git a/modules/socket b/modules/socket
index f5daa4919b..92df980466 100644
--- a/modules/socket
+++ b/modules/socket
@@ -7,8 +7,8 @@ lib/w32sock.h
Depends-on:
sys_socket
-errno
-sockets
+errno [test "$ac_cv_header_winsock2_h" = yes]
+sockets [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
diff --git a/modules/sprintf-posix b/modules/sprintf-posix
index b5f02f6aaf..cdcc8aa510 100644
--- a/modules/sprintf-posix
+++ b/modules/sprintf-posix
@@ -14,20 +14,20 @@ m4/printf.m4
Depends-on:
stdio
-vasnprintf
-isnand-nolibm
-isnanl-nolibm
-frexp-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
nocrash
printf-safe
-stdint
-errno
multiarch
+vasnprintf [test $REPLACE_SPRINTF = 1]
+isnand-nolibm [test $REPLACE_SPRINTF = 1]
+isnanl-nolibm [test $REPLACE_SPRINTF = 1]
+frexp-nolibm [test $REPLACE_SPRINTF = 1]
+frexpl-nolibm [test $REPLACE_SPRINTF = 1]
+printf-frexp [test $REPLACE_SPRINTF = 1]
+printf-frexpl [test $REPLACE_SPRINTF = 1]
+signbit [test $REPLACE_SPRINTF = 1]
+fpucw [test $REPLACE_SPRINTF = 1]
+stdint [test $REPLACE_SPRINTF = 1]
+errno [test $REPLACE_SPRINTF = 1]
configure.ac:
gl_FUNC_SPRINTF_POSIX
diff --git a/modules/sqrtl b/modules/sqrtl
index d4886665af..dec1db3ffa 100644
--- a/modules/sqrtl
+++ b/modules/sqrtl
@@ -8,11 +8,11 @@ m4/sqrtl.m4
Depends-on:
math
extensions
-float
-isnanl
-frexpl
-ldexpl
-sqrt
+float [test $HAVE_SQRTL = 0]
+isnanl [test $HAVE_SQRTL = 0]
+frexpl [test $HAVE_SQRTL = 0]
+ldexpl [test $HAVE_SQRTL = 0]
+sqrt [test $HAVE_SQRTL = 0]
configure.ac:
gl_FUNC_SQRTL
diff --git a/modules/stat b/modules/stat
index 744aa7a0cb..db179aa38f 100644
--- a/modules/stat
+++ b/modules/stat
@@ -6,9 +6,9 @@ lib/stat.c
m4/stat.m4
Depends-on:
-dosname
-stdbool
sys_stat
+dosname [test $REPLACE_STAT = 1]
+stdbool [test $REPLACE_STAT = 1]
configure.ac:
gl_FUNC_STAT
diff --git a/modules/strchrnul b/modules/strchrnul
index 8ae3ea6fb2..59c4cc68ab 100644
--- a/modules/strchrnul
+++ b/modules/strchrnul
@@ -8,9 +8,9 @@ lib/strchrnul.valgrind
m4/strchrnul.m4
Depends-on:
-extensions
string
-rawmemchr
+extensions
+rawmemchr [test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1]
configure.ac:
gl_FUNC_STRCHRNUL
diff --git a/modules/strdup-posix b/modules/strdup-posix
index 4a474881b3..d158873fbe 100644
--- a/modules/strdup-posix
+++ b/modules/strdup-posix
@@ -7,7 +7,7 @@ m4/strdup.m4
Depends-on:
string
-malloc-posix
+malloc-posix [test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1]
configure.ac:
gl_FUNC_STRDUP_POSIX
diff --git a/modules/strerror b/modules/strerror
index 1a204fa09e..cd14d12576 100644
--- a/modules/strerror
+++ b/modules/strerror
@@ -6,9 +6,9 @@ lib/strerror.c
m4/strerror.m4
Depends-on:
-errno
-intprops
string
+errno [test $REPLACE_STRERROR = 1]
+intprops [test $REPLACE_STRERROR = 1]
configure.ac:
gl_FUNC_STRERROR
diff --git a/modules/strerror_r-posix b/modules/strerror_r-posix
index 1a1d8c6dd8..75345ed123 100644
--- a/modules/strerror_r-posix
+++ b/modules/strerror_r-posix
@@ -7,10 +7,10 @@ m4/strerror_r.m4
Depends-on:
string
-errno
extensions
-lock
-strerror
+errno [test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1]
+lock [test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1]
+strerror [test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1]
configure.ac:
gl_FUNC_STRERROR_R
diff --git a/modules/strndup b/modules/strndup
index 80f143bee5..c76e966a57 100644
--- a/modules/strndup
+++ b/modules/strndup
@@ -6,9 +6,9 @@ lib/strndup.c
m4/strndup.m4
Depends-on:
-extensions
string
-strnlen
+extensions
+strnlen [test $ac_cv_func_strndup = no || test $REPLACE_STRNDUP = 1]
configure.ac:
gl_FUNC_STRNDUP
diff --git a/modules/strnlen b/modules/strnlen
index 2f50c9b537..97fdd667f1 100644
--- a/modules/strnlen
+++ b/modules/strnlen
@@ -6,9 +6,9 @@ lib/strnlen.c
m4/strnlen.m4
Depends-on:
-extensions
string
-memchr-obsolete
+extensions
+memchr-obsolete [test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1]
configure.ac:
gl_FUNC_STRNLEN
diff --git a/modules/strptime b/modules/strptime
index 667d55245c..763dca5031 100644
--- a/modules/strptime
+++ b/modules/strptime
@@ -7,13 +7,13 @@ m4/strptime.m4
m4/tm_gmtoff.m4
Depends-on:
-extensions
-sys_time
-string
-strcase
-stdbool
time
-time_r
+extensions
+sys_time [test $HAVE_STRPTIME = 0]
+string [test $HAVE_STRPTIME = 0]
+strcase [test $HAVE_STRPTIME = 0]
+stdbool [test $HAVE_STRPTIME = 0]
+time_r [test $HAVE_STRPTIME = 0]
configure.ac:
gl_FUNC_STRPTIME
diff --git a/modules/strsep b/modules/strsep
index 10ca817a82..eaa30329de 100644
--- a/modules/strsep
+++ b/modules/strsep
@@ -6,9 +6,9 @@ lib/strsep.c
m4/strsep.m4
Depends-on:
-extensions
string
-strpbrk
+extensions
+strpbrk [test $HAVE_STRSEP = 0]
configure.ac:
gl_FUNC_STRSEP
diff --git a/modules/strsignal b/modules/strsignal
index 41dda4ec1b..c8e3bfab74 100644
--- a/modules/strsignal
+++ b/modules/strsignal
@@ -8,12 +8,12 @@ m4/strsignal.m4
Depends-on:
string
-gettext-h
-lock
-tls
-snprintf
-memset
extensions
+gettext-h [test $ac_cv_func_strsignal = no || test $REPLACE_STRSIGNAL = 1]
+lock [test $ac_cv_func_strsignal = no || test $REPLACE_STRSIGNAL = 1]
+tls [test $ac_cv_func_strsignal = no || test $REPLACE_STRSIGNAL = 1]
+snprintf [test $ac_cv_func_strsignal = no || test $REPLACE_STRSIGNAL = 1]
+memset [test $ac_cv_func_strsignal = no || test $REPLACE_STRSIGNAL = 1]
configure.ac:
gl_FUNC_STRSIGNAL
diff --git a/modules/strstr-simple b/modules/strstr-simple
index 9ebf5dac89..5f66b279c2 100644
--- a/modules/strstr-simple
+++ b/modules/strstr-simple
@@ -8,9 +8,9 @@ m4/strstr.m4
Depends-on:
string
-stdbool
-memchr
-memcmp
+stdbool [test $REPLACE_STRSTR = 1]
+memchr [test $REPLACE_STRSTR = 1]
+memcmp [test $REPLACE_STRSTR = 1]
configure.ac:
gl_FUNC_STRSTR_SIMPLE
diff --git a/modules/strtod b/modules/strtod
index 935e5f8d6c..4c2151962a 100644
--- a/modules/strtod
+++ b/modules/strtod
@@ -7,10 +7,10 @@ m4/strtod.m4
m4/ldexp.m4
Depends-on:
-c-ctype
-stdbool
stdlib
strtod-obsolete
+c-ctype [test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1]
+stdbool [test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1]
configure.ac:
gl_FUNC_STRTOD
diff --git a/modules/strtoimax b/modules/strtoimax
index c4e8982f1f..155affe53b 100644
--- a/modules/strtoimax
+++ b/modules/strtoimax
@@ -7,10 +7,10 @@ m4/longlong.m4
m4/strtoimax.m4
Depends-on:
-strtoll
-verify
inttypes-incomplete
-stdint
+verify [test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no]
+stdint [test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no]
+strtoll [test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes]
configure.ac:
gl_FUNC_STRTOIMAX
diff --git a/modules/strtok_r b/modules/strtok_r
index 08afb439e3..bbfef2b68f 100644
--- a/modules/strtok_r
+++ b/modules/strtok_r
@@ -7,7 +7,7 @@ m4/strtok_r.m4
Depends-on:
string
-strpbrk
+strpbrk [test $ac_cv_func_strtok_r = no]
configure.ac:
gl_FUNC_STRTOK_R
diff --git a/modules/strtoumax b/modules/strtoumax
index c2d615ec5b..e2ef86c3bb 100644
--- a/modules/strtoumax
+++ b/modules/strtoumax
@@ -8,10 +8,10 @@ m4/longlong.m4
m4/strtoumax.m4
Depends-on:
-strtoull
-verify
inttypes-incomplete
-stdint
+verify [test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no]
+stdint [test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no]
+strtoull [test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes]
configure.ac:
gl_FUNC_STRTOUMAX
diff --git a/modules/symlink b/modules/symlink
index 313a6a0d28..729f01cbeb 100644
--- a/modules/symlink
+++ b/modules/symlink
@@ -6,8 +6,8 @@ lib/symlink.c
m4/symlink.m4
Depends-on:
-lstat
unistd
+lstat [test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1]
configure.ac:
gl_FUNC_SYMLINK
diff --git a/modules/symlinkat b/modules/symlinkat
index 16646be699..f2666afff2 100644
--- a/modules/symlinkat
+++ b/modules/symlinkat
@@ -6,11 +6,11 @@ lib/symlinkat.c
m4/symlinkat.m4
Depends-on:
+unistd
extensions
fcntl-h
-openat
-symlink
-unistd
+openat [test $HAVE_SYMLINKAT = 0]
+symlink [test $HAVE_SYMLINKAT = 0]
configure.ac:
gl_FUNC_SYMLINKAT
diff --git a/modules/tanl b/modules/tanl
index b00fd1bd51..520df45e8c 100644
--- a/modules/tanl
+++ b/modules/tanl
@@ -10,10 +10,10 @@ m4/tanl.m4
Depends-on:
math
extensions
-float
-isnanl
-floor
-floorl
+float [test $HAVE_TANL = 0]
+isnanl [test $HAVE_TANL = 0]
+floor [test $HAVE_TANL = 0]
+floorl [test $HAVE_TANL = 0]
configure.ac:
gl_FUNC_TANL
diff --git a/modules/tcgetsid b/modules/tcgetsid
index 1b72c8d43a..6dddb6eb33 100644
--- a/modules/tcgetsid
+++ b/modules/tcgetsid
@@ -9,7 +9,7 @@ m4/tcgetsid.m4
Depends-on:
termios
extensions
-sys_ioctl
+sys_ioctl [test $ac_cv_func_tcgetsid = no]
configure.ac:
gl_FUNC_TCGETSID
diff --git a/modules/tmpfile b/modules/tmpfile
index 0fa61e8e3c..e65beb8a02 100644
--- a/modules/tmpfile
+++ b/modules/tmpfile
@@ -7,9 +7,9 @@ m4/tmpfile.m4
Depends-on:
stdio
-pathmax
-tempname
-tmpdir
+pathmax [test $REPLACE_TMPFILE = 1]
+tempname [test $REPLACE_TMPFILE = 1]
+tmpdir [test $REPLACE_TMPFILE = 1]
configure.ac:
gl_FUNC_TMPFILE
diff --git a/modules/trunc b/modules/trunc
index 1c6f706276..71863a54a6 100644
--- a/modules/trunc
+++ b/modules/trunc
@@ -8,7 +8,7 @@ m4/trunc.m4
Depends-on:
math
extensions
-float
+float [test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1]
configure.ac:
gl_FUNC_TRUNC
diff --git a/modules/truncf b/modules/truncf
index 6c4c46f12a..15e35e8acf 100644
--- a/modules/truncf
+++ b/modules/truncf
@@ -9,7 +9,7 @@ m4/truncf.m4
Depends-on:
math
extensions
-float
+float [test $HAVE_DECL_TRUNCF = 0 || test $REPLACE_TRUNCF = 1]
configure.ac:
gl_FUNC_TRUNCF
diff --git a/modules/truncl b/modules/truncl
index d3d88847ae..808c63ed84 100644
--- a/modules/truncl
+++ b/modules/truncl
@@ -9,7 +9,7 @@ m4/truncl.m4
Depends-on:
math
extensions
-float
+float [test $HAVE_DECL_TRUNCL = 0 || test $REPLACE_TRUNCL = 1]
configure.ac:
gl_FUNC_TRUNCL
diff --git a/modules/uname b/modules/uname
index ac5ad88fa7..e7364ad3c3 100644
--- a/modules/uname
+++ b/modules/uname
@@ -7,7 +7,7 @@ m4/uname.m4
Depends-on:
sys_utsname
-gethostname
+gethostname [test $HAVE_UNAME = 0]
configure.ac:
gl_FUNC_UNAME
diff --git a/modules/unlink b/modules/unlink
index a27a308dce..26af43ddcc 100644
--- a/modules/unlink
+++ b/modules/unlink
@@ -6,9 +6,9 @@ lib/unlink.c
m4/unlink.m4
Depends-on:
-dosname
-lstat
unistd
+dosname [test $REPLACE_UNLINK = 1]
+lstat [test $REPLACE_UNLINK = 1]
configure.ac:
gl_FUNC_UNLINK
diff --git a/modules/unlockpt b/modules/unlockpt
index 4eadff8521..3a5c7b86fd 100644
--- a/modules/unlockpt
+++ b/modules/unlockpt
@@ -9,7 +9,7 @@ m4/unlockpt.m4
Depends-on:
stdlib
extensions
-ptsname
+ptsname [test $HAVE_UNLOCKPT = 0]
configure.ac:
gl_FUNC_UNLOCKPT
diff --git a/modules/unsetenv b/modules/unsetenv
index 6dff883c71..26662b349b 100644
--- a/modules/unsetenv
+++ b/modules/unsetenv
@@ -7,8 +7,8 @@ m4/setenv.m4
Depends-on:
stdlib
-unistd
-environ
+unistd [test $ac_cv_func_unsetenv = no || test $REPLACE_UNSETENV = 1]
+environ [test $ac_cv_func_unsetenv = no || test $REPLACE_UNSETENV = 1]
configure.ac:
gl_FUNC_UNSETENV
diff --git a/modules/usleep b/modules/usleep
index c77826bbd7..0bee1cc8b0 100644
--- a/modules/usleep
+++ b/modules/usleep
@@ -6,9 +6,9 @@ lib/usleep.c
m4/usleep.m4
Depends-on:
-extensions
-sleep
unistd
+extensions
+sleep [test $HAVE_USLEEP = 0 || test $REPLACE_USLEEP = 1]
configure.ac:
gl_FUNC_USLEEP
diff --git a/modules/utimensat b/modules/utimensat
index 2377080999..858fee18b7 100644
--- a/modules/utimensat
+++ b/modules/utimensat
@@ -6,10 +6,10 @@ lib/utimensat.c
m4/utimensat.m4
Depends-on:
-openat
sys_stat
-utimens
extensions
+openat [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
+utimens [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
configure.ac:
gl_FUNC_UTIMENSAT
diff --git a/modules/vasprintf b/modules/vasprintf
index e0eed16b24..0b8e1419aa 100644
--- a/modules/vasprintf
+++ b/modules/vasprintf
@@ -12,10 +12,10 @@ lib/asprintf.c
m4/vasprintf.m4
Depends-on:
-extensions
-vasnprintf
stdio
-errno
+extensions
+vasnprintf [test $HAVE_VASPRINTF = 0 || test $REPLACE_VASPRINTF = 1]
+errno [test $HAVE_VASPRINTF = 0 || test $REPLACE_VASPRINTF = 1]
configure.ac:
gl_FUNC_VASPRINTF
diff --git a/modules/vdprintf b/modules/vdprintf
index 3ddda20d13..eba447167c 100644
--- a/modules/vdprintf
+++ b/modules/vdprintf
@@ -7,9 +7,9 @@ m4/vdprintf.m4
Depends-on:
stdio
-vasnprintf
-full-write
-errno
+vasnprintf [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
+full-write [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
+errno [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
configure.ac:
gl_FUNC_VDPRINTF
diff --git a/modules/vdprintf-posix b/modules/vdprintf-posix
index 649eacfce4..518ecde526 100644
--- a/modules/vdprintf-posix
+++ b/modules/vdprintf-posix
@@ -14,18 +14,18 @@ m4/printf.m4
Depends-on:
vdprintf
-vasnprintf
-isnand-nolibm
-isnanl-nolibm
-frexp-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
nocrash
printf-safe
multiarch
+vasnprintf [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
+isnand-nolibm [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
+isnanl-nolibm [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
+frexp-nolibm [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
+frexpl-nolibm [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
+printf-frexp [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
+printf-frexpl [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
+signbit [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
+fpucw [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
configure.ac:
gl_FUNC_VDPRINTF_POSIX
diff --git a/modules/vfprintf-posix b/modules/vfprintf-posix
index 45af3638f5..69b6608e09 100644
--- a/modules/vfprintf-posix
+++ b/modules/vfprintf-posix
@@ -14,20 +14,20 @@ m4/printf.m4
Depends-on:
stdio
-fseterr
-vasnprintf
-isnand-nolibm
-isnanl-nolibm
-frexp-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
nocrash
printf-safe
-errno
multiarch
+fseterr [test $REPLACE_VFPRINTF = 1]
+vasnprintf [test $REPLACE_VFPRINTF = 1]
+isnand-nolibm [test $REPLACE_VFPRINTF = 1]
+isnanl-nolibm [test $REPLACE_VFPRINTF = 1]
+frexp-nolibm [test $REPLACE_VFPRINTF = 1]
+frexpl-nolibm [test $REPLACE_VFPRINTF = 1]
+printf-frexp [test $REPLACE_VFPRINTF = 1]
+printf-frexpl [test $REPLACE_VFPRINTF = 1]
+signbit [test $REPLACE_VFPRINTF = 1]
+fpucw [test $REPLACE_VFPRINTF = 1]
+errno [test $REPLACE_VFPRINTF = 1]
configure.ac:
gl_FUNC_VFPRINTF_POSIX
diff --git a/modules/vprintf-posix b/modules/vprintf-posix
index 319d83d6bc..b861d10552 100644
--- a/modules/vprintf-posix
+++ b/modules/vprintf-posix
@@ -14,8 +14,8 @@ m4/printf.m4
Depends-on:
stdio
-vfprintf-posix
printf-safe
+vfprintf-posix [test $REPLACE_VPRINTF = 1]
configure.ac:
gl_FUNC_VPRINTF_POSIX
diff --git a/modules/vsnprintf b/modules/vsnprintf
index ce44cf1536..053b10c32a 100644
--- a/modules/vsnprintf
+++ b/modules/vsnprintf
@@ -9,8 +9,8 @@ m4/printf.m4
Depends-on:
stdio
-vasnprintf
-errno
+vasnprintf [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
+errno [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
configure.ac:
gl_FUNC_VSNPRINTF
diff --git a/modules/vsnprintf-posix b/modules/vsnprintf-posix
index 0f36cd9909..198beeb58a 100644
--- a/modules/vsnprintf-posix
+++ b/modules/vsnprintf-posix
@@ -14,18 +14,18 @@ m4/printf.m4
Depends-on:
vsnprintf
-vasnprintf
-isnand-nolibm
-isnanl-nolibm
-frexp-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
nocrash
printf-safe
multiarch
+vasnprintf [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
+isnand-nolibm [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
+isnanl-nolibm [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
+frexp-nolibm [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
+frexpl-nolibm [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
+printf-frexp [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
+printf-frexpl [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
+signbit [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
+fpucw [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
configure.ac:
gl_FUNC_VSNPRINTF_POSIX
diff --git a/modules/vsprintf-posix b/modules/vsprintf-posix
index 44d89f5407..10e5385612 100644
--- a/modules/vsprintf-posix
+++ b/modules/vsprintf-posix
@@ -14,20 +14,20 @@ m4/printf.m4
Depends-on:
stdio
-vasnprintf
-isnand-nolibm
-isnanl-nolibm
-frexp-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
nocrash
printf-safe
-stdint
-errno
multiarch
+vasnprintf [test $REPLACE_VSPRINTF = 1]
+isnand-nolibm [test $REPLACE_VSPRINTF = 1]
+isnanl-nolibm [test $REPLACE_VSPRINTF = 1]
+frexp-nolibm [test $REPLACE_VSPRINTF = 1]
+frexpl-nolibm [test $REPLACE_VSPRINTF = 1]
+printf-frexp [test $REPLACE_VSPRINTF = 1]
+printf-frexpl [test $REPLACE_VSPRINTF = 1]
+signbit [test $REPLACE_VSPRINTF = 1]
+fpucw [test $REPLACE_VSPRINTF = 1]
+stdint [test $REPLACE_VSPRINTF = 1]
+errno [test $REPLACE_VSPRINTF = 1]
configure.ac:
gl_FUNC_VSPRINTF_POSIX
diff --git a/modules/wcrtomb b/modules/wcrtomb
index cdafa555ac..f9fea15ff1 100644
--- a/modules/wcrtomb
+++ b/modules/wcrtomb
@@ -12,9 +12,9 @@ m4/locale-zh.m4
m4/codeset.m4
Depends-on:
-extensions
wchar
-mbsinit
+extensions
+mbsinit [test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1]
configure.ac:
gl_FUNC_WCRTOMB
diff --git a/modules/wcscasecmp b/modules/wcscasecmp
index 18c549c2f6..4639354bf5 100644
--- a/modules/wcscasecmp
+++ b/modules/wcscasecmp
@@ -8,7 +8,7 @@ m4/wcscasecmp.m4
Depends-on:
wchar
-wctype-h
+wctype-h [test $HAVE_WCSCASECMP = 0]
configure.ac:
gl_FUNC_WCSCASECMP
diff --git a/modules/wcscspn b/modules/wcscspn
index 2034b81b17..14b9a24e85 100644
--- a/modules/wcscspn
+++ b/modules/wcscspn
@@ -14,8 +14,8 @@ m4/wcscspn.m4
Depends-on:
wchar
-wcslen
-wcschr
+wcslen [test $HAVE_WCSCSPN = 0]
+wcschr [test $HAVE_WCSCSPN = 0]
configure.ac:
gl_FUNC_WCSCSPN
diff --git a/modules/wcsdup b/modules/wcsdup
index 7e3cd66172..49a512e607 100644
--- a/modules/wcsdup
+++ b/modules/wcsdup
@@ -8,8 +8,8 @@ m4/wcsdup.m4
Depends-on:
wchar
-wcslen
-wmemcpy
+wcslen [test $HAVE_WCSDUP = 0]
+wmemcpy [test $HAVE_WCSDUP = 0]
configure.ac:
gl_FUNC_WCSDUP
diff --git a/modules/wcsncasecmp b/modules/wcsncasecmp
index 88f36198da..3a1f84a1cd 100644
--- a/modules/wcsncasecmp
+++ b/modules/wcsncasecmp
@@ -8,7 +8,7 @@ m4/wcsncasecmp.m4
Depends-on:
wchar
-wctype-h
+wctype-h [test $HAVE_WCSNCASECMP = 0]
configure.ac:
gl_FUNC_WCSNCASECMP
diff --git a/modules/wcsnrtombs b/modules/wcsnrtombs
index e8e975a73f..3582ae57fc 100644
--- a/modules/wcsnrtombs
+++ b/modules/wcsnrtombs
@@ -13,9 +13,9 @@ m4/locale-zh.m4
m4/codeset.m4
Depends-on:
-extensions
wchar
-wcrtomb
+extensions
+wcrtomb [test $HAVE_WCSNRTOMBS = 0 || test $REPLACE_WCSNRTOMBS = 1]
configure.ac:
gl_FUNC_WCSNRTOMBS
diff --git a/modules/wcspbrk b/modules/wcspbrk
index a5b34f538b..b7aefa47c4 100644
--- a/modules/wcspbrk
+++ b/modules/wcspbrk
@@ -14,7 +14,7 @@ m4/wcspbrk.m4
Depends-on:
wchar
-wcschr
+wcschr [test $HAVE_WCSPBRK = 0]
configure.ac:
gl_FUNC_WCSPBRK
diff --git a/modules/wcsrtombs b/modules/wcsrtombs
index 235b06b043..49c0503953 100644
--- a/modules/wcsrtombs
+++ b/modules/wcsrtombs
@@ -14,9 +14,9 @@ m4/locale-zh.m4
m4/codeset.m4
Depends-on:
-extensions
wchar
-wcrtomb
+extensions
+wcrtomb [test $HAVE_WCSRTOMBS = 0 || test $REPLACE_WCSRTOMBS = 1]
configure.ac:
gl_FUNC_WCSRTOMBS
diff --git a/modules/wcsspn b/modules/wcsspn
index 3ecd53b979..035398d9bc 100644
--- a/modules/wcsspn
+++ b/modules/wcsspn
@@ -14,7 +14,7 @@ m4/wcsspn.m4
Depends-on:
wchar
-wcschr
+wcschr [test $HAVE_WCSSPN = 0]
configure.ac:
gl_FUNC_WCSSPN
diff --git a/modules/wcsstr b/modules/wcsstr
index 22a2fb763c..d4f22f8509 100644
--- a/modules/wcsstr
+++ b/modules/wcsstr
@@ -8,7 +8,7 @@ m4/wcsstr.m4
Depends-on:
wchar
-wcschr
+wcschr [test $HAVE_WCSSTR = 0]
configure.ac:
gl_FUNC_WCSSTR
diff --git a/modules/wcstok b/modules/wcstok
index 6f92b050b9..dc78e135bc 100644
--- a/modules/wcstok
+++ b/modules/wcstok
@@ -8,8 +8,8 @@ m4/wcstok.m4
Depends-on:
wchar
-wcsspn
-wcspbrk
+wcsspn [test $HAVE_WCSTOK = 0]
+wcspbrk [test $HAVE_WCSTOK = 0]
configure.ac:
gl_FUNC_WCSTOK
diff --git a/modules/wcswidth b/modules/wcswidth
index 2b748eb7a6..629f21db80 100644
--- a/modules/wcswidth
+++ b/modules/wcswidth
@@ -9,7 +9,7 @@ m4/wcswidth.m4
Depends-on:
wchar
-wcwidth
+wcwidth [test $HAVE_WCSWIDTH = 0 || test $REPLACE_WCSWIDTH = 1]
configure.ac:
gl_FUNC_WCSWIDTH
diff --git a/modules/wctob b/modules/wctob
index eba2ebf293..be430ebf41 100644
--- a/modules/wctob
+++ b/modules/wctob
@@ -9,7 +9,7 @@ m4/codeset.m4
Depends-on:
wchar
-wctomb
+wctomb [test $ac_cv_func_wctob = no || test $REPLACE_WCTOB = 1]
configure.ac:
gl_FUNC_WCTOB
diff --git a/modules/wctomb b/modules/wctomb
index 81d41c4b90..5077005487 100644
--- a/modules/wctomb
+++ b/modules/wctomb
@@ -8,8 +8,8 @@ m4/wctomb.m4
Depends-on:
stdlib
-wcrtomb
-wchar
+wcrtomb [test $REPLACE_WCTOMB = 1]
+wchar [test $REPLACE_WCTOMB = 1]
configure.ac:
gl_FUNC_WCTOMB
diff --git a/modules/wctype b/modules/wctype
index d2481640a1..ffc76a863e 100644
--- a/modules/wctype
+++ b/modules/wctype
@@ -14,7 +14,7 @@ m4/wctype.m4
Depends-on:
wctype-h
-iswblank
+iswblank [test $HAVE_WCTYPE_T = 0]
configure.ac:
gl_FUNC_WCTYPE
diff --git a/modules/wcwidth b/modules/wcwidth
index e4a9460e94..27327a15c9 100644
--- a/modules/wcwidth
+++ b/modules/wcwidth
@@ -8,12 +8,12 @@ m4/wchar_t.m4
m4/wint_t.m4
Depends-on:
-extensions
wchar
-wctype-h
-localcharset
-streq
-uniwidth/width
+extensions
+wctype-h [test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1]
+localcharset [test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1]
+streq [test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1]
+uniwidth/width [test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1]
configure.ac:
gl_FUNC_WCWIDTH
diff --git a/modules/write b/modules/write
index 0f0fc5f234..736e40b091 100644
--- a/modules/write
+++ b/modules/write
@@ -7,7 +7,7 @@ m4/write.m4
Depends-on:
unistd
-raise
+raise [test $REPLACE_WRITE = 1]
configure.ac:
gl_FUNC_WRITE