source: trunk/config/scripts/env.csh.SH@ 1358

Last change on this file since 1358 was 1349, checked in by garnier, 15 years ago

update

  • Property svn:executable set to *
File size: 16.6 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.csh (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.csh <<!GROK!THIS!
25######################################
26#
27# Clean all G4 envs
28unsetenv CLHEP_BASE_DIR
29unsetenv CLHEP_INCLUDE_DIR
30unsetenv CLHEP_LIB
31unsetenv CLHEP_LIB_DIR
32
33unsetenv G4DEBUG
34unsetenv G4INCLUDE
35unsetenv G4INSTALL
36
37unsetenv G4LEDATA
38unsetenv G4LEVELGAMMADATA
39unsetenv G4NEUTRONHPDATA
40unsetenv G4RADIOACTIVEDATA
41unsetenv G4ABLADATA
42unsetenv G4REALSURFACEDATA
43unsetenv G4NEUTRONXSDATA
44unsetenv G4PIIDATA
45
46unsetenv G4LIB
47unsetenv G4LIB_BUILD_G3TOG4
48unsetenv G4LIB_BUILD_SHARED
49unsetenv G4LIB_BUILD_STATIC
50unsetenv G4LIB_BUILD_ZLIB
51unsetenv G4LIB_BUILD_GDML
52unsetenv G4LIB_USE_G3TOG4
53unsetenv G4LIB_USE_GRANULAR
54unsetenv G4LIB_USE_ZLIB
55
56unsetenv G4SYSTEM
57
58unsetenv G4UI_NONE
59unsetenv G4UI_BUILD_WIN32_SESSION
60unsetenv G4UI_BUILD_XAW_SESSION
61unsetenv G4UI_BUILD_XM_SESSION
62unsetenv G4UI_USE_TCSH
63unsetenv G4UI_USE_WIN32
64unsetenv G4UI_USE_XAW
65unsetenv G4UI_USE_XM
66unsetenv G4UI_USE_QT
67
68unsetenv G4VIS_NONE
69unsetenv G4VIS_BUILD_DAWN_DRIVER
70unsetenv G4VIS_BUILD_OIWIN32_DRIVER
71unsetenv G4VIS_BUILD_OIX_DRIVER
72unsetenv G4VIS_BUILD_OPENGLWIN32_DRIVER
73unsetenv G4VIS_BUILD_OPENGLXM_DRIVER
74unsetenv G4VIS_BUILD_OPENGLX_DRIVER
75unsetenv G4VIS_BUILD_RAYTRACERX_DRIVER
76unsetenv G4VIS_BUILD_VRML_DRIVER
77unsetenv G4VIS_BUILD_OPENGLQT_DRIVER
78
79unsetenv G4VIS_USE_DAWN
80unsetenv G4VIS_USE_OIWIN32
81unsetenv G4VIS_USE_OIX
82unsetenv G4VIS_USE_OPENGLWIN32
83unsetenv G4VIS_USE_OPENGLX
84unsetenv G4VIS_USE_OPENGLXM
85unsetenv G4VIS_USE_RAYTRACERX
86unsetenv G4VIS_USE_VRML
87unsetenv G4VIS_USE_OPENGLQT
88
89######################################
90#
91# g4system.U
92#
93#+
94setenv G4SYSTEM "$g4system"
95echo "On this machine the G4SYSTEM=\$G4SYSTEM"
96
97#
98# g4dirs.U
99#
100#+
101if ( X$g4install != X$g4final_install ) then
102 setenv G4INSTALL "$g4final_install/src/geant4"
103 echo "On this machine the G4INSTALL=\$G4INSTALL"
104else
105 setenv G4INSTALL "$g4install"
106 echo "On this machine the G4INSTALL=\$G4INSTALL"
107endif
108
109#+
110if ( X$g4includes_flag != Xn ) then
111 if ( X$g4install != X$g4final_install ) then
112 setenv G4INCLUDE "$g4final_install/include/geant4"
113 else
114 setenv G4INCLUDE "$g4final_install/include"
115 endif
116
117 echo "On this machine the G4INCLUDE=\$G4INCLUDE"
118endif
119
120#+
121if ( X$g4lib != X ) then
122 if ( X$g4install != X$g4final_install ) then
123 setenv G4LIB "$g4final_install/lib/geant4"
124 else
125 setenv G4LIB "$g4final_install/lib"
126 endif
127
128 echo "On this machine the G4LIB=\$G4LIB"
129endif
130
131#+
132if ( X$g4levelgammadata != X ) then
133 setenv G4LEVELGAMMADATA "$g4levelgammadata"
134 echo "On this machine the G4LEVELGAMMADATA=\$G4LEVELGAMMADATA"
135endif
136
137#+
138if ( X$g4radioactivedata != X ) then
139 setenv G4RADIOACTIVEDATA "$g4radioactivedata"
140 echo "On this machine the G4RADIOACTIVEDATA=\$G4RADIOACTIVEDATA"
141endif
142
143#+
144if ( X$g4ledata != X ) then
145 setenv G4LEDATA "$g4ledata"
146 echo "On this machine the G4LEDATA=\$G4LEDATA"
147endif
148
149#+
150if ( X$g4neutronhpcrosssections != X ) then
151 setenv G4NEUTRONHPDATA "$g4neutronhpcrosssections"
152 echo "On this machine the G4NEUTRONHPDATA=\$G4NEUTRONHPDATA"
153endif
154
155#+
156if ( X$g4abladata != X ) then
157 setenv G4ABLADATA "$g4abladata"
158 echo "On this machine the G4ABLADATA=\$G4ABLADATA"
159endif
160
161#+
162if ( X$g4realsurfacedata != X ) then
163 setenv G4REALSURFACEDATA "$g4realsurfacedata"
164 echo "On this machine the G4REALSURFACEDATA=\$G4REALSURFACEDATA"
165endif
166
167#+
168if ( X$g4neutronxsdata != X ) then
169 setenv G4NEUTRONXSDATA "$g4neutronxsdata"
170 echo "On this machine the G4NEUTRONXSDATA=\$G4NEUTRONXSDATA"
171endif
172
173#+
174if ( X$g4piidata != X ) then
175 setenv G4PIIDATA "$g4piidata"
176 echo "On this machine the G4PIIDATA=\$G4PIIDATA"
177endif
178
179
180
181#
182# g4clhep.U
183#
184if ( X$g4clhep_base_dir != X ) then
185 setenv CLHEP_BASE_DIR "$g4clhep_base_dir"
186 echo "On this machine the CLHEP_BASE_DIR=\$CLHEP_BASE_DIR"
187endif
188
189#+
190if ( X$g4clhep_include_dir != X ) then
191 setenv CLHEP_INCLUDE_DIR "$g4clhep_include_dir"
192 echo "On this machine the CLHEP_INCLUDE_DIR=\$CLHEP_INCLUDE_DIR"
193endif
194
195#+
196if ( X$g4clhep_lib_dir != X ) then
197 setenv CLHEP_LIB_DIR "$g4clhep_lib_dir"
198 echo "On this machine the CLHEP_LIB_DIR=\$CLHEP_LIB_DIR"
199endif
200
201#+
202if ( X$g4clhep_lib != X ) then
203 setenv CLHEP_LIB "$g4clhep_lib"
204 echo "On this machine the CLHEP_LIB=\$CLHEP_LIB"
205endif
206
207#+
208#
209# g4debug
210#
211if ( X$g4debug == Xy ) then
212 setenv G4DEBUG 1
213 echo "On this machine the G4DEBUG=\$G4DEBUG"
214endif
215
216
217#
218# g4ui
219#
220#+
221if ( X$g4ui_none == Xy ) then
222 setenv G4UI_NONE 1
223 echo "On this machine G4UI_NONE is set, so no user interfaces are available"
224endif
225
226# Check for Windows!
227if ( "X\$G4SYSTEM" != "XWIN32-VC" && "X\$G4SYSTEM" != "XWIN32-VC7" ) then
228 if ( X$g4ui_none != Xy ) then
229 setenv G4UI_USE_TCSH 1
230 echo "On this machine the G4UI_USE_TCSH=\$G4UI_USE_TCSH"
231 endif
232endif
233
234#+
235if ( X$g4ui_build_xaw_session == Xy ) then
236 setenv G4UI_BUILD_XAW_SESSION 1
237 echo "On this machine the G4UI_BUILD_XAW_SESSION=\$G4UI_BUILD_XAW_SESSION"
238endif
239
240#+
241if ( X$g4ui_use_xaw == Xy ) then
242 setenv G4UI_USE_XAW 1
243 echo "On this machine the G4UI_USE_XAW=\$G4UI_USE_XAW"
244endif
245
246#+
247if ( X$g4ui_build_xm_session == Xy ) then
248 setenv G4UI_BUILD_XM_SESSION 1
249 echo "On this machine the G4UI_BUILD_XM_SESSION=\$G4UI_BUILD_XM_SESSION"
250endif
251
252#+
253if ( X$g4ui_use_xm == Xy ) then
254 setenv G4UI_USE_XM 1
255 echo "On this machine the G4UI_USE_XM=\$G4UI_USE_XM"
256endif
257
258#+
259if ( X$g4ui_build_win32_session == Xy ) then
260 setenv G4UI_BUILD_WIN32_SESSION 1
261 echo "On this machine the G4UI_BUILD_WIN32_SESSION=\$G4UI_BUILD_WIN32_SESSION"
262endif
263
264#+
265if ( X$g4ui_use_win32 == Xy ) then
266 setenv G4UI_USE_WIN32 1
267 echo "On this machine the G4UI_USE_WIN32=\$G4UI_USE_WIN32"
268endif
269
270#+
271if ( X$g4ui_build_qt_session == Xy ) then
272 setenv G4UI_BUILD_QT_SESSION 1
273 echo "On this machine the G4UI_BUILD_QT_SESSION=\$G4UI_BUILD_QT_SESSION"
274endif
275
276#+
277if ( X$g4ui_use_qt == Xy ) then
278 setenv G4UI_USE_QT 1
279 echo "On this machine the G4UI_USE_QT=\$G4UI_USE_QT"
280endif
281
282
283
284#
285# g4vis
286#
287#+
288if ( X$g4vis_none == Xy ) then
289 setenv G4VIS_NONE 1
290 echo "On this machine G4VIS_NONE is set, so no vis drivers are available"
291endif
292
293#+
294if ( X$g4vis_build_dawn_driver == Xy ) then
295 setenv G4VIS_BUILD_DAWN_DRIVER 1
296 echo "On this machine the G4VIS_BUILD_DAWN_DRIVER=\$G4VIS_BUILD_DAWN_DRIVER"
297endif
298
299#+
300if ( X$g4vis_build_openglx_driver == Xy ) then
301 setenv G4VIS_BUILD_OPENGLX_DRIVER 1
302 echo "On this machine the G4VIS_BUILD_OPENGLX_DRIVER=\$G4VIS_BUILD_OPENGLX_DRIVER"
303endif
304
305#+
306if ( X$g4vis_build_openglxm_driver == Xy ) then
307 setenv G4VIS_BUILD_OPENGLXM_DRIVER 1
308 echo "On this machine the G4VIS_BUILD_OPENGLXM_DRIVER=\$G4VIS_BUILD_OPENGLXM_DRIVER"
309endif
310
311#+
312if ( X$g4vis_build_openglwin32_driver == Xy ) then
313 setenv G4VIS_BUILD_OPENGLWIN32_DRIVER 1
314 echo "On this machine the G4VIS_BUILD_OPENGLWIN32_DRIVER=\$G4VIS_BUILD_OPENGLWIN32_DRIVER"
315endif
316
317#+
318if ( X$g4vis_build_oix_driver == Xy ) then
319 setenv G4VIS_BUILD_OIX_DRIVER 1
320 echo "On this machine the G4VIS_BUILD_OIX_DRIVER=\$G4VIS_BUILD_OIX_DRIVER"
321endif
322
323#+
324if ( X$g4vis_build_raytracerx_driver == Xy ) then
325 setenv G4VIS_BUILD_RAYTRACERX_DRIVER 1
326 echo "On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=\$G4VIS_BUILD_RAYTRACERX_DRIVER"
327endif
328
329#+
330if ( X$g4vis_build_oiwin32_driver == Xy ) then
331 setenv G4VIS_BUILD_OIWIN32_DRIVER 1
332 echo "On this machine the G4VIS_BUILD_OIWIN32_DRIVER=\$G4VIS_BUILD_OIWIN32_DRIVER"
333endif
334
335#+
336if ( X$g4vis_build_vrml_driver == Xy ) then
337 setenv G4VIS_BUILD_VRML_DRIVER 1
338 echo "On this machine the G4VIS_BUILD_VRML_DRIVER=\$G4VIS_BUILD_VRML_DRIVER"
339endif
340
341#+
342if ( X$g4vis_build_openglqt_driver == Xy ) then
343 setenv G4VIS_BUILD_OPENGLQT_DRIVER 1
344 echo "On this machine the G4VIS_BUILD_OPENGLQT_DRIVER=\$G4VIS_BUILD_OPENGLQT_DRIVER"
345endif
346
347
348#+
349if ( X$g4vis_use_dawn == Xy ) then
350 setenv G4VIS_USE_DAWN 1
351 echo "On this machine the G4VIS_USE_DAWN=\$G4VIS_USE_DAWN"
352endif
353
354#+
355if ( X$g4vis_use_openglx == Xy ) then
356 setenv G4VIS_USE_OPENGLX 1
357 echo "On this machine the G4VIS_USE_OPENGLX=\$G4VIS_USE_OPENGLX"
358endif
359
360#+
361if ( X$g4vis_use_openglxm == Xy ) then
362 setenv G4VIS_USE_OPENGLXM 1
363 echo "On this machine the G4VIS_USE_OPENGLXM=\$G4VIS_USE_OPENGLXM"
364endif
365
366#+
367if ( X$g4vis_use_openglwin32 == Xy ) then
368 setenv G4VIS_USE_OPENGLWIN32 1
369 echo "On this machine the G4VIS_USE_OPENGLWIN32=\$G4VIS_USE_OPENGLWIN32"
370endif
371
372#+
373if ( X$g4vis_use_oix == Xy ) then
374 setenv G4VIS_USE_OIX 1
375 echo "On this machine the G4VIS_USE_OIX=\$G4VIS_USE_OIX"
376endif
377
378#+
379if ( X$g4vis_use_raytracerx == Xy ) then
380 setenv G4VIS_USE_RAYTRACERX 1
381 echo "On this machine the G4VIS_USE_RAYTRACERX=\$G4VIS_USE_RAYTRACERX"
382endif
383
384#+
385if ( X$g4vis_use_oiwin32 == Xy ) then
386 setenv G4VIS_USE_OIWIN32 1
387 echo "On this machine the G4VIS_USE_OIWIN32=\$G4VIS_USE_OIWIN32"
388endif
389
390#+
391if ( X$g4vis_use_vrml == Xy ) then
392 setenv G4VIS_USE_VRML 1
393 echo "On this machine the G4VIS_USE_VRML=\$G4VIS_USE_VRML"
394endif
395
396#+
397if ( X$g4vis_use_openglqt == Xy ) then
398 setenv G4VIS_USE_OPENGLQT 1
399 echo "On this machine the G4VIS_USE_OPENGLQT=\$G4VIS_USE_OPENGLQT"
400endif
401
402#+
403if ( X$g4vis_oglhome != X ) then
404 setenv OGLHOME "$g4vis_oglhome"
405 echo "On this machine the OGLHOME=\$OGLHOME"
406endif
407
408#+
409if ( X$g4vis_oivhome != X ) then
410 setenv OIVHOME "$g4vis_oivhome"
411 echo "On this machine the OIVHOME=\$OIVHOME"
412endif
413
414
415#+
416if ( X$g4vis_build_openglxm_driver != X ) then
417 setenv XMFLAGS "$g4vis_xmflags"
418 echo "On this machine the XMFLAGS=\$XMFLAGS"
419endif
420
421#+
422if ( X$g4vis_build_openglxm_driver != X ) then
423 setenv XMLIBS "$g4vis_xmlibs"
424 echo "On this machine the XMLIBS=\$XMLIBS"
425endif
426
427#+
428if ( X$g4ui_build_xm_session != X ) then
429 setenv XMFLAGS "$g4vis_xmflags"
430 echo "On this machine the XMFLAGS=\$XMFLAGS"
431endif
432
433#+
434if ( X$g4ui_build_xm_session != X ) then
435 setenv XMLIBS "$g4vis_xmlibs"
436 echo "On this machine the XMLIBS=\$XMLIBS"
437endif
438
439#+
440if ( X$g4ui_build_xaw_session != X ) then
441 setenv XAWFLAGS "$g4ui_xawflags"
442 echo "On this machine the XAWFLAGS=\$XAWFLAGS"
443endif
444
445#+
446if ( X$g4ui_build_xaw_session != X ) then
447setenv XAWLIBS "$g4ui_xawlibs"
448echo "On this machine the XAWLIBS=\$XAWLIBS"
449endif
450
451
452#
453# Qt Flags and Libs, messy, but needed for backward compatibility
454#+
455if ( "X$g4ui_build_qt_session" == "Xy" || "X$g4ui_use_qt" == "Xy" ) then
456 setenv QTFLAGS "$g4_qt_cxxflags"
457 setenv QTLIBS "$g4_qt_libs"
458 setenv QTMOC "$g4_qt_moc"
459 echo "On this machine the QTFLAGS=\$QTFLAGS"
460 echo "On this machine the QTLIBS=\$QTLIBS"
461 echo "On this machine the QTMOC=\$QTMOC"
462endif
463
464if ( "X$g4vis_build_openglqt_driver" == "Xy" || "X$g4vis_build_openglqt_driver" == "Xy" ) then
465 if ( "X\$QTFLAGS" == "X" ) then
466 setenv QTFLAGS "$g4_qt_cxxflags $g4_qt_gl_cxxflags"
467 else
468 setenv QTFLAGS "\$QTFLAGS $g4_qt_gl_cxxflags"
469 endif
470
471 if ( "X\$QTMOC" == "X" ) then
472 setenv QTMOC "$g4_qt_moc"
473 endif
474
475 setenv GLQTLIBS "$g4_qt_libs $g4_qt_gl_libs"
476 echo "On this machine the QTFLAGS=\$QTFLAGS"
477 echo "On this machine the GLQTLIBS=\$GLQTLIBS"
478 echo "On this machine the QTMOC=\$QTMOC"
479endif
480
481
482
483
484
485#
486# Use GDML module
487#
488#+
489if ( X$g4lib_build_gdml == Xy ) then
490 setenv G4LIB_BUILD_GDML 1
491 echo "On this machine the G4LIB_BUILD_GDML=\$G4LIB_BUILD_GDML"
492endif
493
494if ( X$g4lib_build_gdml == Xy ) then
495 setenv XERCESCROOT "$g4gdml_xercesc_root"
496 echo "On this machine the XERCESCROOT=\$XERCESCROOT"
497endif
498
499
500
501
502#
503# Use G3TOG4 module
504#
505#+
506if ( X$g4wlib_build_g3tog4 == Xy ) then
507 setenv G4LIB_BUILD_G3TOG4 1
508 echo "On this machine the G4LIB_BUILD_G3TOG4=\$G4LIB_BUILD_G3TOG4"
509endif
510
511if ( X$g4w_use_g3tog4 == Xy ) then
512 setenv G4LIB_USE_G3TOG4 1
513 echo "On this machine the G4LIB_USE_G3TOG4=\$G4LIB_USE_G3TOG4"
514endif
515
516
517#
518# Use ZLIB module
519#
520#+
521if ( X$g4wlib_build_zlib == Xy ) then
522 setenv G4LIB_BUILD_ZLIB 1
523 echo "On this machine the G4LIB_BUILD_ZLIB=\$G4LIB_BUILD_ZLIB"
524endif
525
526if ( X$g4w_use_ZLIB == Xy ) then
527 setenv G4LIB_USE_ZLIB 1
528 echo "On this machine the G4LIB_USE_ZLIB=\$G4LIB_USE_ZLIB"
529endif
530
531#+
532#
533# g4shared
534#
535if ( X$g4lib_build_shared == Xy ) then
536 setenv G4LIB_BUILD_SHARED 1
537 echo "On this machine the G4LIB_BUILD_SHARED=\$G4LIB_BUILD_SHARED"
538endif
539
540if ( X$g4lib_build_static == Xy ) then
541 setenv G4LIB_BUILD_STATIC 1
542 echo "On this machine the G4LIB_BUILD_STATIC=\$G4LIB_BUILD_STATIC"
543endif
544
545#+
546#
547# g4granular
548#
549if ( X$g4lib_use_granular == Xy ) then
550 setenv G4LIB_USE_GRANULAR 1
551 echo "On this machine the G4LIB_USE_GRANULAR=\$G4LIB_USE_GRANULAR"
552endif
553
554#####################################################################
555
556!GROK!THIS!
557
558: In the following dollars and backticks do not need the extra backslash.
559$spitshell >>env.csh <<'!NO!SUBS!'
560
561
562#+
563#
564# G4WORKDIR
565#
566if ( ${?G4WORKDIR} ) then
567 echo "In your environment you have the G4WORKDIR=$G4WORKDIR"
568else
569 # Check for Windows!
570 if ( "X$G4SYSTEM" == "XWIN32-VC" || "X$G4SYSTEM" == "XWIN32-VC7" ) then
571 echo "G4WORKDIR will be set to c:/geant4 (in "native" Windows syntax)."
572 setenv G4WORKDIR "c:/geant4"
573 else # if Unix
574 echo "G4WORKDIR will be set to HOME/geant4=$HOME/geant4"
575 setenv G4WORKDIR $HOME/geant4
576 endif
577endif
578
579#
580# *NIX Shared Libraries
581# If we built Geant4 with shared libraries, we need to add the Gean4
582# library directory to (DY)LD_LIBRARY_PATH.
583# In all cases, external shared library directories should be added to
584# (DY)LD_LIBRARY_PATH
585
586if ( "X$G4SYSTEM" != "XDarwin-g++" ) then
587 if ( ${?LD_LIBRARY_PATH} ) then
588 if ( ${?G4LIB_BUILD_SHARED} ) then
589 setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${G4LIB}/${G4SYSTEM}
590 endif
591
592 setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
593
594 if ( ${?G4LIB_BUILD_GDML} ) then
595 setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${XERCESCROOT}/lib
596 endif
597
598 else
599 if ( ${?G4LIB_BUILD_SHARED} ) then
600 setenv LD_LIBRARY_PATH ${G4LIB}/${G4SYSTEM}
601 setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
602 else
603 setenv LD_LIBRARY_PATH ${CLHEP_LIB_DIR}
604 endif
605
606 if ( ${?G4LIB_BUILD_GDML} ) then
607 setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${XERCESCROOT}/lib
608 endif
609 endif
610else
611 #
612 # Darwin Shared Libraries
613 # we repeat the above logic, but for DYLD_LIBRARY_PATH
614 #
615 if ( ${?DYLD_LIBRARY_PATH} ) then
616 if ( ${?G4LIB_BUILD_SHARED} ) then
617 setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${G4LIB}/${G4SYSTEM}
618 endif
619
620 setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
621
622 if ( ${?G4LIB_BUILD_GDML} ) then
623 setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${XERCESCROOT}/lib
624 endif
625 else
626 if ( ${?G4LIB_BUILD_SHARED} ) then
627 setenv DYLD_LIBRARY_PATH ${G4LIB}/${G4SYSTEM}
628 setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
629 else
630 setenv DYLD_LIBRARY_PATH ${CLHEP_LIB_DIR}
631 endif
632
633 if ( ${?G4LIB_BUILD_GDML} ) then
634 setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${XERCESCROOT}/lib
635 endif
636 endif
637endif
638
639
640#
641# Warning about LD_LIBRARY_PATH
642#
643echo ''
644if ( ${?G4LIB_BUILD_SHARED} ) then
645 if ( "X$G4SYSTEM" == "XDarwin-g++" ) then
646 echo 'DYLD_LIBRARY_PATH is set to include CLHEP and Geant4 libraries. '
647 else
648 echo 'LD_LIBRARY_PATH is set to include CLHEP and Geant4 libraries. '
649 endif
650else
651 if ( "X$G4SYSTEM" == "XDarwin-g++" ) then
652 echo 'DYLD_LIBRARY_PATH is set to include CLHEP libraries. '
653 else
654 echo 'LD_LIBRARY_PATH is set to include CLHEP libraries. '
655 endif
656endif
657echo 'NOTE : you should verify that the correct path for the CLHEP library'
658echo ''
659echo ${CLHEP_BASE_DIR}/lib
660echo ''
661echo 'is included in the dynamic library search path ahead of any other'
662echo 'installations of CLHEP on your system that may be referenced by this'
663echo 'path.'
664echo ''
665
666#
667# For BIN
668#
669setenv PATH ${PATH}:${G4WORKDIR}/bin/${G4SYSTEM}
670
671!NO!SUBS!
672chmod 755 env.csh
673$eunicefix env.csh
Note: See TracBrowser for help on using the repository browser.