done
# Clang++ 3.2+ reject C code generated by Flex.
gl_WARN_ADD([-Wno-null-conversion], [FLEX_SCANNER_CXXFLAGS])
- # So does G++ 4.8 in std=c++11 mode.
+ # So does G++ 4.8...
+ gl_WARN_ADD([-Wno-sign-compare], [FLEX_SCANNER_CXXFLAGS])
+ # ... possiby in std=c++11 mode.
gl_WARN_ADD([-Wno-zero-as-null-pointer-constant], [FLEX_SCANNER_CXXFLAGS])
CXXFLAGS=$save_CXXFLAGS
AC_LANG_POP([C++])
# Checks for programs.
AM_MISSING_PROG([DOT], [dot])
AC_PROG_LEX
-$LEX_IS_FLEX || AC_MSG_ERROR([Flex is required])
+$LEX_IS_FLEX || test "X$LEX" = X: || {
+ AC_MSG_WARN([bypassing lex because flex is required])
+ LEX=:
+}
AC_PROG_YACC
AC_PROG_RANLIB
AC_PROG_GNU_M4
'':*) ;;
*:darwin*)
# See README-hacking.
- # VALGRIND+=' --suppressions=$(abs_top_srcdir)/build-aux/darwin11.4.0.valgrind'
+ # VALGRIND+='-q --suppressions=$(abs_top_srcdir)/build-aux/darwin11.4.0.valgrind'
VALGRIND=;;
*:*)
- AC_SUBST([VALGRIND_PREBISON], ["$VALGRIND -q"]);;
+ suppfile=build-aux/$host_os.valgrind
+ if test -f "$srcdir/$suppfile"; then
+ VALGRIND="$VALGRIND --gen-suppressions=all"
+ VALGRIND="$VALGRIND --suppressions=\$(abs_top_srcdir)/$suppfile"
+ fi
+ AC_SUBST([VALGRIND_PREBISON], ["$VALGRIND -q"])
+ ;;
esac
AM_MISSING_PROG([AUTOM4TE], [autom4te])