]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Require gcc on SunOS4
authorTed Lemon <source@isc.org>
Wed, 20 Sep 2000 00:01:13 +0000 (00:01 +0000)
committerTed Lemon <source@isc.org>
Wed, 20 Sep 2000 00:01:13 +0000 (00:01 +0000)
Makefile.conf
configure

index 5a421edf209d9d8461688651d389fcec2f0e6c8a..37c3c2d3645803809b930ad26653553dc3b38e81 100644 (file)
@@ -99,6 +99,7 @@ MINORVERSION=MinorVersion
 
 ## SunOS 4.1
 ##--sunos4--
+#CC = gcc
 #LIBS = -lresolv
 #CF = cf/sunos4.h
 #BINDIR=/usr/etc
index d591d3ce8b80b261b1c251b5745489e129ab2246..4beec7be5c8fb08178fd431a6f2c916ad8f4bc0c 100755 (executable)
--- a/configure
+++ b/configure
@@ -63,7 +63,13 @@ if [ "$sysname" = "" ]; then
       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
-        4) sysname=sunos4;;
+        4) 
+         set `which gcc`
+         if [ $# != 1 ]; then
+           echo SunOS 4 build will not work without the GNU C Compiler.
+           exit 1
+         fi
+         sysname=sunos4;;
         5)
          set `which gcc`
          if [ $# = 1 ]; then