~ubuntu-branches/ubuntu/natty/evolution-data-server/natty

« back to all changes in this revision

Viewing changes to libdb/dist/aclocal/gcc.ac

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Version 2.96 of gcc (shipped with RedHat Linux 7.[01] and Mandrake) had
2
 
# serious problems.
3
 
AC_DEFUN(AC_GCC_CONFIG1, [
4
 
AC_CACHE_CHECK([whether we are using gcc version 2.96],
5
 
db_cv_gcc_2_96, [
6
 
db_cv_gcc_2_96=no
7
 
if test "$GCC" = "yes"; then
8
 
        GCC_VERSION=`${MAKEFILE_CC} --version`
9
 
        case ${GCC_VERSION} in
10
 
        2.96*)
11
 
                db_cv_gcc_2_96=yes;;
12
 
        esac
13
 
fi])
14
 
if test "$db_cv_gcc_2_96" = "yes"; then
15
 
        CFLAGS=`echo "$CFLAGS" | sed 's/-O2/-O/'`
16
 
        CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2/-O/'`
17
 
        AC_MSG_WARN([INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE.])
18
 
        AC_MSG_WARN([GCC OPTIMIZATION LEVEL SET TO -O.])
19
 
fi])
20
 
 
21
 
# Versions of g++ up to 2.8.0 required -fhandle-exceptions, but it is
22
 
# renamed as -fexceptions and is the default in versions 2.8.0 and after.
23
 
AC_DEFUN(AC_GCC_CONFIG2, [
24
 
AC_CACHE_CHECK([whether g++ requires -fhandle-exceptions],
25
 
db_cv_gxx_except, [
26
 
db_cv_gxx_except=no;
27
 
if test "$GXX" = "yes"; then
28
 
        GXX_VERSION=`${MAKEFILE_CXX} --version`
29
 
        case ${GXX_VERSION} in
30
 
        1.*|2.[[01234567]].*|*-1.*|*-2.[[01234567]].*)
31
 
                db_cv_gxx_except=yes;;
32
 
        esac
33
 
fi])
34
 
if test "$db_cv_gxx_except" = "yes"; then
35
 
        CXXFLAGS="$CXXFLAGS -fhandle-exceptions"
36
 
fi])