~ubuntu-branches/debian/experimental/nfs-utils/experimental

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2006-07-08 14:26:40 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060708142640-r171kjj2a13gy2kz
Tags: 1:1.0.9-1
* Updated co-mantainer mail address.
* New upstream release.
  - Added 'mount.nfs' utility which can be used as a mount helper
    to mount nfs filesystems. It does not yet support 'user' mounts.
  - Makefile/autoconf tidyups
  - No compiles with no warnings
  - deleted debian/* at request of debian maintainer
  - deleted assorted other unused files
  - mountd can be run multi-threaded for configurations with many hundreds
    of clients (mountd -t 20).  Default is single-threaded
  - Support for selection NFS version to be exported, and protocol to
    use.  This requires kernel patches that should be in linux 2.6.19.
  - Use 65534 rather than -2 for default anon.  This makes no difference in many
    cases, but is important in some.
  - New utility 'rpcdebug' for controlled kernel 'debug' options for nfs and nfsd.
  - nfsstat reports NFSv4 operation statistics that should be available in
    linux 2.6.18.
  - assorted other fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl Process this file with autoconf to produce a configure script.
2
2
dnl
3
 
AC_INIT([linux nfs-utils],[1.0.9-pre1],[nfs@lists.sf.net],[nfs-utils])
 
3
AC_INIT([linux nfs-utils],[1.0.9],[nfs@lists.sf.net],[nfs-utils])
4
4
AC_CANONICAL_BUILD([])
5
5
AC_CANONICAL_HOST([])
6
6
AC_CONFIG_SRCDIR(tools/getiversion/getiversion.c)
109
109
 
110
110
AC_ARG_ENABLE(mount,
111
111
        [AC_HELP_STRING([--enable-mount],
112
 
                        [Create mount.nfs and don't use the util-linux mount(8) functionality. @<:@default=yes@:>@])],
 
112
                        [Create mount.nfs and don't use the util-linux mount(8) functionality. @<:@default=no@:>@])],
113
113
        enable_mount=$enableval,
114
 
        enable_mount=yes)
 
114
        enable_mount=no)
115
115
        AM_CONDITIONAL(CONFIG_MOUNT, [test "$enable_mount" = "yes"])
116
116
 
117
117
# Check whether user wants TCP wrappers support
151
151
AC_CHECK_LIB(nsl, main, [LIBNSL="-lnsl"])
152
152
AC_CHECK_LIB(crypt, crypt, [LIBCRYPT="-lcrypt"])
153
153
if test "$enable_nfsv4" = yes; then
154
 
    AC_CHECK_LIB(event, event_dispatch, [libevent=1], [AC_MSG_ERROR(libevent needed for nfsv4 support)])
155
 
    AC_CHECK_LIB(nfsidmap, nfs4_init_name_mapping, [libnfsidmap=1], [AC_MSG_ERROR(libnfsidmap needed for nfsv4 support)])
156
 
    AC_CHECK_HEADERS(event.h, ,[AC_MSG_ERROR(libevent needed for nfsv4 support)])
157
 
    AC_CHECK_HEADERS(nfsidmap.h, ,[AC_MSG_ERROR(libnfsidmap needed for nfsv4 support)])
 
154
    AC_CHECK_LIB(event, event_dispatch, [libevent=1], AC_MSG_ERROR([libevent needed for nfsv4 support]))
 
155
    AC_CHECK_LIB(nfsidmap, nfs4_init_name_mapping, [libnfsidmap=1], AC_MSG_ERROR([libnfsidmap needed for nfsv4 support]))
 
156
    AC_CHECK_HEADERS(event.h, ,AC_MSG_ERROR([libevent needed for nfsv4 support]))
 
157
    AC_CHECK_HEADERS(nfsidmap.h, ,AC_MSG_ERROR([libnfsidmap needed for nfsv4 support]))
158
158
    dnl librpcsecgss already has a dependency on libgssapi,
159
159
    dnl but we need to make sure we get the right version
160
160
    if test "$enable_gss" = yes; then
161
 
     PKG_CHECK_MODULES([RPCSECGSS], [librpcsecgss >= 0.10], [],
162
 
      [AC_MSG_ERROR([Unable to locate information required to use librpcsecgss.
163
 
       If you have pkgconfig installed, you might try setting environment
164
 
       variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig])
 
161
     PKG_CHECK_MODULES(RPCSECGSS, librpcsecgss >= 0.10, ,
 
162
      [AC_MSG_ERROR([Unable to locate information required to use librpcsecgss.])
 
163
       AC_MSG_ERROR([If you have pkgconfig installed, you might try setting environment])
 
164
       AC_MSG_ERROR([variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig])
165
165
      ]
166
166
     )
167
 
    PKG_CHECK_MODULES([GSSAPI], [libgssapi >= 0.9])
 
167
    PKG_CHECK_MODULES(GSSAPI, libgssapi >= 0.9)
168
168
    fi
169
169
 
170
170
fi
178
178
 
179
179
if test "$enable_gss" = yes; then
180
180
  dnl 'gss' also depends on nfsidmap.h - at least for svcgssd_proc.c
181
 
  AC_CHECK_HEADERS(nfsidmap.h, ,[AC_MSG_ERROR(libnfsidmap needed for gss support)])
182
 
  AC_CHECK_HEADERS(spkm3.h, ,[AC_MSG_WARN(could not locate SPKM3 header; will not have SPKM3 support)])
 
181
  AC_CHECK_HEADERS(nfsidmap.h, ,AC_MSG_ERROR([libnfsidmap needed for gss support]))
 
182
  AC_CHECK_HEADERS(spkm3.h, ,AC_MSG_WARN([could not locate SPKM3 header; will not have SPKM3 support]))
 
183
  dnl the nfs4_set_debug function doesn't appear in all version of the library
 
184
  AC_CHECK_LIB(nfsidmap, nfs4_set_debug,
 
185
               AC_DEFINE(HAVE_NFS4_SET_DEBUG,1,
 
186
                         [Whether nfs4_set_debug() is present in libnfsidmap]),)
183
187
 
184
188
  dnl Check for Kerberos V5
185
189
  AC_KERBEROS_V5
186
190
 
187
191
  dnl This is not done until here because we need to have KRBLIBS set
188
192
  dnl ("librpcsecgss=1" is so that it doesn't get added to LIBS)
189
 
  AC_CHECK_LIB(rpcsecgss, authgss_create_default, [librpcsecgss=1], [AC_MSG_ERROR(librpcsecgss needed for nfsv4 support)], $KRBLIBS)
 
193
  AC_CHECK_LIB(rpcsecgss, authgss_create_default, [librpcsecgss=1], AC_MSG_ERROR([librpcsecgss needed for nfsv4 support]), -lgssapi -ldl)
190
194
  AC_CHECK_LIB(rpcsecgss, authgss_set_debug_level,
191
 
               AC_DEFINE(HAVE_AUTHGSS_SET_DEBUG_LEVEL, 1, [Define this if the rpcsec_gss library has the function authgss_set_debug_level]),, $KRBLIBS)
 
195
               AC_DEFINE(HAVE_AUTHGSS_SET_DEBUG_LEVEL, 1, [Define this if the rpcsec_gss library has the function authgss_set_debug_level]),, -lgssapi -ldl)
192
196
 
193
197
fi
194
198
 
238
242
               gethostbyaddr gethostbyname gethostname getmntent \
239
243
               gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
240
244
               realpath rmdir select socket strcasecmp strchr strdup \
241
 
               strerror strrchr strtol strtoul])
 
245
               strerror strrchr strtol strtoul sigprocmask])
242
246
 
243
247
 
244
248
dnl *************************************************************
248
252
AC_CHECK_SIZEOF(int)
249
253
AC_CHECK_SIZEOF(long)
250
254
AC_CHECK_SIZEOF(size_t)
 
255
AC_CHECK_SIZEOF(socklen_t)
 
256
 
251
257
 
252
258
dnl *************************************************************
253
259
dnl Export some path names to config.h