File recode-3.6-fix-flex-m4.patch of Package recode

# based on http://blog.flameeyes.eu/2009/08/28/autoconf-2-64-the-phantom-macro-menace
# dirty fix - but since flex is not used anyway, this should be enough to fix build
# with autoconf >= 2.64
---
 m4/flex.m4 |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Index: recode-3.6/m4/flex.m4
===================================================================
--- recode-3.6.orig/m4/flex.m4	2000-06-28 16:39:06.000000000 +0200
+++ recode-3.6/m4/flex.m4	2010-03-05 16:33:24.000000000 +0100
@@ -8,11 +8,8 @@ dnl ad_AC_PROG_FLEX
 dnl Look for flex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
 AC_DEFUN(ad_AC_PROG_FLEX,
 [AC_CHECK_PROGS(LEX, flex, missing)
-if test "$LEX" = missing; then
+AS_IF([test "$LEX" = missing], [
   LEX="\$(top_srcdir)/$ac_aux_dir/missing flex"
   LEX_OUTPUT_ROOT=lex.yy
   AC_SUBST(LEX_OUTPUT_ROOT)dnl
-else
-  AC_PROG_LEX
-  AC_DECL_YYTEXT
-fi])
+])])
openSUSE Build Service is sponsored by