build: Add option to specify where gettext is (/usr/local by default)
authorAndriy Syrovenko <andriys@gmail.com>
Sat, 26 May 2012 20:29:44 +0000 (23:29 +0300)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 27 May 2012 03:16:47 +0000 (13:16 +1000)
This should help configure script to find gettext on FreeBSD and
(possibly) some other systems as well.

buildtools/wafsamba/wscript

index 7bf6a13fa9b3bce17cbae26acbcead871ba02caf..5e1898c435d77de51076b4566627ff50f3777323 100755 (executable)
@@ -78,9 +78,13 @@ def set_options(opt):
                    action="store", dest='PRIVATELIBDIR', default=None)
 
     opt.add_option('--with-libiconv',
-                   help='additional directory to search for for libiconv',
+                   help='additional directory to search for libiconv',
                    action='store', dest='iconv_open', default='/usr/local',
                    match = ['Checking for library iconv', 'Checking for iconv_open', 'Checking for header iconv.h'])
+    opt.add_option('--with-gettext',
+                   help='additional directory to search for gettext',
+                   action='store', dest='gettext_location', default='/usr/local',
+                   match = ['Checking for library intl', 'Checking for header libintl.h'])
 
     gr = opt.option_group('developer options')