summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-08-20 08:21:53 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-08-20 08:21:53 +0000
commit91d38e11560840b903c3a44ffb8daa5591bb2f62 (patch)
treea9d305359f4b3d477dd203aef8374768ee45bfb0 /gnu/usr.bin/perl
parent3afb9d5d9af4ad45acb89855537d7c6e80c2f6e2 (diff)
Disable dynamic loading on archs that don't support it, and enable setuid
scripts. (Damnit perl, you are NOT smarter then the kernel.)
Diffstat (limited to 'gnu/usr.bin/perl')
-rw-r--r--gnu/usr.bin/perl/config.sh.OpenBSD43
1 files changed, 35 insertions, 8 deletions
diff --git a/gnu/usr.bin/perl/config.sh.OpenBSD b/gnu/usr.bin/perl/config.sh.OpenBSD
index 417d7701acf..2b1b2cb2879 100644
--- a/gnu/usr.bin/perl/config.sh.OpenBSD
+++ b/gnu/usr.bin/perl/config.sh.OpenBSD
@@ -1,4 +1,5 @@
#!/bin/sh
+# $OpenBSD: config.sh.OpenBSD,v 1.2 1996/08/20 08:21:52 downsj Exp $
#
# This file was produced by running the Configure script. It holds all the
# definitions figured out by Configure. Should you modify one of these values,
@@ -10,6 +11,16 @@
# Configured by: downsj
# Target system: openbsd threadway 1.2 threadway#36 i386
+#
+# NOTE: This script does run time substitions when being used by Configure!
+#
+
+case "`machine`" in
+"alpha") _dynaload=0;;
+"arc") _dynaload=0;;
+*) _dynaload=1;;
+esac
+
Author=''
Date='$Date'
Header=''
@@ -89,9 +100,15 @@ d_cuserid='undef'
d_dbl_dig='define'
d_difftime='define'
d_dirnamlen='define'
-d_dlerror='define'
-d_dlopen='define'
-d_dlsymun='define'
+if [ $_dynaload ]; then
+ d_dlerror='define'
+ d_dlopen='define'
+ d_dlsymun='define'
+else
+ d_dlerror='undef'
+ d_dlopen='undef'
+ d_dlsymun='undef'
+fi
d_dosuid='undef'
d_dup2='define'
d_eofnblk='define'
@@ -209,7 +226,7 @@ d_strctcpy='define'
d_strerrm='strerror(e)'
d_strerror='define'
d_strxfrm='define'
-d_suidsafe='undef'
+d_suidsafe='define'
d_symlink='define'
d_syscall='define'
d_sysconf='define'
@@ -241,9 +258,15 @@ db_hashtype='u_int32_t'
db_prefixtype='size_t'
defvoidused='15'
direntrytype='struct dirent'
-dlext='so'
-dlsrc='dl_dlopen.xs'
-dynamic_ext='DB_File Fcntl FileHandle POSIX SDBM_File Safe Socket'
+if [ $_dynaload ]; then
+ dlext='so'
+ dlsrc='dl_dlopen.xs'
+ dynamic_ext='DB_File Fcntl FileHandle POSIX SDBM_File Safe Socket'
+else
+ dlext=''
+ dlsrc=''
+ dynamic_ext=''
+fi
eagain='EAGAIN'
echo='echo'
egrep='egrep'
@@ -467,7 +490,11 @@ troff=''
uidtype='uid_t'
uname='uname'
uniq='uniq'
-usedl='define'
+if [ $_dynaload ]; then
+ usedl='define'
+else
+ usedl='undef'
+fi
usemymalloc='n'
usenm='true'
useposix='true'