From fb47fb60afbc7cec5d8c64346c2a02042c898133 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 29 Mar 2021 21:38:59 +0300 Subject: [PATCH 20/20] Document setting up PKG_CONFIG_PATH for finding icu-uc in OSX build Reported by Dean See osdn #41872 Signed-off-by: Marko Lindqvist --- INSTALL | 6 ++++++ configure.ac | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/INSTALL b/INSTALL index 378ef7abd3..50b2e993d2 100644 --- a/INSTALL +++ b/INSTALL @@ -602,6 +602,12 @@ local installation. 8. Mac OS X and Darwin notes: ============================= +Pkg-config files installed with icu4c homebrew package are not found +from normal path. This shows up as a configure error: +"icu development files not found. Adjusting PKG_CONFIG_PATH may help" +One needs to adjust PKG_CONFIG_PATH before configure, like this: +> export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:$PKG_CONFIG_PATH" + Apple's version of GCC uses precompiled headers that does not support vararg macros (a GCC extension). This causes GCC to fail when compiling Freeciv since the compiler is otherwise (mostly) diff --git a/configure.ac b/configure.ac index 6899dd0919..3eb141d03e 100644 --- a/configure.ac +++ b/configure.ac @@ -605,7 +605,7 @@ if test "x$XMLREGISTRY" = "xyes" ; then fi PKG_CHECK_MODULES([ICU], [icu-uc],, - [AC_MSG_ERROR([icu development files required])]) + [AC_MSG_ERROR([icu development files not found. Adjusting PKG_CONFIG_PATH may help])]) UTILITY_CFLAGS="${UTILITY_CFLAGS} ${ICU_CFLAGS}" UTILITY_LIBS="${UTILITY_LIBS} ${ICU_LIBS}" -- 2.30.2