In metaconfig.git, the branch master has been updated <http://perl5.git.perl.org/metaconfig.git/commitdiff/aac777b18e16f6657543a1abd5d966b7fc57eeac?hp=b56a447ad8440d63a4d79ab58941c0c3b006d6db>
- Log ----------------------------------------------------------------- commit aac777b18e16f6657543a1abd5d966b7fc57eeac Author: Aaron Crane <[email protected]> Date: Fri Apr 22 10:33:33 2016 +0100 Probe for and expose the 'fd' field for SA_SIGINFO Backport of this commit, which is currently on the ilmari/siginfo-fd branch in perl5.git: commit 95288b852f4f3a4e7b82ecd37ae330943af64340 Author: Dagfinn Ilmari Mannsåker <[email protected]> Date: Wed Feb 3 16:35:15 2016 +0000 Probe for and expose the 'fd' field for SA_SIGINFO This Linux-specific field indicates which FD a SIGIO/SIGPOLL signal pertains to. M U/compline/d_siginfo_si.U commit 7cd3344993df4a14e5f50d55399eaf6b439ec613 Author: Aaron Crane <[email protected]> Date: Fri Apr 22 10:20:04 2016 +0100 add d_duplocale and i_locale Configure probes to d_newlocale.U Backport of this commit, which is currently on the smoke-me/khw-new_locale branch in perl5.git: commit 954392da8720867ead32088bd3483655b6623428 Author: Tony Cook <[email protected]> Date: Mon Mar 21 12:12:58 2016 +1100 add d_duplocale and i_locale Configure probes M U/perl/d_newlocale.U ----------------------------------------------------------------------- Summary of changes: U/compline/d_siginfo_si.U | 16 +++++++++++++++- U/perl/d_newlocale.U | 31 ++++++++++++++++++++++++++++++- 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/U/compline/d_siginfo_si.U b/U/compline/d_siginfo_si.U index e0e2c3e..d957072 100644 --- a/U/compline/d_siginfo_si.U +++ b/U/compline/d_siginfo_si.U @@ -3,7 +3,7 @@ ?RCS: You may distribute under the terms of either the GNU General Public ?RCS: License or the Artistic License, as specified in the README file. ?RCS: -?MAKE:d_siginfo_si_errno d_siginfo_si_pid d_siginfo_si_uid d_siginfo_si_addr d_siginfo_si_status d_siginfo_si_band d_siginfo_si_value: d_sigaction pidtype uidtype Hasfield_t +?MAKE:d_siginfo_si_errno d_siginfo_si_pid d_siginfo_si_uid d_siginfo_si_addr d_siginfo_si_status d_siginfo_si_band d_siginfo_si_value d_siginfo_si_fd: d_sigaction pidtype uidtype Hasfield_t ?MAKE: -pick add $@ %< ?S:d_siginfo_si_errno: ?S: This variable conditionally defines the HAS_SIGINFO_SI_ERRNO symbol, @@ -33,6 +33,10 @@ ?S: This variable conditionally defines the HAS_SIGINFO_SI_VALUE symbol, ?S: which indicates that the siginfo_t struct has the si_value member. ?S:. +?S:d_siginfo_si_fd: +?S: This variable conditionally defines the HAS_SIGINFO_SI_FD symbol, +?S: which indicates that the siginfo_t struct has the si_fd member. +?S:. ?C:HAS_SIGINFO_SI_ERRNO: ?C: This symbol, if defined, indicates that siginfo_t has the ?C: si_errno member @@ -61,6 +65,10 @@ ?C: This symbol, if defined, indicates that siginfo_t has the ?C: si_value member ?C:. +?C:HAS_SIGINFO_SI_FD: +?C: This symbol, if defined, indicates that siginfo_t has the +?C: si_fd member +?C:. ?H:#$d_siginfo_si_errno HAS_SIGINFO_SI_ERRNO /**/ ?H:#$d_siginfo_si_pid HAS_SIGINFO_SI_PID /**/ ?H:#$d_siginfo_si_uid HAS_SIGINFO_SI_UID /**/ @@ -68,6 +76,7 @@ ?H:#$d_siginfo_si_status HAS_SIGINFO_SI_STATUS /**/ ?H:#$d_siginfo_si_band HAS_SIGINFO_SI_BAND /**/ ?H:#$d_siginfo_si_value HAS_SIGINFO_SI_VALUE /**/ +?H:#$d_siginfo_si_fd HAS_SIGINFO_SI_FD /**/ ?H:. : see what siginfo fields we have case "$d_sigaction" in @@ -100,6 +109,10 @@ case "$d_sigaction" in set d_siginfo_si_value siginfo_t "union sigval" si_value $d_sigaction signal.h eval $hasfield_t; + echo "Checking if your siginfo_t has si_fd field...">&4 + set d_siginfo_si_fd siginfo_t int si_fd $d_sigaction signal.h + eval $hasfield_t; + ;; *) d_siginfo_si_errno="$undef" @@ -109,6 +122,7 @@ case "$d_sigaction" in d_siginfo_si_status="$undef" d_siginfo_si_band="$undef" d_siginfo_si_value="$undef" + d_siginfo_si_fd="$undef" ;; esac diff --git a/U/perl/d_newlocale.U b/U/perl/d_newlocale.U index 1dfa9b6..910f36d 100644 --- a/U/perl/d_newlocale.U +++ b/U/perl/d_newlocale.U @@ -1,7 +1,7 @@ ?RCS: You may distribute under the terms of either the GNU General Public ?RCS: License or the Artistic License, as specified in the README file. ?RCS: -?MAKE:d_newlocale d_freelocale d_uselocale: Inlibc +?MAKE:d_newlocale d_freelocale d_uselocale d_duplocale i_xlocale: Inlibc Inhdr ?MAKE: -pick add $@ %< ?S:d_newlocale: ?S: This variable conditionally defines the HAS_NEWLOCALE symbol, which @@ -18,6 +18,15 @@ ?S: indicates to the C program that the uselocale() routine is available ?S: to set the current locale for the calling thread. ?S:. +?S:d_duplocale: +?S: This variable conditionally defines the HAS_DUPLOCALE symbol, which +?S: indicates to the C program that the duplocale() routine is available +?S: to duplicate a locale object. +?S:. +?S:i_xlocale: +?S: This symbol, if defined, indicates to the C program that it should +?S: include <xlocale.h> to get uselocale() and its friends +?S:. ?C:HAS_NEWLOCALE: ?C: This symbol, if defined, indicates that the newlocale routine is ?C: available to return a new locale object or modify an existing @@ -31,13 +40,29 @@ ?C: This symbol, if defined, indicates that the uselocale routine is ?C: available to set the current locale for the calling thread. ?C:. +?C:HAS_DUPLOCALE: +?C: This symbol, if defined, indicates that the duplocale routine is +?C: available to duplicate a locale object. +?C:. +?C:I_XLOCALE: +?C: This symbol, if defined, indicates to the C program that it should +?C: include <xlocale.h> to get uselocale() and its friends. +?C:. ?H:#$d_newlocale HAS_NEWLOCALE /**/ ?H:#$d_freelocale HAS_FREELOCALE /**/ ?H:#$d_uselocale HAS_USELOCALE /**/ +?H:#$d_duplocale HAS_DUPLOCALE /**/ +?H:#$i_xlocale I_XLOCALE /**/ ?H:. +?LINT:set i_xlocale ?LINT:set d_newlocale ?LINT:set d_freelocale ?LINT:set d_uselocale +?LINT:set d_duplocale +: see if this is an xlocale.h system +set xlocale.h i_xlocale +eval $inhdr + : see if newlocale exists set newlocale d_newlocale eval $inlibc @@ -50,3 +75,7 @@ eval $inlibc set uselocale d_uselocale eval $inlibc +: see if duplocale exists +set duplocale d_duplocale +eval $inlibc + -- perl5 metaconfig repository
