2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-23 10:28:08 +00:00
isc-dhcp/configure

54 lines
1.2 KiB
Plaintext
Raw Normal View History

1996-05-20 20:18:47 +00:00
#!/bin/sh
sysname=$1
uname=`uname -s`
machine=`uname -m`
if [ "$sysname" = "" ]; then
case $uname in
ULTRIX)
sysname=ultrix;;
BSD/OS)
sysname=bsdos;;
OSF1)
if [ $machine = 'alpha' ]; then
sysname = alphaosf
fi;;
Linux)
sysname=linux;;
SunOS)
case `uname -r` in
4*) sysname=sunos4;;
5*) sysname=sunos5-5;;
esac;;
NetBSD)
sysname=netbsd;;
FreeBSD)
sysname=freebsd;;
esac
fi
if [ "$sysname" = "" ]; then
echo
echo "Unknown system. If this is an SCO system running ODT 3.0 or"
echo "higher, type \`\`./configure sco''. Otherwise, this is a"
echo "configuration that isn't supported or hasn't been tested."
echo
echo "Supported configurations are:"
echo " ultrix ULTRIX 4.2A or higher"
echo " bsdos BSDI BSD/OS 2.1"
echo " alphaosf DEC Alpha OSF/1"
echo " linux Linux"
echo " sunos4 Sunos 4.1.4 (earlier releases may work)"
echo " sunos5-5 SunOS 5.5 (Solaris 2.5) (earlier 2.x releases may work)"
echo " netbsd NetBSD 1.1 or higher"
echo " freebsd FreeBSD"
exit 1;
fi
sed -e "/^##\+\+${sysname}\+\+/,/^##--${sysname}--/s/^#//" \
<Makefile.dist >Makefile
exit 0