Changeset 2057 for trunk/UTIL


Ignore:
Timestamp:
Jan 8, 2019, 3:05:10 PM (6 years ago)
Author:
emillour
Message:

Add the possibility to specify extra options to the NetCDF configure script
(e.g. use script with -option "-enabled-shared" to build shared libraries).
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/install_netcdf4.0.1.bash

    r1925 r2057  
    77install_dir=$(pwd)/netcdf-4.0.1
    88compiler_suite=gnu
     9configure_options=""
    910#########################################################################
    1011#  Options
     
    1819       [ -compiler gnu | intel ] compiler suite (Fortran, C, C++) to use
    1920                              (default: $compiler_suite)
     21       [ -options opt ]       additional options string
     22                              for the NetCDF configure script
     23                              (default: $configure_options)
    2024........fin
    2125     exit ;;
    2226     "-prefix") install_dir=$2 ; shift ; shift ;;
    2327     "-compiler") compiler_suite=$2 ; shift ; shift ;;
     28     "-options") configure_options=$2 ; shift ; shift ;;
    2429     *) echo "Error, bad argument $1" ; $0 -h ; exit
    2530   esac
     
    7277fi
    7378
    74 ./configure --prefix=$install_dir > configure.log 2>&1
     79./configure $configure_options --prefix=$install_dir > configure.log 2>&1
    7580
    7681make > make.log 2>&1
Note: See TracChangeset for help on using the changeset viewer.