2014-04-04 05:46:12 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-05-11 05:16:20 +08:00
|
|
|
# Define where the installation will be
|
2014-04-04 05:46:12 +08:00
|
|
|
PREFIX=/home/dmh/opt/jna
|
2014-05-11 05:16:20 +08:00
|
|
|
#PREFIX=/opt/netcdf
|
|
|
|
|
|
|
|
# Define where to look for e.g. libz or libhdf5
|
2014-04-22 00:14:21 +08:00
|
|
|
LIBDIR=/usr/local/lib
|
2014-04-04 05:46:12 +08:00
|
|
|
|
|
|
|
CFLAGS=""
|
2014-04-22 00:14:21 +08:00
|
|
|
CPPFLAGS="-I${PREFIX}/include"
|
2014-04-04 05:46:12 +08:00
|
|
|
|
|
|
|
LDFLAGS="-L${LIBDIR} -lhdf5_hl -lhdf5 -lz $LDFLAGS"
|
|
|
|
LD_LIBRARY_PATH="${LIBDIR}:$LD_LIBRARY_PATH"
|
|
|
|
|
|
|
|
MAKE=make
|
|
|
|
|
|
|
|
FLAGS="--prefix ${PREFIX}"
|
|
|
|
FLAGS="$FLAGS --disable-examples"
|
|
|
|
FLAGS="$FLAGS --disable-utilities"
|
|
|
|
FLAGS="$FLAGS --enable-shared"
|
2014-04-10 05:20:16 +08:00
|
|
|
#FLAGS="$FLAGS --enable-jna"
|
2014-04-04 05:46:12 +08:00
|
|
|
|
|
|
|
export PATH
|
|
|
|
export CC
|
|
|
|
export CPPFLAGS
|
|
|
|
export CFLAGS
|
|
|
|
export LDFLAGS
|
|
|
|
export LD_LIBRARY_PATH
|
|
|
|
|
|
|
|
if test -f Makefile ; then ${MAKE} distclean >/dev/null 2>&1 ; fi
|
|
|
|
sh ./configure ${FLAGS}
|
2014-04-22 00:14:21 +08:00
|
|
|
|