You must have either netCDF-3 (or netCDF-4) installed.
And reasonably recent version of netCDF should work.
Get the latest version of the libcf tarball at the libcf ftp site: ftp://ftp.unidata.ucar.edu/pub/libcf/libcf-daily.tar.gz
Unpack the tarball, and run:
./configure --with-netcdf=/my/netcdf --prefix=/my/libcf && make check install > output.txt
Where /my/netcdf is the root install directory of the netCDF library you want to use, and /my/libcf is the root directory where you want libcf installed. (They may be the same directory.) If unspecified, the prefix defaults to /usr/local.
If you wish to use netCDF-4, you must also have HDF5 and libz, the compression library, installed. In this case, configure libcf like this:
./configure --with-netcdf=/s/n4_new1/install --enable-netcdf-4 --with-hdf5=/home/ed/local/s && make check install > output.txt
If the build does not work for you, please email libcf support: email@example.com. Please send the complete output of the configure and build output, in ASCII (the output.txt file produced by the above build commands), and the file config.log, which is generated by the configure script.