s4-waf: added test for dlopen prototype
authorAndrew Tridgell <tridge@samba.org>
Tue, 30 Mar 2010 02:14:01 +0000 (13:14 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:18 +0000 (20:27 +1000)
lib/replace/wscript

index 12ccd395a22f8a8d45181c4c05bef7132ad7131d..7c060a92e647a7349ee9ca131f71ea6194fcdf98 100644 (file)
@@ -128,6 +128,9 @@ def configure(conf):
     conf.CHECK_FUNCS_IN('dlopen dlsym dlerror dlclose', 'dl',
                         checklibc=True, headers='dlfcn.h dl.h')
 
+    conf.CHECK_C_PROTOTYPE('dlopen', 'void *dlopen(const char* filename, unsigned int flags)',
+                           define='DLOPEN_TAKES_UNSIGNED_FLAGS', headers='dlfcn.h dl.h')
+
     conf.CHECK_FUNCS_IN('fdatasync', 'rt', checklibc=True)
 
     # these headers need to be tested as a group on freebsd