mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-07 08:38:02 +02:00
Move DBUS_X_* definitions into PKG_CHECK_MODULES block
(cherry picked from commit 51e468d828)
This commit is contained in:
parent
fdbb32bd1f
commit
5f2577aea3
1 changed files with 5 additions and 5 deletions
10
configure.ac
10
configure.ac
|
|
@ -1117,15 +1117,15 @@ if test "x$dbus_win" = xyes; then
|
|||
have_x11=no
|
||||
else if test "x$with_x" != xno; then
|
||||
PKG_CHECK_MODULES([X], [x11],
|
||||
[AC_DEFINE([HAVE_X11], [1], [Define to 1 if you have X11 library])],
|
||||
[AC_DEFINE([HAVE_X11], [1], [Define to 1 if you have X11 library])
|
||||
have_x11=yes
|
||||
DBUS_X_LIBS="$X_LIBS"
|
||||
DBUS_X_CFLAGS="$X_CFLAGS"
|
||||
],
|
||||
[ have_x11=no ])
|
||||
|
||||
if test "x$have_x11" = xno; then
|
||||
AC_MSG_WARN([Couldn't found X11, tried with pkg-config.])
|
||||
else
|
||||
have_x11=yes
|
||||
DBUS_X_LIBS="$X_LIBS"
|
||||
DBUS_X_CFLAGS="$X_CFLAGS"
|
||||
fi
|
||||
else
|
||||
AS_IF([test "x$enable_x11_autolaunch" = "xyes"], [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue