svn commit: samba r14621 - in branches/SAMBA_4_0/source/build: m4 smb_build

jelmer at samba.org jelmer at samba.org
Tue Mar 21 14:36:56 GMT 2006


Author: jelmer
Date: 2006-03-21 14:36:56 +0000 (Tue, 21 Mar 2006)
New Revision: 14621

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14621

Log:
Define HAVE_IMMEDIATE_STRUCTURES for those using Samba headers, 
so people don't end up with different sizes for NTSTATUS...

Modified:
   branches/SAMBA_4_0/source/build/m4/check_cc.m4
   branches/SAMBA_4_0/source/build/smb_build/env.pm


Changeset:
Modified: branches/SAMBA_4_0/source/build/m4/check_cc.m4
===================================================================
--- branches/SAMBA_4_0/source/build/m4/check_cc.m4	2006-03-21 13:54:23 UTC (rev 14620)
+++ branches/SAMBA_4_0/source/build/m4/check_cc.m4	2006-03-21 14:36:56 UTC (rev 14621)
@@ -65,6 +65,7 @@
 if test x"$samba_cv_immediate_structures" = x"yes"; then
    AC_DEFINE(HAVE_IMMEDIATE_STRUCTURES,1,[Whether the compiler supports immediate structures])
 fi
+AC_SUBST(samba_cv_immediate_structures)
 
 ############################################
 # check if the compiler handles c99 struct initialization

Modified: branches/SAMBA_4_0/source/build/smb_build/env.pm
===================================================================
--- branches/SAMBA_4_0/source/build/smb_build/env.pm	2006-03-21 13:54:23 UTC (rev 14620)
+++ branches/SAMBA_4_0/source/build/smb_build/env.pm	2006-03-21 14:36:56 UTC (rev 14621)
@@ -57,6 +57,10 @@
 
 	print __FILE__.": creating $path\n";
 
+	if ($self->{config}->{samba_cv_immediate_structures} eq "yes") {
+		$cflags .= " -DHAVE_IMMEDIATE_STRUCTURES=1";
+	}
+
 	open(OUT, ">$path") or die("Can't open $path: $!");
 
 	print OUT <<"__EOF__";



More information about the samba-cvs mailing list