Skip to content

Commit 8ecf796

Browse files
committed
configure: Also capture stderr from emacs output
The emacs major version output can go to stderr, so make sure to capture that as well when getting the version. Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
1 parent 6b1c35c commit 8ecf796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ check_toolchain()
9696
if ! command -v $EMACS >/dev/null 2>&1; then
9797
EMACS=""
9898
else
99-
emacs_major=$($EMACS -Q --batch --eval='(message "%s" emacs-major-version)')
100-
if [ "$emacs_major" -ge 26 ]; then
99+
emacs_major=$($EMACS -Q --batch --eval='(message "%s" emacs-major-version)' 2>&1)
100+
if [ -n "$emacs_major" ] && [ "$emacs_major" -ge 26 ]; then
101101
echo "using emacs: $EMACS, version $emacs_major"
102102
else
103103
echo "not using emacs: $EMACS, as it is too old (wanted version >=26, got $emacs_major)"

0 commit comments

Comments
 (0)