commit e4a13e3b2f3d6c13b40425bcdbbf4689a3ceb6fa Author: Steve Dickson <steved@xxxxxxxxxx> Date: Mon Mar 9 15:11:04 2009 -0400 Added '--with-mountconfig" configuration flag so the configuration file can be redefined during configuration. Signed-off-by: Steve Dickson <steved@xxxxxxxxxx> diff --git a/configure.ac b/configure.ac index 5db4417..51645f2 100644 --- a/configure.ac +++ b/configure.ac @@ -278,8 +278,17 @@ if test "$enable_ipv6" = yes; then AC_CHECK_DECL([AI_ADDRCONFIG], , AC_MSG_ERROR([full getaddrinfo(3) implementation needed for IPv6 support]), [ #include <netdb.h> ] ) + fi +AC_ARG_WITH(mountconfig, + [AC_HELP_STRING([--with-mountconfig=filename], + [Using filename as the NFS mount options file [/etc/nfsmounts.conf]] + )], + mountconfig=$withval, + mountconfig=/etc/nfsmount.conf) + AC_SUBST(mountconfig) + dnl ************************************************************* dnl Check for headers dnl ************************************************************* @@ -344,6 +353,7 @@ dnl ************************************************************* dnl Export some path names to config.h dnl ************************************************************* AC_DEFINE_UNQUOTED(NFS_STATEDIR, "$statedir", [This defines the location of the NFS state files. Warning: this must match definitions in config.mk!]) +AC_DEFINE_UNQUOTED(MOUNTOPTS_CONFFILE, "$mountconfig", [This defines the location of the NFS mount configuration file]) if test "x$cross_compiling" = "xno"; then CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"} -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html