Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reduce configure noise
PKG_CHECK_EXISTS does not print any output, so we can run the pk-config
query loop quietly until we get a hit; then we'll run PKG_CHECK_MODULES
to fetch the needed compiler and linker options.
  • Loading branch information
Erlend E. Aasland committed Mar 14, 2022
commit 4c435ec00545ca45a941cd2aace8641e4dbfb4e0
17 changes: 16 additions & 1 deletion configure

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

6 changes: 5 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3502,6 +3502,7 @@ AS_VAR_IF([enable_loadable_sqlite_extensions], [yes], [
dnl
dnl Detect Tcl/Tk. Use pkg-config if available.
dnl
found_tcltk=no
for _QUERY in \
"tcl >= 8.4.2 tk >= 8.4.2" \
"tcl8.6 tk8.6" \
Expand All @@ -3511,7 +3512,10 @@ for _QUERY in \
"tcl8.4 >= 8.4.2 tk8.4 >= 8.4.2" \
"tcl84 >= 8.4.2 tk84 >= 8.4.2" \
; do
PKG_CHECK_MODULES([TCLTK], [$_QUERY], [break], [found_tcltk=no])
PKG_CHECK_EXISTS([PCLTK], [$_QUERY], [
PKG_CHECK_MODULES([TCLTK], [$_QUERY], [found_tcltk=yes], [found_tcltk=no])
])
AS_VAR_IF([found_tcltk], [yes], [break])
done

AS_VAR_IF([found_tcltk], [no], [
Expand Down