commit:     446b674ce958254f9deb2016511722bf92d6255a
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 27 14:00:12 2024 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Thu Jun 27 14:02:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=446b674c

dev-libs/m17n-lib: fix build with USE=-X

Closes: https://bugs.gentoo.org/935015
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>

 dev-libs/m17n-lib/files/m17n-lib-configure.patch | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/dev-libs/m17n-lib/files/m17n-lib-configure.patch 
b/dev-libs/m17n-lib/files/m17n-lib-configure.patch
index 27a05fd97865..90cfc774b806 100644
--- a/dev-libs/m17n-lib/files/m17n-lib-configure.patch
+++ b/dev-libs/m17n-lib/files/m17n-lib-configure.patch
@@ -1,17 +1,28 @@
 --- a/configure.ac
 +++ b/configure.ac
-@@ -96,8 +96,8 @@
+@@ -96,8 +96,11 @@
  
  dnl Checks which levels of APIs should be compiled.
  
 -AC_ARG_ENABLE(gui,
 -            AS_HELP_STRING([--enable-gui],[enable GUI level APIs (default is 
YES)]))
++PKG_PROG_PKG_CONFIG
++AM_CONDITIONAL([HAVE_PKG_CONFIG], [test "x$PKG_CONFIG" != x])
++
 +AC_ARG_WITH(gui,
 +          AS_HELP_STRING([--with-gui],[enable GUI level APIs (default is 
YES)]))
  
  AM_CONDITIONAL(WITH_GUI, test x$with_gui != xno)
  
-@@ -125,6 +125,9 @@
+@@ -117,14 +120,14 @@
+ 
+ M17N_EXT_LIBS=
+ 
+-PKG_PROG_PKG_CONFIG
+-AM_CONDITIONAL([HAVE_PKG_CONFIG], [test "x$PKG_CONFIG" != x])
+-
+ if test "x$no_x" != "xyes"; then
+   AC_DEFINE(HAVE_X11, 1, [Define to 1 if you have X11.])
    X11_LD_FLAGS="-lXt -lX11"
    M17N_EXT_LIBS="$M17N_EXT_LIBS X11"
  

Reply via email to