]> www.ginac.de Git - ginac.git/commitdiff
[build] configure: don't abuse AC_CHECK_FILE. Unbreaks the cross-compilation.
authorAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Mon, 23 May 2011 21:37:09 +0000 (00:37 +0300)
committerAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Mon, 23 May 2011 21:37:09 +0000 (00:37 +0300)
Checking for ginsh_parser.h in configure is not a good idea, since it
1) produces a bogus warning during an out of source build,
2) breaks cross-compilation.

Solution: just skip that bogus check (auto* tools do a similar check in
the run-time *for a reason*).

configure.ac

index ea990d4f9ec5b44e8c4d7077968b29a67f0cd952..3ad966e455399a338cd4808ff2c0a8268cc1dc53 100644 (file)
@@ -97,10 +97,6 @@ dnl Check for stuff needed for building the GiNaC interactive shell (ginsh).
 AC_CHECK_HEADERS(unistd.h)
 GINAC_HAVE_RUSAGE
 GINAC_READLINE
-AC_CHECK_FILE([ginsh/ginsh_parser.h], [],
-                         [AS_IF([test -z "$YACCEXE"], [GINAC_WARNING([ginsh will not compile, because yacc/bison is missing.])])])
-AC_CHECK_FILE([ginsh/ginsh_lexer.cc], [],
-                         [AS_IF([test x"$LEX" == x":"], [GINAC_WARNING([ginsh will not compile, because lex/flex is missing.])])])
 
 dnl Check for dl library (needed for GiNaC::compile).
 GINAC_EXCOMPILER