From: Andrew Deason Date: Wed, 21 Jul 2010 22:30:39 +0000 (-0500) Subject: Log lex/flex detection errors in the config log X-Git-Tag: openafs-devel-1_5_76~76 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3d1fd051b6a5c6e3bf04663d88bc0366d7e7e854;p=packages%2Fo%2Fopenafs.git Log lex/flex detection errors in the config log When we detect if lex is flex, we run 'lex --version', which may complain to stderr if lex is not flex. Instead of printing such errors to the person running 'configure', redirect stderr to config.log along with stdout. Change-Id: I812805245a2638eda5885a41a6d70ffeff608c58 Reviewed-on: http://gerrit.openafs.org/2462 Tested-by: Andrew Deason Reviewed-by: Russ Allbery --- diff --git a/src/cf/flex.m4 b/src/cf/flex.m4 index d552c1866..6b2b17261 100644 --- a/src/cf/flex.m4 +++ b/src/cf/flex.m4 @@ -1,7 +1,7 @@ # OPENAFS_LEX_IS_FLEX([ACTION-IF-SUCCESS], [ACTION-IF-FAILURE]) AC_DEFUN([OPENAFS_LEX_IS_FLEX], [AC_MSG_CHECKING([if lex is flex]) - AS_IF([echo '' | $LEX --version >&AS_MESSAGE_LOG_FD], + AS_IF([echo '' | $LEX --version >&AS_MESSAGE_LOG_FD 2>&1], [AC_MSG_RESULT([yes]) $1], [AC_MSG_RESULT([no])