Skip to content

Commit

Permalink
pkg-config: xt already depends on x11, so add once
Browse files Browse the repository at this point in the history
  • Loading branch information
zmughal committed Oct 24, 2021
1 parent 33407a4 commit 1536cb4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,25 @@ AS_IF([ test "x$no_x" = "x"],
[x11],
[have_x11=yes
PKG_CONFIG_REQUIRES="${PKG_CONFIG_REQUIRES}[,]x11"
X_LIBS="$X_LIBS $X11_LIBS"
LIBS="$LIBS $X11_LIBS"
X_CFLAGS="$X_CFLAGS $X11_CFLAGS"
CPPFLAGS="$CPPFLAGS $X11_CFLAGS"
PKG_CHECK_MODULES(
[XT],
dnl have sm and ice listed here so that contents of $X_PRE_LIBS
dnl can be found
[sm ice xt],
[have_xt=yes
PKG_CONFIG_REQUIRES="${PKG_CONFIG_REQUIRES}[,]xt"
dnl XT_* has xt + x11 because xt depends on x11
X_LIBS="$X_LIBS $XT_LIBS"
LIBS="$LIBS $XT_LIBS"
X_CFLAGS="$X_CFLAGS $XT_CFLAGS"
CPPFLAGS="$CPPFLAGS $XT_CFLAGS"
],
[
dnl only have x11
X_LIBS="$X_LIBS $X11_LIBS"
LIBS="$LIBS $X11_LIBS"
X_CFLAGS="$X_CFLAGS $X11_CFLAGS"
CPPFLAGS="$CPPFLAGS $X11_CFLAGS"
]
)
]
Expand Down

0 comments on commit 1536cb4

Please # to comment.