* modules/mixin/printf-posix: New file.
* modules/c-vasnprintf (Depends-on): Add it. Remove isnan*-nolibm,
frexp*-nolibm, printf-frexp*, signbit, fpucw.
* modules/dprintf-posix (Depends-on): Likewise.
* modules/fprintf-posix (Depends-on): Likewise.
* modules/snprintf-posix (Depends-on): Likewise.
* modules/sprintf-posix (Depends-on): Likewise.
* modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
* modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
* modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
* modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
* modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
* modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
* modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
* modules/vasnprintf-posix (Depends-on): Likewise.
* modules/vasnwprintf-posix (Depends-on): Likewise.
* modules/vasprintf-posix (Depends-on): Likewise.
* modules/vdprintf-posix (Depends-on): Likewise.
* modules/vfprintf-posix (Depends-on): Likewise.
* modules/vsnprintf-posix (Depends-on): Likewise.
* modules/vsprintf-posix (Depends-on): Likewise.
+2024-06-24 Bruno Haible <bruno@clisp.org>
+
+ Reduce duplication among *printf-posix modules.
+ * modules/mixin/printf-posix: New file.
+ * modules/c-vasnprintf (Depends-on): Add it. Remove isnan*-nolibm,
+ frexp*-nolibm, printf-frexp*, signbit, fpucw.
+ * modules/dprintf-posix (Depends-on): Likewise.
+ * modules/fprintf-posix (Depends-on): Likewise.
+ * modules/snprintf-posix (Depends-on): Likewise.
+ * modules/sprintf-posix (Depends-on): Likewise.
+ * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
+ * modules/vasnprintf-posix (Depends-on): Likewise.
+ * modules/vasnwprintf-posix (Depends-on): Likewise.
+ * modules/vasprintf-posix (Depends-on): Likewise.
+ * modules/vdprintf-posix (Depends-on): Likewise.
+ * modules/vfprintf-posix (Depends-on): Likewise.
+ * modules/vsnprintf-posix (Depends-on): Likewise.
+ * modules/vsprintf-posix (Depends-on): Likewise.
+
2024-06-24 Bruno Haible <bruno@clisp.org>
c-vasnprintf: Relicense under LGPLv2+.
limits-h
stdint
stdio
-isnand-nolibm
-isnanl-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
+mixin/printf-posix
free-posix
nocrash
printf-safe
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]
+vasnprintf [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
+mixin/printf-posix [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
configure.ac:
gl_FUNC_DPRINTF_POSIX
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]
-free-posix [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]
+fseterr [test $REPLACE_FPRINTF = 1]
+vasnprintf [test $REPLACE_FPRINTF = 1]
+mixin/printf-posix [test $REPLACE_FPRINTF = 1]
+free-posix [test $REPLACE_FPRINTF = 1]
configure.ac:
gl_FUNC_FPRINTF_POSIX
--- /dev/null
+Description:
+Module dependencies that are needed to compile lib/vasnprintf.c
+with all extras for POSIX compliance.
+
+Files:
+
+Depends-on:
+isnand-nolibm
+isnanl-nolibm
+frexp-nolibm
+frexpl-nolibm
+printf-frexp
+printf-frexpl
+signbit
+fpucw
+
+configure.ac:
+# Conditionally invoke gl_PREREQ_VASNPRINTF_WITH_POSIX_EXTRAS.
+
+Makefile.am:
+
+Include:
+
+License:
+LGPLv2+
+
+Maintainer:
+all
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]
+vasnprintf [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
+mixin/printf-posix [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
configure.ac:
gl_FUNC_SNPRINTF_POSIX
nocrash
printf-safe
multiarch
-vzsprintf [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]
+vzsprintf [test $REPLACE_SPRINTF = 1]
+mixin/printf-posix [test $REPLACE_SPRINTF = 1]
+stdint [test $REPLACE_SPRINTF = 1]
+errno [test $REPLACE_SPRINTF = 1]
configure.ac:
gl_FUNC_SPRINTF_POSIX
unistr/u32-strmblen
attribute
stdint
-isnand-nolibm
-isnanl-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
+mixin/printf-posix
nocrash
printf-safe
alloca-opt
unistr/u32-strmblen
attribute
stdint
-isnand-nolibm
-isnanl-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
+mixin/printf-posix
nocrash
printf-safe
alloca-opt
unistr/u32-strmblen
attribute
stdint
-isnand-nolibm
-isnanl-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
+mixin/printf-posix
nocrash
printf-safe
alloca-opt
unistr/u32-strmblen
attribute
stdint
-isnand-nolibm
-isnanl-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
+mixin/printf-posix
nocrash
printf-safe
alloca-opt
unistr/u32-strmblen
attribute
stdint
-isnand-nolibm
-isnanl-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
+mixin/printf-posix
nocrash
printf-safe
alloca-opt
unistr/u32-strmblen
attribute
stdint
-isnand-nolibm
-isnanl-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
+mixin/printf-posix
nocrash
printf-safe
alloca-opt
attribute
stdint
mbsnlen
-isnand-nolibm
-isnanl-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
+mixin/printf-posix
nocrash
printf-safe
alloca-opt
Depends-on:
vasnprintf
-isnand-nolibm
-isnanl-nolibm
-frexp-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
+mixin/printf-posix
nocrash
printf-safe
multiarch
Depends-on:
vasnwprintf
-isnand-nolibm
-isnanl-nolibm
-frexp-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
+mixin/printf-posix
nocrash
printf-safe
multiarch
Depends-on:
vasprintf
-vasnprintf [test $HAVE_VASPRINTF = 0 || test $REPLACE_VASPRINTF = 1]
-isnand-nolibm
-isnanl-nolibm
-frexp-nolibm
-frexpl-nolibm
-printf-frexp
-printf-frexpl
-signbit
-fpucw
+vasnprintf [test $HAVE_VASPRINTF = 0 || test $REPLACE_VASPRINTF = 1]
+mixin/printf-posix [test $HAVE_VASPRINTF = 0 || test $REPLACE_VASPRINTF = 1]
nocrash
printf-safe
multiarch
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]
+vasnprintf [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
+mixin/printf-posix [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
configure.ac:
gl_FUNC_VDPRINTF_POSIX
nocrash
printf-safe
multiarch
-free-posix [test $REPLACE_VFPRINTF = 1]
-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]
+free-posix [test $REPLACE_VFPRINTF = 1]
+fseterr [test $REPLACE_VFPRINTF = 1]
+vasnprintf [test $REPLACE_VFPRINTF = 1]
+mixin/printf-posix [test $REPLACE_VFPRINTF = 1]
+errno [test $REPLACE_VFPRINTF = 1]
configure.ac:
gl_FUNC_VFPRINTF_POSIX
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]
+vasnprintf [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
+mixin/printf-posix [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
configure.ac:
gl_FUNC_VSNPRINTF_POSIX
nocrash
printf-safe
multiarch
-vzsprintf [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]
+vzsprintf [test $REPLACE_VSPRINTF = 1]
+mixin/printf-posix [test $REPLACE_VSPRINTF = 1]
+stdint [test $REPLACE_VSPRINTF = 1]
+errno [test $REPLACE_VSPRINTF = 1]
configure.ac:
gl_FUNC_VSPRINTF_POSIX