27 |
, False |
, False |
28 |
)) |
)) |
29 |
|
|
30 |
|
opts.Add(BoolOption( |
31 |
|
'WITHOUT_PYTHON' |
32 |
|
,"Set to True if you don't want to build Python wrappers." |
33 |
|
, False |
34 |
|
)) |
35 |
|
|
36 |
opts.Update(env) |
opts.Update(env) |
37 |
opts.Save('options.cache',env) |
opts.Save('options.cache',env) |
38 |
|
|
42 |
|
|
43 |
with_tcltk_gui = (env['WITHOUT_TCLTK_GUI']==False) |
with_tcltk_gui = (env['WITHOUT_TCLTK_GUI']==False) |
44 |
|
|
45 |
|
with_python = (env['WITHOUT_PYTHON']==False) |
46 |
|
|
47 |
#------------------------------------------------------ |
#------------------------------------------------------ |
48 |
# CONFIGURATION |
# CONFIGURATION |
49 |
|
|
66 |
print "Didn't find isnan" |
print "Didn't find isnan" |
67 |
Exit(1) |
Exit(1) |
68 |
|
|
69 |
# Where is tcl.h ? |
# Tcl/Tk |
70 |
if not conf.CheckHeader('tcl.h'): |
if not conf.CheckHeader('tcl.h'): |
71 |
with_tcltk_gui = False |
with_tcltk_gui = False |
72 |
|
|
79 |
if not conf.CheckLib('tk'): |
if not conf.CheckLib('tk'): |
80 |
with_tcktk_gui = False |
with_tcktk_gui = False |
81 |
|
|
82 |
|
# Python |
83 |
|
if not conf.CheckHeader('python2.4/Python.h'): |
84 |
|
print "Didn't find Python 2.4" |
85 |
|
with_python = False |
86 |
|
else: |
87 |
|
env.Append(CPPPATH=['/usr/include/python2.4']) |
88 |
|
|
89 |
# TODO: -D_HPUX_SOURCE is needed |
# TODO: -D_HPUX_SOURCE is needed |
90 |
|
|
91 |
# TODO: check size of void* |
# TODO: check size of void* |
108 |
if with_tcltk_gui: |
if with_tcltk_gui: |
109 |
env.SConscript(['tcltk98/generic/interface/SConscript'],'env') |
env.SConscript(['tcltk98/generic/interface/SConscript'],'env') |
110 |
|
|
111 |
|
if with_python: |
112 |
|
env.SConscript(['pygtk/interface/SConscript'],'env') |