summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>1998-05-28 09:25:21 -0400
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-05-28 17:36:57 +0000
commitdd64f1c34f78dffc99057d229091d8331d2ddf2d (patch)
treeca750a3aadd1c8febf58c9caa528875dacd13022 /Configure
parent1abb42fe05605796a5aa3903270aa1e38a3bcec9 (diff)
downloadperl-dd64f1c34f78dffc99057d229091d8331d2ddf2d.tar.gz
[PATCH 5.004_65] Config_65-01: lchown() detection.
Date: Thu, 28 May 1998 13:25:21 -0400 (EDT) Subject: [PATCH 5.004_65] Config_65-01-02.diff: INSTALL and hints fixes Date: Thu, 28 May 1998 13:26:18 -0400 (EDT) p4raw-id: //depot/perl@1042
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure36
1 files changed, 35 insertions, 1 deletions
diff --git a/Configure b/Configure
index 65b1872466..79b7a5d885 100755
--- a/Configure
+++ b/Configure
@@ -20,7 +20,7 @@
# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Wed May 13 13:35:54 EDT 1998 [metaconfig 3.0 PL70]
+# Generated on Thu May 14 12:19:05 EDT 1998 [metaconfig 3.0 PL70]
cat >/tmp/c1$$ <<EOF
ARGGGHHHH!!!!!
@@ -357,6 +357,7 @@ d_htonl=''
d_inetaton=''
d_isascii=''
d_killpg=''
+d_lchown=''
d_link=''
d_locconv=''
d_lockf=''
@@ -7190,6 +7191,38 @@ $rm -f isascii*
set killpg d_killpg
eval $inlibc
+: see if lchown exists
+echo " "
+$cat > try.c <<'EOCP'
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char lchown(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char lchown();
+int main() {
+ /* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_lchown) || defined (__stub___lchown)
+choke me
+#else
+lchown();
+#endif
+; return 0; }
+EOCP
+set try
+if eval $compile; then
+ $echo "lchown() found." >&4
+ val="$define"
+else
+ $echo "lchown() NOT found." >&4
+ val="$undef"
+fi
+set d_lchown
+eval $setvar
+
: see if link exists
set link d_link
eval $inlibc
@@ -11043,6 +11076,7 @@ d_index='$d_index'
d_inetaton='$d_inetaton'
d_isascii='$d_isascii'
d_killpg='$d_killpg'
+d_lchown='$d_lchown'
d_link='$d_link'
d_locconv='$d_locconv'
d_lockf='$d_lockf'