./configure now improved

Developers
2011-06-27
2013-10-17
  • Charlie Zender
    Charlie Zender
    2011-06-27

    OK, yesterday I stripped a bunch of cruft out of configure.
    I removed configure support for UDUnits1, DAP from libdap, and MPI.
    Today I built a netcdf4-, UDUnits2-, DAP-enabled NCO against Debian Sid.
    This is a small milestone. configure should now work much better on systems
    with netCDF 4.1.x.

    configure.in is now simpler looking, so maybe others can help improve it further.
    If you have time, please download the latest snapshot and give it a whirl.

    Thanks,
    c

     
  • David Huard
    David Huard
    2011-07-28

    Hi,

    newbie here, trying to compile nco to enable dap support since Ubuntu 11.04 does not seem to be built with it.

    Here is what I get with
    $ ./configure  -enable-dap -enable-netcdf4
    $ make


    /bin/bash ../../libtool -tag=CXX -tag=CC   -mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/usr/include  -I/usr/include  -g -O2 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_grp_utl.lo -MD -MP -MF .deps/nco_grp_utl.Tpo -c -o nco_grp_utl.lo nco_grp_utl.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/usr/include -I/usr/include -g -O2 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_grp_utl.lo -MD -MP -MF .deps/nco_grp_utl.Tpo -c nco_grp_utl.c  -fPIC -DPIC -o .libs/nco_grp_utl.o
    nco_grp_utl.c:21:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘nco_var4_trv_drv’
    nco_grp_utl.c: In function ‘nco_var4_lst_mk’:
    nco_grp_utl.c:49:31: error: ‘NCO_MAX_GROUP_DEPTH’ undeclared (first use in this function)
    nco_grp_utl.c:49:31: note: each undeclared identifier is reported only once for each function it appears in
    nco_grp_utl.c:73:3: error: ‘fl_nm’ undeclared (first use in this function)
    nco_grp_utl.c:80:11: error: ‘grp_id_root’ undeclared (first use in this function)
    nco_grp_utl.c:81:5: error: ‘fl_lvl_crr’ undeclared (first use in this function)
    nco_grp_utl.c:88:9: error: ‘grp_nbr_rmn’ undeclared (first use in this function)
    nco_grp_utl.c:88:28: error: ‘fl_lvl’ undeclared (first use in this function)
    nco_grp_utl.c:92:3: error: ‘rcd’ undeclared (first use in this function)
    nco_grp_utl.c:105:30: error: ‘var_nbr_crr’ undeclared (first use in this function)
    nco_grp_utl.c:129:3: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘char *’
    nco_grp_utl.c:129:3: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘char *’

    This is with the CVS trunk. I tried with version 4.0.8 but netcdf4 was not enabled.

    Thanks,

    David

     
  • Charlie Zender
    Charlie Zender
    2011-07-28

    david,

    less than a week ago i intentionally broke the current snapshot in order to incorporate new code.
    so, check out the code from a week ago and try to build that instead. e.g., use

    cvs -z3 -d:pserver:anonymous@nco.cvs.sf.net:/cvsroot/nco co -D 20110721 -kk nco

    let us know if building that does not work.
    cz