From f282e2b3a3873619006b6ffd3fa7fe65010c1299 Mon Sep 17 00:00:00 2001 From: Alexei Sheplyakov Date: Sun, 29 May 2011 16:18:39 +0300 Subject: [PATCH] [build] include config.h conditionally to not break non-autotools build. --- ginac/archive.cpp | 2 ++ ginac/numeric.cpp | 2 ++ ginsh/ginsh_lexer.ll | 2 ++ ginsh/ginsh_parser.yy | 2 ++ 4 files changed, 8 insertions(+) diff --git a/ginac/archive.cpp b/ginac/archive.cpp index a7152ba7..d643e68b 100644 --- a/ginac/archive.cpp +++ b/ginac/archive.cpp @@ -24,7 +24,9 @@ #include "registrar.h" #include "ex.h" #include "lst.h" +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include "tostring.h" #include diff --git a/ginac/numeric.cpp b/ginac/numeric.cpp index 18725b21..795c7609 100644 --- a/ginac/numeric.cpp +++ b/ginac/numeric.cpp @@ -24,7 +24,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include "numeric.h" #include "ex.h" diff --git a/ginsh/ginsh_lexer.ll b/ginsh/ginsh_lexer.ll index cd35605c..7ba013ef 100644 --- a/ginsh/ginsh_lexer.ll +++ b/ginsh/ginsh_lexer.ll @@ -29,7 +29,9 @@ %pointer %{ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include "ginsh.h" #include "ginsh_parser.h" diff --git a/ginsh/ginsh_parser.yy b/ginsh/ginsh_parser.yy index ead4f1f5..eb184b7f 100644 --- a/ginsh/ginsh_parser.yy +++ b/ginsh/ginsh_parser.yy @@ -27,7 +27,9 @@ */ %{ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #ifdef HAVE_RUSAGE #include #else -- 2.44.0