]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - configure.in
Change default to use system rpcgen.
[nfs-utils.git] / configure.in
index ce5e2a0174ccae5ff893f2fdd53eaea023a4407b..2ed751b9a4a038b932c67024e82d6c355e12cac4 100644 (file)
@@ -116,13 +116,16 @@ AC_ARG_ENABLE(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
+       [AC_HELP_STRING([--with-rpcgen=internal], [use internal rpcgen instead of system one])],
+       rpcgen_path=$withval,
+       rpcgen_path=yes )
+       RPCGEN_PATH=
+       if test "$rpcgen_path" == "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
+           do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
+       elif test "$rpcgen_path" != "internal"; then
+           RPCGEN_PATH=$rpcgen_path
        fi
-       RPCGEN_PATH=$withval,
-       RPCGEN_PATH= )
        AC_SUBST(RPCGEN_PATH)
        AM_CONDITIONAL(CONFIG_RPCGEN, [test "$RPCGEN_PATH" == ""])
 AC_ARG_ENABLE(uuid,
@@ -134,7 +137,7 @@ AC_ARG_ENABLE(mount,
        [AC_HELP_STRING([--enable-mount],
                        [Create mount.nfs and don't use the util-linux mount(8) functionality. @<:@default=no@:>@])],
        enable_mount=$enableval,
-       enable_mount=no)
+       enable_mount=yes)
        AM_CONDITIONAL(CONFIG_MOUNT, [test "$enable_mount" = "yes"])
 
 # Check whether user wants TCP wrappers support