diff m4/acinclude.m4 @ 29661:9e670ec38513

* acinclude.m4 (OCTAVE_PROG_FLEX): Pass noyywrap to AC_PROG_LEX. (bug #60601)
author John W. Eaton <jwe@octave.org>
date Thu, 13 May 2021 11:53:54 -0400
parents bdb0cfffa2d0
children 5811df727e96
line wrap: on
line diff
--- a/m4/acinclude.m4	Thu May 13 16:43:24 2021 +0200
+++ b/m4/acinclude.m4	Thu May 13 11:53:54 2021 -0400
@@ -3265,7 +3265,9 @@
   ##
   ## Also make sure that we generate an interactive scanner if we are
   ## using flex.
-  AC_PROG_LEX
+dnl We declare %noyywrap in the lexer files so we use the noyywrap
+dnl option here to skip the search for that function.
+  AC_PROG_LEX([noyywrap])
   case "`$LEX --version`" in
     *flex*)
       LFLAGS="-I"