dnl YAZ Toolkit, Index Data 1995-2007
dnl See the file LICENSE for details.
-dnl $Id: configure.ac,v 1.95 2007-10-22 12:21:38 adam Exp $
+dnl $Id: configure.ac,v 1.96 2007-11-08 08:17:17 adam Exp $
AC_PREREQ(2.59)
AC_INIT([yaz],[3.0.15],[yaz-help@indexdata.dk])
AC_CONFIG_SRCDIR(configure.ac)
AC_SUBST(YAZ_CONFIG_CFLAGS)
dnl
dnl
-AC_CHECK_ICU(3.6, [],
- AC_MSG_WARN([For ICU internationalizing support please install libicu36-dev
- or similar]))
-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 ------ GNU threads
HAVETHREADS=0
AC_ARG_ENABLE(pth, [ --enable-pth enable GNU threads],[enable_pth=$enableval],[enable_pth=no])
* Copyright (C) 1995-2007, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: icu_I18N.c,v 1.12 2007-11-07 10:19:12 adam Exp $
+ * $Id: icu_I18N.c,v 1.13 2007-11-08 08:17:17 adam Exp $
*/
#if HAVE_CONFIG_H
#endif
-#if HAVE_ICU
+#if YAZ_HAVE_ICU
#include <yaz/icu_I18N.h>
#include <yaz/log.h>
}
-
-
-#endif /* HAVE_ICU */
+#endif /* YAZ_HAVE_ICU */
-/* $Id: tst_icu_I18N.c,v 1.11 2007-10-29 13:50:57 marc Exp $
+/* $Id: tst_icu_I18N.c,v 1.12 2007-11-08 08:17:18 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
#include <yaz/test.h>
-#if HAVE_ICU
+#if YAZ_HAVE_ICU
#include <yaz/icu_I18N.h>
#include <string.h>
YAZ_CHECK(icu_chain_assign_cstr(chain, en_str, &status));
- //printf("ICU chain:\ninput: '%s'\n", en_str);
while (icu_chain_next_token(chain, &status)){
;
/* printf("%d '%s' '%s'\n",
icu_chain_destroy(chain);
}
-#endif // HAVE_ICU
+#endif /* YAZ_HAVE_ICU */
/* DO NOT EDIT THIS FILE IF YOUR EDITOR DOES NOT SUPPORT UTF-8 */
YAZ_CHECK_INIT(argc, argv);
YAZ_CHECK_LOG();
-#if HAVE_ICU
+#if YAZ_HAVE_ICU
test_icu_I18N_casemap(argc, argv);
test_icu_I18N_sortmap(argc, argv);
test_chain_empty_chain();
test_bug_1140();
-#else /* HAVE_ICU */
+#else /* YAZ_HAVE_ICU */
printf("ICU unit tests omitted.\n"
"Please install libicu36-dev and icu-doc or similar\n");
YAZ_CHECK(0 == 0);
-#endif /* HAVE_ICU */
+#endif /* YAZ_HAVE_ICU */
YAZ_CHECK_TERM;
}
* Copyright (C) 1995-2007, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: yaz-icu.c,v 1.8 2007-11-07 09:50:24 adam Exp $
+ * $Id: yaz-icu.c,v 1.9 2007-11-08 08:17:18 adam Exp $
*/
#if HAVE_CONFIG_H
#include <yaz/options.h>
-#if HAVE_ICU
+#if YAZ_HAVE_ICU
#include <unicode/ucnv.h>
#include <unicode/ustring.h>
free(line);
}
-#endif /* HAVE_ICU */
+#endif /* YAZ_HAVE_ICU */
int main(int argc, char **argv)
{
-#if HAVE_ICU
+#if YAZ_HAVE_ICU
read_params(argc, argv, &config);
if (config.print && strlen(config.print))
print_info(&config);
-#else /* HAVE_ICU */
+#else /* YAZ_HAVE_ICU */
printf("ICU not available on your system.\n"
"Please install libicu36-dev and icu-doc or similar, "
"re-configure and re-compile\n");
-#endif /* HAVE_ICU */
+#endif /* YAZ_HAVE_ICU */
return(0);
}