This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add detection of strlcat and strlcpy to Configure
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Sat, 30 Oct 2004 14:55:55 +0000 (14:55 +0000)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Sat, 30 Oct 2004 14:55:55 +0000 (14:55 +0000)
p4raw-id: //depot/metaconfig@23434

U/perl/d_strlcat.U [new file with mode: 0644]
U/perl/d_strlcpy.U [new file with mode: 0644]

diff --git a/U/perl/d_strlcat.U b/U/perl/d_strlcat.U
new file mode 100644 (file)
index 0000000..c082be9
--- /dev/null
@@ -0,0 +1,24 @@
+?RCS: $Id$
+?RCS:
+?RCS: Copyright (c) 2004 H.Merijn Brand
+?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:
+?MAKE:d_strlcat: Inlibc
+?MAKE: -pick add $@ %<
+?S:d_strlcat:
+?S:    This variable conditionally defines the HAS_STRLCAT symbol, which
+?S:    indicates to the C program that the strlcat () routine is available.
+?S:.
+?C:HAS_STRLCAT:
+?C:    This symbol, if defined, indicates that the strlcat () routine is
+?C:    available to do string concatenation.
+?C:.
+?H:#$d_strlcat HAS_STRLCAT             /**/
+?H:.
+?LINT:set d_strlcat
+: see if strlcat exists
+set strlcat d_strlcat
+eval $inlibc
+
diff --git a/U/perl/d_strlcpy.U b/U/perl/d_strlcpy.U
new file mode 100644 (file)
index 0000000..02193c3
--- /dev/null
@@ -0,0 +1,24 @@
+?RCS: $Id$
+?RCS:
+?RCS: Copyright (c) 2004 H.Merijn Brand
+?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:
+?MAKE:d_strlcpy: Inlibc
+?MAKE: -pick add $@ %<
+?S:d_strlcpy:
+?S:    This variable conditionally defines the HAS_STRLCPY symbol, which
+?S:    indicates to the C program that the strlcpy () routine is available.
+?S:.
+?C:HAS_STRLCPY:
+?C:    This symbol, if defined, indicates that the strlcpy () routine is
+?C:    available to do string copying.
+?C:.
+?H:#$d_strlcpy HAS_STRLCPY             /**/
+?H:.
+?LINT:set d_strlcpy
+: see if strlcpy exists
+set strlcpy d_strlcpy
+eval $inlibc
+