summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-08-07 15:39:53 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-08-07 15:39:53 +0000
commit2fad75a19411f05e47e6609ac632b714c1ebdf95 (patch)
treea83729402e2141f9102e9e161a6d168df37a4947 /Configure
parentde2dd90aad22961e7f1986bf95485befb6eec327 (diff)
downloadperl-2fad75a19411f05e47e6609ac632b714c1ebdf95.tar.gz
Allow hinting d_semctl_semun and d_semctl_semid_ds.
p4raw-id: //depot/perl@20550
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure55
1 files changed, 31 insertions, 24 deletions
diff --git a/Configure b/Configure
index 66c74d36bc..7b1f5f2237 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 Sat Aug 2 02:07:46 EEST 2003 [metaconfig 3.0 PL70]
+# Generated on Thu Aug 7 19:45:41 EEST 2003 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >c1$$ <<EOF
@@ -15242,14 +15242,13 @@ else
echo "You do not have union semun in <sys/sem.h>." >&4
val="$undef"
fi
-$rm -f try try.c try.h
+$rm -f try try.c
set d_union_semun
eval $setvar
: see how to do semctl IPC_STAT
case "$d_sem" in
$define)
- : see whether semctl IPC_STAT can use union semun
echo " "
$cat > try.h <<END
#ifndef S_IRUSR
@@ -15275,8 +15274,11 @@ $define)
# define S_IRWXO (S_IROTH|S_IWOTH|S_IXOTH)
#endif
END
-
- $cat > try.c <<END
+ : see whether semctl IPC_STAT can use union semun
+ val="$undef"
+ case "$d_semctl_semun" in
+ '')
+ $cat > try.c <<END
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
@@ -15322,15 +15324,16 @@ int main() {
return 0;
}
END
- val="$undef"
- set try
- if eval $compile; then
- xxx=`$run ./try`
- case "$xxx" in
- semun) val="$define" ;;
- esac
- fi
- $rm -f try try.c
+ set try
+ if eval $compile; then
+ xxx=`$run ./try`
+ case "$xxx" in
+ semun) val="$define" ;;
+ esac
+ fi
+ $rm -f try try.c
+ ;;
+ esac
set d_semctl_semun
eval $setvar
case "$d_semctl_semun" in
@@ -15344,7 +15347,10 @@ END
esac
: see whether semctl IPC_STAT can use struct semid_ds pointer
- $cat > try.c <<'END'
+ val="$undef"
+ case "$d_semctl_semid_ds" in
+ '')
+ $cat > try.c <<'END'
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
@@ -15380,15 +15386,16 @@ int main() {
return 0;
}
END
- val="$undef"
- set try
- if eval $compile; then
- xxx=`$run ./try`
- case "$xxx" in
- semid_ds) val="$define" ;;
- esac
- fi
- $rm -f try try.c
+ set try
+ if eval $compile; then
+ xxx=`$run ./try`
+ case "$xxx" in
+ semid_ds) val="$define" ;;
+ esac
+ fi
+ $rm -f try try.c
+ ;;
+ esac
set d_semctl_semid_ds
eval $setvar
case "$d_semctl_semid_ds" in