summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 556f809ab4a..5615234ca0e 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 5275b90936c..5d9c579cfd5 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 *