File: libnfsidmap.m4

package info (click to toggle)
nfs-utils 1%3A1.2.2-4squeeze3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 5,412 kB
  • ctags: 3,305
  • sloc: ansic: 31,349; sh: 10,787; python: 979; makefile: 663
file content (17 lines) | stat: -rw-r--r-- 616 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
dnl Checks for libnfsidmap
dnl
AC_DEFUN([AC_LIBNFSIDMAP], [

  dnl Check for libnfsidmap, but do not add -lnfsidmap to LIBS
  AC_CHECK_LIB([nfsidmap], [nfs4_init_name_mapping], [libnfsidmap=1],
               [AC_MSG_ERROR([libnfsidmap not found.])])

  AC_CHECK_HEADERS([nfsidmap.h], ,
                   [AC_MSG_ERROR([libnfsidmap headers not found.])])

  dnl nfs4_set_debug() doesn't appear in all versions of libnfsidmap
  AC_CHECK_LIB([nfsidmap], [nfs4_set_debug],
               [AC_DEFINE([HAVE_NFS4_SET_DEBUG], 1,
                          [Define to 1 if you have the `nfs4_set_debug' function.])])

])dnl