[tracker] configure.ac: Use pkg-config to search for ICU



commit 7dbb63a3bb88e0efca38d962668444ffa86416d9
Author: Sam Thursfield <sam thursfield codethink co uk>
Date:   Thu Oct 10 18:59:12 2013 +0100

    configure.ac: Use pkg-config to search for ICU
    
    There has been support for pkg-config in ICU for at least four years,
    see: https://ssl.icu-project.org/trac/ticket/6981

 configure.ac |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9dcbbb7..f0a248f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -857,14 +857,11 @@ AC_CHECK_HEADER(uniwbrk.h,
 LIBUNISTRING_CFLAGS=""
 LIBUNISTRING_LIBS="-lunistring"
 
-# Check for libicu... Note that AC_CHECK_LIB cannot be used as
-#  symbol name includes libicu library version... don't want to
-#  look for ubrk_next_4_2
-AC_CHECK_HEADER(unicode/ubrk.h,
-                [have_libicu=yes],
-                [have_libicu=no])
-LIBICU_CFLAGS=""
-LIBICU_LIBS="-licuuc -licui18n"
+# Check for libicu...
+PKG_CHECK_MODULES(LIBICU,
+                  [icu-i18n icu-uc],
+                  [have_libicu=yes],
+                  [have_libicu=no])
 
 # Configure option
 AC_ARG_WITH([unicode-support],


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