[build] include config.h conditionally to not break non-autotools build.
authorAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Sun, 29 May 2011 13:18:39 +0000 (16:18 +0300)
committerAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Tue, 17 Jul 2012 04:49:55 +0000 (07:49 +0300)
ginac/archive.cpp
ginac/numeric.cpp
ginsh/ginsh_lexer.ll
ginsh/ginsh_parser.yy

index a7152ba..d643e68 100644 (file)
@@ -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 <iostream>
index 18725b2..795c760 100644 (file)
@@ -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"
index cd35605..7ba013e 100644 (file)
@@ -29,7 +29,9 @@
 %pointer
 
 %{
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 
 #include "ginsh.h"
 #include "ginsh_parser.h"
index ead4f1f..eb184b7 100644 (file)
@@ -27,7 +27,9 @@
  */
 
 %{
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 #ifdef HAVE_RUSAGE
 #include <sys/resource.h>
 #else