gcc --version on most releases of gcc 3.1 generates spo,ething along the lines of:
gcc (GCC) 3.1 20020118 (experimental) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. the first lien is fine but the rest also gets included in the version number and causes sed indigestion. The attatched patch is a proposed fix (bad things happen if you do not have head but then that sort of system deverses to lose).
--- config/lyxinclude.m4.dist Sun Feb 24 23:37:24 2002 +++ config/lyxinclude.m4 Sun Feb 24 23:37:52 2002 @@ -199,7 +199,7 @@ # set the debug flags correctly. if test x$GXX = xyes; then dnl Useful for global version info - gxx_version=`${CXX} --version` + gxx_version=`${CXX} --version | ${HEAD} -1` CXX_VERSION="($gxx_version)" if test "$ac_test_CXXFLAGS" = set; then --- configure.in.dist Sun Feb 24 23:11:49 2002 +++ configure.in Sun Feb 24 23:16:31 2002 @@ -34,7 +34,8 @@ ### Check for programs AC_PROG_MAKE_SET AC_PROG_INSTALL -#AC_PROG_RANLIB +AC_PROG_RANLIB +AC_PATH_PROG(HEAD, head) AC_CHECK_PROG(KPSEWHICH, kpsewhich, kpsewhich, :) if test "x$KPSEWHICH" = xkpsewhich ; then AC_DEFINE(HAVE_KPSEWHICH, 1,
Duncan (-: "software industry, the: unique industry where selling substandard goods is legal and you can charge extra for fixing the problems."