]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add support for gcc2-free BSD/os 4.1.
authorTed Lemon <source@isc.org>
Thu, 29 Jun 2000 20:04:18 +0000 (20:04 +0000)
committerTed Lemon <source@isc.org>
Thu, 29 Jun 2000 20:04:18 +0000 (20:04 +0000)
Makefile.conf
configure

index 90c09958154d1d952750298b90dcc80e7fc99db0..576513cad5dc905129bec726f7a4127918e89882 100644 (file)
@@ -160,7 +160,7 @@ MINORVERSION=MinorVersion
 #VARDB = /etc
 ##--alphaosf--
 
-## BSD/OS 2.1 and higher.
+## BSD/OS 2.1 through 4.0
 ##--bsdos--
 #LIBS = -lresolv
 #CC=gcc2
@@ -168,6 +168,12 @@ MINORVERSION=MinorVersion
 #SCRIPT=bsdos
 ##--bsdos--
 
+## BSD/OS 4.1 and higher.
+##--bsdos-4.1--
+#CF = cf/bsdos.h
+#SCRIPT=bsdos
+##--bsdos-4.1--
+
 ## OpenBSD
 ##--openbsd--
 #CF = cf/openbsd.h
@@ -198,6 +204,7 @@ MINORVERSION=MinorVersion
 #        -Wmissing-declarations -Wnested-externs \
 #        -pipe $(BINDDEF)
 #SCRIPT=netbsd
+##MKDEP=makedepend
 ##--netbsd--
 
 ## NetBSD Arm32
index a749d5a8355f46c65988e790b78c9c9eb8892318..d591d3ce8b80b261b1c251b5745489e129ab2246 100755 (executable)
--- a/configure
+++ b/configure
@@ -29,7 +29,17 @@ if [ "$sysname" = "" ]; then
     ULTRIX)
       sysname=ultrix;;
     BSD/OS)
-      sysname=bsdos;;
+      release=`uname -r`
+      minor=`echo $release |sed -e 's/[0-9]*\.\([0-9][0-9]*\)\(\..*\)*$/\1/'`
+      major=`echo $release |sed -e 's/\([0-9][0-9]*\)\..*$/\1/'`
+      
+      case $major in
+       [123]) sysname=bsdos ;;
+       *) case $minor in
+            0) sysname=bsdos ;;
+            *) sysname=bsdos-4.1 ;;
+          esac;;
+      esac;;
     OSF1)
       if [ $machine = 'alpha' ]; then
         sysname=alphaosf