1 ?MAKE:d_endgrent_r endgrent_r_proto: Inlibc Protochk i_systypes i_grp
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.
9 ?S: This variable encodes the prototype of endgrent_r.
12 ?C: This symbol, if defined, indicates that the endgrent_r routine
13 ?C: is available to endgrent re-entrantly.
16 ?C: This symbol encodes the prototype of endgrent_r.
18 ?H:#$d_endgrent_r HAS_ENDGRENT_R /**/
19 ?H:#define ENDGRENT_R_PROTO $endgrent_r_proto /**/
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
27 case "$d_endgrent_r" in
29 hdrs="$i_systypes sys/types.h define stdio.h $i_grp grp.h"
30 case "$endgrent_r_proto" in
31 '') try='int endgrent_r(FILE**);'
32 ./protochk "extern $try" $hdrs && endgrent_r_proto=I_H ;;
34 case "$endgrent_r_proto" in
35 '') try='void endgrent_r(FILE**);'
36 ./protochk "extern $try" $hdrs && endgrent_r_proto=V_H ;;
38 case "$endgrent_r_proto" in
39 '') d_endgrent_r=undef
40 echo "Disabling endgrent_r, cannot determine prototype." ;;
41 * ) case "$endgrent_r_proto" in
43 *) endgrent_r_proto="REENTRANT_PROTO_$endgrent_r_proto" ;;
45 echo "Prototype: $try" ;;