Skip to content

Commit

Permalink
Replace specifying options for ICU from icu-config to pkg-config (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
lshw committed Dec 8, 2022
1 parent d8d72a7 commit 2db929b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions build.sh
Expand Up @@ -5,8 +5,7 @@

sudo apt-get -q -y update
sudo apt-get -q -y upgrade
sudo apt-get -y install build-essential automake autoconf libtool pkg-config libicu66 icu-devtools libicu-dev libxml2-dev uuid-dev fuse libfuse-dev libsnmp-dev
sudo cp .github/workflows/icu-config /usr/bin/icu-config
sudo apt-get -y install build-essential automake autoconf libtool pkg-config icu-devtools libicu-dev libxml2-dev uuid-dev fuse libfuse-dev libsnmp-dev
./autogen.sh
./configure
make
6 changes: 3 additions & 3 deletions configure.ac
Expand Up @@ -329,9 +329,9 @@ dnl
dnl Check for ICU
dnl
AC_MSG_CHECKING(ICU version)
ICU_MODULE_VERSION="`icu-config --version 2> /dev/null`";
ICU_MODULE_CFLAGS=" `icu-config --cppflags 2> /dev/null`";
ICU_MODULE_LIBS="`icu-config --ldflags 2> /dev/null`";
ICU_MODULE_VERSION="`pkg-config --modversion icu-i18n 2> /dev/null`";
ICU_MODULE_CFLAGS="`pkg-config --cflags icu-i18n 2> /dev/null`";
ICU_MODULE_LIBS="`pkg-config --libs icu-i18n 2> /dev/null`";
AC_MSG_RESULT([$ICU_MODULE_VERSION])

if test -z "$ICU_MODULE_VERSION"
Expand Down

0 comments on commit 2db929b

Please sign in to comment.