f0b3dd8bc1
"axe it" pval@ (maintainer)
116 lines
2.6 KiB
Plaintext
116 lines
2.6 KiB
Plaintext
$OpenBSD: patch-Configure,v 1.31 2011/05/18 16:25:14 ajacoutot Exp $
|
|
--- Configure.orig Mon Jan 18 20:01:14 2010
|
|
+++ Configure Tue May 17 19:42:36 2011
|
|
@@ -3738,12 +3738,6 @@ return(0); }
|
|
LSOF_TSTBIGF=" "
|
|
LSOF_VERS=2090
|
|
;;
|
|
- 2*)
|
|
- LSOF_TSTBIGF=" "
|
|
- LSOF_VERS=2090
|
|
- echo "!!!WARNING!!! Unsupported OpenBSD 2.x version: $LSOF_VSTR"
|
|
- echo "!!!WARNING!!! Configuring for OpenBSD 2.9"
|
|
- ;;
|
|
3.0*)
|
|
LSOF_TSTBIGF=" "
|
|
LSOF_VERS=3000
|
|
@@ -3784,16 +3778,56 @@ return(0); }
|
|
LSOF_TSTBIGF=" "
|
|
LSOF_VERS=3090
|
|
;;
|
|
- 3*)
|
|
+ 4.0*)
|
|
LSOF_TSTBIGF=" "
|
|
- LSOF_VERS=3090
|
|
- echo "!!!WARNING!!! Unsupported OpenBSD 3.x version: $LSOF_VSTR"
|
|
- echo "!!!WARNING!!! Configuring for OpenBSD 3.9"
|
|
+ LSOF_VERS=4000
|
|
;;
|
|
+ 4.1*)
|
|
+ LSOF_TSTBIGF=" "
|
|
+ LSOF_VERS=4010
|
|
+ ;;
|
|
+ 4.2*)
|
|
+ LSOF_TSTBIGF=" "
|
|
+ LSOF_VERS=4020
|
|
+ ;;
|
|
+ 4.3*)
|
|
+ LSOF_TSTBIGF=" "
|
|
+ LSOF_VERS=4030
|
|
+ ;;
|
|
+ 4.4*)
|
|
+ LSOF_TSTBIGF=" "
|
|
+ LSOF_VERS=4040
|
|
+ ;;
|
|
+ 4.5*)
|
|
+ LSOF_TSTBIGF=" "
|
|
+ LSOF_VERS=4050
|
|
+ ;;
|
|
+ 4.6*)
|
|
+ LSOF_TSTBIGF=" "
|
|
+ LSOF_VERS=4060
|
|
+ ;;
|
|
+ 4.7*)
|
|
+ LSOF_TSTBIGF=" "
|
|
+ LSOF_VERS=4070
|
|
+ ;;
|
|
+ 4.8*)
|
|
+ LSOF_TSTBIGF=" "
|
|
+ LSOF_VERS=4070
|
|
+ ;;
|
|
+ 4.9*)
|
|
+ LSOF_TSTBIGF=" "
|
|
+ LSOF_VERS=4070
|
|
+ ;;
|
|
+ 4*)
|
|
+ LSOF_TSTBIGF=" "
|
|
+ LSOF_VERS=4070
|
|
+ echo "!!!WARNING!!! Unsupported OpenBSD 4.x version: $LSOF_VSTR"
|
|
+ echo "!!!WARNING!!! Configuring for OpenBSD 4.7"
|
|
+ ;;
|
|
*)
|
|
echo "Unknown OpenBSD release: $LSOF_VSTR"
|
|
- echo Assuming OpenBSD 3.9
|
|
- LSOF_VERS=3090
|
|
+ echo Assuming OpenBSD 4.7
|
|
+ LSOF_VERS=4070
|
|
;;
|
|
esac # }
|
|
fi # }
|
|
@@ -3801,7 +3835,7 @@ return(0); }
|
|
# Test for legal OpenBSD version.
|
|
|
|
case $LSOF_VERS in # {
|
|
- 1020|2050|2060|2070|2080|2090|3000|3010|3020|3030|3040|3050|3060|3070|3080|3090)
|
|
+ 1020|2050|2060|2070|2080|2090|3000|3010|3020|3030|3040|3050|3060|3070|3080|3090|4000|4010|4020|4030|4040|4050|4060|4070)
|
|
;;
|
|
*)
|
|
echo "Unknown OpenBSD version: $LSOF_VERS"
|
|
@@ -3863,11 +3897,6 @@ return(0); }
|
|
LSOF_TMP1=1
|
|
fi # }
|
|
fi # }
|
|
- if test -d ${OPENBSD_SYS}/miscfs/procfs # {
|
|
- then
|
|
- LSOF_CFGF="$LSOF_CFGF -DHASPROCFS"
|
|
- LSOF_TMP1=1
|
|
- fi # }
|
|
if test -d ${OPENBSD_SYS}/isofs/cd9660 # {
|
|
then
|
|
LSOF_CFGF="$LSOF_CFGF -DHAS9660FS=1"
|
|
@@ -4041,6 +4070,14 @@ return(0); }
|
|
if test -r ${LSOF_INCLUDE}/sys/pipe.h # {
|
|
then
|
|
LSOF_CFGF="$LSOF_CFGF -DHAS_SYS_PIPEH"
|
|
+ fi # }
|
|
+ if test -r ${LSOF_INCLUDE}/kvm.h # {
|
|
+ then
|
|
+ grep -q kvm_getproc2 ${LSOF_INCLUDE}/kvm.h
|
|
+ if test $? -eq 0 # {
|
|
+ then
|
|
+ LSOF_CFGF="$LSOF_CFGF -DHASKVMGETPROC2"
|
|
+ fi # }
|
|
fi # }
|
|
LSOF_CFGL="$LSOF_CFGL -lkvm"
|
|
LSOF_DIALECT_DIR=n+obsd
|