From 30f5e6535f21ca671d76159b49cc87add1f0b53e Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 5 May 2022 17:17:11 -0700 Subject: [PATCH] only append 'generic' TCL include path to 'TCL_INCLUDES' if it exists Squashes numerous -Wmissing-include-dirs compilation warnings. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 450b03577..64002620a 100644 --- a/configure.ac +++ b/configure.ac @@ -1384,6 +1384,9 @@ if test "x$use_tcl" = "x"; then if test -f ${TCLSH_EXEC_PREFIX}/include/tcl${TCL_VERSION_FOUND}/tcl.h; then TCL_INCLUDES="-I${TCLSH_EXEC_PREFIX}/include/tcl${TCL_VERSION_FOUND} -I${TCLSH_EXEC_PREFIX}/include/tcl${TCL_VERSION_FOUND}/generic" + if test -d ${TCLSH_EXEC_PREFIX}/include/tcl${TCL_VERSION_FOUND}/generic; then + TCL_INCLUDES="${TCL_INCLUDES} -I${TCLSH_EXEC_PREFIX}/include/tcl${TCL_VERSION_FOUND}/generic" + fi else if test "x${TCLSH_EXEC_PREFIX}" != "x/usr" -a -f ${TCLSH_EXEC_PREFIX}/include/tcl.h; then TCL_INCLUDES=-I${TCLSH_EXEC_PREFIX}/include -- 2.40.0