1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

third_party/iniparser: Initial support for iniparser.

This is the initial support for iniparser, as well the basic
third_party framework.

Signed-off-by: Ira Cooper <ira@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ira Cooper
2014-07-17 18:04:35 -04:00
parent cdbcb7bb4b
commit f46b79bdb8
5 changed files with 28 additions and 3 deletions

View File

@ -0,0 +1,15 @@
# functions to support third party libraries
from Configure import conf
import sys, Logs, os
from samba_bundled import *
@conf
def CHECK_FOR_THIRD_PARTY(conf):
return os.path.exists('third_party')
Build.BuildContext.CHECK_FOR_THIRD_PARTY = CHECK_FOR_THIRD_PARTY
@conf
def CHECK_INIPARSER(conf):
return conf.CHECK_BUNDLED_SYSTEM('iniparser', checkfunctions='iniparser_load', headers='iniparser.h')

View File

@ -18,6 +18,7 @@ from samba_autoproto import *
from samba_python import *
from samba_deps import *
from samba_bundled import *
from samba_third_party import *
import samba_install
import samba_conftests
import samba_abi

View File

@ -5,7 +5,7 @@ import Options
def configure(conf):
conf.CHECK_HEADERS('float.h')
if conf.CHECK_BUNDLED_SYSTEM('iniparser', checkfunctions='iniparser_load', headers='iniparser.h'):
if conf.CHECK_INIPARSER():
conf.define('USING_SYSTEM_INIPARSER', 1)
def build(bld):

10
wscript
View File

@ -120,6 +120,15 @@ def configure(conf):
raise Utils.WafError('Python version 3.x is not supported by Samba yet')
conf.RECURSE('dynconfig')
if conf.CHECK_FOR_THIRD_PARTY():
conf.RECURSE('third_party/iniparser/src')
else:
if not conf.CHECK_INIPARSER():
raise Utils.WafError('iniparser development packages have not been found.\nIf third_party is installed, check that it is in the proper place.')
else:
conf.define('USING_SYSTEM_INIPARSER', 1)
conf.RECURSE('lib/ldb')
if Options.options.with_system_mitkrb5:
@ -146,7 +155,6 @@ def configure(conf):
conf.RECURSE('lib/socket_wrapper')
conf.RECURSE('lib/uid_wrapper')
conf.RECURSE('lib/popt')
conf.RECURSE('lib/iniparser/src')
conf.RECURSE('lib/subunit/c')
conf.RECURSE('libcli/smbreadline')
conf.RECURSE('lib/crypto')

View File

@ -71,8 +71,9 @@ bld.RECURSE('source4/lib/cmdline')
bld.RECURSE('lib/socket_wrapper')
bld.RECURSE('lib/nss_wrapper')
bld.RECURSE('lib/uid_wrapper')
if bld.CHECK_FOR_THIRD_PARTY():
bld.RECURSE('third_party/iniparser/src')
bld.RECURSE('lib/popt')
bld.RECURSE('lib/iniparser/src')
bld.RECURSE('source4/lib/stream')
bld.RECURSE('lib/afs')
bld.RECURSE('lib/util')