gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnokii configure.in ChangeLog common/libfunctio...


From: Helge Deller
Subject: gnokii configure.in ChangeLog common/libfunctio...
Date: Sun, 11 Jun 2006 15:06:40 +0000

CVSROOT:        /sources/gnokii
Module name:    gnokii
Changes by:     Helge Deller <deller>   06/06/11 15:06:40

Modified files:
        .              : configure.in ChangeLog 
        common         : libfunctions.c 

Log message:
        * build environment updates
          o add checks for -Wno-pointer-sign and -fvisibility=hidden,
            add usage of __attribute__((deprecated)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnokii/configure.in?cvsroot=gnokii&r1=1.156&r2=1.157
http://cvs.savannah.gnu.org/viewcvs/gnokii/ChangeLog?cvsroot=gnokii&r1=1.1192&r2=1.1193
http://cvs.savannah.gnu.org/viewcvs/gnokii/common/libfunctions.c?cvsroot=gnokii&r1=1.20&r2=1.21

Patches:
Index: configure.in
===================================================================
RCS file: /sources/gnokii/gnokii/configure.in,v
retrieving revision 1.156
retrieving revision 1.157
diff -u -b -r1.156 -r1.157
--- configure.in        30 Apr 2006 12:31:03 -0000      1.156
+++ configure.in        11 Jun 2006 15:06:40 -0000      1.157
@@ -4,7 +4,7 @@
 dnl                2000 Karel Zak, Pawe³ Kot
 dnl                2002 BORBELY Zoltan
 dnl
-dnl  $Id: configure.in,v 1.156 2006/04/30 12:31:03 pkot Exp $
+dnl  $Id: configure.in,v 1.157 2006/06/11 15:06:40 deller Exp $
 dnl
 
 AC_INIT(gnokii/gnokii.c)
@@ -68,7 +68,7 @@
        [  --enable-fulldebug      compile with full debugging support],
        [ if test x$enable_fulldebug = xyes; then
                if test "x$GCC" = "xyes"; then
-                       CFLAGS="-ggdb3 -Wall"
+                       CFLAGS="$CFLAGS -ggdb3 -Wall"
                fi
          fi ]
 )
@@ -101,11 +101,40 @@
        AC_DEFINE(RLP_DEBUG)
 fi
 
-dnl ======================== Set CFLAGS if not set
-if test "x$CFLAGS" = "x"; then
-       CFLAGS="-O2 -Wall"
+dnl ======================== Set gcc CFLAGS if we use gcc
+if test "x$GCC" = "xyes"; then
+       CFLAGS="$CFLAGS -Wall"
+fi
+
+dnl ======================== Set some gcc CFLAGS to reduce build warnings
+if test "x$GCC" = "xyes"; then
+  OLD_CFLAGS="$CFLAGS"
+
+  CFLAGS="-Wno-pointer-sign"
+  AC_MSG_CHECKING(if gcc supports $CFLAGS compiler option)
+  AC_TRY_COMPILE( [], [ int main() { return 0; } ],
+               ac_cv_have_no_pointer_sign=yes,
+               ac_cv_have_no_pointer_sign=no)
+  AC_MSG_RESULT($ac_cv_have_no_pointer_sign)
+  CFLAGS="-fvisibility=hidden"
+  AC_MSG_CHECKING(if gcc supports $CFLAGS compiler option)
+  AC_TRY_COMPILE( [], [ int main() { return 0; } ],
+               ac_cv_have_hidden_visibility=yes,
+               ac_cv_have_hidden_visibility=no)
+  AC_MSG_RESULT($ac_cv_have_hidden_visibility)
+
+  CFLAGS="$OLD_CFLAGS"
+  if test $ac_cv_have_no_pointer_sign = yes; then
+    CFLAGS="$CFLAGS -Wno-pointer-sign"
+  fi
+  if test $ac_cv_have_hidden_visibility = yes; then
+    CFLAGS="$CFLAGS -fvisibility=hidden"
+  fi
 fi
 
+dnl ======================== avoid deprecated warnings here
+CFLAGS="$CFLAGS -DGNOKII_DEPRECATED=''"
+
 dnl ======================== Checks for libraries.
 
 AC_ARG_WITH(libpthread,

Index: ChangeLog
===================================================================
RCS file: /sources/gnokii/gnokii/ChangeLog,v
retrieving revision 1.1192
retrieving revision 1.1193
diff -u -b -r1.1192 -r1.1193
--- ChangeLog   11 Jun 2006 14:08:41 -0000      1.1192
+++ ChangeLog   11 Jun 2006 15:06:40 -0000      1.1193
@@ -105,6 +105,9 @@
  * gnokii updates
     o make --setlogo exit with a valid error code after all errors
                                                     (Daniele Forsi)
+ * build environment updates
+    o add checks for -Wno-pointer-sign and -fvisibility=hidden,
+      add usage of __attribute__((deprecated)        (Helge Deller)
 
 0.6.12
 ======

Index: common/libfunctions.c
===================================================================
RCS file: /sources/gnokii/gnokii/common/libfunctions.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- common/libfunctions.c       23 May 2006 22:41:32 -0000      1.20
+++ common/libfunctions.c       11 Jun 2006 15:06:40 -0000      1.21
@@ -1,5 +1,5 @@
 /*
-  $Id: libfunctions.c,v 1.20 2006/05/23 22:41:32 deller Exp $
+  $Id: libfunctions.c,v 1.21 2006/06/11 15:06:40 deller Exp $
 
   G N O K I I
 
@@ -37,7 +37,9 @@
 
 */
 
-#define GNOKII_DEPRECATED /* do not warn about deprecated functions here */
+#if !defined(GNOKII_DEPRECATED)
+# define GNOKII_DEPRECATED /* do not warn about deprecated functions here */
+#endif
 
 #include "config.h"
 #include "compat.h"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]