summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2021-07-14 23:16:02 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2021-07-14 23:58:24 +0200
commit7ec7e6aa2d394d8d25472c55c5da2e44b0a60041 (patch)
tree9ed0ccfa5197ff1c09251f4e9417a18c8cf6abfd /configure
parent1349de10b22d6c8643bec43eced296ec2a126671 (diff)
configure: use pkg-config for xlib/Xv
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure b/configure
index 2d2d125fd3..5ef94e7ccd 100755
--- a/configure
+++ b/configure
@@ -6193,8 +6193,9 @@ check_func_headers windows.h SetDllDirectory
check_func_headers windows.h Sleep
check_func_headers windows.h VirtualAlloc
check_func_headers glob.h glob
-enabled xlib &&
- check_lib xlib "X11/Xlib.h X11/extensions/Xvlib.h" XvGetPortAttribute -lXv -lX11 -lXext
+enabled xlib && {
+ check_pkg_config xlib xv "X11/Xlib.h X11/extensions/Xvlib.h" XvGetPortAttribute ||
+ check_lib xlib "X11/Xlib.h X11/extensions/Xvlib.h" XvGetPortAttribute -lXv -lX11 -lXext; }
check_headers direct.h
check_headers dirent.h