/[gentoo-x86]/eclass/php-common-r1.eclass
Gentoo

Diff of /eclass/php-common-r1.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.12 Revision 1.13
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/php-common-r1.eclass,v 1.12 2007/11/29 23:11:04 jokey Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-common-r1.eclass,v 1.13 2008/03/03 17:05:06 jokey Exp $
4 4
5# Based on robbat2's work on the php4 sapi eclass 5# Based on robbat2's work on the php4 sapi eclass
6# Based on stuart's work on the php5 sapi eclass 6# Based on stuart's work on the php5 sapi eclass
7 7
8# @ECLASS: php-common-r1.eclass 8# @ECLASS: php-common-r1.eclass
18# ======================================================================== 18# ========================================================================
19# CFLAG SANITY 19# CFLAG SANITY
20# ======================================================================== 20# ========================================================================
21 21
22php_check_cflags() { 22php_check_cflags() {
23 # Filter the following from C[XX]FLAGS regardless, as apache won't be
24 # supporting LFS until 2.2 is released and in the tree. Fixes bug #24373.
25 filter-flags "-D_FILE_OFFSET_BITS=64"
26 filter-flags "-D_FILE_OFFSET_BITS=32"
27 filter-flags "-D_LARGEFILE_SOURCE=1"
28 filter-flags "-D_LARGEFILE_SOURCE"
29
30 # Fixes bug #14067. 23 # Fixes bug #14067.
31 # Changed order to run it in reverse for bug #32022 and #12021. 24 # Changed order to run it in reverse for bug #32022 and #12021.
32 replace-flags "-march=k6-3" "-march=i586" 25 replace-cpu-flags "k6*" "i586"
33 replace-flags "-march=k6-2" "-march=i586"
34 replace-flags "-march=k6" "-march=i586"
35} 26}
36 27
37# ======================================================================== 28# ========================================================================
38# IMAP SUPPORT 29# IMAP SUPPORT
39# ======================================================================== 30# ========================================================================
54 if built_with_use virtual/imap-c-client ssl ; then 45 if built_with_use virtual/imap-c-client ssl ; then
55 eerror 46 eerror
56 eerror "IMAP without SSL requested, but your IMAP C-Client libraries are built with SSL!" 47 eerror "IMAP without SSL requested, but your IMAP C-Client libraries are built with SSL!"
57 eerror 48 eerror
58 die "Please recompile the IMAP C-Client libraries with SSL support disabled" 49 die "Please recompile the IMAP C-Client libraries with SSL support disabled"
50 fi
51 fi
52
53 if use "kolab" || phpconfutils_usecheck "kolab" ; then
54 if ! built_with_use net-libs/c-client kolab ; then
55 eerror
56 eerror "IMAP with annotations support requested, but net-libs/c-client is built without it!"
57 eerror
58 die "Please recompile net-libs/c-client with USE=kolab."
59 fi 59 fi
60 fi 60 fi
61} 61}
62 62
63# ======================================================================== 63# ========================================================================

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20