Add checks for Scintilla and Lexilla submodules to configure too

Hopefully this will save some time to people building wx from Git.

Closes #23290.
This commit is contained in:
Vadim Zeitlin 2023-02-23 01:27:45 +01:00
parent 00ea032483
commit dcfe387102
2 changed files with 36 additions and 0 deletions

18
configure vendored
View file

@ -39426,6 +39426,24 @@ fi
USE_STC=0
if test "$wxUSE_STC" = "yes"; then
if ! test -f "$srcdir/src/stc/scintilla/include/Scintilla.h" ; then
as_fn_error $? "
The required Scintilla header not found. You probably need to run
git submodule update --init src/stc/scintilla
to fix this." "$LINENO" 5
fi
if ! test -f "$srcdir/src/stc/lexilla/include/Lexilla.h" ; then
as_fn_error $? "
The required Lexilla header not found. You probably need to run
git submodule update --init src/stc/lexilla
to fix this." "$LINENO" 5
fi
$as_echo "#define wxUSE_STC 1" >>confdefs.h
USE_STC=1