1
1
dnl Process this file with autoconf to produce a configure script.
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)
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,
115
115
AM_CONDITIONAL(CONFIG_MOUNT, [test "$enable_mount" = "yes"])
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])
167
PKG_CHECK_MODULES([GSSAPI], [libgssapi >= 0.9])
167
PKG_CHECK_MODULES(GSSAPI, libgssapi >= 0.9)
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]),)
184
188
dnl Check for Kerberos V5
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)
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])
244
248
dnl *************************************************************