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

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

Fixed macosx64 install.

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