/[MITgcm]/MITgcm_contrib/mpack_src/mpack-1.6-4/cmulocal/libwrap.m4
ViewVC logotype

Contents of /MITgcm_contrib/mpack_src/mpack-1.6-4/cmulocal/libwrap.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sat Feb 23 20:13:31 2008 UTC (17 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
- get new version from: http://packages.qa.debian.org/m/mpack.html
  (files: mpack_1.6.orig.tar.gz, mpack_1.6-4.diff.gz, mpack_1.6-4.dsc)
  and apply patch 'mpack_1.6-4.diff' to original dir: mpack_1.6/
- this fix the MD5 coding on 64.bit platforms (well, seems to).
- added in Contrib to allow separate test (since building mpack seems fishy)

1 dnl libwrap.m4 --- do we have libwrap, the access control library?
2 dnl $Id: libwrap.m4,v 1.6 2002/08/21 15:03:19 rjs3 Exp $
3
4 AC_DEFUN(CMU_LIBWRAP, [
5 AC_REQUIRE([CMU_SOCKETS])
6 AC_ARG_WITH(libwrap,
7 [ --with-libwrap=DIR use libwrap (rooted in DIR) [yes] ],
8 with_libwrap=$withval, with_libwrap=yes)
9 if test "$with_libwrap" != no; then
10 if test -d "$with_libwrap"; then
11 CPPFLAGS="$CPPFLAGS -I${with_libwrap}/include"
12 LDFLAGS="$LDFLAGS -L${with_libwrap}/lib"
13 fi
14 cmu_save_LIBS="$LIBS"
15 AC_CHECK_LIB(wrap, request_init, [
16 AC_CHECK_HEADER(tcpd.h,, with_libwrap=no)],
17 with_libwrap=no, ${LIB_SOCKET})
18 LIBS="$cmu_save_LIBS"
19 fi
20 AC_MSG_CHECKING(libwrap support)
21 AC_MSG_RESULT($with_libwrap)
22 LIB_WRAP=""
23 if test "$with_libwrap" != no; then
24 AC_DEFINE(HAVE_LIBWRAP)
25 LIB_WRAP="-lwrap"
26 AC_CHECK_LIB(nsl, yp_get_default_domain, LIB_WRAP="${LIB_WRAP} -lnsl")
27 fi
28 AC_SUBST(LIB_WRAP)
29 ])

  ViewVC Help
Powered by ViewVC 1.1.22