source: issm/trunk-jpl/externalpackages/adolc/install-macosx64.sh@ 13069

Last change on this file since 13069 was 13069, checked in by Eric.Larour, 13 years ago

NEW: added svn repository to ADOL-C, if we want to work with the dvpt version of this code

  • Property svn:executable set to *
File size: 1.2 KB
RevLine 
[12588]1#!/bin/bash
2
3#some issues on macosx64 with ISSM's autoconf. you might want to run native to mac on this.
4
[13069]5#choose dev or not?
6devpmt=1;
7
[12588]8#Some cleanup
[13069]9rm -rf install ADOL-C-2.2.0 src trunk
[12588]10
11#Create install directories
12mkdir install src
13
[13069]14if [[ $devpmt == "0" ]]; then
15 #Download from ISSM server
16 $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/ADOL-C-2.2.0.tar.gz' 'ADOL-C-2.2.0.tar.gz'
17
18 #Untar
19 tar -zxvf ADOL-C-2.2.0.tar.gz
[12588]20
[13069]21 #Move ADOL-C into install directory
22 mv ADOL-C-2.2.0/* src
23 rm -rf ADOL-C-2.2.0
[12588]24
[13069]25else
26 svn co https://projects.coin-or.org/svn/ADOL-C/trunk
27 mv trunk/* src
28fi
29
30
[12588]31#Compile ADOL-C
32cd src
33
34#export CC=gcc
35#export CXX=g++
36#export CFLAGS="-arch x86_64"
37#export CXXFLAGS="-arch x86_64"
38
39./configure \
40 --prefix=$ISSM_DIR/externalpackages/adolc/install \
41 --enable-sparse \
42 --enable-docexa \
43 --enable-addexa \
44 --disable-shave
45
46if [ -z $1 ]; then
47 make
48else
49 make -j $1
50fi
51make install
52
53
54#Ok, bug with libtool: replace all LIBTOOL= by LIBTOOL=libtool
55#in all Makefiles
56for i in `find ./ -name Makefile `
57do
58 echo $i
59 cat $i | sed 's/LIBTOOL =/LIBTOOL = libtool/g' > $i.bak
60 mv $i.bak $i
61done
62
63#remake:
64if [ -z $1 ]; then
65 make
66else
67 make -j $1
68fi
69make install
70
71
Note: See TracBrowser for help on using the repository browser.