This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove spurious LINT: directives
[metaconfig.git] / U / threads / d_endnetent_r.U
index 0eb81a2..e16e723 100644 (file)
@@ -1,12 +1,12 @@
 ?RCS: $Id: d_endnetent_r.U,v 0RCS:
-?RCS: Copyright (c) 2002 Jarkko Hietaniemi
+?RCS: Copyright (c) 2002,2003 Jarkko Hietaniemi
 ?RCS:
 ?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:
 ?RCS: Generated by the reentr.pl from the Perl 5.8 distribution.
 ?RCS:
-?MAKE:d_endnetent_r endnetent_r_proto: Inlibc Protochk i_systypes i_netdb
+?MAKE:d_endnetent_r endnetent_r_proto: Inlibc Protochk Hasproto i_systypes usethreads i_netdb
 ?MAKE: -pick add $@ %<
 ?S:d_endnetent_r:
 ?S:    This variable conditionally defines the HAS_ENDNETENT_R symbol,
@@ -15,6 +15,9 @@
 ?S:.
 ?S:endnetent_r_proto:
 ?S:    This variable encodes the prototype of endnetent_r.
+?S:    It is zero if d_endnetent_r is undef, and one of the
+?S:    REENTRANT_PROTO_T_ABC macros of reentr.h if d_endnetent_r
+?S:    is defined.
 ?S:.
 ?C:HAS_ENDNETENT_R:
 ?C:    This symbol, if defined, indicates that the endnetent_r routine
 ?C:.
 ?C:ENDNETENT_R_PROTO:
 ?C:    This symbol encodes the prototype of endnetent_r.
+?C:    It is zero if d_endnetent_r is undef, and one of the
+?C:    REENTRANT_PROTO_T_ABC macros of reentr.h if d_endnetent_r
+?C:    is defined.
 ?C:.
 ?H:#$d_endnetent_r HAS_ENDNETENT_R        /**/
 ?H:#define ENDNETENT_R_PROTO $endnetent_r_proto           /**/
 ?H:.
-?T:try hdrs
-?LINT:set d_endnetent_r
-?LINT:set endnetent_r_proto
+?T:try hdrs d_endnetent_r_proto
 : see if endnetent_r exists
 set endnetent_r d_endnetent_r
 eval $inlibc
 case "$d_endnetent_r" in
 "$define")
        hdrs="$i_systypes sys/types.h define stdio.h $i_netdb netdb.h"
+       case "$d_endnetent_r_proto:$usethreads" in
+       ":define")      d_endnetent_r_proto=define
+               set d_endnetent_r_proto endnetent_r $hdrs
+               eval $hasproto ;;
+       *)      ;;
+       esac
+       case "$d_endnetent_r_proto" in
+       define)
        case "$endnetent_r_proto" in
-       '') try='int endnetent_r(struct netent_data*);'
-       ./protochk "extern $try" $hdrs && endnetent_r_proto=I_S ;;
+       ''|0) try='int endnetent_r(struct netent_data*);'
+       ./protochk "extern $try" $hdrs && endnetent_r_proto=I_D ;;
        esac
        case "$endnetent_r_proto" in
-       '') try='void endnetent_r(struct netent_data*);'
-       ./protochk "extern $try" $hdrs && endnetent_r_proto=V_S ;;
+       ''|0) try='void endnetent_r(struct netent_data*);'
+       ./protochk "extern $try" $hdrs && endnetent_r_proto=V_D ;;
        esac
        case "$endnetent_r_proto" in
-       '')     d_endnetent_r=undef
-               echo "Disabling endnetent_r, cannot determine prototype." ;;
+       ''|0)   d_endnetent_r=undef
+               endnetent_r_proto=0
+               echo "Disabling endnetent_r, cannot determine prototype." >&4 ;;
        * )     case "$endnetent_r_proto" in
                REENTRANT_PROTO*) ;;
                *) endnetent_r_proto="REENTRANT_PROTO_$endnetent_r_proto" ;;
@@ -53,5 +66,15 @@ case "$d_endnetent_r" in
                echo "Prototype: $try" ;;
        esac
        ;;
+       *)      case "$usethreads" in
+               define) echo "endnetent_r has no prototype, not using it." >&4 ;;
+               esac
+               d_endnetent_r=undef
+               endnetent_r_proto=0
+               ;;
+       esac
+       ;;
+*)     endnetent_r_proto=0
+       ;;
 esac