[evolution-data-server/intel-work-3-12] Added support for libphonenumber >= r568
- From: Mateusz Polrola <mpolrola src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/intel-work-3-12] Added support for libphonenumber >= r568
- Date: Mon, 2 Jun 2014 06:21:32 +0000 (UTC)
commit 3512bdb1f823ad9ff8b0b6f0a85b671da5c812c0
Author: Mateusz Polrola <mateusz polrola gmail com>
Date: Mon Jun 2 08:17:09 2014 +0200
Added support for libphonenumber >= r568
Cherry picked from commit in master:
Bug 730827 - Cannot use libphonenumber >= r568 f8e6b6f
Fixes BGO #730827
m4/evo_phonenumber.m4 | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/m4/evo_phonenumber.m4 b/m4/evo_phonenumber.m4
index 0cc493f..6e9a290 100644
--- a/m4/evo_phonenumber.m4
+++ b/m4/evo_phonenumber.m4
@@ -47,10 +47,11 @@ AC_DEFUN([EVO_PHONENUMBER_SUPPORT],[
AS_VAR_IF([with_phonenumber], [no],, [
AC_LANG_PUSH(C++)
+ PHONENUMBER_INCLUDES="-DI18N_PHONENUMBERS_USE_BOOST"
PHONENUMBER_LIBS="-lphonenumber"
AS_VAR_IF([evo_phonenumber_prefix],,,[
- PHONENUMBER_INCLUDES="-I$evo_phonenumber_prefix/include"
+ PHONENUMBER_INCLUDES="-I$evo_phonenumber_prefix/include $PHONENUMBER_INCLUDES"
PHONENUMBER_LIBS="-L$evo_phonenumber_prefix/lib $PHONENUMBER_LIBS"
])
@@ -93,12 +94,12 @@ AC_DEFUN([EVO_PHONENUMBER_SUPPORT],[
AC_RUN_IFELSE(
[AC_LANG_PROGRAM(
[[#include <phonenumbers/phonenumberutil.h>]],
- [[namespace pn = i18n::phonenumbers;i18n::phonenumbers;
+ [[namespace pn = i18n::phonenumbers;
pn::PhoneNumber n;
if (pn::PhoneNumberUtil::GetInstance ()->
- Parse("049(800)46663", "DE", &) ==
pn::PhoneNumberUtil::NO_PARSING_ERROR
+ Parse("049(800)46663", "DE", &n) ==
pn::PhoneNumberUtil::NO_PARSING_ERROR
&& n.has_country_code_source ()
&& n.country_code_source () == 49)
return EXIT_SUCCESS;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]