Skip to content

Commit

Permalink
8255785: X11 libraries should not be required by configure for headle…
Browse files Browse the repository at this point in the history
…ss only

Reviewed-by: mikael, prr
  • Loading branch information
magicus committed Nov 3, 2020
1 parent 184db64 commit f97ec35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions make/autoconf/libraries.m4
Expand Up @@ -43,9 +43,11 @@ AC_DEFUN_ONCE([LIB_DETERMINE_DEPENDENCIES],
if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
# No X11 support on windows or macosx
NEEDS_LIB_X11=false
elif test "x$ENABLE_HEADLESS_ONLY" = xtrue; then
# No X11 support needed when building headless only
NEEDS_LIB_X11=false
else
# All other instances need X11, even if building headless only, libawt still
# needs X11 headers.
# All other instances need X11
NEEDS_LIB_X11=true
fi
Expand Down

0 comments on commit f97ec35

Please sign in to comment.