summaryrefslogtreecommitdiff
blob: d5fc86491f287d12223172d11b9a3e91a510b120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- configure.ac.orig	2007-11-12 09:58:16.000000000 +0100
+++ configure.ac	2007-12-18 13:22:33.000000000 +0100
@@ -314,10 +314,14 @@
 AC_SUBST(YAZ_CONFIG_CFLAGS)
 dnl
 dnl 
-AC_CHECK_ICU([3.6],[
-	ICU_CPPFLAGS="$ICU_CPPFLAGS -D YAZ_HAVE_ICU=1"],[
-	AC_MSG_WARN([For ICU support please install libicu36-dev or similar])
-])
+dnl ------ ICU
+AC_ARG_ENABLE(icu, [  --enable-icu            enable ICU support],[enable_icu=$enableval],[enable_icu=no])
+if test "$enable_icu" = "yes"; then
+    AC_CHECK_ICU([3.6],[
+	    ICU_CPPFLAGS="$ICU_CPPFLAGS -D YAZ_HAVE_ICU=1"],[
+	    AC_MSG_ERROR([For ICU support please install libicu36-dev or similar])
+    ])
+fi
 dnl ------ GNU threads
 HAVETHREADS=0
 AC_ARG_ENABLE(pth, [  --enable-pth            enable GNU threads],[enable_pth=$enableval],[enable_pth=no])