From a453dbe5e1ce7746d9a1ad6dfae95db89f492776 Mon Sep 17 00:00:00 2001 From: Radim Kolar <> Date: Tue, 15 Sep 2009 17:52:58 +0200 Subject: [PATCH] check if CC compiler works --- ChangeLog | 2 ++ SConstruct | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 64548af..34c0f55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -34,6 +34,8 @@ Version NEXT from .fspsites files. fpwd command from setup.sh now prints site name instead of ip address if possible. + SCons now check if CC compiler works. We need SCons 1.1 or greater + for building FSP now. Version 2.8.1b25 - 10 Sep 2009 GNU autotools build system was entirely replaced by SCons diff --git a/SConstruct b/SConstruct index ecaf855..1fd962b 100644 --- a/SConstruct +++ b/SConstruct @@ -2,7 +2,7 @@ import os # init Scons -EnsureSConsVersion(1,0) +EnsureSConsVersion(1,1) EnsurePythonVersion(2,2) # set defaults @@ -79,7 +79,8 @@ conf = Configure(env,{'checkForCCOption':checkForCCOption, 'checkForUserSysconfdir':checkForUserSysconfdir, 'checkForBuildingClients':checkForBuildingClients, 'checkForSGMLFMT':checkForSGMLFMT - }) + }) +if not conf.CheckCC(): Exit(1) # check for CC options for option in Split(""" -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wshadow