Skip to content

Commit

Permalink
Add special-case for FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
Erlend E. Aasland committed Mar 7, 2022
1 parent f835d6d commit 72cf592
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 0 deletions.
109 changes: 109 additions & 0 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3519,6 +3519,16 @@ AS_VAR_IF([found_tcltk], [no], [
TCLTK_LIBS=${TCLTK_LIBS-""}
])

dnl FreeBSD has an X11 dependency which is not implicitly resolved.
AS_CASE([$ac_sys_system],
[FreeBSD*], [
PKG_CHECK_MODULES([X11], [x11], [
TCLTK_CFLAGS="$TCLTK_CFLAGS $X11_CFLAGS"
TCLTK_LIBS="$TCLTK_LIBS $X11_LIBS"
])
]
)

WITH_SAVE_ENV([
CPPFLAGS="$TCLTK_CFLAGS $CFLAGS"
LIBS="$TCLTK_LIBS $LDFLAGS"
Expand Down

0 comments on commit 72cf592

Please sign in to comment.