This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
metaconfig: replace the _r units with autogenerated ones.
[metaconfig.git] / U / threads / d_endgrent_r.U
1 ?MAKE:d_endgrent_r endgrent_r_proto: Inlibc Protochk i_systypes i_dirent
2 ?MAKE:  -pick add $@ %<
3 ?S:d_endgrent_r:
4 ?S:     This variable conditionally defines the HAS_ENDGRENT_R symbol,
5 ?S:     which indicates to the C program that the endgrent_r()
6 ?S:     routine is available.
7 ?S:.
8 ?S:endgrent_r_proto:
9 ?S:     This variable encodes the prototype of endgrent_r.
10 ?S:.
11 ?C:HAS_ENDGRENT_R:
12 ?C:     This symbol, if defined, indicates that the endgrent_r routine
13 ?C:     is available to endgrent re-entrantly.
14 ?C:.
15 ?C:ENDGRENT_R_PROTO:
16 ?C:     This symbol encodes the prototype of endgrent_r.
17 ?C:.
18 ?H:#$d_endgrent_r HAS_ENDGRENT_R          /**/
19 ?H:#define ENDGRENT_R_PROTO $endgrent_r_proto     /**/
20 ?H:.
21 ?T:try hdrs
22 ?LINT:set d_endgrent_r
23 ?LINT:set endgrent_r_proto
24 : see if endgrent_r exists
25 set endgrent_r d_endgrent_r
26 eval $inlibc
27 case "$d_endgrent_r" in
28 "$define")
29         hdrs="$i_systypes sys/types.h ${i}_grp grp.h"
30         case "$endgrent_r_proto" in
31         '')     try='extern int endgrent_r(FILE**);'
32                 ./protochk "$try" $hdrs && endgrent_r_proto=I_H;
33         ;;
34         esac
35         case "$endgrent_r_proto" in
36         '')     try='extern void endgrent_r(FILE**);'
37                 ./protochk "$try" $hdrs && endgrent_r_proto=V_H;
38         ;;
39         esac
40         case "$endgrent_r_proto" in
41         '') d_endgrent_r=undef ; echo "Disabling endgrent_r, cannot find prototype." ;;
42         * ) endgrent_r_proto="REENTRANT_$endgrent_r_proto" ; echo "$try" ;;
43         esac
44         ;;
45 esac
46