s4-waf: another place where broken ln -f on solaris8 matters
[nivanova/samba-autobuild/.git] / source4 / heimdal_build / wscript_build
index abae682fd7d65c92654a15e32b9dd32682f051b9..5240206e0dde600174292a4c03b6bfbe072339dc 100644 (file)
@@ -251,6 +251,23 @@ bld.SAMBA_SUBSYSTEM('HEIMDAL_GSSAPI',
        )
 
 
+bld.SAMBA_GENERATOR(
+    name="HEIMDAL_IFADDRS_H",
+    rule="rm -f ${TGT} && ln ${SRC} ${TGT}",
+    source = 'ifaddrs.hin',
+    target = 'ifaddrs.h',
+    enabled = not bld.CONFIG_SET('HAVE_IFADDRS_H')
+    )
+
+bld.SAMBA_GENERATOR(
+    group='build_compiler_source',
+    name="HEIMDAL_ERR_H",
+    rule="rm -f ${TGT} && ln ${SRC} ${TGT}",
+    source = '../heimdal/lib/roken/err.hin',
+    target = '../heimdal/lib/roken/err.h',
+    enabled = not bld.CONFIG_SET('HAVE_ERR_H')
+    )
+
 bld.SAMBA_SUBSYSTEM('HEIMDAL_KRB5',
                     bld.SUBDIR('../heimdal/lib/krb5/',
                                '''acache.c add_et_list.c
@@ -377,7 +394,7 @@ bld.SAMBA_SUBSYSTEM('HEIMDAL_COM_ERR',
 bld.SAMBA_BINARY('asn1_compile',
        '../heimdal/lib/asn1/main.c ../heimdal/lib/asn1/gen.c ../heimdal/lib/asn1/gen_copy.c ../heimdal/lib/asn1/gen_decode.c ../heimdal/lib/asn1/gen_encode.c ../heimdal/lib/asn1/gen_free.c ../heimdal/lib/asn1/gen_glue.c ../heimdal/lib/asn1/gen_length.c ../heimdal/lib/asn1/gen_seq.c ../heimdal/lib/asn1/hash.c ../heimdal/lib/asn1/symbol.c ../heimdal/lib/asn1/asn1parse.c ../heimdal/lib/asn1/lex.c ../heimdal/lib/vers/print_version.c',
        use_hostcc=True,
-        cflags='-DSOCKET_WRAPPER_DISABLE=1 -DNSS_WRAPPER_DISABLE=1 -D_SAMBA_HOSTCC_ -DFOO1',
+        cflags='-DSOCKET_WRAPPER_DISABLE=1 -DNSS_WRAPPER_DISABLE=1 -D_SAMBA_HOSTCC_',
         includes='../heimdal/lib/asn1 ../heimdal/lib/roken',
         group='build_compilers',
        deps='HEIMDAL_ROKEN_H replace',
@@ -388,8 +405,9 @@ bld.SAMBA_BINARY('asn1_compile',
 bld.SAMBA_BINARY('compile_et',
        '../heimdal/lib/vers/print_version.c ../heimdal/lib/com_err/parse.c ../heimdal/lib/com_err/lex.c ../heimdal/lib/com_err/compile_et.c',
        use_hostcc=True,
+       includes='../heimdal/lib/com_err',
         group='build_compilers',
-        cflags='-DSOCKET_WRAPPER_DISABLE=1 -DNSS_WRAPPER_DISABLE=1 -D_SAMBA_HOSTCC_ -DFOO2',
+        cflags='-DSOCKET_WRAPPER_DISABLE=1 -DNSS_WRAPPER_DISABLE=1 -D_SAMBA_HOSTCC_',
        deps='HEIMDAL_ROKEN_H replace',
         install=False
        )
@@ -405,7 +423,6 @@ bld.SAMBA_BINARY('samba4kinit',
 
 bld.SAMBA_BINARY('samba4kpasswd',
        '../heimdal/kpasswd/kpasswd.c ../heimdal/lib/vers/print_version.c',
-        cflags='-DFOO3',
         includes='../heimdal/lib/roken',
        deps='HEIMDAL_KRB5 HEIMDAL_NTLM',
         install=False
@@ -413,7 +430,7 @@ bld.SAMBA_BINARY('samba4kpasswd',
 
 
 bld.SAMBA_BINARY('rkpty',
-       '../heimdal/lib/roken/rkpty.c ../../lib/socket_wrapper/socket_wrapper.c',
+       '../heimdal/lib/roken/rkpty.c',
        deps='HEIMDAL_ROKEN OPENPTY',
         cflags='-DPACKAGE="Samba"',
         install=False