1 dnl Process this file with autoconf to produce a configure script.
4 AC_PREFIX_DEFAULT(/usr)
6 # The nfs-utils version
10 dnl *************************************************************
11 dnl * Define the set of applicable options
12 dnl *************************************************************
14 [ --with-statedir=/foo use state dir /foo [/var/lib/nfs]],
16 statedir=/var/lib/nfs)
19 [ --enable-nfsv3 enable support for NFSv3],
20 enable_nfsv3=$enableval,
22 if test "$enable_nfsv3" = yes; then
23 AC_DEFINE(NFS3_SUPPORTED)
27 AC_SUBST(enable_nfsv3)
28 AC_ARG_ENABLE(kprefix,
29 [ --enable-kprefix install progs as rpc.knfsd etc],
30 test "$enableval" = "yes" && kprefix=k,
33 AC_ARG_ENABLE(secure-statd,
34 [ --enable-secure-statd Only lockd can use statd (security)],
35 test "$enableval" = "yes" && secure_statd=yes,
37 if test "$secure_statd" = yes; then
38 AC_DEFINE(RESTRICTED_STATD)
40 AC_SUBST(secure_statd)
41 dnl AC_ARG_ENABLE(frob, enable frobnicator,, enable_frob=test)
42 AC_CONFIG_HEADER(support/include/config.h)
53 dnl *************************************************************
54 dnl * Check for required librarues
55 dnl *************************************************************
56 AC_CHECK_LIB(socket, main, [LIBSOCKET="-lnsl"])
57 AC_CHECK_LIB(nsl, main, [LIBNSL="-lnsl"])
58 AC_CHECK_LIB(crypt, crypt, [LIBCRYPT="-lcrypt"])
59 if test "$knfsd_cv_glibc2" = no; then
60 AC_CHECK_LIB(bsd, daemon, [LIBBSD="-lbsd"])
70 dnl *************************************************************
72 dnl *************************************************************
73 dnl AC_HAVE_HEADERS(string.h)
75 dnl *************************************************************
76 dnl Check for functions
77 dnl *************************************************************
78 AC_HAVE_FUNCS(innetgr)
80 dnl *************************************************************
81 dnl Export some path names to config.h
82 dnl *************************************************************
83 AC_DEFINE_UNQUOTED(NFS_STATEDIR, "$statedir")
88 AC_OUTPUT(config.mk nfs-utils.spec)