summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index c2e545f882..5c1975bf5f 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -1,5 +1,5 @@
-srcdir = '.'
-blddir = 'build'
+srcdir = '../..'
+blddir = 'bin'
import Options, os, wafsamba
@@ -89,6 +89,7 @@ def configure(conf):
conf.CHECK_FUNCS('timegm getifaddrs freeifaddrs')
conf.CHECK_FUNCS_IN('dlopen dlsym dlerror dlclose', 'dl')
+ conf.CHECK_FUNCS_IN('poptGetContext', 'popt')
conf.check_cc(fragment='''
#include <stdarg.h>
@@ -153,6 +154,8 @@ def build(bld):
REPLACE_SOURCE = 'replace.c snprintf.c'
+ bld.SAMBA_BUILD_ENV()
+
bld.SAMBA_LIBRARY('replace',
REPLACE_SOURCE)