Prev Up Next
Go backward to 3.1 Connections removed
Go up to Top
Go forward to A NCTypeFactory

4 Automake support

All of OPeNDAP's projects will use autoconf, automake and libtool to build on Unix platforms. To make it easier to write configure.ac scripts which detect libdap, we include an autoconf m4 macro. Look in the m4 directory of libdap for the file libdap.m4. Copy this into your source. Here's an example of the macro's use:4

    AC_CHECK_LIBDAP([3.5.0],
     [
      LIBS="$LIBS $DAP_LIBS"
      CPPFLAGS="$CPPFLAGS $DAP_CFLAGS"
     ],
     [ AC_MSG_ERROR([Cannot find libdap])
    ])

James Gallagher <jgallagher@opendap.org>, 2005-11-02, Revision: 12461

Prev Up Next