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])
])