]> git.donarmstrong.com Git - lilypond.git/commitdiff
put FlexLexer.h test in conftest.cc. Fixes
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 31 May 2005 14:09:00 +0000 (14:09 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 31 May 2005 14:09:00 +0000 (14:09 +0000)
spurious warning.

ChangeLog
stepmake/aclocal.m4

index 4edc613a95caf5d687cf7bdc90238fda32e4dccd..26bfe8eb43da812748cfa7fa487a7019e5c5e46b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,12 +1,17 @@
+2005-05-31  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * stepmake/aclocal.m4: put FlexLexer.h test in conftest.cc. Fixes
+       spurious warning.
+
+       * scm/font.scm (make-century-schoolbook-tree): use Sans for sans
+       serif.
+
 2005-05-31  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * configure.in (reloc_b): Add --enable-argv0-relocation.
 
 2005-05-31  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
-       * scm/font.scm (make-century-schoolbook-tree): use Sans for sans
-       serif.
-
        * lily/pfb.cc (LY_DEFINE): show file name when loading PFB. 
 
        * input/regression/alignment-order.ly: add Staff example.
index d6cd6231f0bc87c9b66b2e4d6ee0c35bb1b60a28..e249e98a67f2149c26711bd62652ec57edf7e8e0 100644 (file)
@@ -414,10 +414,15 @@ class yy_flex_lexer: public yyFlexLexer
 AC_DEFUN(STEPMAKE_FLEXLEXER_LOCATION, [
        AC_MSG_CHECKING([FlexLexer.h path])
 
-       # ugh. 
-       FLEXLEXER_PATH=`echo '#include <FlexLexer.h>' | $CXX -E - | \
+       # ugh.
+       cat <<EOF > conftest.cc
+using namespace std;
+#include <FlexLexer.h>
+EOF
+       FLEXLEXER_PATH=`$CXX -E conftest.cc | \
          sed 's!# 1 "\(.*\)FlexLexer.h"!@FLEXLEXER@\1@@!g' | grep '@@' | \
          sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` >& /dev/null
+       rm conftest.cc
        AC_SUBST(FLEXLEXER_PATH)
         AC_MSG_RESULT($FLEXLEXER_PATH)
 ])