]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - configure.in
Add --with-rpcgen= for configure so that the system rpcgen can be used.
[nfs-utils.git] / configure.in
index 4f645237d498b52ce93a7ae3f8d3d71e028976f2..124065632cc13e1d34051b2349aedaa29dac3196 100644 (file)
@@ -115,7 +115,16 @@ AC_ARG_ENABLE(rquotad,
                RQUOTAD=
        fi
        AM_CONDITIONAL(CONFIG_RQUOTAD, [test "$enable_rquotad" = "yes"])
-
+AC_ARG_WITH(rpcgen,
+       [AC_HELP_STRING([--with-rpcgen=/usr/bin/rpcgen], [use system rpcgen instead of compiling our own])],
+       if test "$withval" == "yes"; then
+           for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
+           do if test -f $p ; then withval=$p ; break; fi ; done
+       fi
+       RPCGEN_PATH=$withval,
+       RPCGEN_PATH= )
+       AC_SUBST(RPCGEN_PATH)
+       AM_CONDITIONAL(CONFIG_RPCGEN, [test "$RPCGEN_PATH" == ""])
 AC_ARG_ENABLE(mount,
        [AC_HELP_STRING([--enable-mount],
                        [Create mount.nfs and don't use the util-linux mount(8) functionality. @<:@default=no@:>@])],