X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ficu_chain_test.c;h=9d4fdddd5e8b6dc5da1e2d50b6ddee73932f35ae;hb=9ee952e04b4765c49f3b767813f8c8d5579ae005;hp=ddc926e1124be769922014af50869f5f574512e7;hpb=d060969f7c7f2a41142ae5dfdb945cda973c91ee;p=pazpar2-moved-to-github.git diff --git a/src/icu_chain_test.c b/src/icu_chain_test.c index ddc926e..9d4fddd 100644 --- a/src/icu_chain_test.c +++ b/src/icu_chain_test.c @@ -12,6 +12,9 @@ //#include #include + +#ifdef HAVE_ICU + #include #include @@ -474,10 +477,14 @@ static void process_text_file(const struct config_t *p_config) free(line); }; +#endif // HAVE_ICU + int main(int argc, char **argv) { +#ifdef HAVE_ICU + read_params(argc, argv, &config); if (config.conffile && strlen(config.conffile)) @@ -485,8 +492,16 @@ int main(int argc, char **argv) if (config.print && strlen(config.print)) print_info(&config); - - + +#else // 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 + return(0); };