Fix failure of ./configure --with-tcl-binding --with-xml-support

If pkg-config has found tcl.pc, then tclConfig.sh is not executed
and $TCL_INCLUDE_SPEC is empty so the test for tcl.h fails.
This patch moves the test inside the "else" case where the variable
is always defined.
The is a bug exposed by the fact that --with-xml-support redefines
the macro PKG_CHECK_MODULES.
Fix verified moving aside /usr/lib/x86_64-linux-gnu/pkgconfig/tcl.pc

Fixes:
configure: error: Unable to find Tcl headers
pull/1731/head
Daniele Forsi IU5HKX 2025-05-17 11:27:31 +02:00
rodzic 435a354ee0
commit 94bf1d717a
1 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -637,7 +637,6 @@ AS_IF([test x"${build_tcl}" = "xyes"],[
AC_MSG_WARN([Unable to find Tcl pkgconfig])
SC_PATH_TCLCONFIG
SC_LOAD_TCLCONFIG
])
tcl_save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $TCL_INCLUDE_SPEC"
@ -645,6 +644,7 @@ AS_IF([test x"${build_tcl}" = "xyes"],[
[],
[AC_MSG_ERROR([Unable to find Tcl headers])])
CPPFLAGS=$tcl_save_CPPFLAGS
])
BINDING_LIST="${BINDING_LIST} tcl"
BINDING_ALL="${BINDING_ALL} all-tcl"