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 More guessing?
Date Sat, 21 Sep 1996 11:20:07 GMT
If Configure could also guess the C compiler, the average user would have to do
no more than run it. The following script does the job, I think ... all those
in favour?

#!/bin/sh
# Attempt to guess which C compiler we should use...

for path in `echo $PATH | sed "s/:/ /g"`
do
	if [ -x $path/gcc ]; then echo gcc; exit; fi
done
for path in `echo $PATH | sed "s/:/ /g"`
do
	if [ -x $path/cc ]; then echo cc; exit; fi
done

Cheers,

Ben.

-- 
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