diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 1b665032..d3843254 100644 --- a/configure.ac +++ b/configure.ac @@ -447,11 +447,22 @@ AS_IF([test "${enable_ffmpeg}" != "no"], [ ]) AS_IF([test "${enable_hotkeys}" != "no"], [ - AC_CHECK_HEADER([X11/Xlib.h], HAVE_XLIB_H=yes) AS_IF([test "${HAVE_XLIB_H}" = "yes"], [ - HOTKEYS_LIBS="-lX11" - AC_SUBST(HOTKEYS_LIBS) - HAVE_HOTKEYS=yes + AS_IF([test "${enable_staticlink}" = "no"], [ + HOTKEYS_CFLAGS="-I../../$LIB/include" + HOTKEYS_LIBS="-lX11" + AC_SUBST(HOTKEYS_CFLAGS) + AC_SUBST(HOTKEYS_LIBS) + HAVE_HOTKEYS=yes + ], + [ + AC_CHECK_HEADER([X11/Xlib.h], HAVE_XLIB_H=yes) + AS_IF([test "${HAVE_XLIB_H}" = "yes"], [ + HOTKEYS_LIBS="-lX11" + AC_SUBST(HOTKEYS_LIBS) + HAVE_HOTKEYS=yes + ]) + ]) ]) ]) |