wafsamba: Use project name variable rather than hardcoding 'samba4'.
authorJelmer Vernooij <jelmer@samba.org>
Fri, 5 Nov 2010 01:08:44 +0000 (02:08 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 5 Nov 2010 02:06:06 +0000 (02:06 +0000)
Suggested-By: Andrew Tridgell <tridge@samba.org>
buildtools/wafsamba/wscript

index 78ccaa77f21fb1ece843011e0431a39031b8b4d4..6913f63c91727d67f024c3464f7797e8a80c2650 100644 (file)
@@ -67,7 +67,7 @@ def set_options(opt):
                    action="store", dest='MODULESDIR', default='${PREFIX}/modules')
 
     opt.add_option('--with-privatelibdir',
-                   help=("private library directory [PREFIX/lib/samba4]"),
+                   help=("private library directory [PREFIX/lib/%s]" % Utils.g_module.APPNAME),
                    action="store", dest='PRIVATELIBDIR', default=None)
 
     gr = opt.option_group('developer options')
@@ -268,7 +268,7 @@ def configure(conf):
         conf.env.RPATH_ON_INSTALL = (conf.env.RPATH_ON_BUILD and
                                      not Options.options.disable_rpath_install)
         if not conf.env.PRIVATELIBDIR:
-            conf.env.PRIVATELIBDIR = '${PREFIX}/lib/samba4'
+            conf.env.PRIVATELIBDIR = '${PREFIX}/lib/%s' % Utils.g_module.APPNAME
         conf.env.RPATH_ON_INSTALL_PRIVATE = (
             not Options.options.disable_rpath_private_install)
     else: