build: Also look for iconv in /usr/local by default
authorAndrew Bartlett <abartlet@samba.org>
Thu, 17 May 2012 22:28:18 +0000 (08:28 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 18 May 2012 05:44:43 +0000 (15:44 +1000)
This should help the build find iconv on FreeBSD and similar systems,
and make it possible to operate with 8-bit character sets.

Andrew Bartlett

buildtools/wafsamba/wscript

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