[SCM] Samba Shared Repository - branch master updated

Björn Jacke bjacke at samba.org
Mon May 24 15:36:42 MDT 2010


The branch, master has been updated
       via  ff0872d... s3:configure: turn "error warnings" into errors
       via  24b3725... s3:configure: add Werror_FLAGS for IBM's xlc
      from  189950c... s4:dsdb_enum_group_mem - use "unsigned" counters

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit ff0872d59d78ad42212c88313ef924ea4eb7a8a1
Author: Björn Jacke <bj at sernet.de>
Date:   Mon May 24 23:34:00 2010 +0200

    s3:configure: turn "error warnings" into errors
    
    By default "Missing argument(s)" is just an "error warning" for xlc :-)
    The change to turn "error warnings" into errors should fix bug #7427.

commit 24b3725407f1a67e13a7646d2e3f26ed1e4735ff
Author: Björn Jacke <bj at sernet.de>
Date:   Mon May 24 23:28:44 2010 +0200

    s3:configure: add Werror_FLAGS for IBM's xlc

-----------------------------------------------------------------------

Summary of changes:
 source3/configure.in |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/configure.in b/source3/configure.in
index 0de524d..a97720c 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -264,7 +264,7 @@ else
 fi
 AC_SUBST(BROKEN_CC)
 
-dnl Check if the C compiler understands -Werror
+dnl Check if the C compiler understands -Werror (GNU)
 AC_CACHE_CHECK([that the C compiler understands -Werror],samba_cv_HAVE_Werror, [
  AC_TRY_RUN_STRICT([
   int main(void)
@@ -286,7 +286,7 @@ AC_CACHE_CHECK([that the C compiler understands -w2],samba_cv_HAVE_w2, [
 if test x"$samba_cv_HAVE_w2" = x"yes"; then
    Werror_FLAGS="-w2"
 else
-dnl Check if the C compiler understands -errwarn
+dnl Check if the C compiler understands -errwarn (Sun)
 AC_CACHE_CHECK([that the C compiler understands -errwarn],samba_cv_HAVE_errwarn, [
   AC_TRY_RUN_STRICT([
    int main(void)
@@ -297,6 +297,18 @@ AC_CACHE_CHECK([that the C compiler understands -errwarn],samba_cv_HAVE_errwarn,
 if test x"$samba_cv_HAVE_errwarn" = x"yes"; then
    Werror_FLAGS="-errwarn=%all"
 fi
+else
+dnl Check if the C compiler understands -qhalt (IBM)
+AC_CACHE_CHECK([that the C compiler understands -qhalt],samba_cv_HAVE_errwarn, [
+  AC_TRY_RUN_STRICT([
+   int main(void)
+   {
+	return 0;
+   }],[$CFLAGS -qhalt=w],[$CPPFLAGS],[$LDFLAGS],
+   samba_cv_HAVE_qhalt=yes,samba_cv_HAVE_qhalt=no,samba_cv_HAVE_qhalt=cross)])
+if test x"$samba_cv_HAVE_qhalt" = x"yes"; then
+   Werror_FLAGS="-qhalt=w"
+fi
 fi
 fi
 
@@ -1642,7 +1654,7 @@ DSO_EXPORTS=""
 			# .po will just create compile warnings, use po.o:
 			if test "${GCC}" != "yes"; then
 				## for funky AIX compiler using strncpy()
-				CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
+				CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000 -qhalt=e"
 			fi
 
 			AC_DEFINE(STAT_ST_BLOCKSIZE,DEV_BSIZE,[The size of a block])


-- 
Samba Shared Repository


More information about the samba-cvs mailing list