/[ascend]/trunk/base/autotools/reconfig
ViewVC logotype

Annotation of /trunk/base/autotools/reconfig

Parent Directory Parent Directory | Revision Log Revision Log


Revision 140 - (hide annotations) (download)
Thu Dec 22 01:14:31 2005 UTC (14 years, 9 months ago) by johnpye
File size: 2228 byte(s)
Fixing problem with location of TkTable
Support use of /usr/lib/libblas.a if present on system, partial soln to bug #190
1 johnpye 135 #!/bin/sh
2 johnpye 68
3     # Added some new stuff here to allow reconfig to be
4     # used without tweaking. Art, you should be able to use
5     # it unmodified. Likewise Ben.
6    
7     # I tweaked it to install to ~/ascroot/bin/ascend4
8     # instead of the default /usr/local/bin
9     # so that you can test without having to log in as root.
10    
11 johnpye 137 # Platform-specific shenanigans
12     if [ "$OSTYPE" = "msys" ]; then
13     echo "MINGW CONFIGURATION"
14     versep=
15     libsuff=.lib
16     libpref=
17     tkrootdefault=/c/Tcl
18     else
19     echo "LINUX CONFIGURATION"
20     versep=.
21     libsuff=.so
22     libpref=lib
23     tkrootdefault=/usr
24     fi
25    
26    
27 johnpye 69 # Assume Tcl/Tk version 8.3 unless override with environment var
28 johnpye 68 if [ $TKVERSION ]; then
29     tkver=$TKVERSION
30     else
31 johnpye 137 tkmajor=8
32     tkminor=3
33     tkver=$tkmajor$versep$tkminor
34 johnpye 68 fi
35    
36 johnpye 69 # Assume Tktable version 2.8 unless override with environment var
37 johnpye 68 if [ $TKTABLEVERSION ]; then
38     tktablever=$TKTABLEVERSION
39     else
40 johnpye 140 tktablemajor=2
41     tktableminor=8
42 johnpye 137 tktablever=$tktablemajor$versep$tktableminor
43 johnpye 68 fi
44    
45 johnpye 69 # Assume Tcl/Tk installed under /usr unless ~/tk or ~/tk83 present
46     # or override with environment var
47 johnpye 68 if [ $TKROOT ]; then
48     tkroot=$TKROOT
49     elif [ -d ~/tk ]; then
50     tkroot=~/tk
51     elif [ -d ~/tk83 ]; then
52     tkroot=~/tk83
53     else
54 johnpye 137 tkroot=$tkrootdefault
55 johnpye 68 fi
56    
57 johnpye 69 # Assume Tktable installed under $tkroot/share unless
58     # Tktable present in $tkroot/lib (not as good for non-root builds)
59     # or override with environment var
60     if [ $TKTABLEROOT ]; then
61     tktableroot=$TKTABLEROOT
62     elif [ -d $tkroot/lib/Tktable$tktablever ]; then
63     tktableroot=$tkroot/lib/Tktable$tktablever
64     else
65 johnpye 70 tktableroot=$tkroot/share/Tktable$tktablever
66 johnpye 69 fi
67    
68     # Install everything in ~/ascroot unless override with envir var
69 johnpye 68 if [ $ASCROOT ]; then
70     ascroot=$ASCROOT;
71     else
72     ascroot=~/ascroot
73     fi
74    
75 johnpye 140 # Use installed BLAS if it's found in an obvious place
76     blaspath=/usr/lib/libblas.a
77     if [ -e $blaspath ]; then
78     blasopt=--with-blas=$blaspath
79     else
80     blasopt=
81     fi
82    
83 johnpye 68 cmd="./configure \
84     --prefix=$ascroot \
85 johnpye 70 --with-fortran=g77,/usr/lib/libf2c.a \
86     --enable-gcc \
87 johnpye 137 --with-tcl="$tkroot/lib/${libpref}tcl$tkver$libsuff,$tkroot/include/tcl.h" \
88     --with-tk="$tkroot/lib/${libpref}tk$tkver$libsuff,$tkroot/include/tk.h" \
89 aw0a 23 --with-wish="$tkroot/bin/wish" \
90 johnpye 140 --with-tktable=$tktableroot/${libpref}Tktable$tktablever$libsuff
91     $blasopt"
92 aw0a 23
93 johnpye 68 echo "RUNNING CONFIGURE WITH"
94     echo $cmd
95     echo ""
96 aw0a 23
97 johnpye 68 $cmd
98 aw0a 23

Properties

Name Value
svn:executable *

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22