summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarshavardhana Ranganath <harsha@gluster.com>2009-12-04 20:42:55 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-12-06 02:30:10 -0800
commita2d7ca2ee22de61bf43525e4a8a2928ce6dd8851 (patch)
treea35f7e9c2d066f43b3673c13205b2067f050464f
parentb5da78348291435b2f711018c529c83dc824cff8 (diff)
glusterfs-volgen honours now build level prefix.
Signed-off-by: Harshavardhana <harsha@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 437 (Fix critical argument validation check on Fedora11 systems) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=437
-rw-r--r--configure.ac1
-rwxr-xr-xextras/volgen/glusterfs-volgen.in (renamed from extras/volgen/glusterfs-volgen)6
2 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 556f809ab..5615234ca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -125,6 +125,7 @@ AC_CONFIG_FILES([Makefile
extras/init.d/glusterfsd-SuSE
extras/benchmarking/Makefile
extras/volgen/Makefile
+ extras/volgen/glusterfs-volgen
contrib/Makefile
contrib/fuse-util/Makefile
glusterfs.spec])
diff --git a/extras/volgen/glusterfs-volgen b/extras/volgen/glusterfs-volgen.in
index 5275b9093..5d9c579cf 100755
--- a/extras/volgen/glusterfs-volgen
+++ b/extras/volgen/glusterfs-volgen.in
@@ -3,8 +3,10 @@
import getopt, sys, os, string
from optparse import OptionParser,OptionGroup,make_option
-if not "/usr/share/glusterfs" in sys.path:
- sys.path.append("/usr/share/glusterfs")
+prefix = "@prefix@"
+
+if not (prefix + "/share/glusterfs") in sys.path:
+ sys.path.append(prefix + "/share/glusterfs")
from CreateVolfile import *
from CreateBooster import *