Author: mvidner
Date: Thu Jul 17 14:21:31 2008
New Revision: 49216
URL: http://svn.opensuse.org/viewcvs/yast?rev=49216&view=rev
Log:
Check GCC version and use to get rid of
warnings. It needs yast2-devtools-2.17.2 but fails
gracefully.
Modified:
trunk/core/VERSION
trunk/core/configure.in.in
trunk/core/package/yast2-core.changes
trunk/core/yast2-core.pc.in
Modified: trunk/core/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/VERSION?rev=49216&r1=49215&r2=49216&view=diff
==============================================================================
--- trunk/core/VERSION (original)
+++ trunk/core/VERSION Thu Jul 17 14:21:31 2008
@@ -1 +1 @@
-2.17.1
+2.17.2
Modified: trunk/core/configure.in.in
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/configure.in.in?rev=49216&r1=49215&r2=49216&view=diff
==============================================================================
--- trunk/core/configure.in.in (original)
+++ trunk/core/configure.in.in Thu Jul 17 14:21:31 2008
@@ -52,6 +52,28 @@
$(top_builddir)/liby2/src/liby2.la dnl
${Y2UTIL_LIBS}'
+## produces ugly warnings in gcc 4.3, but its replacement,
+## , is in C++0x which is not stablilized yet.
+## More importantly, this thing is in a public header so we need to propagate
+## the findings to yast2-core users
+AC_PROG_CXX
+AC_MSG_CHECKING([for version of C++ standard])
+GCCVER=`$CXX -v 2>&1 | tail -n1`
+case "$GCCVER" in
+ "gcc version 4.3*")
+dnl we need a HAVE_* flag for a public header, yuck
+dnl AC_DEFINE([HAVE_CXX0X], 1, [Define to 1 if the c++ compiler knows and the like])
+dnl Y2CORE_CFLAGS="-std=c++0x"
+ Y2CORE_CFLAGS="-std=c++0x -DHAVE_CXX0X"
+ AC_MSG_RESULT([c++0x])
+ ;;
+ *)
+ Y2CORE_CFLAGS=""
+ AC_MSG_RESULT([older than c++0x])
+ ;;
+esac
+AC_SUBST(Y2CORE_CFLAGS) dnl included in {C,CXX}FLAGS in YAST2-CHECKS-PROGRAM
+
AX_CHECK_DOCBOOK
CREATE_PKGCONFIG=true
## some common checks
@@ -60,6 +82,7 @@
@YAST2-CHECKS-TESTSUITE@
## check for blocxx
+dnl FIXME assumes PCRE
AC_CHECK_HEADER(blocxx/BLOCXX_config.h, [yast_found_blocxx=yes])
if [[ "$yast_found_blocxx" != "yes" ]]; then
AC_MSG_ERROR(Headers for blocxx are missing. Please install the package blocxx-devel.)
Modified: trunk/core/package/yast2-core.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/package/yast2-core.changes?rev=49216&r1=49215&r2=49216&view=diff
==============================================================================
--- trunk/core/package/yast2-core.changes (original)
+++ trunk/core/package/yast2-core.changes Thu Jul 17 14:21:31 2008
@@ -1,4 +1,12 @@
-------------------------------------------------------------------
+Thu Jul 17 14:20:14 CEST 2008 - mvidner@suse.cz
+
+- Check GCC version and use to get rid of
+ warnings. It needs yast2-devtools-2.17.2 but fails
+ gracefully.
+- 2.17.2
+
+-------------------------------------------------------------------
Fri Jun 20 15:29:36 CEST 2008 - aschnell@suse.de
- Added list::reduce builtin.
Modified: trunk/core/yast2-core.pc.in
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/yast2-core.pc.in?rev=49216&r1=49215&r2=49216&view=diff
==============================================================================
--- trunk/core/yast2-core.pc.in (original)
+++ trunk/core/yast2-core.pc.in Thu Jul 17 14:21:31 2008
@@ -18,6 +18,8 @@
yast2dir=@yast2dir@
ybindir=@ybindir@
+Cflags: @Y2CORE_CFLAGS@
+
Name: @RPMNAME@
Version: @VERSION@
Description: YaST2 package "@RPMNAME@"
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org