This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
metaconfig: new round of the _r units.
[metaconfig.git] / U / threads / d_endhostent_r.U
CommitLineData
f2dee704 1?MAKE:d_endhostent_r endhostent_r_proto: Inlibc Protochk i_systypes i_netdb
eed88ce0 2?MAKE: -pick add $@ %<
46953654 3?S:d_endhostent_r:
eed88ce0
JH
4?S: This variable conditionally defines the HAS_ENDHOSTENT_R symbol,
5?S: which indicates to the C program that the endhostent_r()
6?S: routine is available.
46953654
JH
7?S:.
8?S:endhostent_r_proto:
eed88ce0 9?S: This variable encodes the prototype of endhostent_r.
46953654
JH
10?S:.
11?C:HAS_ENDHOSTENT_R:
eed88ce0
JH
12?C: This symbol, if defined, indicates that the endhostent_r routine
13?C: is available to endhostent re-entrantly.
46953654
JH
14?C:.
15?C:ENDHOSTENT_R_PROTO:
eed88ce0 16?C: This symbol encodes the prototype of endhostent_r.
46953654 17?C:.
eed88ce0
JH
18?H:#$d_endhostent_r HAS_ENDHOSTENT_R /**/
19?H:#define ENDHOSTENT_R_PROTO $endhostent_r_proto /**/
46953654
JH
20?H:.
21?T:try hdrs
22?LINT:set d_endhostent_r
23?LINT:set endhostent_r_proto
24: see if endhostent_r exists
25set endhostent_r d_endhostent_r
26eval $inlibc
27case "$d_endhostent_r" in
28"$define")
f2dee704 29 hdrs="$i_systypes sys/types.h define stdio.h $i_netdb netdb.h"
46953654 30 case "$endhostent_r_proto" in
f2dee704
JH
31 '') try='int endhostent_r(struct hostent_data*);'
32 ./protochk "extern $try" $hdrs && endhostent_r_proto=I_S ;;
46953654
JH
33 esac
34 case "$endhostent_r_proto" in
f2dee704
JH
35 '') try='void endhostent_r(struct hostent_data*);'
36 ./protochk "extern $try" $hdrs && endhostent_r_proto=V_S ;;
46953654
JH
37 esac
38 case "$endhostent_r_proto" in
f2dee704
JH
39 '') d_endhostent_r=undef
40 echo "Disabling endhostent_r, cannot determine prototype." ;;
41 * ) case "$endhostent_r_proto" in
42 REENTRANT_PROTO*) ;;
43 *) endhostent_r_proto="REENTRANT_PROTO_$endhostent_r_proto" ;;
44 esac
45 echo "Prototype: $try" ;;
46953654
JH
46 esac
47 ;;
48esac
49