source: Sophya/trunk/SophyaLib/BuildMgr/configure@ 3815

Last change on this file since 3815 was 3753, checked in by ansari, 16 years ago

Ajout flag -ldble128 au script configure pour gestion du flag de compilation SO_LDBLE128 pour float 128 bits, Reza 03/03/2010

  • Property svn:executable set to *
File size: 17.6 KB
RevLine 
[2720]1#!/bin/csh
2# SOPHYA configuration managment script
3# C. Magneville / R. Ansari - Mai 2005
[3357]4# Updated : 2006, Avr/Mai , Oct 2007
[2720]5# Exemple: ./configure -sbase /laltmp/ansari/sbase/ -scxx cxx -extp /exp/planck/ExtLibs/Include/ \
6# -extp /exp/planck/ExtLibs/OSF1-cxx/
7
[2724]8#----------------------------------------------------------------------
9#### liste des modules
[2910]10set SOPMODOK = ( 1 1 1 1 1 1 1 1 1 )
[2720]11set SOPMOD = ( BaseTools SysTools SUtils TArray NTools HiStats SkyMap Samba SkyT )
[2910]12set ALLSOPLIBS = ( '-lBaseTools' '-lSysTools' '-lSUtils' '-lTArray' '-lNTools' '-lHiStats' '-lSkyMap' '-lSamba' '-lSkyT' )
13
14set SOPPIOK = ( 1 1 1 )
[2720]15set SOPPI = ( PI PIext PIGcont )
[2910]16set ALLPILIBS = ( '-lPI' '-lPIext' '-lPIGcont' )
[2720]17
[3180]18set SOPEXT = ( FitsIOServer IFFTW LinAlg XAstroPack )
19set EXTCURNAME = ( fits fftw lapack astro )
20set SOPEXTOK = ( 1 1 1 1 )
21set EXTINCNAME = ( FitsIO/fitsio.h FFTW/fftw3.h PASDEINC XAstro/astro.h )
22set EXTLIBNAME = ( libcfitsio.a libfftw3.a liblapack.a libxastro.a )
23set ALLEXTLIBS = ( '-lcfitsio' '-lfftw3' '-llapack -lblas' '-lxastro' )
[2720]24
[3180]25#FFTW2: set EXTINCNAME = ( FitsIO/fitsio.h FFTW/fftw.h PASDEINC XAstro/astro.h )
26#FFTW2: set EXTLIBNAME = ( libcfitsio.a libfftw.a liblapack.a libxastro.a )
27#FFTW2: set ALLEXTLIBS = ( '-lcfitsio' '-lfftw -lrfftw' '-llapack -lblas' '-lxastro' )
[2720]28
[3001]29set defextinc = ( /usr/include /usr/local/include )
30set defextlib = ( /usr/lib /usr/local/lib )
[2724]31
[3001]32
[2724]33#----------------------------------------------------------------------
34#### Decodage arguments
[2720]35set cmdline = "$0 $*"
36set extpath
[2724]37set extpathinc
38set extpathlib
[2720]39unset incln
40unset mincname
[3210]41set compopt
[3202]42unset arch64
43unset sasz64
[3753]44unset ssldble128
[3202]45unset nofpic
[3210]46unset nothsafe
[3202]47unset boundcheck
48unset sodebug
[3001]49unset usefftw2
50unset uselapack2
[3357]51unset alsofftwfloat
[3210]52unset slballinone
[2720]53while ( $#argv > 0 )
54
55if( "$1" == "-h" ) then
[3210]56 echo 'configure [-sbase SOPHYABASE] [-scxx SOPHYACXX] [-incln] '
57 echo " [-minc mymake.inc] [-compopt 'cc/cxxOptions'] "
[3753]58 echo ' [-arch64] [-sasz64] [-ldble128] [-nofpic] [-nothsafe] [-boundcheck] [-sodebug]'
[2724]59 echo ' [-extp dir1 -extp dir2 ...] [-extip dir1 -extip dir2 ... ] [-extlp dir1 -extlp dir2 ... ]'
[3210]60 echo ' [-noextlib] [-noext fits] [-noext fftw] [-noext lapack] [-noext astro]'
61 echo ' [-noPI] [-slballinone]'
[3357]62 echo ' [-alsofftwfloat] [-usefftw2] [-uselapack2] '
[3210]63 echo ' (See SOPHYA manual/web pages for a detailed description of configure options)'
[2720]64 exit -1
65endif
66if( "$1" == "-sbase" ) then
67 setenv SOPHYABASE $2
68 shift
69endif
70if( "$1" == "-scxx" ) then
71 setenv SOPHYACXX $2
72 shift
73endif
74if( "$1" == "-incln" ) then
75 set incln
76endif
[2724]77if( "$1" == "-minc" ) then
78 set mincname = ( $2 )
79 shift
80endif
[3210]81if( "$1" == "-compopt" ) then
[3223]82 set compopt = ( $2 )
[3210]83 shift
84endif
[2720]85if( "$1" == "-extp" ) then
86 set extpath = ( $extpath $2 )
87 shift
88endif
[2724]89if( "$1" == "-extip" ) then
90 set extpathinc = ( $extpathinc $2 )
[2720]91 shift
92endif
[2724]93if( "$1" == "-extlp" ) then
94 set extpathlib = ( $extpathlib $2 )
95 shift
96endif
[2739]97if( "$1" == "-noextlib" ) then
98 set i = 0
99 while ( $i < $#SOPEXTOK )
100 @ i += 1
101 set SOPEXTOK[$i] = 0
102 end
103endif
[2724]104if( "$1" == "-noext" ) then
105 set i = 0
106 while ( $i < $#EXTCURNAME )
107 @ i += 1
108 if( "$2" == "$EXTCURNAME[$i]" ) set SOPEXTOK[$i] = 0
109 end
110 shift
111endif
[3210]112if( "$1" == "-PI" ) then
113 set SOPPIOK = ( 0 0 0 )
114endif
[3357]115if( "$1" == "-alsofftwfloat" ) then
116# On veut la version float de FFTW, en plus de double
117 set alsofftwfloat
118 set i = 0
119 while ( $i < $#EXTCURNAME )
120 @ i += 1
121 if( "fftw" == "$EXTCURNAME[$i]" ) then
122 set ALLEXTLIBS[$i] = '-lfftw3 -lfftw3f'
123 endif
124 end
125endif
[3001]126if( "$1" == "-usefftw2" ) then
127# version FFTW 2 au lieu de V3
128 set usefftw2
129 set i = 0
130 while ( $i < $#EXTCURNAME )
131 @ i += 1
132 if( "fftw" == "$EXTCURNAME[$i]" ) then
133 set EXTINCNAME[$i] = 'FFTW/fftw.h'
134 set EXTLIBNAME[$i] = 'libfftw.a'
135 set ALLEXTLIBS[$i] = '-lfftw -lrfftw'
136 endif
137 end
138endif
139if( "$1" == "-uselapack2" ) then
140# version LAPACK 2 au lieu de V3
141 set uselapack2
142endif
[3210]143if( "$1" == "-slballinone" ) then
[3001]144# Pour utiliser une seule librairie libsophyaPIext.so au lieu
145# des 3 libsophya.so libextsophya.so libPI.so
[3210]146 set slballinone
[3001]147endif
[3202]148# Decodage options pour flags de machdefs.h
[3753]149# Liste de flags : SO_ARCH64 SO_NOFPIC SO_SASIZET64 SO_LDBLE128 SO_BOUNDCHECKING SOPHYA_DEBUG
[3202]150if( "$1" == "-arch64" ) then
151 set arch64
152endif
153if( "$1" == "-sasz64" ) then
154 set sasz64
155endif
[3753]156if( "$1" == "-ldble128" ) then
157 set ssldble128
158endif
[3202]159if( "$1" == "-nofpic" ) then
160 set nofpic
161endif
[3210]162if( "$1" == "-nothsafe" ) then
163 set nothsafe
164endif
[3202]165if( "$1" == "-boundcheck" ) then
166 set boundcheck
167endif
168if( "$1" == "-sodebug" ) then
169 set sodebug
170endif
[2720]171
[3202]172
[2720]173shift
174end
175
[3398]176## ------ Detection linux 64 bits ---
[3397]177unset linux64
[3398]178if ( `uname` == "Linux" ) then
[3397]179 if ( `uname -m` == "x86_64" ) then
180 echo ' ... Linux x86_64 (64 bits) ---> -arch64 '
181 set linux64
182 set arch64
183 endif
184endif
[2724]185
[3397]186
[2724]187#----------------------------------------------------------------------
188#### Verification generale
[2720]189if( ! $?SOPHYABASE ) then
190 echo ERROR: define SOPHYABASE or use script arguments
191 exit -2
192endif
193if( ! $?SOPHYACXX ) then
194 echo ERROR: define SOPHYACXX or use script arguments
195 echo " SOPHYACXX define the name of the C++ compiler (ex: g++ cxx ...)"
196 exit -2
197endif
198if( ! $?TMPDIR ) setenv TMPDIR /tmp
199touch $TMPDIR/tmp_test
200if( $status != 0 ) then
201 echo ERROR: no write acces in temporary directory: $TMPDIR
202 echo '----> define TMPDIR environment variable: "setenv TMPDIR ..."'
203 exit -2
204endif
[2724]205rm -f $TMPDIR/tmp_test
[2720]206if( ! $?mincname ) then
207 set mincname = `uname`_${SOPHYACXX}_make.inc
208endif
209if( ! -e $mincname ) then
210 echo ERROR: file $mincname NOT found
211 exit -2
212endif
213if( ! -e ../BaseTools/machdefs_mkmf.h ) then
214 echo ERROR: file machdefs_mkmf.h NOT found in BaseTools
215 exit -2
216endif
[2724]217echo SOPEXTOK: $SOPEXTOK
[2720]218
[2724]219#----------------------------------------------------------------------
220#### creation des variables chemins sophya core
[2720]221echo " "
222echo ">>>>>> 1/ Creating directory tree under $SOPHYABASE "
223set sinc = $SOPHYABASE/include
224set slib = $SOPHYABASE/lib
225set sslb = $SOPHYABASE/slb
226set sobj = $SOPHYABASE/obj
227set sexe = $SOPHYABASE/exe
228set sconf = $sinc/SophyaConfInfo
229foreach d ( $sinc $slib $sslb $sobj $sexe $sconf )
230 if( ! -d $d ) then
231 mkdir $d
232 if( $status ) then
233 echo ERROR: creation of $d failed
234 exit -3
235 endif
236 echo Directory $d created
237 endif
238 touch $d/tmp_test
239 if( $status ) then
240 echo ERROR: no write acces to $d
241 exit -4
242 endif
243 rm -f $d/tmp_test
244end
245
[2724]246
247#----------------------------------------------------------------------
248#### Fichier confinfo - log e configure
[2720]249set conflog = $sconf/conf.log
250rm -f $conflog ; touch $conflog
251echo ' --- Log of SOPHYA configure script - Date= ' `date` >> $conflog
252echo "$cmdline" >> $conflog
253set inclistf = $sconf/include.list
254rm -f $inclistf ; touch $inclistf
255
[2724]256
257#----------------------------------------------------------------------
258#### liens ou copie des *.h
[2720]259echo " "
[3001]260if( $?incln ) then
261 echo ">>>>>> 2/ Creating symbolic link for include files in $sinc "
262else
263 echo ">>>>>> 2/ Copying include files to $sinc "
264endif
265
[2724]266cd ../ > /dev/null
[2720]267set srcd = `pwd`
[2724]268set cpln = "cp -p "
269if( $?incln ) set cpln = "ln -s -f "
[2720]270foreach d ( $SOPMOD $SOPEXT $SOPPI )
[2724]271 if ( -d $srcd/$d ) then
[2726]272 if ( $?incln ) then
273 echo Creating link to include files for module $d
274 else
275 echo Copying include files for module $d
276 endif
277
[2724]278 cd $srcd/$d;
[2720]279 set file = ( *.h )
[2724]280 cd $sinc; if( $status == 0 ) rm -f $file
281 # on vire le .h de $file si .h dans excludeinc du module
282 cd $srcd/$d
283 if( -e excludeinc ) then
284 if( `cat excludeinc | wc -l` > 0 ) then
285 set file
286 foreach f ( *.h )
[2739]287 grep -q "$f:r\.h" excludeinc
[2724]288 if( $status != 0 ) set file = ( $file $f )
289 end
290 endif
[2720]291 endif
[2724]292 # on copie ou link dans $sinc
293 if( `echo $file | wc -w` > 0 ) then
294 foreach f ( $file )
295 $cpln $srcd/$d/$f $sinc/$f
296 end
297 endif
[2720]298 echo $file >> $inclistf
299 endif
300end
[3001]301rm -f $sinc/machdefs_ac.h $sinc/machdefs_mkmf.h
[2724]302cd $srcd/BuildMgr/.
[2720]303
304
[2724]305#----------------------------------------------------------------------
306#### lien des .h des librairies externes
[2720]307echo " "
308echo ">>>>>> 3/ Include files for external libraries "
309set i = 0
310while ( $i < $#SOPEXT )
311 @ i += 1
312 if( "$EXTINCNAME[$i]" == "PASDEINC" ) continue
313 if( $SOPEXTOK[$i] <= 0 ) continue
314 set nom = $EXTINCNAME[$i]:t
315 set rac = $EXTINCNAME[$i]:h
316 if( -d ../$SOPEXT[$i] ) then
317 echo "Searching include file for $SOPEXT[$i] ..."
[2724]318 foreach d ( $extpathinc $extpath $defextinc )
[2772]319 set duminc = `find $d -name $nom -print -follow | head -1 `
[2720]320 set dumrep = $duminc:h
321 if ( "$dumrep" != "" ) then
322 rm -f $sinc/$rac
323 ln -f -s $dumrep $sinc/$rac
324 echo Includes for $SOPEXT[$i] found in $dumrep
325 break
326 endif
327 end
328 if ( "$dumrep" == "" ) then
329 echo WARNING: Includes for $SOPEXT[$i] NOT found
330 echo " Compilation of module $SOPEXT[$i] disabled"
331 set SOPEXTOK[$i] = 0
332 endif
333 endif
334end
335
[2724]336
337#----------------------------------------------------------------------
338#### liens des librairies externes
[2720]339echo " "
[2910]340echo ">>>>>> 4.1/ External libraries "
[2720]341set fpath = $TMPDIR/fpath
342rm -f $fpath; touch $fpath
343set extliblib
344set i = 0
345while ( $i < $#SOPEXT )
346 @ i += 1
347 if( "$EXTLIBNAME[$i]" == "PASDELIB" ) continue
348 if( $SOPEXTOK[$i] <= 0 ) continue
349 set nom = $EXTLIBNAME[$i]
350 if( -d ../$SOPEXT[$i] ) then
351 echo "Searching libraries path for $SOPEXT[$i] ..."
[2724]352 foreach d ( $extpathlib $extpath $defextlib )
[2772]353 set dumlib = `find $d -name $nom -print -follow | head -1 `
[2720]354 if ( "$dumlib" != "" ) then
355 echo "-L$dumlib:h" >> $fpath
356 set extliblib = ( $extliblib $ALLEXTLIBS[$i] )
357 break
358 endif
359 end
360 if ( "$dumlib" == "" ) then
361 echo WARNING: Libraries for $SOPEXT[$i] NOT found
362 echo " Check the generated make.inc file"
363 endif
364 endif
365end
366set extlibpath = `cat $fpath | sort -u`
367echo extlibpath= $extlibpath
368echo extliblib= $extliblib
[2724]369rm -f $fpath
[2720]370
[2724]371
372#----------------------------------------------------------------------
[2910]373#### Identification des librairies archives Sophya
374echo " "
375echo ">>>>>> 4.2/ Sophya libraries archives "
376set sopmodlib
377set i = 0
378while ( $i < $#SOPMOD )
379 @ i += 1
380 if( $SOPMODOK[$i] <= 0 ) continue
381 if( -d ../$SOPMOD[$i] ) then
382 set sopmodlib = ( $sopmodlib $ALLSOPLIBS[$i] )
383 else
384 echo "WARNING: module "$SOPMOD[$i]" not found"
385 endif
386end
387echo sopmodlib= $sopmodlib
388
389echo " "
390echo ">>>>>> 4.3/ PI-Sophya libraries archives "
391set soppilib
392set i = 0
393while ( $i < $#SOPPI )
394 @ i += 1
395 if( $SOPPIOK[$i] <= 0 ) continue
396 if( -d ../$SOPPI[$i] ) then
397 set soppilib = ( $soppilib $ALLPILIBS[$i] )
398 else
399 echo "WARNING: module "$SOPPI[$i]" not found"
400 endif
401end
402echo soppilib= $soppilib
403
404#----------------------------------------------------------------------
[2724]405#### Generation de sophyamake.inc
406# On le cree dans le repertoire temporaire d'abord
[2720]407set mfile = $sinc/sophyamake.inc
[2724]408rm -f $mfile
[2720]409echo " "
[2724]410echo ">>>>>> 5/ Creating $mfile from $mincname "
[2720]411echo "# -----------------------------------------------" > $mfile
412echo "# File make.inc - generated by SOPHYA configure" >> $mfile
413echo "# Date" `date` >> $mfile
414echo "# Seed file : $mincname " >> $mfile
415echo "# -----------------------------------------------" >> $mfile
416echo " " >> $mfile
417echo "# SOPHYA Base installation directory " >> $mfile
418echo "SOPHYABASE = $SOPHYABASE" >> $mfile
419echo " " >> $mfile
420echo 'SOPHYAINCP = $(SOPHYABASE)/include/' >> $mfile
421echo 'SOPHYAOBJP = $(SOPHYABASE)/obj/' >> $mfile
422echo 'SOPHYALIBP = $(SOPHYABASE)/lib/' >> $mfile
423echo 'SOPHYASLBP = $(SOPHYABASE)/slb/' >> $mfile
424echo 'SOPHYAEXEP = $(SOPHYABASE)/exe/' >> $mfile
425
426echo " " >> $mfile
[2910]427echo "# module libraries " >> $mfile
428echo "SOPMODLIBLIST = $sopmodlib" >> $mfile
429
430echo " " >> $mfile
[2720]431echo "# External libraries PATH " >> $mfile
432echo "SOPEXTLIBP = $extlibpath" >> $mfile
433echo "SOPEXTLIBLIST = $extliblib" >> $mfile
434
435echo " " >> $mfile
[2910]436echo "# PI libraries " >> $mfile
437echo "SOPPILIBLIST = $soppilib" >> $mfile
438
439echo " " >> $mfile
[3210]440cat $mincname >> $mfile
[2720]441
[3210]442# --- Gestion des flags modifiants les options de compilation et liste de librairies (par sed)
[3224]443set sname = `uname`
[3670]444set sprgfile = $TMPDIR/compop.scom
445rm -f $sprgfile
[3398]446echo '{' > $sprgfile
[3223]447set scmd = "/FLAGS/s/CNFPHFLF/ $compopt/g"
[3224]448if ( $?arch64 ) then
[3210]449 set a64cf = ' '
[3224]450 if ( ( "$sname" == "IRIX64" ) && ("$SOPHYACXX" == "CC" ) ) set a64cf = '-64'
[3227]451 if ( "$sname" == "AIX" ) then
452 if ( ("$SOPHYACXX" == "xlC" ) || ("$SOPHYACXX" == "xlc" ) ) set a64cf = '-q64'
[3230]453 echo "/ARFLAGS/s/-rcs/-rcs -X 64/" >> $sprgfile
[3227]454 endif
[3223]455 set scmd = "/FLAGS/s/CNFPHFLF/$a64cf $compopt/g"
[3210]456endif
[3398]457echo $scmd >> $sprgfile
[3210]458if ( $?nofpic ) echo "s/-fPIC/ /g" >> $sprgfile
459if( $?slballinone ) then
[3223]460 echo "/SOPHYAALLSLBLIST/s/-lPI -lextsophya -lsophya/-lAsophyaextPI/" >> $sprgfile
461 echo "/SOPHYAEXTSLBLIST/s/-lextsophya -lsophya/-lAsophyaextPI/" >> $sprgfile
[3210]462endif
[3397]463if ( $?linux64 ) then
[3398]464 echo "s?-L/usr/X11R6/lib?-L/usr/X11R6/lib64?g" >> $sprgfile
[3397]465endif
[3398]466echo '}' >> $sprgfile
[3210]467set mftmp = $TMPDIR/sopmake.inc
468cp $mfile $mftmp
[3670]469rm -f $mfile
[3210]470sed -f $sprgfile $mftmp > $mfile
471rm -f $sprgfile $mftmp
472# --- FIN de gestion des flags modifiants les options de compilation (par sed)
473
[2724]474rm -f $mfile:t
[2720]475ln -s $mfile $mfile:t
476
[2724]477
478#----------------------------------------------------------------------
479#### Copie de machdefs.h
[2720]480set mdefname = $TMPDIR/machdefs.h
481echo " "
[3001]482echo ">>>>>> 6.a/ Creating machdefs.h from BaseTools/machdefs_mkmf.h"
[2720]483rm -f $mdefname; touch $mdefname
484echo "/*** machdefs.h generated by SOPHYA configure ***/" >> $mdefname
485echo "#ifndef MACHDEFS_SEEN" >> $mdefname
486echo "#define MACHDEFS_SEEN" >> $mdefname
487echo "/*------ Code generation switch ---- */" >> $mdefname
488echo "/* System selector (uname) */" >> $mdefname
[3224]489# Fait avant - set sname = `uname`
[2720]490echo "#ifndef $sname" >> $mdefname
491echo "#define $sname 1 " >> $mdefname
492echo "#endif" >> $mdefname
[3202]493
[3210]494## Definition de flags de compilation en fonction des options de configure
[3202]495if ( $?arch64 ) echo "#define SO_ARCH64 1" >> $mdefname
[3210]496if ( $?sasz64 ) echo "#define SO_SASIZET64 1" >> $mdefname
[3753]497if ( $?ssldble128 ) echo "#define SO_LDBLE128 1" >> $mdefname
[3202]498if ( $?nofpic ) echo "#define SO_NOFPIC 1" >> $mdefname
[3210]499if ( $?nothsafe ) echo "#define SO_NOTHSAFE 1" >> $mdefname
[3202]500if ( $?boundcheck ) echo "#define SO_BOUNDCHECKING 1" >> $mdefname
501if ( $?sodebug ) echo "#define SOPHYA_DEBUG 1" >> $mdefname
502
[2772]503if ( "$sname" == "IRIX64" ) then
504 if ( "$SOPHYACXX" == "CC" ) then
505# __SGICC__ : flag indiquant que c'est le compilo CC de SGI
506 echo "#define __SGICC__ 1" >> $mdefname
507 endif
508endif
[2724]509
[2720]510
[2724]511echo " " >> $mdefname
512grep -v -e '#ifndef *MACHDEFS_SEEN' -e '#define *MACHDEFS_SEEN' ../BaseTools/machdefs_mkmf.h >> $mdefname
[2720]513# On ne copie que si machdefs.h est different
514if (-e $sinc/machdefs.h ) then
515 diff $mdefname $sinc/machdefs.h >& /dev/null
516 if ($status != 0) then
517 cp -f -p $mdefname $sinc/machdefs.h
518 echo " file $sinc/machdefs.h changed -> replaced"
519 else
520 echo " file $sinc/machdefs.h has not changed -> kept"
521 endif
522else
523 cp -f -p $mdefname $sinc/machdefs.h
524 echo " file $sinc/machdefs.h created"
525endif
[2724]526rm -f $mdefname
[2720]527
528
[3001]529#### Creation de sspvflags.h
530echo " "
531echo ">>>>>> 6.b/ Creating $sinc/sspvflags.h "
532rm -f $sinc/sspvflags.h; touch $sinc/sspvflags.h
533
534echo "#ifndef SSPVFLAGS_SEEN" >> $sinc/sspvflags.h
535echo "#define SSPVFLAGS_SEEN" >> $sinc/sspvflags.h
536echo " " >> $sinc/sspvflags.h
537echo "/*------ External libraries no-use flag ---- */" >> $sinc/sspvflags.h
538set i = 0
539while ( $i < $#SOPEXTOK )
540 @ i += 1
541 if( $SOPEXTOK[$i] > 0 ) continue
542 echo "#define SOPHYA_NO_$SOPEXT[$i]" >> $sinc/sspvflags.h
543end
544
545echo " " >> $sinc/sspvflags.h
[3357]546echo "/*------ SOPOHYA/ExtLibsvVersion selection flags ---- */" >> $sinc/sspvflags.h
547echo " " >> $sinc/sspvflags.h
548if( $?alsofftwfloat ) then
549 echo "/*-- Compile ALSO float version of FFTWServer methods -- */" >> $sinc/sspvflags.h
550 echo "#define ALSO_FFTW_FLOAT_EXTSOP" >> $sinc/sspvflags.h
551endif
[3001]552if( $?usefftw2 ) then
[3357]553 echo "/*-- Use FFTW V2 instead of V3 -- */" >> $sinc/sspvflags.h
[3001]554 echo "#define FFTW_V2_EXTSOP" >> $sinc/sspvflags.h
555endif
556if( $?uselapack2 ) then
[3357]557 echo "/*-- Use LAPACK V2 instead of V3 -- */" >> $sinc/sspvflags.h
[3001]558 echo "#define LAPACK_V2_EXTSOP" >> $sinc/sspvflags.h
559endif
560echo " " >> $sinc/sspvflags.h
[3210]561if( $?slballinone ) then
[3357]562 echo "/*------ Use of single shared lib for SOPHYA+extlibs+PI ---- */" >> $sinc/sspvflags.h
[3210]563 echo "#define SO_SLBALLINONE " >> $sinc/sspvflags.h
[3001]564endif
565echo " " >> $sinc/sspvflags.h
566echo "#endif " >> $sinc/sspvflags.h
567
568
[2724]569#----------------------------------------------------------------------
570#### Creation des fichiers contenant les listes d'objets et d'includes
[2720]571echo " "
572echo ">>>>>> 7/ Creating object list files for shared library creation "
573set objlistname = $sconf/libsophya.objlist
574echo " 7.a/ Creating $objlistname "
[2724]575rm -f $objlistname ; touch $objlistname
[2751]576foreach d ( $SOPMOD )
577 rm -f $sconf/$d.conf
578 if ( ! -d ../$d ) continue
579 cat ../$d/objlist.list >> $objlistname
580 touch $sconf/$d.conf
[2720]581end
582
583set objlistname = $sconf/libextsophya.objlist
584echo " 7.b/ Creating $objlistname "
[2724]585rm -f $objlistname ; touch $objlistname
[2739]586set i = 0
587while ( $i < $#SOPEXT )
588 @ i += 1
[2751]589 set d = $SOPEXT[$i]
590 rm -f $sconf/$d.conf
[2739]591 if( $SOPEXTOK[$i] <= 0 ) continue
592 if ( ! -d ../$d ) continue
593 cat ../$d/objlist.list >> $objlistname
[2751]594 touch $sconf/$d.conf
[2739]595end
[2720]596
597set objlistname = $sconf/libPI.objlist
598echo " 7.c/ Creating $objlistname "
[2724]599rm -f $objlistname ; touch $objlistname
[3210]600set i = 0
601while ( $i < $#SOPPI )
602 @ i += 1
603 set d = $SOPPI[$i]
[2751]604 rm -f $sconf/$d.conf
[3210]605 if( $SOPPIOK[$i] <= 0 ) continue
[2751]606 if ( ! -d ../$d ) continue
607 cat ../$d/objlist.list >> $objlistname
608 touch $sconf/$d.conf
[2720]609end
[2724]610
611
612#----------------------------------------------------------------------
613exit 0
Note: See TracBrowser for help on using the repository browser.