Skip to content

Commit

Permalink
headers: cope with non-system popt in test_headers
Browse files Browse the repository at this point in the history
Autobuild-User: Andrew Tridgell <[email protected]>
Autobuild-Date: Wed Mar 16 09:09:40 CET 2011 on sn-devel-104
  • Loading branch information
Andrew Tridgell committed Mar 16, 2011
1 parent 3cfa821 commit 46384cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion testsuite/headers/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ bld.SAMBA_GENERATOR('test_headers.h',
target='test_headers.h')

cflags=''
for lib in ['talloc', 'tevent', 'tdb', 'ldb' ]:
for lib in ['talloc', 'tevent', 'tdb', 'ldb', 'popt' ]:
ename = 'CPPPATH_%s' % lib.upper()
for p in bld.env[ename]:
cflags += bld.env.CPPPATH_ST % p + ' '

if not bld.env.USING_SYSTEM_POPT:
cflags += bld.env.CPPPATH_ST % '../lib/popt'

if bld.env.DEVELOPER_MODE:
bld.SAMBA_BINARY('test_headers',
source='test_headers.c',
Expand Down

0 comments on commit 46384cf

Please sign in to comment.