X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=configure.in;fp=configure.in;h=124065632cc13e1d34051b2349aedaa29dac3196;hp=4f645237d498b52ce93a7ae3f8d3d71e028976f2;hb=453ac684258684e0e8413f4d9ef9822e753d9dbb;hpb=390e67de5d9fe919d1894359536f0c5527fa2331 diff --git a/configure.in b/configure.in index 4f64523..1240656 100644 --- a/configure.in +++ b/configure.in @@ -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@:>@])],