Skip to content

Commit 5816799

Browse files
author
Erlend E. Aasland
committed
Don't break configure if x11 is not found
1 parent 27f2dd1 commit 5816799

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

configure

Lines changed: 11 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3522,9 +3522,11 @@ AS_VAR_IF([found_tcltk], [no], [
35223522
dnl FreeBSD has an X11 dependency which is not implicitly resolved.
35233523
AS_CASE([$ac_sys_system],
35243524
[FreeBSD*], [
3525-
PKG_CHECK_MODULES([X11], [x11], [
3526-
TCLTK_CFLAGS="$TCLTK_CFLAGS $X11_CFLAGS"
3527-
TCLTK_LIBS="$TCLTK_LIBS $X11_LIBS"
3525+
PKG_CHECK_EXISTS([x11], [
3526+
PKG_CHECK_MODULES([X11], [x11], [
3527+
TCLTK_CFLAGS="$TCLTK_CFLAGS $X11_CFLAGS"
3528+
TCLTK_LIBS="$TCLTK_LIBS $X11_LIBS"
3529+
])
35283530
])
35293531
]
35303532
)

0 commit comments

Comments
 (0)