]> git.sesse.net Git - vlc/commitdiff
skins2: fix linking in OpenBSD (the X11 os factory must be use for linux and OpenBSD...
authorRémi Duraffort <ivoire@videolan.org>
Mon, 23 Nov 2009 16:08:29 +0000 (17:08 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Mon, 23 Nov 2009 18:22:18 +0000 (19:22 +0100)
configure.ac
modules/gui/skins2/Modules.am

index c1a0683573a113e1fe4be8652eab80eab8dbf3b6..279ac0bc397949892bffe924bf0c9a3d5a4ba288 100644 (file)
@@ -412,6 +412,7 @@ AM_CONDITIONAL(HAVE_LINUX, [test "${SYS}" = "linux"])
 AM_CONDITIONAL(HAVE_WIN32, test "${SYS}" = "mingw32")
 AM_CONDITIONAL(HAVE_WINCE, test "${SYS}" = "mingwce")
 AM_CONDITIONAL(USE_PEFLAGS, [test "${enable_peflags}" = "yes"])
+AM_CONDITIONAL(USE_X11_FOR_SKINS2, [case "${SYS}" in linux*|openbsd*) true;; *) false;; esac])
 
 dnl
 dnl Sadly autoconf doesn't think about testing foo.exe when ask to test
index 4569077f3160fe9074196e8644e444a0736555e3..2142fdd789b11cfb8a28b4c263494b5d1ba40cf3 100644 (file)
@@ -211,7 +211,7 @@ SOURCES_skins2 += \
     $(NULL)
 endif
 
-if HAVE_LINUX
+if USE_X11_FOR_SKINS2
 SOURCES_skins2 += \
        x11/x11_display.cpp \
        x11/x11_display.hpp \