build: fix name of libs with - in them
authorAndrew Tridgell <tridge@samba.org>
Sun, 7 Mar 2010 06:54:05 +0000 (17:54 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:44 +0000 (20:26 +1000)
buildtools/wafsamba/samba_autoconf.py

index 9966b32d5aff036b65528a20053b23b4550cf49c..84f6a2d10f3ebe475de1a7a6d54fe119a2839d9d 100644 (file)
@@ -280,7 +280,7 @@ def CHECK_FUNCS_IN(conf, list, library, mandatory=False, checklibc=False):
         LOCAL_CACHE_SET(conf, 'EMPTY_TARGETS', library.upper(), True)
         return False
 
-    conf.define('HAVE_LIB%s' % library.upper(), 1)
+    conf.define('HAVE_LIB%s' % string.replace(library.upper(),'-','_'), 1)
 
     ret = True
     for f in remaining: