Add missing dependencies to 'extensions' module.
authorBruno Haible <bruno@clisp.org>
Fri, 25 Dec 2009 00:44:29 +0000 (01:44 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 25 Dec 2009 00:44:29 +0000 (01:44 +0100)
16 files changed:
ChangeLog
m4/extensions.m4
modules/accept4
modules/dup3
modules/fcntl
modules/futimens
modules/localcharset
modules/mknod
modules/pipe2
modules/stat-time
modules/strcasestr-simple
modules/strsignal
modules/utimensat
modules/wcrtomb
modules/wcsnrtombs
modules/wcsrtombs

index 8b557bd..e6b4014 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,26 @@
 2009-12-24  Bruno Haible  <bruno@clisp.org>
 
+       Add missing dependencies to 'extensions' module.
+       * m4/extensions.m4: Add comment.
+       * modules/accept4 (Depends-on): Add extensions.
+       * modules/dup3 (Depends-on): Likewise.
+       * modules/fcntl (Depends-on): Likewise.
+       * modules/futimens (Depends-on): Likewise.
+       * modules/mknod (Depends-on): Likewise.
+       * modules/pipe2 (Depends-on): Likewise.
+       * modules/stat-time (Depends-on): Likewise.
+       * modules/strcasestr-simple (Depends-on): Likewise.
+       * modules/strsignal (Depends-on): Likewise.
+       * modules/utimensat (Depends-on): Likewise.
+       * modules/localcharset (Depends-on): Likewise. Needed because of
+       gl_FCNTL_O_FLAGS.
+       * modules/wcrtomb (Depends-on): Likewise. Needed because of
+       AC_TYPE_MBSTATE_T.
+       * modules/wcsnrtombs (Depends-on): Likewise.
+       * modules/wcsrtombs (Depends-on): Likewise.
+
+2009-12-24  Bruno Haible  <bruno@clisp.org>
+
        binary-io: Avoid gcc warning due to SET_BINARY.
        * lib/binary-io.h (SET_BINARY): Cast the result to void.
        Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
index 99fba9f..ac19b36 100644 (file)
@@ -1,4 +1,4 @@
-# serial 8  -*- Autoconf -*-
+# serial 9  -*- Autoconf -*-
 # Enable extensions on systems that normally disable them.
 
 # Copyright (C) 2003, 2006-2009 Free Software Foundation, Inc.
 # enough in this area it's likely we'll need to redefine
 # AC_USE_SYSTEM_EXTENSIONS for quite some time.
 
+# If autoconf reports a warning
+#     warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
+# or  warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
+# the fix is
+#   1) to ensure that AC_USE_SYSTEM_EXTENSIONS is never directly invoked
+#      but always AC_REQUIREd,
+#   2) to ensure that for each occurrence of
+#        AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
+#      or
+#        AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+#      the corresponding gnulib module description has 'extensions' among
+#      its dependencies. This will ensure that the gl_USE_SYSTEM_EXTENSIONS
+#      invocation occurs in gl_EARLY, not in gl_INIT.
+
 # AC_USE_SYSTEM_EXTENSIONS
 # ------------------------
 # Enable extensions on systems that normally disable them,
index 6f26071..009575c 100644 (file)
@@ -11,6 +11,7 @@ sys_socket
 accept
 fcntl-h
 binary-io
+extensions
 
 configure.ac:
 gl_FUNC_ACCEPT4
index 07228a3..e1300c6 100644 (file)
@@ -10,6 +10,7 @@ unistd
 fcntl
 binary-io
 getdtablesize
+extensions
 
 configure.ac:
 gl_FUNC_DUP3
index 14298b8..67f67f9 100644 (file)
@@ -8,6 +8,7 @@ lib/fcntl.c
 Depends-on:
 dup2
 fcntl-h
+extensions
 
 configure.ac:
 gl_FUNC_FCNTL
index 46f6230..17bff44 100644 (file)
@@ -8,6 +8,7 @@ m4/futimens.m4
 Depends-on:
 sys_stat
 utimens
+extensions
 
 configure.ac:
 gl_FUNC_FUTIMENS
index 02e9e4d..acdadd1 100644 (file)
@@ -20,6 +20,7 @@ m4/localcharset.m4
 
 Depends-on:
 configmake
+extensions
 
 configure.ac:
 gl_LOCALCHARSET
index 62ddeca..b3329cb 100644 (file)
@@ -9,6 +9,7 @@ Depends-on:
 mkfifo
 stat
 sys_stat
+extensions
 
 configure.ac:
 gl_FUNC_MKNOD
index 036d873..4581396 100644 (file)
@@ -9,6 +9,7 @@ Depends-on:
 unistd
 fcntl-h
 binary-io
+extensions
 
 configure.ac:
 gl_FUNC_PIPE2
index db4b1aa..5228919 100644 (file)
@@ -7,6 +7,7 @@ m4/stat-time.m4
 
 Depends-on:
 time
+extensions
 
 configure.ac:
 gl_STAT_TIME
index 853a7cc..0f6c692 100644 (file)
@@ -12,6 +12,7 @@ stdbool
 strcase
 memchr
 memcmp
+extensions
 
 configure.ac:
 gl_FUNC_STRCASESTR_SIMPLE
index 5204025..41dda4e 100644 (file)
@@ -13,6 +13,7 @@ lock
 tls
 snprintf
 memset
+extensions
 
 configure.ac:
 gl_FUNC_STRSIGNAL
index 5741b92..2377080 100644 (file)
@@ -9,6 +9,7 @@ Depends-on:
 openat
 sys_stat
 utimens
+extensions
 
 configure.ac:
 gl_FUNC_UTIMENSAT
index f5595dd..cdafa55 100644 (file)
@@ -12,6 +12,7 @@ m4/locale-zh.m4
 m4/codeset.m4
 
 Depends-on:
+extensions
 wchar
 mbsinit
 
index 8e78013..2ee1be3 100644 (file)
@@ -12,6 +12,7 @@ m4/locale-zh.m4
 m4/codeset.m4
 
 Depends-on:
+extensions
 wchar
 wcrtomb
 
index 97aa1aa..876f369 100644 (file)
@@ -13,6 +13,7 @@ m4/locale-zh.m4
 m4/codeset.m4
 
 Depends-on:
+extensions
 wchar
 wcrtomb