source: trunk/config/scripts/env.sh.SH @ 1185

Last change on this file since 1185 was 1045, checked in by garnier, 15 years ago

maj en aussi sur CVS

  • Property svn:executable set to *
File size: 17.7 KB
Line 
1case $CONFIG in
2'')
3        if test -f config.sh; then TOP=.;
4        elif test -f ../config.sh; then TOP=..;
5        elif test -f ../../config.sh; then TOP=../..;
6        elif test -f ../../../config.sh; then TOP=../../..;
7        elif test -f ../../../../config.sh; then TOP=../../../..;
8        else
9                echo "Can't find config.sh."; exit 1
10        fi
11        . $TOP/config.sh
12        ;;
13esac
14: This forces SH files to create target in same directory as SH file.
15: This is so that make depend always knows where to find SH derivatives.
16case "$0" in
17*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
18esac
19#echo "Extracting env.sh (with variable substitutions)"
20: This section of the file will have variable substitutions done on it.
21: Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!.
22: Protect any dollar signs and backticks that you do not want interpreted
23: by putting a backslash in front.  You may delete these comments.
24$spitshell >env.sh <<!GROK!THIS!
25######################################
26#
27# Clean all G4 envs
28unset  CLHEP_BASE_DIR
29unset  CLHEP_INCLUDE_DIR
30unset  CLHEP_LIB
31unset  CLHEP_LIB_DIR
32
33unset  G4ANALYSIS_USE
34unset  G4DEBUG
35unset  G4INCLUDE
36unset  G4INSTALL
37
38unset  G4LEDATA
39unset  G4LEVELGAMMADATA
40unset  G4NEUTRONHPDATA
41unset  G4RADIOACTIVEDATA
42unset  G4ABLADATA
43
44unset  G4LIB
45unset  G4LIB_BUILD_G3TOG4
46unset  G4LIB_BUILD_SHARED
47unset  G4LIB_BUILD_STATIC
48unset  G4LIB_BUILD_ZLIB
49unset  G4LIB_BUILD_GDML
50unset  G4LIB_USE_G3TOG4
51unset  G4LIB_USE_GRANULAR
52unset  G4LIB_USE_ZLIB
53
54unset  G4SYSTEM
55
56unset  G4UI_BUILD_WIN32_SESSION
57unset  G4UI_BUILD_XAW_SESSION
58unset  G4UI_BUILD_XM_SESSION
59unset  G4UI_USE_TCSH
60unset  G4UI_USE_WIN32
61unset  G4UI_USE_XAW
62unset  G4UI_USE_XM
63unset  G4UI_USE_QT
64
65unset  G4VIS_BUILD_DAWN_DRIVER
66unset  G4VIS_BUILD_OIWIN32_DRIVER
67unset  G4VIS_BUILD_OIX_DRIVER
68unset  G4VIS_BUILD_OPENGLWIN32_DRIVER
69unset  G4VIS_BUILD_OPENGLXM_DRIVER
70unset  G4VIS_BUILD_OPENGLX_DRIVER
71unset  G4VIS_BUILD_RAYTRACERX_DRIVER
72unset  G4VIS_BUILD_VRML_DRIVER
73unset  G4VIS_BUILD_OPENGLQT_DRIVER
74
75unset  G4VIS_USE_DAWN
76unset  G4VIS_USE_OIWIN32
77unset  G4VIS_USE_OIX
78unset  G4VIS_USE_OPENGLWIN32
79unset  G4VIS_USE_OPENGLX
80unset  G4VIS_USE_OPENGLXM
81unset  G4VIS_USE_RAYTRACERX
82unset  G4VIS_USE_VRML
83unset  G4VIS_USE_OPENGLQT
84
85
86#
87# g4system.U
88#
89#+
90G4SYSTEM="$g4system"
91export G4SYSTEM
92if [ X\$g4non_display = X ] ; then
93echo "On this machine the G4SYSTEM=\$G4SYSTEM"
94fi
95
96#
97# g4dirs.U
98#
99#+
100if [ X$g4install != X$g4final_install ] ; then
101G4INSTALL="$g4final_install/src/geant4"
102else
103G4INSTALL="$g4install"
104fi
105export G4INSTALL
106if [ X\$g4non_display = X ] ; then
107echo "On this machine the G4INSTALL=\$G4INSTALL"
108fi
109
110#+
111if [ X$g4includes_flag != Xn ] ; then 
112if [ X$g4install != X$g4final_install ] ; then
113G4INCLUDE="$g4final_install/include/geant4"
114else
115G4INCLUDE="$g4install/include/"
116fi
117export G4INCLUDE
118if [ X\$g4non_display = X ] ; then
119echo "On this machine the G4INCLUDE=\$G4INCLUDE"
120fi
121#else
122#G4BASE="$g4final_install/include/geant4/source"
123#export G4BASE
124#if [ X\$g4non_display = X ] ; then
125#echo "On this machine the G4BASE=\$G4BASE"
126#fi
127fi
128
129#+
130if [ X$g4lib != X ] ; then 
131if [ X$g4install != X$g4final_install ] ; then
132G4LIB="$g4final_install/lib/geant4"
133else
134G4LIB="$g4install/lib"
135fi
136export G4LIB
137if [ X\$g4non_display = X ] ; then
138echo "On this machine the G4LIB=\$G4LIB"
139fi
140fi
141
142#+
143if [ X$g4levelgammadata != X ] ; then 
144G4LEVELGAMMADATA="$g4levelgammadata"
145export G4LEVELGAMMADATA
146if [ X\$g4non_display = X ] ; then
147echo "On this machine the G4LEVELGAMMADATA=\$G4LEVELGAMMADATA"
148fi
149fi
150
151#+
152if [ X$g4radioactivedata != X ] ; then 
153G4RADIOACTIVEDATA="$g4radioactivedata"
154export G4RADIOACTIVEDATA
155if [ X\$g4non_display = X ] ; then
156echo "On this machine the G4RADIOACTIVEDATA=\$G4RADIOACTIVEDATA"
157fi
158fi
159
160#+
161if [ X$g4ledata != X ] ; then 
162G4LEDATA="$g4ledata"
163export G4LEDATA
164if [ X\$g4non_display = X ] ; then
165echo "On this machine the G4LEDATA=\$G4LEDATA"
166fi
167fi
168
169#+
170if [ X$g4neutronhpcrosssections != X ] ; then 
171G4NEUTRONHPDATA="$g4neutronhpcrosssections"
172export G4NEUTRONHPDATA
173if [ X\$g4non_display = X ] ; then
174echo "On this machine the G4NEUTRONHPDATA=\$G4NEUTRONHPDATA"
175fi
176fi
177
178#+
179if [ X$g4abladata != X ] ; then 
180G4ABLADATA="$g4abladata"
181export G4ABLADATA
182if [ X\$g4non_display = X ] ; then
183echo "On this machine the G4ABLADATA=\$G4ABLADATA"
184fi
185fi
186
187
188
189
190#+
191#if [ X$g4elasticdata != X ] ; then
192#G4ELASTICDATA="$g4elasticdata"
193#export G4ELASTICDATA
194#if [ X\$g4non_display = X ] ; then
195#echo "On this machine the G4ELASTICDATA=\$G4ELASTICDATA"
196#fi
197#fi
198
199#
200# g4clhep.U
201#
202if [ X$g4clhep_base_dir != X ] ; then 
203CLHEP_BASE_DIR="$g4clhep_base_dir"
204export CLHEP_BASE_DIR
205if [ X\$g4non_display = X ] ; then
206echo "On this machine the CLHEP_BASE_DIR=\$CLHEP_BASE_DIR"
207fi
208fi
209
210#+
211if [ X$g4clhep_include_dir != X ] ; then 
212CLHEP_INCLUDE_DIR="$g4clhep_include_dir"
213export CLHEP_INCLUDE_DIR
214if [ X\$g4non_display = X ] ; then
215echo "On this machine the CLHEP_INCLUDE_DIR=\$CLHEP_INCLUDE_DIR"
216fi
217fi
218
219#+
220if [ X$g4clhep_lib_dir != X ] ; then 
221CLHEP_LIB_DIR="$g4clhep_lib_dir"
222export CLHEP_LIB_DIR
223if [ X\$g4non_display = X ] ; then
224echo "On this machine the CLHEP_LIB_DIR=\$CLHEP_LIB_DIR"
225fi
226fi
227
228#+
229if [ X$g4clhep_lib != X ] ; then 
230CLHEP_LIB="$g4clhep_lib"
231export CLHEP_LIB
232if [ X\$g4non_display = X ] ; then
233echo "On this machine the CLHEP_LIB=\$CLHEP_LIB"
234fi
235fi
236
237#+
238#
239# g4debug
240#
241if [ X$g4debug = Xy ] ; then 
242G4DEBUG=1
243export G4DEBUG
244if [ X\$g4non_display = X ] ; then
245echo "On this machine the G4DEBUG=\$G4DEBUG"
246fi
247fi
248
249#
250# g4analysis
251#
252#+
253if [ X$g4wanalysis_use = Xy ] ; then
254G4ANALYSIS_USE=1
255export G4ANALYSIS_USE
256if [ X\$g4non_display = X ] ; then
257echo "On this machine the G4ANALYSIS_USE=\$G4ANALYSIS_USE"
258fi
259fi 
260
261#
262# g4ui
263#
264#+
265if [ X$g4ui_build_xaw_session = Xy ] ; then
266G4UI_BUILD_XAW_SESSION=1
267export G4UI_BUILD_XAW_SESSION
268if [ X\$g4non_display = X ] ; then
269echo "On this machine the G4UI_BUILD_XAW_SESSION=\$G4UI_BUILD_XAW_SESSION"
270fi
271fi 
272
273#+
274if [ X$g4ui_use_xaw = Xy ] ; then
275G4UI_USE_XAW=1
276export G4UI_USE_XAW
277if [ X\$g4non_display = X ] ; then
278echo "On this machine the G4UI_USE_XAW=\$G4UI_USE_XAW"
279fi
280fi 
281
282#+
283if [ X$g4ui_build_xm_session = Xy ] ; then
284G4UI_BUILD_XM_SESSION=1
285export G4UI_BUILD_XM_SESSION
286if [ X\$g4non_display = X ] ; then
287echo "On this machine the G4UI_BUILD_XM_SESSION=\$G4UI_BUILD_XM_SESSION"
288fi
289fi 
290
291#+
292if [ X$g4ui_use_xm = Xy ] ; then
293G4UI_USE_XM=1
294export G4UI_USE_XM
295if [ X\$g4non_display = X ] ; then
296echo "On this machine the G4UI_USE_XM=\$G4UI_USE_XM"
297fi
298fi 
299
300#+
301if [ X$g4ui_build_win32_session = Xy ] ; then
302G4UI_BUILD_WIN32_SESSION=1
303export G4UI_BUILD_WIN32_SESSION
304if [ X\$g4non_display = X ] ; then
305echo "On this machine the G4UI_BUILD_WIN32_SESSION=\$G4UI_BUILD_WIN32_SESSION"
306fi
307fi 
308
309#+
310if [ X$g4ui_use_win32 = Xy ] ; then
311G4UI_USE_WIN32=1
312export G4UI_USE_WIN32
313if [ X\$g4non_display = X ] ; then
314echo "On this machine the G4UI_USE_WIN32=\$G4UI_USE_WIN32"
315fi
316fi 
317
318
319#+
320if [ X$g4ui_build_qt_session = Xy ] ; then
321G4UI_BUILD_QT_SESSION=1
322export G4UI_BUILD_QT_SESSION
323if [ X\$g4non_display = X ] ; then
324echo "On this machine the G4UI_BUILD_QT_SESSION=\$G4UI_BUILD_QT_SESSION"
325fi
326fi 
327
328#+
329if [ X$g4ui_use_qt = Xy ] ; then
330G4UI_USE_QT=1
331export G4UI_USE_QT
332if [ X\$g4non_display = X ] ; then
333echo "On this machine the G4UI_USE_QT=\$G4UI_USE_QT"
334fi
335fi 
336
337
338
339#
340# g4vis
341#
342#+
343if [ X$g4vis_build_dawn_driver = Xy ] ; then
344G4VIS_BUILD_DAWN_DRIVER=1
345export G4VIS_BUILD_DAWN_DRIVER
346if [ X\$g4non_display = X ] ; then
347echo "On this machine the G4VIS_BUILD_DAWN_DRIVER=\$G4VIS_BUILD_DAWN_DRIVER"
348fi
349fi 
350
351#+
352if [ X$g4vis_build_openglx_driver = Xy ] ; then
353G4VIS_BUILD_OPENGLX_DRIVER=1
354export G4VIS_BUILD_OPENGLX_DRIVER
355if [ X\$g4non_display = X ] ; then
356echo "On this machine the G4VIS_BUILD_OPENGLX_DRIVER=\$G4VIS_BUILD_OPENGLX_DRIVER"
357fi
358fi 
359
360#+
361if [ X$g4vis_build_openglxm_driver = Xy ] ; then
362G4VIS_BUILD_OPENGLXM_DRIVER=1
363export G4VIS_BUILD_OPENGLXM_DRIVER
364if [ X\$g4non_display = X ] ; then
365echo "On this machine the G4VIS_BUILD_OPENGLXM_DRIVER=\$G4VIS_BUILD_OPENGLXM_DRIVER"
366fi
367fi 
368
369#+
370if [ X$g4vis_build_openglwin32_driver = Xy ] ; then
371G4VIS_BUILD_OPENGLWIN32_DRIVER=1
372export G4VIS_BUILD_OPENGLWIN32_DRIVER
373if [ X\$g4non_display = X ] ; then
374echo "On this machine the G4VIS_BUILD_OPENGLWIN32_DRIVER=\$G4VIS_BUILD_OPENGLWIN32_DRIVER"
375fi
376fi 
377
378#+
379if [ X$g4vis_build_oix_driver = Xy ] ; then
380G4VIS_BUILD_OIX_DRIVER=1
381export G4VIS_BUILD_OIX_DRIVER
382if [ X\$g4non_display = X ] ; then
383echo "On this machine the G4VIS_BUILD_OIX_DRIVER=\$G4VIS_BUILD_OIX_DRIVER"
384fi
385fi 
386
387#+
388if [ X$g4vis_build_raytracerx_driver = Xy ] ; then
389G4VIS_BUILD_RAYTRACERX_DRIVER=1
390export G4VIS_BUILD_RAYTRACERX_DRIVER
391if [ X\$g4non_display = X ] ; then
392echo "On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=\$G4VIS_BUILD_RAYTRACERX_DRIVER"
393fi
394fi 
395
396#+
397if [ X$g4vis_build_oiwin32_driver = Xy ] ; then
398G4VIS_BUILD_OIWIN32_DRIVER=1
399export G4VIS_BUILD_OIWIN32_DRIVER
400if [ X\$g4non_display = X ] ; then
401echo "On this machine the G4VIS_BUILD_OIWIN32_DRIVER=\$G4VIS_BUILD_OIWIN32_DRIVER"
402fi
403fi 
404
405#+
406if [ X$g4vis_build_vrml_driver = Xy ] ; then
407G4VIS_BUILD_VRML_DRIVER=1
408export G4VIS_BUILD_VRML_DRIVER
409if [ X\$g4non_display = X ] ; then
410echo "On this machine the G4VIS_BUILD_VRML_DRIVER=\$G4VIS_BUILD_VRML_DRIVER"
411fi
412fi 
413
414#+
415if [ X$g4vis_build_openglqt_driver = Xy ] ; then
416G4VIS_BUILD_OPENGLQT_DRIVER=1
417export G4VIS_BUILD_OPENGLQT_DRIVER
418if [ X\$g4non_display = X ] ; then
419echo "On this machine the G4VIS_BUILD_OPENGLQT_DRIVER=\$G4VIS_BUILD_OPENGLQT_DRIVER"
420fi
421fi 
422
423
424
425#+
426if [ X$g4vis_use_dawn = Xy ] ; then
427G4VIS_USE_DAWN=1
428export G4VIS_USE_DAWN
429if [ X\$g4non_display = X ] ; then
430echo "On this machine the G4VIS_USE_DAWN=\$G4VIS_USE_DAWN"
431fi
432fi 
433
434#+
435if [ X$g4vis_use_openglx = Xy ] ; then
436G4VIS_USE_OPENGLX=1
437export G4VIS_USE_OPENGLX
438if [ X\$g4non_display = X ] ; then
439echo "On this machine the G4VIS_USE_OPENGLX=\$G4VIS_USE_OPENGLX"
440fi
441fi 
442
443#+
444if [ X$g4vis_use_openglxm = Xy ] ; then
445G4VIS_USE_OPENGLXM=1
446export G4VIS_USE_OPENGLXM
447if [ X\$g4non_display = X ] ; then
448echo "On this machine the G4VIS_USE_OPENGLXM=\$G4VIS_USE_OPENGLXM"
449fi
450fi 
451
452#+
453if [ X$g4vis_use_openglwin32 = Xy ] ; then
454G4VIS_USE_OPENGLWIN32=1
455export G4VIS_USE_OPENGLWIN32
456if [ X\$g4non_display = X ] ; then
457echo "On this machine the G4VIS_USE_OPENGLWIN32=\$G4VIS_USE_OPENGLWIN32"
458fi
459fi 
460
461#+
462if [ X$g4vis_use_oix = Xy ] ; then
463G4VIS_USE_OIX=1
464export G4VIS_USE_OIX
465if [ X\$g4non_display = X ] ; then
466echo "On this machine the G4VIS_USE_OIX=\$G4VIS_USE_OIX"
467fi
468fi 
469
470#+
471if [ X$g4vis_use_raytracerx = Xy ] ; then
472G4VIS_USE_RAYTRACERX=1
473export G4VIS_USE_RAYTRACERX
474if [ X\$g4non_display = X ] ; then
475echo "On this machine the G4VIS_USE_RAYTRACERX=\$G4VIS_USE_RAYTRACERX"
476fi
477fi 
478
479#+
480if [ X$g4vis_use_oiwin32 = Xy ] ; then
481G4VIS_USE_OIWIN32=1
482export G4VIS_USE_OIWIN32
483if [ X\$g4non_display = X ] ; then
484echo "On this machine the G4VIS_USE_OIWIN32=\$G4VIS_USE_OIWIN32"
485fi
486fi 
487
488#+
489if [ X$g4vis_use_vrml = Xy ] ; then
490G4VIS_USE_VRML=1
491export G4VIS_USE_VRML
492if [ X\$g4non_display = X ] ; then
493echo "On this machine the G4VIS_USE_VRML=\$G4VIS_USE_VRML"
494fi
495fi 
496
497#+
498if [ X$g4vis_use_openglqt = Xy ] ; then
499G4VIS_USE_OPENGLQT=1
500export G4VIS_USE_OPENGLQT
501if [ X\$g4non_display = X ] ; then
502echo "On this machine the G4VIS_USE_OPENGLQT=\$G4VIS_USE_OPENGLQT"
503fi
504fi
505
506
507
508#+
509if [ X$g4vis_oglhome != X ] ; then
510OGLHOME="$g4vis_oglhome"
511export OGLHOME
512if [ X\$g4non_display = X ] ; then
513echo "On this machine the OGLHOME=\$OGLHOME"
514fi
515fi 
516
517#+
518if [ X$g4vis_oivhome != X ] ; then
519OIVHOME="$g4vis_oivhome"
520export OIVHOME
521if [ X\$g4non_display = X ] ; then
522echo "On this machine the OIVHOME=\$OIVHOME"
523fi
524fi 
525
526
527
528#+
529if [ X$g4vis_build_openglxm_driver != X ] ; then
530XMFLAGS="$g4vis_xmflags"
531export XMFLAGS
532if [ X\$g4non_display = X ] ; then
533echo "On this machine the XMFLAGS=\$XMFLAGS"
534fi
535fi 
536
537#+
538if [ X$g4vis_build_openglxm_driver != X ] ; then
539XMLIBS="$g4vis_xmlibs"
540export XMLIBS
541if [ X\$g4non_display = X ] ; then
542echo "On this machine the XMLIBS=\$XMLIBS"
543fi
544fi 
545
546#+
547if [ X$g4ui_build_xm_session != X ] ; then
548XMFLAGS="$g4vis_xmflags"
549export XMFLAGS
550if [ X\$g4non_display = X ] ; then
551echo "On this machine the XMFLAGS=\$XMFLAGS"
552fi
553fi 
554
555#+
556if [ X$g4vis_build_xm_session != X ] ; then
557XMLIBS="$g4vis_xmlibs"
558export XMLIBS
559if [ X\$g4non_display = X ] ; then
560echo "On this machine the XMLIBS=\$XMLIBS"
561fi
562fi 
563
564#+
565if [ X$g4ui_build_xaw_session != X ] ; then
566XAWFLAGS="$g4ui_xawflags"
567export XAWFLAGS
568if [ X\$g4non_display = X ] ; then
569echo "On this machine the XAWFLAGS=\$XAWFLAGS"
570fi
571fi 
572
573#+
574if [ X$g4ui_build_xaw_session != X ] ; then
575XAWLIBS="$g4ui_xawlibs"
576export XAWLIBS
577if [ X\$g4non_display = X ] ; then
578echo "On this machine the XAWLIBS=\$XAWLIBS"
579fi
580fi 
581
582
583#
584# Qt Flags and Libs, messy, but needed for backward compatibility
585#+
586if [ "X$g4ui_build_qt_session" = "Xy" -o "X$g4ui_use_qt" = "Xy" ] ; then
587QTFLAGS="$g4_qt_cxxflags"
588QTLIBS="$g4_qt_libs"
589QTMOC="$g4_qt_moc"
590export QTFLAGS
591export QTLIBS
592export QTMOC
593if test "x\$g4non_display" = "x" ; then
594echo "On this machine the QTFLAGS=\$QTFLAGS"
595echo "On this machine the QTLIBS=\$QTLIBS"
596echo "On this machine the QTMOC=\$QTMOC"
597fi
598fi
599
600if [ "X$g4vis_build_openglqt_driver" = "Xy" -o "X$g4vis_build_openglqt_driver" = "Xy" ] ; then
601if [ "X\$QTFLAGS" = "X" ] ; then
602QTFLAGS="$g4_qt_cxxflags $g4_qt_gl_cxxflags"
603else
604QTFLAGS="\$QTFLAGS $g4_qt_gl_cxxflags"
605fi
606if [ "X\$QTMOC" = "X" ] ; then
607QTMOC="$g4_qt_moc"
608fi
609GLQTLIBS="$g4_qt_libs $g4_qt_gl_libs"
610export QTFLAGS
611export QTMOC
612export GLQTLIBS
613if test "x\$g4non_display" = "x" ; then
614echo "On this machine the QTFLAGS=\$QTFLAGS"
615echo "On this machine the GLQTLIBS=\$GLQTLIBS"
616echo "On this machine the QTMOC=\$QTMOC"
617fi
618fi
619
620
621
622#
623# Use GDML module
624#
625#+
626if [ X$g4lib_build_gdml = Xy ] ; then
627G4LIB_BUILD_GDML=1
628export G4LIB_BUILD_GDML
629if test "x\$g4non_display" = "x" ; then
630echo "On this machine the G4LIB_BUILD_GDML=\$G4LIB_BUILD_GDML"
631fi
632fi 
633
634if [ X$g4lib_build_gdml = Xy ] ; then
635XERCESCROOT=$g4gdml_xercesc_root
636export XERCESCROOT
637if test "x\$g4non_display" = "x" ; then
638echo "On this machine the XERCESCROOT=\$XERCESCROOT"
639fi
640fi 
641
642
643
644#
645# Use G3TOG4 module
646#
647#+
648if [ X$g4wlib_build_g3tog4 = Xy ] ; then
649G4LIB_BUILD_G3TOG4=1
650export G4LIB_BUILD_G3TOG4
651if [ X\$g4non_display = X ] ; then
652echo "On this machine the G4LIB_BUILD_G3TOG4=\$G4LIB_BUILD_G3TOG4"
653fi
654fi 
655
656if [ X$g4w_use_g3tog4 = Xy ] ; then
657G4LIB_USE_G3TOG4=1
658export G4LIB_USE_G3TOG4
659if [ X\$g4non_display = X ] ; then
660echo "On this machine the G4LIB_USE_G3TOG4=\$G4LIB_USE_G3TOG4"
661fi
662fi 
663
664#
665# Use ZLIB module
666#
667#+
668if [ X$g4wlib_build_zlib = Xy ] ; then
669G4LIB_BUILD_ZLIB=1
670export G4LIB_BUILD_ZLIB
671if [ X\$g4non_display = X ] ; then
672echo "On this machine the G4LIB_BUILD_ZLIB=\$G4LIB_BUILD_ZLIB"
673fi
674fi 
675
676if [ X$g4w_use_zlib = Xy ] ; then
677G4LIB_USE_ZLIB=1
678export G4LIB_USE_ZLIB
679if [ X\$g4non_display = X ] ; then
680echo "On this machine the G4LIB_USE_ZLIB=\$G4LIB_USE_ZLIB"
681fi
682fi 
683
684
685#+
686#
687# g4shared
688#
689if [ X$g4lib_build_shared = Xy ] ; then
690G4LIB_BUILD_SHARED=1
691export G4LIB_BUILD_SHARED
692if [ X\$g4non_display = X ] ; then
693echo "On this machine the G4LIB_BUILD_SHARED=\$G4LIB_BUILD_SHARED"
694fi
695fi 
696
697if [ X$g4lib_build_static = Xy ] ; then
698G4LIB_BUILD_STATIC=1
699export G4LIB_BUILD_STATIC
700if [ X\$g4non_display = X ] ; then
701echo "On this machine the G4LIB_BUILD_STATIC=\$G4LIB_BUILD_STATIC"
702fi
703fi 
704
705#+
706#
707# g4granular
708#
709if [ X$g4lib_use_granular = Xy ] ; then
710G4LIB_USE_GRANULAR=1
711export G4LIB_USE_GRANULAR
712if [ X\$g4non_display = X ] ; then
713echo "On this machine the G4LIB_USE_GRANULAR=\$G4LIB_USE_GRANULAR"
714fi
715fi 
716
717# Check for Windows!
718if test "X\$G4SYSTEM" != "XWIN32-VC" -a "X\$G4SYSTEM" != "XWIN32-VC7"; then
719#+
720#
721# UI_USE_TCSH for Unix
722#
723G4UI_USE_TCSH=1
724export G4UI_USE_TCSH
725if [ X\$g4non_display = X ] ; then
726echo "On this machine the G4UI_USE_TCSH=\$G4UI_USE_TCSH"
727fi 
728fi
729
730#####################################################################
731
732!GROK!THIS!
733
734: In the following dollars and backticks do not need the extra backslash.
735$spitshell >>env.sh <<'!NO!SUBS!'
736
737
738#+
739#
740# G4WORKDIR
741#
742if [ $G4WORKDIR ] ; then
743
744if [ X\$g4non_display = X ] ; then
745echo "In your environment you have the G4WORKDIR=$G4WORKDIR"
746fi
747
748else
749
750# Check for Windows!
751if test "X$G4SYSTEM" = "XWIN32-VC" -o "X$G4SYSTEM" = "XWIN32-VC7"; then
752
753if [ X\$g4non_display = X ] ; then
754echo "G4WORKDIR will be set to c:/geant4 (in "native" Windows syntax)"
755fi
756
757G4WORKDIR="c:/geant4"
758export G4WORKDIR
759
760else # if Unix
761
762if [ X\$g4non_display = X ] ; then
763echo "G4WORKDIR will be set to HOME/geant4=$HOME/geant4"
764fi
765
766G4WORKDIR=$HOME/geant4
767export G4WORKDIR
768
769fi # if platforms
770
771fi
772
773
774
775
776#
777# Shared libraries
778#
779if [ $G4LIB_BUILD_SHARED ] ; then
780#
781# Warning about LD_LIBRARY_PATH unless g4non_display is set!
782#
783if test "x\$g4non_display" = "x" ; then
784    echo ''
785    echo 'LD_LIBRARY_PATH is set to include CLHEP and Geant4 libraries. '
786    echo ''
787    echo 'NOTE : verify that the correct path for the CLHEP library'
788    echo '- $CLHEP_BASE_DIR/lib - is included in the $LD_LIBRARY_PATH'
789    echo 'variable in your environment, and no other outdated installations'
790    echo 'of CLHEP are by chance referenced through $LD_LIBRARY_PATH and'
791    echo 'present in your system !'
792    echo ''
793fi
794
795if [ $LD_LIBRARY_PATH ] ; then
796LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${G4LIB}/${G4SYSTEM}
797LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
798
799if [ $G4LIB_BUILD_GDML ] ; then
800   LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${XERCESCROOT}/lib
801fi
802export LD_LIBRARY_PATH
803
804else
805LD_LIBRARY_PATH=${G4LIB}/${G4SYSTEM}
806LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
807
808if [ $G4LIB_BUILD_GDML ] ; then
809   LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${XERCESCROOT}/lib
810fi
811
812export LD_LIBRARY_PATH
813fi
814fi
815
816#
817# Shared libraries for Mac
818#
819if test "X$G4SYSTEM" = "XDarwin-g++" ; then
820
821if [ $G4LIB_BUILD_SHARED ] ; then
822if [ $DYLD_LIBRARY_PATH ] ; then
823DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${G4LIB}/${G4SYSTEM}
824DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
825
826if [ $G4LIB_BUILD_GDML ] ; then
827   DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${XERCESCROOT}/lib
828fi
829
830export DYLD_LIBRARY_PATH
831else
832DYLD_LIBRARY_PATH=${G4LIB}/${G4SYSTEM}
833DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
834
835if [ $G4LIB_BUILD_GDML ] ; then
836   DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${XERCESCROOT}/lib
837fi
838
839export DYLD_LIBRARY_PATH
840fi
841fi
842
843fi
844
845#
846# For BIN
847#
848PATH=${PATH}:${G4WORKDIR}/bin/${G4SYSTEM}
849export PATH
850
851!NO!SUBS!
852chmod 755 env.sh
853$eunicefix env.sh
Note: See TracBrowser for help on using the repository browser.