diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-02-09 21:19:24 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-02-09 21:19:24 +0100 |
commit | c26dc595bdb77add53b6b4da3c6091e91ad1d6cd (patch) | |
tree | 4d8d5b276c590c12b8861f4a08b1e1f4b127fe78 /configure.ac | |
parent | d2517d4a98c1d1f5425c6760ccbd6f7665b3a7b8 (diff) |
hotkeys/xlib static build fix
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 + ]) + ]) ]) ]) |