From 7829fe89c152888f737dfd0e05850bc28671991d Mon Sep 17 00:00:00 2001
From: Neil Brown <neilb@suse.de>
Date: Tue, 20 Mar 2007 11:50:14 +1100
Subject: [PATCH] sm-notify - use state directory provided via ./configure

---
 utils/statd/sm-notify.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/utils/statd/sm-notify.c b/utils/statd/sm-notify.c
index 0ea3977..b7a5dd5 100644
--- a/utils/statd/sm-notify.c
+++ b/utils/statd/sm-notify.c
@@ -25,7 +25,11 @@
 #include <grp.h>
 
 #ifndef BASEDIR
-#define BASEDIR		"/var/lib/nfs"
+# ifdef NFS_STATEDIR
+#  define BASEDIR		NFS_STATEDIR
+# else
+#  define BASEDIR		"/var/lib/nfs"
+# endif
 #endif
 
 #define DEFAULT_SM_STATE_PATH	BASEDIR "/state"
-- 
2.39.5