Changeset 12839
- Timestamp:
- Apr 17, 2007, 9:55:36 AM (19 years ago)
- Location:
- trunk/psconfig
- Files:
-
- 1 added
- 1 deleted
- 3 edited
-
INSTALL (modified) (1 diff)
-
pschecklibs (modified) (8 diffs)
-
psconfig.bash (modified) (3 diffs)
-
psconfig.csh (added)
-
psconfig.sh (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psconfig/INSTALL
r12163 r12839 22 22 following line in ~/.psconfigrc (otherwise not needed): 23 23 24 set PSCONF IG= INSTALL_PATH24 set PSCONFDIR = INSTALL_PATH 25 25 26 26 where INSTALL_PATH is the top-level directory for all binary -
trunk/psconfig/pschecklibs
r12497 r12839 31 31 endif 32 32 33 # set paths for PSVERSION33 # set install paths for PSVERSION 34 34 set libdir = `source psconfig.sh --libs $PSVERSION` 35 35 set incdir = `source psconfig.sh --include $PSVERSION` 36 36 37 # make these directories 38 mkdir -p $libdir 39 mkdir -p $incdir 40 37 41 # I supplement this list with LD_LIBRARY_PATH below 38 set syslibpath = "/lib /usr/lib /usr/X11R6/lib /usr/ openwin/lib /usr/local/lib"42 set syslibpath = "/lib /usr/lib /usr/X11R6/lib /usr/local/lib " 39 43 set needlibs = "" 40 44 set needlibs = "$needlibs png" … … 52 56 set needlibs = "$needlibs m" 53 57 54 # /usr/local/include/libpng is really pretty lame... 55 set sysincpath = "/usr/include /usr/local/include /usr/X11R6/include /usr/openwin/include /usr/local/include/libpng" 56 58 # I supplement this list with CPATH below 59 set sysincpath = "/usr/include /usr/local/include /usr/X11R6/include " 57 60 set needincs = "" 58 61 set needincs = "$needincs X11/Xatom.h" … … 103 106 set needincs = "$needincs time.h" 104 107 set needincs = "$needincs unistd.h" 105 set needincs = "$needincs values.h"106 108 set needincs = "$needincs zlib.h" 107 109 108 110 # XXX need to have options for non-ANSI includes? (ie, varargs.h) 111 # set needincs = "$needincs values.h" - this only provides values already defined in limits.h? 109 112 # set needincs = "$needincs libxml/parser.h" 110 113 # set needincs = "$needincs cfuncs.h" - from non-ANSI option in ohana.h … … 118 121 set sys=`uname -s` 119 122 set ranlib = "ranlib" 123 set dlltype = "so" 120 124 switch ($sys) 121 125 case IRIX64: … … 130 134 endif 131 135 # sun (at least) seems to need the socket library (linux does not) 136 set syslibpath = "$syslibpath /usr/openwin/lib" 137 set sysincpath = "$sysincpath /usr/openwin/include" 132 138 set needlibs = "$needlibs libsocket libnsl" 133 139 set ranlib = "touch" … … 141 147 set syslibpath = "/lib64 /usr/lib64 /usr/X11R6/lib64 $syslibpath" 142 148 endif 149 breaksw; 150 case Darwin: 151 set arch="darwin"; 152 set mach=`uname -m` 153 if ("$mach" == "i386") then 154 set arch="darwin_x86"; 155 endif 156 set syslibpath = "$syslibpath /sw/lib /usr/local/lib/mysql" 157 set sysincpath = "$sysincpath /sw/include /usr/include/sys" 158 set dlltype = dylib 143 159 breaksw; 144 160 case HP-UX: … … 169 185 foreach g ( $libdir $libpath $syslibpath ) 170 186 if (! -e $g) continue 171 set name = $g/lib$f.a 172 if (-e $name[1]) goto got_lib; 173 set name = $g/lib$f.so* 174 if (-e $name[1]) goto got_lib; 187 set name = $g/lib$f.a 188 if (-e $name[1]) goto got_lib; 189 set name = $g/lib$f.$dlltype 190 if (-e $name[1]) goto got_lib; 191 end 192 # if we find a .so.N without a matching .so, we link this in 193 # the installed libdir 194 foreach g ( $libpath $syslibpath ) 195 set name = $g/lib$f.$dlltype* 196 echo "libname: $name" 197 if (-e $name[1]) then 198 echo "making link to numbers .$dlltype library $libdir/lib$f.$dlltype" 199 ln -s $name[$#name] $libdir/lib$f.$dlltype 200 if ($status) exit 1 201 goto got_lib 202 endif 175 203 end 176 204 echo "missing lib$f" … … 185 213 foreach f ( ncurses curses termcap ) 186 214 foreach g ( $libdir $libpath $syslibpath ) 187 set name = $g/lib$f.a 188 if (-e $name[1]) goto got_curses; 189 set name = $g/lib$f.so* 190 if (-e $name[1]) goto got_curses; 215 set name = $g/lib$f.a 216 if (-e $name[1]) goto got_curses; 217 set name = $g/lib$f.$dlltype 218 if (-e $name[1]) goto got_curses; 219 end 220 # if we find a .so.N without a matching .so, we link this in 221 # the installed libdir 222 foreach g ( $libpath $syslibpath ) 223 set name = $g/lib$f.$dlltype* 224 if ($#name > 0) then 225 echo "making link to numbers .$dlltype library $libdir/lib$f.$dlltype" 226 ln -s $name[$#name] $libdir/lib$f.$dlltype 227 goto got_curses; 228 endif 191 229 end 192 230 end -
trunk/psconfig/psconfig.bash
r12157 r12839 1 1 # this script sets the PS IPP build environment for BASH shell users 2 2 3 INSTALL=/home/kiawe/eugene/src.alala/panstarrs/ipp/psconfig 3 if [ -z $INSTALL ]; then 4 INSTALL=/home/kiawe/eugene/src.alala/panstarrs/ipp/psconfig 5 fi 4 6 5 7 if (( $# == 0 )); then 6 /bin/csh $INSTALL/psconfig. sh8 /bin/csh $INSTALL/psconfig.csh 7 9 return 0 8 10 fi … … 14 16 15 17 version=$1 16 psconfigure=`/bin/csh $INSTALL/psconfig. sh --psconfigure $version`17 psautogen=`/bin/csh $INSTALL/psconfig. sh --psautogen $version`18 psperlbuild=`/bin/csh $INSTALL/psconfig. sh --psperlbuild $version`18 psconfigure=`/bin/csh $INSTALL/psconfig.csh --psconfigure $version` 19 psautogen=`/bin/csh $INSTALL/psconfig.csh --psautogen $version` 20 psperlbuild=`/bin/csh $INSTALL/psconfig.csh --psperlbuild $version` 19 21 alias psconfigure=$psconfigure 20 22 alias psautogen=$psautogen … … 22 24 23 25 # psconfig env variables 24 export PSCONFDIR=`/bin/csh $INSTALL/psconfig. sh --psconfdir $version`25 export PSVERSION=`/bin/csh $INSTALL/psconfig. sh --psversion $version`26 export PSCONFDIR=`/bin/csh $INSTALL/psconfig.csh --psconfdir $version` 27 export PSVERSION=`/bin/csh $INSTALL/psconfig.csh --psversion $version` 26 28 27 29 # environment variables 28 export PATH=`/bin/csh $INSTALL/psconfig. sh --path $version`29 export ARCH=`/bin/csh $INSTALL/psconfig. sh --arch $version`30 export LD_LIBRARY_PATH=`/bin/csh $INSTALL/psconfig. sh --ld_library_path $version`31 export PKG_CONFIG_PATH=`/bin/csh $INSTALL/psconfig. sh --pkg_config_path $version`32 export ACLOCAL_FLAGS=`/bin/csh $INSTALL/psconfig. sh --aclocal_flags $version`33 export PERL5LIB=`/bin/csh $INSTALL/psconfig. sh --perl5lib $version`30 export PATH=`/bin/csh $INSTALL/psconfig.csh --path $version` 31 export ARCH=`/bin/csh $INSTALL/psconfig.csh --arch $version` 32 export LD_LIBRARY_PATH=`/bin/csh $INSTALL/psconfig.csh --ld_library_path $version` 33 export PKG_CONFIG_PATH=`/bin/csh $INSTALL/psconfig.csh --pkg_config_path $version` 34 export ACLOCAL_FLAGS=`/bin/csh $INSTALL/psconfig.csh --aclocal_flags $version` 35 export PERL5LIB=`/bin/csh $INSTALL/psconfig.csh --perl5lib $version`
Note:
See TracChangeset
for help on using the changeset viewer.
