From 6abc3b3cb9792b89865b58b28073c19d6094ac68 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 25 Dec 2009 01:44:29 +0100 Subject: [PATCH] Add missing dependencies to 'extensions' module. --- ChangeLog | 21 +++++++++++++++++++++ m4/extensions.m4 | 16 +++++++++++++++- modules/accept4 | 1 + modules/dup3 | 1 + modules/fcntl | 1 + modules/futimens | 1 + modules/localcharset | 1 + modules/mknod | 1 + modules/pipe2 | 1 + modules/stat-time | 1 + modules/strcasestr-simple | 1 + modules/strsignal | 1 + modules/utimensat | 1 + modules/wcrtomb | 1 + modules/wcsnrtombs | 1 + modules/wcsrtombs | 1 + 16 files changed, 50 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8b557bd9b..e6b4014fb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,26 @@ 2009-12-24 Bruno Haible + 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 + binary-io: Avoid gcc warning due to SET_BINARY. * lib/binary-io.h (SET_BINARY): Cast the result to void. Reported by Jim Meyering . Suggestion by Eric Blake. diff --git a/m4/extensions.m4 b/m4/extensions.m4 index 99fba9f63..ac19b3602 100644 --- a/m4/extensions.m4 +++ b/m4/extensions.m4 @@ -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. @@ -12,6 +12,20 @@ # 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, diff --git a/modules/accept4 b/modules/accept4 index 6f2607154..009575c4e 100644 --- a/modules/accept4 +++ b/modules/accept4 @@ -11,6 +11,7 @@ sys_socket accept fcntl-h binary-io +extensions configure.ac: gl_FUNC_ACCEPT4 diff --git a/modules/dup3 b/modules/dup3 index 07228a3bc..e1300c6ed 100644 --- a/modules/dup3 +++ b/modules/dup3 @@ -10,6 +10,7 @@ unistd fcntl binary-io getdtablesize +extensions configure.ac: gl_FUNC_DUP3 diff --git a/modules/fcntl b/modules/fcntl index 14298b864..67f67f9fa 100644 --- a/modules/fcntl +++ b/modules/fcntl @@ -8,6 +8,7 @@ lib/fcntl.c Depends-on: dup2 fcntl-h +extensions configure.ac: gl_FUNC_FCNTL diff --git a/modules/futimens b/modules/futimens index 46f62302c..17bff44a0 100644 --- a/modules/futimens +++ b/modules/futimens @@ -8,6 +8,7 @@ m4/futimens.m4 Depends-on: sys_stat utimens +extensions configure.ac: gl_FUNC_FUTIMENS diff --git a/modules/localcharset b/modules/localcharset index 02e9e4d68..acdadd107 100644 --- a/modules/localcharset +++ b/modules/localcharset @@ -20,6 +20,7 @@ m4/localcharset.m4 Depends-on: configmake +extensions configure.ac: gl_LOCALCHARSET diff --git a/modules/mknod b/modules/mknod index 62ddeca7d..b3329cb67 100644 --- a/modules/mknod +++ b/modules/mknod @@ -9,6 +9,7 @@ Depends-on: mkfifo stat sys_stat +extensions configure.ac: gl_FUNC_MKNOD diff --git a/modules/pipe2 b/modules/pipe2 index 036d8730b..45813962c 100644 --- a/modules/pipe2 +++ b/modules/pipe2 @@ -9,6 +9,7 @@ Depends-on: unistd fcntl-h binary-io +extensions configure.ac: gl_FUNC_PIPE2 diff --git a/modules/stat-time b/modules/stat-time index db4b1aa66..5228919cf 100644 --- a/modules/stat-time +++ b/modules/stat-time @@ -7,6 +7,7 @@ m4/stat-time.m4 Depends-on: time +extensions configure.ac: gl_STAT_TIME diff --git a/modules/strcasestr-simple b/modules/strcasestr-simple index 853a7cccc..0f6c6922e 100644 --- a/modules/strcasestr-simple +++ b/modules/strcasestr-simple @@ -12,6 +12,7 @@ stdbool strcase memchr memcmp +extensions configure.ac: gl_FUNC_STRCASESTR_SIMPLE diff --git a/modules/strsignal b/modules/strsignal index 52040251d..41dda4ec1 100644 --- a/modules/strsignal +++ b/modules/strsignal @@ -13,6 +13,7 @@ lock tls snprintf memset +extensions configure.ac: gl_FUNC_STRSIGNAL diff --git a/modules/utimensat b/modules/utimensat index 5741b92a8..237708099 100644 --- a/modules/utimensat +++ b/modules/utimensat @@ -9,6 +9,7 @@ Depends-on: openat sys_stat utimens +extensions configure.ac: gl_FUNC_UTIMENSAT diff --git a/modules/wcrtomb b/modules/wcrtomb index f5595ddfd..cdafa555a 100644 --- a/modules/wcrtomb +++ b/modules/wcrtomb @@ -12,6 +12,7 @@ m4/locale-zh.m4 m4/codeset.m4 Depends-on: +extensions wchar mbsinit diff --git a/modules/wcsnrtombs b/modules/wcsnrtombs index 8e7801316..2ee1be3a7 100644 --- a/modules/wcsnrtombs +++ b/modules/wcsnrtombs @@ -12,6 +12,7 @@ m4/locale-zh.m4 m4/codeset.m4 Depends-on: +extensions wchar wcrtomb diff --git a/modules/wcsrtombs b/modules/wcsrtombs index 97aa1aace..876f3690f 100644 --- a/modules/wcsrtombs +++ b/modules/wcsrtombs @@ -13,6 +13,7 @@ m4/locale-zh.m4 m4/codeset.m4 Depends-on: +extensions wchar wcrtomb -- 2.11.0