httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: cvs commit: apache/src CHANGES Configuration.tmpl Makefile.tmpl
Date Tue, 30 Jul 1996 19:18:14 GMT
Jim Jagielski wrote:
> 
> Ben Laurie wrote:
> > 
> > 
> > Well, I'd certainly like to see a smart Configure.
> > 
> 
> I'm taking some very rough 1st steps... At least in how Configuration.tmpl
> does things.
> 
> > > 
> > > Question: Can we assume that the OS has perl? If so, it would make
> > >  the intelligent Configure _so_ much easier.
> > 
> > SCO 3, SCO 5 and QNX do not come with Perl.
> > 
> > If you want more power than sh gives you, I suggest a C program (after all,
> > simple file I/O is pretty portable).
> > 
> 
> I'll try sh 1st... At least right now, some sort of Q&A
> ("What system is this?" "Do you want Spencer's regex package?")
> or menu option should be easy enough... Configuration.tmpl may just
> store the list of modules and Configure can scan thru and ask the
> right kind of questions (ie: "I see you want mod_status... Should we
> include full status monitoring?") and adjust as required.

I offer the beginnings of a platform detection script ... this does SCO 3, 5,
QNX and FreeBSD...

#!/bin/sh
PLATFORM="unknown"
if uname -X > /dev/null 2> /dev/null
then
	REL=`uname -X | grep "^Release" | cut -f3 -d' '`
	case "$REL" in
	3\.2v4\.2)
		PLATFORM="SCO 3"
		;;
	3\.2v5\.0\.0)
		PLATFORM="SCO 5"
		;;
	esac
else
	OS=`uname -a | cut -f1 -d' '`
	case "$OS" in
	QNX)
		PLATFORM="QNX"
		;;
	FreeBSD)
		PLATFORM="FreeBSD"
		;;
	esac
fi

echo $PLATFORM

Cheers,

Ben.

> 
> -- 
> Jim Jagielski  << jim@jaguNET.com >>   |   "There is a time for laughing,
>   **  jaguNET Access Services  **      |    and a time for not laughing,
>       Email: info@jaguNET.com          |    and this is not one of them"
> ++    http://www.jaguNET.com/         +++      Voice/Fax: 410-931-3157       ++

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.            Apache Group member (http://www.apache.org)

Mime
View raw message