Merge branch 'maint'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 24 Nov 2012 11:38:56 +0000 (12:38 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 24 Nov 2012 11:38:56 +0000 (12:38 +0100)
* maint:
  tests: fix a spurious failure with older flex versions

1  2 
t/lex-header.sh

diff --cc t/lex-header.sh
  # bugs #8844 and #9933).
  
  required='cc flex'
 -. ./defs || exit 1
 +. test-init.sh
  
+ # Here, we need to use the use flex option '--header-file', but some
+ # older flex versions don't support is (see automake bug#11524 and
+ # bug#12836).  Skip this test if such an old flex version is detected.
+ $LEX --help | grep '.*--header-file' \
+   || skip_ "flex doesn't support the --header-file' option"
  cat >> configure.ac << 'END'
  AC_PROG_CC
  AC_PROG_LEX