]> git.draconx.ca Git - dxcommon.git/commitdiff
DX_PROG_FLEX: redirect lex output to the log file.
authorNick Bowler <nbowler@draconx.ca>
Wed, 3 Jan 2024 03:07:52 +0000 (22:07 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 3 Jan 2024 03:09:31 +0000 (22:09 -0500)
AIX 7.2 includes a "lex" program which prints error messages to standard
output.  So ensure that is also redirected to the log file, otherwise
we get a bunch of garbage printed to the terminal when configuring.

m4/flex.m4

index 419efbd9ef1131249d233b5cb5a7a15360542c8b..bc9998535bdd9b693ef1791ed6be6257c16faa3d 100644 (file)
@@ -1,4 +1,4 @@
-dnl Copyright © 2020-2021 Nick Bowler
+dnl Copyright © 2020-2021, 2024 Nick Bowler
 dnl
 dnl License WTFPL2: Do What the Fuck You Want To Public License, version 2.
 dnl This is free software: you are free to do what the fuck you want to.
@@ -72,6 +72,6 @@ int main(void)
 }])
 
 AC_DEFUN([_DX_FLEX_DO_TEST], [rm -f conftest.c
-AS_IF([$1 -o conftest.inc conftest.l 2>&AS_MESSAGE_LOG_FD],
+AS_IF([$1 -o conftest.inc conftest.l >&AS_MESSAGE_LOG_FD 2>&1],
 [AC_LINK_IFELSE([AC_LANG_SOURCE([[#include "conftest.inc"]])], [$2], [$3])],
 [$3])])