diff options
author | Manolis Stamatogiannakis <mstamat@gmail.com> | 2021-03-01 03:29:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-01 03:29:57 (GMT) |
commit | d20279494a3a311c7aefa313174c45d32aa7f5d1 (patch) | |
tree | ee5dc615a34501a4466b707782c277be0b7ae615 /configure | |
parent | a8e2615aa885a121b8cf8e9cd07696207356a25a (diff) | |
download | cpython-d20279494a3a311c7aefa313174c45d32aa7f5d1.zip cpython-d20279494a3a311c7aefa313174c45d32aa7f5d1.tar.gz cpython-d20279494a3a311c7aefa313174c45d32aa7f5d1.tar.bz2 |
bpo-42603: Use pkg-config to get TCL/TK paths for tkinter. (GH-23721)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -10714,8 +10714,13 @@ then then as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 fi - TCLTK_INCLUDES="" - TCLTK_LIBS="" + if test -n "$PKG_CONFIG" && "$PKG_CONFIG" --exists tcl tk; then + TCLTK_INCLUDES="`"$PKG_CONFIG" tcl tk --cflags-only-I 2>/dev/null`" + TCLTK_LIBS="`"$PKG_CONFIG" tcl tk --libs 2>/dev/null`" + else + TCLTK_INCLUDES="" + TCLTK_LIBS="" + fi else TCLTK_INCLUDES="$with_tcltk_includes" TCLTK_LIBS="$with_tcltk_libs" |